From 0e9aef3f30d9b55908b3a29f691d29f7b307b7b2 Mon Sep 17 00:00:00 2001 From: Alicia Sykes Date: Sun, 16 May 2021 18:29:30 +0100 Subject: [PATCH] Displays a tab view in the config modal, with raw YAML for downloading --- README.md | 7 ++++--- package.json | 4 +++- src/components/LinkItems/Item.vue | 2 +- src/components/LinkItems/ItemIcon.vue | 2 +- src/components/Settings/ConfigEditor.vue | 15 +++++++++++++-- src/components/Settings/SettingsContainer.vue | 3 ++- src/main.js | 2 ++ src/utils/defaults.js | 1 + src/views/Home.vue | 14 ++++++++++++-- yarn.lock | 10 ++++++++++ 10 files changed, 49 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index ab1228ce..8aa0df70 100644 --- a/README.md +++ b/README.md @@ -162,12 +162,13 @@ There are a few self-hosted web apps, that serve a similar purpose to Dashy. Inc ### Credits 🏆 -The app makes use of the following components, kudos to their respective authors +And the app itself is built with [Vue.js](https://github.com/vuejs/vue) ![vue-logo](https://i.ibb.co/xqKW6h5/vue-logo.png) + +It makes use of the following components, kudos to their respective authors - [`vue-select`](https://github.com/sagalbot/vue-select) - Dropdown component by @sagalbot - [`vue-js-modal`](https://github.com/euvl/vue-js-modal) - Modal component by @euvl - [`v-tooltip`](https://github.com/Akryum/v-tooltip) - Tooltip component by @Akryum - -And the app itself is built with [Vue.js](https://github.com/vuejs/vue) ![vue-logo](https://i.ibb.co/xqKW6h5/vue-logo.png) +- [`vue-material-tabs`](https://github.com/jairoblatt/vue-material-tabs) - Tab view component by @jairoblatt ### License 📜 diff --git a/package.json b/package.json index 414174c6..e5415113 100644 --- a/package.json +++ b/package.json @@ -10,11 +10,13 @@ "dependencies": { "connect": "^3.7.0", "register-service-worker": "^1.6.2", + "remedial": "^1.0.8", "serve-static": "^1.14.1", "v-tooltip": "^2.1.3", "vue": "^2.6.10", "vue-cli-plugin-yaml": "^1.0.2", "vue-js-modal": "^2.0.0-rc.6", + "vue-material-tabs": "^0.0.7", "vue-router": "^3.0.3", "vue-select": "^3.11.2" }, @@ -61,4 +63,4 @@ "> 1%", "last 2 versions" ] -} \ No newline at end of file +} diff --git a/src/components/LinkItems/Item.vue b/src/components/LinkItems/Item.vue index b0b8ff34..54a968a3 100644 --- a/src/components/LinkItems/Item.vue +++ b/src/components/LinkItems/Item.vue @@ -100,7 +100,6 @@ export default { .item { flex-grow: 1; - position: relative; color: var(--item-text-color); vertical-align: middle; margin: 0.5rem; @@ -116,6 +115,7 @@ export default { &:hover { box-shadow: var(--item-hover-shadow); background: var(--item-background-hover); + position: relative; } &:focus { outline: 2px solid var(--primary); diff --git a/src/components/LinkItems/ItemIcon.vue b/src/components/LinkItems/ItemIcon.vue index ada43964..265e61a7 100644 --- a/src/components/LinkItems/ItemIcon.vue +++ b/src/components/LinkItems/ItemIcon.vue @@ -99,7 +99,7 @@ export default {