mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-29 00:52:01 +00:00
chore: udate @nuxt/app imports
This commit is contained in:
parent
823e1a1eb4
commit
fe318d483d
@ -1,6 +1,6 @@
|
||||
<%= nuxtOptions.vite ? "import('vite/dynamic-import-polyfill')" : '' %>
|
||||
import { createSSRApp, nextTick } from 'vue'
|
||||
import { createNuxt, applyPlugins } from 'nuxt/app/nuxt'
|
||||
import { createNuxt, applyPlugins } from '@nuxt/app'
|
||||
import plugins from './plugins'
|
||||
import clientPlugins from './plugins.client'
|
||||
import App from '<%= app.main %>'
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { createApp } from 'vue'
|
||||
import { createNuxt, applyPlugins } from 'nuxt/app/nuxt'
|
||||
import { createNuxt, applyPlugins } from '@nuxt/app'
|
||||
import plugins from './plugins'
|
||||
import serverPlugins from './plugins.server'
|
||||
import App from '<%= app.main %>'
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { Ref, ref, onMounted, watch, getCurrentInstance, onUnmounted } from 'vue'
|
||||
import { Nuxt, useNuxt } from 'nuxt/app'
|
||||
import { Nuxt, useNuxt } from '@nuxt/app'
|
||||
|
||||
import { ensureReactive, useData } from './data'
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { getCurrentInstance, isReactive, reactive, UnwrapRef } from 'vue'
|
||||
|
||||
import { useNuxt } from 'nuxt/app'
|
||||
import { useNuxt } from '@nuxt/app'
|
||||
|
||||
export function ensureReactive<
|
||||
T extends Record<string, any>,
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { useNuxt } from 'nuxt/app'
|
||||
import { useNuxt } from '@nuxt/app'
|
||||
|
||||
/**
|
||||
* Allows full control of the hydration cycle to set and receive data from the server.
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { Nuxt } from 'nuxt/app'
|
||||
import { Nuxt } from '@nuxt/app'
|
||||
|
||||
declare module 'vue' {
|
||||
interface App {
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { getCurrentInstance } from 'vue'
|
||||
import type { Nuxt } from 'nuxt/app'
|
||||
import type { Nuxt } from '@nuxt/app'
|
||||
|
||||
let currentNuxtInstance: Nuxt | null
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import type { Plugin } from 'nuxt/app'
|
||||
import type { Plugin } from '@nuxt/app'
|
||||
import { createHead, renderHeadToString } from '@vueuse/head'
|
||||
import { Head, Html, Body, Title, Meta, Link, Script, Style } from './head'
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
import type { App } from 'vue'
|
||||
import type { Plugin } from 'nuxt/app'
|
||||
import type { Plugin } from '@nuxt/app'
|
||||
|
||||
export type LegacyApp = App<Element> & {
|
||||
$root: LegacyApp
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* eslint-disable no-console */
|
||||
import type { Plugin } from 'nuxt/app'
|
||||
import type { Plugin } from '@nuxt/app'
|
||||
|
||||
export default <Plugin> function logs ({ app }) {
|
||||
// Only activate in development
|
||||
|
@ -1,4 +1,4 @@
|
||||
import type { Plugin } from 'nuxt/app'
|
||||
import type { Plugin } from '@nuxt/app'
|
||||
|
||||
export default <Plugin> function preload ({ app }) {
|
||||
app.mixin({
|
||||
|
@ -1,4 +1,4 @@
|
||||
import type { Plugin } from 'nuxt/app'
|
||||
import type { Plugin } from '@nuxt/app'
|
||||
|
||||
export default <Plugin> function progressbar ({ app }) {
|
||||
const { $nuxt } = app
|
||||
|
@ -5,7 +5,7 @@ import {
|
||||
createMemoryHistory,
|
||||
RouterLink
|
||||
} from 'vue-router'
|
||||
import type { Plugin } from 'nuxt/app'
|
||||
import type { Plugin } from '@nuxt/app'
|
||||
import routes from 'nuxt/build/routes'
|
||||
import NuxtPage from './NuxtPage.vue'
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { createVuex, defineStore, useStore } from 'vuex5/dist/vuex.esm'
|
||||
import type { Plugin } from 'nuxt/app'
|
||||
import type { Plugin } from '@nuxt/app'
|
||||
import { useHydration } from 'nuxt/app/composables'
|
||||
|
||||
export default <Plugin> function ({ app }) {
|
||||
|
Loading…
Reference in New Issue
Block a user