From dcbb17b1642d07da0a22ef3171e4572dd82dd93d Mon Sep 17 00:00:00 2001 From: liyasthomas Date: Mon, 20 Sep 2021 10:17:31 +0530 Subject: [PATCH] feat: vertical and horizontal layout support --- .../hoppscotch-app/assets/icons/columns.svg | 1 + .../hoppscotch-app/components/app/Footer.vue | 9 +++++++++ .../hoppscotch-app/components/realtime/Mqtt.vue | 7 ++++++- .../components/realtime/Socketio.vue | 7 ++++++- .../hoppscotch-app/components/realtime/Sse.vue | 12 +++++++++++- .../components/realtime/Websocket.vue | 7 ++++++- packages/hoppscotch-app/layouts/default.vue | 17 +++++++++++------ packages/hoppscotch-app/locales/en.json | 2 ++ packages/hoppscotch-app/newstore/settings.ts | 2 ++ packages/hoppscotch-app/pages/documentation.vue | 7 ++++++- packages/hoppscotch-app/pages/graphql.vue | 7 ++++++- packages/hoppscotch-app/pages/index.vue | 7 ++++++- packages/hoppscotch-app/pages/settings.vue | 1 - 13 files changed, 72 insertions(+), 14 deletions(-) create mode 100644 packages/hoppscotch-app/assets/icons/columns.svg diff --git a/packages/hoppscotch-app/assets/icons/columns.svg b/packages/hoppscotch-app/assets/icons/columns.svg new file mode 100644 index 000000000..46ba287c4 --- /dev/null +++ b/packages/hoppscotch-app/assets/icons/columns.svg @@ -0,0 +1 @@ + diff --git a/packages/hoppscotch-app/components/app/Footer.vue b/packages/hoppscotch-app/components/app/Footer.vue index c5ea81d19..01e1f137b 100644 --- a/packages/hoppscotch-app/components/app/Footer.vue +++ b/packages/hoppscotch-app/components/app/Footer.vue @@ -118,6 +118,14 @@ :title="$t('request.share')" @click.native="nativeShare()" /> + - +
@@ -156,6 +160,7 @@ export default defineComponent({ return { windowInnerWidth: useWindowSize(), RIGHT_SIDEBAR: useSetting("RIGHT_SIDEBAR"), + COLUMN_LAYOUT: useSetting("COLUMN_LAYOUT"), } }, data() { diff --git a/packages/hoppscotch-app/components/realtime/Socketio.vue b/packages/hoppscotch-app/components/realtime/Socketio.vue index 42d6c3623..5f12433b0 100644 --- a/packages/hoppscotch-app/components/realtime/Socketio.vue +++ b/packages/hoppscotch-app/components/realtime/Socketio.vue @@ -5,7 +5,11 @@ :horizontal="!(windowInnerWidth.x.value >= 768)" > - +
@@ -176,6 +180,7 @@ export default defineComponent({ return { windowInnerWidth: useWindowSize(), RIGHT_SIDEBAR: useSetting("RIGHT_SIDEBAR"), + COLUMN_LAYOUT: useSetting("COLUMN_LAYOUT"), } }, data() { diff --git a/packages/hoppscotch-app/components/realtime/Sse.vue b/packages/hoppscotch-app/components/realtime/Sse.vue index ca78d4b1a..e5af74b02 100644 --- a/packages/hoppscotch-app/components/realtime/Sse.vue +++ b/packages/hoppscotch-app/components/realtime/Sse.vue @@ -1,5 +1,9 @@