From ab5723cedd0e59451ac0835aae3e177dbdaa33ff Mon Sep 17 00:00:00 2001 From: brian horakh Date: Sat, 16 Dec 2023 22:23:22 +1100 Subject: [PATCH 1/4] pre social-logins --- src/components/CommandLineInterface.vue | 10 ++++--- src/components/DebugPanel.vue | 37 +++++++++++++++++++++---- 2 files changed, 38 insertions(+), 9 deletions(-) diff --git a/src/components/CommandLineInterface.vue b/src/components/CommandLineInterface.vue index ff7fb46..2f7c1a2 100644 --- a/src/components/CommandLineInterface.vue +++ b/src/components/CommandLineInterface.vue @@ -11,13 +11,15 @@ const commands = { "help": () => createStdout("Available commands: hello, login, debug"), "login": () => { mainStore.toggleLogin(); - return createStdout("Login interface activated."); - }, + const status = mainStore.showLogin ? "Activated" : "Disabled"; + return createStdout(`Login interface ${status}.`); + }, "hello": () => createStdout("Hello world! #wip"), "debug": () => { mainStore.toggleDebugPanel(); - return createStdout("Debug panel activated."); - }, + const status = mainStore.showDebugPanel ? "Activated" : "Disabled"; + return createStdout(`Debug panel ${status}.`); + }, }; diff --git a/src/components/DebugPanel.vue b/src/components/DebugPanel.vue index 9ab6923..ad0ee20 100644 --- a/src/components/DebugPanel.vue +++ b/src/components/DebugPanel.vue @@ -1,16 +1,20 @@ -