Loading component between pages

This commit is contained in:
les 2021-03-05 14:20:45 +01:00
parent ea9e58be56
commit aa146e55ff

View file

@ -21,12 +21,18 @@ module.exports = {
/* /*
** Customize the progress-bar color ** Customize the progress-bar color
*/ */
loading: { color: 'orange', height: '5px' }, loading: '~/components/Loading.vue',
// loading: {
// name: 'circle',
// color: '#3B8070',
// background: 'white'
// },
/* /*
** Global CSS ** Global CSS
*/ */
css: [ css: [
'@mdi/font/css/materialdesignicons.css', '@mdi/font/css/materialdesignicons.css',
// '@fontsource/roboto',
'@/assets/style.less' '@/assets/style.less'
// 'bootstrap/dist/css/bootstrap.min.css', // 'bootstrap/dist/css/bootstrap.min.css',
// 'element-ui/lib/theme-chalk/index.css', // 'element-ui/lib/theme-chalk/index.css',
@ -59,30 +65,29 @@ module.exports = {
** Nuxt.js modules ** Nuxt.js modules
*/ */
modules: [ modules: [
['nuxt-express-module', { expressPath: 'server/', routesPath: 'server/routes' }],
// Doc: https://axios.nuxtjs.org/usage // Doc: https://axios.nuxtjs.org/usage
'@nuxtjs/axios', '@nuxtjs/axios',
'@nuxtjs/auth', '@nuxtjs/auth',
'nuxt-winston-log' ['nuxt-express-module', { expressPath: 'server/', routesPath: 'server/routes' }]
], ],
// configure nuxt-winston-log module // configure nuxt-winston-log module
winstonLog: { // winstonLog: {
skipRequestMiddlewareHandler: true, // skipRequestMiddlewareHandler: true,
useDefaultLogger: false, // useDefaultLogger: false,
loggerOptions: { // loggerOptions: {
transports: process.env.NODE_ENV !== 'production' // transports: process.env.NODE_ENV !== 'production'
? [new transports.Console( // ? [new transports.Console(
{ level: 'debug', format: format.combine(format.simple(), format.errors({ stack: true })) } // { level: 'debug', format: format.combine(format.colorize(), format.simple(), format.errors({ stack: true })) }
)] // )]
: [new transports.File( // : [new transports.File(
{ // {
filename: 'gancio.log', // filename: 'gancio.log',
format: format.combine(format.simple(), format.errors({ stack: true })) // format: format.combine(format.simple(), format.errors({ stack: true }))
} // }
)] // )]
} // }
}, // },
/* /*
** Axios module configuration ** Axios module configuration
* See https://github.com/nuxt-community/axios-module#options * See https://github.com/nuxt-community/axios-module#options