File tree Expand file tree Collapse file tree 2 files changed +13
-3
lines changed
packages/sfc-playground/src Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -111,12 +111,18 @@ async function fetchVersions(): Promise<string[]> {
111
111
</li >
112
112
</ul >
113
113
</div >
114
- <button class =" toggle-dark" @click =" toggleDark" >
114
+ <button title = " Toggle dark mode " class =" toggle-dark" @click =" toggleDark" >
115
115
<Sun class =" light" />
116
116
<Moon class =" dark" />
117
117
</button >
118
- <button class =" share" @click =" copyLink" ><Share /></button >
119
- <button class =" download" @click =" downloadProject(store)" >
118
+ <button title =" Copy sharable URL" class =" share" @click =" copyLink" >
119
+ <Share />
120
+ </button >
121
+ <button
122
+ title =" Download project files"
123
+ class =" download"
124
+ @click =" downloadProject(store)"
125
+ >
120
126
<Download />
121
127
</button >
122
128
</div >
Original file line number Diff line number Diff line change @@ -7,6 +7,10 @@ import config from './template/vite.config.js?raw'
7
7
import readme from './template/README.md?raw'
8
8
9
9
export async function downloadProject ( store : any ) {
10
+ if ( ! confirm ( 'Download project files?' ) ) {
11
+ return
12
+ }
13
+
10
14
const { default : JSZip } = await import ( 'jszip' )
11
15
const zip = new JSZip ( )
12
16
You can’t perform that action at this time.
0 commit comments