diff --git a/src/App.vue b/src/App.vue index 3873ea4..9f212ff 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,311 +1,8 @@ - - - - {{ menuItems[selectedIndex].title }} - - - - - - - - - - - - - {{ $t('calculator') }} - - - {{ $t('appTitle') }} - - - - - - - - - {{ item.title }} - - - - - - - - - {{ $t('about') }} - - - - - - - - - - - - {{ appInfo.appName }} - - - - - - {{ appInfo.version }} - {{ appInfo.copyright }} - - - - - - - {{ appInfo.description }} - - - - - {{ $t('officialWebsite') }}: - - {{ appInfo.officialWebsite }} - - - - - - - {{ $t('close') }} - - - - - - - - - - - - - - - - - © {{ new Date().getFullYear() }} {{ appInfo.author }} - {{ $t('allRightsReserved') }} - - - v{{ appInfo.version }} - - - + - diff --git a/src/config/navigation.ts b/src/config/navigation.ts new file mode 100644 index 0000000..0d4c494 --- /dev/null +++ b/src/config/navigation.ts @@ -0,0 +1,33 @@ +export interface NavigationItem { + title: string + to: string + icon?: string + component?: string +} + +export const navigationConfig: NavigationItem[] = [ + { + title: 'paperTubeWeightCalculate', + to: '/calculators/paper-tube-weight', + }, + { + title: 'beltSpecificationCalculate', + to: '/calculators/belt-specification', + }, + { + title: 'paperRollWeightLengthCalculate', + to: '/calculators/paper-roll-weight-length', + }, + { + title: 'paperTubeProductionCalculate', + to: '/calculators/paper-tube-production', + }, + { + title: 'paperTapeWidthAngleCalculate', + to: '/calculators/paper-tape-width-angle', + }, + { + title: 'multiLayerPaperTapeWidthAngleCalculate', + to: '/calculators/multi-layer-paper-tape-width-angle', + }, +] diff --git a/src/layouts/CalculatorLayout.vue b/src/layouts/CalculatorLayout.vue new file mode 100644 index 0000000..a45e502 --- /dev/null +++ b/src/layouts/CalculatorLayout.vue @@ -0,0 +1,274 @@ + + + + + + {{ menuItems[selectedIndex].title }} + + + + + + + + + + + + + {{ $t('calculator') }} + + + {{ $t('appTitle') }} + + + + + + + + + {{ item.title }} + + + + + + + + + {{ $t('about') }} + + + + + + + + + + + + {{ appInfo.appName }} + + + + + + {{ appInfo.version }} + {{ appInfo.copyright }} + + + + + + + {{ appInfo.description }} + + + + + {{ $t('officialWebsite') }}: + + {{ appInfo.officialWebsite }} + + + + + + + {{ $t('close') }} + + + + + + + + + + + + + + + + + + + © {{ new Date().getFullYear() }} {{ appInfo.author }} - {{ $t('allRightsReserved') }} + + + v{{ appInfo.version }} + + + + + + + + diff --git a/src/layouts/baseline.vue b/src/layouts/baseline.vue deleted file mode 100644 index b326d60..0000000 --- a/src/layouts/baseline.vue +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - - - Baseline Layout - - - - - - - - - - diff --git a/src/layouts/default.vue b/src/layouts/default.vue index 651a9b0..1e18262 100644 --- a/src/layouts/default.vue +++ b/src/layouts/default.vue @@ -3,7 +3,6 @@ - + + + meta: + layout: CalculatorLayout + title: beltSpecification + diff --git a/src/pages/calculators/multi-layer-paper-tape-width-angle.vue b/src/pages/calculators/multi-layer-paper-tape-width-angle.vue new file mode 100644 index 0000000..85a7fa5 --- /dev/null +++ b/src/pages/calculators/multi-layer-paper-tape-width-angle.vue @@ -0,0 +1,13 @@ + + + + + + + + meta: + layout: CalculatorLayout + title: multiLayerPaperTapeWidthAngle + diff --git a/src/pages/calculators/paper-roll-weight-length.vue b/src/pages/calculators/paper-roll-weight-length.vue new file mode 100644 index 0000000..a656eba --- /dev/null +++ b/src/pages/calculators/paper-roll-weight-length.vue @@ -0,0 +1,13 @@ + + + + + + + + meta: + layout: CalculatorLayout + title: paperRollWeightLength + diff --git a/src/pages/calculators/paper-tape-width-angle.vue b/src/pages/calculators/paper-tape-width-angle.vue new file mode 100644 index 0000000..802a6a6 --- /dev/null +++ b/src/pages/calculators/paper-tape-width-angle.vue @@ -0,0 +1,13 @@ + + + + + + + + meta: + layout: CalculatorLayout + title: paperTapeWidthAngle + diff --git a/src/pages/calculators/paper-tube-production.vue b/src/pages/calculators/paper-tube-production.vue new file mode 100644 index 0000000..91b6503 --- /dev/null +++ b/src/pages/calculators/paper-tube-production.vue @@ -0,0 +1,13 @@ + + + + + + + + meta: + layout: CalculatorLayout + title: paperTubeProduction + diff --git a/src/pages/calculators/paper-tube-weight.vue b/src/pages/calculators/paper-tube-weight.vue new file mode 100644 index 0000000..032843e --- /dev/null +++ b/src/pages/calculators/paper-tube-weight.vue @@ -0,0 +1,13 @@ + + + + + + + + meta: + layout: CalculatorLayout + title: paperTubeWeight + diff --git a/src/pages/index.vue b/src/pages/index.vue index a5537bf..74809d8 100644 --- a/src/pages/index.vue +++ b/src/pages/index.vue @@ -1,6 +1,15 @@ - + Redirecting... diff --git a/src/typed-router.d.ts b/src/typed-router.d.ts index 331ee51..21247ae 100644 --- a/src/typed-router.d.ts +++ b/src/typed-router.d.ts @@ -19,5 +19,11 @@ declare module 'vue-router/auto-routes' { */ export interface RouteNamedMap { '/': RouteRecordInfo<'/', '/', Record, Record>, + '/calculators/belt-specification': RouteRecordInfo<'/calculators/belt-specification', '/calculators/belt-specification', Record, Record>, + '/calculators/multi-layer-paper-tape-width-angle': RouteRecordInfo<'/calculators/multi-layer-paper-tape-width-angle', '/calculators/multi-layer-paper-tape-width-angle', Record, Record>, + '/calculators/paper-roll-weight-length': RouteRecordInfo<'/calculators/paper-roll-weight-length', '/calculators/paper-roll-weight-length', Record, Record>, + '/calculators/paper-tape-width-angle': RouteRecordInfo<'/calculators/paper-tape-width-angle', '/calculators/paper-tape-width-angle', Record, Record>, + '/calculators/paper-tube-production': RouteRecordInfo<'/calculators/paper-tube-production', '/calculators/paper-tube-production', Record, Record>, + '/calculators/paper-tube-weight': RouteRecordInfo<'/calculators/paper-tube-weight', '/calculators/paper-tube-weight', Record, Record>, } }