Skip to content

Commit 7e48805

Browse files
committed
move docs out of UI so that the showcase doesn't need to be running for them to show
1 parent 32f21ac commit 7e48805

File tree

5 files changed

+17
-159
lines changed

5 files changed

+17
-159
lines changed
File renamed without changes.
File renamed without changes.

src/frontend/package-lock.json

Lines changed: 3 additions & 90 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/frontend/package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,10 @@
1313
},
1414
"dependencies": {
1515
"@microsoft/signalr": "^8.0.7",
16-
"vue": "^3.5.13",
17-
"vue-markdown-render": "^2.2.1"
16+
"vue": "^3.5.13"
1817
},
1918
"devDependencies": {
2019
"@tsconfig/node22": "^22.0.0",
21-
"@types/markdown-it": "^14.1.2",
2220
"@types/node": "^22.10.2",
2321
"@vitejs/plugin-vue": "^5.2.1",
2422
"@vue/eslint-config-typescript": "^14.1.3",
Lines changed: 13 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -1,58 +1,26 @@
1-
<script setup lang="ts">
2-
import { onMounted, ref } from "vue";
3-
import VueMarkdown from "vue-markdown-render";
4-
5-
const rabbitMarkdown = ref("");
6-
const azureMarkdown = ref("");
7-
const selection = ref("rabbit");
8-
9-
onMounted(async () => {
10-
const rabbitFile = await fetch("./rabbit.md");
11-
const azureFile = await fetch("./azure.md");
12-
rabbitMarkdown.value = await rabbitFile.text();
13-
azureMarkdown.value = await azureFile.text();
14-
});
15-
</script>
1+
<script setup lang="ts"></script>
162

173
<template>
184
<div class="try-it-out">
195
<h3 class="bolder">Want to try it in your system?</h3>
20-
<div>
21-
Select your transport:
22-
<select v-model="selection" id="transport">
23-
<option value="rabbit">RabbitMq</option>
24-
<option value="azure">Azure Service Bus</option>
25-
</select>
26-
</div>
27-
<div class="markdown-container">
28-
<VueMarkdown
29-
:source="selection === 'rabbit' ? rabbitMarkdown : azureMarkdown"
30-
/>
31-
</div>
32-
<!-- <div style="padding-top: 2rem">
336
<ul>
34-
<li>Open the .env file corresponding to your transport</li>
357
<li>
36-
Copy the file content and modify the right values with info from
37-
<a hre="#" target="_blank"> here.</a>
38-
</li>
39-
<li>Configure the error queues</li>
40-
<li>Run `docker compose down` and `docker compose up</li>
41-
</ul>
42-
<br />
43-
<div>
44-
<span class="bolder">Ran into issues?</span>
45-
<div>
46-
Check out this
478
<a
48-
href="https://github.com/Particular/MassTransitShowcaseDemo/blob/main/troubleshooting-guide.md"
499
target="_blank"
10+
href="https://github.com/Particular/MassTransitShowcaseDemo/blob/main/docs/rabbit.md"
5011
>
51-
troubleshooting guide</a
12+
View instructions for RabbitMQ
13+
</a>
14+
</li>
15+
<li>
16+
<a
17+
target="_blank"
18+
href="https://github.com/Particular/MassTransitShowcaseDemo/blob/main/docs/azure.md"
5219
>
53-
</div>
54-
</div>
55-
</div> -->
20+
View instructions for Azure Service Bus
21+
</a>
22+
</li>
23+
</ul>
5624
</div>
5725
</template>
5826

@@ -70,25 +38,4 @@ onMounted(async () => {
7038
flex: 1;
7139
min-height: 0;
7240
}
73-
74-
.markdown-container {
75-
margin: 0.5em 0;
76-
padding: 0.5em;
77-
width: 100%;
78-
border-radius: 0.5em;
79-
box-shadow: 0 2px 10px #2c3e50;
80-
overflow: auto;
81-
flex: 1;
82-
}
83-
84-
:deep(p) {
85-
margin: 0.5em 0;
86-
}
87-
88-
:deep(pre) {
89-
margin: 0.5em;
90-
padding-left: 1em;
91-
background-color: lightgray;
92-
overflow: auto;
93-
}
9441
</style>

0 commit comments

Comments
 (0)