spa loading defaults

more design agnostic for general usage
This commit is contained in:
Pooya Parsa 2017-09-01 20:46:08 +04:30
parent a6a36b1d2f
commit 2e11827209
2 changed files with 9 additions and 10 deletions

View File

@ -23,23 +23,19 @@ module.exports = {
*/ */
css: ['~/assets/main.css'], css: ['~/assets/main.css'],
/* /*
** Cutomize loading indicator ** Customize loading indicator
*/ */
loadingIndicator: { loadingIndicator: {
/* /*
** See https://github.com/nuxt/nuxt.js/tree/dev/lib/app/views/loading for available loading indicators ** See https://github.com/nuxt/nuxt.js/tree/dev/lib/app/views/loading for available loading indicators
** You can add a custom indicator by giving a path ** You can add a custom indicator by giving a path
** Default: 'circle'
*/ */
name: 'folding-cube', // name: 'folding-cube',
/* /*
** You can give custom options given to the template ** You can give custom options given to the template
** See https://github.com/nuxt/nuxt.js/blob/dev/lib/app/views/loading/folding-cube.html ** See https://github.com/nuxt/nuxt.js/blob/dev/lib/app/views/loading/folding-cube.html
** Default:
** - color: '#3B8070'
** - background: 'white'
*/ */
color: '#222', // color: '#DBE1EC'
background: 'white' // background: 'white'
} }
} }

View File

@ -60,8 +60,8 @@ Options.from = function (_options) {
// Apply defaults to loadingIndicator // Apply defaults to loadingIndicator
options.loadingIndicator = Object.assign({ options.loadingIndicator = Object.assign({
name: 'circle', name: 'pulse',
color: '#3B8070', color: '#dbe1rc',
background: 'white' background: 'white'
}, options.loadingIndicator) }, options.loadingIndicator)
@ -274,5 +274,8 @@ Options.defaults = {
ignored: /-dll/ ignored: /-dll/
}, },
chokidar: {} chokidar: {}
},
messages: {
not_found: 'This page could not be found.'
} }
} }