-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
680 additions
and
271 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
import { createApp } from "vue" | ||
import App from "./App.vue" | ||
import { router } from "./router" | ||
import "vue3-notion/dist/style.css" | ||
import { createApp } from "vue"; | ||
import App from "./App.vue"; | ||
import { router } from "./router"; | ||
import "vue3-notion/dist/style.css"; | ||
|
||
createApp(App).use(router).mount("#app") | ||
import "prismjs/themes/prism.css"; | ||
import "katex/dist/katex.min.css"; | ||
|
||
createApp(App).use(router).mount("#app"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
import { createRouter, createWebHistory } from "vue-router" | ||
import Home from "../view/Index.vue" | ||
import Page from "../view/Page.vue" | ||
import { createRouter, createWebHistory } from "vue-router"; | ||
import Home from "../view/Index.vue"; | ||
import Page from "../view/Page.vue"; | ||
|
||
const routes = [ | ||
{ path: "/", name: "Home", component: Home }, | ||
{ path: "/page/:id", name: "Page", component: Page }, | ||
] | ||
{ path: "/:id", name: "Page", component: Page }, | ||
]; | ||
|
||
export const router = createRouter({ | ||
history: createWebHistory(), | ||
routes, | ||
}) | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
import { createRouter, createWebHistory } from "vue-router" | ||
import Home from "../view/Index.vue" | ||
import Page from "../view/Page.vue" | ||
import { createRouter, createWebHistory } from "vue-router"; | ||
import Home from "../view/Index.vue"; | ||
import Page from "../view/Page.vue"; | ||
|
||
const routes = [ | ||
{ path: "/", name: "Home", component: Home }, | ||
{ path: "/page/:id", name: "Page", component: Page }, | ||
] | ||
{ path: "/:id", name: "Page", component: Page }, | ||
]; | ||
|
||
export const router = createRouter({ | ||
history: createWebHistory(), | ||
routes, | ||
}) | ||
}); |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import { defineConfig } from "vite"; | ||
import path from "path"; | ||
import vue from "@vitejs/plugin-vue"; | ||
import dts from "vite-plugin-dts"; | ||
|
||
// https://vitejs.dev/config/ | ||
export default defineConfig({ | ||
plugins: [ | ||
vue(), | ||
dts({ | ||
insertTypesEntry: true, | ||
}), | ||
], | ||
build: { | ||
target: "esnext", | ||
lib: { | ||
entry: path.resolve(__dirname, "src/index.ts"), | ||
name: "vue3-notion", | ||
}, | ||
rollupOptions: { | ||
external: ["vue"], | ||
output: { | ||
globals: { | ||
vue: "Vue", | ||
}, | ||
exports: "named", | ||
}, | ||
}, | ||
}, | ||
}); |
Oops, something went wrong.