You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
2.5 KiB
JavaScript
50 lines
2.5 KiB
JavaScript
import {
|
|
defineComponent,
|
|
h,
|
|
provide
|
|
} from "./chunk-I2UDPAZT.js";
|
|
|
|
// node_modules/custom-vitepress-theme/src/vitepress/index.ts
|
|
import "D:/pengpian/git/vitepress/custom-vitepress-theme-demo/node_modules/normalize.css/normalize.css";
|
|
import "D:/pengpian/git/vitepress/custom-vitepress-theme-demo/node_modules/custom-vitepress-theme/src/vitepress/styles/variables.css";
|
|
import "D:/pengpian/git/vitepress/custom-vitepress-theme-demo/node_modules/custom-vitepress-theme/src/vitepress/styles/switch.css";
|
|
import "D:/pengpian/git/vitepress/custom-vitepress-theme-demo/node_modules/custom-vitepress-theme/src/vitepress/styles/custom.css";
|
|
import "D:/pengpian/git/vitepress/custom-vitepress-theme-demo/node_modules/custom-vitepress-theme/src/vitepress/styles/theme.css";
|
|
import Layout from "D:/pengpian/git/vitepress/custom-vitepress-theme-demo/node_modules/custom-vitepress-theme/src/vitepress/components/Layout.vue";
|
|
import Search from "D:/pengpian/git/vitepress/custom-vitepress-theme-demo/node_modules/custom-vitepress-theme/src/vitepress/components/Search.vue";
|
|
import Archives from "D:/pengpian/git/vitepress/custom-vitepress-theme-demo/node_modules/custom-vitepress-theme/src/vitepress/components/Archives.vue";
|
|
import Home from "D:/pengpian/git/vitepress/custom-vitepress-theme-demo/node_modules/custom-vitepress-theme/src/vitepress/components/Home.vue";
|
|
import DefaultPage from "D:/pengpian/git/vitepress/custom-vitepress-theme-demo/node_modules/custom-vitepress-theme/src/vitepress/components/DefaultPage.vue";
|
|
import CategoryPage from "D:/pengpian/git/vitepress/custom-vitepress-theme-demo/node_modules/custom-vitepress-theme/src/vitepress/components/CategoryPage.vue";
|
|
|
|
// node_modules/custom-vitepress-theme/src/vitepress/composables/config.ts
|
|
import { useData } from "vitepress";
|
|
var configSymbol = Symbol("config");
|
|
function withConfigProvider(App) {
|
|
return defineComponent({
|
|
name: "ConfigProvider",
|
|
setup(_, { slots }) {
|
|
const { theme } = useData();
|
|
provide(configSymbol, theme.value);
|
|
return () => h(App, null, slots);
|
|
}
|
|
});
|
|
}
|
|
|
|
// node_modules/custom-vitepress-theme/src/vitepress/index.ts
|
|
var CustomTheme = {
|
|
Layout: withConfigProvider(Layout),
|
|
NotFound: () => "custom 404",
|
|
enhanceApp({ app }) {
|
|
app.component("Search", Search);
|
|
app.component("Archives", Archives);
|
|
app.component("Home", Home);
|
|
app.component("DefaultPage", DefaultPage);
|
|
app.component("CategoryPage", CategoryPage);
|
|
}
|
|
};
|
|
export {
|
|
CustomTheme
|
|
};
|
|
//# sourceMappingURL=custom-vitepress-theme.js.map
|