Skip to content

Commit ba73d11

Browse files
committed
cleanup
1 parent 854da22 commit ba73d11

File tree

3 files changed

+9
-11
lines changed

3 files changed

+9
-11
lines changed

dev/serve.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@ import Vue from "vue";
22
import Dev from "./serve.vue";
33

44
import VueKatex from "vue-katex";
5-
import { NotionRenderer } from "../src/components";
5+
import { NotionRenderer } from "@/entry";
66

77
Vue.use(VueKatex);
8+
Vue.component("NotionRenderer", NotionRenderer);
89

910
Vue.config.productionTip = false;
1011

1112
new Vue({
12-
render: (h) => h(Dev),
13+
render: h => h(Dev)
1314
}).$mount("#app");

dev/serve.vue

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,7 @@ export default {
2323
// react-notion tester: 2e22de6b770e4166be301490f6ffd420
2424
// equation tester: 2a1d5226d68246deba627012081693f9
2525
// todo tester: 235057194b954a60ace89c052a65d102
26-
// this.blockMap = await getPageBlocks("2e22de6b770e4166be301490f6ffd420"); // Original
27-
this.blockMap = await getPageBlocks("4bdce11cd93544e5b96e5b1857cea6dc"); // Sync block
28-
console.log("blockMap", this.blockMap);
26+
this.blockMap = await getPageBlocks("4bdce11cd93544e5b96e5b1857cea6dc");
2927
},
3028
};
3129
</script>

src/blocks/sync-pointer.vue

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
<template>
2-
<NotionRenderer :blockMap="blockMap" :contentId="referencePointerId" />
2+
<NotionRenderer
3+
v-bind="pass"
4+
:blockMap="blockMap"
5+
:contentId="referencePointerId"
6+
/>
37
</template>
48

59
<script>
@@ -8,9 +12,6 @@ import Blockable, { blockComputed } from "@/lib/blockable";
812
export default {
913
extends: Blockable,
1014
name: "NotionSyncPointer",
11-
components: {
12-
NotionRenderer: () => import("../components/notion-renderer.vue"),
13-
},
1415
computed: {
1516
...blockComputed,
1617
referencePointerId() {
@@ -19,5 +20,3 @@ export default {
1920
},
2021
};
2122
</script>
22-
23-

0 commit comments

Comments
 (0)