chore: udate @nuxt/app imports

This commit is contained in:
Pooya Parsa 2021-03-29 11:40:51 +02:00
parent 823e1a1eb4
commit fe318d483d
14 changed files with 14 additions and 14 deletions

View File

@ -1,6 +1,6 @@
<%= nuxtOptions.vite ? "import('vite/dynamic-import-polyfill')" : '' %> <%= nuxtOptions.vite ? "import('vite/dynamic-import-polyfill')" : '' %>
import { createSSRApp, nextTick } from 'vue' import { createSSRApp, nextTick } from 'vue'
import { createNuxt, applyPlugins } from 'nuxt/app/nuxt' import { createNuxt, applyPlugins } from '@nuxt/app'
import plugins from './plugins' import plugins from './plugins'
import clientPlugins from './plugins.client' import clientPlugins from './plugins.client'
import App from '<%= app.main %>' import App from '<%= app.main %>'

View File

@ -1,5 +1,5 @@
import { createApp } from 'vue' import { createApp } from 'vue'
import { createNuxt, applyPlugins } from 'nuxt/app/nuxt' import { createNuxt, applyPlugins } from '@nuxt/app'
import plugins from './plugins' import plugins from './plugins'
import serverPlugins from './plugins.server' import serverPlugins from './plugins.server'
import App from '<%= app.main %>' import App from '<%= app.main %>'

View File

@ -1,5 +1,5 @@
import { Ref, ref, onMounted, watch, getCurrentInstance, onUnmounted } from 'vue' 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' import { ensureReactive, useData } from './data'

View File

@ -1,6 +1,6 @@
import { getCurrentInstance, isReactive, reactive, UnwrapRef } from 'vue' import { getCurrentInstance, isReactive, reactive, UnwrapRef } from 'vue'
import { useNuxt } from 'nuxt/app' import { useNuxt } from '@nuxt/app'
export function ensureReactive< export function ensureReactive<
T extends Record<string, any>, T extends Record<string, any>,

View File

@ -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. * Allows full control of the hydration cycle to set and receive data from the server.

View File

@ -1,4 +1,4 @@
import { Nuxt } from 'nuxt/app' import { Nuxt } from '@nuxt/app'
declare module 'vue' { declare module 'vue' {
interface App { interface App {

View File

@ -1,5 +1,5 @@
import { getCurrentInstance } from 'vue' import { getCurrentInstance } from 'vue'
import type { Nuxt } from 'nuxt/app' import type { Nuxt } from '@nuxt/app'
let currentNuxtInstance: Nuxt | null let currentNuxtInstance: Nuxt | null

View File

@ -1,4 +1,4 @@
import type { Plugin } from 'nuxt/app' import type { Plugin } from '@nuxt/app'
import { createHead, renderHeadToString } from '@vueuse/head' import { createHead, renderHeadToString } from '@vueuse/head'
import { Head, Html, Body, Title, Meta, Link, Script, Style } from './head' import { Head, Html, Body, Title, Meta, Link, Script, Style } from './head'

View File

@ -1,5 +1,5 @@
import type { App } from 'vue' import type { App } from 'vue'
import type { Plugin } from 'nuxt/app' import type { Plugin } from '@nuxt/app'
export type LegacyApp = App<Element> & { export type LegacyApp = App<Element> & {
$root: LegacyApp $root: LegacyApp

View File

@ -1,5 +1,5 @@
/* eslint-disable no-console */ /* eslint-disable no-console */
import type { Plugin } from 'nuxt/app' import type { Plugin } from '@nuxt/app'
export default <Plugin> function logs ({ app }) { export default <Plugin> function logs ({ app }) {
// Only activate in development // Only activate in development

View File

@ -1,4 +1,4 @@
import type { Plugin } from 'nuxt/app' import type { Plugin } from '@nuxt/app'
export default <Plugin> function preload ({ app }) { export default <Plugin> function preload ({ app }) {
app.mixin({ app.mixin({

View File

@ -1,4 +1,4 @@
import type { Plugin } from 'nuxt/app' import type { Plugin } from '@nuxt/app'
export default <Plugin> function progressbar ({ app }) { export default <Plugin> function progressbar ({ app }) {
const { $nuxt } = app const { $nuxt } = app

View File

@ -5,7 +5,7 @@ import {
createMemoryHistory, createMemoryHistory,
RouterLink RouterLink
} from 'vue-router' } from 'vue-router'
import type { Plugin } from 'nuxt/app' import type { Plugin } from '@nuxt/app'
import routes from 'nuxt/build/routes' import routes from 'nuxt/build/routes'
import NuxtPage from './NuxtPage.vue' import NuxtPage from './NuxtPage.vue'

View File

@ -1,5 +1,5 @@
import { createVuex, defineStore, useStore } from 'vuex5/dist/vuex.esm' 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' import { useHydration } from 'nuxt/app/composables'
export default <Plugin> function ({ app }) { export default <Plugin> function ({ app }) {