File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ onMounted(async () => {
3939
4040 const firstDayDt = DateTime .fromISO (days .value [0 ].time )
4141 if (firstDayDt .weekday !== 1 ) {
42- days .value .unshift (... new Array ( firstDayDt .weekday - 1 ))
42+ days .value .unshift (... Array . from ({ length : firstDayDt .weekday - 1 } ))
4343 }
4444
4545 /** days -> weeks */
@@ -55,14 +55,14 @@ onMounted(async () => {
5555
5656 /** fill empty weeks */
5757 while (weeks .value .length < 24 ) {
58- weeks .value .push (new Array ( 7 ))
58+ weeks .value .push (Array . from ({ length : 7 } ))
5959 }
6060
6161 /** remove first weeks */
6262 while (weeks .value .length > 24 ) {
6363 weeks .value .shift ()
6464 }
65-
65+
6666 totalSize .time = Object .values (weeks .value [0 ]).find (Boolean ).time
6767})
6868
@@ -77,8 +77,8 @@ const calculateOpacity = (val) => {
7777}
7878
7979const selectDay = (d ) => {
80- let from = parseInt (DateTime .fromISO (d .time ).startOf (' day' ).ts / 1_000 )
81- let to = parseInt (DateTime .fromISO (d .time ).endOf (' day' ).ts / 1_000 )
80+ let from = parseInt (DateTime .fromISO (d .time ).startOf (" day" ).ts / 1_000 )
81+ let to = parseInt (DateTime .fromISO (d .time ).endOf (" day" ).ts / 1_000 )
8282 router .push (` /txs?message_type=MsgPayForBlobs&from=${ from} &to=${ to} ` )
8383}
8484 </script >
You can’t perform that action at this time.
0 commit comments