From a668ed5b1e033c9b003d433fb1cf6390bf3f8996 Mon Sep 17 00:00:00 2001 From: janniks Date: Sun, 26 Mar 2023 22:48:07 +0200 Subject: [PATCH] Update nuxt 3 project --- dev/serve.js | 2 - example/.gitignore | 95 +- example/.npmrc | 2 + example/README.md | 42 + example/app.vue | 4 +- example/layouts/default.vue | 4 +- example/nuxt.config.ts | 4 +- example/package-lock.json | 6210 +++++++++++++-------------------- example/package.json | 6 +- example/pages/[slug].vue | 48 + example/pages/index.vue | 35 +- example/pages/nuxt.vue | 16 + example/pages/posts.vue | 115 +- example/pages/vue.vue | 5 +- example/plugins/vue-katex.ts | 5 + example/plugins/vue-notion.ts | 11 + example/public/favicon.ico | Bin 0 -> 4286 bytes example/tsconfig.json | 2 +- package-lock.json | 749 ++-- package.json | 33 +- src/lib/api.js | 8 +- 21 files changed, 3051 insertions(+), 4345 deletions(-) create mode 100644 example/.npmrc create mode 100644 example/README.md create mode 100644 example/pages/[slug].vue create mode 100644 example/pages/nuxt.vue create mode 100644 example/plugins/vue-katex.ts create mode 100644 example/plugins/vue-notion.ts create mode 100644 example/public/favicon.ico diff --git a/dev/serve.js b/dev/serve.js index 8dfb4a9..43dbfe3 100644 --- a/dev/serve.js +++ b/dev/serve.js @@ -6,8 +6,6 @@ import { NotionRenderer } from "@/entry"; const app = createApp(App); -console.log(app); - app.use(Vue3Katex); app.component("NotionRenderer", NotionRenderer); diff --git a/example/.gitignore b/example/.gitignore index ef8107f..90e126d 100644 --- a/example/.gitignore +++ b/example/.gitignore @@ -1,92 +1,9 @@ -# Created by .ignore support plugin (hsz.mobi) -### Node template -# Logs -/logs -*.log -npm-debug.log* -yarn-debug.log* -yarn-error.log* - -# Runtime data -pids -*.pid -*.seed -*.pid.lock - -# Directory for instrumented libs generated by jscoverage/JSCover -lib-cov - -# Coverage directory used by tools like istanbul -coverage - -# nyc test coverage -.nyc_output - -# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) -.grunt - -# Bower dependency directory (https://bower.io/) -bower_components - -# node-waf configuration -.lock-wscript - -# Compiled binary addons (https://nodejs.org/api/addons.html) -build/Release - -# Dependency directories -node_modules/ -jspm_packages/ - -# TypeScript v1 declaration files -typings/ - -# Optional npm cache directory -.npm - -# Optional eslint cache -.eslintcache - -# Optional REPL history -.node_repl_history - -# Output of 'npm pack' -*.tgz - -# Yarn Integrity file -.yarn-integrity - -# dotenv environment variables file -.env - -# parcel-bundler cache (https://parceljs.org/) -.cache - -# next.js build output -.next - -# nuxt.js build output +node_modules +*.log* .nuxt - -# Nuxt generate +.nitro +.cache +.output +.env dist - -# vuepress build output -.vuepress/dist - -# Serverless directories -.serverless - -# IDE / Editor -.idea - -# Service worker -sw.* - -# macOS .DS_Store - -# Vim swap files -*.swp - -.output diff --git a/example/.npmrc b/example/.npmrc new file mode 100644 index 0000000..cf04042 --- /dev/null +++ b/example/.npmrc @@ -0,0 +1,2 @@ +shamefully-hoist=true +strict-peer-dependencies=false diff --git a/example/README.md b/example/README.md new file mode 100644 index 0000000..c699c96 --- /dev/null +++ b/example/README.md @@ -0,0 +1,42 @@ +# Nuxt 3 Minimal Starter + +Look at the [Nuxt 3 documentation](https://nuxt.com/docs/getting-started/introduction) to learn more. + +## Setup + +Make sure to install the dependencies: + +```bash +# yarn +yarn install + +# npm +npm install + +# pnpm +pnpm install +``` + +## Development Server + +Start the development server on http://localhost:3000 + +```bash +npm run dev +``` + +## Production + +Build the application for production: + +```bash +npm run build +``` + +Locally preview production build: + +```bash +npm run preview +``` + +Check out the [deployment documentation](https://nuxt.com/docs/getting-started/deployment) for more information. diff --git a/example/app.vue b/example/app.vue index 8f62b8b..f8eacfa 100644 --- a/example/app.vue +++ b/example/app.vue @@ -1,3 +1,5 @@ diff --git a/example/layouts/default.vue b/example/layouts/default.vue index c853c21..553dba8 100644 --- a/example/layouts/default.vue +++ b/example/layouts/default.vue @@ -1,7 +1,5 @@ diff --git a/example/pages/index.vue b/example/pages/index.vue index 85691da..5d653a7 100644 --- a/example/pages/index.vue +++ b/example/pages/index.vue @@ -1,41 +1,26 @@ -