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')" : '' %>
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 %>'

View File

@ -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 %>'

View File

@ -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'

View File

@ -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>,

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.

View File

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

View File

@ -1,5 +1,5 @@
import { getCurrentInstance } from 'vue'
import type { Nuxt } from 'nuxt/app'
import type { Nuxt } from '@nuxt/app'
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 { Head, Html, Body, Title, Meta, Link, Script, Style } from './head'

View File

@ -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

View File

@ -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

View File

@ -1,4 +1,4 @@
import type { Plugin } from 'nuxt/app'
import type { Plugin } from '@nuxt/app'
export default <Plugin> function preload ({ app }) {
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 }) {
const { $nuxt } = app

View File

@ -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'

View File

@ -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 }) {