Skip to content

Commit e5b5cac

Browse files
committed
Fix vuetify
1 parent f454ee4 commit e5b5cac

8 files changed

Lines changed: 25 additions & 22 deletions

File tree

web/.husky/commit-msg

Lines changed: 0 additions & 5 deletions
This file was deleted.

web/.husky/common.sh

Lines changed: 0 additions & 8 deletions
This file was deleted.

web/.husky/pre-commit

Lines changed: 0 additions & 5 deletions
This file was deleted.

web/layouts/default.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<v-app dark>
3-
<v-navigation-drawer v-model="drawer" fixed app>
3+
<v-navigation-drawer v-if="$vuetify.breakpoint.lgAndUp" :width="400" fixed app>
44
<v-list>
55
<v-list-item
66
v-for="(item, i) in items"
@@ -9,6 +9,7 @@
99
router
1010
exact
1111
>
12+
1213
<v-list-item-action>
1314
<v-icon>{{ item.icon }}</v-icon>
1415
</v-list-item-action>

web/nuxt.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ export default {
66

77
// Global page headers: https://go.nuxtjs.dev/config-head
88
head: {
9-
titleTemplate: '%s - web',
10-
title: 'web',
9+
titleTemplate: '%s - HTTP SMS API',
10+
title: 'Messages',
1111
htmlAttrs: {
1212
lang: 'en',
1313
},

web/plugins/vuetify.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import Vue from "vue";
2+
import Vuetify from "vuetify/lib";
3+
4+
Vue.use(Vuetify);
5+
6+
export default new Vuetify({
7+
theme: {
8+
dark: true,
9+
},
10+
icons: {
11+
iconfont: "mdiSvg",
12+
},
13+
});

web/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"~/*": ["./*"],
1616
"@/*": ["./*"]
1717
},
18-
"types": ["@nuxt/types", "@nuxtjs/axios", "@types/node"]
18+
"types": ["@nuxt/types", "@nuxtjs/axios", "@types/node", "vuetify"]
1919
},
2020
"exclude": ["node_modules", ".nuxt", "dist"]
2121
}

web/types.d.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import Vuetify from "@/plugins/vuetify";
2+
3+
declare module "vue/types/vue" {
4+
interface Vue {
5+
$vuetify: typeof Vuetify;
6+
}
7+
}

0 commit comments

Comments
 (0)