Skip to content

Send and receive SMS messages using your Android phone programmatically via a simple HTTP API

Fix vuetify

Acho Arnolde5b5cacffc21
diff --git a/web/.husky/commit-msg b/web/.husky/commit-msg
deleted file mode 100644
index 29d991ce..00000000
--- a/web/.husky/commit-msg
+++ /dev/null
@@ -1,5 +0,0 @@
-#!/bin/sh
-. "$(dirname "$0")/_/husky.sh"
-. "$(dirname "$0")/common.sh"
-
-yarn commitlint --edit $1
diff --git a/web/.husky/common.sh b/web/.husky/common.sh
deleted file mode 100644
index 7bf8076b..00000000
--- a/web/.husky/common.sh
+++ /dev/null
@@ -1,8 +0,0 @@
-command_exists () {
- command -v "$1" >/dev/null 2>&1
-}
-
-# Workaround for Windows 10, Git Bash and Yarn
-if command_exists winpty && test -t 1; then
- exec < /dev/tty
-fi
diff --git a/web/.husky/pre-commit b/web/.husky/pre-commit
deleted file mode 100644
index eb6e8c1c..00000000
--- a/web/.husky/pre-commit
+++ /dev/null
@@ -1,5 +0,0 @@
-#!/bin/sh
-. "$(dirname "$0")/_/husky.sh"
-. "$(dirname "$0")/common.sh"
-
-yarn lint-staged
diff --git a/web/layouts/default.vue b/web/layouts/default.vue
index 4286f067..caad6b82 100644
--- a/web/layouts/default.vue
+++ b/web/layouts/default.vue
@@ -1,6 +1,6 @@
<template>
<v-app dark>
- <v-navigation-drawer v-model="drawer" fixed app>
+ <v-navigation-drawer v-if="$vuetify.breakpoint.lgAndUp" :width="400" fixed app>
<v-list>
<v-list-item
v-for="(item, i) in items"
@@ -9,6 +9,7 @@
router
exact
>
+
<v-list-item-action>
<v-icon>{{ item.icon }}</v-icon>
</v-list-item-action>
diff --git a/web/nuxt.config.js b/web/nuxt.config.js
index 16707356..1e7632f4 100644
--- a/web/nuxt.config.js
+++ b/web/nuxt.config.js
@@ -6,8 +6,8 @@ export default {
// Global page headers: https://go.nuxtjs.dev/config-head
head: {
- titleTemplate: '%s - web',
- title: 'web',
+ titleTemplate: '%s - HTTP SMS API',
+ title: 'Messages',
htmlAttrs: {
lang: 'en',
},
diff --git a/web/plugins/vuetify.ts b/web/plugins/vuetify.ts
new file mode 100644
index 00000000..6b17d989
--- /dev/null
+++ b/web/plugins/vuetify.ts
@@ -0,0 +1,13 @@
+import Vue from "vue";
+import Vuetify from "vuetify/lib";
+
+Vue.use(Vuetify);
+
+export default new Vuetify({
+ theme: {
+ dark: true,
+ },
+ icons: {
+ iconfont: "mdiSvg",
+ },
+});
diff --git a/web/tsconfig.json b/web/tsconfig.json
index 98d6180d..6c83e0fc 100644
--- a/web/tsconfig.json
+++ b/web/tsconfig.json
@@ -15,7 +15,7 @@
"~/*": ["./*"],
"@/*": ["./*"]
},
- "types": ["@nuxt/types", "@nuxtjs/axios", "@types/node"]
+ "types": ["@nuxt/types", "@nuxtjs/axios", "@types/node", "vuetify"]
},
"exclude": ["node_modules", ".nuxt", "dist"]
}
diff --git a/web/types.d.ts b/web/types.d.ts
new file mode 100644
index 00000000..7887aabb
--- /dev/null
+++ b/web/types.d.ts
@@ -0,0 +1,7 @@
+import Vuetify from "@/plugins/vuetify";
+
+declare module "vue/types/vue" {
+ interface Vue {
+ $vuetify: typeof Vuetify;
+ }
+}