From 4dd3b4aedc46e6498837f4cdb6d1b71070f156d7 Mon Sep 17 00:00:00 2001 From: snowy Date: Sat, 20 Apr 2024 04:10:20 +0800 Subject: [PATCH] =?UTF-8?q?:memo:=20=E6=8F=92=E4=BB=B6=E5=95=86=E5=BA=97?= =?UTF-8?q?=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/.vuepress/client.js | 16 +- .../.vuepress/components/plugin_item_card.vue | 126 +++++++++ docs/.vuepress/components/plugin_store.vue | 39 +++ .../{ItemCard.vue => res_item_card.vue} | 0 .../components/{store.vue => res_store.vue} | 4 +- docs/.vuepress/navbar.ts | 4 +- docs/.vuepress/sidebar.ts | 3 +- docs/package.json | 5 + docs/pnpm-lock.yaml | 256 ++++++++++++++++-- docs/store/README.md | 1 - docs/store/plugin.md | 8 + docs/store/resource.md | 7 + docs/tsconfig.json | 3 +- 13 files changed, 433 insertions(+), 39 deletions(-) create mode 100644 docs/.vuepress/components/plugin_item_card.vue create mode 100644 docs/.vuepress/components/plugin_store.vue rename docs/.vuepress/components/{ItemCard.vue => res_item_card.vue} (100%) rename docs/.vuepress/components/{store.vue => res_store.vue} (86%) create mode 100644 docs/store/plugin.md create mode 100644 docs/store/resource.md diff --git a/docs/.vuepress/client.js b/docs/.vuepress/client.js index 15af3c5e..02883d85 100644 --- a/docs/.vuepress/client.js +++ b/docs/.vuepress/client.js @@ -1,8 +1,14 @@ -import { defineClientConfig } from "vuepress/client"; -import storeComp from "./components/store.vue"; +import {defineClientConfig} from "vuepress/client"; +import resourceStoreComp from "./components/res_store.vue"; +import pluginStoreComp from "./components/plugin_store.vue"; +//导入element-plus +import ElementPlus from 'element-plus'; export default defineClientConfig({ - enhance: ({ app, router, siteData }) => { - app.component("storeComp", storeComp); - }, + enhance: ({app, router, siteData}) => { + app.component("resourceStoreComp", resourceStoreComp); + app.component("pluginStoreComp", pluginStoreComp); + app.use(ElementPlus); + + }, }); \ No newline at end of file diff --git a/docs/.vuepress/components/plugin_item_card.vue b/docs/.vuepress/components/plugin_item_card.vue new file mode 100644 index 00000000..bd8906c9 --- /dev/null +++ b/docs/.vuepress/components/plugin_item_card.vue @@ -0,0 +1,126 @@ + + + + + \ No newline at end of file diff --git a/docs/.vuepress/components/plugin_store.vue b/docs/.vuepress/components/plugin_store.vue new file mode 100644 index 00000000..2c827175 --- /dev/null +++ b/docs/.vuepress/components/plugin_store.vue @@ -0,0 +1,39 @@ + + + + + \ No newline at end of file diff --git a/docs/.vuepress/components/ItemCard.vue b/docs/.vuepress/components/res_item_card.vue similarity index 100% rename from docs/.vuepress/components/ItemCard.vue rename to docs/.vuepress/components/res_item_card.vue diff --git a/docs/.vuepress/components/store.vue b/docs/.vuepress/components/res_store.vue similarity index 86% rename from docs/.vuepress/components/store.vue rename to docs/.vuepress/components/res_store.vue index 6dc2f143..08e642eb 100644 --- a/docs/.vuepress/components/store.vue +++ b/docs/.vuepress/components/res_store.vue @@ -1,10 +1,10 @@