@@ -17,7 +17,7 @@ const module = ref(params.value.module)
1717const showModal = ref (false )
1818
1919const versions = computed (() => {
20- return module .value .versions . toReversed ();
20+ return [ ... module .value .versions ]. reverse ();
2121});
2222
2323const latestVersion = computed (() => {
@@ -60,7 +60,6 @@ const latestVersion = computed(() => {
6060</div >
6161
6262
63-
6463<div v-if =" module.track.antifeatures && module.track.antifeatures.length " >
6564 <h2>Anti-Features</h2>
6665 <p>The following Anti-Features have been found.</p>
@@ -88,21 +87,6 @@ const latestVersion = computed(() => {
8887 </article>
8988</div >
9089
91- <Teleport to =" body " >
92- <Transition name =" modal " >
93- <div v-show="showModal" class="modal-mask">
94- <div class="modal-container">
95- <p>Hello from the modal!</p>
96- <div class="model-footer">
97- <button class="modal-button" @click="showModal = false">
98- Close
99- </button>
100- </div>
101- </div>
102- </div>
103- </Transition >
104- </Teleport >
105-
10690<style module >
10791.moduleCover {
10892 width : 100% ;
@@ -204,59 +188,4 @@ const latestVersion = computed(() => {
204188 margin : 4px ;
205189 transform : translateY (-2px );
206190}
207- </style >
208-
209- <style scoped >
210- .modal-mask {
211- position : fixed ;
212- z-index : 200 ;
213- top : 0 ;
214- left : 0 ;
215- width : 100% ;
216- height : 100% ;
217- background-color : rgba (0 , 0 , 0 , 0.5 );
218- display : flex ;
219- align-items : center ;
220- justify-content : center ;
221- transition : opacity 0.3s ease ;
222- }
223-
224- .modal-container {
225- width : 300px ;
226- margin : auto ;
227- padding : 20px 30px ;
228- background-color : var (--vp-c-bg );
229- border-radius : 2px ;
230- box-shadow : 0 2px 8px rgba (0 , 0 , 0 , 0.33 );
231- transition : all 0.3s ease ;
232- }
233-
234- .model-footer {
235- margin-top : 8px ;
236- text-align : right ;
237- }
238-
239- .modal-button {
240- padding : 4px 8px ;
241- border-radius : 4px ;
242- border-color : var (--vp-button-alt-border );
243- color : var (--vp-button-alt-text );
244- background-color : var (--vp-button-alt-bg );
245- }
246-
247- .modal-button :hover {
248- border-color : var (--vp-button-alt-hover-border );
249- color : var (--vp-button-alt-hover-text );
250- background-color : var (--vp-button-alt-hover-bg );
251- }
252-
253- .modal-enter-from ,
254- .modal-leave-to {
255- opacity : 0 ;
256- }
257-
258- .modal-enter-from .modal-container ,
259- .modal-leave-to .modal-container {
260- transform : scale (1.1 );
261- }
262- </style >
191+ </style >
0 commit comments