mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 05:35:13 +00:00
chore: refresh lockfile (#22518)
This commit is contained in:
parent
29157199c3
commit
ae8314b236
@ -30,6 +30,8 @@ export default defineComponent({
|
|||||||
emits: ['ssr-error'],
|
emits: ['ssr-error'],
|
||||||
setup (props, ctx) {
|
setup (props, ctx) {
|
||||||
const mounted = ref(false)
|
const mounted = ref(false)
|
||||||
|
// This is deliberate - `uid` should not be provided by user but by a transform plugin and will not be reactive.
|
||||||
|
// eslint-disable-next-line vue/no-setup-props-destructure
|
||||||
const ssrFailed = useState(`${props.uid}`)
|
const ssrFailed = useState(`${props.uid}`)
|
||||||
|
|
||||||
if (ssrFailed.value) {
|
if (ssrFailed.value) {
|
||||||
|
@ -23,6 +23,10 @@ const LayoutLoader = defineComponent({
|
|||||||
layoutProps: Object
|
layoutProps: Object
|
||||||
},
|
},
|
||||||
async setup (props, context) {
|
async setup (props, context) {
|
||||||
|
// This is a deliberate hack - this component must always be called with an explicit key to ensure
|
||||||
|
// that setup reruns when the name changes.
|
||||||
|
|
||||||
|
// eslint-disable-next-line vue/no-setup-props-destructure
|
||||||
const LayoutComponent = await layouts[props.name]().then((r: any) => r.default || r)
|
const LayoutComponent = await layouts[props.name]().then((r: any) => r.default || r)
|
||||||
|
|
||||||
return () => h(LayoutComponent, props.layoutProps, context.slots)
|
return () => h(LayoutComponent, props.layoutProps, context.slots)
|
||||||
|
@ -26,6 +26,8 @@ export default defineComponent({
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
setup (props, { slots }) {
|
setup (props, { slots }) {
|
||||||
|
// TODO: use computed values in useLoadingIndicator
|
||||||
|
// eslint-disable-next-line vue/no-setup-props-destructure
|
||||||
const indicator = useLoadingIndicator({
|
const indicator = useLoadingIndicator({
|
||||||
duration: props.duration,
|
duration: props.duration,
|
||||||
throttle: props.throttle
|
throttle: props.throttle
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
import type { H3Event } from 'h3'
|
import type { H3Event } from 'h3'
|
||||||
import { setResponseStatus as _setResponseStatus } from 'h3'
|
import { setResponseStatus as _setResponseStatus } from 'h3'
|
||||||
import type { NuxtApp } from '../nuxt'
|
import type { NuxtApp } from '../nuxt'
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
import MagicString from 'magic-string'
|
import MagicString from 'magic-string'
|
||||||
import type { Plugin } from 'vite'
|
import type { Plugin } from 'vite'
|
||||||
|
|
||||||
|
986
pnpm-lock.yaml
986
pnpm-lock.yaml
File diff suppressed because it is too large
Load Diff
@ -95,7 +95,7 @@ describe.skipIf(process.env.SKIP_BUNDLE_SIZE === 'true' || process.env.ECOSYSTEM
|
|||||||
expect.soft(roundToKilobytes(serverStats.totalBytes)).toMatchInlineSnapshot('"370k"')
|
expect.soft(roundToKilobytes(serverStats.totalBytes)).toMatchInlineSnapshot('"370k"')
|
||||||
|
|
||||||
const modules = await analyzeSizes('node_modules/**/*', serverDir)
|
const modules = await analyzeSizes('node_modules/**/*', serverDir)
|
||||||
expect.soft(roundToKilobytes(modules.totalBytes)).toMatchInlineSnapshot('"608k"')
|
expect.soft(roundToKilobytes(modules.totalBytes)).toMatchInlineSnapshot('"607k"')
|
||||||
|
|
||||||
const packages = modules.files
|
const packages = modules.files
|
||||||
.filter(m => m.endsWith('package.json'))
|
.filter(m => m.endsWith('package.json'))
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
stateful setup {{ state }}
|
stateful setup {{ state }}
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<ClientOnlyScript class="client-only-script" foo="bar" />
|
<ClientOnlyScript class="client-only-script" foo="bar" />
|
||||||
|
1
test/fixtures/basic/pages/with-layout2.vue
vendored
1
test/fixtures/basic/pages/with-layout2.vue
vendored
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
definePageMeta({
|
definePageMeta({
|
||||||
layout: 'custom2'
|
layout: 'custom2'
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
export default defineNitroPlugin((nitroApp) => {
|
export default defineNitroPlugin((nitroApp) => {
|
||||||
if (!process.dev) { return }
|
if (!process.dev) { return }
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user