File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -166,7 +166,10 @@ const handleChangeTheme = (target) => {
166166 <Text size =" 12" weight =" 500" color =" tertiary" > Addresses </Text >
167167 </NuxtLink >
168168 <NuxtLink to =" /gas" :class =" $style.link" >
169- <Text size =" 12" weight =" 500" color =" tertiary" >Gas Tracker</Text >
169+ <Text size =" 12" weight =" 500" color =" tertiary" > Gas Tracker </Text >
170+ </NuxtLink >
171+ <NuxtLink to =" https://docs.celenium.io" :class =" $style.link" target =" _blank" >
172+ <Text size =" 12" weight =" 500" color =" tertiary" > Docs </Text >
170173 </NuxtLink >
171174 </Flex >
172175 </Flex >
Original file line number Diff line number Diff line change @@ -273,6 +273,15 @@ const rawNavigationActions = [
273273 router .push (" /addresses" )
274274 },
275275 },
276+ {
277+ type: " callback" ,
278+ icon: " arrow-narrow-right" ,
279+ title: " Go to Documentation" ,
280+ runText: " Open Documentation" ,
281+ callback : () => {
282+ window .open (" https://docs.celenium.io" , " _blank" )
283+ },
284+ },
276285]
277286const navigationGroup = computed (() => {
278287 const actions = rawNavigationActions .map ((a ) => ({ id: id (), ... a }))
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ onMounted(async () => {
2929 days .value .reverse ()
3030
3131 totalSize .value = days .value .reduce ((a , b ) => (a += parseInt (b .value )), 0 )
32- minValue .value = Math .min (... days .value .map ((d ) => d .value ).filter (value => value > 0 ))
32+ minValue .value = Math .min (... days .value .map ((d ) => d .value ).filter (( value ) => value > 0 ))
3333 maxValue .value = Math .max (... days .value .map ((d ) => d .value ))
3434
3535 const firstDayDt = DateTime .fromISO (days .value [0 ].time )
@@ -53,7 +53,7 @@ onMounted(async () => {
5353 weeks .value .push (new Array (7 ))
5454 }
5555
56- /** remove unnecessary weeks */
56+ /** remove first weeks */
5757 while (weeks .value .length > 24 ) {
5858 weeks .value .shift ()
5959 }
@@ -74,11 +74,11 @@ const getOpacity = (val) => {
7474const calculateOpacity = (val ) => {
7575 let opacity = 0.4
7676 if (val) {
77- const normalizedValue = (val - minValue .value ) / (maxValue .value - minValue .value );
78- opacity += normalizedValue * 0.6 ;
77+ const normalizedValue = (val - minValue .value ) / (maxValue .value - minValue .value )
78+ opacity += normalizedValue * 0.6
7979 }
8080
81- return opacity;
81+ return opacity
8282}
8383 </script >
8484
You can’t perform that action at this time.
0 commit comments