Add loading indicator
This commit is contained in:
parent
7a3cdcc1da
commit
673948bce9
1
app.vue
1
app.vue
|
@ -31,6 +31,7 @@ useHead({
|
|||
<LazySwipeControls v-if="!reader" class="block sm:hidden" />
|
||||
</ClientOnly>
|
||||
|
||||
<NuxtLoadingIndicator />
|
||||
<NuxtLayout name="card">
|
||||
<template #footer>
|
||||
<footer
|
||||
|
|
|
@ -31,14 +31,13 @@ export default defineNuxtConfig({
|
|||
pageTransition: { name: 'page', mode: 'out-in' },
|
||||
rootId: 'ender-app',
|
||||
},
|
||||
devtools: {
|
||||
enabled: true,
|
||||
},
|
||||
features: {
|
||||
inlineStyles: false,
|
||||
},
|
||||
experimental: {
|
||||
inlineRouteRules: true,
|
||||
colorMode: {
|
||||
preference: 'system',
|
||||
fallback: 'dark',
|
||||
classPrefix: '',
|
||||
classSuffix: '',
|
||||
componentName: 'NuxtTheme',
|
||||
storageKey: 'ecmatheme',
|
||||
},
|
||||
components: {
|
||||
dirs: [
|
||||
|
@ -49,26 +48,6 @@ export default defineNuxtConfig({
|
|||
},
|
||||
],
|
||||
},
|
||||
css: ['~/assets/styles/main.scss'],
|
||||
plugins: [],
|
||||
modules: [
|
||||
'@pinia/nuxt',
|
||||
'@nuxt/content',
|
||||
'@nuxtjs/seo',
|
||||
'@nuxtjs/google-fonts',
|
||||
'@nuxtjs/tailwindcss',
|
||||
'@nuxtjs/color-mode',
|
||||
'@nuxt/eslint',
|
||||
['@nuxtjs/stylelint-module', { failOnError: true, lintOnStart: false }],
|
||||
],
|
||||
colorMode: {
|
||||
preference: 'system',
|
||||
fallback: 'dark',
|
||||
classPrefix: '',
|
||||
classSuffix: '',
|
||||
componentName: 'NuxtTheme',
|
||||
storageKey: 'ecmatheme',
|
||||
},
|
||||
content: {
|
||||
markdown: {
|
||||
remarkPlugins: ['remark-reading-time'],
|
||||
|
@ -108,13 +87,15 @@ export default defineNuxtConfig({
|
|||
],
|
||||
},
|
||||
},
|
||||
nitro: {
|
||||
prerender: {
|
||||
crawlLinks: true,
|
||||
autoSubfolderIndex: true,
|
||||
failOnError: true,
|
||||
routes: ['/robots.txt', '/sitemap.xml'],
|
||||
css: ['~/assets/styles/main.scss'],
|
||||
devtools: {
|
||||
enabled: true,
|
||||
},
|
||||
experimental: {
|
||||
inlineRouteRules: true,
|
||||
},
|
||||
features: {
|
||||
inlineStyles: false,
|
||||
},
|
||||
googleFonts: {
|
||||
download: true,
|
||||
|
@ -123,6 +104,24 @@ export default defineNuxtConfig({
|
|||
Alexandria: true,
|
||||
},
|
||||
},
|
||||
modules: [
|
||||
'@pinia/nuxt',
|
||||
'@nuxt/content',
|
||||
'@nuxtjs/seo',
|
||||
'@nuxtjs/google-fonts',
|
||||
'@nuxtjs/tailwindcss',
|
||||
'@nuxtjs/color-mode',
|
||||
'@nuxt/eslint',
|
||||
['@nuxtjs/stylelint-module', { failOnError: true, lintOnStart: false }],
|
||||
],
|
||||
nitro: {
|
||||
prerender: {
|
||||
crawlLinks: true,
|
||||
autoSubfolderIndex: true,
|
||||
failOnError: true,
|
||||
routes: ['/robots.txt', '/sitemap.xml'],
|
||||
},
|
||||
},
|
||||
linkChecker: {
|
||||
failOnError: true,
|
||||
report: {
|
||||
|
@ -130,6 +129,7 @@ export default defineNuxtConfig({
|
|||
markdown: true,
|
||||
},
|
||||
},
|
||||
plugins: [],
|
||||
robots: {
|
||||
enabled: true,
|
||||
blockNonSeoBots: false,
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
"lint:js": "eslint --ext \".js,.ts,.vue\" --ignore-path .gitignore .",
|
||||
"lint:prettier": "prettier --check .",
|
||||
"lint": "npm run lint:js && npm run lint:style && npm run lint:prettier",
|
||||
"lintfix": "prettier --write --list-different . && npm run lint:js -- --fix"
|
||||
"lint:fix": "prettier --write --list-different . && npm run lint:js -- --fix"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@nuxt/content": "^2.12.1",
|
||||
|
|
Loading…
Reference in New Issue