From c74e122c384fe699b0dad7ff34d43704a44f5584 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Sat, 13 Jul 2024 12:33:56 +0200 Subject: [PATCH] Add botauth component Signed-off-by: Knut Ahlers --- src/components/botauth.vue | 117 +++++++++++++++++++++++++++++++++++++ src/langs/en.json | 10 ++++ src/router.ts | 3 +- 3 files changed, 129 insertions(+), 1 deletion(-) create mode 100644 src/components/botauth.vue diff --git a/src/components/botauth.vue b/src/components/botauth.vue new file mode 100644 index 0000000..f96b921 --- /dev/null +++ b/src/components/botauth.vue @@ -0,0 +1,117 @@ + + + + diff --git a/src/langs/en.json b/src/langs/en.json index 0eed24d..a6e931b 100644 --- a/src/langs/en.json +++ b/src/langs/en.json @@ -1,4 +1,14 @@ { + "botauth": { + "description": "Here you can manage your bots auth-token: it's required to communicate with Twitch Chat and APIs. The access will be valid as long as you don't change the password or revoke the apps permission in your bot account.", + "directives": [ + "Copy the URL provided below", + "Open an incognito-tab or different browser, you are not logged into Twitch or are logged in with your bot account", + "Open the copied URL, sign in with the bot account and accept the permissions", + "You will see a message containing the authorized account. If this account is wrong, just start over, the token will be overwritten." + ], + "heading": "Updating Bot-Authorization" + }, "dashboard": { "activeRaffles": { "caption": "Active", diff --git a/src/router.ts b/src/router.ts index 3214f33..13641c8 100644 --- a/src/router.ts +++ b/src/router.ts @@ -1,12 +1,13 @@ import { createRouter, createWebHashHistory, type RouteRecordRaw } from 'vue-router' +import BothAuth from './components/botauth.vue' import Dashboard from './components/dashboard.vue' const routes = [ { component: Dashboard, name: 'dashboard', path: '/' }, // General settings - { component: {}, name: 'botAuth', path: '/bot-auth' }, + { component: BothAuth, name: 'botAuth', path: '/bot-auth' }, { component: {}, name: 'channels', path: '/channels' }, { component: {}, name: 'editors', path: '/editors' }, { component: {}, name: 'tokens', path: '/tokens' },