From 590c21209cfb2bc310ece3826eaf276a4073e8c0 Mon Sep 17 00:00:00 2001 From: liyasthomas Date: Sat, 17 Jul 2021 23:10:28 +0530 Subject: [PATCH] refactor(ui): sort windicss classes --- assets/scss/styles.scss | 16 +- assets/scss/themes.scss | 2 +- components/app/Announcement.vue | 27 +- components/app/Extensions.vue | 4 +- components/app/Header.vue | 14 +- components/app/Logo.vue | 2 +- components/app/Shortcuts.vue | 8 +- components/button/Primary.vue | 34 +- components/button/Secondary.vue | 28 +- components/collections/Add.vue | 4 +- components/collections/AddFolder.vue | 4 +- components/collections/ChooseType.vue | 16 +- components/collections/Edit.vue | 4 +- components/collections/EditFolder.vue | 4 +- components/collections/EditRequest.vue | 8 +- components/collections/ImportExport.vue | 2 +- components/collections/SaveRequest.vue | 6 +- components/collections/graphql/Add.vue | 4 +- components/collections/graphql/AddFolder.vue | 4 +- components/collections/graphql/Collection.vue | 40 +- components/collections/graphql/Edit.vue | 4 +- components/collections/graphql/EditFolder.vue | 4 +- .../collections/graphql/EditRequest.vue | 4 +- components/collections/graphql/Folder.vue | 40 +- components/collections/graphql/Request.vue | 25 +- components/collections/graphql/index.vue | 25 +- components/collections/index.vue | 25 +- components/collections/my/Collection.vue | 40 +- components/collections/my/Folder.vue | 40 +- components/collections/my/Request.vue | 25 +- components/collections/teams/Collection.vue | 40 +- components/collections/teams/Folder.vue | 40 +- components/collections/teams/Request.vue | 25 +- components/environments/Add.vue | 4 +- components/environments/Edit.vue | 38 +- components/environments/Environment.vue | 21 +- components/environments/index.vue | 24 +- components/firebase/Login.vue | 12 +- components/graphql/Field.vue | 18 +- components/graphql/Type.vue | 10 +- components/history/graphql/Card.vue | 20 +- components/history/index.vue | 27 +- components/history/rest/Card.vue | 25 +- components/http/BodyParameters.vue | 38 +- components/http/CodegenModal.vue | 26 +- components/http/Headers.vue | 27 +- components/http/Parameters.vue | 38 +- components/http/RawBody.vue | 10 +- components/http/Request.vue | 302 +- components/http/ResponseMeta.vue | 9 +- components/landing/CTA.vue | 15 +- components/landing/Features.vue | 15 +- components/landing/Footer.vue | 8 +- components/landing/Hero.vue | 19 +- components/landing/Stats.vue | 4 +- components/landing/Users.vue | 10 +- components/lenses/HeadersRenderer.vue | 31 +- .../lenses/renderers/HTMLLensRenderer.vue | 8 +- .../lenses/renderers/ImageLensRenderer.vue | 8 +- .../lenses/renderers/JSONLensRenderer.vue | 8 +- .../lenses/renderers/RawLensRenderer.vue | 8 +- .../lenses/renderers/XMLLensRenderer.vue | 8 +- components/profile/Picture.vue | 13 +- components/realtime/Mqtt.vue | 6 +- components/realtime/Socketio.vue | 11 +- components/realtime/Sse.vue | 2 +- components/realtime/Websocket.vue | 11 +- components/smart/AceEditor.vue | 30 +- components/smart/AutoComplete.vue | 11 +- components/smart/ConfirmModal.vue | 2 +- components/smart/Item.vue | 14 +- components/smart/Modal.vue | 33 +- components/smart/Spinner.vue | 2 +- components/smart/Toggle.vue | 4 +- components/tab/Primary.vue | 10 +- components/tab/Secondary.vue | 13 +- components/teams/Add.vue | 4 +- components/teams/Edit.vue | 24 +- layouts/error.vue | 6 +- middleware/README.md | 9 +- middleware/parsedefaulturl.js | 5 - package-lock.json | 31279 +++++++++++++++- pages/graphql.vue | 24 +- pages/index.vue | 46 +- pages/settings.vue | 44 +- 85 files changed, 32066 insertions(+), 896 deletions(-) delete mode 100644 middleware/parsedefaulturl.js diff --git a/assets/scss/styles.scss b/assets/scss/styles.scss index dc8c55d33..06a0ebb66 100644 --- a/assets/scss/styles.scss +++ b/assets/scss/styles.scss @@ -110,13 +110,24 @@ a { .tippy-popper { .tooltip-theme { - @apply bg-secondary; + @apply bg-tooltip; @apply text-primaryLight; @apply text-xs; @apply font-semibold; + @apply py-1; @apply px-2; - @apply px-4; @apply shadow; + + kbd { + @apply first:ml-2; + @apply last:-mr-1; + @apply font-sans; + @apply bg-secondaryDark; + @apply text-primaryDark; + @apply rounded; + @apply px-1; + @apply ml-1; + } } .popover-theme { @@ -124,6 +135,7 @@ a { @apply text-secondary; @apply p-2; @apply shadow-lg; + @apply focus:outline-none; } &[x-placement^="top"] .tippy-tooltip .tippy-arrow { diff --git a/assets/scss/themes.scss b/assets/scss/themes.scss index eea28fbae..39da2b4e0 100644 --- a/assets/scss/themes.scss +++ b/assets/scss/themes.scss @@ -53,7 +53,7 @@ // Error color --error-color: theme("colors.true-gray.700"); // Tooltip color - --tooltip-color: theme("colors.true-gray.50"); + --tooltip-color: theme("colors.true-gray.700"); // Editor theme --editor-theme: "textmate"; } diff --git a/components/app/Announcement.vue b/components/app/Announcement.vue index b2e9cf97b..4129e1542 100644 --- a/components/app/Announcement.vue +++ b/components/app/Announcement.vue @@ -1,21 +1,21 @@ diff --git a/components/app/Header.vue b/components/app/Header.vue index c86203920..dd12538b3 100644 --- a/components/app/Header.vue +++ b/components/app/Header.vue @@ -1,9 +1,9 @@ @@ -119,7 +122,7 @@ import intializePwa from "~/helpers/pwa" import { currentUser$ } from "~/helpers/fb/auth" import { getLocalConfig, setLocalConfig } from "~/newstore/localpersistence" -// import { hasExtensionInstalled } from "~/helpers/strategies/ExtensionStrategy" +import { getPlatformSpecialKey } from "~/helpers/platformutils" export default { data() { @@ -176,6 +179,7 @@ export default { // fallback } }, + getSpecialKey: getPlatformSpecialKey, }, } diff --git a/components/app/Logo.vue b/components/app/Logo.vue index de3fa21c5..f11358f31 100644 --- a/components/app/Logo.vue +++ b/components/app/Logo.vue @@ -1,6 +1,6 @@ @@ -91,6 +107,10 @@ export default { type: Boolean, default: false, }, + shortcuts: { + type: Array, + default: () => [], + }, }, } diff --git a/components/collections/Add.vue b/components/collections/Add.vue index 836c556a0..50e2d08a5 100644 --- a/components/collections/Add.vue +++ b/components/collections/Add.vue @@ -5,8 +5,8 @@