File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
04/js_taiso_Infinity/js-taiso-001/public Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ function clear() {
6969
7070function guide ( url ) {
7171 promises . push (
72- Promise . all ( [ ... promises ] ) . then ( ( ) =>
72+ Promise . all ( promises ) . then ( ( ) =>
7373 fetch ( url )
7474 . then ( ( res ) => res . arrayBuffer ( ) )
7575 . then ( ( bin ) => {
@@ -88,7 +88,7 @@ function guide(url) {
8888}
8989
9090function draw ( f ) {
91- Promise . all ( [ ... promises ] ) . then ( ( ) => {
91+ Promise . all ( promises ) . then ( ( ) => {
9292 ctx . save ( ) ;
9393 ctx . lineCap = 'round' ;
9494 ctx . lineJoin = 'round' ;
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ function getYearDirectories(basePath: string): string[] {
3434 // Ensure it's a directory and starts with "article-"
3535 return fs . statSync ( yearPath ) . isDirectory ( ) && year . startsWith ( "article-" ) ;
3636 } )
37- . reverse ( ) ; // Process in reverse chronological order (e.g., 2025 before 2024)
37+ . toReversed ( ) ; // Process in reverse chronological order (e.g., 2025 before 2024)
3838}
3939
4040function getMonthDirectories ( yearPath : string ) : string [ ] {
@@ -44,7 +44,7 @@ function getMonthDirectories(yearPath: string): string[] {
4444 const monthPath = path . join ( yearPath , month ) ;
4545 return fs . statSync ( monthPath ) . isDirectory ( ) ;
4646 } )
47- . reverse ( ) ; // Process in reverse chronological order
47+ . toReversed ( ) ; // Process in reverse chronological order
4848}
4949
5050function getArticleIdDirectories ( monthPath : string ) : string [ ] {
@@ -54,7 +54,7 @@ function getArticleIdDirectories(monthPath: string): string[] {
5454 const articlePath = path . join ( monthPath , articleId ) ;
5555 return fs . statSync ( articlePath ) . isDirectory ( ) ;
5656 } )
57- . reverse ( ) ; // Process in reverse chronological order
57+ . toReversed ( ) ; // Process in reverse chronological order
5858}
5959
6060function processArticleDirectory (
You can’t perform that action at this time.
0 commit comments