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[]> {
111111 </li >
112112 </ul >
113113 </div >
114- <button class =" toggle-dark" @click =" toggleDark" >
114+ <button title = " Toggle dark mode " class =" toggle-dark" @click =" toggleDark" >
115115 <Sun class =" light" />
116116 <Moon class =" dark" />
117117 </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+ >
120126 <Download />
121127 </button >
122128 </div >
Original file line number Diff line number Diff line change @@ -7,6 +7,10 @@ import config from './template/vite.config.js?raw'
77import readme from './template/README.md?raw'
88
99export async function downloadProject ( store : any ) {
10+ if ( ! confirm ( 'Download project files?' ) ) {
11+ return
12+ }
13+
1014 const { default : JSZip } = await import ( 'jszip' )
1115 const zip = new JSZip ( )
1216
You can’t perform that action at this time.
0 commit comments