mirror of
https://github.com/sendevia/website.git
synced 2026-03-07 16:22:34 +08:00
feat: restructure layout imports
This commit is contained in:
@@ -1,7 +1,11 @@
|
||||
import type { Theme } from "vitepress";
|
||||
import { createPinia } from "pinia";
|
||||
import Layout from "./layouts/Default.vue";
|
||||
|
||||
// Layouts
|
||||
import Default from "./layouts/Default.vue";
|
||||
import NotFound from "./layouts/NotFound.vue";
|
||||
|
||||
// Components
|
||||
import AppBar from "./components/AppBar.vue";
|
||||
import ArticleMasonry from "./components/ArticleMasonry.vue";
|
||||
import Button from "./components/Button.vue";
|
||||
@@ -14,16 +18,18 @@ import PrevNext from "./components/PrevNext.vue";
|
||||
import ScrollToTop from "./components/ScrollToTop.vue";
|
||||
import NavBar from "./components/NavBar.vue";
|
||||
|
||||
// Styles
|
||||
import "./styles/main.scss";
|
||||
|
||||
const pinia = createPinia();
|
||||
|
||||
export default {
|
||||
Layout,
|
||||
Layout: Default,
|
||||
NotFound: NotFound,
|
||||
enhanceApp({ app }) {
|
||||
app.use(pinia);
|
||||
|
||||
app.component("MainLayout", Layout);
|
||||
app.component("MainLayout", Default);
|
||||
|
||||
app.component("AppBar", AppBar);
|
||||
app.component("ArticleMasonry", ArticleMasonry);
|
||||
|
||||
Reference in New Issue
Block a user