tachiyomi-website/website/src/.vitepress/theme/index.ts

30 lines
834 B
TypeScript
Raw Normal View History

2023-07-18 02:00:06 +02:00
// https://vitepress.dev/guide/custom-theme
2023-08-31 16:04:42 +02:00
import DefaultTheme from "vitepress/theme";
// Import Stylus files
import "./styles/base.styl";
2023-07-18 02:00:06 +02:00
2023-08-31 16:04:42 +02:00
// Import Global plugins
import ElementPlus from "element-plus";
import "element-plus/dist/index.css";
import "element-plus/theme-chalk/dark/css-vars.css";
2023-08-31 16:04:42 +02:00
import { VueQueryPlugin } from "@tanstack/vue-query";
import { enhanceAppWithTabs } from "vitepress-plugin-tabs/client";
2023-08-31 16:04:42 +02:00
// Import Icon components
2023-09-01 00:04:35 +02:00
import { IconDownload, IconNewReleases, IconBugReport } from "@iconify-prerendered/vue-mdi";
2023-08-31 16:04:42 +02:00
2023-07-18 02:00:06 +02:00
export default {
2023-08-31 16:04:42 +02:00
...DefaultTheme,
enhanceApp({ app }) {
app.use(ElementPlus);
app.use(VueQueryPlugin);
enhanceAppWithTabs(app);
2023-08-31 16:04:42 +02:00
app.component("IconDownload", IconDownload);
2023-08-31 23:49:16 +02:00
app.component("IconNewReleases", IconNewReleases);
2023-09-01 00:04:35 +02:00
app.component("IconBugReport", IconBugReport);
},
};