diff --git a/public/favicon.ico b/public/favicon.ico index 8fb9f91..3254b24 100644 Binary files a/public/favicon.ico and b/public/favicon.ico differ diff --git a/src/App.vue b/src/App.vue index bf36424..3873ea4 100644 --- a/src/App.vue +++ b/src/App.vue @@ -24,35 +24,109 @@ class="drawer-transition" :width="drawerWidth" > - - - {{ locale === 'zh' ? '计算工具' : 'Calculator' }} - - - {{ locale === 'zh' ? '纸管计算辅助工具' : 'Paper Tube Calculator' }} - - - - - - - - {{ item.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 }} + + + @@ -83,6 +169,20 @@ const selectedIndex = ref(0) const windowWidth = ref(typeof window === 'undefined' ? 1200 : window.innerWidth) + const showAboutDialog = ref(false) + + // 应用信息 + const appInfo = computed(() => { + return { + appName: t('appTitle'), + version: '1.0.0', + author: t('companyName'), + description: t('appDescription'), + copyright: `© ${new Date().getFullYear()} ${t('companyName')}. ${t('allRightsReserved')}`, + officialWebsite: 'http://www.jinshen.cn', + } + }) + // 动态设置网页标题 const pageTitle = computed(() => { return t('appTitle') diff --git a/src/assets/logo.ico b/src/assets/logo.ico new file mode 100644 index 0000000..3254b24 Binary files /dev/null and b/src/assets/logo.ico differ diff --git a/src/assets/logo.png b/src/assets/logo.png index a5f23ae..78b762e 100644 Binary files a/src/assets/logo.png and b/src/assets/logo.png differ diff --git a/src/assets/logo.svg b/src/assets/logo.svg deleted file mode 100644 index d57771c..0000000 --- a/src/assets/logo.svg +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/src/components/AppFooter.vue b/src/components/AppFooter.vue deleted file mode 100644 index 1984bef..0000000 --- a/src/components/AppFooter.vue +++ /dev/null @@ -1,82 +0,0 @@ - - - - - - - - © 2016-{{ (new Date()).getFullYear() }} Vuetify, LLC - — - - MIT License - - - - - - - - diff --git a/src/components/HelloWorld.vue b/src/components/HelloWorld.vue deleted file mode 100644 index 554c0eb..0000000 --- a/src/components/HelloWorld.vue +++ /dev/null @@ -1,90 +0,0 @@ - - - - - - - Welcome to - Vuetify - - - - - - - - - - - - Get started - - - - - - Change this page by updating {{ `` }} in components/HelloWorld.vue. - - - - - - - - - - - - - - diff --git a/src/locale/en.json b/src/locale/en.json index f516c26..508c1cb 100644 --- a/src/locale/en.json +++ b/src/locale/en.json @@ -62,5 +62,12 @@ "calculatedValue": "Calculated value", "fit": "FIT", "notFit": "NOT FIT", - "multiLayerExcelOutputFile": "MultiLayerPaperTapeWidthAngle" + "multiLayerExcelOutputFile": "MultiLayerPaperTapeWidthAngle", + "about": "About", + "calculator": "Calculator", + "companyName": "Zhejiang Jinshen Machinery Manufacturing Co., Ltd.", + "appDescription": "Paper tube production auxiliary production tool provides calculation of various parameters such as weight, size, angle, etc.", + "allRightsReserved": "All Rights Reserved", + "close": "Close", + "officialWebsite": "Official website" } diff --git a/src/locale/zh.json b/src/locale/zh.json index 6251610..1aaaf59 100644 --- a/src/locale/zh.json +++ b/src/locale/zh.json @@ -62,5 +62,12 @@ "calculatedValue": "计算值", "fit": "符合", "notFit": "不符合", - "multiLayerExcelOutputFile": "多层纸带宽度角度计算" + "multiLayerExcelOutputFile": "多层纸带宽度角度计算", + "about": "关于", + "calculator": "计算工具", + "companyName": "浙江金申机械制造有限公司", + "appDescription": "纸管制作辅助生产工具,提供纸管重量、尺寸、角度等多种参数的计算。", + "allRightsReserved": "版权所有", + "close": "关闭", + "officialWebsite": "官方网站" } diff --git a/vite.config.mts b/vite.config.mts index 9436612..7de3d58 100644 --- a/vite.config.mts +++ b/vite.config.mts @@ -96,5 +96,5 @@ export default defineConfig({ }, }, }, - base: process.env.NODE_ENV === 'production' ? '/calculator-dev/' : '/', + base: process.env.NODE_ENV === 'production' ? '/calculator/' : '/', })