From 167dfc38478292c3b49c8f35302ce21ad9601b16 Mon Sep 17 00:00:00 2001 From: Liyas Thomas Date: Fri, 24 Feb 2023 18:28:39 +0530 Subject: [PATCH 1/2] chore: add fonts to ui package [skip ci] --- packages/hoppscotch-ui/vite.config.ts | 10 ++++++++++ packages/hoppscotch-ui/windi.config.ts | 1 + 2 files changed, 11 insertions(+) diff --git a/packages/hoppscotch-ui/vite.config.ts b/packages/hoppscotch-ui/vite.config.ts index cd5a15099..86ff5fb15 100644 --- a/packages/hoppscotch-ui/vite.config.ts +++ b/packages/hoppscotch-ui/vite.config.ts @@ -4,6 +4,7 @@ import path from "path" import Icons from "unplugin-icons/vite" import { defineConfig } from "vite" import WindiCSS from "vite-plugin-windicss" +import { VitePluginFonts } from "vite-plugin-fonts" export default defineConfig({ plugins: [ @@ -19,6 +20,15 @@ export default defineConfig({ Icons({ compiler: "vue3" }), + VitePluginFonts({ + google: { + families: [ + "Inter:wght@400;500;600;700;800", + "Roboto+Mono:wght@400;500", + "Material+Icons", + ], + }, + }), ], // to process SFC build: { sourcemap: true, diff --git a/packages/hoppscotch-ui/windi.config.ts b/packages/hoppscotch-ui/windi.config.ts index 8e391aecb..34716006a 100644 --- a/packages/hoppscotch-ui/windi.config.ts +++ b/packages/hoppscotch-ui/windi.config.ts @@ -20,6 +20,7 @@ export default defineConfig({ lowerSecondaryStickyFold: "var(--lower-secondary-sticky-fold)", lowerTertiaryStickyFold: "var(--lower-tertiary-sticky-fold)", sidebarPrimaryStickyFold: "var(--sidebar-primary-sticky-fold)", + sidebarSecondaryStickyFold: "var(--line-height-body)", }, colors: { primary: "var(--primary-color)", From bd5f95b1c5777eb5f91b2e9af4fb574394942d92 Mon Sep 17 00:00:00 2001 From: Liyas Thomas Date: Fri, 24 Feb 2023 18:41:36 +0530 Subject: [PATCH 2/2] chore: replace material-icons with lucide-icons --- .../hoppscotch-common/src/components/environments/index.vue | 2 +- .../src/components/environments/teams/index.vue | 2 +- packages/hoppscotch-common/src/pages/join-team.vue | 4 ++-- packages/hoppscotch-common/src/pages/r/_id.vue | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/hoppscotch-common/src/components/environments/index.vue b/packages/hoppscotch-common/src/components/environments/index.vue index 8afe7d2ee..391296f29 100644 --- a/packages/hoppscotch-common/src/components/environments/index.vue +++ b/packages/hoppscotch-common/src/components/environments/index.vue @@ -144,7 +144,7 @@ v-if="!loading && adapterError" class="flex flex-col items-center py-4" > - help_outline + {{ getErrorMessage(adapterError) }} diff --git a/packages/hoppscotch-common/src/components/environments/teams/index.vue b/packages/hoppscotch-common/src/components/environments/teams/index.vue index 3e77f7218..3d281c408 100644 --- a/packages/hoppscotch-common/src/components/environments/teams/index.vue +++ b/packages/hoppscotch-common/src/components/environments/teams/index.vue @@ -94,7 +94,7 @@ v-if="!loading && adapterError" class="flex flex-col items-center py-4" > - help_outline + {{ getErrorMessage(adapterError) }} - error_outline +

{{ t("team.invalid_invite_link") }}

@@ -42,7 +42,7 @@ v-if="!inviteDetails.loading && E.isLeft(inviteDetails.data)" class="flex flex-col items-center p-4" > - error_outline +

{{ getErrorMessage(inviteDetails.data.left) }}

diff --git a/packages/hoppscotch-common/src/pages/r/_id.vue b/packages/hoppscotch-common/src/pages/r/_id.vue index 89710cf9f..d1faa769f 100644 --- a/packages/hoppscotch-common/src/pages/r/_id.vue +++ b/packages/hoppscotch-common/src/pages/r/_id.vue @@ -4,7 +4,7 @@ v-if="invalidLink" class="flex flex-col items-center justify-center flex-1" > - error_outline +

{{ t("error.invalid_link") }}

@@ -24,7 +24,7 @@ v-if="!shortcodeDetails.loading && E.isLeft(shortcodeDetails.data)" class="flex flex-col items-center p-4" > - error_outline +

{{ t("error.invalid_link") }}