Skip to content

Commit 84f103e

Browse files
committed
Update packages, add missing import
1 parent 8df60e3 commit 84f103e

4 files changed

Lines changed: 9 additions & 23 deletions

File tree

generator/index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,13 @@ const fs = require('fs');
44
module.exports = (api, options) => {
55
api.extendPackage({
66
dependencies: {
7-
'axios': '^0.18.0',
8-
"dayjs": "^1.8.19",
7+
'axios': '^0.19.2',
8+
'dayjs': '^1.8.19',
99
'vuex': '^3.1.2',
1010
'vuex-persistedstate': '^2.5.4',
1111
'lodash.clonedeep': '^4.5.0',
1212
'css-vars-ponyfill': '^2.1.2',
13+
'vue-router': '3.3.4',
1314
},
1415
});
1516
if (options.plugins.includes('fontawesomepro')) {

generator/templates/Default/src/components/ProfileMenu.vue renamed to generator/templates/Default/src/components/AppBarMenu.vue

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@
1313
</v-btn>
1414
</template>
1515
<v-list>
16-
<v-list-item :to="{name:'profile'}">
17-
<v-list-item-title>Profiel</v-list-item-title>
18-
</v-list-item>
1916
<v-list-item @click="logout">
2017
<v-list-item-title>Uitloggen</v-list-item-title>
2118
</v-list-item>
@@ -26,24 +23,11 @@
2623
<script>
2724
2825
export default {
29-
components: {},
30-
watch: {},
31-
props: [],
32-
name: 'profile-menu',
33-
data() {
34-
return {};
35-
},
36-
created() {
37-
38-
},
26+
name: 'AppBarMenu',
3927
methods: {
4028
logout() {
4129
this.$store.dispatch('Authorisation/unauthorized');
4230
}
4331
},
4432
};
45-
</script>
46-
47-
<style scoped lang="scss">
48-
49-
</style>
33+
</script>

generator/templates/Default/src/plugins/vuetify.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import Vuetify from 'vuetify/lib';
44
import '@fortawesome/fontawesome-pro/css/all.css';
55
<%_ } _%>
66
import nl from 'vuetify/es5/locale/nl';
7+
import '@kingscode/vuetify-resource/dist/vuetify-resource.css';
78

89
Vue.use(Vuetify);
910
export default new Vuetify({

generator/templates/Default/src/templates/Default.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<v-app-bar-nav-icon @click.stop="menu = !menu"></v-app-bar-nav-icon>
1616
<v-toolbar-title>Beheer</v-toolbar-title>
1717
<v-spacer/>
18-
<profile-menu></profile-menu>
18+
<AppBarMenu/>
1919
</v-app-bar>
2020
<v-main>
2121
<router-view/>
@@ -27,12 +27,12 @@
2727
</template>
2828

2929
<script>
30-
import ProfileMenu from './../components/ProfileMenu.vue';
30+
import AppBarMenu from '../components/AppBarMenu.vue';
3131
import MainMenu from './../components/MainMenu.vue';
3232
3333
export default {
3434
name: 'template-default',
35-
components: {ProfileMenu, MainMenu},
35+
components: {AppBarMenu, MainMenu},
3636
data() {
3737
return {
3838
menu: true,

0 commit comments

Comments
 (0)