Skip to content

Commit 80fb038

Browse files
committed
update nuxt.config
1 parent cfb9b0d commit 80fb038

File tree

4 files changed

+15
-21
lines changed

4 files changed

+15
-21
lines changed

demo/nuxt/nuxt.config.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import { defineNuxtConfig } from "nuxt"
2-
31
export default defineNuxtConfig({
4-
meta: {
5-
title: "Nuxt3 Notion",
6-
meta: [{ charset: "utf-8" }, { name: "viewport", content: "width=device-width, initial-scale=1" }],
7-
link: [{ rel: "icon", type: "image/png", href: "/logo.png" }],
2+
app: {
3+
head: {
4+
title: "Nuxt3 Notion",
5+
meta: [{ charset: "utf-8" }, { name: "viewport", content: "width=device-width, initial-scale=1" }],
6+
link: [{ rel: "icon", type: "image/png", href: "/logo.png" }],
7+
},
88
},
99
modules: [["vue3-notion/nuxt", { css: true }]],
10-
})
10+
});

demo/nuxt/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@
1212
"dependencies": {
1313
"notion-client": "^6.15.6",
1414
"nuxt": "^3.0.0-rc.12",
15-
"vue3-notion": "^0.1.35"
15+
"vue3-notion": "^0.1.37"
1616
}
1717
}

demo/nuxt/pages/index.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<script setup lang="ts">
2-
const { $notion } = useNuxtApp()
3-
const { data } = await useAsyncData("notion-index", () => $notion.getPageBlocks("4b2dc28a5df74034a943f8c8e639066a"))
4-
const { mapPageUrl, pageLinkOptions } = useProps()
2+
const { $notion } = useNuxtApp();
3+
const { data } = await useAsyncData("notion-index", () => $notion.getPageBlocks("4b2dc28a5df74034a943f8c8e639066a"));
4+
const { mapPageUrl, pageLinkOptions } = useProps();
55
</script>
66

77
<template>

demo/nuxt/yarn.lock

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2316,11 +2316,6 @@ fraction.js@^4.2.0:
23162316
resolved "https://registry.yarnpkg.com/fraction.js/-/fraction.js-4.2.0.tgz#448e5109a313a3527f5a3ab2119ec4cf0e0e2950"
23172317
integrity sha512-MhLuK+2gUcnZe8ZHlaaINnQLl0xRIGRfcGk2yl8xoQAfHrSsL3rYu6FCmBdkdbhc9EPlwyGHewaRsvwRMJtAlA==
23182318

2319-
fragment-for-vue@^1.0.1:
2320-
version "1.0.1"
2321-
resolved "https://registry.yarnpkg.com/fragment-for-vue/-/fragment-for-vue-1.0.1.tgz#669c9779bd89a986ad3c8dfaf26af25237629a45"
2322-
integrity sha512-LTjux+UjhTL5tyGAA64GfUsJLLBnth0OwU3XZgzm0Z7lsbf7oObwGpBYUpgL4BMmUJaFmBo8ubsBVNMMUtMERA==
2323-
23242319
fresh@0.5.2:
23252320
version "0.5.2"
23262321
resolved "https://registry.yarnpkg.com/fresh/-/fresh-0.5.2.tgz#3d8cadd90d976569fa835ab1f8e4b23a105605a7"
@@ -4907,14 +4902,13 @@ vue-router@^4.1.6:
49074902
dependencies:
49084903
"@vue/devtools-api" "^6.4.5"
49094904

4910-
vue3-notion@^0.1.35:
4911-
version "0.1.35"
4912-
resolved "https://registry.yarnpkg.com/vue3-notion/-/vue3-notion-0.1.35.tgz#e3b8abf911591f6867a24aa658da775f2345a3aa"
4913-
integrity sha512-ihrAv0eq2dA8DOAzhlkdhc0gfyROyBAS++CRQomUUZa4GJVgOzPyjJFbfDy4mcj1y0LELJfge/S7FV3qZC08qw==
4905+
vue3-notion@^0.1.37:
4906+
version "0.1.37"
4907+
resolved "https://registry.yarnpkg.com/vue3-notion/-/vue3-notion-0.1.37.tgz#0bef78a5e2a1a50f97400d0cf3948bb2f3ea83b5"
4908+
integrity sha512-DRlQJQrEDj8x5zOkgZyRwb2QD+o3Ru8opdPXLcTVU/ebkGlWRUCMYoI90kfL0mOVjmgQPXfo5lLoLI9JxPE4Iw==
49144909
dependencies:
49154910
"@nuxt/kit" "^3.0.0-rc.1"
49164911
"@vueuse/core" "^8.7.5"
4917-
fragment-for-vue "^1.0.1"
49184912
katex "^0.15.1"
49194913
pathe "^0.2.0"
49204914
prismjs "^1.25.0"

0 commit comments

Comments
 (0)