From 04cd5b0981c765194e70f32bb13fa8904da2303b Mon Sep 17 00:00:00 2001 From: liyasthomas Date: Wed, 21 Jul 2021 15:25:46 +0530 Subject: [PATCH] feat: zenmode + toggle left, right & header panes --- components/realtime/Mqtt.vue | 12 ++- components/realtime/Socketio.vue | 12 ++- components/realtime/Websocket.vue | 15 ++- lang/en-US.json | 3 +- layouts/default.vue | 69 +++++++------ newstore/settings.ts | 8 +- pages/documentation.vue | 12 ++- pages/graphql.vue | 13 ++- pages/index.vue | 24 ++++- pages/settings.vue | 19 +++- store/mutations.js | 48 --------- store/postwoman.js | 160 ------------------------------ store/state.js | 3 - 13 files changed, 135 insertions(+), 263 deletions(-) diff --git a/components/realtime/Mqtt.vue b/components/realtime/Mqtt.vue index eb82e5156..2fcd3bf5b 100644 --- a/components/realtime/Mqtt.vue +++ b/components/realtime/Mqtt.vue @@ -47,6 +47,7 @@ diff --git a/components/realtime/Socketio.vue b/components/realtime/Socketio.vue index 5ed083abd..e307c469a 100644 --- a/components/realtime/Socketio.vue +++ b/components/realtime/Socketio.vue @@ -67,6 +67,7 @@ diff --git a/components/realtime/Websocket.vue b/components/realtime/Websocket.vue index 4df8f1535..13069e9e9 100644 --- a/components/realtime/Websocket.vue +++ b/components/realtime/Websocket.vue @@ -138,6 +138,7 @@ - diff --git a/lang/en-US.json b/lang/en-US.json index 9d8d6a325..eefb6e12a 100644 --- a/lang/en-US.json +++ b/lang/en-US.json @@ -348,5 +348,6 @@ "profile": "Profile", "are_you_sure_logout": "Are you sure you want to logout?", "telemetry": "Telemetry", - "shortcuts_indicator": "Shortcuts indicator" + "shortcuts_indicator": "Shortcuts indicator", + "zen_mode": "Zen mode" } diff --git a/layouts/default.vue b/layouts/default.vue index e1e7267a0..6beb6f14b 100644 --- a/layouts/default.vue +++ b/layouts/default.vue @@ -4,7 +4,7 @@ @@ -12,12 +12,12 @@ - + - + @@ -28,32 +28,30 @@
@@ -62,7 +60,8 @@ - diff --git a/newstore/settings.ts b/newstore/settings.ts index ab8aa0fa4..7888f1e12 100644 --- a/newstore/settings.ts +++ b/newstore/settings.ts @@ -45,7 +45,9 @@ export type SettingsType = { BG_COLOR: HoppBgColor TELEMETRY_ENABLED: boolean SHORTCUTS_INDICATOR_ENABLED: boolean - HIDE_NAVBAR: boolean + LEFT_SIDEBAR: boolean + RIGHT_SIDEBAR: boolean + ZEN_MODE: boolean } export const defaultSettings: SettingsType = { @@ -69,7 +71,9 @@ export const defaultSettings: SettingsType = { BG_COLOR: "system", TELEMETRY_ENABLED: true, SHORTCUTS_INDICATOR_ENABLED: false, - HIDE_NAVBAR: false, + LEFT_SIDEBAR: true, + RIGHT_SIDEBAR: true, + ZEN_MODE: false, } const validKeys = Object.keys(defaultSettings) diff --git a/pages/documentation.vue b/pages/documentation.vue index 36545389e..dc87700d4 100644 --- a/pages/documentation.vue +++ b/pages/documentation.vue @@ -103,6 +103,7 @@
diff --git a/pages/graphql.vue b/pages/graphql.vue index 34c7cd263..bfb6cba71 100644 --- a/pages/graphql.vue +++ b/pages/graphql.vue @@ -331,6 +331,7 @@