@@ -55,7 +57,10 @@
@@ -95,9 +100,9 @@ const t = useI18n()
const tabs = useService(RESTTabService)
const invalidLink = ref(false)
-const shortcodeID = ref("")
+const sharedRequestID = ref("")
-const shortcodeDetails = useGQLQuery<
+const sharedRequestDetails = useGQLQuery<
ResolveShortcodeQuery,
ResolveShortcodeQueryVariables,
""
@@ -109,14 +114,14 @@ const shortcodeDetails = useGQLQuery<
})
watch(
- () => shortcodeDetails.data,
+ () => sharedRequestDetails.data,
() => addRequestToTab()
)
const addRequestToTab = () => {
- if (shortcodeDetails.loading) return
+ if (sharedRequestDetails.loading) return
- const data = shortcodeDetails.data
+ const data = sharedRequestDetails.data
if (E.isRight(data)) {
if (!data.right.shortcode?.request) {
@@ -145,9 +150,9 @@ const reloadApplication = () => {
onMounted(() => {
if (typeof route.params.id === "string") {
- shortcodeID.value = route.params.id
- shortcodeDetails.execute()
+ sharedRequestID.value = route.params.id
+ sharedRequestDetails.execute()
}
- invalidLink.value = !shortcodeID.value
+ invalidLink.value = !sharedRequestID.value
})
diff --git a/packages/hoppscotch-common/src/services/spotlight/searchers/request.searcher.ts b/packages/hoppscotch-common/src/services/spotlight/searchers/request.searcher.ts
index 1e4f1ebd3..f67a49202 100644
--- a/packages/hoppscotch-common/src/services/spotlight/searchers/request.searcher.ts
+++ b/packages/hoppscotch-common/src/services/spotlight/searchers/request.searcher.ts
@@ -12,7 +12,7 @@ import { RESTOptionTabs } from "~/components/http/RequestOptions.vue"
import IconWindow from "~icons/lucide/app-window"
import IconCheckCircle from "~icons/lucide/check-circle"
import IconCode2 from "~icons/lucide/code-2"
-import IconCopy from "~icons/lucide/copy"
+import IconShare2 from "~icons/lucide/share-2"
import IconFileCode from "~icons/lucide/file-code"
import IconRename from "~icons/lucide/file-edit"
import IconPlay from "~icons/lucide/play"
@@ -94,10 +94,10 @@ export class RequestSpotlightSearcherService extends StaticSpotlightSearcherServ
icon: markRaw(IconRename),
excludeFromSearch: computed(() => !this.isRESTOrGQLPage.value),
},
- copy_request_link: {
- text: this.t("shortcut.request.copy_request_link"),
- alternates: ["copy", "link"],
- icon: markRaw(IconCopy),
+ share_request: {
+ text: this.t("shortcut.request.share_request"),
+ alternates: ["share", "request", "copy"],
+ icon: markRaw(IconShare2),
excludeFromSearch: computed(() => !this.isRESTPage.value),
},
reset_request: {
@@ -277,8 +277,8 @@ export class RequestSpotlightSearcherService extends StaticSpotlightSearcherServ
case "rename_request":
invokeAction("request.rename")
break
- case "copy_request_link":
- invokeAction("request.copy-link")
+ case "share_request":
+ invokeAction("request.share-request")
break
case "reset_request":
invokeAction("request.reset")
diff --git a/packages/hoppscotch-common/windi.config.ts b/packages/hoppscotch-common/windi.config.ts
deleted file mode 100644
index cbedf96f1..000000000
--- a/packages/hoppscotch-common/windi.config.ts
+++ /dev/null
@@ -1,71 +0,0 @@
-import { defineConfig } from "windicss/helpers"
-
-export default defineConfig({
- extract: {
- include: ["src/**/*.{vue,html}", "../hoppscotch-ui/src/**/*.{vue,html}"],
- },
- theme: {
- container: {
- center: true,
- },
- extend: {
- inset: {
- upperPrimaryStickyFold: "var(--upper-primary-sticky-fold)",
- upperSecondaryStickyFold: "var(--upper-secondary-sticky-fold)",
- upperTertiaryStickyFold: "var(--upper-tertiary-sticky-fold)",
- upperFourthStickyFold: "var(--upper-fourth-sticky-fold)",
- upperMobilePrimaryStickyFold: "var(--upper-mobile-primary-sticky-fold)",
- upperMobileSecondaryStickyFold:
- "var(--upper-mobile-secondary-sticky-fold)",
- upperMobileStickyFold: "var(--upper-mobile-sticky-fold)",
- upperMobileTertiaryStickyFold:
- "var(--upper-mobile-tertiary-sticky-fold)",
- lowerPrimaryStickyFold: "var(--lower-primary-sticky-fold)",
- lowerSecondaryStickyFold: "var(--lower-secondary-sticky-fold)",
- lowerTertiaryStickyFold: "var(--lower-tertiary-sticky-fold)",
- lowerFourthStickyFold: "var(--lower-fourth-sticky-fold)",
- sidebarPrimaryStickyFold: "var(--sidebar-primary-sticky-fold)",
- sidebarSecondaryStickyFold: "var(--line-height-body)",
- },
- colors: {
- primary: "var(--primary-color)",
- primaryLight: "var(--primary-light-color)",
- primaryDark: "var(--primary-dark-color)",
- primaryContrast: "var(--primary-contrast-color)",
- secondary: "var(--secondary-color)",
- secondaryLight: "var(--secondary-light-color)",
- secondaryDark: "var(--secondary-dark-color)",
- accent: "var(--accent-color)",
- accentLight: "var(--accent-light-color)",
- accentDark: "var(--accent-dark-color)",
- accentContrast: "var(--accent-contrast-color)",
- divider: "var(--divider-color)",
- dividerLight: "var(--divider-light-color)",
- dividerDark: "var(--divider-dark-color)",
- error: "var(--error-color)",
- tooltip: "var(--tooltip-color)",
- popover: "var(--popover-color)",
- gradientFrom: "var(--gradient-from-color)",
- gradientVia: "var(--gradient-via-color)",
- gradientTo: "var(--gradient-to-color)",
- },
- fontFamily: {
- sans: "var(--font-sans)",
- mono: "var(--font-mono)",
- icon: "var(--font-icon)",
- },
- fontSize: {
- tiny: "var(--font-size-tiny)",
- body: "var(--font-size-body)",
- },
- lineHeight: {
- body: "var(--line-height-body)",
- },
- cursor: {
- nsResize: "ns-resize",
- grab: "grab",
- grabbing: "grabbing",
- },
- },
- },
-})
diff --git a/packages/hoppscotch-ui/src/components/smart/Checkbox.vue b/packages/hoppscotch-ui/src/components/smart/Checkbox.vue
index 01c7a27a3..fe3c44e74 100644
--- a/packages/hoppscotch-ui/src/components/smart/Checkbox.vue
+++ b/packages/hoppscotch-ui/src/components/smart/Checkbox.vue
@@ -16,6 +16,9 @@
@@ -23,6 +26,8 @@