Skip to content

Commit

Permalink
Move to vite for vue 3
Browse files Browse the repository at this point in the history
  • Loading branch information
janniks committed Aug 25, 2022
1 parent 6ae91c3 commit fe47aef
Show file tree
Hide file tree
Showing 28 changed files with 17,133 additions and 22,748 deletions.
3 changes: 3 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"recommendations": ["Vue.volar"]
}
1 change: 0 additions & 1 deletion build/postcss.js

This file was deleted.

185 changes: 0 additions & 185 deletions build/rollup.config.js

This file was deleted.

18 changes: 9 additions & 9 deletions dev/serve.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import Vue from "vue";
import Dev from "./serve.vue";
import { createApp } from "vue";
import App from "./serve.vue";

import VueKatex from "vue-katex";
import Vue3Katex from "@hsorby/vue3-katex";
import { NotionRenderer } from "@/entry";

Vue.use(VueKatex);
Vue.component("NotionRenderer", NotionRenderer);
const app = createApp(App);

Vue.config.productionTip = false;
console.log(app);

new Vue({
render: h => h(Dev)
}).$mount("#app");
app.use(Vue3Katex);
app.component("NotionRenderer", NotionRenderer);

app.mount("#app");
6 changes: 3 additions & 3 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ import "prismjs/themes/prism.css";

The following steps are required to display equations via katex

- Install `vue-katex` to your project – `npm install vue-katex`
- Install `@hsorby/vue3-katex` to your project – `npm install @hsorby/vue3-katex`
- Import the katex css in your project

```js
Expand All @@ -177,8 +177,8 @@ import "katex/dist/katex.min.css";

```js
import Vue from "vue";
import VueKatex from "vue-katex";
Vue.use(VueKatex);
import Vue3Katex from "@hsorby/vue3-katex";
Vue.use(Vue3Katex);
```

- Add the `katex` flag to the `NotionRenderer`
Expand Down
4 changes: 2 additions & 2 deletions example/plugins/vue-katex.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Vue from "vue";
import VueKatex from "vue-katex";
import Vue3Katex from "@hsorby/vue3-katex";
import "katex/dist/katex.min.css";

Vue.use(VueKatex);
Vue.use(Vue3Katex);
3 changes: 1 addition & 2 deletions nuxt/plugin.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import Vue from "vue";
import VueNotion from "vue-notion";
import { getPageBlocks, getPageTable } from "vue-notion";
import VueNotion, { getPageBlocks, getPageTable } from "vue-notion";

Vue.use(VueNotion);

Expand Down
Loading

0 comments on commit fe47aef

Please sign in to comment.