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 @@ + + + + + + + + + + + + {{ $t('editors.btnAdd') }} + + + + + + + + + + + + + {{ editor.display_name }} + + + + + + + + + + + + + + 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', },
+ +
+ {{ editor.display_name }} +
{{ editor.display_name }}