refactor: cleaned project structure

This commit is contained in:
Corentin Thomasset 2020-12-21 22:49:27 +01:00
parent c66e2097b6
commit c554017e43
No known key found for this signature in database
GPG key ID: DBD997E935996158
19 changed files with 182 additions and 200 deletions

View file

@ -50,7 +50,9 @@
<v-list>
<v-list-item @click.native="right = !right">
<v-list-item-action>
<v-icon light> mdi-repeat </v-icon>
<v-icon light>
mdi-repeat
</v-icon>
</v-list-item-action>
<v-list-item-title>Switch drawer (click me)</v-list-item-title>
</v-list-item>
@ -73,19 +75,19 @@ export default {
{
icon: 'mdi-apps',
title: 'Welcome',
to: '/',
to: '/'
},
{
icon: 'mdi-chart-bubble',
title: 'Inspire',
to: '/inspire',
},
to: '/inspire'
}
],
miniVariant: false,
right: true,
rightDrawer: false,
title: 'Vuetify.js',
title: 'Vuetify.js'
}
},
}
}
</script>

View file

@ -6,7 +6,9 @@
<h1 v-else>
{{ otherError }}
</h1>
<NuxtLink to="/"> Home page </NuxtLink>
<NuxtLink to="/">
Home page
</NuxtLink>
</v-app>
</template>
@ -16,22 +18,22 @@ export default {
props: {
error: {
type: Object,
default: null,
},
default: null
}
},
data() {
return {
pageNotFound: '404 Not Found',
otherError: 'An error occurred',
otherError: 'An error occurred'
}
},
head() {
const title =
this.error.statusCode === 404 ? this.pageNotFound : this.otherError
return {
title,
title
}
},
}
}
</script>