From 9656010ff387473fc4d6b02b6b66557ab626a04a Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Sat, 17 Aug 2024 12:59:21 +0200 Subject: [PATCH] Add Editors management Signed-off-by: Knut Ahlers --- .eslintrc.js | 2 +- src/components/editors.vue | 192 +++++++++++++++++++++++++++++++++++++ src/langs/en.json | 5 + src/router.ts | 3 +- 4 files changed, 200 insertions(+), 2 deletions(-) create mode 100644 src/components/editors.vue diff --git a/.eslintrc.js b/.eslintrc.js index e353152..3eb32e8 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -66,7 +66,7 @@ module.exports = { 'arrow-spacing': ['error', { after: true, before: true }], 'block-spacing': ['error'], 'brace-style': ['error', '1tbs'], - 'camelcase': ['error'], + 'camelcase': ['warn'], 'comma-dangle': ['error', 'always-multiline'], 'comma-spacing': ['error'], 'comma-style': ['error', 'last'], diff --git a/src/components/editors.vue b/src/components/editors.vue new file mode 100644 index 0000000..0ff1cd8 --- /dev/null +++ b/src/components/editors.vue @@ -0,0 +1,192 @@ + + + + + diff --git a/src/langs/en.json b/src/langs/en.json index 68b35d4..0198cd2 100644 --- a/src/langs/en.json +++ b/src/langs/en.json @@ -53,6 +53,11 @@ "header": "Bot-Health" } }, + "editors": { + "btnAdd": "Add Editor", + "toastEditorAdded": "Editor added", + "toastEditorRemoved": "Editor removed" + }, "errors": { "loginFailedAccessDenied": "Access denied to this bot instance", "loginFailedUnexpectedStatus": "Login failed unexpectedly" diff --git a/src/router.ts b/src/router.ts index 902f36b..ab02714 100644 --- a/src/router.ts +++ b/src/router.ts @@ -1,6 +1,7 @@ import { createRouter, createWebHashHistory, type RouteRecordRaw } from 'vue-router' import BotAuth from './components/botauth.vue' +import BotEditors from './components/editors.vue' import ChannelOverview from './components/channelOverview.vue' import ChannelPermissions from './components/channelPermissions.vue' import Dashboard from './components/dashboard.vue' @@ -35,7 +36,7 @@ const routes = [ path: '/channels', }, { - component: {}, + component: BotEditors, name: 'editors', path: '/editors', },