From 76de6a065b413f9d838a1e4e9797b0a3d62f71fb Mon Sep 17 00:00:00 2001 From: Charles7c Date: Fri, 22 Jul 2022 23:56:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=EF=BC=9A=E7=A7=BB=E9=99=A4?= =?UTF-8?q?=E6=89=A9=E5=B1=95=E9=BB=98=E8=AE=A4=E4=B8=BB=E9=A2=98=E7=9A=84?= =?UTF-8?q?Copyright=E7=BB=84=E4=BB=B6=EF=BC=8C=E5=AE=98=E6=96=B9=E5=B7=B2?= =?UTF-8?q?=E7=BB=8F=E8=B0=83=E6=95=B4=E4=BA=86footer=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E7=9A=84=E6=B8=B2=E6=9F=93=EF=BC=8C=E8=AF=A5=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=E7=9A=84=E6=84=8F=E4=B9=89=E4=B9=9F=E5=B0=B1=E4=B8=8D=E5=AD=98?= =?UTF-8?q?=E5=9C=A8=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 - repos/.vitepress/config/theme.ts | 7 ++- .../.vitepress/theme/components/Copyright.vue | 50 ------------------- .../.vitepress/theme/components/MyLayout.vue | 3 +- repos/.vitepress/theme/index.ts | 12 ----- 5 files changed, 4 insertions(+), 70 deletions(-) delete mode 100644 repos/.vitepress/theme/components/Copyright.vue diff --git a/package.json b/package.json index 70483280e..bc3d8acd9 100644 --- a/package.json +++ b/package.json @@ -14,9 +14,7 @@ "vitepress": "^1.0.0-alpha.4" }, "dependencies": { - "@ant-design/icons-vue": "^6.1.0", "@element-plus/icons-vue": "^2.0.6", - "ant-design-vue": "^3.2.10", "element-plus": "^2.2.9", "fast-glob": "^3.2.11", "vue": "^3.2.37" diff --git a/repos/.vitepress/config/theme.ts b/repos/.vitepress/config/theme.ts index bef0e417e..d94ad292f 100644 --- a/repos/.vitepress/config/theme.ts +++ b/repos/.vitepress/config/theme.ts @@ -15,11 +15,10 @@ export const themeConfig: DefaultTheme.Config = { pattern: 'https://github.com/Charles7c/charles7c.github.io/edit/main/repos/:path', text: '在 GitHub 上编辑此页面' }, - // 页脚配置, 由于vitepress官方没有此计划, 所以自行定制 - footerConfig: { - showFooter: true, // 是否显示页脚 + // 页脚配置 + footer: { message: `京ICP备20003712号-2`, // 备案信息 - copyright : `Copyright © 2019-${new Date().getFullYear()} Charles7c` // 版权信息 + copyright: `Copyright © 2019-${new Date().getFullYear()} Charles7c` // 版权信息 }, // 全文搜索 algolia: { diff --git a/repos/.vitepress/theme/components/Copyright.vue b/repos/.vitepress/theme/components/Copyright.vue deleted file mode 100644 index 0467e0531..000000000 --- a/repos/.vitepress/theme/components/Copyright.vue +++ /dev/null @@ -1,50 +0,0 @@ - - - - - \ No newline at end of file diff --git a/repos/.vitepress/theme/components/MyLayout.vue b/repos/.vitepress/theme/components/MyLayout.vue index 8a1ff6e0d..61ebc962f 100644 --- a/repos/.vitepress/theme/components/MyLayout.vue +++ b/repos/.vitepress/theme/components/MyLayout.vue @@ -1,14 +1,13 @@ diff --git a/repos/.vitepress/theme/index.ts b/repos/.vitepress/theme/index.ts index e953d38d6..748a8bc48 100644 --- a/repos/.vitepress/theme/index.ts +++ b/repos/.vitepress/theme/index.ts @@ -3,11 +3,6 @@ import MyLayout from "./components/MyLayout.vue" import ElementPlus from 'element-plus' import "element-plus/dist/index.css" import * as ElIcons from '@element-plus/icons-vue' -import Antd from 'ant-design-vue' -import 'ant-design-vue/dist/antd.css' -import * as AntdIcons from '@ant-design/icons-vue' - - import './custom.css' export default { @@ -20,12 +15,5 @@ export default { } // 全局注册ElementPlus app.use(ElementPlus) - - // 全局注册Ant Design of Vue的所有图标 - for (const [key, antdIcon] of Object.entries(AntdIcons)) { - app.component(key, antdIcon) - } - // 全局注册Ant Design of Vue - app.use(Antd) } } \ No newline at end of file