diff --git a/docs/.vitepress/theme/index.ts b/docs/.vitepress/theme/index.ts index 28ec7f90..8127c390 100644 --- a/docs/.vitepress/theme/index.ts +++ b/docs/.vitepress/theme/index.ts @@ -2,13 +2,17 @@ import DefaultTheme from 'vitepress/theme' import './liteyuki.css' import StatsBar from '../../components/StatsBar.vue' +import PluginStore from '../../components/PluginStore.vue' +import ResStore from '../../components/ResStore.vue' export default { extends: DefaultTheme, enhanceApp({ app }) { - app.component('StatsBar', StatsBar) + app.component('StatsBar', StatsBar); + app.component('PluginStore', PluginStore); + app.component('ResStore', ResStore); }, Layout: StatsBar } \ No newline at end of file diff --git a/docs/components/PluginStore.vue b/docs/components/PluginStore.vue index 7565f91e..87a8b419 100644 --- a/docs/components/PluginStore.vue +++ b/docs/components/PluginStore.vue @@ -2,16 +2,17 @@ import {computed, ref} from 'vue' import ItemCard from './PluginItemCard.vue' import ToggleSwitch from "./ToggleSwitch.vue"; +import {getTextRef} from "./scripts/i18n"; let showLiteyukiPluginOnly = ref(false) let filteredItems = computed(() => { let filtered = items.value if (search.value) { filtered = filtered.filter(item => - item.name.toLowerCase().includes(search.value.toLowerCase()) || - item.desc.toLowerCase().includes(search.value.toLowerCase()) || - item.author.toLowerCase().includes(search.value.toLowerCase()) || - item.module_name.toLowerCase().includes(search.value.toLowerCase()) + item.name.toLowerCase().includes(search.value.toLowerCase()) || + item.desc.toLowerCase().includes(search.value.toLowerCase()) || + item.author.toLowerCase().includes(search.value.toLowerCase()) || + item.module_name.toLowerCase().includes(search.value.toLowerCase()) ) } if (showLiteyukiPluginOnly.value) { @@ -48,12 +49,13 @@ fetch('https://registry.nonebot.dev/plugins.json')