|
1 |
| -<template> |
2 |
| - <nav> |
3 |
| - <h1> |
4 |
| - <img alt="logo" src="/logo.svg"> |
5 |
| - <span>Vue SFC Playground</span> |
6 |
| - </h1> |
7 |
| - <div class="links"> |
8 |
| - <div class="version" @click.stop> |
9 |
| - <span class="active-version" @click="toggle"> |
10 |
| - Version: {{ activeVersion }} |
11 |
| - </span> |
12 |
| - <ul class="versions" :class="{ expanded }"> |
13 |
| - <li v-if="!publishedVersions"><a>loading versions...</a></li> |
14 |
| - <li v-for="version of publishedVersions"> |
15 |
| - <a @click="setVueVersion(version)">v{{ version }}</a> |
16 |
| - </li> |
17 |
| - <li><a @click="resetVueVersion">This Commit ({{ currentCommit }})</a></li> |
18 |
| - <li> |
19 |
| - <a href="https://app.netlify.com/sites/vue-sfc-playground/deploys" target="_blank">Commits History</a> |
20 |
| - </li> |
21 |
| - </ul> |
22 |
| - </div> |
23 |
| - <button class="share" @click="copyLink"> |
24 |
| - <svg width="1.4em" height="1.4em" viewBox="0 0 24 24"> |
25 |
| - <g fill="none" stroke="#626262" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> |
26 |
| - <circle cx="18" cy="5" r="3"/> |
27 |
| - <circle cx="6" cy="12" r="3"/> |
28 |
| - <circle cx="18" cy="19" r="3"/> |
29 |
| - <path d="M8.59 13.51l6.83 3.98"/> |
30 |
| - <path d="M15.41 6.51l-6.82 3.98"/> |
31 |
| - </g> |
32 |
| - </svg> |
33 |
| - </button> |
34 |
| - <button class="download" @click="downloadProject"> |
35 |
| - <svg width="1.7em" height="1.7em" viewBox="0 0 24 24"> |
36 |
| - <g fill="#626262"> |
37 |
| - <rect x="4" y="18" width="16" height="2" rx="1" ry="1"/> |
38 |
| - <rect x="3" y="17" width="4" height="2" rx="1" ry="1" transform="rotate(-90 5 18)"/> |
39 |
| - <rect x="17" y="17" width="4" height="2" rx="1" ry="1" transform="rotate(-90 19 18)"/> |
40 |
| - <path d="M12 15a1 1 0 0 1-.58-.18l-4-2.82a1 1 0 0 1-.24-1.39a1 1 0 0 1 1.4-.24L12 12.76l3.4-2.56a1 1 0 0 1 1.2 1.6l-4 3a1 1 0 0 1-.6.2z"/> |
41 |
| - <path d="M12 13a1 1 0 0 1-1-1V4a1 1 0 0 1 2 0v8a1 1 0 0 1-1 1z"/> |
42 |
| - </g> |
43 |
| - </svg> |
44 |
| - </button> |
45 |
| - </div> |
46 |
| - </nav> |
47 |
| -</template> |
48 | 1 |
|
49 | 2 | <script setup lang="ts">
|
50 | 3 | import { downloadProject } from './download/download'
|
@@ -100,6 +53,54 @@ async function fetchVersions(): Promise<string[]> {
|
100 | 53 | }
|
101 | 54 | </script>
|
102 | 55 |
|
| 56 | +<template> |
| 57 | + <nav> |
| 58 | + <h1> |
| 59 | + <img alt="logo" src="/logo.svg"> |
| 60 | + <span>Vue SFC Playground</span> |
| 61 | + </h1> |
| 62 | + <div class="links"> |
| 63 | + <div class="version" @click.stop> |
| 64 | + <span class="active-version" @click="toggle"> |
| 65 | + Version: {{ activeVersion }} |
| 66 | + </span> |
| 67 | + <ul class="versions" :class="{ expanded }"> |
| 68 | + <li v-if="!publishedVersions"><a>loading versions...</a></li> |
| 69 | + <li v-for="version of publishedVersions"> |
| 70 | + <a @click="setVueVersion(version)">v{{ version }}</a> |
| 71 | + </li> |
| 72 | + <li><a @click="resetVueVersion">This Commit ({{ currentCommit }})</a></li> |
| 73 | + <li> |
| 74 | + <a href="https://app.netlify.com/sites/vue-sfc-playground/deploys" target="_blank">Commits History</a> |
| 75 | + </li> |
| 76 | + </ul> |
| 77 | + </div> |
| 78 | + <button class="share" @click="copyLink"> |
| 79 | + <svg width="1.4em" height="1.4em" viewBox="0 0 24 24"> |
| 80 | + <g fill="none" stroke="#626262" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> |
| 81 | + <circle cx="18" cy="5" r="3"/> |
| 82 | + <circle cx="6" cy="12" r="3"/> |
| 83 | + <circle cx="18" cy="19" r="3"/> |
| 84 | + <path d="M8.59 13.51l6.83 3.98"/> |
| 85 | + <path d="M15.41 6.51l-6.82 3.98"/> |
| 86 | + </g> |
| 87 | + </svg> |
| 88 | + </button> |
| 89 | + <button class="download" @click="downloadProject"> |
| 90 | + <svg width="1.7em" height="1.7em" viewBox="0 0 24 24"> |
| 91 | + <g fill="#626262"> |
| 92 | + <rect x="4" y="18" width="16" height="2" rx="1" ry="1"/> |
| 93 | + <rect x="3" y="17" width="4" height="2" rx="1" ry="1" transform="rotate(-90 5 18)"/> |
| 94 | + <rect x="17" y="17" width="4" height="2" rx="1" ry="1" transform="rotate(-90 19 18)"/> |
| 95 | + <path d="M12 15a1 1 0 0 1-.58-.18l-4-2.82a1 1 0 0 1-.24-1.39a1 1 0 0 1 1.4-.24L12 12.76l3.4-2.56a1 1 0 0 1 1.2 1.6l-4 3a1 1 0 0 1-.6.2z"/> |
| 96 | + <path d="M12 13a1 1 0 0 1-1-1V4a1 1 0 0 1 2 0v8a1 1 0 0 1-1 1z"/> |
| 97 | + </g> |
| 98 | + </svg> |
| 99 | + </button> |
| 100 | + </div> |
| 101 | + </nav> |
| 102 | +</template> |
| 103 | + |
103 | 104 | <style>
|
104 | 105 | nav {
|
105 | 106 | height: var(--nav-height);
|
|
0 commit comments