Skip to content

Commit a668ed5

Browse files
committed
Update nuxt 3 project
1 parent 899835b commit a668ed5

21 files changed

+3051
-4345
lines changed

dev/serve.js

-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ import { NotionRenderer } from "@/entry";
66

77
const app = createApp(App);
88

9-
console.log(app);
10-
119
app.use(Vue3Katex);
1210
app.component("NotionRenderer", NotionRenderer);
1311

example/.gitignore

+6-89
Original file line numberDiff line numberDiff line change
@@ -1,92 +1,9 @@
1-
# Created by .ignore support plugin (hsz.mobi)
2-
### Node template
3-
# Logs
4-
/logs
5-
*.log
6-
npm-debug.log*
7-
yarn-debug.log*
8-
yarn-error.log*
9-
10-
# Runtime data
11-
pids
12-
*.pid
13-
*.seed
14-
*.pid.lock
15-
16-
# Directory for instrumented libs generated by jscoverage/JSCover
17-
lib-cov
18-
19-
# Coverage directory used by tools like istanbul
20-
coverage
21-
22-
# nyc test coverage
23-
.nyc_output
24-
25-
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
26-
.grunt
27-
28-
# Bower dependency directory (https://bower.io/)
29-
bower_components
30-
31-
# node-waf configuration
32-
.lock-wscript
33-
34-
# Compiled binary addons (https://nodejs.org/api/addons.html)
35-
build/Release
36-
37-
# Dependency directories
38-
node_modules/
39-
jspm_packages/
40-
41-
# TypeScript v1 declaration files
42-
typings/
43-
44-
# Optional npm cache directory
45-
.npm
46-
47-
# Optional eslint cache
48-
.eslintcache
49-
50-
# Optional REPL history
51-
.node_repl_history
52-
53-
# Output of 'npm pack'
54-
*.tgz
55-
56-
# Yarn Integrity file
57-
.yarn-integrity
58-
59-
# dotenv environment variables file
60-
.env
61-
62-
# parcel-bundler cache (https://parceljs.org/)
63-
.cache
64-
65-
# next.js build output
66-
.next
67-
68-
# nuxt.js build output
1+
node_modules
2+
*.log*
693
.nuxt
70-
71-
# Nuxt generate
4+
.nitro
5+
.cache
6+
.output
7+
.env
728
dist
73-
74-
# vuepress build output
75-
.vuepress/dist
76-
77-
# Serverless directories
78-
.serverless
79-
80-
# IDE / Editor
81-
.idea
82-
83-
# Service worker
84-
sw.*
85-
86-
# macOS
879
.DS_Store
88-
89-
# Vim swap files
90-
*.swp
91-
92-
.output

example/.npmrc

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
shamefully-hoist=true
2+
strict-peer-dependencies=false

example/README.md

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# Nuxt 3 Minimal Starter
2+
3+
Look at the [Nuxt 3 documentation](https://nuxt.com/docs/getting-started/introduction) to learn more.
4+
5+
## Setup
6+
7+
Make sure to install the dependencies:
8+
9+
```bash
10+
# yarn
11+
yarn install
12+
13+
# npm
14+
npm install
15+
16+
# pnpm
17+
pnpm install
18+
```
19+
20+
## Development Server
21+
22+
Start the development server on http://localhost:3000
23+
24+
```bash
25+
npm run dev
26+
```
27+
28+
## Production
29+
30+
Build the application for production:
31+
32+
```bash
33+
npm run build
34+
```
35+
36+
Locally preview production build:
37+
38+
```bash
39+
npm run preview
40+
```
41+
42+
Check out the [deployment documentation](https://nuxt.com/docs/getting-started/deployment) for more information.

example/app.vue

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
<template>
2-
<NuxtPage />
2+
<NuxtLayout>
3+
<NuxtPage />
4+
</NuxtLayout>
35
</template>

example/layouts/default.vue

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
<template>
2-
<div>
3-
<Nuxt />
4-
</div>
2+
<slot />
53
</template>
64

75
<style>

example/nuxt.config.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// https://v3.nuxtjs.org/api/configuration/nuxt.config
22
export default defineNuxtConfig({
3-
ssr: false,
3+
build: {
4+
transpile: ["vue-notion"],
5+
},
46
telemetry: false,
57
// plugins: [{ src: "vue-notion/nuxt/plugin.js", mode: "client" }],
68
});

0 commit comments

Comments
 (0)