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 >
16
2
17
3
<template >
18
4
<div class =" try-it-out" >
19
5
<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">
33
6
<ul >
34
- <li>Open the .env file corresponding to your transport</li>
35
7
<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
47
8
<a
48
- href="https://github.com/Particular/MassTransitShowcaseDemo/blob/main/troubleshooting-guide.md"
49
9
target =" _blank"
10
+ href =" https://github.com/Particular/MassTransitShowcaseDemo/blob/main/docs/rabbit.md"
50
11
>
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"
52
19
>
53
- </div>
54
- </div>
55
- </div> -->
20
+ View instructions for Azure Service Bus
21
+ </a >
22
+ </li >
23
+ </ul >
56
24
</div >
57
25
</template >
58
26
@@ -70,25 +38,4 @@ onMounted(async () => {
70
38
flex : 1 ;
71
39
min-height : 0 ;
72
40
}
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
- }
94
41
</style >
0 commit comments