@@ -75,8 +75,8 @@ function setupEventListeners() {
7575
7676 dom . inputsStartMax . forEach ( input => {
7777 input . addEventListener ( "wheel" , e => {
78- e . preventDefault ( ) ;
79- input . focus ( ) ;
78+ e . preventDefault ( ) ;
79+ input . focus ( ) ;
8080 const step = Number ( input . step ) || 1 ;
8181 const min = input . min !== "" ? Number ( input . min ) : - Infinity ;
8282 const max = input . max !== "" ? Number ( input . max ) : Infinity ;
@@ -85,7 +85,7 @@ function setupEventListeners() {
8585 value += e . deltaY < 0 ? step : - step ;
8686
8787 input . value = Math . min ( max , Math . max ( min , value ) ) ;
88- updateUrlParam ( ) ;
88+ updateUrlParam ( ) ;
8989 } ) ;
9090 } ) ;
9191
@@ -120,20 +120,20 @@ function setupEventListeners() {
120120 dom . themeSelect . addEventListener ( "change" , ( t ) => {
121121 changeTheme ( t . target . value ) ;
122122 } ) ,
123- dom . forceZipInput . addEventListener ( "change" , ( ) => {
124- state . forceZip = dom . forceZipInput . checked ;
125- localStorage . setItem ( "force_zip" , state . forceZip ) ;
126- } ) ;
127-
128- dom . themeBtn . addEventListener ( "click" , ( ) => {
129- const t = Object . keys ( THEME_DEFAULTS ) ,
130- e = ( t . indexOf ( state . theme ) + 1 ) % t . length ;
131- changeTheme ( t [ e ] ) ;
132- } ) ,
123+ dom . forceZipInput . addEventListener ( "change" , ( ) => {
124+ state . forceZip = dom . forceZipInput . checked ;
125+ localStorage . setItem ( "force_zip" , state . forceZip ) ;
126+ } ) ;
127+
128+ dom . themeBtn . addEventListener ( "click" , ( ) => {
129+ const t = Object . keys ( THEME_DEFAULTS ) ,
130+ e = ( t . indexOf ( state . theme ) + 1 ) % t . length ;
131+ changeTheme ( t [ e ] ) ;
132+ } ) ,
133133 dom . accentInput . addEventListener ( "input" , ( t ) => {
134134 ( state . accentColor = t . target . value ) ,
135- state . accentIsCustom = true ;
136- applyAccentColor ( state . accentColor ) ,
135+ state . accentIsCustom = true ;
136+ applyAccentColor ( state . accentColor ) ,
137137 localStorage . setItem ( "accent" , state . accentColor ) ;
138138 } ) ;
139139}
@@ -284,7 +284,7 @@ async function startProcess() {
284284 t . branch = e . default_branch ;
285285 }
286286 "blob" === t . type ? await downloadSingleFile ( t ) : await downloadFolder ( t ) ,
287- updateStatus ( "Complete !" , 100 ) ,
287+ updateStatus ( "Completed !" , 100 ) ,
288288 showToast ( "Download Finished" , "success" ) ;
289289 } catch ( t ) {
290290 showToast ( t . message , "error" ) ,
@@ -318,7 +318,7 @@ async function downloadFolder(t) {
318318
319319 const a = allBlobs . slice ( startIndex , endIndex ) ;
320320
321- dom . fileCount . textContent = `Downloading ${ a . length } files (${ startIndex } - ${ endIndex } of ${ allBlobs . length } )` ;
321+ dom . fileCount . textContent = `Downloading ${ a . length } files from (${ startIndex } to ${ endIndex } of ${ allBlobs . length } )` ;
322322 renderPreview ( a ) ;
323323
324324 const s = new JSZip ( ) ;
@@ -331,7 +331,7 @@ async function downloadFolder(t) {
331331 o = t . path ? e . path . substring ( t . path . length + 1 ) : e . path ;
332332 s . file ( o , n ) ,
333333 r ++ ,
334- updateStatus ( `Downloading ${ r } / ${ a . length } ` , ( r / a . length ) * 90 ) ;
334+ updateStatus ( `Downloaded ${ r } from ${ a . length } ` , ( r / a . length ) * 90 ) ;
335335 } catch ( t ) { }
336336 } )
337337 ) ;
0 commit comments