vue3-notion
Advanced tools
Comparing version 0.1.4 to 0.1.5
@@ -9,1 +9,2 @@ import { App } from "vue"; | ||
export * from "@/lib/types"; | ||
export * from "@/lib/composables"; |
@@ -1,4 +0,3 @@ | ||
import { NotionBlockProps } from "@/lib/types"; | ||
declare const getPageTable: (pageId: string, apiUrl?: string) => Promise<NotionBlockProps>; | ||
declare const getPageBlocks: (pageId: string, apiUrl?: string) => Promise<NotionBlockProps>; | ||
declare const getPageTable: (pageId: string, apiUrl?: string) => Promise<any>; | ||
declare const getPageBlocks: (pageId: string, apiUrl?: string) => Promise<any>; | ||
export { getPageTable, getPageBlocks }; |
{ | ||
"name": "vue3-notion", | ||
"version": "0.1.4", | ||
"version": "0.1.5", | ||
"description": "Vue 3 Unofficial Notion Renderer", | ||
@@ -36,4 +36,3 @@ "repository": "github:zernonia/vue3-notion", | ||
"vue": "^3.2.26", | ||
"vue-router": "4", | ||
"vue3-notion": "^0.1.3" | ||
"vue-router": "4" | ||
}, | ||
@@ -40,0 +39,0 @@ "devDependencies": { |
@@ -55,2 +55,3 @@ <div align="center"> | ||
npm install vue3-notion | ||
# yarn add vue3-notion | ||
``` | ||
@@ -99,13 +100,12 @@ | ||
onMounted(async () => { | ||
data.value = await getPageBlocks("8c1ab01960b049f6a282dda64a94afc7") | ||
data.value = await getPageBlocks("4b2dc28a5df74034a943f8c8e639066a") | ||
}) | ||
} | ||
</script> | ||
<template> | ||
<NotionRenderer :blockMap="data" fullPage /> | ||
<NotionRenderer v-if="data" :blockMap="data" fullPage /> | ||
</template> | ||
<style> | ||
@import "vue3-notion/dist/styles.css"; /* optional Notion-like styles */ | ||
@import "vue3-notion/dist/style.css"; /* optional Notion-like styles */ | ||
</style> | ||
@@ -158,7 +158,32 @@ ``` | ||
| Simple Tables | โ Yes | | | ||
| Table Of Contents | โ Yes | | | ||
| Databases | โ๏ธ Planned | | | ||
| Table Of Contents | โ๏ธ Planned | | | ||
Please, feel free to [open an issue](https://github.com/zernonia/vue3-notion/issues/new) if you notice any important blocks missing or anything wrong with existing blocks. | ||
# ๐ Local Development | ||
## Prerequisites | ||
Yarn | ||
- ```sh | ||
npm install --global yarn | ||
``` | ||
## Development | ||
1. Clone the repo | ||
```sh | ||
git clone https://github.com/zernonia/vue3-notion.git | ||
``` | ||
2. Install NPM packages | ||
```sh | ||
yarn | ||
``` | ||
3. Run Development instance | ||
```sh | ||
yarn dev | ||
``` | ||
## Credits | ||
@@ -165,0 +190,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
238849
11
19
5193
194
- Removedvue3-notion@^0.1.3