chore: update examples to `^3.0.0-rc.10` and use global `defineNuxtConfig` (#7515)

This commit is contained in:
pooya parsa 2022-09-14 19:26:43 +02:00 committed by GitHub
parent 94377b1901
commit 5973df1e96
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
69 changed files with 152 additions and 250 deletions

View File

@ -70,8 +70,6 @@ In your `nuxt.config`
::code-group
```ts [SCSS]
import { defineNuxtConfig } from 'nuxt'
export default defineNuxtConfig({
vite: {
css: {
@ -86,8 +84,6 @@ export default defineNuxtConfig({
```
```ts [SASS]
import { defineNuxtConfig } from 'nuxt'
export default defineNuxtConfig({
vite: {
css: {

View File

@ -148,7 +148,6 @@ To test the modules we create, we could set up some Nuxt apps as fixtures and te
```ts
// nuxt.config.js
import { defineNuxtConfig } from 'nuxt'
import MyModule from '../../src'
export default defineNuxtConfig({

View File

@ -117,8 +117,6 @@ If you encounter these errors, the issue is almost certainly with the upstream l
In the meantime, you can tell Nuxt not to try to import these libraries by adding them to `build.transpile`:
```js
import { defineNuxtConfig } from 'nuxt'
export default defineNuxtConfig({
build: {
transpile: ['sample-library']
@ -133,8 +131,6 @@ You may find that you _also_ need to add other packages that are being imported
In some cases, you may also need to manually alias the library to the CJS version, for example:
```js
import { defineNuxtConfig } from 'nuxt'
export default defineNuxtConfig({
alias: {
'sample-library': 'sample-library/dist/sample-library.cjs.js'

View File

@ -70,7 +70,6 @@ If you are using `resolveComponent` to handle dynamic components, make sure not
Alternatively, though not recommended, you can register all your components globally, which will create async chunks for all your components and make them available throughout your application.
```diff
import { defineNuxtConfig } from 'nuxt'
export default defineNuxtConfig({
components: {
@ -187,7 +186,7 @@ Make sure not to _nest_ `<ClientOnly>` components or other client-only component
If a component is meant to be rendered only client-side, you can add the `.client` suffix to your component.
```bash
| components/
| components/
--| Comments.client.vue
```
@ -209,14 +208,14 @@ This feature only works with Nuxt auto-imports. Explicitly importing these compo
`.server` components are fallback components of `.client` components.
```bash
| components/
| components/
--| Comments.client.vue
--| Comments.server.vue
```
```html{}[pages/example.vue]
<template>
<div>
<div>
<!-- this component will render Comments.server server-side then Comments.client once mounted in client-side -->
<Comments />
</div>

View File

@ -42,8 +42,6 @@ Install the `@nuxt/content` module in your project:
Then, add `@nuxt/content` to the `modules` section of `nuxt.config.ts`:
```ts [nuxt.config.ts]
import { defineNuxtConfig } from 'nuxt'
export default defineNuxtConfig({
modules: [
'@nuxt/content'

View File

@ -407,8 +407,6 @@ export default defineNuxtConfig({
You can enable hash history in SPA mode. In this mode, router uses a hash character (#) before the actual URL that is internally passed. When enabled, the **URL is never sent to the server** and **SSR is not supported**.
```ts [nuxt.config.ts]
import { defineNuxtConfig } from 'nuxt'
export default defineNuxtConfig({
ssr: false,
router: {

View File

@ -177,8 +177,6 @@ This is an advanced option. Custom config can affect production deployments, as
::
```ts [nuxt.config.ts]
import { defineNuxtConfig } from 'nuxt'
export default defineNuxtConfig({
// https://nitro.unjs.io/config
nitro: {}
@ -240,8 +238,6 @@ Nitro provides a cross-platform [storage layer](https://nitro.unjs.io/guide/intr
#### Example: Using Redis
```ts [nuxt.config.ts]
import { defineNuxtConfig } from 'nuxt'
export default defineNuxtConfig({
nitro: {
storage: {

View File

@ -9,7 +9,20 @@ head.title: Nuxt Configuration file
Nuxt can be easily configured with a single `nuxt.config` file, which can have either a `.js`, `.ts` or `.mjs` extension.
```ts
import { defineNuxtConfig } from 'nuxt'
export default defineNuxtConfig({
// My Nuxt config
})
```
::alert
`defineNuxtConfig` helper is globally available without import.
::
You can explicitily import `defineNuxtConfig` from `nuxt/config` if you prefer:
```js
import { defineNuxtConfig } from 'nuxt/config'
export default defineNuxtConfig({
// My Nuxt config

View File

@ -179,7 +179,6 @@ Add the folder `.output` to the `.gitignore` file.
```ts [nuxt.config.js|ts]
import { defineNuxtConfig } from '@nuxt/bridge'
export default defineNuxtConfig({
bridge: false // Temporarily disable bridge integration
})
@ -222,7 +221,6 @@ You will also need to enable this feature explicitly in your `nuxt.config`:
```js
import { defineNuxtConfig } from '@nuxt/bridge'
export default defineNuxtConfig({
bridge: {
meta: true
@ -243,7 +241,6 @@ You can check [bridge/src/module.ts](https://github.com/nuxt/bridge/blob/main/sr
```ts [nuxt.config.js|ts]
import { defineNuxtConfig } from '@nuxt/bridge'
export default defineNuxtConfig({
bridge: {

View File

@ -26,8 +26,6 @@ Nuxt configuration will be loaded using [`unjs/jiti`](https://github.com/unjs/ji
```
```ts [Nuxt 3]
import { defineNuxtConfig } from 'nuxt'
export default defineNuxtConfig({
// ...
})
@ -50,8 +48,6 @@ Nuxt configuration will be loaded using [`unjs/jiti`](https://github.com/unjs/ji
```
```ts [Nuxt 3]
import { defineNuxtConfig } from 'nuxt'
export default defineNuxtConfig({
hooks: {
'pages:extend' (routes) {

View File

@ -21,8 +21,6 @@ When referencing these variables within your components, you will have to use th
::code-group
```ts [nuxt.config.ts]
import { defineNuxtConfig } from 'nuxt'
export default defineNuxtConfig({
runtimeConfig: {
// Private config that is only available on the server
@ -38,7 +36,7 @@ export default defineNuxtConfig({
```vue [pages/index.vue]
<script setup>
const config = useRuntimeConfig()
// instead of process.env you will now access config.public.apiBase
console.log(config.public.apiBase)
</script>

View File

@ -165,10 +165,10 @@
resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.15.0.tgz#2dbaf8b85334796cafbb0f5793a90a2fc010b176"
integrity sha512-0NqAC1IJE0S0+lL1SWFMxMkz1pKCNCjI4tr2Zx4LJSXxCLAdr6KyArnY+sno5m3yH9g737ygOyPABDsnXkpxiA==
"@babel/compat-data@^7.18.8":
version "7.18.8"
resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.18.8.tgz#2483f565faca607b8535590e84e7de323f27764d"
integrity sha512-HSmX4WZPPK3FUxYp7g2T6EyO8j96HlZJlxmKPSh6KAcqwyDrfx7hKjXpAW/0FhFfTJsR0Yt4lAjLI2coMptIHQ==
"@babel/compat-data@^7.19.1":
version "7.19.1"
resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.19.1.tgz#72d647b4ff6a4f82878d184613353af1dd0290f9"
integrity sha512-72a9ghR0gnESIa7jBN53U32FOVCEoztyIlKaNoU05zRhEecduGK9L9c3ww7Mp06JiR+0ls0GBPFJQwwtjn9ksg==
"@babel/core@^7.15.5", "@babel/core@^7.15.8":
version "7.15.8"
@ -191,21 +191,21 @@
semver "^6.3.0"
source-map "^0.5.0"
"@babel/core@^7.18.13":
version "7.18.13"
resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.18.13.tgz#9be8c44512751b05094a4d3ab05fc53a47ce00ac"
integrity sha512-ZisbOvRRusFktksHSG6pjj1CSvkPkcZq/KHD45LAkVP/oiHJkNBZWfpvlLmX8OtHDG8IuzsFlVRWo08w7Qxn0A==
"@babel/core@^7.19.0":
version "7.19.1"
resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.19.1.tgz#c8fa615c5e88e272564ace3d42fbc8b17bfeb22b"
integrity sha512-1H8VgqXme4UXCRv7/Wa1bq7RVymKOzC7znjyFM8KiEzwFqcKUKYNoQef4GhdklgNvoBXyW4gYhuBNCM5o1zImw==
dependencies:
"@ampproject/remapping" "^2.1.0"
"@babel/code-frame" "^7.18.6"
"@babel/generator" "^7.18.13"
"@babel/helper-compilation-targets" "^7.18.9"
"@babel/helper-module-transforms" "^7.18.9"
"@babel/helpers" "^7.18.9"
"@babel/parser" "^7.18.13"
"@babel/generator" "^7.19.0"
"@babel/helper-compilation-targets" "^7.19.1"
"@babel/helper-module-transforms" "^7.19.0"
"@babel/helpers" "^7.19.0"
"@babel/parser" "^7.19.1"
"@babel/template" "^7.18.10"
"@babel/traverse" "^7.18.13"
"@babel/types" "^7.18.13"
"@babel/traverse" "^7.19.1"
"@babel/types" "^7.19.0"
convert-source-map "^1.7.0"
debug "^4.1.0"
gensync "^1.0.0-beta.2"
@ -221,21 +221,12 @@
jsesc "^2.5.1"
source-map "^0.5.0"
"@babel/generator@^7.18.10":
version "7.18.10"
resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.18.10.tgz#794f328bfabdcbaf0ebf9bf91b5b57b61fa77a2a"
integrity sha512-0+sW7e3HjQbiHbj1NeU/vN8ornohYlacAfZIaXhdoGweQqgcNy69COVciYYqEXJ/v+9OBA7Frxm4CVAuNqKeNA==
"@babel/generator@^7.19.0":
version "7.19.0"
resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.19.0.tgz#785596c06425e59334df2ccee63ab166b738419a"
integrity sha512-S1ahxf1gZ2dpoiFgA+ohK9DIpz50bJ0CWs7Zlzb54Z4sG8qmdIrGrVqmy1sAtTVRb+9CU6U8VqT9L0Zj7hxHVg==
dependencies:
"@babel/types" "^7.18.10"
"@jridgewell/gen-mapping" "^0.3.2"
jsesc "^2.5.1"
"@babel/generator@^7.18.13":
version "7.18.13"
resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.18.13.tgz#59550cbb9ae79b8def15587bdfbaa388c4abf212"
integrity sha512-CkPg8ySSPuHTYPJYo7IRALdqyjM9HCbt/3uOBEFbzyGVP6Mn8bwFPB0jX6982JVNBlYzM1nnPkfjuXSOPtQeEQ==
dependencies:
"@babel/types" "^7.18.13"
"@babel/types" "^7.19.0"
"@jridgewell/gen-mapping" "^0.3.2"
jsesc "^2.5.1"
@ -264,14 +255,14 @@
browserslist "^4.16.6"
semver "^6.3.0"
"@babel/helper-compilation-targets@^7.18.9":
version "7.18.9"
resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.18.9.tgz#69e64f57b524cde3e5ff6cc5a9f4a387ee5563bf"
integrity sha512-tzLCyVmqUiFlcFoAPLA/gL9TeYrF61VLNtb+hvkuVaB5SUjW7jcfrglBIX1vUIoT7CLP3bBlIMeyEsIl2eFQNg==
"@babel/helper-compilation-targets@^7.19.1":
version "7.19.1"
resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.19.1.tgz#7f630911d83b408b76fe584831c98e5395d7a17c"
integrity sha512-LlLkkqhCMyz2lkQPvJNdIYU7O5YjWRgC2R4omjCTpZd8u8KMQzZvX4qce+/BluN1rcQiV7BoGUpmQ0LeHerbhg==
dependencies:
"@babel/compat-data" "^7.18.8"
"@babel/compat-data" "^7.19.1"
"@babel/helper-validator-option" "^7.18.6"
browserslist "^4.20.2"
browserslist "^4.21.3"
semver "^6.3.0"
"@babel/helper-create-class-features-plugin@^7.14.5", "@babel/helper-create-class-features-plugin@^7.15.4":
@ -329,13 +320,13 @@
"@babel/template" "^7.15.4"
"@babel/types" "^7.15.4"
"@babel/helper-function-name@^7.18.9":
version "7.18.9"
resolved "https://registry.yarnpkg.com/@babel/helper-function-name/-/helper-function-name-7.18.9.tgz#940e6084a55dee867d33b4e487da2676365e86b0"
integrity sha512-fJgWlZt7nxGksJS9a0XdSaI4XvpExnNIgRP+rVefWh5U7BL8pPuir6SJUmFKRfjWQ51OtWSzwOxhaH/EBWWc0A==
"@babel/helper-function-name@^7.19.0":
version "7.19.0"
resolved "https://registry.yarnpkg.com/@babel/helper-function-name/-/helper-function-name-7.19.0.tgz#941574ed5390682e872e52d3f38ce9d1bef4648c"
integrity sha512-WAwHBINyrpqywkUH0nTnNgI5ina5TFn85HKS0pbPDfxFfhyR/aNQEn4hGi1P1JyT//I0t4OgXUlofzWILRvS5w==
dependencies:
"@babel/template" "^7.18.6"
"@babel/types" "^7.18.9"
"@babel/template" "^7.18.10"
"@babel/types" "^7.19.0"
"@babel/helper-get-function-arity@^7.15.4":
version "7.15.4"
@ -393,19 +384,19 @@
"@babel/traverse" "^7.15.4"
"@babel/types" "^7.15.6"
"@babel/helper-module-transforms@^7.18.9":
version "7.18.9"
resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.18.9.tgz#5a1079c005135ed627442df31a42887e80fcb712"
integrity sha512-KYNqY0ICwfv19b31XzvmI/mfcylOzbLtowkw+mfvGPAQ3kfCnMLYbED3YecL5tPd8nAYFQFAd6JHp2LxZk/J1g==
"@babel/helper-module-transforms@^7.19.0":
version "7.19.0"
resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.19.0.tgz#309b230f04e22c58c6a2c0c0c7e50b216d350c30"
integrity sha512-3HBZ377Fe14RbLIA+ac3sY4PTgpxHVkFrESaWhoI5PuyXPBBX8+C34qblV9G89ZtycGJCmCI/Ut+VUDK4bltNQ==
dependencies:
"@babel/helper-environment-visitor" "^7.18.9"
"@babel/helper-module-imports" "^7.18.6"
"@babel/helper-simple-access" "^7.18.6"
"@babel/helper-split-export-declaration" "^7.18.6"
"@babel/helper-validator-identifier" "^7.18.6"
"@babel/template" "^7.18.6"
"@babel/traverse" "^7.18.9"
"@babel/types" "^7.18.9"
"@babel/template" "^7.18.10"
"@babel/traverse" "^7.19.0"
"@babel/types" "^7.19.0"
"@babel/helper-optimise-call-expression@^7.15.4":
version "7.15.4"
@ -517,14 +508,14 @@
"@babel/traverse" "^7.15.4"
"@babel/types" "^7.15.4"
"@babel/helpers@^7.18.9":
version "7.18.9"
resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.18.9.tgz#4bef3b893f253a1eced04516824ede94dcfe7ff9"
integrity sha512-Jf5a+rbrLoR4eNdUmnFu8cN5eNJT6qdTdOg5IHIzq87WwyRw9PwguLFOWYgktN/60IP4fgDUawJvs7PjQIzELQ==
"@babel/helpers@^7.19.0":
version "7.19.0"
resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.19.0.tgz#f30534657faf246ae96551d88dd31e9d1fa1fc18"
integrity sha512-DRBCKGwIEdqY3+rPJgG/dKfQy9+08rHIAJx8q2p+HSWP87s2HCrQmaAMMyMll2kIXKCW0cO1RdQskx15Xakftg==
dependencies:
"@babel/template" "^7.18.6"
"@babel/traverse" "^7.18.9"
"@babel/types" "^7.18.9"
"@babel/template" "^7.18.10"
"@babel/traverse" "^7.19.0"
"@babel/types" "^7.19.0"
"@babel/highlight@^7.14.5":
version "7.14.5"
@ -549,15 +540,15 @@
resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.15.8.tgz#7bacdcbe71bdc3ff936d510c15dcea7cf0b99016"
integrity sha512-BRYa3wcQnjS/nqI8Ac94pYYpJfojHVvVXJ97+IDCImX4Jc8W8Xv1+47enbruk+q1etOpsQNwnfFcNGw+gtPGxA==
"@babel/parser@^7.18.10", "@babel/parser@^7.18.11":
"@babel/parser@^7.18.10":
version "7.18.11"
resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.18.11.tgz#68bb07ab3d380affa9a3f96728df07969645d2d9"
integrity sha512-9JKn5vN+hDt0Hdqn1PiJ2guflwP+B6Ga8qbDuoF0PzzVhrzsKIJo8yGqVk6CmMHiMei9w1C1Bp9IMJSIK+HPIQ==
"@babel/parser@^7.18.13":
version "7.18.13"
resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.18.13.tgz#5b2dd21cae4a2c5145f1fbd8ca103f9313d3b7e4"
integrity sha512-dgXcIfMuQ0kgzLB2b9tRZs7TTFFaGM2AbtA4fJgUUYukzGH4jwsS7hzQHEGs67jdehpm22vkgKwvbU+aEflgwg==
"@babel/parser@^7.19.1":
version "7.19.1"
resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.19.1.tgz#6f6d6c2e621aad19a92544cc217ed13f1aac5b4c"
integrity sha512-h7RCSorm1DdTVGJf3P2Mhj3kdnkmF/EiysUkzS2TdgAYqyjFdMQJbVuXOBej2SBJaXan/lIVtT6KkGbyyq753A==
"@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining@^7.15.4":
version "7.15.4"
@ -1195,10 +1186,10 @@
resolved "https://registry.yarnpkg.com/@babel/standalone/-/standalone-7.15.8.tgz#3cb40b81892a702968a3e0bba2bdd1115f034876"
integrity sha512-EF2uQLeuwflnPRGetWH2Z400ITOSK7YbkXIKxY91EWSiOJ8xsbupT3sx3sFRwVyQgjsHSILFDzLcSo/rGspLhQ==
"@babel/standalone@^7.18.13":
version "7.18.13"
resolved "https://registry.yarnpkg.com/@babel/standalone/-/standalone-7.18.13.tgz#380fd841d95bfd55435282f323136c1ad2469b86"
integrity sha512-5hjvvFkaXyfQri+s4CAZtx6FTKclfTNd2QN2RwgzCVJhnYYgKh4YFBCnNJSxurzvpSKD2NmpCkoWAkMc+j9y+g==
"@babel/standalone@^7.19.0":
version "7.19.1"
resolved "https://registry.yarnpkg.com/@babel/standalone/-/standalone-7.19.1.tgz#7662e7653e019fae8f7c07544946a440e63a3914"
integrity sha512-L64ozsIg/oUuHMiKsZLpnxg1cgvOY1bb62PoTzgm/x/vfvBS+besd41Cg6tc4KvLyubbQVik1o/0HN2BdUDVUQ==
"@babel/template@^7.15.4":
version "7.15.4"
@ -1209,7 +1200,7 @@
"@babel/parser" "^7.15.4"
"@babel/types" "^7.15.4"
"@babel/template@^7.18.10", "@babel/template@^7.18.6":
"@babel/template@^7.18.10":
version "7.18.10"
resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.18.10.tgz#6f9134835970d1dbf0835c0d100c9f38de0c5e71"
integrity sha512-TI+rCtooWHr3QJ27kJxfjutghu44DLnasDMwpDqCXVTal9RLp3RSYNh4NdBrRP2cQAoG9A8juOQl6P6oZG4JxA==
@ -1233,35 +1224,19 @@
debug "^4.1.0"
globals "^11.1.0"
"@babel/traverse@^7.18.13":
version "7.18.13"
resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.18.13.tgz#5ab59ef51a997b3f10c4587d648b9696b6cb1a68"
integrity sha512-N6kt9X1jRMLPxxxPYWi7tgvJRH/rtoU+dbKAPDM44RFHiMH8igdsaSBgFeskhSl/kLWLDUvIh1RXCrTmg0/zvA==
"@babel/traverse@^7.19.0", "@babel/traverse@^7.19.1":
version "7.19.1"
resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.19.1.tgz#0fafe100a8c2a603b4718b1d9bf2568d1d193347"
integrity sha512-0j/ZfZMxKukDaag2PtOPDbwuELqIar6lLskVPPJDjXMXjfLb1Obo/1yjxIGqqAJrmfaTIY3z2wFLAQ7qSkLsuA==
dependencies:
"@babel/code-frame" "^7.18.6"
"@babel/generator" "^7.18.13"
"@babel/generator" "^7.19.0"
"@babel/helper-environment-visitor" "^7.18.9"
"@babel/helper-function-name" "^7.18.9"
"@babel/helper-function-name" "^7.19.0"
"@babel/helper-hoist-variables" "^7.18.6"
"@babel/helper-split-export-declaration" "^7.18.6"
"@babel/parser" "^7.18.13"
"@babel/types" "^7.18.13"
debug "^4.1.0"
globals "^11.1.0"
"@babel/traverse@^7.18.9":
version "7.18.11"
resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.18.11.tgz#3d51f2afbd83ecf9912bcbb5c4d94e3d2ddaa16f"
integrity sha512-TG9PiM2R/cWCAy6BPJKeHzNbu4lPzOSZpeMfeNErskGpTJx6trEvFaVCbDvpcxwy49BKWmEPwiW8mrysNiDvIQ==
dependencies:
"@babel/code-frame" "^7.18.6"
"@babel/generator" "^7.18.10"
"@babel/helper-environment-visitor" "^7.18.9"
"@babel/helper-function-name" "^7.18.9"
"@babel/helper-hoist-variables" "^7.18.6"
"@babel/helper-split-export-declaration" "^7.18.6"
"@babel/parser" "^7.18.11"
"@babel/types" "^7.18.10"
"@babel/parser" "^7.19.1"
"@babel/types" "^7.19.0"
debug "^4.1.0"
globals "^11.1.0"
@ -1273,7 +1248,7 @@
"@babel/helper-validator-identifier" "^7.14.9"
to-fast-properties "^2.0.0"
"@babel/types@^7.18.10", "@babel/types@^7.18.6", "@babel/types@^7.18.9":
"@babel/types@^7.18.10", "@babel/types@^7.18.6":
version "7.18.10"
resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.18.10.tgz#4908e81b6b339ca7c6b7a555a5fc29446f26dde6"
integrity sha512-MJvnbEiiNkpjo+LknnmRrqbY1GPUUggjv+wQVjetM/AONoupqRALB7I6jGqNUAZsKcRIEu2J6FRFvsczljjsaQ==
@ -1282,10 +1257,10 @@
"@babel/helper-validator-identifier" "^7.18.6"
to-fast-properties "^2.0.0"
"@babel/types@^7.18.13":
version "7.18.13"
resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.18.13.tgz#30aeb9e514f4100f7c1cb6e5ba472b30e48f519a"
integrity sha512-ePqfTihzW0W6XAU+aMw2ykilisStJfDnsejDCXRchCcMJ4O0+8DhPXf2YUbZ6wjBlsEmZwLK/sPweWtu8hcJYQ==
"@babel/types@^7.19.0":
version "7.19.0"
resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.19.0.tgz#75f21d73d73dc0351f3368d28db73465f4814600"
integrity sha512-YuGopBq3ke25BVSiS6fgF49Ul9gH1x70Bcr6bqRLjWCkcX8Hre1/5+z+IiWOIerRMSSEfGZVB9z9kyq7wVs9YA==
dependencies:
"@babel/helper-string-parser" "^7.18.10"
"@babel/helper-validator-identifier" "^7.18.6"
@ -3544,7 +3519,7 @@ browserslist@^4.0.0, browserslist@^4.12.0, browserslist@^4.16.6, browserslist@^4
node-releases "^2.0.0"
picocolors "^1.0.0"
browserslist@^4.20.2:
browserslist@^4.21.3:
version "4.21.3"
resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.21.3.tgz#5df277694eb3c48bc5c4b05af3e8b7e09c5a6d1a"
integrity sha512-898rgRXLAyRkM1GryrrBHGkqA5hlpkV5MhtZwg9QXeiyLUYs2k00Un05aX5l2/yJIOObYKOpS2JNo8nJDE7fWQ==
@ -11460,14 +11435,14 @@ untyped@^0.2.5, untyped@^0.2.8, untyped@^0.2.9:
resolved "https://registry.yarnpkg.com/untyped/-/untyped-0.2.9.tgz#3e3df96a303dec3e2eda55fcbdc02e2ab468683d"
integrity sha512-8d8V+q/y5CGzV+IYnoOCMjrK+NSNp1HKO8iPQ+bV4rBP8knPIme3+j/bpej8IuMnEMxOJZNptXNOXCx7w+VJxQ==
untyped@^0.4.7:
version "0.4.7"
resolved "https://registry.yarnpkg.com/untyped/-/untyped-0.4.7.tgz#1c6386eb941935199f2ab57981a0308546243141"
integrity sha512-hBgCv7fnqIRzAagn2cUZxxVmhTE7NcMAgI8CfQelFVacG4O55VrurigpK0G504ph4sQSqVsGEo52O5EKFCnJ9g==
untyped@^0.5.0:
version "0.5.0"
resolved "https://registry.yarnpkg.com/untyped/-/untyped-0.5.0.tgz#0c8be1296d128a3f35e0df229b542f288741a50f"
integrity sha512-2Sre5A1a7G61bjaAKZnSFaVgbJMwwbbYQpJFH69hAYcDfN7kIaktlSphS02XJilz4+/jR1tsJ5MHo1oMoCezxg==
dependencies:
"@babel/core" "^7.18.13"
"@babel/standalone" "^7.18.13"
"@babel/types" "^7.18.13"
"@babel/core" "^7.19.0"
"@babel/standalone" "^7.19.0"
"@babel/types" "^7.19.0"
scule "^0.3.2"
upath@^1.1.1:

View File

@ -1,5 +1,3 @@
import { defineNuxtConfig } from 'nuxt'
export default defineNuxtConfig({
imports: {
dirs: ['utils']

View File

@ -1,5 +1,3 @@
import { defineNuxtConfig } from 'nuxt'
export default defineNuxtConfig({
extends: [
'./ui',

View File

@ -3,7 +3,7 @@
"private": true,
"devDependencies": {
"@nuxt/ui": "^0.3.2",
"nuxt": "^3.0.0-rc.9"
"nuxt": "^3.0.0-rc.10"
},
"scripts": {
"dev": "nuxi dev",

View File

@ -1,5 +1,3 @@
import { defineNuxtConfig } from 'nuxt'
export default defineNuxtConfig({
components: [
{ path: './components', prefix: 'UI' }

View File

@ -1,5 +1,3 @@
import { defineNuxtConfig } from 'nuxt'
export default defineNuxtConfig({
modules: [
'@nuxt/ui'

View File

@ -8,6 +8,6 @@
},
"devDependencies": {
"@nuxt/ui": "^0.3.2",
"nuxt": "^3.0.0-rc.9"
"nuxt": "^3.0.0-rc.10"
}
}

View File

@ -1,5 +1,3 @@
import { defineNuxtConfig } from 'nuxt'
export default defineNuxtConfig({
modules: [
'~/modules/pages',

View File

@ -8,6 +8,6 @@
},
"devDependencies": {
"@nuxt/ui": "^0.3.2",
"nuxt": "^3.0.0-rc.9"
"nuxt": "^3.0.0-rc.10"
}
}

View File

@ -1,4 +1,2 @@
import { defineNuxtConfig } from 'nuxt'
export default defineNuxtConfig({
})

View File

@ -7,6 +7,6 @@
"start": "nuxi preview"
},
"devDependencies": {
"nuxt": "^3.0.0-rc.9"
"nuxt": "^3.0.0-rc.10"
}
}

View File

@ -1,5 +1,3 @@
import { defineNuxtConfig } from 'nuxt'
export default defineNuxtConfig({
modules: [
'@nuxt/ui'

View File

@ -8,6 +8,6 @@
},
"devDependencies": {
"@nuxt/ui": "^0.3.2",
"nuxt": "^3.0.0-rc.9"
"nuxt": "^3.0.0-rc.10"
}
}

View File

@ -1,5 +1,3 @@
import { defineNuxtConfig } from 'nuxt'
export default defineNuxtConfig({
modules: [
'@nuxt/ui'

View File

@ -8,6 +8,6 @@
},
"devDependencies": {
"@nuxt/ui": "^0.3.2",
"nuxt": "^3.0.0-rc.9"
"nuxt": "^3.0.0-rc.10"
}
}

View File

@ -1,5 +1,3 @@
import { defineNuxtConfig } from 'nuxt'
export default defineNuxtConfig({
modules: [
'@nuxt/ui'

View File

@ -8,6 +8,6 @@
},
"devDependencies": {
"@nuxt/ui": "^0.3.2",
"nuxt": "^3.0.0-rc.9"
"nuxt": "^3.0.0-rc.10"
}
}

View File

@ -1,5 +1,3 @@
import { defineNuxtConfig } from 'nuxt'
export default defineNuxtConfig({
modules: [
'@nuxt/ui'

View File

@ -8,6 +8,6 @@
},
"devDependencies": {
"@nuxt/ui": "^0.3.2",
"nuxt": "^3.0.0-rc.9"
"nuxt": "^3.0.0-rc.10"
}
}

View File

@ -1,5 +1,3 @@
import { defineNuxtConfig } from 'nuxt'
export default defineNuxtConfig({
modules: [
'@nuxt/ui'

View File

@ -8,6 +8,6 @@
},
"devDependencies": {
"@nuxt/ui": "^0.3.2",
"nuxt": "^3.0.0-rc.9"
"nuxt": "^3.0.0-rc.10"
}
}

View File

@ -1,5 +1,3 @@
import { defineNuxtConfig } from 'nuxt'
export default defineNuxtConfig({
modules: [
'@nuxt/ui'

View File

@ -8,6 +8,6 @@
},
"devDependencies": {
"@nuxt/ui": "^0.3.2",
"nuxt": "^3.0.0-rc.9"
"nuxt": "^3.0.0-rc.10"
}
}

View File

@ -1,5 +1,3 @@
import { defineNuxtConfig } from 'nuxt'
export default defineNuxtConfig({
modules: [
'@nuxt/ui'

View File

@ -8,6 +8,6 @@
},
"devDependencies": {
"@nuxt/ui": "^0.3.2",
"nuxt": "^3.0.0-rc.9"
"nuxt": "^3.0.0-rc.10"
}
}

View File

@ -1,5 +1,3 @@
import { defineNuxtConfig } from 'nuxt'
export default defineNuxtConfig({
modules: [
'@nuxt/ui'

View File

@ -8,6 +8,6 @@
},
"devDependencies": {
"@nuxt/ui": "^0.3.2",
"nuxt": "^3.0.0-rc.9"
"nuxt": "^3.0.0-rc.10"
}
}

View File

@ -1,5 +1,3 @@
import { defineNuxtConfig } from 'nuxt'
export default defineNuxtConfig({
modules: [
'@nuxt/ui'

View File

@ -8,6 +8,6 @@
},
"devDependencies": {
"@nuxt/ui": "^0.3.2",
"nuxt": "^3.0.0-rc.9"
"nuxt": "^3.0.0-rc.10"
}
}

View File

@ -1,5 +1,3 @@
import { defineNuxtConfig } from 'nuxt'
export default defineNuxtConfig({
modules: [
'@nuxt/ui'

View File

@ -8,6 +8,6 @@
},
"devDependencies": {
"@nuxt/ui": "^0.3.2",
"nuxt": "^3.0.0-rc.9"
"nuxt": "^3.0.0-rc.10"
}
}

View File

@ -1,5 +1,3 @@
import { defineNuxtConfig } from 'nuxt'
export default defineNuxtConfig({
modules: [
'@nuxt/ui'

View File

@ -8,6 +8,6 @@
},
"devDependencies": {
"@nuxt/ui": "^0.3.2",
"nuxt": "^3.0.0-rc.9"
"nuxt": "^3.0.0-rc.10"
}
}

View File

@ -1,4 +1,2 @@
import { defineNuxtConfig } from 'nuxt'
export default defineNuxtConfig({
})

View File

@ -7,6 +7,6 @@
"start": "nuxi preview"
},
"devDependencies": {
"nuxt": "^3.0.0-rc.9"
"nuxt": "^3.0.0-rc.10"
}
}

View File

@ -1,5 +1,3 @@
import { defineNuxtConfig } from 'nuxt'
export default defineNuxtConfig({
modules: [
'@nuxt/ui'

View File

@ -8,6 +8,6 @@
},
"devDependencies": {
"@nuxt/ui": "^0.3.2",
"nuxt": "^3.0.0-rc.9"
"nuxt": "^3.0.0-rc.10"
}
}

View File

@ -1,5 +1,3 @@
import { defineNuxtConfig } from 'nuxt'
export default defineNuxtConfig({
modules: [
'@nuxt/ui'

View File

@ -8,6 +8,6 @@
},
"devDependencies": {
"@nuxt/ui": "^0.3.2",
"nuxt": "^3.0.0-rc.9"
"nuxt": "^3.0.0-rc.10"
}
}

View File

@ -1,5 +1,3 @@
import { defineNuxtConfig } from 'nuxt'
export default defineNuxtConfig({
nitro: {
experiments: {

View File

@ -3,7 +3,7 @@
"private": true,
"devDependencies": {
"@nuxt/ui": "^0.3.2",
"nuxt": "^3.0.0-rc.9"
"nuxt": "^3.0.0-rc.10"
},
"scripts": {
"dev": "nuxi dev",

View File

@ -1,5 +1,3 @@
import { defineNuxtConfig } from 'nuxt'
export default defineNuxtConfig({
modules: [
'@nuxt/ui'

View File

@ -8,6 +8,6 @@
},
"devDependencies": {
"@nuxt/ui": "^0.3.2",
"nuxt": "^3.0.0-rc.9"
"nuxt": "^3.0.0-rc.10"
}
}

View File

@ -1,5 +1,3 @@
import { defineNuxtConfig } from 'nuxt'
export default defineNuxtConfig({
modules: [
'@nuxt/ui'

View File

@ -8,6 +8,6 @@
},
"devDependencies": {
"@nuxt/ui": "^0.3.2",
"nuxt": "^3.0.0-rc.9"
"nuxt": "^3.0.0-rc.10"
}
}

View File

@ -1,5 +1,3 @@
import { defineNuxtConfig } from 'nuxt'
export default defineNuxtConfig({
modules: [
'@nuxt/ui'

View File

@ -8,6 +8,6 @@
},
"devDependencies": {
"@nuxt/ui": "^0.3.2",
"nuxt": "^3.0.0-rc.9"
"nuxt": "^3.0.0-rc.10"
}
}

View File

@ -1,5 +1,3 @@
import { defineNuxtConfig } from 'nuxt'
export default defineNuxtConfig({
modules: [
'@nuxt/ui'

View File

@ -8,6 +8,6 @@
},
"devDependencies": {
"@nuxt/ui": "^0.3.2",
"nuxt": "^3.0.0-rc.9"
"nuxt": "^3.0.0-rc.10"
}
}

View File

@ -1,5 +1,3 @@
import { defineNuxtConfig } from 'nuxt'
export default defineNuxtConfig({
modules: [
'@nuxt/ui'

View File

@ -8,6 +8,6 @@
},
"devDependencies": {
"@nuxt/ui": "^0.3.2",
"nuxt": "^3.0.0-rc.9"
"nuxt": "^3.0.0-rc.10"
}
}

View File

@ -1,5 +1,3 @@
import { defineNuxtConfig } from 'nuxt'
export default defineNuxtConfig({
modules: [
'@nuxt/ui'

View File

@ -8,6 +8,6 @@
},
"devDependencies": {
"@nuxt/ui": "^0.3.2",
"nuxt": "^3.0.0-rc.9"
"nuxt": "^3.0.0-rc.10"
}
}

View File

@ -1,5 +1,3 @@
import { defineNuxtConfig } from 'nuxt'
export default defineNuxtConfig({
modules: [
'@nuxt/ui'

View File

@ -8,6 +8,6 @@
},
"devDependencies": {
"@nuxt/ui": "^0.3.2",
"nuxt": "^3.0.0-rc.9"
"nuxt": "^3.0.0-rc.10"
}
}

View File

@ -1,3 +1 @@
import { defineNuxtConfig } from 'nuxt'
export default defineNuxtConfig({})

View File

@ -1,4 +1,3 @@
import { defineNuxtConfig } from 'nuxt'
import { addComponent, addVitePlugin, addWebpackPlugin } from '@nuxt/kit'
import { createUnplugin } from 'unplugin'

View File

@ -1731,7 +1731,7 @@ __metadata:
version: 2.1.5
resolution: "@nuxt/telemetry@npm:2.1.5"
dependencies:
"@nuxt/kit": ^3.0.0-rc.9
"@nuxt/kit": ^3.0.0-rc.10
chalk: ^5.0.1
ci-info: ^3.3.2
consola: ^2.15.3
@ -1789,7 +1789,7 @@ __metadata:
resolution: "@nuxt/ui@npm:0.3.2"
dependencies:
"@iconify-json/carbon": ^1.1.7
"@nuxt/kit": ^3.0.0-rc.9
"@nuxt/kit": ^3.0.0-rc.10
"@nuxtjs/color-mode": ^3.1.4
"@unocss/core": ^0.45.6
"@unocss/nuxt": ^0.45.6
@ -1914,7 +1914,7 @@ __metadata:
version: 3.1.5
resolution: "@nuxtjs/color-mode@npm:3.1.5"
dependencies:
"@nuxt/kit": ^3.0.0-rc.9
"@nuxt/kit": ^3.0.0-rc.10
lodash.template: ^4.5.0
pathe: ^0.3.5
checksum: 094fbe13dbaa5df53476caf00f60a033cf77761381b55cd54e0aa57cf0e59d58e0cb41e41d565a604b5c14ec91bc91aa6900e33641082c5a7e6a57031abcea90
@ -2803,7 +2803,7 @@ __metadata:
version: 0.45.21
resolution: "@unocss/nuxt@npm:0.45.21"
dependencies:
"@nuxt/kit": ^3.0.0-rc.9
"@nuxt/kit": ^3.0.0-rc.10
"@unocss/core": 0.45.21
"@unocss/preset-attributify": 0.45.21
"@unocss/preset-icons": 0.45.21
@ -3310,13 +3310,13 @@ __metadata:
version: 9.2.0
resolution: "@vueuse/nuxt@npm:9.2.0"
dependencies:
"@nuxt/kit": ^3.0.0-rc.9
"@nuxt/kit": ^3.0.0-rc.10
"@vueuse/core": 9.2.0
"@vueuse/metadata": 9.2.0
local-pkg: ^0.4.2
vue-demi: "*"
peerDependencies:
nuxt: ^3.0.0-rc.9
nuxt: ^3.0.0-rc.10
checksum: 3da194dc777a6882ea884a42cde45750ace20e3e386c4b6d34bc4936441c2d8e65350fa382627c9a9186748245a486e9b38b3bbb1717e2d482faf1250edde144
languageName: node
linkType: hard
@ -6718,7 +6718,7 @@ __metadata:
resolution: "example-components@workspace:examples/auto-imports/components"
dependencies:
"@nuxt/ui": ^0.3.2
nuxt: ^3.0.0-rc.9
nuxt: ^3.0.0-rc.10
languageName: unknown
linkType: soft
@ -6727,7 +6727,7 @@ __metadata:
resolution: "example-composables@workspace:examples/auto-imports/composables"
dependencies:
"@nuxt/ui": ^0.3.2
nuxt: ^3.0.0-rc.9
nuxt: ^3.0.0-rc.10
languageName: unknown
linkType: soft
@ -6736,7 +6736,7 @@ __metadata:
resolution: "example-config-extends@workspace:examples/advanced/config-extends"
dependencies:
"@nuxt/ui": ^0.3.2
nuxt: ^3.0.0-rc.9
nuxt: ^3.0.0-rc.10
languageName: unknown
linkType: soft
@ -6745,7 +6745,7 @@ __metadata:
resolution: "example-error-handling@workspace:examples/app/error-handling"
dependencies:
"@nuxt/ui": ^0.3.2
nuxt: ^3.0.0-rc.9
nuxt: ^3.0.0-rc.10
languageName: unknown
linkType: soft
@ -6753,7 +6753,7 @@ __metadata:
version: 0.0.0-use.local
resolution: "example-hello-world@workspace:examples/essentials/hello-world"
dependencies:
nuxt: ^3.0.0-rc.9
nuxt: ^3.0.0-rc.10
languageName: unknown
linkType: soft
@ -6762,7 +6762,7 @@ __metadata:
resolution: "example-jsx@workspace:examples/advanced/jsx"
dependencies:
"@nuxt/ui": ^0.3.2
nuxt: ^3.0.0-rc.9
nuxt: ^3.0.0-rc.10
languageName: unknown
linkType: soft
@ -6771,7 +6771,7 @@ __metadata:
resolution: "example-layouts@workspace:examples/routing/layouts"
dependencies:
"@nuxt/ui": ^0.3.2
nuxt: ^3.0.0-rc.9
nuxt: ^3.0.0-rc.10
languageName: unknown
linkType: soft
@ -6780,7 +6780,7 @@ __metadata:
resolution: "example-locale@workspace:examples/other/locale"
dependencies:
"@nuxt/ui": ^0.3.2
nuxt: ^3.0.0-rc.9
nuxt: ^3.0.0-rc.10
languageName: unknown
linkType: soft
@ -6789,7 +6789,7 @@ __metadata:
resolution: "example-middleware@workspace:examples/routing/middleware"
dependencies:
"@nuxt/ui": ^0.3.2
nuxt: ^3.0.0-rc.9
nuxt: ^3.0.0-rc.10
languageName: unknown
linkType: soft
@ -6798,7 +6798,7 @@ __metadata:
resolution: "example-module-extend-pages@workspace:examples/advanced/module-extend-pages"
dependencies:
"@nuxt/ui": ^0.3.2
nuxt: ^3.0.0-rc.9
nuxt: ^3.0.0-rc.10
languageName: unknown
linkType: soft
@ -6807,7 +6807,7 @@ __metadata:
resolution: "example-nuxt-link@workspace:examples/routing/nuxt-link"
dependencies:
"@nuxt/ui": ^0.3.2
nuxt: ^3.0.0-rc.9
nuxt: ^3.0.0-rc.10
languageName: unknown
linkType: soft
@ -6816,7 +6816,7 @@ __metadata:
resolution: "example-pages@workspace:examples/routing/pages"
dependencies:
"@nuxt/ui": ^0.3.2
nuxt: ^3.0.0-rc.9
nuxt: ^3.0.0-rc.10
languageName: unknown
linkType: soft
@ -6825,7 +6825,7 @@ __metadata:
resolution: "example-plugins@workspace:examples/app/plugins"
dependencies:
"@nuxt/ui": ^0.3.2
nuxt: ^3.0.0-rc.9
nuxt: ^3.0.0-rc.10
languageName: unknown
linkType: soft
@ -6834,7 +6834,7 @@ __metadata:
resolution: "example-reactivity-transform@workspace:examples/experimental/reactivity-transform"
dependencies:
"@nuxt/ui": ^0.3.2
nuxt: ^3.0.0-rc.9
nuxt: ^3.0.0-rc.10
languageName: unknown
linkType: soft
@ -6843,7 +6843,7 @@ __metadata:
resolution: "example-server-routes@workspace:examples/server/routes"
dependencies:
"@nuxt/ui": ^0.3.2
nuxt: ^3.0.0-rc.9
nuxt: ^3.0.0-rc.10
languageName: unknown
linkType: soft
@ -6852,7 +6852,7 @@ __metadata:
resolution: "example-teleport@workspace:examples/app/teleport"
dependencies:
"@nuxt/ui": ^0.3.2
nuxt: ^3.0.0-rc.9
nuxt: ^3.0.0-rc.10
languageName: unknown
linkType: soft
@ -6860,7 +6860,7 @@ __metadata:
version: 0.0.0-use.local
resolution: "example-testing@workspace:examples/advanced/testing"
dependencies:
nuxt: ^3.0.0-rc.9
nuxt: ^3.0.0-rc.10
languageName: unknown
linkType: soft
@ -6869,7 +6869,7 @@ __metadata:
resolution: "example-universal-router@workspace:examples/routing/universal-router"
dependencies:
"@nuxt/ui": ^0.3.2
nuxt: ^3.0.0-rc.9
nuxt: ^3.0.0-rc.10
languageName: unknown
linkType: soft
@ -6878,7 +6878,7 @@ __metadata:
resolution: "example-use-async-data@workspace:examples/composables/use-async-data"
dependencies:
"@nuxt/ui": ^0.3.2
nuxt: ^3.0.0-rc.9
nuxt: ^3.0.0-rc.10
languageName: unknown
linkType: soft
@ -6887,7 +6887,7 @@ __metadata:
resolution: "example-use-cookie@workspace:examples/composables/use-cookie"
dependencies:
"@nuxt/ui": ^0.3.2
nuxt: ^3.0.0-rc.9
nuxt: ^3.0.0-rc.10
languageName: unknown
linkType: soft
@ -6896,7 +6896,7 @@ __metadata:
resolution: "example-use-fetch@workspace:examples/composables/use-fetch"
dependencies:
"@nuxt/ui": ^0.3.2
nuxt: ^3.0.0-rc.9
nuxt: ^3.0.0-rc.10
languageName: unknown
linkType: soft
@ -6905,7 +6905,7 @@ __metadata:
resolution: "example-use-head@workspace:examples/composables/use-head"
dependencies:
"@nuxt/ui": ^0.3.2
nuxt: ^3.0.0-rc.9
nuxt: ^3.0.0-rc.10
languageName: unknown
linkType: soft
@ -6914,7 +6914,7 @@ __metadata:
resolution: "example-use-state@workspace:examples/composables/use-state"
dependencies:
"@nuxt/ui": ^0.3.2
nuxt: ^3.0.0-rc.9
nuxt: ^3.0.0-rc.10
languageName: unknown
linkType: soft
@ -6923,7 +6923,7 @@ __metadata:
resolution: "example-vite-node@workspace:examples/experimental/vite-node"
dependencies:
"@nuxt/ui": ^0.3.2
nuxt: ^3.0.0-rc.9
nuxt: ^3.0.0-rc.10
languageName: unknown
linkType: soft
@ -6932,7 +6932,7 @@ __metadata:
resolution: "example-wasm@workspace:examples/experimental/wasm"
dependencies:
"@nuxt/ui": ^0.3.2
nuxt: ^3.0.0-rc.9
nuxt: ^3.0.0-rc.10
languageName: unknown
linkType: soft