diff --git a/components/AppTabs.vue b/components/AppTabs.vue index 646783d..f0b709a 100644 --- a/components/AppTabs.vue +++ b/components/AppTabs.vue @@ -5,11 +5,12 @@ :key="tab.id" :text="tab.title" :icon-left="$icons.cube" + :route="tab.route" color="secondary" scheme="none" modification="none" class="app-tabs__btn" - :class="{ 'app-tabs__btn--active': modelValue.id === tab.id }" + :class="{ 'app-tabs__btn--active': modelValue?.id === tab.id }" @click="updateTab(tab)" /> @@ -20,7 +21,7 @@ import { AppButton } from '#components' import { Tab } from '@/types' defineProps<{ - modelValue: Tab + modelValue?: Tab tabs: Tab[] }>() @@ -54,6 +55,7 @@ const updateTab = (tab: Tab) => { --app-button-text-focused: var(--text-primary-invert-main); --app-button-text-active: var(--text-primary-invert-main); + &.router-link-active, &--active { --app-button-bg: var(--primary-main); --app-button-bg-hover: var(--primary-main); diff --git a/components/ToolsSidebar.vue b/components/ToolsSidebar.vue index 5065f3a..9dc1448 100644 --- a/components/ToolsSidebar.vue +++ b/components/ToolsSidebar.vue @@ -71,7 +71,7 @@ const navLinks = computed(() => [ { title: t('tools-sidebar.hash-functions-title'), icon: ICON_NAMES.hashtag, - route: ROUTE_PATH.hashFunctions, + route: ROUTE_PATH.hashFunction, }, { title: t('tools-sidebar.converter-title'), diff --git a/constants/route-names.constant.ts b/constants/route-names.constant.ts index 67a5236..d1448c2 100644 --- a/constants/route-names.constant.ts +++ b/constants/route-names.constant.ts @@ -2,8 +2,19 @@ export const ROUTE_PATH = { app: '/', audits: '/audits', abi: '/abi', + abiEncoder: '/abi/encoder', + abiDecoder: '/abi/decoder', unixEpoch: '/unix-epoch', + unixEpochDate: '/unix-epoch/date', + unixEpochTimestamp: '/unix-epoch/timestamp', converter: '/converter', - hashFunctions: '/hash-functions', + converterUnit: '/converter/unit', + converterNumber: '/converter/number', + hashFunction: '/hash-function', + hashFunctionKeccak256: '/hash-function/keccak256', + hashFunctionSha256: '/hash-function/sha256', + hashFunctionRipemd160: '/hash-function/ripemd160', addressPredicator: '/address-predictor', + addressPredicatorCreate: '/address-predictor/create', + addressPredicatorCreate2: '/address-predictor/create2', } diff --git a/error.vue b/error.vue index ef14deb..c1ce6a4 100644 --- a/error.vue +++ b/error.vue @@ -1,4 +1,5 @@ diff --git a/forms/AbiDecodeForm.vue b/forms/AbiDecodeForm.vue index 381abe1..7931882 100644 --- a/forms/AbiDecodeForm.vue +++ b/forms/AbiDecodeForm.vue @@ -3,7 +3,7 @@