@@ -58,6 +58,7 @@ npm install vue-notion
5858```
5959
6060### NuxtJS Module
61+
6162``` js
6263// nuxt.config.js
6364
@@ -82,7 +83,7 @@ More information on the `NotionRenderer` specification, syntax-highlighting, the
8283
8384### Basic Example for Vue
8485
85- This example is hosted at [ vue-notion.now.sh/welcome ] ( https://vue-notion.now.sh/welcome ) .
86+ This example is hosted at [ vue-notion.now.sh/vue ] ( https://vue-notion.now.sh/vue ) .
8687
8788``` vue
8889<template>
@@ -108,11 +109,11 @@ export default {
108109```
109110
110111The example above uses a simple wrapper around the [ notion-api-worker] ( https://github.com/splitbee/notion-api-worker ) .
111- It is also possible to store and use plain ` .json ` objects received from the Notion API .
112+ It is also possible to store a page received from the Notion API in ` .json ` and use it without the ` async/await ` part .
112113
113114### Basic Example for Nuxt
114115
115- This example is hosted at [ vue-notion.now.sh/welcome ] ( https://vue-notion.now.sh/welcome ) .
116+ This example is hosted at [ vue-notion.now.sh/nuxt ] ( https://vue-notion.now.sh/nuxt ) .
116117
117118``` vue
118119<template>
@@ -123,7 +124,7 @@ This example is hosted at [vue-notion.now.sh/welcome](https://vue-notion.now.sh/
123124export default {
124125 data: () => ({ blockMap: null }),
125126 async asyncData({ $notion }) {
126- // use notion module to get Notion blocks from the API via a Notion pageId
127+ // use Notion module to get Notion blocks from the API via a Notion pageId
127128 const blockMap = await $notion.getPageBlocks("8c1ab01960b049f6a282dda64a94afc7");
128129
129130 return { blockMap }
@@ -134,8 +135,6 @@ export default {
134135@import "vue-notion/src/styles.css"; /* optional Notion-like styles */
135136</style>
136137```
137- </script >
138-
139138
140139> ⚠️ Use with caution.
141140> The ` getPageBlocks ` and ` getPageTable ` are based on the private Notion API.
@@ -160,42 +159,45 @@ List of pages that are using this library.
160159
161160Most common block types are supported. We happily accept pull requests to add support for the missing blocks.
162161
163- | Block Type | Supported | Notes |
164- | ----------------- | -------------- | ------------------------ |
165- | Text | ✅ Yes | |
166- | Heading | ✅ Yes | |
167- | Image | ✅ Yes | |
168- | Image Caption | ✅ Yes | |
169- | Bulleted List | ✅ Yes | |
170- | Numbered List | ✅ Yes | |
171- | Quote | ✅ Yes | |
172- | Callout | ✅ Yes | |
173- | Column | ✅ Yes | |
174- | iframe | ✅ Yes | |
175- | Video | ✅ Yes | Only embedded videos |
176- | Divider | ✅ Yes | |
177- | Link | ✅ Yes | |
178- | Code | ✅ Yes | |
179- | Web Bookmark | ✅ Yes | |
180- | Toggle List | ✅ Yes | |
181- | Page Links | ✅ Yes | |
182- | Cover | ✅ Yes | Enable with ` fullPage ` |
183- | Databases | ❌ Not planned | |
184- | Checkbox | ❌ Not planned | |
185- | Table Of Contents | ❌ Not planned | |
162+ | Block Type | Supported | Notes |
163+ | ----------------- | -------------- | ---------------------- |
164+ | Text | ✅ Yes | |
165+ | Heading | ✅ Yes | |
166+ | Image | ✅ Yes | |
167+ | Image Caption | ✅ Yes | |
168+ | Bulleted List | ✅ Yes | |
169+ | Numbered List | ✅ Yes | |
170+ | Quote | ✅ Yes | |
171+ | Callout | ✅ Yes | |
172+ | Column | ✅ Yes | |
173+ | iframe | ✅ Yes | |
174+ | Video | ✅ Yes | Only embedded videos |
175+ | Divider | ✅ Yes | |
176+ | Link | ✅ Yes | |
177+ | Code | ✅ Yes | |
178+ | Web Bookmark | ✅ Yes | |
179+ | Toggle List | ✅ Yes | |
180+ | Page Links | ✅ Yes | |
181+ | Cover | ✅ Yes | Enable with ` fullPage ` |
182+ | Equations | ✅ Planned | |
183+ | Databases | ❌ Not planned | |
184+ | Checkbox | ❌ Not planned | |
185+ | Table Of Contents | ❌ Not planned | |
186186
187187Please, feel free to [ open an issue] ( https://github.com/janniks/vue-notion/issues/new ) if you notice any missing blocks or anything wrong with existing blocks.
188188
189189## Credits
190190
191191- [ Jannik Siebert] ( https://twitter.com/jnnksbrt ) – vue-notion Code
192192- [ Dominik Sobe] ( https://twitter.com/sobedominik ) – vue-notion Inspiration, Debugging
193+ - [ vue-notion Contributors 💕] ( https://github.com/janniks/vue-notion/graphs/contributors )
193194- [ Tobias Lins] ( https://tobi.sh ) – react-notion Idea, Code
194195- [ Timo Lins] ( https://timo.sh ) – react-notion Code, Documentation
195196- [ samwightt] ( https://github.com/samwightt ) – react-notion Inspiration & API Typings
196- - [ vue-notion Contributors 💕] ( https://github.com/janniks/vue-notion/graphs/contributors )
197197- [ react-notion Contributors 💕] ( https://github.com/splitbee/react-notion/graphs/contributors )
198198
199+ - Big thanks to [ Nuxt] ( https://nuxtjs.org ) for being awesome!
200+
199201## License ⚖️
200202
201203MIT © [ Jannik Siebert] ( https://twitter.com/jnnksbrt )
0 commit comments