diff --git a/layouts/default.vue b/layouts/default.vue index db923d4..3d790fd 100644 --- a/layouts/default.vue +++ b/layouts/default.vue @@ -54,8 +54,10 @@ + :href="tile.internalLink ? undefined : tile.link" + :to="tile.internalLink ? tile.link : undefined" + :nuxt="tile.internalLink" + :target="tile.internalLink ? '': '_blank'"> + fixed> + + KC + + @@ -151,37 +157,6 @@ - - @@ -216,9 +191,7 @@ export default { const socialsRawData = FetchPersonalSocialInformation('net') /* - sidebar schema: - [ { header: String, @@ -255,17 +228,20 @@ export default { { icon: 'home', key: 'net', - link: '/' + link: '/net', + internalLink: true }, { icon: 'home', key: 'prang', - link: '/prang' + link: '/prang', + internalLink: true }, { icon: 'admin', key: 'cms', - link: '/cms/' + link: '/cms/', + internalLink: true } ] }, @@ -364,6 +340,9 @@ export default { }, toggleNavbar() { this.appendNavbar = !this.appendNavbar + }, + backToHome() { + this.$router.push('/') } } } diff --git a/nuxt-config/build.js b/nuxt-config/build.js index 8daaed6..e8149c3 100644 --- a/nuxt-config/build.js +++ b/nuxt-config/build.js @@ -1,7 +1,7 @@ const VuetifyLoaderPlugin = require('vuetify-loader/lib/plugin') const { VuetifyProgressiveModule } = require('vuetify-loader') -module.exports = ({ isDev }) => { +module.exports = ({ isDev, isProd }) => { return { extractCSS: true, publicPath: '/_kcnt/', @@ -20,13 +20,16 @@ module.exports = ({ isDev }) => { ** You can extend webpack config here */ extend(config, ctx) { - config.plugins.push(new VuetifyLoaderPlugin()) + if (isProd) config.plugins.push(new VuetifyLoaderPlugin()) const vueLoader = config.module.rules.find( rule => rule.loader === 'vue-loader' ) - const vueLoaderOptionModule = vueLoader.options.compilerOptions.modules - vueLoaderOptionModule.push(VuetifyProgressiveModule) + + if (isProd) { + const vueLoaderOptionModule = vueLoader.options.compilerOptions.modules + vueLoaderOptionModule.push(VuetifyProgressiveModule) + } config.module.rules.push({ test: /\.(png|jpe?g|gif)$/, diff --git a/nuxt.config.js b/nuxt.config.js index d37ec18..e7dfb24 100644 --- a/nuxt.config.js +++ b/nuxt.config.js @@ -32,6 +32,10 @@ const data = { module.exports = { mode: 'universal', + server: { + port: 3000, + host: '0.0.0.0' // default: localhost + }, /* ** Headers of the page */