From e3dcc1d65134be7f3a165e43c8aa919afb95f22b Mon Sep 17 00:00:00 2001 From: zjwmiao <1723168479@qq.com> Date: Tue, 31 Dec 2024 14:25:45 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20footer=E5=B9=B4=E4=BB=BD=E5=8A=A8?= =?UTF-8?q?=E6=80=81=E8=8E=B7=E5=8F=96=E3=80=81=E9=82=AE=E7=AE=B1=E6=94=B9?= =?UTF-8?q?=E7=94=A8a=E6=A0=87=E7=AD=BE+mailto?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/euler/auto-imports.d.ts | 3 +- packages/euler/components.d.ts | 23 +- packages/euler/src/api/index.ts | 2 +- packages/euler/src/components/AppFooter.vue | 14 +- packages/euler/src/i18n/lang/enLanguage.ts | 2 +- packages/euler/src/i18n/lang/zhLanguage.ts | 2 +- packages/euler/src/views/mobile/Index.vue | 14 +- packages/gauss/components.d.ts | 23 +- packages/gauss/src/components/AppFooter.vue | 14 +- packages/gauss/src/i18n/lang/enLanguage.ts | 65 +- packages/gauss/src/i18n/lang/zhLanguage.ts | 2 +- packages/gauss/src/views/mobile/Index.vue | 29 +- packages/lookeng/auto-imports.d.ts | 3 +- packages/lookeng/components.d.ts | 17 +- packages/lookeng/src/components/AppFooter.vue | 14 +- packages/lookeng/src/i18n/lang/enLanguage.ts | 2 +- packages/lookeng/src/i18n/lang/zhLanguage.ts | 2 +- packages/lookeng/src/views/mobile/Index.vue | 19 +- packages/mindspore/auto-imports.d.ts | 3 +- packages/mindspore/components.d.ts | 13 +- packages/mindspore/src/api/index.ts | 1 + .../mindspore/src/components/AppFooter.vue | 29 +- .../mindspore/src/i18n/lang/enLanguage.ts | 3 +- .../mindspore/src/i18n/lang/zhLanguage.ts | 3 +- packages/mindspore/src/views/mobile/Index.vue | 28 +- packages/shared/utils/helper.ts | 16 + pnpm-lock.yaml | 3628 ++++++++++------- 27 files changed, 2282 insertions(+), 1692 deletions(-) diff --git a/packages/euler/auto-imports.d.ts b/packages/euler/auto-imports.d.ts index 5e073f1..08908ed 100644 --- a/packages/euler/auto-imports.d.ts +++ b/packages/euler/auto-imports.d.ts @@ -1,6 +1,5 @@ // Generated by 'unplugin-auto-import' -// We suggest you to commit this file into source control +export {} declare global { } -export {} diff --git a/packages/euler/components.d.ts b/packages/euler/components.d.ts index c9188cb..2addf9e 100644 --- a/packages/euler/components.d.ts +++ b/packages/euler/components.d.ts @@ -1,8 +1,11 @@ -// generated by unplugin-vue-components -// We suggest you to commit this file into source control -// Read more: https://github.com/vuejs/vue-next/pull/3399 +/* eslint-disable */ +/* prettier-ignore */ +// @ts-nocheck +// Generated by unplugin-vue-components +// Read more: https://github.com/vuejs/core/pull/3399 +export {} -declare module '@vue/runtime-core' { +declare module 'vue' { export interface GlobalComponents { AppFooter: typeof import('./src/components/AppFooter.vue')['default'] AppHeader: typeof import('./src/components/AppHeader.vue')['default'] @@ -11,6 +14,8 @@ declare module '@vue/runtime-core' { ElAutocomplete: typeof import('element-plus/es')['ElAutocomplete'] ElAvatar: typeof import('element-plus/es')['ElAvatar'] ElButton: typeof import('element-plus/es')['ElButton'] + ElCheckbox: typeof import('element-plus/es')['ElCheckbox'] + ElCheckboxGroup: typeof import('element-plus/es')['ElCheckboxGroup'] ElCol: typeof import('element-plus/es')['ElCol'] ElDialog: typeof import('element-plus/es')['ElDialog'] ElDrawer: typeof import('element-plus/es')['ElDrawer'] @@ -19,19 +24,14 @@ declare module '@vue/runtime-core' { ElDropdownMenu: typeof import('element-plus/es')['ElDropdownMenu'] ElForm: typeof import('element-plus/es')['ElForm'] ElFormItem: typeof import('element-plus/es')['ElFormItem'] - ElIcon: typeof import('element-plus/es')['ElIcon'] - ElInput: typeof import('element-plus/es')['ElInput'] - ElPagination: typeof import('element-plus/es')['ElPagination'] ElProgress: typeof import('element-plus/es')['ElProgress'] ElRadio: typeof import('element-plus/es')['ElRadio'] ElRadioGroup: typeof import('element-plus/es')['ElRadioGroup'] ElRow: typeof import('element-plus/es')['ElRow'] - ElScrollbar: typeof import('element-plus/es')['ElScrollbar'] ElSwitch: typeof import('element-plus/es')['ElSwitch'] ElTable: typeof import('element-plus/es')['ElTable'] ElTableColumn: typeof import('element-plus/es')['ElTableColumn'] ElTooltip: typeof import('element-plus/es')['ElTooltip'] - Loading: typeof import('element-plus/es')['ElLoadingDirective'] LoadingArc: typeof import('./src/components/LoadingArc.vue')['default'] MobileTemplate: typeof import('./src/components/MobileTemplate.vue')['default'] OFormRadio: typeof import('./src/components/OFormRadio.vue')['default'] @@ -42,6 +42,7 @@ declare module '@vue/runtime-core' { TheList: typeof import('./src/components/TheList.vue')['default'] TheProgress: typeof import('./src/components/TheProgress.vue')['default'] } + export interface ComponentCustomProperties { + vLoading: typeof import('element-plus/es')['ElLoadingDirective'] + } } - -export { } diff --git a/packages/euler/src/api/index.ts b/packages/euler/src/api/index.ts index dc9ed98..2277af3 100644 --- a/packages/euler/src/api/index.ts +++ b/packages/euler/src/api/index.ts @@ -9,5 +9,5 @@ export const openCommunityInfo = { name: 'openeuler', link: 'https://www.openeuler.org/zh/', link_en: 'https://www.openeuler.org/en/', - email: 'contact@openeuler.sh', + email: 'contact@openeuler.io', }; diff --git a/packages/euler/src/components/AppFooter.vue b/packages/euler/src/components/AppFooter.vue index aa71a2a..6761309 100644 --- a/packages/euler/src/components/AppFooter.vue +++ b/packages/euler/src/components/AppFooter.vue @@ -3,6 +3,7 @@ import { computed } from 'vue'; import { openCommunityInfo } from '@/api/index'; import { useI18n } from 'vue-i18n'; import { useCommonStore } from '@/stores/common'; +import { getYearByOffset } from 'shared/utils/helper'; import logo from '@/assets/datastat.png'; import logoZh from '@/assets/datastat-zh.png'; @@ -30,8 +31,15 @@ locale.value = localStorage.getItem('lang') || 'zh'; > - - + {{ openCommunityInfo.email }} +
-

{{ openCommunityInfo.email }}

-

{{ t('footer.copyright') }}

+

+ {{ + openCommunityInfo.email + }} +

+

+ {{ t('footer.copyright', { year: getYearByOffset() }) }} +

@@ -711,6 +718,9 @@ const goToUser = (data: IObject) => { p { font-size: 12px; color: #555; + a { + color: inherit; + } } .cy { color: #999; diff --git a/packages/gauss/components.d.ts b/packages/gauss/components.d.ts index 23b0eb6..597cdb4 100644 --- a/packages/gauss/components.d.ts +++ b/packages/gauss/components.d.ts @@ -1,15 +1,15 @@ -// generated by unplugin-vue-components -// We suggest you to commit this file into source control -// Read more: https://github.com/vuejs/vue-next/pull/3399 +/* eslint-disable */ +/* prettier-ignore */ +// @ts-nocheck +// Generated by unplugin-vue-components +// Read more: https://github.com/vuejs/core/pull/3399 +export {} -declare module '@vue/runtime-core' { +declare module 'vue' { export interface GlobalComponents { AppFooter: typeof import('./src/components/AppFooter.vue')['default'] AppHeader: typeof import('./src/components/AppHeader.vue')['default'] - AppHeader2: typeof import('./src/components/AppHeader2.vue')['default'] AppHeaderMobile: typeof import('./src/components/AppHeaderMobile.vue')['default'] - 'AppHeaderMobile copy': typeof import('./src/components/AppHeaderMobile copy.vue')['default'] - AppHeaderMobile2: typeof import('./src/components/AppHeaderMobile2.vue')['default'] AppMobileMenu: typeof import('./src/components/AppMobileMenu.vue')['default'] ElAutocomplete: typeof import('element-plus/es')['ElAutocomplete'] ElCol: typeof import('element-plus/es')['ElCol'] @@ -19,9 +19,7 @@ declare module '@vue/runtime-core' { ElDropdownMenu: typeof import('element-plus/es')['ElDropdownMenu'] ElForm: typeof import('element-plus/es')['ElForm'] ElFormItem: typeof import('element-plus/es')['ElFormItem'] - ElInput: typeof import('element-plus/es')['ElInput'] ElOption: typeof import('element-plus/es')['ElOption'] - ElPagination: typeof import('element-plus/es')['ElPagination'] ElProgress: typeof import('element-plus/es')['ElProgress'] ElRadio: typeof import('element-plus/es')['ElRadio'] ElRadioGroup: typeof import('element-plus/es')['ElRadioGroup'] @@ -31,7 +29,6 @@ declare module '@vue/runtime-core' { ElTable: typeof import('element-plus/es')['ElTable'] ElTableColumn: typeof import('element-plus/es')['ElTableColumn'] ElTooltip: typeof import('element-plus/es')['ElTooltip'] - Loading: typeof import('element-plus/es')['ElLoadingDirective'] LoadingArc: typeof import('./src/components/LoadingArc.vue')['default'] MobileTemplate: typeof import('./src/components/MobileTemplate.vue')['default'] OFormRadio: typeof import('./src/components/OFormRadio.vue')['default'] @@ -41,8 +38,8 @@ declare module '@vue/runtime-core' { TheForm: typeof import('./src/components/TheForm.vue')['default'] TheList: typeof import('./src/components/TheList.vue')['default'] TheProgress: typeof import('./src/components/TheProgress.vue')['default'] - TheProgress1: typeof import('./src/components/TheProgress1.vue')['default'] + } + export interface ComponentCustomProperties { + vLoading: typeof import('element-plus/es')['ElLoadingDirective'] } } - -export { } diff --git a/packages/gauss/src/components/AppFooter.vue b/packages/gauss/src/components/AppFooter.vue index 6769788..cd01a73 100644 --- a/packages/gauss/src/components/AppFooter.vue +++ b/packages/gauss/src/components/AppFooter.vue @@ -7,6 +7,7 @@ import { useCommonStore } from '@/stores/common'; import logo from '@/assets/datastat.png'; import logoZh from '@/assets/datastat-zh.png'; import communityLogo from '@/assets/opengauss-logo.png'; +import { getYearByOffset } from 'shared/utils/helper'; const { t, locale } = useI18n(); const useCommon = useCommonStore(); @@ -24,8 +25,15 @@ locale.value = localStorage.getItem('lang') || 'zh'; > - - + {{ openCommunityInfo.email }} +