Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia
TypeScript apiapi-clientapi-restapi-testingdeveloper-toolsgraphqlhttphttp-clientpwarestrest-apispatestingtesting-toolstoolsvuevuejswebsocket
feat(desktop): portable phase-3: instance manager (#5421)
Shreyasf834cc87d3fc
diff --git a/devenv.lock b/devenv.lockindex b22ef4eda..1307a9770 100644--- a/devenv.lock+++ b/devenv.lock@@ -3,10 +3,10 @@"devenv": {"locked": {"dir": "src/modules",- "lastModified": 1738772960,+ "lastModified": 1761922975,"owner": "cachix","repo": "devenv",- "rev": "7f756cdf3fbb01cab243dcec4de0ca94e6aaa2af",+ "rev": "c9f0b47815a4895fadac87812de8a4de27e0ace1","type": "github"},"original": {@@ -24,10 +24,10 @@"rust-analyzer-src": "rust-analyzer-src"},"locked": {- "lastModified": 1738737274,+ "lastModified": 1762238689,"owner": "nix-community","repo": "fenix",- "rev": "f82de9980822f3b1efcf54944939b1d514386827",+ "rev": "0f94d1e67ea9ef983a9b5caf9c14bc52ae2eac44","type": "github"},"original": {@@ -39,10 +39,10 @@"flake-compat": {"flake": false,"locked": {- "lastModified": 1733328505,+ "lastModified": 1761588595,"owner": "edolstra","repo": "flake-compat",- "rev": "ff81ac966bb2cae68946d5ed5fc4994f96d0ffec",+ "rev": "f387cd2afec9419c8ee37694406ca490c3f34ee5","type": "github"},"original": {@@ -60,10 +60,10 @@]},"locked": {- "lastModified": 1737465171,+ "lastModified": 1760663237,"owner": "cachix","repo": "git-hooks.nix",- "rev": "9364dc02281ce2d37a1f55b6e51f7c0f65a75f17",+ "rev": "ca5b894d3e3e151ffc1db040b6ce4dcc75d31c37","type": "github"},"original": {@@ -94,10 +94,10 @@},"nixpkgs": {"locked": {- "lastModified": 1738734093,+ "lastModified": 1762156382,"owner": "NixOS","repo": "nixpkgs",- "rev": "5b2753b0356d1c951d7a3ef1d086ba5a71fff43c",+ "rev": "7241bcbb4f099a66aafca120d37c65e8dda32717","type": "github"},"original": {@@ -115,16 +115,17 @@"nixpkgs": "nixpkgs","pre-commit-hooks": ["git-hooks"- ]+ ],+ "rust-overlay": "rust-overlay"}},"rust-analyzer-src": {"flake": false,"locked": {- "lastModified": 1738754241,+ "lastModified": 1762201112,"owner": "rust-lang","repo": "rust-analyzer",- "rev": "ca47cddc31ae76a05e8709ed4aec805c5ef741d3",+ "rev": "132d3338f4526b5c71046e5dc7ddf800e279daf4","type": "github"},"original": {@@ -133,6 +134,25 @@"repo": "rust-analyzer","type": "github"}+ },+ "rust-overlay": {+ "inputs": {+ "nixpkgs": [+ "nixpkgs"+ ]+ },+ "locked": {+ "lastModified": 1762223900,+ "owner": "oxalica",+ "repo": "rust-overlay",+ "rev": "cfe1598d69a42a5edb204770e71b8df77efef2c3",+ "type": "github"+ },+ "original": {+ "owner": "oxalica",+ "repo": "rust-overlay",+ "type": "github"+ }}},"root": "root",diff --git a/devenv.nix b/devenv.nixindex 5b0b64ba6..f9ff690b8 100644--- a/devenv.nix+++ b/devenv.nix@@ -7,12 +7,7 @@ letelse pkgs;darwinPackages = with pkgs; [- darwin.apple_sdk.frameworks.Security- darwin.apple_sdk.frameworks.CoreServices- darwin.apple_sdk.frameworks.CoreFoundation- darwin.apple_sdk.frameworks.Foundation- darwin.apple_sdk.frameworks.AppKit- darwin.apple_sdk.frameworks.WebKit+ apple-sdk];linuxPackages = with pkgs; [@@ -172,6 +167,10 @@ in {npm.enable = true;pnpm.enable = true;};+ go = {+ enable = true;+ package = pkgs.go_1_24;+ };rust = {enable = true;channel = "nightly";diff --git a/devenv.yaml b/devenv.yamlindex 9ee9ba349..d01692017 100644--- a/devenv.yaml+++ b/devenv.yaml@@ -1,23 +1,14 @@-# yaml-language-server: $schema=https://devenv.sh/devenv.schema.jsoninputs:- # For NodeJS-22 and above- nixpkgs:- url: github:NixOS/nixpkgs/nixpkgs-unstable- # nixpkgs:- # url: github:cachix/devenv-nixpkgs/rollingfenix:url: github:nix-community/fenixinputs:nixpkgs:follows: nixpkgs--# If you're using non-OSS software, you can set allowUnfree to true.+ nixpkgs:+ url: github:NixOS/nixpkgs/nixpkgs-unstable+ rust-overlay:+ url: github:oxalica/rust-overlay+ inputs:+ nixpkgs:+ follows: nixpkgsallowUnfree: true--# If you're willing to use a package that's vulnerable-# permittedInsecurePackages:-# - "openssl-1.1.1w"--# If you have more than one devenv you can merge them-#imports:-# - ./backenddiff --git a/packages/hoppscotch-common/.eslintrc.js b/packages/hoppscotch-common/.eslintrc.jsindex f69f0f80f..63fdd5684 100644--- a/packages/hoppscotch-common/.eslintrc.js+++ b/packages/hoppscotch-common/.eslintrc.js@@ -47,8 +47,14 @@ module.exports = {"vue/no-side-effects-in-computed-properties": "off","import/no-named-as-default": "off","import/no-named-as-default-member": "off",- "@typescript-eslint/no-unused-vars":+ "@typescript-eslint/no-unused-vars": [process.env.HOPP_LINT_FOR_PROD === "true" ? "error" : "warn",+ {+ argsIgnorePattern: "^_",+ varsIgnorePattern: "^_",+ caughtErrorsIgnorePattern: "^_",+ },+ ],"@typescript-eslint/no-non-null-assertion": "off","@typescript-eslint/no-explicit-any": "off","import/default": "off",diff --git a/packages/hoppscotch-common/locales/en.json b/packages/hoppscotch-common/locales/en.jsonindex 22a6bf959..c14f3b4dc 100644--- a/packages/hoppscotch-common/locales/en.json+++ b/packages/hoppscotch-common/locales/en.json@@ -877,7 +877,28 @@"add_new": "Add a new instance","confirm_remove": "Confirm Removal","remove_warning": "Are you sure you want to remove this instance?",- "clear_cached_bundles": "Clear cached bundles"+ "clear_cached_bundles": "Clear cached bundles",+ "opening_add_modal": "Opening add instance dialog",+ "closed_add_modal": "Add instance dialog closed",+ "cancelled_removal": "Instance removal cancelled",+ "connection_cancelled": "Connection cancelled by pre-connect validation",+ "post_connect_completed": "Post-connection setup completed",+ "connecting": "Connecting to instance...",+ "confirm_removal": "Confirm removal of instance",+ "removal_cancelled": "Instance removal cancelled by pre-removal validation",+ "post_remove_completed": "Post-removal cleanup completed",+ "removing": "Removing instance...",+ "clearing_cache": "Clearing cache...",+ "initialized": "Instance switcher initialized",+ "connecting_state": "Establishing connection...",+ "connected_state": "Successfully connected to instance",+ "disconnected_state": "Disconnected from instance",+ "stream_error": "Connection state monitoring failed",+ "recent_instances_error": "Failed to load recent instances",+ "instance_changed": "Switched to instance",+ "current_instance_error": "Failed to track current instance",+ "not_available": "Instance switching is not available",+ "cleanup_completed": "Instance switcher cleanup completed"},"inspections": {"description": "Inspect possible errors",diff --git a/packages/hoppscotch-common/src/components/app/Header.vue b/packages/hoppscotch-common/src/components/app/Header.vueindex 11ac0b699..a1766f201 100644--- a/packages/hoppscotch-common/src/components/app/Header.vue+++ b/packages/hoppscotch-common/src/components/app/Header.vue@@ -15,30 +15,21 @@><div class="flex"><tippy- v-if="kernelMode === 'desktop'"+ v-if="platform.instance?.instanceSwitchingEnabled"interactivetrigger="click"theme="popover":on-shown="() => instanceSwitcherRef.focus()"><div class="flex items-center cursor-pointer">- <div class="flex">- <span- class="!font-bold uppercase tracking-wide !text-secondaryDark pr-1"- >- {{ instanceDisplayName }}- </span>- <span- v-if="- currentState.status === 'connected' &&- 'type' in currentState.instance &&- currentState.instance.type === 'vendored'- "- class="!font-bold uppercase tracking-wide !text-secondaryDark pr-1"- >- {{ platform.instance.displayConfig.description }}- </span>- </div>+ <span+ class="!font-bold uppercase tracking-wide !text-secondaryDark pr-1"+ >+ {{+ platform.instance.getCurrentInstance?.()?.displayName ||+ "Hoppscotch"+ }}+ </span><IconChevronDown class="h-4 w-4 text-secondaryDark" /></div><template #content="{ hide }">@@ -378,7 +369,6 @@ import {BannerService,} from "~/services/banner.service"import { WorkspaceService } from "~/services/workspace.service"-import { InstanceSwitcherService } from "~/services/instance-switcher.service"import IconDownload from "~icons/lucide/download"import IconLifeBuoy from "~icons/lucide/life-buoy"import IconSettings from "~icons/lucide/settings"@@ -393,33 +383,14 @@ import { AdditionalLinksService } from "~/services/additionalLinks.service"const t = useI18n()const toast = useToast()const kernelMode = getKernelMode()-const instanceSwitcherService =- kernelMode === "desktop" ? useService(InstanceSwitcherService) : null-const instanceSwitcherRef =- kernelMode === "desktop" ? ref<any | null>(null) : ref(null)+const downloadableLinksRef =kernelMode === "web" ? ref<any | null>(null) : ref(null)+const instanceSwitcherRef =+ kernelMode === "desktop" ? ref<any | null>(null) : ref(null)const isUserAdmin = ref(false)-const currentState =- kernelMode === "desktop" && instanceSwitcherService- ? useReadonlyStream(- instanceSwitcherService.getStateStream(),- instanceSwitcherService.getCurrentState().value- )- : ref({- status: "disconnected",- instance: { displayName: "Hoppscotch" },- })--const instanceDisplayName = computed(() => {- if (currentState.value.status !== "connected") {- return "Hoppscotch"- }- return currentState.value.instance.displayName-})-/*** Feature flag to enable the workspace selector login conversion*/diff --git a/packages/hoppscotch-common/src/components/instance/Switcher.vue b/packages/hoppscotch-common/src/components/instance/Switcher.vueindex e634fcbd9..6cf789139 100644--- a/packages/hoppscotch-common/src/components/instance/Switcher.vue+++ b/packages/hoppscotch-common/src/components/instance/Switcher.vue@@ -1,70 +1,54 @@<template>- <div class="flex flex-col space-y-1 w-full">+ <!-- Use custom component if platform provides one, otherwise fallback to default impl below -->+ <component+ :is="platform.instance.customInstanceSwitcherComponent"+ v-if="platform.instance?.customInstanceSwitcherComponent"+ @close-dropdown="$emit('close-dropdown')"+ />++ <!-- Default impl -->+ <div+ v-else-if="isInstanceSwitchingEnabled"+ class="flex flex-col space-y-1 w-full"+ ><div- class="flex items-center justify-between px-4 py-3 hover:accent-primaryLight rounded-md"- :class="{- 'cursor-pointer': !isVendored,- 'bg-accent text-accentContrast': isVendored,- }"- @click="!isVendored && connectToVendored()"+ v-if="connectedInstance"+ class="flex items-center justify-between px-4 py-3 bg-accent text-accentContrast rounded-md"><div class="flex items-center gap-4">- <IconLucidePackage />+ <IconLucideServer /><div class="flex flex-col"><span class="font-semibold uppercase">{{- platform.instance.displayConfig.displayName+ connectedInstance.displayName}}</span><div class="flex items-center gap-1">- <!-- NOTE:- If this is set to `platform.instance.displayConfig.description`- it'll be bound to app's perspective, i.e.- when in vendored cloud app, it'll show `Cloud`- and in vendored self-hosted app, it'll show `On-Prem`- even tho both are actually pointing to the same bundle.- Essentially switching instance is a **perspective shift**- for the underlying desktop app launcher.-- The best way to solve this would be to make instance information- into "links" to the bundles hosted by the `appload` plugin,- which is already underway in HFE-829.-- This is a workaround for the time being. See `Header.vue`- for code that maintains backwards compatibility.- -->- <span class="text-xs">Default</span>- <span class="text-xs"> app </span>+ <span class="text-xs">{{ connectedInstance.kind }}</span>+ <span+ v-if="showVersionInfo && connectedInstance.version"+ class="text-xs"+ >+ v{{ connectedInstance.version }}+ </span></div></div></div>- <IconLucideCheck v-if="isVendored" />+ <IconLucideCheck /></div><div class="flex flex-col space-y-1"><divv-for="instance in recentInstances":key="instance.serverUrl"- class="flex items-center justify-between px-4 py-2 rounded-md group"- :class="{- 'bg-accent text-accentContrast':- currentInstance &&- currentInstance.type === 'server' &&- currentInstance.serverUrl ===- instanceService.normalizeUrl(instance.serverUrl),- 'hover:bg-primaryLight': !(- currentInstance &&- currentInstance.type === 'server' &&- currentInstance.serverUrl ===- instanceService.normalizeUrl(instance.serverUrl)- ),- }"+ class="flex items-center justify-between px-4 py-2 rounded-md group hover:bg-primaryLight cursor-pointer"+ @click="+ handleConnectToInstance(+ instance.serverUrl,+ instance.kind,+ instance.displayName+ )+ ">- <div- class="flex items-center gap-4 flex-1 cursor-pointer"- @click="- !isConnectedTo(instance.serverUrl) &&- connectToServer(instance.serverUrl)- "- >+ <div class="flex items-center gap-4 flex-1"><IconLucideServer /><div class="flex flex-col"><span@@ -73,13 +57,12 @@theme: 'tooltip',}"class="font-semibold uppercase"- >{{ getHostname(instance.displayName) }}</span>+ {{ instance.displayName }}+ </span><div class="flex items-center gap-1">- <span v-if="isOnPrem(instance.serverUrl)" class="text-xs"- >On-prem</span- >- <span v-if="instance.version" class="text-xs">+ <span class="text-xs">{{ instance.kind }}</span>+ <span v-if="showVersionInfo && instance.version" class="text-xs">v{{ instance.version }}</span></div>@@ -87,26 +70,29 @@</div><div class="flex items-center"><div class="w-8 flex justify-center">- <IconLucideCheck- v-if="isConnectedTo(instance.serverUrl)"- class="text-current"- /><HoppButtonSecondary- v-if="!isConnectedTo(instance.serverUrl)"+ v-if="allowInstanceRemoval && instance.kind !== 'vendored'"v-tippy="{content: t('action.remove_instance') || 'Remove instance',theme: 'tooltip',}"class="!p-0 ml-4 opacity-0 group-hover:opacity-100 transition-opacity":icon="IconLucideTrash"- @click.stop="- confirmRemove(instance.serverUrl, instance.displayName)- "+ @click.stop="confirmRemove(instance)"+ />+ <IconLucideLock+ v-else-if="instance.kind === 'vendored'"+ v-tippy="{+ content: 'Built-in instance cannot be removed',+ theme: 'tooltip',+ }"+ class="!p-0 ml-4 opacity-50 text-secondaryLight"/></div></div></div></div>+<hr /><HoppButtonSecondary@@ -114,12 +100,7 @@:icon="IconLucidePlus"filledoutline- @click="- () => {- showAddModal = true- $emit('close-dropdown')- }- "+ @click="openAddModal"/><HoppSmartModal@@ -127,7 +108,7 @@dialog:title="t('instances.add_new') || 'Add New Instance'"styles="sm:max-w-md"- @close="showAddModal = false"+ @close="closeAddModal"><template #body><form class="flex flex-col space-y-4" @submit.prevent="handleConnect">@@ -146,26 +127,22 @@<template #prefix><IconLucideGlobe /></template>- <HoppSmartInput>- <template #suffix>- <IconLucideCheck- v-if="- !isConnecting &&- !connectionError &&- newInstanceUrl &&- isValidUrl &&- !isCurrentUrl- "- class="text-green-500"- />- <IconLucideAlertCircle- v-else-if="- !isConnecting && !connectionError && isCurrentUrl- "- class="text-amber-500"- />- </template>- </HoppSmartInput>+ <template #suffix>+ <IconLucideCheck+ v-if="+ !isConnecting &&+ !connectionError &&+ newInstanceUrl &&+ isValidUrl &&+ !isCurrentUrl+ "+ class="text-green-500"+ />+ <IconLucideAlertCircle+ v-else-if="!isConnecting && !connectionError && isCurrentUrl"+ class="text-amber-500"+ />+ </template></HoppSmartInput><span v-if="connectionError" class="text-red-500 text-tiny">{{ connectionError }}@@ -189,7 +166,7 @@</template><template #footer>- <div class="flex justify-end w-full">+ <div v-if="allowCacheClear" class="flex justify-end w-full"><HoppButtonSecondaryv-tippy="{content: t('instances.clear_cached_bundles'),@@ -205,12 +182,13 @@</div></template></HoppSmartModal>+<HoppSmartModalv-if="showRemoveModal"dialog:title="t('instances.confirm_remove') || 'Confirm Removal'"styles="sm:max-w-md"- @close="showRemoveModal = false"+ @close="closeRemoveModal"><template #body><p>@@ -218,10 +196,7 @@t("instances.remove_warning") ||"Are you sure you want to remove this instance?"}}-- <span class="font-bold">- {{ confirmedRemoveDisplayName }}- </span>+ <span class="font-bold">{{ instanceToRemove?.displayName }}</span></p></template><template #footer>@@ -230,30 +205,40 @@:label="t('action.cancel') || 'Cancel'"outlinefilled- @click="showRemoveModal = false"+ @click="closeRemoveModal"/><HoppButtonPrimary:label="t('action.remove') || 'Remove'"filledoutline- @click="removeInstance(confirmedRemoveUrl)"+ @click="handleRemoveInstance"/></div></template></HoppSmartModal></div>++ <!-- Fallback when instance switching is disabled -->+ <div v-else class="flex items-center justify-center px-4 py-3">+ <span class="text-secondaryLight text-sm"+ >Instance switching not available</span+ >+ </div></template><script setup lang="ts">-import { ref, computed } from "vue"-import { useService } from "dioc/vue"+import { ref, computed, watch, onMounted, onUnmounted } from "vue"+import { Subscription } from "rxjs"+import { useI18n } from "@composables/i18n"-import { useReadonlyStream } from "@composables/stream"-import {- InstanceSwitcherService,- InstanceType,-} from "~/services/instance-switcher.service"+import { useToast } from "@composables/toast"+import { platform } from "~/platform"+import type {+ ConnectionState,+ Instance,+ InstanceKind,+} from "~/platform/instance"import IconLucideGlobe from "~icons/lucide/globe"import IconLucideCheck from "~icons/lucide/check"@@ -262,60 +247,62 @@ import IconLucideTrash from "~icons/lucide/trash"import IconLucideTrash2 from "~icons/lucide/trash-2"import IconLucideAlertCircle from "~icons/lucide/alert-circle"import IconLucidePlus from "~icons/lucide/plus"-import IconLucidePackage from "~icons/lucide/package"const t = useI18n()-const instanceService = useService(InstanceSwitcherService)+const toast = useToast()++const emit = defineEmits<{+ "close-dropdown": []+}>()-const emit = defineEmits(["close-dropdown"])+const showVersionInfo = ref(true)+const allowInstanceRemoval = ref(true)+const allowCacheClear = ref(true)const showAddModal = ref(false)+const showRemoveModal = ref(false)+const newInstanceUrl = ref("")+const isConnecting = ref(false)+const connectionError = ref("")const isClearingCache = ref(false)-const showRemoveModal = ref(false)-const confirmedRemoveUrl = ref("")-const confirmedRemoveDisplayName = ref("")-const confirmRemove = (url: string, displayName: string) => {- confirmedRemoveUrl.value = url- confirmedRemoveDisplayName.value = displayName || getHostname(url)- showRemoveModal.value = true- emit("close-dropdown")-}+const instanceToRemove = ref<Instance | null>(null)-const state = useReadonlyStream(- instanceService.getStateStream(),- instanceService.getCurrentState().value-)+const connectionState = ref<ConnectionState>({ status: "idle" })+const recentInstancesList = ref<Instance[]>([])+const currentInstance = ref<Instance | null>(null)-const recentInstances = useReadonlyStream(- instanceService.getRecentInstancesStream(),- []-)+let connectionStateSubscription: Subscription | null = null+let recentInstancesSubscription: Subscription | null = null+let currentInstanceSubscription: Subscription | null = null-const currentInstance = computed<InstanceType | null>(() => {- return state.value.status === "connected" ? state.value.instance : null+const isInstanceSwitchingEnabled = computed(() => {+ return platform.instance?.instanceSwitchingEnabled ?? false})-const isConnecting = computed(() => state.value.status === "connecting")--const connectionError = computed(() => {- return state.value.status === "error" ? state.value.message : null+const connectedInstance = computed(() => {+ return isConnectedState(connectionState.value) ? currentInstance.value : null})-const isVendored = computed(() => {- return currentInstance.value?.type === platform.instance.instanceType+const recentInstances = computed(() => {+ return recentInstancesList.value.filter(+ (instance) => instance.serverUrl !== currentInstance.value?.serverUrl+ )})const isValidUrl = computed(() => {if (!newInstanceUrl.value) return false+ if (platform.instance?.normalizeUrl) {+ return platform.instance.normalizeUrl(newInstanceUrl.value) !== null+ }+try {- const normalizedUrl = newInstanceUrl.value.startsWith("http")+ const urlToTest = newInstanceUrl.value.startsWith("http")? newInstanceUrl.value- : `http://${newInstanceUrl.value}`- const url = new URL(normalizedUrl)- console.info("url", url)+ : `https://${newInstanceUrl.value}`+ new URL(urlToTest)return true} catch {return false@@ -323,77 +310,492 @@ const isValidUrl = computed(() => {})const isCurrentUrl = computed(() => {- if (!newInstanceUrl.value) return false- if (currentInstance.value?.type !== "server") return false+ if (!newInstanceUrl.value || !currentInstance.value) return false- try {- return instanceService.isCurrentlyConnectedTo(newInstanceUrl.value)- } catch {- return false- }+ const normalizedNew =+ platform.instance?.normalizeUrl?.(newInstanceUrl.value) ||+ newInstanceUrl.value+ const normalizedCurrent =+ platform.instance?.normalizeUrl?.(currentInstance.value.serverUrl) ||+ currentInstance.value.serverUrl++ return normalizedNew === normalizedCurrent})-const isConnectedTo = (url: string): boolean => {- return instanceService.isCurrentlyConnectedTo(url)+const isConnectedState = (+ state: ConnectionState+): state is Extract<ConnectionState, { status: "connected" }> => {+ return state.status === "connected"}-const getHostname = (url: string): string => {- try {- if (!url.startsWith("http")) {- return url.toUpperCase()- }- const hostname = new URL(url).hostname- return hostname.toUpperCase()- } catch {- return url.toUpperCase()+const isErrorState = (+ state: ConnectionState+): state is Extract<ConnectionState, { status: "error" }> => {+ return state.status === "error"+}++const openAddModal = () => {+ showAddModal.value = true+ emit("close-dropdown")+ // NOTE: Just for debugging+ // toast.info(t("instances.opening_add_modal") || "Opening add instance dialog")+}++const closeAddModal = () => {+ showAddModal.value = false+ newInstanceUrl.value = ""+ connectionError.value = ""+ // NOTE: Just for debugging+ // toast.info(t("instances.closed_add_modal") || "Add instance dialog closed")+}++const closeRemoveModal = () => {+ showRemoveModal.value = false+ instanceToRemove.value = null+ // NOTE: Just for debugging+ // toast.info(t("instances.cancelled_removal") || "Instance removal cancelled")+}++const validateConnectionSupport = (): boolean => {+ if (!platform.instance?.connectToInstance) {+ toast.error("Instance connection not supported")+ return false}+ return true}-const isOnPrem = (url: string): boolean => {+const executeBeforeConnectHook = async (+ serverUrl: string,+ instanceKind: InstanceKind,+ displayName?: string+): Promise<boolean> => {+ if (!platform.instance?.beforeConnect) return true+try {- const hostname = new URL(url.startsWith("http") ? url : `http://${url}`)- .hostname- return hostname !== "hoppscotch.com"- } catch {+ const result = await platform.instance.beforeConnect(+ serverUrl,+ instanceKind,+ displayName+ )++ if (!result) {+ toast.info(+ t("instances.connection_cancelled") ||+ "Connection cancelled by pre-connect validation"+ )+ }++ return result+ } catch (error) {+ const errorMessage =+ error instanceof Error ? error.message : "Pre-connect validation failed"+ toast.error(errorMessage)return false}}-const connectToVendored = async () => {- if (isVendored.value) return- await instanceService.connectToVendoredInstance()- if (showAddModal.value) showAddModal.value = false- emit("close-dropdown")+const executeAfterConnectHook = async (): Promise<void> => {+ if (platform.instance?.afterConnect && currentInstance.value) {+ try {+ await platform.instance.afterConnect(currentInstance.value)+ toast.success(+ t("instances.post_connect_completed") ||+ "Post-connection setup completed"+ )+ } catch (error) {+ const errorMessage =+ error instanceof Error ? error.message : "Post-connection setup failed"+ toast.info(errorMessage)+ }+ }}-const connectToServer = async (url: string) => {- await instanceService.connectToServerInstance(url)+const handleConnectionSuccess = async (message: string): Promise<void> => {+ toast.success(message || "Connected successfully")emit("close-dropdown")+ await executeAfterConnectHook()}-const removeInstance = async (url: string) => {- await instanceService.removeInstance(url)- showRemoveModal.value = false+const handleConnectionError = (message: string, serverUrl: string): void => {+ connectionError.value = message || "Connection failed"+ toast.error(message || "Connection failed")++ if (platform.instance?.onConnectionError) {+ platform.instance.onConnectionError(message, serverUrl)+ }+}++const performConnection = async (+ serverUrl: string,+ instanceKind: InstanceKind,+ displayName?: string+): Promise<void> => {+ if (!platform.instance?.connectToInstance) return++ toast.info(+ t("instances.connecting") || `Connecting to ${displayName || serverUrl}...`+ )++ const result = await platform.instance.connectToInstance(+ serverUrl,+ instanceKind,+ displayName+ )++ if (result.success) {+ await handleConnectionSuccess(result.message)+ } else {+ handleConnectionError(result.message, serverUrl)+ }+}++const handleConnectToInstance = async (+ serverUrl: string,+ instanceKind: InstanceKind = "on-prem",+ displayName?: string+) => {+ if (!validateConnectionSupport()) return++ isConnecting.value = true+ connectionError.value = ""++ try {+ const shouldConnect = await executeBeforeConnectHook(+ serverUrl,+ instanceKind,+ displayName+ )+ if (!shouldConnect) return++ await performConnection(serverUrl, instanceKind, displayName)+ } catch (error) {+ const errorMessage =+ error instanceof Error ? error.message : "Unknown error occurred"+ handleConnectionError(errorMessage, serverUrl)+ } finally {+ isConnecting.value = false+ }}const handleConnect = async () => {if (!newInstanceUrl.value || !isValidUrl.value || isCurrentUrl.value) return- const success = await instanceService.connectToServerInstance(+ const instanceKind: InstanceKind = "on-prem"++ await handleConnectToInstance(+ newInstanceUrl.value,+ instanceKind,newInstanceUrl.value)- if (success) {- newInstanceUrl.value = ""- showAddModal.value = false+ if (!connectionError.value) {+ closeAddModal()+ }+}++const confirmRemove = (instance: Instance) => {+ instanceToRemove.value = instance+ showRemoveModal.value = true+ toast.info(+ t("instances.confirm_removal") ||+ `Confirm removal of ${instance.displayName}`+ )+}++const validateRemovalSupport = (): boolean => {+ if (!platform.instance?.removeInstance) {+ toast.error("Instance removal not supported")+ return false+ }+ return true+}++const executeBeforeRemoveHook = async (+ instance: Instance+): Promise<boolean> => {+ if (!platform.instance?.beforeRemove) return true++ try {+ const result = await platform.instance.beforeRemove(instance)++ if (!result) {+ toast.info(+ t("instances.removal_cancelled") ||+ "Instance removal cancelled by pre-removal validation"+ )+ }++ return result+ } catch (error) {+ const errorMessage =+ error instanceof Error ? error.message : "Pre-removal validation failed"+ toast.error(errorMessage)+ return false+ }+}++const executeAfterRemoveHook = async (instance: Instance): Promise<void> => {+ if (platform.instance?.afterRemove) {+ try {+ await platform.instance.afterRemove(instance)+ toast.success(+ t("instances.post_remove_completed") || "Post-removal cleanup completed"+ )+ } catch (error) {+ const errorMessage =+ error instanceof Error ? error.message : "Post-removal cleanup failed"+ toast.info(errorMessage)+ }+ }+}++const handleRemovalSuccess = async (+ message: string,+ instance: Instance+): Promise<void> => {+ toast.success(message || "Instance removed successfully")+ await executeAfterRemoveHook(instance)+}++const handleRemovalError = (message: string, instance: Instance): void => {+ toast.error(message || "Failed to remove instance")++ if (platform.instance?.onRemoveError) {+ platform.instance.onRemoveError(message, instance)+ }+}++const performRemoval = async (instance: Instance): Promise<void> => {+ if (!platform.instance?.removeInstance) return++ toast.info(t("instances.removing") || `Removing ${instance.displayName}...`)++ const result = await platform.instance.removeInstance(instance)++ if (result.success) {+ await handleRemovalSuccess(result.message, instance)+ } else {+ handleRemovalError(result.message, instance)+ }+}++const handleRemoveInstance = async () => {+ if (!instanceToRemove.value || !validateRemovalSupport()) return++ const instance = instanceToRemove.value++ try {+ const shouldRemove = await executeBeforeRemoveHook(instance)+ if (!shouldRemove) {+ closeRemoveModal()+ return+ }++ await performRemoval(instance)+ } catch (error) {+ const errorMessage =+ error instanceof Error ? error.message : "Unknown error occurred"+ handleRemovalError(errorMessage, instance)+ } finally {+ closeRemoveModal()+ }+}++const validateCacheClearSupport = (): boolean => {+ if (!platform.instance?.clearCache) {+ toast.error("Cache clearing not supported")+ return false+ }+ return true+}++const performCacheClear = async (): Promise<void> => {+ if (!platform.instance?.clearCache) return++ toast.info(t("instances.clearing_cache") || "Clearing cache...")++ const result = await platform.instance.clearCache()++ if (result.success) {+ toast.success(result.message || "Cache cleared successfully")+ } else {+ toast.error(result.message || "Failed to clear cache")}}const handleClearCache = async () => {- if (isClearingCache.value) return+ if (!validateCacheClearSupport()) returnisClearingCache.value = true- await instanceService.clearCache()- isClearingCache.value = false++ try {+ await performCacheClear()+ } catch (error) {+ const errorMessage =+ error instanceof Error ? error.message : "Unknown error occurred"+ toast.error(errorMessage)+ } finally {+ isClearingCache.value = false+ }+}++const initializeSynchronousState = (): void => {+ if (!platform.instance) return++ if (platform.instance.getCurrentConnectionState) {+ connectionState.value = platform.instance.getCurrentConnectionState()+ }++ if (platform.instance.getRecentInstances) {+ recentInstancesList.value = platform.instance.getRecentInstances()+ }++ if (platform.instance.getCurrentInstance) {+ currentInstance.value = platform.instance.getCurrentInstance()+ }++ // NOTE: Just for debugging+ // toast.info(t("instances.initialized") || "Instance switcher initialized")+}++const handleConnectionStateChange = (state: ConnectionState): void => {+ const previousState = connectionState.value.status+ connectionState.value = state++ if (isErrorState(state)) {+ connectionError.value = state.message+ if (previousState !== "error") {+ toast.error(state.message || "Connection error occurred")+ }+ } else if (state.status === "connecting") {+ connectionError.value = ""+ isConnecting.value = true+ if (previousState !== "connecting") {+ toast.info(+ t("instances.connecting_state") || "Establishing connection..."+ )+ }+ } else if (state.status === "connected") {+ isConnecting.value = false+ if (previousState !== "connected") {+ toast.success(+ t("instances.connected_state") || "Successfully connected to instance"+ )+ }+ } else if (state.status === "idle") {+ isConnecting.value = false+ if (previousState === "connected") {+ toast.info(+ t("instances.disconnected_state") || "Disconnected from instance"+ )+ }+ }+}++const subscribeToConnectionState = (): void => {+ if (!platform.instance?.getConnectionStateStream) return++ connectionStateSubscription = platform.instance+ .getConnectionStateStream()+ .subscribe({+ next: handleConnectionStateChange,+ error: (error) => {+ console.error("Connection state stream error:", error)+ toast.error(+ t("instances.stream_error") || "Connection state monitoring failed"+ )+ connectionState.value = {+ status: "error",+ target: "stream",+ message: error.message,+ }+ },+ })+}++const subscribeToRecentInstances = (): void => {+ if (!platform.instance?.getRecentInstancesStream) return++ recentInstancesSubscription = platform.instance+ .getRecentInstancesStream()+ .subscribe({+ next: (instances) => {+ recentInstancesList.value = instances+ },+ error: (error) => {+ console.error("Recent instances stream error:", error)+ toast.error(+ t("instances.recent_instances_error") ||+ "Failed to load recent instances"+ )+ },+ })+}++const subscribeToCurrentInstance = (): void => {+ if (!platform.instance?.getCurrentInstanceStream) return++ currentInstanceSubscription = platform.instance+ .getCurrentInstanceStream()+ .subscribe({+ next: (instance) => {+ const previousInstance = currentInstance.value+ currentInstance.value = instance++ if (+ instance &&+ (!previousInstance ||+ previousInstance.serverUrl !== instance.serverUrl)+ ) {+ toast.success(+ t("instances.instance_changed") ||+ `Switched to ${instance.displayName}`+ )+ }+ },+ error: (error) => {+ console.error("Current instance stream error:", error)+ toast.error(+ t("instances.current_instance_error") ||+ "Failed to track current instance"+ )+ },+ })+}++const initializeStreams = () => {+ if (!platform.instance) {+ toast.info(+ t("instances.not_available") || "Instance switching is not available"+ )+ return+ }++ initializeSynchronousState()+ subscribeToConnectionState()+ subscribeToRecentInstances()+ subscribeToCurrentInstance()}++const cleanup = () => {+ connectionStateSubscription?.unsubscribe()+ recentInstancesSubscription?.unsubscribe()+ currentInstanceSubscription?.unsubscribe()++ toast.info(+ t("instances.cleanup_completed") || "Instance switcher cleanup completed"+ )+}++watch(newInstanceUrl, () => {+ connectionError.value = ""+})++onMounted(() => {+ initializeStreams()+})++onUnmounted(() => {+ cleanup()+})</script>diff --git a/packages/hoppscotch-common/src/kernel/store.ts b/packages/hoppscotch-common/src/kernel/store.tsindex 25971db2e..4c709543d 100644--- a/packages/hoppscotch-common/src/kernel/store.ts+++ b/packages/hoppscotch-common/src/kernel/store.ts@@ -6,9 +6,41 @@ import type {} from "@hoppscotch/kernel"import * as E from "fp-ts/Either"import { getModule } from "."+import { invoke } from "@tauri-apps/api/core"+import { join } from "@tauri-apps/api/path"const STORE_PATH = `${window.location.host}.hoppscotch.store`+export const getConfigDir = async (): Promise<string> => {+ return await invoke<string>("get_config_dir")+}++export const getBackupDir = async (): Promise<string> => {+ return await invoke<string>("get_backup_dir")+}++export const getLatestDir = async (): Promise<string> => {+ return await invoke<string>("get_latest_dir")+}++export const getStoreDir = async (): Promise<string> => {+ return await invoke<string>("get_store_dir")+}++export const getInstanceDir = async (): Promise<string> => {+ return await invoke<string>("get_instance_dir")+}++const getStorePath = async (): Promise<string> => {+ try {+ const storeDir = await getStoreDir()+ return join(storeDir, STORE_PATH)+ } catch (error) {+ console.error("Failed to get store directory:", error)+ return "hoppscotch-unified.store"+ }+}+export const Store = (() => {const module = () => getModule("store")@@ -16,7 +48,8 @@ export const Store = (() => {capabilities: () => module().capabilities,init: async () => {- return module().init(STORE_PATH)+ const storePath = await getStorePath()+ return module().init(storePath)},set: async (@@ -25,49 +58,57 @@ export const Store = (() => {value: unknown,options?: StorageOptions): Promise<E.Either<StoreError, void>> => {- return module().set(STORE_PATH, namespace, key, value, options)+ const storePath = await getStorePath()+ return module().set(storePath, namespace, key, value, options)},get: async <T>(namespace: string,key: string): Promise<E.Either<StoreError, T | undefined>> => {- return module().get<T>(STORE_PATH, namespace, key)+ const storePath = await getStorePath()+ return module().get<T>(storePath, namespace, key)},remove: async (namespace: string,key: string): Promise<E.Either<StoreError, boolean>> => {- return module().remove(STORE_PATH, namespace, key)+ const storePath = await getStorePath()+ return module().remove(storePath, namespace, key)},clear: async (namespace?: string): Promise<E.Either<StoreError, void>> => {- return module().clear(STORE_PATH, namespace)+ const storePath = await getStorePath()+ return module().clear(storePath, namespace)},has: async (namespace: string,key: string): Promise<E.Either<StoreError, boolean>> => {- return module().has(STORE_PATH, namespace, key)+ const storePath = await getStorePath()+ return module().has(storePath, namespace, key)},listNamespaces: async (): Promise<E.Either<StoreError, string[]>> => {- return module().listNamespaces(STORE_PATH)+ const storePath = await getStorePath()+ return module().listNamespaces(storePath)},listKeys: async (namespace: string): Promise<E.Either<StoreError, string[]>> => {- return module().listKeys(STORE_PATH, namespace)+ const storePath = await getStorePath()+ return module().listKeys(storePath, namespace)},watch: async (namespace: string,key: string): Promise<StoreEventEmitter<StoreEvents>> => {- return module().watch(STORE_PATH, namespace, key)+ const storePath = await getStorePath()+ return module().watch(storePath, namespace, key)},} as const})()diff --git a/packages/hoppscotch-common/src/platform/index.ts b/packages/hoppscotch-common/src/platform/index.tsindex cec460c44..bd721c906 100644--- a/packages/hoppscotch-common/src/platform/index.ts+++ b/packages/hoppscotch-common/src/platform/index.ts@@ -42,6 +42,7 @@ export type PlatformDef = {// NOTE: To be deprecated// interceptors: InterceptorsPlatformDefkernelInterceptors: KernelInterceptorsPlatformDef+ instance?: InstancePlatformDefadditionalInspectors?: InspectorsPlatformDefspotlight?: SpotlightPlatformDefplatformFeatureFlags: {diff --git a/packages/hoppscotch-common/src/platform/instance.ts b/packages/hoppscotch-common/src/platform/instance.tsindex 98e8fbbec..f5cfc7637 100644--- a/packages/hoppscotch-common/src/platform/instance.ts+++ b/packages/hoppscotch-common/src/platform/instance.ts@@ -1,10 +1,222 @@+import { Observable } from "rxjs"+import { Component } from "vue"++import { type LoadOptions } from "@hoppscotch/plugin-appload"++export type InstanceKind = "on-prem" | "cloud" | "cloud-org" | "vendored"++export type Instance = {+ kind: InstanceKind+ serverUrl: string+ displayName: string+ version: string+ lastUsed: string+ bundleName?: string+}++export const VENDORED_INSTANCE_CONFIG: Instance = {+ kind: "vendored" as const,+ serverUrl: "app://hoppscotch",+ displayName: "Hoppscotch Desktop",+ version: "25.9.0",+ lastUsed: new Date().toISOString(),+ bundleName: "Hoppscotch",+}++export type ConnectionState =+ | { status: "idle" }+ | { status: "connecting"; target: string }+ | { status: "connected"; instance: Instance }+ | { status: "error"; target: string; message: string }++export type OperationResult = {+ success: boolean+ message: string+ data?: any+}+export type InstancePlatformDef = {- instanceType: "vendored"- displayConfig: {- displayName: string- description: string- version: string- connectingMessage: string- connectedMessage: string+ /**+ * Whether instance switching is enabled for this platform+ */+ instanceSwitchingEnabled: boolean++ /**+ * Custom instance switcher component to replace the default UI+ */+ customInstanceSwitcherComponent?: Component++ /**+ * Returns an observable stream of the current connection state+ */+ getConnectionStateStream?: () => Observable<ConnectionState>++ /**+ * Returns an observable stream of recent instances+ */+ getRecentInstancesStream?: () => Observable<Instance[]>++ /**+ * Returns an observable stream of the current active instance+ */+ getCurrentInstanceStream?: () => Observable<Instance | null>++ /**+ * Gets the current connection state synchronously+ */+ getCurrentConnectionState?: () => ConnectionState++ /**+ * Gets the list of recent instances synchronously+ */+ getRecentInstances?: () => Instance[]++ /**+ * Gets the current active instance synchronously+ */+ getCurrentInstance?: () => Instance | null++ /**+ * Connects to an instance with the given options+ */+ connectToInstance?: (+ serverUrl: string,+ instanceKind: InstanceKind,+ displayName?: string,+ options?: Partial<LoadOptions>+ ) => Promise<OperationResult>++ /**+ * Downloads an instance bundle without connecting+ */+ downloadInstance?: (+ serverUrl: string,+ instanceKind: InstanceKind,+ displayName?: string+ ) => Promise<OperationResult>++ /**+ * Loads a previously downloaded instance+ */+ loadInstance?: (+ instance: Instance,+ options?: Partial<LoadOptions>+ ) => Promise<OperationResult>++ /**+ * Removes an instance and its associated data+ */+ removeInstance?: (instance: Instance) => Promise<OperationResult>++ /**+ * Disconnects from the current instance+ */+ disconnect?: () => Promise<OperationResult>++ /**+ * Clears all cached instances and data+ */+ clearCache?: () => Promise<OperationResult>++ /**+ * Validates and normalizes a server URL+ */+ normalizeUrl?: (url: string) => string | null++ /**+ * Hook called before connecting to an instance+ * Return false to prevent the connection+ */+ beforeConnect?: (+ serverUrl: string,+ instanceKind: InstanceKind,+ displayName?: string+ ) => Promise<boolean>++ /**+ * Hook called after successful connection+ */+ afterConnect?: (instance: Instance) => Promise<void>++ /**+ * Hook called before disconnecting from an instance+ * Return false to prevent the disconnection+ */+ beforeDisconnect?: (instance: Instance) => Promise<boolean>++ /**+ * Hook called after successful disconnection+ */+ afterDisconnect?: () => Promise<void>++ /**+ * Hook called before removing an instance+ * Return false to prevent the removal+ */+ beforeRemove?: (instance: Instance) => Promise<boolean>++ /**+ * Hook called after successful instance removal+ */+ afterRemove?: (instance: Instance) => Promise<void>++ /**+ * Custom error handling for connection failures+ */+ onConnectionError?: (error: string, target: string) => void++ /**+ * Custom error handling for download failures+ */+ onDownloadError?: (error: string, serverUrl: string) => void++ /**+ * Custom error handling for load failures+ */+ onLoadError?: (error: string, instance: Instance) => void++ /**+ * Custom error handling for removal failures+ */+ onRemoveError?: (error: string, instance: Instance) => void++ /**+ * Validates if a server URL is reachable and compatible+ */+ validateServerUrl?: (url: string) => Promise<{+ valid: boolean+ version?: string+ instanceKind?: InstanceKind+ error?: string+ }>++ /**+ * Configuration options for instance management+ */+ config?: {+ /**+ * Maximum number of recent instances to keep+ */+ maxRecentInstances?: number++ /**+ * Default window options for loaded instances+ */+ defaultWindowOptions?: LoadOptions["window"]++ /**+ * Whether to automatically reconnect to the last instance on startup+ */+ autoReconnect?: boolean++ /**+ * Timeout for connection attempts in milliseconds+ */+ connectionTimeout?: number++ /**+ * Whether to show confirmation dialogs for destructive operations+ */+ confirmDestructiveOperations?: boolean}}diff --git a/packages/hoppscotch-common/src/services/instance-switcher.service.ts b/packages/hoppscotch-common/src/services/instance-switcher.service.tsdeleted file mode 100644index 3bab0e5f1..000000000--- a/packages/hoppscotch-common/src/services/instance-switcher.service.ts+++ /dev/null@@ -1,508 +0,0 @@-import { Service } from "dioc"-import { BehaviorSubject, Observable } from "rxjs"-import { computed } from "vue"-import { LazyStore } from "@tauri-apps/plugin-store"-import {- getCurrentWebviewWindow,- getAllWebviewWindows,-} from "@tauri-apps/api/webviewWindow"-import {- download,- load,- clear,- remove,- close,-} from "@hoppscotch/plugin-appload"-import { useToast } from "~/composables/toast"-import { platform } from "~/platform"--const STORE_PATH = "hopp.store.json"-const MAX_RECENT_INSTANCES = 10--type ServerInstance = {- type: "server"- serverUrl: string- displayName: string- version: string- lastUsed: string- bundleName?: string-}--type VendoredInstance = {- type: "vendored"- displayName: string- version: string-}--export type InstanceType = ServerInstance | VendoredInstance--export type ConnectionState =- | { status: "idle" }- | { status: "connecting"; target: string }- | { status: "connected"; instance: InstanceType }- | { status: "error"; target: string; message: string }--export class InstanceSwitcherService extends Service<ConnectionState> {- public static readonly ID = "INSTANCE_SWITCHER_SERVICE"-- private state$ = new BehaviorSubject<ConnectionState>({ status: "idle" })- private recentInstances$ = new BehaviorSubject<ServerInstance[]>([])- private store!: LazyStore- private toast = useToast()-- public getVendoredInstance(): VendoredInstance {- const { instanceType, displayConfig } = platform.instance- const { displayName, version } = displayConfig-- return {- type: instanceType,- displayName,- version,- }- }-- override async onServiceInit(): Promise<void> {- this.store = new LazyStore(STORE_PATH)- await this.store.init()- await this.loadRecentInstances()-- if (this.inVendoredEnvironment()) {- this.state$.next({- status: "connected",- instance: this.getVendoredInstance(),- })- this.emit(this.state$.value)- } else {- await this.loadSavedState()- }- }-- private inVendoredEnvironment(): boolean {- try {- return (- window.location.hostname === "hoppscotch" &&- window.location.protocol === "app:"- )- } catch {- return false- }- }-- public getStateStream(): Observable<ConnectionState> {- return this.state$- }-- public getRecentInstancesStream(): Observable<ServerInstance[]> {- return this.recentInstances$- }-- public getCurrentState() {- return computed(() => this.state$.value)- }-- public getCurrentInstance() {- return computed(() => {- const state = this.state$.value- return state.status === "connected" ? state.instance : null- })- }-- public getRecentInstances() {- return computed(() => this.recentInstances$.value)- }-- public isConnecting() {- return computed(() => this.state$.value.status === "connecting")- }-- public getConnectionError() {- return computed(() => {- const state = this.state$.value- return state.status === "error" ? state.message : null- })- }-- public async connectToVendoredInstance(): Promise<boolean> {- if (this.isCurrentlyVendored()) {- return true- }-- this.state$.next({- status: "connecting",- target: this.getVendoredInstance().displayName,- })- this.emit(this.state$.value)-- try {- this.state$.next({- status: "connected",- instance: this.getVendoredInstance(),- })- this.emit(this.state$.value)-- await this.saveCurrentState()-- this.toast.success(- platform.instance.displayConfig.connectingMessage.replace(- "{instanceName}",- this.getVendoredInstance().displayName- )- )-- const loadResponse = await load({- bundleName: "Hoppscotch",- window: { title: "Hoppscotch" },- })-- if (!loadResponse.success) {- throw new Error(- `Failed to load ${this.getVendoredInstance().type} bundle`- )- }-- this.toast.success(- platform.instance.displayConfig.connectedMessage.replace(- "{instanceName}",- this.getVendoredInstance().displayName- )- )-- // Close current window AFTER successful load- // NOTE: No need to await it.- this.closeCurrentWindow()-- return true- } catch (error) {- const errorMessage =- error instanceof Error ? error.message : String(error)- this.state$.next({- status: "error",- target: this.getVendoredInstance().displayName,- message: errorMessage,- })- this.emit(this.state$.value)-- this.toast.error(`Failed to connect: ${errorMessage}`)- return false- }- }-- public async connectToServerInstance(serverUrl: string): Promise<boolean> {- if (this.isCurrentlyConnectedTo(serverUrl)) {- const currentState = this.state$.value- if (- currentState.status === "connected" &&- currentState.instance.type === "server"- ) {- const updatedInstance: ServerInstance = {- ...currentState.instance,- lastUsed: new Date().toISOString(),- }-- await this.updateRecentInstance(updatedInstance)- }- return true- }-- const normalizedUrl = this.normalizeUrl(serverUrl)- const displayName = this.getDisplayNameFromUrl(normalizedUrl)-- this.state$.next({- status: "connecting",- target: displayName,- })- this.emit(this.state$.value)-- try {- const downloadResponse = await download({ serverUrl: normalizedUrl })- if (!downloadResponse.success) {- throw new Error("Failed to download bundle")- }-- const instance: ServerInstance = {- type: "server",- serverUrl: normalizedUrl,- displayName,- version: downloadResponse.version,- lastUsed: new Date().toISOString(),- bundleName: downloadResponse.bundleName,- }-- await this.updateRecentInstance(instance)-- this.state$.next({- status: "connected",- instance,- })- this.emit(this.state$.value)-- await this.saveCurrentState()-- this.toast.success(`Connecting to ${displayName}`)-- const loadResponse = await load({- bundleName: downloadResponse.bundleName,- window: { title: "Hoppscotch" },- })-- if (!loadResponse.success) {- throw new Error("Failed to load bundle")- }-- // Close current window AFTER successful load- // NOTE: No need to await it.- this.closeCurrentWindow()-- this.toast.success(`Connected to ${displayName}`)- return true- } catch (error) {- const errorMessage =- error instanceof Error ? error.message : String(error)- this.state$.next({- status: "error",- target: displayName,- message: errorMessage,- })- this.emit(this.state$.value)-- this.toast.error(`Connection failed: ${errorMessage}`)- return false- }- }-- /**- * Closes the current window using Tauri's window management- */- private async closeCurrentWindow(): Promise<void> {- try {- const currentWindow = getCurrentWebviewWindow()- const currentLabel = currentWindow.label-- // Don't close if we're the main window or if there are no other windows- if (currentLabel === "main") {- const allWindows = await getAllWebviewWindows()- if (allWindows.length <= 1) {- // Don't close the last window- return- }- }-- const closeResponse = await close({ windowLabel: currentLabel })- if (!closeResponse.success) {- console.warn(`Failed to close window ${currentLabel}`)- }- } catch (error) {- console.warn("Failed to close current window:", error)- // Don't throw - window closing shouldn't block the operation- }- }-- public async removeInstance(serverUrl: string): Promise<boolean> {- try {- const normalizedUrl = this.normalizeUrl(serverUrl)-- const instanceToRemove = this.recentInstances$.value.find(- (instance) => instance.serverUrl === normalizedUrl- )-- if (!instanceToRemove) {- return false- }-- if (instanceToRemove.bundleName) {- try {- await remove({- bundleName: instanceToRemove.bundleName,- serverUrl: normalizedUrl,- })- } catch (error) {- console.error("Failed to remove bundle from storage:", error)- // Continue with instance removal even if bundle removal fails- }- }-- const instances = this.recentInstances$.value.filter(- (instance) => instance.serverUrl !== normalizedUrl- )-- this.recentInstances$.next(instances)- await this.saveRecentInstances()-- const displayName = this.getDisplayNameFromUrl(serverUrl)- this.toast.success(`Removed ${displayName}`)-- // If we're currently connected to this instance, close the window and go to idle state- if (this.isCurrentlyConnectedTo(serverUrl)) {- await this.closeCurrentWindow()- this.state$.next({ status: "idle" })- this.emit(this.state$.value)- await this.saveCurrentState()- }-- return true- } catch (error) {- this.toast.error("Failed to remove instance")- return false- }- }-- public async clearCache(): Promise<boolean> {- try {- await this.closeCurrentWindow()- await clear()- this.toast.success("Cache cleared successfully")- return true- } catch (error) {- this.toast.error("Failed to clear cache")- return false- }- }-- public getCurrentInstanceDisplayName(): string {- const state = this.state$.value- if (state.status !== "connected") {- return "Hoppscotch"- }- return state.instance.displayName- }-- public getDisplayNameFromUrl(url: string): string {- try {- const urlObj = new URL(url)- // We don't want entire hostname, only the specific org- const hostnameParts = urlObj.hostname.split(".")- const mainDomain = hostnameParts.slice(-2).join(".")-- if (mainDomain === "hoppscotch") {- return "Hoppscotch"- }-- return mainDomain || urlObj.hostname.replace(/^www\./, "")- } catch {- return url- }- }-- public isCurrentlyVendored(): boolean {- const state = this.state$.value- return (- state.status === "connected" &&- state.instance.type === this.getVendoredInstance().type- )- }-- public isCurrentlyConnectedTo(serverUrl: string): boolean {- const state = this.state$.value- if (state.status !== "connected") return false-- const instance = state.instance- if (instance.type !== "server") return false-- return instance.serverUrl === this.normalizeUrl(serverUrl)- }-- public normalizeUrl(url: string): string {- try {- const withProtocol = url.startsWith("http") ? url : `http://${url}`- const urlObj = new URL(withProtocol)-- const pathSegments = urlObj.pathname.split("/").filter(Boolean)-- if (!pathSegments.includes("desktop-app-server")) {- // We try `desktop-app-server` subpath first- const withSubpath = new URL(withProtocol)- withSubpath.pathname = `/desktop-app-server${urlObj.pathname}`-- // If it fails, fall back to the original URL with default port- try {- return withSubpath.toString().replace(/\/$/, "")- } catch {- if (!urlObj.port) {- urlObj.port = "3200"- }- return urlObj.toString().replace(/\/$/, "")- }- }-- return urlObj.toString().replace(/\/$/, "")- } catch (error) {- return url- }- }-- private async loadSavedState(): Promise<void> {- try {- const savedState =- await this.store.get<ConnectionState>("connectionState")-- if (savedState && savedState.status === "connected") {- if (savedState.instance.type === "server") {- this.state$.next(savedState)- this.emit(this.state$.value)- }- }- } catch (error) {- console.error("Failed to load saved state:", error)- this.state$.next({ status: "idle" })- }- }-- private async saveCurrentState(): Promise<void> {- try {- await this.store.set("connectionState", this.state$.value)- await this.store.save()- } catch (error) {- console.error("Failed to save current state:", error)- }- }-- private async loadRecentInstances(): Promise<void> {- try {- const instances =- (await this.store.get<ServerInstance[]>("recentInstances")) || []-- const sortedInstances = instances.sort(- (a, b) =>- new Date(b.lastUsed).getTime() - new Date(a.lastUsed).getTime()- )-- this.recentInstances$.next(sortedInstances)- } catch (error) {- console.error("Failed to load recent instances:", error)- this.recentInstances$.next([])- }- }-- private async saveRecentInstances(): Promise<void> {- try {- await this.store.set("recentInstances", this.recentInstances$.value)- await this.store.save()- } catch (error) {- console.error("Failed to save recent instances:", error)- }- }-- private async updateRecentInstance(instance: ServerInstance): Promise<void> {- try {- const currentInstances = [...this.recentInstances$.value]- const instances = currentInstances.filter(- (item) => item.serverUrl !== instance.serverUrl- )-- instances.unshift(instance)-- if (instances.length > MAX_RECENT_INSTANCES) {- instances.length = MAX_RECENT_INSTANCES- }-- this.recentInstances$.next(instances)- await this.saveRecentInstances()-- console.log(- `Updated recent instances. Current count: ${instances.length}`- )- } catch (error) {- console.error("Failed to update recent instance:", error)- }- }-}diff --git a/packages/hoppscotch-desktop/.gitignore b/packages/hoppscotch-desktop/.gitignoreindex e9280c27b..99a74d3f5 100644--- a/packages/hoppscotch-desktop/.gitignore+++ b/packages/hoppscotch-desktop/.gitignore@@ -15,6 +15,10 @@ dist-ssrbundle.zipmanifest.json+src-tauri/hopp_bundle.zip+src-tauri/hopp_manifest.json+src-tauri/hoppscotch-desktop-data+# Editor directories and files.vscode/*!.vscode/extensions.jsondiff --git a/packages/hoppscotch-desktop/plugin-workspace/tauri-plugin-appload/dist-js/index.js b/packages/hoppscotch-desktop/plugin-workspace/tauri-plugin-appload/dist-js/index.jsindex 5dbd5b7e6..23af762d8 100644--- a/packages/hoppscotch-desktop/plugin-workspace/tauri-plugin-appload/dist-js/index.js+++ b/packages/hoppscotch-desktop/plugin-workspace/tauri-plugin-appload/dist-js/index.js@@ -1,19 +1,22 @@-import { invoke } from '@tauri-apps/api/core';+import { invoke } from "@tauri-apps/api/core"async function download(options) {- return await invoke('plugin:appload|download', { options });+ return await invoke("plugin:appload|download", { options })}async function load(options) {- return await invoke('plugin:appload|load', { options });+ return await invoke("plugin:appload|load", { options })+}+async function close(options) {+ return await invoke("plugin:appload|close", { options })}async function close(options) {return await invoke('plugin:appload|close', { options });}async function remove(options) {- return await invoke('plugin:appload|remove', { options });+ return await invoke("plugin:appload|remove", { options })}async function clear() {- return await invoke('plugin:appload|clear');+ return await invoke("plugin:appload|clear")}export { clear, close, download, load, remove };diff --git a/packages/hoppscotch-desktop/plugin-workspace/tauri-plugin-appload/examples/tauri-app/src/main.js b/packages/hoppscotch-desktop/plugin-workspace/tauri-plugin-appload/examples/tauri-app/src/main.jsindex 6b4e1a969..c231d61a7 100644--- a/packages/hoppscotch-desktop/plugin-workspace/tauri-plugin-appload/examples/tauri-app/src/main.js+++ b/packages/hoppscotch-desktop/plugin-workspace/tauri-plugin-appload/examples/tauri-app/src/main.js@@ -1,8 +1,8 @@-import "./style.css";-import App from "./App.svelte";+import "./style.css"+import App from "./App.svelte"const app = new App({target: document.getElementById("app"),-});+})-export default app;+export default appdiff --git a/packages/hoppscotch-desktop/plugin-workspace/tauri-plugin-appload/examples/tauri-app/vite.config.js b/packages/hoppscotch-desktop/plugin-workspace/tauri-plugin-appload/examples/tauri-app/vite.config.jsindex 3b85afb95..789beb47b 100644--- a/packages/hoppscotch-desktop/plugin-workspace/tauri-plugin-appload/examples/tauri-app/vite.config.js+++ b/packages/hoppscotch-desktop/plugin-workspace/tauri-plugin-appload/examples/tauri-app/vite.config.js@@ -1,7 +1,7 @@-import { defineConfig } from "vite";-import { svelte } from "@sveltejs/vite-plugin-svelte";+import { defineConfig } from "vite"+import { svelte } from "@sveltejs/vite-plugin-svelte"-const host = process.env.TAURI_DEV_HOST;+const host = process.env.TAURI_DEV_HOST// https://vitejs.dev/config/export default defineConfig({@@ -15,10 +15,12 @@ export default defineConfig({host: host || false,port: 1420,strictPort: true,- hmr: host ? {- protocol: 'ws',- host,- port: 1421- } : undefined,+ hmr: host+ ? {+ protocol: "ws",+ host,+ port: 1421,+ }+ : undefined,},})diff --git a/packages/hoppscotch-desktop/plugin-workspace/tauri-plugin-appload/guest-js/index.ts b/packages/hoppscotch-desktop/plugin-workspace/tauri-plugin-appload/guest-js/index.tsindex 58cb0772c..24970cb1e 100644--- a/packages/hoppscotch-desktop/plugin-workspace/tauri-plugin-appload/guest-js/index.ts+++ b/packages/hoppscotch-desktop/plugin-workspace/tauri-plugin-appload/guest-js/index.ts@@ -1,4 +1,4 @@-import { invoke } from '@tauri-apps/api/core'+import { invoke } from "@tauri-apps/api/core"export interface DownloadOptions {serverUrl: string@@ -47,22 +47,24 @@ export interface RemoveResponse {bundleName: string}-export async function download(options: DownloadOptions): Promise<DownloadResponse> {- return await invoke<DownloadResponse>('plugin:appload|download', { options })+export async function download(+ options: DownloadOptions+): Promise<DownloadResponse> {+ return await invoke<DownloadResponse>("plugin:appload|download", { options })}export async function load(options: LoadOptions): Promise<LoadResponse> {- return await invoke<LoadResponse>('plugin:appload|load', { options })+ return await invoke<LoadResponse>("plugin:appload|load", { options })}export async function close(options: CloseOptions): Promise<CloseResponse> {- return await invoke<CloseResponse>('plugin:appload|close', { options })+ return await invoke<CloseResponse>("plugin:appload|close", { options })}export async function remove(options: RemoveOptions): Promise<RemoveResponse> {- return await invoke<RemoveResponse>('plugin:appload|remove', { options })+ return await invoke<RemoveResponse>("plugin:appload|remove", { options })}export async function clear(): Promise<void> {- return await invoke('plugin:appload|clear')+ return await invoke("plugin:appload|clear")}diff --git a/packages/hoppscotch-desktop/plugin-workspace/tauri-plugin-appload/permissions/schemas/schema.json b/packages/hoppscotch-desktop/plugin-workspace/tauri-plugin-appload/permissions/schemas/schema.jsonindex 4381a8e4a..5d314db0b 100644--- a/packages/hoppscotch-desktop/plugin-workspace/tauri-plugin-appload/permissions/schemas/schema.json+++ b/packages/hoppscotch-desktop/plugin-workspace/tauri-plugin-appload/permissions/schemas/schema.json@@ -318,6 +318,16 @@"const": "deny-close","markdownDescription": "Denies the close command without any pre-configured scope."},+ {+ "description": "Enables the close command without any pre-configured scope.",+ "type": "string",+ "const": "allow-close"+ },+ {+ "description": "Denies the close command without any pre-configured scope.",+ "type": "string",+ "const": "deny-close"+ },{"description": "Enables the download command without any pre-configured scope.","type": "string",diff --git a/packages/hoppscotch-desktop/plugin-workspace/tauri-plugin-appload/rollup.config.js b/packages/hoppscotch-desktop/plugin-workspace/tauri-plugin-appload/rollup.config.jsindex d83436352..1574aab7b 100644--- a/packages/hoppscotch-desktop/plugin-workspace/tauri-plugin-appload/rollup.config.js+++ b/packages/hoppscotch-desktop/plugin-workspace/tauri-plugin-appload/rollup.config.js@@ -1,31 +1,31 @@-import { readFileSync } from 'fs'-import { join } from 'path'-import { cwd } from 'process'-import typescript from '@rollup/plugin-typescript'+import { readFileSync } from "fs"+import { join } from "path"+import { cwd } from "process"+import typescript from "@rollup/plugin-typescript"-const pkg = JSON.parse(readFileSync(join(cwd(), 'package.json'), 'utf8'))+const pkg = JSON.parse(readFileSync(join(cwd(), "package.json"), "utf8"))export default {- input: 'guest-js/index.ts',+ input: "guest-js/index.ts",output: [{file: pkg.exports.import,- format: 'esm'+ format: "esm",},{file: pkg.exports.require,- format: 'cjs'- }+ format: "cjs",+ },],plugins: [typescript({declaration: true,- declarationDir: `./${pkg.exports.import.split('/')[0]}`- })+ declarationDir: `./${pkg.exports.import.split("/")[0]}`,+ }),],external: [/^@tauri-apps\/api/,...Object.keys(pkg.dependencies || {}),- ...Object.keys(pkg.peerDependencies || {})- ]+ ...Object.keys(pkg.peerDependencies || {}),+ ],}diff --git a/packages/hoppscotch-desktop/plugin-workspace/tauri-plugin-appload/src/kernel.js b/packages/hoppscotch-desktop/plugin-workspace/tauri-plugin-appload/src/kernel.jsindex 69660057f..76f915fdd 100644--- a/packages/hoppscotch-desktop/plugin-workspace/tauri-plugin-appload/src/kernel.js+++ b/packages/hoppscotch-desktop/plugin-workspace/tauri-plugin-appload/src/kernel.js@@ -1,4 +1,4 @@-(() => {- console.log('Setting desktop kernel mode');- window.__KERNEL_MODE__ = 'desktop';-})();+;(() => {+ console.log("Setting desktop kernel mode")+ window.__KERNEL_MODE__ = "desktop"+})()diff --git a/packages/hoppscotch-desktop/plugin-workspace/tauri-plugin-relay/dist-js/index.js b/packages/hoppscotch-desktop/plugin-workspace/tauri-plugin-relay/dist-js/index.jsindex c5f0a1abb..362449601 100644--- a/packages/hoppscotch-desktop/plugin-workspace/tauri-plugin-relay/dist-js/index.js+++ b/packages/hoppscotch-desktop/plugin-workspace/tauri-plugin-relay/dist-js/index.js@@ -1,24 +1,24 @@-import { invoke } from '@tauri-apps/api/core';+import { invoke } from "@tauri-apps/api/core"-var MediaType;-(function (MediaType) {- MediaType["TEXT_PLAIN"] = "text/plain";- MediaType["TEXT_HTML"] = "text/html";- MediaType["TEXT_CSS"] = "text/css";- MediaType["TEXT_CSV"] = "text/csv";- MediaType["APPLICATION_JSON"] = "application/json";- MediaType["APPLICATION_LD_JSON"] = "application/ld+json";- MediaType["APPLICATION_XML"] = "application/xml";- MediaType["TEXT_XML"] = "text/xml";- MediaType["APPLICATION_FORM"] = "application/x-www-form-urlencoded";- MediaType["APPLICATION_OCTET"] = "application/octet-stream";- MediaType["MULTIPART_FORM"] = "multipart/form-data";-})(MediaType || (MediaType = {}));+let MediaType+;(function (MediaType) {+ MediaType["TEXT_PLAIN"] = "text/plain"+ MediaType["TEXT_HTML"] = "text/html"+ MediaType["TEXT_CSS"] = "text/css"+ MediaType["TEXT_CSV"] = "text/csv"+ MediaType["APPLICATION_JSON"] = "application/json"+ MediaType["APPLICATION_LD_JSON"] = "application/ld+json"+ MediaType["APPLICATION_XML"] = "application/xml"+ MediaType["TEXT_XML"] = "text/xml"+ MediaType["APPLICATION_FORM"] = "application/x-www-form-urlencoded"+ MediaType["APPLICATION_OCTET"] = "application/octet-stream"+ MediaType["MULTIPART_FORM"] = "multipart/form-data"+})(MediaType || (MediaType = {}))async function execute(request) {- return await invoke('plugin:relay|execute', { request });+ return await invoke("plugin:relay|execute", { request })}async function cancel(requestId) {- return await invoke('plugin:relay|cancel', { requestId });+ return await invoke("plugin:relay|cancel", { requestId })}-export { MediaType, cancel, execute };+export { MediaType, cancel, execute }diff --git a/packages/hoppscotch-desktop/plugin-workspace/tauri-plugin-relay/guest-js/index.ts b/packages/hoppscotch-desktop/plugin-workspace/tauri-plugin-relay/guest-js/index.tsindex 1a7500ffb..f1f287a1a 100644--- a/packages/hoppscotch-desktop/plugin-workspace/tauri-plugin-relay/guest-js/index.ts+++ b/packages/hoppscotch-desktop/plugin-workspace/tauri-plugin-relay/guest-js/index.ts@@ -1,191 +1,220 @@-import { invoke } from '@tauri-apps/api/core'+import { invoke } from "@tauri-apps/api/core"export type Method =- | "GET" // Retrieve resource- | "POST" // Create resource- | "PUT" // Replace resource- | "DELETE" // Remove resource- | "PATCH" // Modify resource- | "HEAD" // GET without body+ | "GET" // Retrieve resource+ | "POST" // Create resource+ | "PUT" // Replace resource+ | "DELETE" // Remove resource+ | "PATCH" // Modify resource+ | "HEAD" // GET without body| "OPTIONS" // Get allowed methods| "CONNECT" // Create tunnel- | "TRACE" // Loop-back test+ | "TRACE" // Loop-back testexport type Version = "HTTP/1.0" | "HTTP/1.1" | "HTTP/2.0" | "HTTP/3.0"export type StatusCode =- | 100 // Continue- | 101 // Switching Protocols- | 102 // Processing- | 103 // Early Hints- | 200 // OK- | 201 // Created- | 202 // Accepted- | 203 // Non-Authoritative Info- | 204 // No Content- | 205 // Reset Content- | 206 // Partial Content- | 207 // Multi-Status- | 208 // Already Reported- | 226 // IM Used- | 300 // Multiple Choices- | 301 // Moved Permanently- | 302 // Found- | 303 // See Other- | 304 // Not Modified- | 305 // Use Proxy- | 306 // Switch Proxy- | 307 // Temporary Redirect- | 308 // Permanent Redirect- | 400 // Bad Request- | 401 // Unauthorized- | 402 // Payment Required- | 403 // Forbidden- | 404 // Not Found- | 405 // Method Not Allowed- | 406 // Not Acceptable- | 407 // Proxy Auth Required- | 408 // Request Timeout- | 409 // Conflict- | 410 // Gone- | 411 // Length Required- | 412 // Precondition Failed- | 413 // Payload Too Large- | 414 // URI Too Long- | 415 // Unsupported Media- | 416 // Range Not Satisfiable- | 417 // Expectation Failed- | 418 // I'm a teapot- | 421 // Misdirected Request- | 422 // Unprocessable Entity- | 423 // Locked- | 424 // Failed Dependency- | 425 // Too Early- | 426 // Upgrade Required- | 428 // Precondition Required- | 429 // Too Many Requests- | 431 // Headers Too Large- | 451 // Unavailable Legal- | 500 // Server Error- | 501 // Not Implemented- | 502 // Bad Gateway- | 503 // Service Unavailable- | 504 // Gateway Timeout- | 505 // HTTP Ver. Not Supported- | 506 // Variant Negotiates- | 507 // Insufficient Storage- | 508 // Loop Detected- | 510 // Not Extended- | 511 // Network Auth Required+ | 100 // Continue+ | 101 // Switching Protocols+ | 102 // Processing+ | 103 // Early Hints+ | 200 // OK+ | 201 // Created+ | 202 // Accepted+ | 203 // Non-Authoritative Info+ | 204 // No Content+ | 205 // Reset Content+ | 206 // Partial Content+ | 207 // Multi-Status+ | 208 // Already Reported+ | 226 // IM Used+ | 300 // Multiple Choices+ | 301 // Moved Permanently+ | 302 // Found+ | 303 // See Other+ | 304 // Not Modified+ | 305 // Use Proxy+ | 306 // Switch Proxy+ | 307 // Temporary Redirect+ | 308 // Permanent Redirect+ | 400 // Bad Request+ | 401 // Unauthorized+ | 402 // Payment Required+ | 403 // Forbidden+ | 404 // Not Found+ | 405 // Method Not Allowed+ | 406 // Not Acceptable+ | 407 // Proxy Auth Required+ | 408 // Request Timeout+ | 409 // Conflict+ | 410 // Gone+ | 411 // Length Required+ | 412 // Precondition Failed+ | 413 // Payload Too Large+ | 414 // URI Too Long+ | 415 // Unsupported Media+ | 416 // Range Not Satisfiable+ | 417 // Expectation Failed+ | 418 // I'm a teapot+ | 421 // Misdirected Request+ | 422 // Unprocessable Entity+ | 423 // Locked+ | 424 // Failed Dependency+ | 425 // Too Early+ | 426 // Upgrade Required+ | 428 // Precondition Required+ | 429 // Too Many Requests+ | 431 // Headers Too Large+ | 451 // Unavailable Legal+ | 500 // Server Error+ | 501 // Not Implemented+ | 502 // Bad Gateway+ | 503 // Service Unavailable+ | 504 // Gateway Timeout+ | 505 // HTTP Ver. Not Supported+ | 506 // Variant Negotiates+ | 507 // Insufficient Storage+ | 508 // Loop Detected+ | 510 // Not Extended+ | 511 // Network Auth Requiredexport type FormDataValue =- | { kind: "text"; value: string }- | { kind: "file"; filename: string; contentType: string; data: Uint8Array }+ | { kind: "text"; value: string }+ | { kind: "file"; filename: string; contentType: string; data: Uint8Array }export type FormData = [string, FormDataValue[]][]export enum MediaType {- TEXT_PLAIN = "text/plain",- TEXT_HTML = "text/html",- TEXT_CSS = "text/css",- TEXT_CSV = "text/csv",- APPLICATION_JSON = "application/json",- APPLICATION_LD_JSON = "application/ld+json",- APPLICATION_XML = "application/xml",- TEXT_XML = "text/xml",- APPLICATION_FORM = "application/x-www-form-urlencoded",- APPLICATION_OCTET = "application/octet-stream",- MULTIPART_FORM = "multipart/form-data"+ TEXT_PLAIN = "text/plain",+ TEXT_HTML = "text/html",+ TEXT_CSS = "text/css",+ TEXT_CSV = "text/csv",+ APPLICATION_JSON = "application/json",+ APPLICATION_LD_JSON = "application/ld+json",+ APPLICATION_XML = "application/xml",+ TEXT_XML = "text/xml",+ APPLICATION_FORM = "application/x-www-form-urlencoded",+ APPLICATION_OCTET = "application/octet-stream",+ MULTIPART_FORM = "multipart/form-data",}export type ContentType =- | { kind: "text"; content: string; mediaType: MediaType.TEXT_PLAIN | MediaType.TEXT_HTML | MediaType.TEXT_CSS | MediaType.TEXT_CSV }- | { kind: "json"; content: unknown; mediaType: MediaType.APPLICATION_JSON | MediaType.APPLICATION_LD_JSON }- | { kind: "xml"; content: string; mediaType: MediaType.APPLICATION_XML | MediaType.TEXT_XML }- | { kind: "form"; content: FormData; mediaType: MediaType.APPLICATION_FORM }- | { kind: "binary"; content: Uint8Array; mediaType: MediaType.APPLICATION_OCTET | string; filename?: string }- | { kind: "multipart"; content: FormData; mediaType: MediaType.MULTIPART_FORM }- | { kind: "urlencoded"; content: string; mediaType: MediaType.APPLICATION_FORM }- | { kind: "stream"; content: ReadableStream; mediaType: string }+ | {+ kind: "text"+ content: string+ mediaType:+ | MediaType.TEXT_PLAIN+ | MediaType.TEXT_HTML+ | MediaType.TEXT_CSS+ | MediaType.TEXT_CSV+ }+ | {+ kind: "json"+ content: unknown+ mediaType: MediaType.APPLICATION_JSON | MediaType.APPLICATION_LD_JSON+ }+ | {+ kind: "xml"+ content: string+ mediaType: MediaType.APPLICATION_XML | MediaType.TEXT_XML+ }+ | { kind: "form"; content: FormData; mediaType: MediaType.APPLICATION_FORM }+ | {+ kind: "binary"+ content: Uint8Array+ mediaType: MediaType.APPLICATION_OCTET | string+ filename?: string+ }+ | {+ kind: "multipart"+ content: FormData+ mediaType: MediaType.MULTIPART_FORM+ }+ | {+ kind: "urlencoded"+ content: string+ mediaType: MediaType.APPLICATION_FORM+ }+ | { kind: "stream"; content: ReadableStream; mediaType: string }export interface ResponseBody {- body: Uint8Array- mediaType: MediaType | string+ body: Uint8Array+ mediaType: MediaType | string}export type AuthType =- | { kind: "none" }- | { kind: "basic"; username: string; password: string }- | { kind: "bearer"; token: string }- | {- kind: "digest"- username: string- password: string- realm?: string- nonce?: string- opaque?: string- algorithm?: "MD5" | "SHA-256" | "SHA-512"- qop?: "auth" | "auth-int"- nc?: string- cnonce?: string+ | { kind: "none" }+ | { kind: "basic"; username: string; password: string }+ | { kind: "bearer"; token: string }+ | {+ kind: "digest"+ username: string+ password: string+ realm?: string+ nonce?: string+ opaque?: string+ algorithm?: "MD5" | "SHA-256" | "SHA-512"+ qop?: "auth" | "auth-int"+ nc?: string+ cnonce?: string}- | {- kind: "oauth2"- grantType:+ | {+ kind: "oauth2"+ grantType:| {kind: "authorization_code"authEndpoint: stringtokenEndpoint: stringclientId: stringclientSecret?: string- }+ }| {kind: "client_credentials"tokenEndpoint: stringclientId: stringclientSecret?: string- }+ }| {kind: "password"tokenEndpoint: stringusername: stringpassword: string- }+ }| {kind: "implicit"authEndpoint: stringclientId: string- }- accessToken?: string- refreshToken?: string+ }+ accessToken?: string+ refreshToken?: string}- | {- kind: "apikey"- key: string- value: string- in: "header" | "query"+ | {+ kind: "apikey"+ key: string+ value: string+ in: "header" | "query"}- | {- kind: "aws"- accessKey: string- secretKey: string- region: string- service: string- sessionToken?: string- in: "header" | "query"+ | {+ kind: "aws"+ accessKey: string+ secretKey: string+ region: string+ service: string+ sessionToken?: string+ in: "header" | "query"}export type CertificateType =| {- kind: "pem"- cert: Uint8Array- key: Uint8Array- }+ kind: "pem"+ cert: Uint8Array+ key: Uint8Array+ }| {- kind: "pfx"- data: Uint8Array- password: string- }+ kind: "pfx"+ data: Uint8Array+ password: string+ }export interface RequestOptions {timeout?: number@@ -244,7 +273,7 @@ export interface Response {expires?: Datesecure?: booleanhttpOnly?: boolean- sameSite?: 'Strict' | 'Lax' | 'None'+ sameSite?: "Strict" | "Lax" | "None"}>body: ResponseBody@@ -277,13 +306,13 @@ export type RelayError =| { kind: "abort"; message: string }export type RequestResult =- | { kind: 'success'; response: Response }- | { kind: 'error'; error: RelayError }+ | { kind: "success"; response: Response }+ | { kind: "error"; error: RelayError }export async function execute(request: Request): Promise<RequestResult> {- return await invoke<RequestResult>('plugin:relay|execute', { request })+ return await invoke<RequestResult>("plugin:relay|execute", { request })}export async function cancel(requestId: number): Promise<void> {- return await invoke<void>('plugin:relay|cancel', { requestId })+ return await invoke<void>("plugin:relay|cancel", { requestId })}diff --git a/packages/hoppscotch-desktop/plugin-workspace/tauri-plugin-relay/rollup.config.js b/packages/hoppscotch-desktop/plugin-workspace/tauri-plugin-relay/rollup.config.jsindex d83436352..1574aab7b 100644--- a/packages/hoppscotch-desktop/plugin-workspace/tauri-plugin-relay/rollup.config.js+++ b/packages/hoppscotch-desktop/plugin-workspace/tauri-plugin-relay/rollup.config.js@@ -1,31 +1,31 @@-import { readFileSync } from 'fs'-import { join } from 'path'-import { cwd } from 'process'-import typescript from '@rollup/plugin-typescript'+import { readFileSync } from "fs"+import { join } from "path"+import { cwd } from "process"+import typescript from "@rollup/plugin-typescript"-const pkg = JSON.parse(readFileSync(join(cwd(), 'package.json'), 'utf8'))+const pkg = JSON.parse(readFileSync(join(cwd(), "package.json"), "utf8"))export default {- input: 'guest-js/index.ts',+ input: "guest-js/index.ts",output: [{file: pkg.exports.import,- format: 'esm'+ format: "esm",},{file: pkg.exports.require,- format: 'cjs'- }+ format: "cjs",+ },],plugins: [typescript({declaration: true,- declarationDir: `./${pkg.exports.import.split('/')[0]}`- })+ declarationDir: `./${pkg.exports.import.split("/")[0]}`,+ }),],external: [/^@tauri-apps\/api/,...Object.keys(pkg.dependencies || {}),- ...Object.keys(pkg.peerDependencies || {})- ]+ ...Object.keys(pkg.peerDependencies || {}),+ ],}diff --git a/packages/hoppscotch-desktop/src-tauri/src/lib.rs b/packages/hoppscotch-desktop/src-tauri/src/lib.rsindex f5e68221a..5e54e7170 100644--- a/packages/hoppscotch-desktop/src-tauri/src/lib.rs+++ b/packages/hoppscotch-desktop/src-tauri/src/lib.rs@@ -212,6 +212,11 @@ pub fn run() {quit_app,backup::check_and_backup_on_version_change,updater::check_for_updates,+ updater::download_and_install_update,+ updater::restart_application,+ updater::cancel_update,+ updater::get_download_progress,+ updater::is_portable_mode,path::get_config_dir,path::get_latest_dir,path::get_instance_dir,diff --git a/packages/hoppscotch-desktop/src-tauri/src/updater.rs b/packages/hoppscotch-desktop/src-tauri/src/updater.rsindex ec99054da..2a57f58b3 100644--- a/packages/hoppscotch-desktop/src-tauri/src/updater.rs+++ b/packages/hoppscotch-desktop/src-tauri/src/updater.rs@@ -1,53 +1,308 @@use crate::{dialog, util};use native_dialog::MessageType;-use tauri_plugin_updater::UpdaterExt;+use serde::{Deserialize, Serialize};+use std::sync::Arc;+use tauri::{AppHandle, Emitter};+use tauri_plugin_updater::{Update, UpdaterExt};+use tokio::sync::Mutex;-/// Check for updates using the updater and return whether updates are available-/// This mimics the behavior of `checkForUpdates` in `updater.ts` but uses native dialogs when needed+#[derive(Debug, Clone, Serialize, Deserialize)]+#[serde(rename_all = "camelCase")]+pub struct UpdateInfo {+ pub available: bool,+ pub current_version: String,+ pub latest_version: Option<String>,+ pub release_notes: Option<String>,+}++#[derive(Debug, Clone, Serialize, Deserialize)]+#[serde(rename_all = "camelCase")]+pub struct DownloadProgress {+ pub downloaded: u64,+ pub total: Option<u64>,+ pub percentage: f64,+}++#[derive(Debug, Clone, Serialize, Deserialize)]+#[serde(tag = "type")]+pub enum UpdateEvent {+ CheckStarted,+ CheckCompleted {+ info: UpdateInfo,+ },+ CheckFailed {+ error: String,+ },+ DownloadStarted {+ #[serde(rename = "totalBytes")]+ total_bytes: Option<u64>,+ },+ DownloadProgress {+ progress: DownloadProgress,+ },+ DownloadCompleted,+ InstallStarted,+ InstallCompleted,+ RestartRequired,+ UpdateCancelled,+ Error {+ message: String,+ },+}++// Global state for tracking update progress+// TODO: See if it's possible to let Tauri handle this state management+static UPDATE_STATE: std::sync::LazyLock<Arc<Mutex<Option<Update>>>> =+ std::sync::LazyLock::new(|| Arc::new(Mutex::new(None)));++static DOWNLOAD_STATE: std::sync::LazyLock<Arc<Mutex<DownloadProgress>>> =+ std::sync::LazyLock::new(|| {+ Arc::new(Mutex::new(DownloadProgress {+ downloaded: 0,+ total: None,+ percentage: 0.0,+ }))+ });++/// Check for updates and returns basic information+/// For portable mode: Shows native dialog if update found+/// For standard mode: Just returns information, UI handles the rest#[tauri::command]-pub async fn check_for_updates(app: tauri::AppHandle) -> Result<bool, String> {- tracing::info!("Checking for portable updates");+pub async fn check_for_updates(+ app: AppHandle,+ show_native_dialog: bool,+) -> Result<UpdateInfo, String> {+ tracing::info!(portable_dialog = show_native_dialog, "Checking for updates");- let updater = match app.updater() {- Ok(updater) => updater,- Err(e) => {- tracing::error!(error = %e, "Failed to initialize updater");- return Err(format!("Failed to initialize updater: {}", e));- }- };+ let _ = app.emit("updater-event", UpdateEvent::CheckStarted);++ let updater = app.updater().map_err(|e| {+ let error_msg = format!("Failed to initialize updater: {}", e);+ tracing::error!("{}", error_msg);+ let _ = app.emit(+ "updater-event",+ UpdateEvent::CheckFailed {+ error: error_msg.clone(),+ },+ );+ error_msg+ })?;match updater.check().await {Ok(Some(update)) => {- tracing::info!(- current_version = app.package_info().version.to_string(),- update_version = update.version.to_string(),- "Update available"- );- let download_url = "https://hoppscotch.com/download";- let message = format!(- "An update (version {}) is available for Hoppscotch Desktop (Portable).\n\nWould you like to download it now?\n\n• Yes = Download now\n• No = Remind me later",- update.version- );+ let current_version = app.package_info().version.to_string();+ let latest_version = update.version.to_string();+ let release_notes = update.body.clone();++ tracing::info!(current_version, latest_version, "Update available");++ {+ let mut state = UPDATE_STATE.lock().await;+ *state = Some(update);+ }++ let update_info = UpdateInfo {+ available: true,+ current_version,+ latest_version: Some(latest_version.clone()),+ release_notes,+ };- if dialog::confirm("Download Update", &message, MessageType::Info) {- if let None = util::open_link(download_url) {- dialog::error(&format!(- "Failed to open download page. Please visit {}",- download_url- ));- return Err(format!("Failed to open download URL"));- }+ if show_native_dialog {+ handle_portable_update_dialog(&app, &latest_version).await?;}- Ok(true)+ let _ = app.emit(+ "updater-event",+ UpdateEvent::CheckCompleted {+ info: update_info.clone(),+ },+ );++ Ok(update_info)}Ok(None) => {tracing::info!("No updates available");- Ok(false)+ let update_info = UpdateInfo {+ available: false,+ current_version: app.package_info().version.to_string(),+ latest_version: None,+ release_notes: None,+ };++ let _ = app.emit(+ "updater-event",+ UpdateEvent::CheckCompleted {+ info: update_info.clone(),+ },+ );++ Ok(update_info)}Err(e) => {- tracing::error!(error = %e, "Failed to check for updates");- Err(format!("Failed to check for updates: {}", e))+ let error_msg = format!("Failed to check for updates: {}", e);+ tracing::error!("{}", error_msg);+ let _ = app.emit(+ "updater-event",+ UpdateEvent::CheckFailed {+ error: error_msg.clone(),+ },+ );+ Err(error_msg)+ }+ }+}++/// Download and install update (for standard mode)+/// Emits progress events that the frontend can listen to+#[tauri::command]+pub async fn download_and_install_update(app: AppHandle) -> Result<(), String> {+ tracing::info!("Starting update download and installation");++ let update = {+ let mut state = UPDATE_STATE.lock().await;+ state.take().ok_or("No update available to install")?+ };++ let _ = app.emit(+ "updater-event",+ UpdateEvent::DownloadStarted { total_bytes: None },+ );++ {+ let mut download_state = DOWNLOAD_STATE.lock().await;+ download_state.downloaded = 0;+ download_state.total = None;+ download_state.percentage = 0.0;+ }++ let app_progress = app.clone();+ let app_callback = app.clone();++ update+ .download_and_install(+ move |chunk_length, content_length| {+ let app = app_progress.clone();+ tauri::async_runtime::spawn(async move {+ let mut download_state = DOWNLOAD_STATE.lock().await;++ if let Some(total) = content_length {+ if download_state.total.is_none() {+ download_state.total = Some(total);+ let _ = app.emit(+ "updater-event",+ UpdateEvent::DownloadStarted {+ total_bytes: Some(total),+ },+ );+ }+ }++ download_state.downloaded += chunk_length as u64;++ if let Some(total) = download_state.total {+ download_state.percentage =+ (download_state.downloaded as f64 / total as f64) * 100.0;+ }++ let progress = download_state.clone();+ // Release the lock before emitting+ // TODO: See if it's possible to not have a lock at all+ drop(download_state);++ let _ = app.emit("updater-event", UpdateEvent::DownloadProgress { progress });+ });+ },+ move || {+ let app = app_callback.clone();+ tauri::async_runtime::spawn(async move {+ let _ = app.emit("updater-event", UpdateEvent::DownloadCompleted);+ let _ = app.emit("updater-event", UpdateEvent::InstallStarted);+ let _ = app.emit("updater-event", UpdateEvent::RestartRequired);+ });+ },+ )+ .await+ .map_err(|e| {+ let error_msg = format!("Failed to download and install update: {}", e);+ let _ = app.emit(+ "updater-event",+ UpdateEvent::Error {+ message: error_msg.clone(),+ },+ );+ error_msg+ })?;++ tracing::info!("Update download and installation completed successfully");+ Ok(())+}++/// Restart the application (for standard mode)+#[tauri::command]+pub async fn restart_application() -> Result<(), String> {+ tracing::info!("Restarting application");+ tauri::process::restart(&tauri::Env::default());+ // This function never returns because the app restarts,+ // so it's safe to allow `unreachable_code` here.+ #[allow(unreachable_code)]+ Ok(())+}++/// Cancel any ongoing update process+#[tauri::command]+pub async fn cancel_update(app: AppHandle) -> Result<(), String> {+ tracing::info!("Cancelling update");++ {+ let mut state = UPDATE_STATE.lock().await;+ *state = None;+ }++ {+ let mut download_state = DOWNLOAD_STATE.lock().await;+ download_state.downloaded = 0;+ download_state.total = None;+ download_state.percentage = 0.0;+ }++ let _ = app.emit("updater-event", UpdateEvent::UpdateCancelled);+ Ok(())+}++/// Get current download progress (for polling if needed)+#[tauri::command]+pub async fn get_download_progress() -> Result<DownloadProgress, String> {+ let download_state = DOWNLOAD_STATE.lock().await;+ Ok(download_state.clone())+}++/// Check if we're running in portable mode (for frontend convenience)+#[tauri::command]+pub fn is_portable_mode() -> bool {+ cfg!(feature = "portable")+}++/// Helper function to handle portable mode update dialog+async fn handle_portable_update_dialog(+ _app: &AppHandle,+ latest_version: &str,+) -> Result<(), String> {+ let download_url = "https://hoppscotch.com/download";+ let message = format!(+ "An update (version {}) is available for Hoppscotch Desktop (Portable).\n\nWould you like to download it now?\n\n• Yes = Download now\n• No = Remind me later",+ latest_version+ );++ if dialog::confirm("Download Update", &message, MessageType::Info) {+ if util::open_link(download_url).is_none() {+ dialog::error(&format!(+ "Failed to open download page. Please visit {}",+ download_url+ ));+ return Err("Failed to open download URL".to_string());}}++ Ok(())}diff --git a/packages/hoppscotch-desktop/src/composables/useAppInitialization.ts b/packages/hoppscotch-desktop/src/composables/useAppInitialization.tsnew file mode 100644index 000000000..847bf9cef--- /dev/null+++ b/packages/hoppscotch-desktop/src/composables/useAppInitialization.ts@@ -0,0 +1,286 @@+import { ref } from "vue"+import { load, download, close } from "@hoppscotch/plugin-appload"+import { getVersion } from "@tauri-apps/api/app"+import { invoke } from "@tauri-apps/api/core"++import { DesktopPersistenceService } from "~/services/persistence.service"+import { InstanceStoreMigrationService } from "~/services/instance-store-migration.service"+import type {+ Instance,+ ConnectionState,+} from "@hoppscotch/common/platform/instance"+import { VENDORED_INSTANCE_CONFIG } from "@hoppscotch/common/platform/instance"++export enum AppState {+ LOADING = "loading",+ UPDATE_AVAILABLE = "update_available",+ UPDATE_IN_PROGRESS = "update_in_progress",+ UPDATE_READY = "update_ready",+ ERROR = "error",+ LOADED = "loaded",+}++export function useAppInitialization() {+ const persistence = DesktopPersistenceService.getInstance()+ const migration = InstanceStoreMigrationService.getInstance()++ const appState = ref<AppState>(AppState.LOADING)+ const error = ref("")+ const statusMessage = ref("Initializing...")+ const appVersion = ref("...")++ const saveConnectionState = async (state: ConnectionState) => {+ try {+ await persistence.setConnectionState(state)+ } catch (err) {+ console.error("Failed to save connection state:", err)+ }+ }++ const findMostRecentInstance = (+ instances: Instance[],+ targetUrl: string+ ): Instance | null => {+ return (+ instances.find(+ (instance) =>+ instance.serverUrl === targetUrl ||+ instance.serverUrl.includes(targetUrl) ||+ targetUrl.includes(instance.serverUrl)+ ) || null+ )+ }++ const loadVendoredInstance = async () => {+ try {+ statusMessage.value = "Loading Hoppscotch Desktop..."++ await saveConnectionState({+ status: "connected",+ instance: VENDORED_INSTANCE_CONFIG,+ })++ console.log("Loading vendored app...")+ const loadResp = await load({+ bundleName: VENDORED_INSTANCE_CONFIG.bundleName!,+ window: { title: "Hoppscotch" },+ })++ if (!loadResp.success) {+ throw new Error("Failed to load Hoppscotch Vendored")+ }++ console.log("Vendored app loaded successfully")+ close({ windowLabel: "main" })+ } catch (err) {+ const errorMessage = err instanceof Error ? err.message : String(err)+ console.error("Error loading vendored app:", errorMessage)+ error.value = errorMessage++ await saveConnectionState({+ status: "error",+ target: "Vendored",+ message: errorMessage,+ })++ appState.value = AppState.ERROR+ }+ }++ const loadVendoredIfMatches = async (instance: Instance) => {+ if (+ instance.kind === "vendored" ||+ instance.bundleName === VENDORED_INSTANCE_CONFIG.bundleName+ ) {+ await loadVendoredInstance()+ } else {+ try {+ statusMessage.value = `Loading ${instance.displayName}...`++ await saveConnectionState({+ status: "connecting",+ target: instance.serverUrl,+ })++ await download({ serverUrl: instance.serverUrl })++ const loadResp = await load({+ bundleName: instance.bundleName!,+ window: { title: "Hoppscotch" },+ })++ if (!loadResp.success) {+ throw new Error(`Failed to load ${instance.displayName}`)+ }++ await saveConnectionState({+ status: "connected",+ instance: instance,+ })++ console.log(`Successfully loaded instance: ${instance.displayName}`)+ close({ windowLabel: "main" })+ } catch (err) {+ const errorMessage = err instanceof Error ? err.message : String(err)+ console.error(+ `Failed to load instance ${instance.displayName}:`,+ errorMessage+ )++ await saveConnectionState({+ status: "error",+ target: instance.serverUrl,+ message: errorMessage,+ })++ console.log("Falling back to vendored instance")+ await loadVendoredInstance()+ }+ }+ }++ const loadRecent = async () => {+ try {+ statusMessage.value = "Loading application..."++ const connectionState = await persistence.getConnectionState()+ const recentInstances = await persistence.getRecentInstances()++ console.log("Current connection state:", connectionState)+ console.log("Recent instances:", recentInstances)++ if (connectionState) {+ switch (connectionState.status) {+ case "connected":+ if (connectionState.instance) {+ statusMessage.value = `Connecting to ${connectionState.instance.displayName}...`+ try {+ await loadVendoredIfMatches(connectionState.instance)+ return+ } catch (err) {+ console.warn(+ "Failed to load previously connected instance:",+ err+ )+ }+ }+ break++ case "connecting":+ if (connectionState.target) {+ statusMessage.value = `Resuming connection to ${connectionState.target}...`+ const targetInstance = findMostRecentInstance(+ recentInstances,+ connectionState.target+ )+ if (targetInstance) {+ try {+ await loadVendoredIfMatches(targetInstance)+ return+ } catch (err) {+ console.warn("Failed to resume connection:", err)+ }+ }+ }+ break++ case "error":+ console.warn("Previous connection failed:", connectionState.message)+ break++ case "idle":+ default:+ break+ }+ }++ const mostRecentInstance = recentInstances[0]++ if (mostRecentInstance) {+ statusMessage.value = `Connecting to ${mostRecentInstance.displayName}...`+ try {+ await loadVendoredIfMatches(mostRecentInstance)+ return+ } catch (err) {+ console.warn("Failed to load most recent instance:", err)+ }+ }++ console.log("No recent instances found, loading vendored as fallback")+ await loadVendoredInstance()+ } catch (err) {+ const errorMessage = err instanceof Error ? err.message : String(err)+ console.error("Error in loadRecent:", errorMessage)+ error.value = errorMessage+ appState.value = AppState.ERROR+ }+ }++ const performBasicInitialization = async () => {+ try {+ appVersion.value = await getVersion()+ } catch (error) {+ console.error("Failed to get app version:", error)+ appVersion.value = "unknown"+ }++ statusMessage.value = "Checking for version changes..."+ try {+ await invoke("check_and_backup_on_version_change")+ console.log("Version backup check completed")+ } catch (err) {+ console.warn("Version backup check failed:", err)+ }++ statusMessage.value = "Running data migration..."+ await migration.initialize()++ const migrationStatus = migration.getMigrationStatus()+ if (migrationStatus.value.status === "failed") {+ throw new Error(+ `Migration failed: ${migration.getMigrationError().value}`+ )+ }++ statusMessage.value = "Initializing stores..."+ await persistence.init()+ }++ const initialize = async (customLogic?: () => Promise<void>) => {+ appState.value = AppState.LOADING+ error.value = ""++ try {+ await performBasicInitialization()++ if (customLogic) {+ await customLogic()+ } else {+ await loadRecent()+ }+ } catch (err) {+ const errorMessage = err instanceof Error ? err.message : String(err)+ console.error("Initialization error:", errorMessage)+ error.value = errorMessage+ appState.value = AppState.ERROR+ }+ }++ return {+ appState,+ error,+ statusMessage,+ appVersion,++ persistence,+ migration,++ saveConnectionState,+ findMostRecentInstance,+ loadVendoredInstance,+ loadVendoredIfMatches,+ loadRecent,+ performBasicInitialization,+ initialize,+ }+}diff --git a/packages/hoppscotch-desktop/src/main.ts b/packages/hoppscotch-desktop/src/main.tsindex 05e2dd76d..01fa7ea08 100644--- a/packages/hoppscotch-desktop/src/main.ts+++ b/packages/hoppscotch-desktop/src/main.ts@@ -9,6 +9,10 @@ import "@fontsource-variable/inter"import "@fontsource-variable/material-symbols-rounded"import "@fontsource-variable/roboto-mono"+import { initKernel } from "@hoppscotch/kernel"+const app = createApp(App)app.use(router)app.mount("#app")++initKernel("desktop")diff --git a/packages/hoppscotch-desktop/src/router.ts b/packages/hoppscotch-desktop/src/router.tsindex 7bf01771e..6b603f0a0 100644--- a/packages/hoppscotch-desktop/src/router.ts+++ b/packages/hoppscotch-desktop/src/router.ts@@ -1,5 +1,5 @@import { createRouter, createWebHistory } from "vue-router"-import Home from "./views/Home.vue"+import { invoke } from "@tauri-apps/api/core"const router = createRouter({history: createWebHistory(),@@ -7,7 +7,24 @@ const router = createRouter({{path: "/",name: "home",- component: Home,+ component: async () => {+ try {+ const isPortable = await invoke<boolean>("is_portable_mode")+ // Dynamic import because otherwise `updater`+ // tends to experience weird race conditions,+ // not sure how or why+ return isPortable+ ? import("./views/PortableHome.vue")+ : import("./views/StandardHome.vue")+ } catch (error) {+ console.error(+ "Failed to detect portable mode, defaulting to standard:",+ error+ )++ return import("./views/StandardHome.vue")+ }+ },},],})diff --git a/packages/hoppscotch-desktop/src/services/instance-store-migration.service.ts b/packages/hoppscotch-desktop/src/services/instance-store-migration.service.tsnew file mode 100644index 000000000..ec39bb88b--- /dev/null+++ b/packages/hoppscotch-desktop/src/services/instance-store-migration.service.ts@@ -0,0 +1,431 @@+import { BehaviorSubject, Observable } from "rxjs"+import { computed } from "vue"+import { LazyStore } from "@tauri-apps/plugin-store"+import {+ getInstanceDir,+ getConfigDir,+ getStoreDir,+ getLatestDir,+ Store,+} from "~/kernel/store"+import * as E from "fp-ts/Either"+import { join } from "@tauri-apps/api/path"+import { exists, copyFile, remove, readDir, mkdir } from "@tauri-apps/plugin-fs"++const STORE_NAMESPACE = "hoppscotch-desktop.v1"+const MIGRATION_NAMESPACE = "migration.v1"+const CURRENT_STORE_VERSION = 1++type LegacyServerInstance = {+ type: "server"+ serverUrl: string+ displayName: string+ version: string+ lastUsed: string+ bundleName?: string+}++type LegacyCloudInstance = {+ type: "cloud"+ displayName: string+ version: string+}++type LegacyInstanceKind = LegacyServerInstance | LegacyCloudInstance++type LegacyConnectionState =+ | { status: "idle" }+ | { status: "connecting"; target: string }+ | { status: "connected"; instance: LegacyInstanceKind }+ | { status: "error"; target: string; message: string }++type LegacyUpdateState = {+ status: string+ version?: string+ message?: string+ progress?: {+ downloaded: number+ total?: number+ }+}++export type InstanceKind = "on-prem" | "cloud" | "cloud-org" | "vendored"++export type Instance = {+ kind: InstanceKind+ serverUrl: string+ displayName: string+ version: string+ lastUsed: string+ bundleName?: string+}++export type ConnectionState =+ | { status: "idle" }+ | { status: "connecting"; target: string }+ | { status: "connected"; instance: Instance }+ | { status: "error"; target: string; message: string }++export type MigrationStatus =+ | { status: "pending" }+ | { status: "in-progress" }+ | { status: "completed" }+ | { status: "failed"; error: string }++export class InstanceStoreMigrationService {+ private static instance: InstanceStoreMigrationService+ private status$ = new BehaviorSubject<MigrationStatus>({ status: "pending" })+ private migrationLock = false++ private constructor() {}++ public static getInstance(): InstanceStoreMigrationService {+ if (!InstanceStoreMigrationService.instance) {+ InstanceStoreMigrationService.instance =+ new InstanceStoreMigrationService()+ }+ return InstanceStoreMigrationService.instance+ }++ async initialize(): Promise<void> {+ if (this.migrationLock) {+ console.log("Migration already in progress, skipping...")+ return+ }++ this.migrationLock = true++ try {+ const initResult = await Store.init()+ if (E.isLeft(initResult)) {+ console.error(`Failed to initialize kernel store: ${initResult.left}`)+ // Don't fail the migration, just log and continue,+ // since there's a chance no services have started just yet,+ // better to continue and fail with legitimate critical reasons,+ // rather than failing here and not being able to see the actual cause.+ }++ const isMigrated = await this.isMigrationComplete()+ if (isMigrated) {+ console.log("Migration already completed")+ this.status$.next({ status: "completed" })+ return+ }++ await this.performMigration()+ } catch (error) {+ console.error("Migration error:", error)+ // Even if migration fails, mark as completed to prevent retry loops,+ // so there won't be partial state from the "source".+ // There's always a way to restart migration is the source is safe.+ await this.markMigrationComplete()+ this.status$.next({ status: "completed" })+ } finally {+ this.migrationLock = false+ }+ }++ private async isMigrationComplete(): Promise<boolean> {+ try {+ const versionResult = await Store.get<number>(+ MIGRATION_NAMESPACE,+ "migrationVersion"+ )+ const currentVersion = E.isRight(versionResult)+ ? versionResult.right || 0+ : 0+ return currentVersion >= CURRENT_STORE_VERSION+ } catch {+ return false+ }+ }++ private async markMigrationComplete(): Promise<void> {+ try {+ await Store.set(+ MIGRATION_NAMESPACE,+ "migrationVersion",+ CURRENT_STORE_VERSION+ )+ } catch (error) {+ console.error("Failed to mark migration as complete:", error)+ }+ }++ private async performMigration(): Promise<void> {+ this.status$.next({ status: "in-progress" })++ try {+ // Ensure directory structure exists+ // (shouldn't fail, but good to check just in case)+ await this.ensureDirectoryStructure()++ // Migrate data from old stores.+ // NOTE: This can fail if the store is using default path,+ // and not the full specificed path.+ // Remember to check that first.+ await this.migrateDataSafely()++ // Move .hoppscotch.store files+ // (shouldn't fail, but good to check just in case)+ await this.migrateHoppscotchStoreFiles()++ // Mark migration as complete before cleanup+ // (shouldn't fail, but good to check just in case)+ await this.markMigrationComplete()++ // Clean up old files+ // (best effort, don't fail if this fails)+ await this.cleanupOldFilesSafely()++ this.status$.next({ status: "completed" })+ console.log("Migration completed successfully")+ } catch (error) {+ console.error("Migration failed:", error)+ // Mark as completed anyway to prevent retry loops+ // (same reasoning as in init)+ await this.markMigrationComplete()+ this.status$.next({ status: "completed" })+ }+ }++ private async ensureDirectoryStructure(): Promise<void> {+ try {+ const latestDir = await getLatestDir()+ const storeDir = await getStoreDir()+ const instanceDir = await getInstanceDir()++ // Create directories if they don't exist+ for (const dir of [latestDir, storeDir, instanceDir]) {+ try {+ const dirExists = await exists(dir)+ if (!dirExists) {+ await mkdir(dir, { recursive: true })+ console.log(`Created directory: ${dir}`)+ }+ } catch (error) {+ // Directory might already exist or parent might not exist+ console.log(`Directory ${dir} might already exist:`, error)+ }+ }+ } catch (error) {+ console.error("Failed to ensure directory structure:", error)+ // Continue anyway, directories might already exist+ }+ }++ private async migrateDataSafely(): Promise<void> {+ const configDir = await getConfigDir()++ const hoppStorePath = await join(configDir, "hopp.store.json")+ const desktopStorePath = await join(configDir, "hoppscotch-desktop.store")++ let connectionState: ConnectionState = { status: "idle" }+ let recentInstances: Instance[] = []+ let updateState: any = null++ // Read from hopp.store.json if it exists+ try {+ if (await exists(hoppStorePath)) {+ const hoppStore = new LazyStore(hoppStorePath)+ await hoppStore.init()++ const hoppState =+ await hoppStore.get<LegacyConnectionState>("connectionState")+ if (hoppState && hoppState.status === "connected") {+ connectionState = {+ status: "connected",+ instance: this.convertInstanceToNewFormat(hoppState.instance),+ }+ }++ const legacyInstances =+ await hoppStore.get<LegacyServerInstance[]>("recentInstances")+ if (legacyInstances) {+ recentInstances = legacyInstances.map((inst) =>+ this.convertInstanceToNewFormat(inst)+ )+ }+ }+ } catch (error) {+ console.log("Could not read hopp.store.json:", error)+ }++ // Read from hoppscotch-desktop.store if it exists+ try {+ if (await exists(desktopStorePath)) {+ const desktopStore = new LazyStore(desktopStorePath)+ await desktopStore.init()++ // Only override connection state if we didn't get one from hopp.store+ if (connectionState.status === "idle") {+ const desktopState =+ await desktopStore.get<LegacyConnectionState>("connectionState")+ if (desktopState && desktopState.status === "connected") {+ connectionState = {+ status: "connected",+ instance: this.convertInstanceToNewFormat(desktopState.instance),+ }+ }+ }++ updateState = await desktopStore.get<LegacyUpdateState>("updateState")+ }+ } catch (error) {+ console.log("Could not read hoppscotch-desktop.store:", error)+ }++ try {+ await Store.set(STORE_NAMESPACE, "connectionState", connectionState)+ console.log("Migrated connection state")+ } catch (error) {+ console.error("Failed to save connection state:", error)+ }++ try {+ await Store.set(STORE_NAMESPACE, "recentInstances", recentInstances)+ console.log(`Migrated ${recentInstances.length} recent instances`)+ } catch (error) {+ console.error("Failed to save recent instances:", error)+ }++ if (updateState) {+ try {+ await Store.set(STORE_NAMESPACE, "updateState", updateState)+ console.log("Migrated update state")+ } catch (error) {+ console.error("Failed to save update state:", error)+ }+ }+ }++ private async migrateHoppscotchStoreFiles(): Promise<void> {+ try {+ const configDir = await getConfigDir()+ const storeDir = await getStoreDir()++ const entries = await readDir(configDir)+ const storeFiles = entries+ .filter(+ (entry: any) =>+ !entry.isDirectory && entry.name.endsWith(".hoppscotch.store")+ )+ .map((entry: any) => entry.name)++ for (const fileName of storeFiles) {+ try {+ const sourcePath = await join(configDir, fileName)+ const targetPath = await join(storeDir, fileName)++ // Check if source still exists and target doesn't+ const sourceExists = await exists(sourcePath)+ const targetExists = await exists(targetPath)++ if (sourceExists && !targetExists) {+ await copyFile(sourcePath, targetPath)+ console.log(`Migrated ${fileName} to store directory`)+ } else if (sourceExists && targetExists) {+ console.log(`${fileName} already exists in target, skipping`)+ }+ } catch (error) {+ console.error(`Failed to migrate ${fileName}:`, error)+ // Continue with other files+ }+ }+ } catch (error) {+ console.error("Failed to migrate .hoppscotch.store files:", error)+ // Non-critical, continue+ }+ }++ private async cleanupOldFilesSafely(): Promise<void> {+ const configDir = await getConfigDir()++ // List of files to potentially remove+ const filesToClean = ["hopp.store.json", "hoppscotch-desktop.store"]++ for (const fileName of filesToClean) {+ try {+ const filePath = await join(configDir, fileName)+ if (await exists(filePath)) {+ await remove(filePath)+ console.log(`Cleaned up old file: ${fileName}`)+ }+ } catch (error) {+ console.log(`Could not remove ${fileName}:`, error)+ // Non-critical, continue+ }+ }++ // Also clean up .hoppscotch.store files that were successfully migrated+ try {+ const storeDir = await getStoreDir()+ const entries = await readDir(configDir)+ const storeFiles = entries+ .filter(+ (entry: any) =>+ !entry.isDirectory && entry.name.endsWith(".hoppscotch.store")+ )+ .map((entry: any) => entry.name)++ for (const fileName of storeFiles) {+ try {+ const sourcePath = await join(configDir, fileName)+ const targetPath = await join(storeDir, fileName)++ // Only remove if successfully copied to target+ if ((await exists(targetPath)) && (await exists(sourcePath))) {+ await remove(sourcePath)+ console.log(`Cleaned up migrated file: ${fileName}`)+ }+ } catch (error) {+ console.log(`Could not remove ${fileName}:`, error)+ }+ }+ } catch (error) {+ console.log("Could not clean up .hoppscotch.store files:", error)+ }+ }++ private convertInstanceToNewFormat(+ legacyInstance: LegacyInstanceKind+ ): Instance {+ if (legacyInstance.type === "cloud") {+ return {+ kind: "cloud",+ serverUrl: "hoppscotch.io",+ displayName: legacyInstance.displayName,+ version: legacyInstance.version,+ lastUsed: new Date().toISOString(),+ }+ } else {+ return {+ kind: "on-prem",+ serverUrl: legacyInstance.serverUrl,+ displayName: legacyInstance.displayName,+ version: legacyInstance.version,+ lastUsed: legacyInstance.lastUsed,+ bundleName: legacyInstance.bundleName,+ }+ }+ }++ public getMigrationStatusStream(): Observable<MigrationStatus> {+ return this.status$+ }++ public getMigrationStatus() {+ return computed(() => this.status$.value)+ }++ public isMigrationCompleted() {+ return computed(() => this.status$.value.status === "completed")+ }++ public getMigrationError() {+ return computed(() => {+ const status = this.status$.value+ return status.status === "failed" ? status.error : null+ })+ }+}diff --git a/packages/hoppscotch-desktop/src/services/persistence.service.ts b/packages/hoppscotch-desktop/src/services/persistence.service.tsnew file mode 100644index 000000000..025e7b148--- /dev/null+++ b/packages/hoppscotch-desktop/src/services/persistence.service.ts@@ -0,0 +1,262 @@+import * as E from "fp-ts/Either"+import { z } from "zod"+import { StoreError } from "@hoppscotch/kernel"+import { Store } from "~/kernel/store"+import { UpdateState, PortableSettings } from "~/types"++export const STORE_NAMESPACE = "hoppscotch-desktop.v1"++export const STORE_KEYS = {+ UPDATE_STATE: "updateState",+ CONNECTION_STATE: "connectionState",+ RECENT_INSTANCES: "recentInstances",+ SCHEMA_VERSION: "schema_version",+ PORTABLE_SETTINGS: "portableSettings",+} as const++export const UPDATE_STATE_SCHEMA = z.object({+ status: z.enum([+ "idle",+ "checking",+ "available",+ "not_available",+ "downloading",+ "installing",+ "ready_to_restart",+ "error",+ ]),+ version: z.string().optional(),+ message: z.string().optional(),+ progress: z+ .object({+ downloaded: z.number(),+ total: z.number().optional(),+ })+ .optional(),+})++export const INSTANCE_SCHEMA = z.object({+ kind: z.enum(["on-prem", "cloud", "cloud-org", "vendored"]),+ serverUrl: z.string(),+ displayName: z.string(),+ version: z.string(),+ lastUsed: z.string(),+ bundleName: z.string().optional(),+})++export const CONNECTION_STATE_SCHEMA = z.object({+ status: z.enum(["idle", "connecting", "connected", "error"]),+ instance: INSTANCE_SCHEMA.optional(),+ target: z.string().optional(),+ message: z.string().optional(),+})++export const PORTABLE_SETTINGS_SCHEMA = z.object({+ disableUpdateNotifications: z.boolean(),+ autoSkipWelcome: z.boolean(),+})++export type InstanceKind = z.infer<typeof INSTANCE_SCHEMA>["kind"]+export type Instance = z.infer<typeof INSTANCE_SCHEMA>+export type ConnectionState = z.infer<typeof CONNECTION_STATE_SCHEMA>++interface Migration {+ version: number+ migrate: () => Promise<void>+}++const migrations: Migration[] = [+ {+ version: 1,+ migrate: async () => {},+ },+]++export class DesktopPersistenceService {+ private static instance: DesktopPersistenceService++ private constructor() {}++ public static getInstance(): DesktopPersistenceService {+ if (!DesktopPersistenceService.instance) {+ DesktopPersistenceService.instance = new DesktopPersistenceService()+ }+ return DesktopPersistenceService.instance+ }++ async init(): Promise<E.Either<StoreError, void>> {+ const initResult = await Store.init()+ if (E.isLeft(initResult)) {+ console.error(+ "[PersistenceService] Failed to initialize store:",+ initResult.left+ )+ return initResult+ }+ await this.runMigrations()+ return initResult+ }++ private async runMigrations() {+ const versionResult = await Store.get<string>(+ STORE_NAMESPACE,+ STORE_KEYS.SCHEMA_VERSION+ )+ const perhapsVersion = E.isRight(versionResult) ? versionResult.right : "1"+ const currentVersion = perhapsVersion ?? "1"+ const targetVersion = "1"++ if (currentVersion !== targetVersion) {+ for (const migration of migrations) {+ if (migration.version > parseInt(currentVersion)) {+ await migration.migrate()+ }+ }++ await Store.set(STORE_NAMESPACE, STORE_KEYS.SCHEMA_VERSION, targetVersion)+ }+ }++ async setUpdateState(state: UpdateState): Promise<void> {+ const result = await Store.set(+ STORE_NAMESPACE,+ STORE_KEYS.UPDATE_STATE,+ state+ )+ if (E.isLeft(result)) {+ console.error("Failed to save update state:", result.left)+ }+ }++ async getUpdateState(): Promise<UpdateState | null> {+ const result = await Store.get<UpdateState>(+ STORE_NAMESPACE,+ STORE_KEYS.UPDATE_STATE+ )+ if (E.isRight(result) && result.right) {+ return result.right+ }+ return null+ }++ async watchUpdateState(+ handler: (state: UpdateState) => void+ ): Promise<() => void> {+ const watcher = await Store.watch(STORE_NAMESPACE, STORE_KEYS.UPDATE_STATE)+ return watcher.on("change", ({ value }: { value?: unknown }) => {+ if (value) {+ handler(value as UpdateState)+ }+ })+ }++ async setConnectionState(state: ConnectionState): Promise<void> {+ const result = await Store.set(+ STORE_NAMESPACE,+ STORE_KEYS.CONNECTION_STATE,+ state+ )+ if (E.isLeft(result)) {+ console.error("Failed to save connection state:", result.left)+ }+ }++ async getConnectionState(): Promise<ConnectionState | null> {+ const result = await Store.get<ConnectionState>(+ STORE_NAMESPACE,+ STORE_KEYS.CONNECTION_STATE+ )+ if (E.isRight(result) && result.right) {+ return result.right+ }+ return null+ }++ async setRecentInstances(instances: Instance[]): Promise<void> {+ const result = await Store.set(+ STORE_NAMESPACE,+ STORE_KEYS.RECENT_INSTANCES,+ instances+ )+ if (E.isLeft(result)) {+ console.error("Failed to save recent instances:", result.left)+ }+ }++ async getRecentInstances(): Promise<Instance[]> {+ const result = await Store.get<Instance[]>(+ STORE_NAMESPACE,+ STORE_KEYS.RECENT_INSTANCES+ )+ if (E.isRight(result) && result.right) {+ return result.right+ }+ return []+ }++ async addRecentInstance(instance: Instance): Promise<void> {+ const instances = await this.getRecentInstances()+ const existingIndex = instances.findIndex(+ (i) => i.kind === instance.kind && i.serverUrl === instance.serverUrl+ )++ if (existingIndex >= 0) {+ instances[existingIndex] = {+ ...instance,+ lastUsed: new Date().toISOString(),+ }+ } else {+ instances.unshift({ ...instance, lastUsed: new Date().toISOString() })+ }++ const sortedInstances = instances+ .sort(+ (a, b) =>+ new Date(b.lastUsed).getTime() - new Date(a.lastUsed).getTime()+ )+ .slice(0, 10)++ await this.setRecentInstances(sortedInstances)+ }++ async removeRecentInstance(serverUrl: string): Promise<void> {+ const instances = await this.getRecentInstances()+ const filtered = instances.filter((i) => i.serverUrl !== serverUrl)+ await this.setRecentInstances(filtered)+ }++ async setPortableSettings(settings: PortableSettings): Promise<void> {+ console.log("Setting portable settings:", settings)+ const result = await Store.set(+ STORE_NAMESPACE,+ STORE_KEYS.PORTABLE_SETTINGS,+ settings+ )+ if (E.isLeft(result)) {+ console.error("Failed to save portable settings:", result.left)+ throw new Error(`Failed to save portable settings: ${result.left}`)+ } else {+ console.log("Successfully saved portable settings")+ }+ }++ async getPortableSettings(): Promise<PortableSettings> {+ const result = await Store.get<PortableSettings>(+ STORE_NAMESPACE,+ STORE_KEYS.PORTABLE_SETTINGS+ )++ const defaultSettings = {+ disableUpdateNotifications: false,+ autoSkipWelcome: false,+ }++ if (E.isRight(result) && result.right) {+ console.log("Loaded portable settings from store:", result.right)+ return result.right+ }++ console.log("No portable settings found, using defaults:", defaultSettings)+ return defaultSettings+ }+}diff --git a/packages/hoppscotch-desktop/src/services/updater.client.ts b/packages/hoppscotch-desktop/src/services/updater.client.tsnew file mode 100644index 000000000..45a26f9b3--- /dev/null+++ b/packages/hoppscotch-desktop/src/services/updater.client.ts@@ -0,0 +1,73 @@+import { invoke } from "@tauri-apps/api/core"+import { listen, type UnlistenFn } from "@tauri-apps/api/event"++export interface UpdateInfo {+ available: boolean+ currentVersion: string+ latestVersion?: string+ releaseNotes?: string+}++export interface DownloadProgress {+ downloaded: number+ total?: number+ percentage: number+}++// TODO: Type safety just like `persistence.serivce.ts`?+export type UpdateEvent =+ | { type: "CheckStarted" }+ | { type: "CheckCompleted"; info: UpdateInfo }+ | { type: "CheckFailed"; error: string }+ | { type: "DownloadStarted"; totalBytes?: number }+ | { type: "DownloadProgress"; progress: DownloadProgress }+ | { type: "DownloadCompleted" }+ | { type: "InstallStarted" }+ | { type: "InstallCompleted" }+ | { type: "RestartRequired" }+ | { type: "UpdateCancelled" }+ | { type: "Error"; message: string }++export class UpdaterClient {+ private unlistenFn?: UnlistenFn++ async checkForUpdates(showNativeDialog = false): Promise<UpdateInfo> {+ return invoke("check_for_updates", { showNativeDialog })+ }++ async downloadAndInstall(): Promise<void> {+ return invoke("download_and_install_update")+ }++ async restart(): Promise<void> {+ return invoke("restart_application")+ }++ async cancel(): Promise<void> {+ return invoke("cancel_update")+ }++ async getDownloadProgress(): Promise<DownloadProgress> {+ return invoke("get_download_progress")+ }++ async isPortableMode(): Promise<boolean> {+ return invoke("is_portable_mode")+ }++ async listenToUpdates(+ callback: (event: UpdateEvent) => void+ ): Promise<UnlistenFn> {+ this.unlistenFn = await listen("updater-event", (event) => {+ callback(event.payload as UpdateEvent)+ })+ return this.unlistenFn+ }++ stopListening(): void {+ if (this.unlistenFn) {+ this.unlistenFn()+ this.unlistenFn = undefined+ }+ }+}diff --git a/packages/hoppscotch-desktop/src/types/index.ts b/packages/hoppscotch-desktop/src/types/index.tsindex b7c0921e8..2f44a6d75 100644--- a/packages/hoppscotch-desktop/src/types/index.ts+++ b/packages/hoppscotch-desktop/src/types/index.ts@@ -32,3 +32,8 @@ export interface UpdateState {version?: stringmessage?: string}++export interface PortableSettings {+ disableUpdateNotifications: boolean+ autoSkipWelcome: boolean+}diff --git a/packages/hoppscotch-desktop/src/views/PortableHome.vue b/packages/hoppscotch-desktop/src/views/PortableHome.vuenew file mode 100644index 000000000..e37768c30--- /dev/null+++ b/packages/hoppscotch-desktop/src/views/PortableHome.vue@@ -0,0 +1,281 @@+<template>+ <div+ class="flex flex-col items-center justify-center w-full h-screen bg-primary"+ >+ <div class="flex flex-col items-center space-y-6 max-w-md text-center">+ <AppHeader mode="Portable" />++ <div+ v-if="showPortableWelcome"+ class="flex flex-col items-center space-y-4 max-w-md text-center"+ >+ <div+ class="bg-primaryLight border border-dividerDark rounded-lg p-6 shadow-lg"+ >+ <h2 class="text-lg font-semibold text-secondaryDark mb-4">+ Portable Mode Information+ </h2>++ <div class="space-y-4 text-sm text-secondary text-left">+ <div>+ <p class="font-medium text-secondaryDark mb-2">Data Storage</p>+ <ul class="space-y-1 text-sm">+ <li>+ • Your data is in the directory you launched this app from.+ </li>+ <li>• This won't sync with the installed version.</li>+ </ul>+ </div>++ <div class="bg-primary rounded p-3 border border-divider">+ <p class="font-medium text-secondaryDark text-sm mb-1">+ Why no automatic data transfer?+ </p>+ <p class="text-sm">+ Portable apps avoid accessing system directories to maintain+ compatibility with enterprise security policies.+ </p>+ </div>++ <div>+ <p class="font-medium text-secondaryDark mb-2">+ Updates & Migration+ </p>+ <ul class="space-y-1 text-sm">+ <li>• Updates require manual download</li>+ <li>• Data persists when updating portable versions</li>+ <li>+ • Manually copy files to transfer from installed version+ </li>+ </ul>+ </div>+ </div>++ <div class="flex gap-4 items-center justify-center mt-6">+ <label class="flex items-center space-x-2 cursor-pointer">+ <input+ type="checkbox"+ v-model="portableSettings.disableUpdateNotifications"+ @change="onUpdateNotificationsChange"+ class="form-checkbox h-4 w-4 text-accent"+ />+ <span class="text-sm">Don't notify about updates</span>+ </label>++ <label class="flex items-center space-x-2 cursor-pointer">+ <input+ type="checkbox"+ v-model="portableSettings.autoSkipWelcome"+ @change="onAutoSkipChange"+ class="form-checkbox h-4 w-4 text-accent"+ />+ <span class="text-sm">Don't show this again</span>+ </label>+ </div>++ <div class="flex space-x-3 mt-6">+ <HoppButtonPrimary+ label="Continue"+ class="flex-1"+ @click="handlePortableWelcomeContinue"+ />+ <HoppButtonSecondary label="Close App" outline @click="closeApp" />+ <HoppButtonSecondary+ label="Learn More"+ outline+ @click="openDataMigrationDocs"+ />+ </div>+ </div>+ </div>++ <LoadingState+ v-else-if="appState === AppState.LOADING"+ :message="statusMessage"+ />++ <ErrorState+ v-else-if="appState === AppState.ERROR"+ :error="error"+ @retry="initialize"+ />++ <VersionInfo+ :version="appVersion"+ :data-directory="+ currentDirectory ? `${currentDirectory}/latest` : undefined+ "+ />+ </div>+ </div>+</template>++<script setup lang="ts">+import { ref, onMounted, onUnmounted, reactive, watch } from "vue"+import { close } from "@hoppscotch/plugin-appload"+import { invoke } from "@tauri-apps/api/core"++import { Io } from "~/kernel"+import type { PortableSettings } from "~/types"+import {+ useAppInitialization,+ AppState,+} from "~/composables/useAppInitialization"+import { UpdaterClient, type UpdateEvent } from "~/services/updater.client"++import AppHeader from "./shared/AppHeader.vue"+import LoadingState from "./shared/LoadingState.vue"+import ErrorState from "./shared/ErrorState.vue"+import VersionInfo from "./shared/VersionInfo.vue"++const {+ appState,+ error,+ statusMessage,+ appVersion,+ persistence,+ loadRecent,+ initialize,+} = useAppInitialization()++const updaterClient = new UpdaterClient()++const showPortableWelcome = ref(false)+const currentDirectory = ref(".")++const portableSettings = reactive<PortableSettings>({+ disableUpdateNotifications: false,+ autoSkipWelcome: false,+})++watch(+ portableSettings,+ (newValue) => {+ console.log("portableSettings changed:", newValue)+ },+ { deep: true }+)++const onUpdateNotificationsChange = () => {+ console.log(+ "Update notifications checkbox changed:",+ portableSettings.disableUpdateNotifications+ )+}++const onAutoSkipChange = () => {+ console.log("Auto skip checkbox changed:", portableSettings.autoSkipWelcome)+}++const openDataMigrationDocs = () => {+ Io.openExternalLink({+ url: "https://docs.hoppscotch.io/documentation/clients/desktop",+ })+}++const closeApp = async () => {+ try {+ await close({ windowLabel: "main" })+ } catch (err) {+ console.error("Failed to close app:", err)+ }+}++const handlePortableWelcomeContinue = async () => {+ try {+ console.log(+ "About to save portable settings:",+ JSON.stringify(portableSettings)+ )++ const settingsToSave: PortableSettings = {+ disableUpdateNotifications: portableSettings.disableUpdateNotifications,+ autoSkipWelcome: portableSettings.autoSkipWelcome,+ }++ console.log("Saving portable settings:", settingsToSave)+ await persistence.setPortableSettings(settingsToSave)++ const savedSettings = await persistence.getPortableSettings()+ console.log("Verified saved settings:", savedSettings)++ showPortableWelcome.value = false+ await loadRecent()+ } catch (error) {+ console.error("Failed to save portable settings:", error)+ showPortableWelcome.value = false+ await loadRecent()+ }+}++const checkForUpdatesPortable = async () => {+ console.log("Checking portable updates, current settings:", portableSettings)++ if (portableSettings.disableUpdateNotifications) {+ console.log("Update notifications disabled for portable mode")+ return+ }++ statusMessage.value = "Checking for updates..."++ try {+ await updaterClient.checkForUpdates(true)+ console.log("Portable update check completed")+ } catch (err) {+ console.error("Error checking for portable updates:", err)+ }+}++const initializePortableMode = async () => {+ try {+ const latestDir = await invoke<string>("get_latest_dir")+ // NOTE: This is just to show where the files can be.+ // This can be flaky sometimes, but should be good enough regardless.+ const basePath = latestDir.replace(/[\\\/]latest$/, "")+ currentDirectory.value = basePath+ } catch (err) {+ console.error("Failed to get latest directory:", err)+ currentDirectory.value = "."+ }++ const settings = await persistence.getPortableSettings()+ console.log("Loaded portable settings:", settings)++ portableSettings.disableUpdateNotifications =+ settings.disableUpdateNotifications+ portableSettings.autoSkipWelcome = settings.autoSkipWelcome++ console.log("Updated reactive portableSettings:", portableSettings)++ await checkForUpdatesPortable()++ if (!settings.autoSkipWelcome) {+ console.log("Showing portable welcome screen")+ showPortableWelcome.value = true+ return+ }++ console.log("Auto-skipping welcome screen")+ await loadRecent()+}++onMounted(async () => {+ // Listen to update events (mainly for error handling)+ // Checkout `updater.rs` for more info.+ await updaterClient.listenToUpdates((event: UpdateEvent) => {+ switch (event.type) {+ case "Error":+ console.error("Update error:", event.message)+ // For portable mode, errors are already handled by native dialogs,+ // see `updater.rs`.+ break+ }+ })++ await initialize(initializePortableMode)+})++onUnmounted(() => {+ updaterClient.stopListening()+})+</script>diff --git a/packages/hoppscotch-desktop/src/views/StandardHome.vue b/packages/hoppscotch-desktop/src/views/StandardHome.vuenew file mode 100644index 000000000..e0a89e3aa--- /dev/null+++ b/packages/hoppscotch-desktop/src/views/StandardHome.vue@@ -0,0 +1,179 @@+<template>+ <div+ class="flex flex-col items-center justify-center w-full h-screen bg-primary"+ >+ <div class="flex flex-col items-center space-y-6 max-w-md text-center">+ <AppHeader />++ <LoadingState+ v-if="appState === AppState.LOADING"+ :message="statusMessage"+ />++ <UpdateFlow+ v-else-if="+ appState === AppState.UPDATE_AVAILABLE ||+ appState === AppState.UPDATE_IN_PROGRESS ||+ appState === AppState.UPDATE_READY+ "+ :state="updateFlowState"+ :message="updateMessage"+ :progress="downloadProgress"+ :show-progress="true"+ :show-cancel="appState === AppState.UPDATE_AVAILABLE"+ @install="installUpdate"+ @restart="restartApp"+ @skip="skipUpdate"+ @cancel="cancelUpdate"+ />++ <ErrorState+ v-else-if="appState === AppState.ERROR"+ :error="error"+ @retry="initialize"+ />++ <VersionInfo :version="appVersion" />+ </div>+ </div>+</template>++<script setup lang="ts">+import { ref, computed, onMounted, onUnmounted } from "vue"++import {+ useAppInitialization,+ AppState,+} from "~/composables/useAppInitialization"+import {+ UpdaterClient,+ type UpdateEvent,+ type DownloadProgress,+} from "~/services/updater.client"++import AppHeader from "./shared/AppHeader.vue"+import LoadingState from "./shared/LoadingState.vue"+import UpdateFlow from "./shared/UpdateFlow.vue"+import ErrorState from "./shared/ErrorState.vue"+import VersionInfo from "./shared/VersionInfo.vue"++const { appState, error, statusMessage, appVersion, loadRecent, initialize } =+ useAppInitialization()++const updaterClient = new UpdaterClient()++const updateMessage = ref("")+const downloadProgress = ref<DownloadProgress>({+ downloaded: 0,+ total: undefined,+ percentage: 0,+})++const updateFlowState = computed(() => {+ switch (appState.value) {+ case AppState.UPDATE_AVAILABLE:+ return "available"+ case AppState.UPDATE_IN_PROGRESS:+ return downloadProgress.value.percentage < 100+ ? "downloading"+ : "installing"+ case AppState.UPDATE_READY:+ return "ready"+ default:+ return "available"+ }+})++const installUpdate = async () => {+ try {+ appState.value = AppState.UPDATE_IN_PROGRESS+ await updaterClient.downloadAndInstall()+ } catch (err) {+ const errorMessage = err instanceof Error ? err.message : String(err)+ error.value = `Failed to install update: ${errorMessage}`+ appState.value = AppState.ERROR+ }+}++const skipUpdate = async () => {+ await loadRecent()+}++const restartApp = async () => {+ try {+ await updaterClient.restart()+ } catch (err) {+ const errorMessage = err instanceof Error ? err.message : String(err)+ error.value = `Failed to restart app: ${errorMessage}`+ appState.value = AppState.ERROR+ }+}++const cancelUpdate = async () => {+ try {+ await updaterClient.cancel()+ await loadRecent()+ } catch (err) {+ console.error("Failed to cancel update:", err)+ await loadRecent()+ }+}++const checkForUpdates = async () => {+ try {+ statusMessage.value = "Checking for updates..."+ const updateInfo = await updaterClient.checkForUpdates(false)++ if (updateInfo.available) {+ console.log("Updates available (standard)")+ updateMessage.value =+ updateInfo.releaseNotes ||+ `Version ${updateInfo.latestVersion} is available`+ appState.value = AppState.UPDATE_AVAILABLE+ return true+ }++ return false+ } catch (err) {+ console.error("Error checking for updates:", err)+ // NOTE: No need to show error for update check failures, just continue,+ // because `check()` tends to fail quite often due to inexplicable reasons,+ // `updater.rs` is far more stable options so continuing will+ // let the Rust side handle this.+ return false+ }+}++const initializeStandardMode = async () => {+ const hasUpdates = await checkForUpdates()+ if (!hasUpdates) {+ await loadRecent()+ }+}++onMounted(async () => {+ await updaterClient.listenToUpdates((event: UpdateEvent) => {+ switch (event.type) {+ case "DownloadProgress":+ downloadProgress.value = event.progress+ break+ case "DownloadCompleted":+ appState.value = AppState.UPDATE_IN_PROGRESS+ break+ case "RestartRequired":+ appState.value = AppState.UPDATE_READY+ break+ case "Error":+ error.value = event.message+ appState.value = AppState.ERROR+ break+ }+ })++ await initialize(initializeStandardMode)+})++onUnmounted(() => {+ updaterClient.stopListening()+})+</script>diff --git a/packages/hoppscotch-desktop/src/views/shared/AppHeader.vue b/packages/hoppscotch-desktop/src/views/shared/AppHeader.vuenew file mode 100644index 000000000..b6a7a5afb--- /dev/null+++ b/packages/hoppscotch-desktop/src/views/shared/AppHeader.vue@@ -0,0 +1,21 @@+<template>+ <div class="flex items-center space-x-4">+ <img src="/logo.svg" alt="Hoppscotch" class="h-7 w-7" />+ <div class="flex flex-col items-start">+ <h1 class="text-2xl font-semibold text-secondaryDark">Hoppscotch</h1>+ <p class="text-secondary text-sm">+ Desktop {{ mode ? `(${mode})` : "" }}+ </p>+ </div>+ </div>+</template>++<script setup lang="ts">+interface Props {+ mode?: string+}++withDefaults(defineProps<Props>(), {+ mode: "",+})+</script>diff --git a/packages/hoppscotch-desktop/src/views/shared/ErrorState.vue b/packages/hoppscotch-desktop/src/views/shared/ErrorState.vuenew file mode 100644index 000000000..fb1fdc657--- /dev/null+++ b/packages/hoppscotch-desktop/src/views/shared/ErrorState.vue@@ -0,0 +1,30 @@+<template>+ <div class="flex flex-col items-center space-y-4">+ <IconLucideAlertCircle class="h-16 w-16 text-red-500" />+ <div class="text-center">+ <h2 class="text-xl font-semibold text-secondaryDark">+ Something went wrong+ </h2>+ <p class="text-red-500 mt-2">{{ error }}</p>+ </div>+ <HoppButtonPrimary+ label="Try Again"+ :icon="IconLucideRefreshCw"+ @click="$emit('retry')"+ />+ </div>+</template>++<script setup lang="ts">+import IconLucideAlertCircle from "~icons/lucide/alert-circle"+import IconLucideRefreshCw from "~icons/lucide/refresh-cw"++interface Props {+ error: string+}++defineProps<Props>()+defineEmits<{+ retry: []+}>()+</script>diff --git a/packages/hoppscotch-desktop/src/views/shared/LoadingState.vue b/packages/hoppscotch-desktop/src/views/shared/LoadingState.vuenew file mode 100644index 000000000..6fb4e2eeb--- /dev/null+++ b/packages/hoppscotch-desktop/src/views/shared/LoadingState.vue@@ -0,0 +1,14 @@+<template>+ <div class="flex flex-col items-center space-y-4">+ <HoppSmartSpinner />+ <p class="text-secondaryDark">{{ message }}</p>+ </div>+</template>++<script setup lang="ts">+interface Props {+ message: string+}++defineProps<Props>()+</script>diff --git a/packages/hoppscotch-desktop/src/views/shared/UpdateFlow.vue b/packages/hoppscotch-desktop/src/views/shared/UpdateFlow.vuenew file mode 100644index 000000000..71d47852c--- /dev/null+++ b/packages/hoppscotch-desktop/src/views/shared/UpdateFlow.vue@@ -0,0 +1,111 @@+<template>+ <div class="flex flex-col items-center space-y-4">+ <IconLucideDownload class="h-16 w-16 text-accent" />+ <div class="text-center">+ <h2 class="text-xl font-semibold text-secondaryDark">Update Available</h2>+ <p class="text-secondary mt-1">+ {{ message || "A new version of Hoppscotch is available" }}+ </p>+ </div>++ <div+ v-if="showProgress && progress && progress.total && progress.downloaded"+ class="w-full"+ >+ <div class="w-full bg-primaryLight rounded-full h-2.5">+ <div+ class="bg-accent h-2.5 rounded-full transition-all duration-300"+ :style="{+ width: `${progress.percentage}%`,+ }"+ ></div>+ </div>+ <div class="flex justify-between text-sm text-secondaryLight mt-1">+ <span>{{ Math.round(progress.percentage) }}%</span>+ <span class="text-sm">+ {{ formatBytes(progress.downloaded) }} /+ {{ formatBytes(progress.total) }}+ </span>+ </div>+ </div>++ <div+ v-else-if="showProgress && progress && progress.downloaded > 0"+ class="w-full"+ >+ <div class="w-full bg-primaryLight rounded-full h-2.5">+ <div+ class="bg-accent h-2.5 rounded-full animate-pulse"+ style="width: 100%"+ ></div>+ </div>+ <p class="text-sm text-secondaryLight text-center mt-1">+ Downloaded {{ formatBytes(progress.downloaded) }}+ </p>+ </div>++ <div class="flex space-x-2">+ <HoppButtonPrimary+ v-if="state === 'available'"+ label="Install Update"+ :icon="IconLucideDownload"+ @click="$emit('install')"+ />+ <HoppButtonPrimary+ v-else-if="state === 'ready'"+ label="Restart Now"+ :icon="IconLucideRefreshCw"+ @click="$emit('restart')"+ />+ <HoppButtonSecondary+ v-if="state === 'available'"+ label="Later"+ outline+ @click="$emit('skip')"+ />+ <HoppButtonSecondary+ v-if="showCancel"+ label="Cancel"+ outline+ @click="$emit('cancel')"+ />+ </div>+ </div>+</template>++<script setup lang="ts">+import IconLucideDownload from "~icons/lucide/download"+import IconLucideRefreshCw from "~icons/lucide/refresh-cw"+import type { DownloadProgress } from "~/services/updater.client"++interface Props {+ state: "available" | "downloading" | "installing" | "ready"+ message?: string+ progress?: DownloadProgress+ showProgress?: boolean+ showCancel?: boolean+}++withDefaults(defineProps<Props>(), {+ message: "",+ showProgress: true,+ showCancel: false,+})++defineEmits<{+ install: []+ restart: []+ skip: []+ cancel: []+}>()++const formatBytes = (bytes: number): string => {+ if (bytes === 0) return "0 Bytes"++ const k = 1024+ const sizes = ["Bytes", "KB", "MB", "GB"]+ const i = Math.floor(Math.log(bytes) / Math.log(k))++ return parseFloat((bytes / Math.pow(k, i)).toFixed(2)) + " " + sizes[i]+}+</script>diff --git a/packages/hoppscotch-desktop/src/views/shared/VersionInfo.vue b/packages/hoppscotch-desktop/src/views/shared/VersionInfo.vuenew file mode 100644index 000000000..0406f85b2--- /dev/null+++ b/packages/hoppscotch-desktop/src/views/shared/VersionInfo.vue@@ -0,0 +1,15 @@+<template>+ <div class="text-secondaryLight text-sm mt-4 text-center">+ <p>Version {{ version }}</p>+ <p v-if="dataDirectory" class="text-xs mt-1">Data: {{ dataDirectory }}</p>+ </div>+</template>++<script setup lang="ts">+interface Props {+ version: string+ dataDirectory?: string+}++defineProps<Props>()+</script>diff --git a/packages/hoppscotch-selfhost-desktop/.envrc b/packages/hoppscotch-selfhost-desktop/.envrcdeleted file mode 100644index 5bf8fc159..000000000--- a/packages/hoppscotch-selfhost-desktop/.envrc+++ /dev/null@@ -1,3 +0,0 @@-source_url "https://raw.githubusercontent.com/cachix/devenv/95f329d49a8a5289d31e0982652f7058a189bfca/direnvrc" "sha256-d+8cBpDfDBj41inrADaJt+bDWhOktwslgoP5YiGJ1v0="--use devenv\ No newline at end of filediff --git a/packages/hoppscotch-selfhost-desktop/.gitignore b/packages/hoppscotch-selfhost-desktop/.gitignoredeleted file mode 100644index 8aa22c989..000000000--- a/packages/hoppscotch-selfhost-desktop/.gitignore+++ /dev/null@@ -1,39 +0,0 @@-# Logs-logs-*.log-npm-debug.log*-yarn-debug.log*-yarn-error.log*-pnpm-debug.log*-lerna-debug.log*--node_modules-dist-dist-ssr-*.local--# Editor directories and files-.vscode/*-!.vscode/extensions.json-.idea-.DS_Store-*.suo-*.ntvs*-*.njsproj-*.sln-*.sw?--# Sitemap-.sitemap-gen--# Backend Code generation-src/api/generated-# Devenv-.devenv*-devenv.local.nix--# direnv-.direnv--# pre-commit-.pre-commit-config.yamldiff --git a/packages/hoppscotch-selfhost-desktop/.vscode/extensions.json b/packages/hoppscotch-selfhost-desktop/.vscode/extensions.jsondeleted file mode 100644index cf4385bdd..000000000--- a/packages/hoppscotch-selfhost-desktop/.vscode/extensions.json+++ /dev/null@@ -1,7 +0,0 @@-{- "recommendations": [- "Vue.volar",- "tauri-apps.tauri-vscode",- "rust-lang.rust-analyzer"- ]-}diff --git a/packages/hoppscotch-selfhost-desktop/README.md b/packages/hoppscotch-selfhost-desktop/README.mddeleted file mode 100644index e6b0bd5e8..000000000--- a/packages/hoppscotch-selfhost-desktop/README.md+++ /dev/null@@ -1,16 +0,0 @@-# Tauri + Vue 3 + TypeScript--This template should help get you started developing with Vue 3 and TypeScript in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.--## Recommended IDE Setup--- [VS Code](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) + [Tauri](https://marketplace.visualstudio.com/items?itemName=tauri-apps.tauri-vscode) + [rust-analyzer](https://marketplace.visualstudio.com/items?itemName=rust-lang.rust-analyzer)--## Type Support For `.vue` Imports in TS--Since TypeScript cannot handle type information for `.vue` imports, they are shimmed to be a generic Vue component type by default. In most cases this is fine if you don't really care about component prop types outside of templates. However, if you wish to get actual prop types in `.vue` imports (for example to get props validation when using manual `h(...)` calls), you can enable Volar's Take Over mode by following these steps:--1. Run `Extensions: Show Built-in Extensions` from VS Code's command palette, look for `TypeScript and JavaScript Language Features`, then right click and select `Disable (Workspace)`. By default, Take Over mode will enable itself if the default TypeScript extension is disabled.-2. Reload the VS Code window by running `Developer: Reload Window` from the command palette.--You can learn more about Take Over mode [here](https://github.com/johnsoncodehk/volar/discussions/471).diff --git a/packages/hoppscotch-selfhost-desktop/devenv.lock b/packages/hoppscotch-selfhost-desktop/devenv.lockdeleted file mode 100644index ccb1d8caf..000000000--- a/packages/hoppscotch-selfhost-desktop/devenv.lock+++ /dev/null@@ -1,153 +0,0 @@-{- "nodes": {- "devenv": {- "locked": {- "dir": "src/modules",- "lastModified": 1729681848,- "owner": "cachix",- "repo": "devenv",- "rev": "2634c4c9e9226a3fb54550ad4115df1992d502c5",- "type": "github"- },- "original": {- "dir": "src/modules",- "owner": "cachix",- "repo": "devenv",- "type": "github"- }- },- "fenix": {- "inputs": {- "nixpkgs": [- "nixpkgs"- ],- "rust-analyzer-src": "rust-analyzer-src"- },- "locked": {- "lastModified": 1729751566,- "owner": "nix-community",- "repo": "fenix",- "rev": "f32a2d484091a6dc98220b1f4a2c2d60b7c97c64",- "type": "github"- },- "original": {- "owner": "nix-community",- "repo": "fenix",- "type": "github"- }- },- "flake-compat": {- "flake": false,- "locked": {- "lastModified": 1696426674,- "owner": "edolstra",- "repo": "flake-compat",- "rev": "0f9255e01c2351cc7d116c072cb317785dd33b33",- "type": "github"- },- "original": {- "owner": "edolstra",- "repo": "flake-compat",- "type": "github"- }- },- "gitignore": {- "inputs": {- "nixpkgs": [- "pre-commit-hooks",- "nixpkgs"- ]- },- "locked": {- "lastModified": 1709087332,- "owner": "hercules-ci",- "repo": "gitignore.nix",- "rev": "637db329424fd7e46cf4185293b9cc8c88c95394",- "type": "github"- },- "original": {- "owner": "hercules-ci",- "repo": "gitignore.nix",- "type": "github"- }- },- "nixpkgs": {- "locked": {- "lastModified": 1729690727,- "owner": "NixOS",- "repo": "nixpkgs",- "rev": "be79af5ec63facf6c7709094db72b253c34e1ac2",- "type": "github"- },- "original": {- "owner": "NixOS",- "ref": "nixpkgs-unstable",- "repo": "nixpkgs",- "type": "github"- }- },- "nixpkgs-stable": {- "locked": {- "lastModified": 1729449015,- "owner": "NixOS",- "repo": "nixpkgs",- "rev": "89172919243df199fe237ba0f776c3e3e3d72367",- "type": "github"- },- "original": {- "owner": "NixOS",- "ref": "nixos-24.05",- "repo": "nixpkgs",- "type": "github"- }- },- "pre-commit-hooks": {- "inputs": {- "flake-compat": "flake-compat",- "gitignore": "gitignore",- "nixpkgs": [- "nixpkgs"- ],- "nixpkgs-stable": "nixpkgs-stable"- },- "locked": {- "lastModified": 1729104314,- "owner": "cachix",- "repo": "pre-commit-hooks.nix",- "rev": "3c3e88f0f544d6bb54329832616af7eb971b6be6",- "type": "github"- },- "original": {- "owner": "cachix",- "repo": "pre-commit-hooks.nix",- "type": "github"- }- },- "root": {- "inputs": {- "devenv": "devenv",- "fenix": "fenix",- "nixpkgs": "nixpkgs",- "pre-commit-hooks": "pre-commit-hooks"- }- },- "rust-analyzer-src": {- "flake": false,- "locked": {- "lastModified": 1729715509,- "owner": "rust-lang",- "repo": "rust-analyzer",- "rev": "40492e15d49b89cf409e2c5536444131fac49429",- "type": "github"- },- "original": {- "owner": "rust-lang",- "ref": "nightly",- "repo": "rust-analyzer",- "type": "github"- }- }- },- "root": "root",- "version": 7-}diff --git a/packages/hoppscotch-selfhost-desktop/devenv.nix b/packages/hoppscotch-selfhost-desktop/devenv.nixdeleted file mode 100644index 902e90719..000000000--- a/packages/hoppscotch-selfhost-desktop/devenv.nix+++ /dev/null@@ -1,92 +0,0 @@-{ pkgs, lib, config, inputs, ... }:--{- # https://devenv.sh/packages/- packages = with pkgs; [- git- postgresql_16- # BE and Tauri stuff- libsoup- webkitgtk_4_0- # FE and Node stuff- nodejs_22- nodePackages_latest.typescript-language-server- nodePackages_latest.vls- nodePackages_latest.prisma- prisma-engines- # CI- act- # Cargo- cargo-edit- ];-- # https://devenv.sh/basics/- env = {- APP_GREET = "Hoppscotch";- # NOTE: Setting these `PRISMA_*` environment variable fixes- # Error: Failed to fetch sha256 checksum at https://binaries.prisma.sh/all_commits/<hash>/linux-nixos/libquery_engine.so.node.gz.sha256 - 404 Not Found- # See: https://github.com/prisma/prisma/discussions/3120- PRISMA_QUERY_ENGINE_LIBRARY = "${pkgs.prisma-engines}/lib/libquery_engine.node";- PRISMA_QUERY_ENGINE_BINARY = "${pkgs.prisma-engines}/bin/query-engine";- PRISMA_SCHEMA_ENGINE_BINARY = "${pkgs.prisma-engines}/bin/schema-engine";- };--- # https://devenv.sh/scripts/- scripts = {- hello.exec = "echo hello from $APP_GREET";- e.exec = "emacs";- };-- enterShell = ''- git --version- '';-- # https://devenv.sh/tests/- enterTest = ''- echo "Running tests"- '';-- # https://devenv.sh/integrations/dotenv/- dotenv.enable = true;-- # https://devenv.sh/languages/-- # https://devenv.sh/languages/- languages = {- typescript.enable = true;-- javascript = {- enable = true;- pnpm = {- enable = true;- };- npm = {- enable = true;- };- };-- rust = {- enable = true;- channel = "nightly";- components = [- "rustc"- "cargo"- "clippy"- "rustfmt"- "rust-analyzer"- "llvm-tools-preview"- "rust-src"- "rustc-codegen-cranelift-preview"- ];- };- };-- # https://devenv.sh/pre-commit-hooks/- # pre-commit.hooks.shellcheck.enable = true;-- # https://devenv.sh/processes/- # processes.ping.exec = "ping example.com";-- # See full reference at https://devenv.sh/reference/options/-}diff --git a/packages/hoppscotch-selfhost-desktop/devenv.yaml b/packages/hoppscotch-selfhost-desktop/devenv.yamldeleted file mode 100644index 9ee9ba349..000000000--- a/packages/hoppscotch-selfhost-desktop/devenv.yaml+++ /dev/null@@ -1,23 +0,0 @@-# yaml-language-server: $schema=https://devenv.sh/devenv.schema.json-inputs:- # For NodeJS-22 and above- nixpkgs:- url: github:NixOS/nixpkgs/nixpkgs-unstable- # nixpkgs:- # url: github:cachix/devenv-nixpkgs/rolling- fenix:- url: github:nix-community/fenix- inputs:- nixpkgs:- follows: nixpkgs--# If you're using non-OSS software, you can set allowUnfree to true.-allowUnfree: true--# If you're willing to use a package that's vulnerable-# permittedInsecurePackages:-# - "openssl-1.1.1w"--# If you have more than one devenv you can merge them-#imports:-# - ./backenddiff --git a/packages/hoppscotch-selfhost-desktop/gql-codegen.yml b/packages/hoppscotch-selfhost-desktop/gql-codegen.ymldeleted file mode 100644index 0237c3398..000000000--- a/packages/hoppscotch-selfhost-desktop/gql-codegen.yml+++ /dev/null@@ -1,18 +0,0 @@-overwrite: true-schema: "../../gql-gen/*.gql"-generates:- src/api/generated/graphql.ts:- documents: "src/**/*.graphql"- plugins:- - add:- content: >- /* eslint-disable */- // Auto-generated file (DO NOT EDIT!!!), refer gql-codegen.yml- - typescript- - typescript-operations- - typed-document-node- - typescript-urql-graphcache-- src/api/generated/backend-schema.json:- plugins:- - urql-introspectiondiff --git a/packages/hoppscotch-selfhost-desktop/index.html b/packages/hoppscotch-selfhost-desktop/index.htmldeleted file mode 100644index 6d817ce36..000000000--- a/packages/hoppscotch-selfhost-desktop/index.html+++ /dev/null@@ -1,26 +0,0 @@-<!DOCTYPE html>-<html lang="en">- <head>- <title>Hoppscotch - Open source API development ecosystem</title>- <meta charset="UTF-8" />- <link rel="icon" href="/favicon.ico" />- <meta name="viewport" content="width=device-width, initial-scale=1.0" />- <link rel="apple-touch-icon" href="/icon.png" />- </head>- <body>- <div id="app"></div>- <script>- // Shims to make swagger-parser package work- window.global = window- </script>- <script type="module">- import { Buffer } from "buffer"- import process from "process"-- // // Shims to make postman-collection work- window.Buffer = Buffer- window.process = process- </script>- <script type="module" src="/src/main.ts"></script>- </body>-</html>\ No newline at end of filediff --git a/packages/hoppscotch-selfhost-desktop/meta.ts b/packages/hoppscotch-selfhost-desktop/meta.tsdeleted file mode 100644index 529fbcb1d..000000000--- a/packages/hoppscotch-selfhost-desktop/meta.ts+++ /dev/null@@ -1,118 +0,0 @@-import { IHTMLTag } from "vite-plugin-html-config"--export const APP_INFO = {- name: "Hoppscotch",- shortDescription: "Open source API development ecosystem",- description:- "Helps you create requests faster, saving precious time on development.",- keywords:- "hoppscotch, hopp scotch, hoppscotch online, hoppscotch app, postwoman, postwoman chrome, postwoman online, postwoman for mac, postwoman app, postwoman for windows, postwoman google chrome, postwoman chrome app, get postwoman, postwoman web, postwoman android, postwoman app for chrome, postwoman mobile app, postwoman web app, api, request, testing, tool, rest, websocket, sse, graphql, socketio",- app: {- background: "#202124",- },- social: {- twitter: "@hoppscotch_io",- },-} as const--export const META_TAGS = (env: Record<string, string>): IHTMLTag[] => [- {- name: "keywords",- content: APP_INFO.keywords,- },- {- name: "X-UA-Compatible",- content: "IE=edge, chrome=1",- },- {- name: "name",- content: `${APP_INFO.name} • ${APP_INFO.shortDescription}`,- },- {- name: "description",- content: APP_INFO.description,- },- {- name: "image",- content: `${env.VITE_BASE_URL}/banner.png`,- },- // Open Graph tags- {- name: "og:title",- content: `${APP_INFO.name} • ${APP_INFO.shortDescription}`,- },- {- name: "og:description",- content: APP_INFO.description,- },- {- name: "og:image",- content: `${env.VITE_BASE_URL}/banner.png`,- },- // Twitter tags- {- name: "twitter:card",- content: "summary_large_image",- },- {- name: "twitter:site",- content: APP_INFO.social.twitter,- },- {- name: "twitter:creator",- content: APP_INFO.social.twitter,- },- {- name: "twitter:title",- content: `${APP_INFO.name} • ${APP_INFO.shortDescription}`,- },- {- name: "twitter:description",- content: APP_INFO.description,- },- {- name: "twitter:image",- content: `${env.VITE_BASE_URL}/banner.png`,- },- // Add to homescreen for Chrome on Android. Fallback for PWA (handled by nuxt)- {- name: "application-name",- content: APP_INFO.name,- },- // Windows phone tile icon- {- name: "msapplication-TileImage",- content: `${env.VITE_BASE_URL}/icon.png`,- },- {- name: "msapplication-TileColor",- content: APP_INFO.app.background,- },- {- name: "msapplication-tap-highlight",- content: "no",- },- // iOS Safari- {- name: "apple-mobile-web-app-title",- content: APP_INFO.name,- },- {- name: "apple-mobile-web-app-capable",- content: "yes",- },- {- name: "apple-mobile-web-app-status-bar-style",- content: "black-translucent",- },- // PWA- {- name: "theme-color",- content: APP_INFO.app.background,- },- {- name: "mask-icon",- content: "/icon.png",- color: APP_INFO.app.background,- },-]\ No newline at end of filediff --git a/packages/hoppscotch-selfhost-desktop/package.json b/packages/hoppscotch-selfhost-desktop/package.jsondeleted file mode 100644index e14f39c29..000000000--- a/packages/hoppscotch-selfhost-desktop/package.json+++ /dev/null@@ -1,86 +0,0 @@-{- "name": "@hoppscotch/selfhost-desktop",- "private": true,- "version": "2025.1.1",- "type": "module",- "scripts": {- "dev:vite": "vite",- "dev:gql-codegen": "graphql-codegen --require dotenv/config --config gql-codegen.yml dotenv_config_path=\"../../.env\" --watch",- "dev": "pnpm exec npm-run-all -p -l dev:*",- "build": "node --max_old_space_size=4096 ./node_modules/vite/bin/vite.js build",- "preview": "vite preview",- "tauri": "tauri",- "gql-codegen": "graphql-codegen --require dotenv/config --config gql-codegen.yml dotenv_config_path=\"../../.env\""- },- "dependencies": {- "@fontsource-variable/inter": "5.2.8",- "@fontsource-variable/material-symbols-rounded": "5.2.24",- "@fontsource-variable/roboto-mono": "5.2.8",- "@hoppscotch/common": "workspace:^",- "@hoppscotch/data": "workspace:^",- "@platform/auth": "0.1.106",- "@tauri-apps/api": "1.5.1",- "@tauri-apps/cli": "1.5.6",- "@vueuse/core": "10.5.0",- "axios": "1.8.2",- "buffer": "6.0.3",- "dioc": "3.0.2",- "environments.api": "link:@platform/environments/environments.api",- "event": "link:@tauri-apps/api/event",- "fp-ts": "2.16.1",- "lodash-es": "4.17.21",- "process": "0.11.10",- "rxjs": "7.8.1",- "shell": "link:@tauri-apps/api/shell",- "stream-browserify": "3.0.0",- "tauri": "link:@tauri-apps/api/tauri",- "tauri-plugin-store-api": "0.0.0",- "util": "0.12.5",- "verzod": "0.3.0",- "vue": "3.5.22",- "workbox-window": "6.6.0",- "zod": "3.25.32"- },- "devDependencies": {- "@graphql-codegen/add": "5.0.0",- "@graphql-codegen/cli": "5.0.0",- "@graphql-codegen/typed-document-node": "5.0.1",- "@graphql-codegen/typescript": "4.0.1",- "@graphql-codegen/typescript-operations": "4.0.1",- "@graphql-codegen/typescript-urql-graphcache": "2.4.5",- "@graphql-codegen/urql-introspection": "2.2.1",- "@graphql-typed-document-node/core": "3.2.0",- "@iconify-json/lucide": "1.2.68",- "@intlify/unplugin-vue-i18n": "6.0.4",- "@rushstack/eslint-patch": "1.14.0",- "@types/lodash-es": "4.17.10",- "@types/node": "24.9.1",- "@typescript-eslint/eslint-plugin": "8.44.1",- "@typescript-eslint/parser": "8.44.1",- "@vitejs/plugin-legacy": "2.3.0",- "@vitejs/plugin-vue": "4.3.1",- "@vue/eslint-config-typescript": "11.0.3",- "autoprefixer": "10.4.16",- "cross-env": "10.1.0",- "dotenv": "17.2.3",- "eslint": "8.47.0",- "eslint-plugin-prettier": "4.2.1",- "eslint-plugin-vue": "10.5.1",- "npm-run-all": "4.1.5",- "postcss": "8.4.32",- "tailwindcss": "3.3.6",- "typescript": "5.9.3",- "unplugin-fonts": "1.1.1",- "unplugin-icons": "0.14.9",- "unplugin-vue-components": "0.21.0",- "vite": "4.5.0",- "vite-plugin-html-config": "1.0.11",- "vite-plugin-inspect": "0.7.38",- "vite-plugin-pages": "0.26.0",- "vite-plugin-pages-sitemap": "1.6.1",- "vite-plugin-pwa": "1.1.0",- "vite-plugin-static-copy": "0.12.0",- "vite-plugin-vue-layouts": "0.7.0",- "vue-tsc": "1.8.8"- }-}diff --git a/packages/hoppscotch-selfhost-desktop/postcss.config.cjs b/packages/hoppscotch-selfhost-desktop/postcss.config.cjsdeleted file mode 100644index e305dd92a..000000000--- a/packages/hoppscotch-selfhost-desktop/postcss.config.cjs+++ /dev/null@@ -1,8 +0,0 @@-const config = {- plugins: {- tailwindcss: {},- autoprefixer: {},- },-};--module.exports = config;diff --git a/packages/hoppscotch-selfhost-desktop/public/tauri.svg b/packages/hoppscotch-selfhost-desktop/public/tauri.svgdeleted file mode 100644index 31b62c928..000000000--- a/packages/hoppscotch-selfhost-desktop/public/tauri.svg+++ /dev/null@@ -1,6 +0,0 @@-<svg width="206" height="231" viewBox="0 0 206 231" fill="none" xmlns="http://www.w3.org/2000/svg">-<path d="M143.143 84C143.143 96.1503 133.293 106 121.143 106C108.992 106 99.1426 96.1503 99.1426 84C99.1426 71.8497 108.992 62 121.143 62C133.293 62 143.143 71.8497 143.143 84Z" fill="#FFC131"/>-<ellipse cx="84.1426" cy="147" rx="22" ry="22" transform="rotate(180 84.1426 147)" fill="#24C8DB"/>-<path fill-rule="evenodd" clip-rule="evenodd" d="M166.738 154.548C157.86 160.286 148.023 164.269 137.757 166.341C139.858 160.282 141 153.774 141 147C141 144.543 140.85 142.121 140.558 139.743C144.975 138.204 149.215 136.139 153.183 133.575C162.73 127.404 170.292 118.608 174.961 108.244C179.63 97.8797 181.207 86.3876 179.502 75.1487C177.798 63.9098 172.884 53.4021 165.352 44.8883C157.82 36.3744 147.99 30.2165 137.042 27.1546C126.095 24.0926 114.496 24.2568 103.64 27.6274C92.7839 30.998 83.1319 37.4317 75.8437 46.1553C74.9102 47.2727 74.0206 48.4216 73.176 49.5993C61.9292 50.8488 51.0363 54.0318 40.9629 58.9556C44.2417 48.4586 49.5653 38.6591 56.679 30.1442C67.0505 17.7298 80.7861 8.57426 96.2354 3.77762C111.685 -1.01901 128.19 -1.25267 143.769 3.10474C159.348 7.46215 173.337 16.2252 184.056 28.3411C194.775 40.457 201.767 55.4101 204.193 71.404C206.619 87.3978 204.374 103.752 197.73 118.501C191.086 133.25 180.324 145.767 166.738 154.548ZM41.9631 74.275L62.5557 76.8042C63.0459 72.813 63.9401 68.9018 65.2138 65.1274C57.0465 67.0016 49.2088 70.087 41.9631 74.275Z" fill="#FFC131"/>-<path fill-rule="evenodd" clip-rule="evenodd" d="M38.4045 76.4519C47.3493 70.6709 57.2677 66.6712 67.6171 64.6132C65.2774 70.9669 64 77.8343 64 85.0001C64 87.1434 64.1143 89.26 64.3371 91.3442C60.0093 92.8732 55.8533 94.9092 51.9599 97.4256C42.4128 103.596 34.8505 112.392 30.1816 122.756C25.5126 133.12 23.9357 144.612 25.6403 155.851C27.3449 167.09 32.2584 177.598 39.7906 186.112C47.3227 194.626 57.153 200.784 68.1003 203.846C79.0476 206.907 90.6462 206.743 101.502 203.373C112.359 200.002 122.011 193.568 129.299 184.845C130.237 183.722 131.131 182.567 131.979 181.383C143.235 180.114 154.132 176.91 164.205 171.962C160.929 182.49 155.596 192.319 148.464 200.856C138.092 213.27 124.357 222.426 108.907 227.222C93.458 232.019 76.9524 232.253 61.3736 227.895C45.7948 223.538 31.8055 214.775 21.0867 202.659C10.3679 190.543 3.37557 175.59 0.949823 159.596C-1.47592 143.602 0.768139 127.248 7.41237 112.499C14.0566 97.7497 24.8183 85.2327 38.4045 76.4519ZM163.062 156.711L163.062 156.711C162.954 156.773 162.846 156.835 162.738 156.897C162.846 156.835 162.954 156.773 163.062 156.711Z" fill="#24C8DB"/>-</svg>diff --git a/packages/hoppscotch-selfhost-desktop/public/vite.svg b/packages/hoppscotch-selfhost-desktop/public/vite.svgdeleted file mode 100644index e7b8dfb1b..000000000--- a/packages/hoppscotch-selfhost-desktop/public/vite.svg+++ /dev/null@@ -1 +0,0 @@-<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>\ No newline at end of filediff --git a/packages/hoppscotch-selfhost-desktop/src-tauri/.gitignore b/packages/hoppscotch-selfhost-desktop/src-tauri/.gitignoredeleted file mode 100644index f4dfb82b2..000000000--- a/packages/hoppscotch-selfhost-desktop/src-tauri/.gitignore+++ /dev/null@@ -1,4 +0,0 @@-# Generated by Cargo-# will have compiled files and executables-/target/-diff --git a/packages/hoppscotch-selfhost-desktop/src-tauri/Cargo.lock b/packages/hoppscotch-selfhost-desktop/src-tauri/Cargo.lockdeleted file mode 100644index c5effc8ab..000000000--- a/packages/hoppscotch-selfhost-desktop/src-tauri/Cargo.lock+++ /dev/null@@ -1,4752 +0,0 @@-# This file is automatically @generated by Cargo.-# It is not intended for manual editing.-version = 4--[[package]]-name = "addr2line"-version = "0.24.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "dfbe277e56a376000877090da837660b4427aad530e3028d44e0bffe4f89a1c1"-dependencies = [- "gimli",-]--[[package]]-name = "adler2"-version = "2.0.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "512761e0bb2578dd7380c6baaa0f4ce03e84f95e960231d1dec8bf4d7d6e2627"--[[package]]-name = "aho-corasick"-version = "1.1.3"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "8e60d3430d3a69478ad0993f19238d2df97c507009a52b3c10addcd7f6bcb916"-dependencies = [- "memchr",-]--[[package]]-name = "alloc-no-stdlib"-version = "2.0.4"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "cc7bb162ec39d46ab1ca8c77bf72e890535becd1751bb45f64c597edb4c8c6b3"--[[package]]-name = "alloc-stdlib"-version = "0.2.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "94fb8275041c72129eb51b7d0322c29b8387a0386127718b096429201a5d6ece"-dependencies = [- "alloc-no-stdlib",-]--[[package]]-name = "android-tzdata"-version = "0.1.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "e999941b234f3131b00bc13c22d06e8c5ff726d1b6318ac7eb276997bbb4fef0"--[[package]]-name = "android_system_properties"-version = "0.1.5"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "819e7219dbd41043ac279b19830f2efc897156490d7fd6ea916720117ee66311"-dependencies = [- "libc",-]--[[package]]-name = "anstream"-version = "0.6.15"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "64e15c1ab1f89faffbf04a634d5e1962e9074f2741eef6d97f3c4e322426d526"-dependencies = [- "anstyle",- "anstyle-parse",- "anstyle-query",- "anstyle-wincon",- "colorchoice",- "is_terminal_polyfill",- "utf8parse",-]--[[package]]-name = "anstyle"-version = "1.0.8"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "1bec1de6f59aedf83baf9ff929c98f2ad654b97c9510f4e70cf6f661d49fd5b1"--[[package]]-name = "anstyle-parse"-version = "0.2.5"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "eb47de1e80c2b463c735db5b217a0ddc39d612e7ac9e2e96a5aed1f57616c1cb"-dependencies = [- "utf8parse",-]--[[package]]-name = "anstyle-query"-version = "1.1.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "6d36fc52c7f6c869915e99412912f22093507da8d9e942ceaf66fe4b7c14422a"-dependencies = [- "windows-sys 0.52.0",-]--[[package]]-name = "anstyle-wincon"-version = "3.0.4"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "5bf74e1b6e971609db8ca7a9ce79fd5768ab6ae46441c572e46cf596f59e57f8"-dependencies = [- "anstyle",- "windows-sys 0.52.0",-]--[[package]]-name = "anyhow"-version = "1.0.91"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "c042108f3ed77fd83760a5fd79b53be043192bb3b9dba91d8c574c0ada7850c8"--[[package]]-name = "atk"-version = "0.15.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "2c3d816ce6f0e2909a96830d6911c2aff044370b1ef92d7f267b43bae5addedd"-dependencies = [- "atk-sys",- "bitflags 1.3.2",- "glib",- "libc",-]--[[package]]-name = "atk-sys"-version = "0.15.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "58aeb089fb698e06db8089971c7ee317ab9644bade33383f63631437b03aafb6"-dependencies = [- "glib-sys",- "gobject-sys",- "libc",- "system-deps 6.2.2",-]--[[package]]-name = "autocfg"-version = "1.4.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "ace50bade8e6234aa140d9a2f552bbee1db4d353f69b8217bc503490fc1a9f26"--[[package]]-name = "backtrace"-version = "0.3.74"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "8d82cb332cdfaed17ae235a638438ac4d4839913cc2af585c3c6746e8f8bee1a"-dependencies = [- "addr2line",- "cfg-if",- "libc",- "miniz_oxide",- "object",- "rustc-demangle",- "windows-targets 0.52.6",-]--[[package]]-name = "base64"-version = "0.13.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "9e1b586273c5702936fe7b7d6896644d8be71e6314cfe09d3167c95f712589e8"--[[package]]-name = "base64"-version = "0.21.7"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "9d297deb1925b89f2ccc13d7635fa0714f12c87adce1c75356b39ca9b7178567"--[[package]]-name = "base64"-version = "0.22.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6"--[[package]]-name = "bincode"-version = "1.3.3"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "b1f45e9417d87227c7a56d22e471c6206462cba514c7590c09aff4cf6d1ddcad"-dependencies = [- "serde",-]--[[package]]-name = "bitflags"-version = "1.3.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"--[[package]]-name = "bitflags"-version = "2.6.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "b048fb63fd8b5923fc5aa7b340d8e156aec7ec02f0c78fa8a6ddc2613f6f71de"--[[package]]-name = "block"-version = "0.1.6"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "0d8c1fef690941d3e7788d328517591fecc684c084084702d6ff1641e993699a"--[[package]]-name = "block-buffer"-version = "0.10.4"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "3078c7629b62d3f0439517fa394996acacc5cbc91c5a20d8c658e77abd503a71"-dependencies = [- "generic-array",-]--[[package]]-name = "brotli"-version = "6.0.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "74f7971dbd9326d58187408ab83117d8ac1bb9c17b085fdacd1cf2f598719b6b"-dependencies = [- "alloc-no-stdlib",- "alloc-stdlib",- "brotli-decompressor",-]--[[package]]-name = "brotli-decompressor"-version = "4.0.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "9a45bd2e4095a8b518033b128020dd4a55aab1c0a381ba4404a472630f4bc362"-dependencies = [- "alloc-no-stdlib",- "alloc-stdlib",-]--[[package]]-name = "bstr"-version = "1.10.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "40723b8fb387abc38f4f4a37c09073622e41dd12327033091ef8950659e6dc0c"-dependencies = [- "memchr",- "serde",-]--[[package]]-name = "bumpalo"-version = "3.16.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "79296716171880943b8470b5f8d03aa55eb2e645a4874bdbb28adb49162e012c"--[[package]]-name = "bytemuck"-version = "1.19.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "8334215b81e418a0a7bdb8ef0849474f40bb10c8b71f1c4ed315cff49f32494d"--[[package]]-name = "byteorder"-version = "1.5.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b"--[[package]]-name = "bytes"-version = "1.8.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "9ac0150caa2ae65ca5bd83f25c7de183dea78d4d366469f148435e2acfbad0da"-dependencies = [- "serde",-]--[[package]]-name = "cairo-rs"-version = "0.15.12"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "c76ee391b03d35510d9fa917357c7f1855bd9a6659c95a1b392e33f49b3369bc"-dependencies = [- "bitflags 1.3.2",- "cairo-sys-rs",- "glib",- "libc",- "thiserror",-]--[[package]]-name = "cairo-sys-rs"-version = "0.15.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "3c55d429bef56ac9172d25fecb85dc8068307d17acd74b377866b7a1ef25d3c8"-dependencies = [- "glib-sys",- "libc",- "system-deps 6.2.2",-]--[[package]]-name = "cargo_toml"-version = "0.15.3"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "599aa35200ffff8f04c1925aa1acc92fa2e08874379ef42e210a80e527e60838"-dependencies = [- "serde",- "toml 0.7.8",-]--[[package]]-name = "cc"-version = "1.1.31"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "c2e7962b54006dcfcc61cb72735f4d89bb97061dd6a7ed882ec6b8ee53714c6f"-dependencies = [- "shlex",-]--[[package]]-name = "cesu8"-version = "1.1.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "6d43a04d8753f35258c91f8ec639f792891f748a1edbd759cf1dcea3382ad83c"--[[package]]-name = "cfb"-version = "0.7.3"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "d38f2da7a0a2c4ccf0065be06397cc26a81f4e528be095826eee9d4adbb8c60f"-dependencies = [- "byteorder",- "fnv",- "uuid",-]--[[package]]-name = "cfg-expr"-version = "0.9.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "3431df59f28accaf4cb4eed4a9acc66bea3f3c3753aa6cdc2f024174ef232af7"-dependencies = [- "smallvec",-]--[[package]]-name = "cfg-expr"-version = "0.15.8"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "d067ad48b8650848b989a59a86c6c36a995d02d2bf778d45c3c5d57bc2718f02"-dependencies = [- "smallvec",- "target-lexicon",-]--[[package]]-name = "cfg-if"-version = "1.0.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"--[[package]]-name = "chrono"-version = "0.4.38"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "a21f936df1771bf62b77f047b726c4625ff2e8aa607c01ec06e5a05bd8463401"-dependencies = [- "android-tzdata",- "iana-time-zone",- "num-traits",- "serde",- "windows-targets 0.52.6",-]--[[package]]-name = "cocoa"-version = "0.24.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "f425db7937052c684daec3bd6375c8abe2d146dca4b8b143d6db777c39138f3a"-dependencies = [- "bitflags 1.3.2",- "block",- "cocoa-foundation",- "core-foundation",- "core-graphics 0.22.3",- "foreign-types 0.3.2",- "libc",- "objc",-]--[[package]]-name = "cocoa"-version = "0.25.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "f6140449f97a6e97f9511815c5632d84c8aacf8ac271ad77c559218161a1373c"-dependencies = [- "bitflags 1.3.2",- "block",- "cocoa-foundation",- "core-foundation",- "core-graphics 0.23.2",- "foreign-types 0.5.0",- "libc",- "objc",-]--[[package]]-name = "cocoa-foundation"-version = "0.1.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "8c6234cbb2e4c785b456c0644748b1ac416dd045799740356f8363dfe00c93f7"-dependencies = [- "bitflags 1.3.2",- "block",- "core-foundation",- "core-graphics-types",- "libc",- "objc",-]--[[package]]-name = "color_quant"-version = "1.1.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "3d7b894f5411737b7867f4827955924d7c254fc9f4d91a6aad6b097804b1018b"--[[package]]-name = "colorchoice"-version = "1.0.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "d3fd119d74b830634cea2a0f58bbd0d54540518a14397557951e79340abc28c0"--[[package]]-name = "combine"-version = "4.6.7"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "ba5a308b75df32fe02788e748662718f03fde005016435c444eea572398219fd"-dependencies = [- "bytes",- "memchr",-]--[[package]]-name = "convert_case"-version = "0.4.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "6245d59a3e82a7fc217c5828a6692dbc6dfb63a0c8c90495621f7b9d79704a0e"--[[package]]-name = "core-foundation"-version = "0.9.4"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "91e195e091a93c46f7102ec7818a2aa394e1e1771c3ab4825963fa03e45afb8f"-dependencies = [- "core-foundation-sys",- "libc",-]--[[package]]-name = "core-foundation-sys"-version = "0.8.7"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b"--[[package]]-name = "core-graphics"-version = "0.22.3"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "2581bbab3b8ffc6fcbd550bf46c355135d16e9ff2a6ea032ad6b9bf1d7efe4fb"-dependencies = [- "bitflags 1.3.2",- "core-foundation",- "core-graphics-types",- "foreign-types 0.3.2",- "libc",-]--[[package]]-name = "core-graphics"-version = "0.23.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "c07782be35f9e1140080c6b96f0d44b739e2278479f64e02fdab4e32dfd8b081"-dependencies = [- "bitflags 1.3.2",- "core-foundation",- "core-graphics-types",- "foreign-types 0.5.0",- "libc",-]--[[package]]-name = "core-graphics-types"-version = "0.1.3"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "45390e6114f68f718cc7a830514a96f903cccd70d02a8f6d9f643ac4ba45afaf"-dependencies = [- "bitflags 1.3.2",- "core-foundation",- "libc",-]--[[package]]-name = "cpufeatures"-version = "0.2.14"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "608697df725056feaccfa42cffdaeeec3fccc4ffc38358ecd19b243e716a78e0"-dependencies = [- "libc",-]--[[package]]-name = "crc32fast"-version = "1.4.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "a97769d94ddab943e4510d138150169a2758b5ef3eb191a9ee688de3e23ef7b3"-dependencies = [- "cfg-if",-]--[[package]]-name = "crossbeam-channel"-version = "0.5.13"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "33480d6946193aa8033910124896ca395333cae7e2d1113d1fef6c3272217df2"-dependencies = [- "crossbeam-utils",-]--[[package]]-name = "crossbeam-deque"-version = "0.8.5"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "613f8cc01fe9cf1a3eb3d7f488fd2fa8388403e97039e2f73692932e291a770d"-dependencies = [- "crossbeam-epoch",- "crossbeam-utils",-]--[[package]]-name = "crossbeam-epoch"-version = "0.9.18"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "5b82ac4a3c2ca9c3460964f020e1402edd5753411d7737aa39c3714ad1b5420e"-dependencies = [- "crossbeam-utils",-]--[[package]]-name = "crossbeam-utils"-version = "0.8.20"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "22ec99545bb0ed0ea7bb9b8e1e9122ea386ff8a48c0922e43f36d45ab09e0e80"--[[package]]-name = "crypto-common"-version = "0.1.6"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "1bfb12502f3fc46cca1bb51ac28df9d618d813cdc3d2f25b9fe775a34af26bb3"-dependencies = [- "generic-array",- "typenum",-]--[[package]]-name = "cssparser"-version = "0.27.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "754b69d351cdc2d8ee09ae203db831e005560fc6030da058f86ad60c92a9cb0a"-dependencies = [- "cssparser-macros",- "dtoa-short",- "itoa 0.4.8",- "matches",- "phf 0.8.0",- "proc-macro2",- "quote",- "smallvec",- "syn 1.0.109",-]--[[package]]-name = "cssparser-macros"-version = "0.6.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "13b588ba4ac1a99f7f2964d24b3d896ddc6bf847ee3855dbd4366f058cfcd331"-dependencies = [- "quote",- "syn 2.0.85",-]--[[package]]-name = "ctor"-version = "0.2.8"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "edb49164822f3ee45b17acd4a208cfc1251410cf0cad9a833234c9890774dd9f"-dependencies = [- "quote",- "syn 2.0.85",-]--[[package]]-name = "curl"-version = "0.4.47"-source = "git+https://github.com/CuriousCorrelation/curl-rust.git#1ec8079cf527b9cf47cc7a48c68b458affdae273"-dependencies = [- "curl-sys",- "libc",- "openssl-probe",- "openssl-sys",- "socket2",-]--[[package]]-name = "curl-sys"-version = "0.4.77+curl-8.10.1"-source = "git+https://github.com/CuriousCorrelation/curl-rust.git#1ec8079cf527b9cf47cc7a48c68b458affdae273"-dependencies = [- "cc",- "libc",- "libz-sys",- "openssl-sys",- "pkg-config",- "windows-sys 0.52.0",-]--[[package]]-name = "darling"-version = "0.20.10"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "6f63b86c8a8826a49b8c21f08a2d07338eec8d900540f8630dc76284be802989"-dependencies = [- "darling_core",- "darling_macro",-]--[[package]]-name = "darling_core"-version = "0.20.10"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "95133861a8032aaea082871032f5815eb9e98cef03fa916ab4500513994df9e5"-dependencies = [- "fnv",- "ident_case",- "proc-macro2",- "quote",- "strsim",- "syn 2.0.85",-]--[[package]]-name = "darling_macro"-version = "0.20.10"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "d336a2a514f6ccccaa3e09b02d41d35330c07ddf03a62165fcec10bb561c7806"-dependencies = [- "darling_core",- "quote",- "syn 2.0.85",-]--[[package]]-name = "dashmap"-version = "5.5.3"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "978747c1d849a7d2ee5e8adc0159961c48fb7e5db2f06af6723b80123bb53856"-dependencies = [- "cfg-if",- "hashbrown 0.14.5",- "lock_api",- "once_cell",- "parking_lot_core",-]--[[package]]-name = "deranged"-version = "0.3.11"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "b42b6fa04a440b495c8b04d0e71b707c585f83cb9cb28cf8cd0d976c315e31b4"-dependencies = [- "powerfmt",- "serde",-]--[[package]]-name = "derive_more"-version = "0.99.18"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "5f33878137e4dafd7fa914ad4e259e18a4e8e532b9617a2d0150262bf53abfce"-dependencies = [- "convert_case",- "proc-macro2",- "quote",- "rustc_version",- "syn 2.0.85",-]--[[package]]-name = "digest"-version = "0.10.7"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292"-dependencies = [- "block-buffer",- "crypto-common",-]--[[package]]-name = "dirs"-version = "5.0.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "44c45a9d03d6676652bcb5e724c7e988de1acad23a711b5217ab9cbecbec2225"-dependencies = [- "dirs-sys",-]--[[package]]-name = "dirs-next"-version = "2.0.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "b98cf8ebf19c3d1b223e151f99a4f9f0690dca41414773390fc824184ac833e1"-dependencies = [- "cfg-if",- "dirs-sys-next",-]--[[package]]-name = "dirs-sys"-version = "0.4.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "520f05a5cbd335fae5a99ff7a6ab8627577660ee5cfd6a94a6a929b52ff0321c"-dependencies = [- "libc",- "option-ext",- "redox_users",- "windows-sys 0.48.0",-]--[[package]]-name = "dirs-sys-next"-version = "0.1.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "4ebda144c4fe02d1f7ea1a7d9641b6fc6b580adcfa024ae48797ecdeb6825b4d"-dependencies = [- "libc",- "redox_users",- "winapi",-]--[[package]]-name = "dispatch"-version = "0.2.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "bd0c93bb4b0c6d9b77f4435b0ae98c24d17f1c45b2ff844c6151a07256ca923b"--[[package]]-name = "dtoa"-version = "1.0.9"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "dcbb2bf8e87535c23f7a8a321e364ce21462d0ff10cb6407820e8e96dfff6653"--[[package]]-name = "dtoa-short"-version = "0.3.5"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "cd1511a7b6a56299bd043a9c167a6d2bfb37bf84a6dfceaba651168adfb43c87"-dependencies = [- "dtoa",-]--[[package]]-name = "dunce"-version = "1.0.5"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "92773504d58c093f6de2459af4af33faa518c13451eb8f2b5698ed3d36e7c813"--[[package]]-name = "embed-resource"-version = "2.5.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "f4e24052d7be71f0efb50c201557f6fe7d237cfd5a64fd5bcd7fd8fe32dbbffa"-dependencies = [- "cc",- "memchr",- "rustc_version",- "toml 0.8.19",- "vswhom",- "winreg 0.52.0",-]--[[package]]-name = "embed_plist"-version = "1.2.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "4ef6b89e5b37196644d8796de5268852ff179b44e96276cf4290264843743bb7"--[[package]]-name = "encoding_rs"-version = "0.8.35"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "75030f3c4f45dafd7586dd6780965a8c7e8e285a5ecb86713e63a79c5b2766f3"-dependencies = [- "cfg-if",-]--[[package]]-name = "env_filter"-version = "0.1.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "4f2c92ceda6ceec50f43169f9ee8424fe2db276791afde7b2cd8bc084cb376ab"-dependencies = [- "log",- "regex",-]--[[package]]-name = "env_logger"-version = "0.11.5"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "e13fa619b91fb2381732789fc5de83b45675e882f66623b7d8cb4f643017018d"-dependencies = [- "anstream",- "anstyle",- "env_filter",- "humantime",- "log",-]--[[package]]-name = "equivalent"-version = "1.0.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "5443807d6dff69373d433ab9ef5378ad8df50ca6298caf15de6e52e24aaf54d5"--[[package]]-name = "errno"-version = "0.3.9"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "534c5cf6194dfab3db3242765c03bbe257cf92f22b38f6bc0c58d59108a820ba"-dependencies = [- "libc",- "windows-sys 0.52.0",-]--[[package]]-name = "fastrand"-version = "2.1.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "e8c02a5121d4ea3eb16a80748c74f5549a5665e4c21333c6098f283870fbdea6"--[[package]]-name = "fdeflate"-version = "0.3.5"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "d8090f921a24b04994d9929e204f50b498a33ea6ba559ffaa05e04f7ee7fb5ab"-dependencies = [- "simd-adler32",-]--[[package]]-name = "field-offset"-version = "0.3.6"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "38e2275cc4e4fc009b0669731a1e5ab7ebf11f469eaede2bab9309a5b4d6057f"-dependencies = [- "memoffset",- "rustc_version",-]--[[package]]-name = "filetime"-version = "0.2.25"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "35c0522e981e68cbfa8c3f978441a5f34b30b96e146b33cd3359176b50fe8586"-dependencies = [- "cfg-if",- "libc",- "libredox",- "windows-sys 0.59.0",-]--[[package]]-name = "flate2"-version = "1.0.34"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "a1b589b4dc103969ad3cf85c950899926ec64300a1a46d76c03a6072957036f0"-dependencies = [- "crc32fast",- "miniz_oxide",-]--[[package]]-name = "fluent-uri"-version = "0.1.4"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "17c704e9dbe1ddd863da1e6ff3567795087b1eb201ce80d8fa81162e1516500d"-dependencies = [- "bitflags 1.3.2",-]--[[package]]-name = "fnv"-version = "1.0.7"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1"--[[package]]-name = "foreign-types"-version = "0.3.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "f6f339eb8adc052cd2ca78910fda869aefa38d22d5cb648e6485e4d3fc06f3b1"-dependencies = [- "foreign-types-shared 0.1.1",-]--[[package]]-name = "foreign-types"-version = "0.5.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "d737d9aa519fb7b749cbc3b962edcf310a8dd1f4b67c91c4f83975dbdd17d965"-dependencies = [- "foreign-types-macros",- "foreign-types-shared 0.3.1",-]--[[package]]-name = "foreign-types-macros"-version = "0.2.3"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "1a5c6c585bc94aaf2c7b51dd4c2ba22680844aba4c687be581871a6f518c5742"-dependencies = [- "proc-macro2",- "quote",- "syn 2.0.85",-]--[[package]]-name = "foreign-types-shared"-version = "0.1.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "00b0228411908ca8685dba7fc2cdd70ec9990a6e753e89b6ac91a84c40fbaf4b"--[[package]]-name = "foreign-types-shared"-version = "0.3.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "aa9a19cbb55df58761df49b23516a86d432839add4af60fc256da840f66ed35b"--[[package]]-name = "form_urlencoded"-version = "1.2.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "e13624c2627564efccf4934284bdd98cbaa14e79b0b5a141218e507b3a823456"-dependencies = [- "percent-encoding",-]--[[package]]-name = "futf"-version = "0.1.5"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "df420e2e84819663797d1ec6544b13c5be84629e7bb00dc960d6917db2987843"-dependencies = [- "mac",- "new_debug_unreachable",-]--[[package]]-name = "futures-channel"-version = "0.3.31"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "2dff15bf788c671c1934e366d07e30c1814a8ef514e1af724a602e8a2fbe1b10"-dependencies = [- "futures-core",-]--[[package]]-name = "futures-core"-version = "0.3.31"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "05f29059c0c2090612e8d742178b0580d2dc940c837851ad723096f87af6663e"--[[package]]-name = "futures-executor"-version = "0.3.31"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "1e28d1d997f585e54aebc3f97d39e72338912123a67330d723fdbb564d646c9f"-dependencies = [- "futures-core",- "futures-task",- "futures-util",-]--[[package]]-name = "futures-io"-version = "0.3.31"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "9e5c1b78ca4aae1ac06c48a526a655760685149f0d465d21f37abfe57ce075c6"--[[package]]-name = "futures-macro"-version = "0.3.31"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "162ee34ebcb7c64a8abebc059ce0fee27c2262618d7b60ed8faf72fef13c3650"-dependencies = [- "proc-macro2",- "quote",- "syn 2.0.85",-]--[[package]]-name = "futures-sink"-version = "0.3.31"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "e575fab7d1e0dcb8d0c7bcf9a63ee213816ab51902e6d244a95819acacf1d4f7"--[[package]]-name = "futures-task"-version = "0.3.31"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "f90f7dce0722e95104fcb095585910c0977252f286e354b5e3bd38902cd99988"--[[package]]-name = "futures-util"-version = "0.3.31"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "9fa08315bb612088cc391249efdc3bc77536f16c91f6cf495e6fbe85b20a4a81"-dependencies = [- "futures-core",- "futures-io",- "futures-macro",- "futures-sink",- "futures-task",- "memchr",- "pin-project-lite",- "pin-utils",- "slab",-]--[[package]]-name = "fxhash"-version = "0.2.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "c31b6d751ae2c7f11320402d34e41349dd1016f8d5d45e48c4312bc8625af50c"-dependencies = [- "byteorder",-]--[[package]]-name = "gdk"-version = "0.15.4"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "a6e05c1f572ab0e1f15be94217f0dc29088c248b14f792a5ff0af0d84bcda9e8"-dependencies = [- "bitflags 1.3.2",- "cairo-rs",- "gdk-pixbuf",- "gdk-sys",- "gio",- "glib",- "libc",- "pango",-]--[[package]]-name = "gdk-pixbuf"-version = "0.15.11"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "ad38dd9cc8b099cceecdf41375bb6d481b1b5a7cd5cd603e10a69a9383f8619a"-dependencies = [- "bitflags 1.3.2",- "gdk-pixbuf-sys",- "gio",- "glib",- "libc",-]--[[package]]-name = "gdk-pixbuf-sys"-version = "0.15.10"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "140b2f5378256527150350a8346dbdb08fadc13453a7a2d73aecd5fab3c402a7"-dependencies = [- "gio-sys",- "glib-sys",- "gobject-sys",- "libc",- "system-deps 6.2.2",-]--[[package]]-name = "gdk-sys"-version = "0.15.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "32e7a08c1e8f06f4177fb7e51a777b8c1689f743a7bc11ea91d44d2226073a88"-dependencies = [- "cairo-sys-rs",- "gdk-pixbuf-sys",- "gio-sys",- "glib-sys",- "gobject-sys",- "libc",- "pango-sys",- "pkg-config",- "system-deps 6.2.2",-]--[[package]]-name = "gdkwayland-sys"-version = "0.15.3"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "cca49a59ad8cfdf36ef7330fe7bdfbe1d34323220cc16a0de2679ee773aee2c2"-dependencies = [- "gdk-sys",- "glib-sys",- "gobject-sys",- "libc",- "pkg-config",- "system-deps 6.2.2",-]--[[package]]-name = "gdkx11-sys"-version = "0.15.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "b4b7f8c7a84b407aa9b143877e267e848ff34106578b64d1e0a24bf550716178"-dependencies = [- "gdk-sys",- "glib-sys",- "libc",- "system-deps 6.2.2",- "x11",-]--[[package]]-name = "generator"-version = "0.7.5"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "5cc16584ff22b460a382b7feec54b23d2908d858152e5739a120b949293bd74e"-dependencies = [- "cc",- "libc",- "log",- "rustversion",- "windows 0.48.0",-]--[[package]]-name = "generic-array"-version = "0.14.7"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "85649ca51fd72272d7821adaf274ad91c288277713d9c18820d8499a7ff69e9a"-dependencies = [- "typenum",- "version_check",-]--[[package]]-name = "getrandom"-version = "0.1.16"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "8fc3cb4d91f53b50155bdcfd23f6a4c39ae1969c2ae85982b135750cccaf5fce"-dependencies = [- "cfg-if",- "libc",- "wasi 0.9.0+wasi-snapshot-preview1",-]--[[package]]-name = "getrandom"-version = "0.2.15"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "c4567c8db10ae91089c99af84c68c38da3ec2f087c3f82960bcdbf3656b6f4d7"-dependencies = [- "cfg-if",- "libc",- "wasi 0.11.0+wasi-snapshot-preview1",-]--[[package]]-name = "gimli"-version = "0.31.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "07e28edb80900c19c28f1072f2e8aeca7fa06b23cd4169cefe1af5aa3260783f"--[[package]]-name = "gio"-version = "0.15.12"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "68fdbc90312d462781a395f7a16d96a2b379bb6ef8cd6310a2df272771c4283b"-dependencies = [- "bitflags 1.3.2",- "futures-channel",- "futures-core",- "futures-io",- "gio-sys",- "glib",- "libc",- "once_cell",- "thiserror",-]--[[package]]-name = "gio-sys"-version = "0.15.10"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "32157a475271e2c4a023382e9cab31c4584ee30a97da41d3c4e9fdd605abcf8d"-dependencies = [- "glib-sys",- "gobject-sys",- "libc",- "system-deps 6.2.2",- "winapi",-]--[[package]]-name = "glib"-version = "0.15.12"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "edb0306fbad0ab5428b0ca674a23893db909a98582969c9b537be4ced78c505d"-dependencies = [- "bitflags 1.3.2",- "futures-channel",- "futures-core",- "futures-executor",- "futures-task",- "glib-macros",- "glib-sys",- "gobject-sys",- "libc",- "once_cell",- "smallvec",- "thiserror",-]--[[package]]-name = "glib-macros"-version = "0.15.13"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "10c6ae9f6fa26f4fb2ac16b528d138d971ead56141de489f8111e259b9df3c4a"-dependencies = [- "anyhow",- "heck 0.4.1",- "proc-macro-crate",- "proc-macro-error",- "proc-macro2",- "quote",- "syn 1.0.109",-]--[[package]]-name = "glib-sys"-version = "0.15.10"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "ef4b192f8e65e9cf76cbf4ea71fa8e3be4a0e18ffe3d68b8da6836974cc5bad4"-dependencies = [- "libc",- "system-deps 6.2.2",-]--[[package]]-name = "glob"-version = "0.3.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "d2fabcfbdc87f4758337ca535fb41a6d701b65693ce38287d856d1674551ec9b"--[[package]]-name = "globset"-version = "0.4.15"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "15f1ce686646e7f1e19bf7d5533fe443a45dbfb990e00629110797578b42fb19"-dependencies = [- "aho-corasick",- "bstr",- "log",- "regex-automata 0.4.8",- "regex-syntax 0.8.5",-]--[[package]]-name = "gobject-sys"-version = "0.15.10"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "0d57ce44246becd17153bd035ab4d32cfee096a657fc01f2231c9278378d1e0a"-dependencies = [- "glib-sys",- "libc",- "system-deps 6.2.2",-]--[[package]]-name = "gtk"-version = "0.15.5"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "92e3004a2d5d6d8b5057d2b57b3712c9529b62e82c77f25c1fecde1fd5c23bd0"-dependencies = [- "atk",- "bitflags 1.3.2",- "cairo-rs",- "field-offset",- "futures-channel",- "gdk",- "gdk-pixbuf",- "gio",- "glib",- "gtk-sys",- "gtk3-macros",- "libc",- "once_cell",- "pango",- "pkg-config",-]--[[package]]-name = "gtk-sys"-version = "0.15.3"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "d5bc2f0587cba247f60246a0ca11fe25fb733eabc3de12d1965fc07efab87c84"-dependencies = [- "atk-sys",- "cairo-sys-rs",- "gdk-pixbuf-sys",- "gdk-sys",- "gio-sys",- "glib-sys",- "gobject-sys",- "libc",- "pango-sys",- "system-deps 6.2.2",-]--[[package]]-name = "gtk3-macros"-version = "0.15.6"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "684c0456c086e8e7e9af73ec5b84e35938df394712054550e81558d21c44ab0d"-dependencies = [- "anyhow",- "proc-macro-crate",- "proc-macro-error",- "proc-macro2",- "quote",- "syn 1.0.109",-]--[[package]]-name = "h2"-version = "0.3.26"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "81fe527a889e1532da5c525686d96d4c2e74cdd345badf8dfef9f6b39dd5f5e8"-dependencies = [- "bytes",- "fnv",- "futures-core",- "futures-sink",- "futures-util",- "http 0.2.12",- "indexmap 2.6.0",- "slab",- "tokio",- "tokio-util",- "tracing",-]--[[package]]-name = "hashbrown"-version = "0.12.3"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888"--[[package]]-name = "hashbrown"-version = "0.14.5"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "e5274423e17b7c9fc20b6e7e208532f9b19825d82dfd615708b70edd83df41f1"--[[package]]-name = "hashbrown"-version = "0.15.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "1e087f84d4f86bf4b218b927129862374b72199ae7d8657835f1e89000eea4fb"--[[package]]-name = "heck"-version = "0.3.3"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "6d621efb26863f0e9924c6ac577e8275e5e6b77455db64ffa6c65c904e9e132c"-dependencies = [- "unicode-segmentation",-]--[[package]]-name = "heck"-version = "0.4.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "95505c38b4572b2d910cecb0281560f54b440a19336cbbcb27bf6ce6adc6f5a8"--[[package]]-name = "heck"-version = "0.5.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"--[[package]]-name = "hermit-abi"-version = "0.3.9"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "d231dfb89cfffdbc30e7fc41579ed6066ad03abda9e567ccafae602b97ec5024"--[[package]]-name = "hex"-version = "0.4.3"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70"--[[package]]-name = "hex_color"-version = "3.0.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "d37f101bf4c633f7ca2e4b5e136050314503dd198e78e325ea602c327c484ef0"-dependencies = [- "rand 0.8.5",-]--[[package]]-name = "hoppscotch-desktop"-version = "25.1.1"-dependencies = [- "cocoa 0.25.0",- "dashmap",- "env_logger",- "hex_color",- "hoppscotch-relay",- "log",- "objc",- "serde",- "serde_json",- "tauri",- "tauri-build",- "tauri-plugin-deep-link",- "tauri-plugin-store",- "tauri-plugin-window-state",- "thiserror",- "tokio",- "tokio-util",- "url",- "windows 0.52.0",- "winver",-]--[[package]]-name = "hoppscotch-relay"-version = "0.1.1"-dependencies = [- "curl",- "env_logger",- "http 1.1.0",- "log",- "openssl",- "openssl-sys",- "serde",- "serde_json",- "thiserror",- "tokio-util",- "url-escape",-]--[[package]]-name = "html5ever"-version = "0.26.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "bea68cab48b8459f17cf1c944c67ddc572d272d9f2b274140f223ecb1da4a3b7"-dependencies = [- "log",- "mac",- "markup5ever",- "proc-macro2",- "quote",- "syn 1.0.109",-]--[[package]]-name = "http"-version = "0.2.12"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "601cbb57e577e2f5ef5be8e7b83f0f63994f25aa94d673e54a92d5c516d101f1"-dependencies = [- "bytes",- "fnv",- "itoa 1.0.11",-]--[[package]]-name = "http"-version = "1.1.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "21b9ddb458710bc376481b842f5da65cdf31522de232c1ca8146abce2a358258"-dependencies = [- "bytes",- "fnv",- "itoa 1.0.11",-]--[[package]]-name = "http-body"-version = "0.4.6"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "7ceab25649e9960c0311ea418d17bee82c0dcec1bd053b5f9a66e265a693bed2"-dependencies = [- "bytes",- "http 0.2.12",- "pin-project-lite",-]--[[package]]-name = "http-range"-version = "0.1.5"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "21dec9db110f5f872ed9699c3ecf50cf16f423502706ba5c72462e28d3157573"--[[package]]-name = "httparse"-version = "1.9.5"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "7d71d3574edd2771538b901e6549113b4006ece66150fb69c0fb6d9a2adae946"--[[package]]-name = "httpdate"-version = "1.0.3"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "df3b46402a9d5adb4c86a0cf463f42e19994e3ee891101b1841f30a545cb49a9"--[[package]]-name = "humantime"-version = "2.1.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "9a3a5bfb195931eeb336b2a7b4d761daec841b97f947d34394601737a7bba5e4"--[[package]]-name = "hyper"-version = "0.14.31"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "8c08302e8fa335b151b788c775ff56e7a03ae64ff85c548ee820fecb70356e85"-dependencies = [- "bytes",- "futures-channel",- "futures-core",- "futures-util",- "h2",- "http 0.2.12",- "http-body",- "httparse",- "httpdate",- "itoa 1.0.11",- "pin-project-lite",- "socket2",- "tokio",- "tower-service",- "tracing",- "want",-]--[[package]]-name = "hyper-tls"-version = "0.5.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "d6183ddfa99b85da61a140bea0efc93fdf56ceaa041b37d553518030827f9905"-dependencies = [- "bytes",- "hyper",- "native-tls",- "tokio",- "tokio-native-tls",-]--[[package]]-name = "iana-time-zone"-version = "0.1.61"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "235e081f3925a06703c2d0117ea8b91f042756fd6e7a6e5d901e8ca1a996b220"-dependencies = [- "android_system_properties",- "core-foundation-sys",- "iana-time-zone-haiku",- "js-sys",- "wasm-bindgen",- "windows-core",-]--[[package]]-name = "iana-time-zone-haiku"-version = "0.1.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "f31827a206f56af32e590ba56d5d2d085f558508192593743f16b2306495269f"-dependencies = [- "cc",-]--[[package]]-name = "ico"-version = "0.3.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "e3804960be0bb5e4edb1e1ad67afd321a9ecfd875c3e65c099468fd2717d7cae"-dependencies = [- "byteorder",- "png",-]--[[package]]-name = "ident_case"-version = "1.0.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "b9e0384b61958566e926dc50660321d12159025e767c18e043daf26b70104c39"--[[package]]-name = "idna"-version = "0.5.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "634d9b1461af396cad843f47fdba5597a4f9e6ddd4bfb6ff5d85028c25cb12f6"-dependencies = [- "unicode-bidi",- "unicode-normalization",-]--[[package]]-name = "ignore"-version = "0.4.23"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "6d89fd380afde86567dfba715db065673989d6253f42b88179abd3eae47bda4b"-dependencies = [- "crossbeam-deque",- "globset",- "log",- "memchr",- "regex-automata 0.4.8",- "same-file",- "walkdir",- "winapi-util",-]--[[package]]-name = "image"-version = "0.24.9"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "5690139d2f55868e080017335e4b94cb7414274c74f1669c84fb5feba2c9f69d"-dependencies = [- "bytemuck",- "byteorder",- "color_quant",- "num-traits",-]--[[package]]-name = "indexmap"-version = "1.9.3"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "bd070e393353796e801d209ad339e89596eb4c8d430d18ede6a1cced8fafbd99"-dependencies = [- "autocfg",- "hashbrown 0.12.3",- "serde",-]--[[package]]-name = "indexmap"-version = "2.6.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "707907fe3c25f5424cce2cb7e1cbcafee6bdbe735ca90ef77c29e84591e5b9da"-dependencies = [- "equivalent",- "hashbrown 0.15.0",- "serde",-]--[[package]]-name = "infer"-version = "0.13.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "f551f8c3a39f68f986517db0d1759de85881894fdc7db798bd2a9df9cb04b7fc"-dependencies = [- "cfb",-]--[[package]]-name = "instant"-version = "0.1.13"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "e0242819d153cba4b4b05a5a8f2a7e9bbf97b6055b2a002b395c96b5ff3c0222"-dependencies = [- "cfg-if",-]--[[package]]-name = "interprocess"-version = "1.2.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "81f2533f3be42fffe3b5e63b71aeca416c1c3bc33e4e27be018521e76b1f38fb"-dependencies = [- "cfg-if",- "libc",- "rustc_version",- "to_method",- "winapi",-]--[[package]]-name = "ipnet"-version = "2.10.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "ddc24109865250148c2e0f3d25d4f0f479571723792d3802153c60922a4fb708"--[[package]]-name = "is_terminal_polyfill"-version = "1.70.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "7943c866cc5cd64cbc25b2e01621d07fa8eb2a1a23160ee81ce38704e97b8ecf"--[[package]]-name = "itoa"-version = "0.4.8"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "b71991ff56294aa922b450139ee08b3bfc70982c6b2c7562771375cf73542dd4"--[[package]]-name = "itoa"-version = "1.0.11"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "49f1f14873335454500d59611f1cf4a4b0f786f9ac11f4312a78e4cf2566695b"--[[package]]-name = "javascriptcore-rs"-version = "0.16.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "bf053e7843f2812ff03ef5afe34bb9c06ffee120385caad4f6b9967fcd37d41c"-dependencies = [- "bitflags 1.3.2",- "glib",- "javascriptcore-rs-sys",-]--[[package]]-name = "javascriptcore-rs-sys"-version = "0.4.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "905fbb87419c5cde6e3269537e4ea7d46431f3008c5d057e915ef3f115e7793c"-dependencies = [- "glib-sys",- "gobject-sys",- "libc",- "system-deps 5.0.0",-]--[[package]]-name = "jni"-version = "0.20.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "039022cdf4d7b1cf548d31f60ae783138e5fd42013f6271049d7df7afadef96c"-dependencies = [- "cesu8",- "combine",- "jni-sys",- "log",- "thiserror",- "walkdir",-]--[[package]]-name = "jni-sys"-version = "0.3.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "8eaf4bc02d17cbdd7ff4c7438cafcdf7fb9a4613313ad11b4f8fefe7d3fa0130"--[[package]]-name = "js-sys"-version = "0.3.72"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "6a88f1bda2bd75b0452a14784937d796722fdebfe50df998aeb3f0b7603019a9"-dependencies = [- "wasm-bindgen",-]--[[package]]-name = "json-patch"-version = "2.0.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "5b1fb8864823fad91877e6caea0baca82e49e8db50f8e5c9f9a453e27d3330fc"-dependencies = [- "jsonptr",- "serde",- "serde_json",- "thiserror",-]--[[package]]-name = "jsonptr"-version = "0.4.7"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "1c6e529149475ca0b2820835d3dce8fcc41c6b943ca608d32f35b449255e4627"-dependencies = [- "fluent-uri",- "serde",- "serde_json",-]--[[package]]-name = "kuchikiki"-version = "0.8.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "f29e4755b7b995046f510a7520c42b2fed58b77bd94d5a87a8eb43d2fd126da8"-dependencies = [- "cssparser",- "html5ever",- "indexmap 1.9.3",- "matches",- "selectors",-]--[[package]]-name = "lazy_static"-version = "1.5.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe"--[[package]]-name = "libc"-version = "0.2.161"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "8e9489c2807c139ffd9c1794f4af0ebe86a828db53ecdc7fea2111d0fed085d1"--[[package]]-name = "libredox"-version = "0.1.3"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "c0ff37bd590ca25063e35af745c343cb7a0271906fb7b37e4813e8f79f00268d"-dependencies = [- "bitflags 2.6.0",- "libc",- "redox_syscall",-]--[[package]]-name = "libz-sys"-version = "1.1.20"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "d2d16453e800a8cf6dd2fc3eb4bc99b786a9b90c663b8559a5b1a041bf89e472"-dependencies = [- "cc",- "libc",- "pkg-config",- "vcpkg",-]--[[package]]-name = "linux-raw-sys"-version = "0.4.14"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "78b3ae25bc7c8c38cec158d1f2757ee79e9b3740fbc7ccf0e59e4b08d793fa89"--[[package]]-name = "lock_api"-version = "0.4.12"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "07af8b9cdd281b7915f413fa73f29ebd5d55d0d3f0155584dade1ff18cea1b17"-dependencies = [- "autocfg",- "scopeguard",-]--[[package]]-name = "log"-version = "0.4.22"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "a7a70ba024b9dc04c27ea2f0c0548feb474ec5c54bba33a7f72f873a39d07b24"--[[package]]-name = "loom"-version = "0.5.6"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "ff50ecb28bb86013e935fb6683ab1f6d3a20016f123c76fd4c27470076ac30f5"-dependencies = [- "cfg-if",- "generator",- "scoped-tls",- "serde",- "serde_json",- "tracing",- "tracing-subscriber",-]--[[package]]-name = "mac"-version = "0.1.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "c41e0c4fef86961ac6d6f8a82609f55f31b05e4fce149ac5710e439df7619ba4"--[[package]]-name = "malloc_buf"-version = "0.0.6"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "62bb907fe88d54d8d9ce32a3cceab4218ed2f6b7d35617cafe9adf84e43919cb"-dependencies = [- "libc",-]--[[package]]-name = "markup5ever"-version = "0.11.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "7a2629bb1404f3d34c2e921f21fd34ba00b206124c81f65c50b43b6aaefeb016"-dependencies = [- "log",- "phf 0.10.1",- "phf_codegen 0.10.0",- "string_cache",- "string_cache_codegen",- "tendril",-]--[[package]]-name = "matchers"-version = "0.1.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "8263075bb86c5a1b1427b5ae862e8889656f126e9f77c484496e8b47cf5c5558"-dependencies = [- "regex-automata 0.1.10",-]--[[package]]-name = "matches"-version = "0.1.10"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "2532096657941c2fea9c289d370a250971c689d4f143798ff67113ec042024a5"--[[package]]-name = "memchr"-version = "2.7.4"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "78ca9ab1a0babb1e7d5695e3530886289c18cf2f87ec19a575a0abdce112e3a3"--[[package]]-name = "memoffset"-version = "0.9.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "488016bfae457b036d996092f6cb448677611ce4449e970ceaf42695203f218a"-dependencies = [- "autocfg",-]--[[package]]-name = "mime"-version = "0.3.17"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "6877bb514081ee2a7ff5ef9de3281f14a4dd4bceac4c09388074a6b5df8a139a"--[[package]]-name = "mime_guess"-version = "2.0.5"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "f7c44f8e672c00fe5308fa235f821cb4198414e1c77935c1ab6948d3fd78550e"-dependencies = [- "mime",- "unicase",-]--[[package]]-name = "miniz_oxide"-version = "0.8.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "e2d80299ef12ff69b16a84bb182e3b9df68b5a91574d3d4fa6e41b65deec4df1"-dependencies = [- "adler2",- "simd-adler32",-]--[[package]]-name = "mio"-version = "1.0.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "80e04d1dcff3aae0704555fe5fee3bcfaf3d1fdf8a7e521d5b9d2b42acb52cec"-dependencies = [- "hermit-abi",- "libc",- "wasi 0.11.0+wasi-snapshot-preview1",- "windows-sys 0.52.0",-]--[[package]]-name = "native-tls"-version = "0.2.12"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "a8614eb2c83d59d1c8cc974dd3f920198647674a0a035e1af1fa58707e317466"-dependencies = [- "libc",- "log",- "openssl",- "openssl-probe",- "openssl-sys",- "schannel",- "security-framework",- "security-framework-sys",- "tempfile",-]--[[package]]-name = "ndk"-version = "0.6.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "2032c77e030ddee34a6787a64166008da93f6a352b629261d0fee232b8742dd4"-dependencies = [- "bitflags 1.3.2",- "jni-sys",- "ndk-sys",- "num_enum",- "thiserror",-]--[[package]]-name = "ndk-context"-version = "0.1.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "27b02d87554356db9e9a873add8782d4ea6e3e58ea071a9adb9a2e8ddb884a8b"--[[package]]-name = "ndk-sys"-version = "0.3.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "6e5a6ae77c8ee183dcbbba6150e2e6b9f3f4196a7666c02a715a95692ec1fa97"-dependencies = [- "jni-sys",-]--[[package]]-name = "new_debug_unreachable"-version = "1.0.6"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "650eef8c711430f1a879fdd01d4745a7deea475becfb90269c06775983bbf086"--[[package]]-name = "nodrop"-version = "0.1.14"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "72ef4a56884ca558e5ddb05a1d1e7e1bfd9a68d9ed024c21704cc98872dae1bb"--[[package]]-name = "nu-ansi-term"-version = "0.46.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "77a8165726e8236064dbb45459242600304b42a5ea24ee2948e18e023bf7ba84"-dependencies = [- "overload",- "winapi",-]--[[package]]-name = "num-conv"-version = "0.1.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "51d515d32fb182ee37cda2ccdcb92950d6a3c2893aa280e540671c2cd0f3b1d9"--[[package]]-name = "num-traits"-version = "0.2.19"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841"-dependencies = [- "autocfg",-]--[[package]]-name = "num_enum"-version = "0.5.11"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "1f646caf906c20226733ed5b1374287eb97e3c2a5c227ce668c1f2ce20ae57c9"-dependencies = [- "num_enum_derive",-]--[[package]]-name = "num_enum_derive"-version = "0.5.11"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "dcbff9bc912032c62bf65ef1d5aea88983b420f4f839db1e9b0c281a25c9c799"-dependencies = [- "proc-macro-crate",- "proc-macro2",- "quote",- "syn 1.0.109",-]--[[package]]-name = "objc"-version = "0.2.7"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "915b1b472bc21c53464d6c8461c9d3af805ba1ef837e1cac254428f4a77177b1"-dependencies = [- "malloc_buf",- "objc_exception",-]--[[package]]-name = "objc-foundation"-version = "0.1.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "1add1b659e36c9607c7aab864a76c7a4c2760cd0cd2e120f3fb8b952c7e22bf9"-dependencies = [- "block",- "objc",- "objc_id",-]--[[package]]-name = "objc-sys"-version = "0.3.5"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "cdb91bdd390c7ce1a8607f35f3ca7151b65afc0ff5ff3b34fa350f7d7c7e4310"--[[package]]-name = "objc2"-version = "0.4.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "559c5a40fdd30eb5e344fbceacf7595a81e242529fb4e21cf5f43fb4f11ff98d"-dependencies = [- "objc-sys",- "objc2-encode",-]--[[package]]-name = "objc2-encode"-version = "3.0.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "d079845b37af429bfe5dfa76e6d087d788031045b25cfc6fd898486fd9847666"--[[package]]-name = "objc_exception"-version = "0.1.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "ad970fb455818ad6cba4c122ad012fae53ae8b4795f86378bce65e4f6bab2ca4"-dependencies = [- "cc",-]--[[package]]-name = "objc_id"-version = "0.1.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "c92d4ddb4bd7b50d730c215ff871754d0da6b2178849f8a2a2ab69712d0c073b"-dependencies = [- "objc",-]--[[package]]-name = "object"-version = "0.36.5"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "aedf0a2d09c573ed1d8d85b30c119153926a2b36dce0ab28322c09a117a4683e"-dependencies = [- "memchr",-]--[[package]]-name = "once_cell"-version = "1.20.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "1261fe7e33c73b354eab43b1273a57c8f967d0391e80353e51f764ac02cf6775"--[[package]]-name = "open"-version = "3.2.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "2078c0039e6a54a0c42c28faa984e115fb4c2d5bf2208f77d1961002df8576f8"-dependencies = [- "pathdiff",- "windows-sys 0.42.0",-]--[[package]]-name = "openssl"-version = "0.10.68"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "6174bc48f102d208783c2c84bf931bb75927a617866870de8a4ea85597f871f5"-dependencies = [- "bitflags 2.6.0",- "cfg-if",- "foreign-types 0.3.2",- "libc",- "once_cell",- "openssl-macros",- "openssl-sys",-]--[[package]]-name = "openssl-macros"-version = "0.1.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "a948666b637a0f465e8564c73e89d4dde00d72d4d473cc972f390fc3dcee7d9c"-dependencies = [- "proc-macro2",- "quote",- "syn 2.0.85",-]--[[package]]-name = "openssl-probe"-version = "0.1.5"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "ff011a302c396a5197692431fc1948019154afc178baf7d8e37367442a4601cf"--[[package]]-name = "openssl-src"-version = "300.4.0+3.4.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "a709e02f2b4aca747929cca5ed248880847c650233cf8b8cdc48f40aaf4898a6"-dependencies = [- "cc",-]--[[package]]-name = "openssl-sys"-version = "0.9.104"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "45abf306cbf99debc8195b66b7346498d7b10c210de50418b5ccd7ceba08c741"-dependencies = [- "cc",- "libc",- "openssl-src",- "pkg-config",- "vcpkg",-]--[[package]]-name = "option-ext"-version = "0.2.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "04744f49eae99ab78e0d5c0b603ab218f515ea8cfe5a456d7629ad883a3b6e7d"--[[package]]-name = "os_info"-version = "3.8.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "ae99c7fa6dd38c7cafe1ec085e804f8f555a2f8659b0dbe03f1f9963a9b51092"-dependencies = [- "log",- "serde",- "windows-sys 0.52.0",-]--[[package]]-name = "overload"-version = "0.1.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "b15813163c1d831bf4a13c3610c05c0d03b39feb07f7e09fa234dac9b15aaf39"--[[package]]-name = "pango"-version = "0.15.10"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "22e4045548659aee5313bde6c582b0d83a627b7904dd20dc2d9ef0895d414e4f"-dependencies = [- "bitflags 1.3.2",- "glib",- "libc",- "once_cell",- "pango-sys",-]--[[package]]-name = "pango-sys"-version = "0.15.10"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "d2a00081cde4661982ed91d80ef437c20eacaf6aa1a5962c0279ae194662c3aa"-dependencies = [- "glib-sys",- "gobject-sys",- "libc",- "system-deps 6.2.2",-]--[[package]]-name = "parking_lot"-version = "0.12.3"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "f1bf18183cf54e8d6059647fc3063646a1801cf30896933ec2311622cc4b9a27"-dependencies = [- "lock_api",- "parking_lot_core",-]--[[package]]-name = "parking_lot_core"-version = "0.9.10"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "1e401f977ab385c9e4e3ab30627d6f26d00e2c73eef317493c4ec6d468726cf8"-dependencies = [- "cfg-if",- "libc",- "redox_syscall",- "smallvec",- "windows-targets 0.52.6",-]--[[package]]-name = "pathdiff"-version = "0.2.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "d61c5ce1153ab5b689d0c074c4e7fc613e942dfb7dd9eea5ab202d2ad91fe361"--[[package]]-name = "percent-encoding"-version = "2.3.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "e3148f5046208a5d56bcfc03053e3ca6334e51da8dfb19b6cdc8b306fae3283e"--[[package]]-name = "phf"-version = "0.8.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "3dfb61232e34fcb633f43d12c58f83c1df82962dcdfa565a4e866ffc17dafe12"-dependencies = [- "phf_macros 0.8.0",- "phf_shared 0.8.0",- "proc-macro-hack",-]--[[package]]-name = "phf"-version = "0.10.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "fabbf1ead8a5bcbc20f5f8b939ee3f5b0f6f281b6ad3468b84656b658b455259"-dependencies = [- "phf_shared 0.10.0",-]--[[package]]-name = "phf"-version = "0.11.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "ade2d8b8f33c7333b51bcf0428d37e217e9f32192ae4772156f65063b8ce03dc"-dependencies = [- "phf_macros 0.11.2",- "phf_shared 0.11.2",-]--[[package]]-name = "phf_codegen"-version = "0.8.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "cbffee61585b0411840d3ece935cce9cb6321f01c45477d30066498cd5e1a815"-dependencies = [- "phf_generator 0.8.0",- "phf_shared 0.8.0",-]--[[package]]-name = "phf_codegen"-version = "0.10.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "4fb1c3a8bc4dd4e5cfce29b44ffc14bedd2ee294559a294e2a4d4c9e9a6a13cd"-dependencies = [- "phf_generator 0.10.0",- "phf_shared 0.10.0",-]--[[package]]-name = "phf_generator"-version = "0.8.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "17367f0cc86f2d25802b2c26ee58a7b23faeccf78a396094c13dced0d0182526"-dependencies = [- "phf_shared 0.8.0",- "rand 0.7.3",-]--[[package]]-name = "phf_generator"-version = "0.10.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "5d5285893bb5eb82e6aaf5d59ee909a06a16737a8970984dd7746ba9283498d6"-dependencies = [- "phf_shared 0.10.0",- "rand 0.8.5",-]--[[package]]-name = "phf_generator"-version = "0.11.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "48e4cc64c2ad9ebe670cb8fd69dd50ae301650392e81c05f9bfcb2d5bdbc24b0"-dependencies = [- "phf_shared 0.11.2",- "rand 0.8.5",-]--[[package]]-name = "phf_macros"-version = "0.8.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "7f6fde18ff429ffc8fe78e2bf7f8b7a5a5a6e2a8b58bc5a9ac69198bbda9189c"-dependencies = [- "phf_generator 0.8.0",- "phf_shared 0.8.0",- "proc-macro-hack",- "proc-macro2",- "quote",- "syn 1.0.109",-]--[[package]]-name = "phf_macros"-version = "0.11.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "3444646e286606587e49f3bcf1679b8cef1dc2c5ecc29ddacaffc305180d464b"-dependencies = [- "phf_generator 0.11.2",- "phf_shared 0.11.2",- "proc-macro2",- "quote",- "syn 2.0.85",-]--[[package]]-name = "phf_shared"-version = "0.8.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "c00cf8b9eafe68dde5e9eaa2cef8ee84a9336a47d566ec55ca16589633b65af7"-dependencies = [- "siphasher",-]--[[package]]-name = "phf_shared"-version = "0.10.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "b6796ad771acdc0123d2a88dc428b5e38ef24456743ddb1744ed628f9815c096"-dependencies = [- "siphasher",-]--[[package]]-name = "phf_shared"-version = "0.11.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "90fcb95eef784c2ac79119d1dd819e162b5da872ce6f3c3abe1e8ca1c082f72b"-dependencies = [- "siphasher",-]--[[package]]-name = "pin-project-lite"-version = "0.2.14"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "bda66fc9667c18cb2758a2ac84d1167245054bcf85d5d1aaa6923f45801bdd02"--[[package]]-name = "pin-utils"-version = "0.1.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184"--[[package]]-name = "pkg-config"-version = "0.3.31"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "953ec861398dccce10c670dfeaf3ec4911ca479e9c02154b3a215178c5f566f2"--[[package]]-name = "plist"-version = "1.7.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "42cf17e9a1800f5f396bc67d193dc9411b59012a5876445ef450d449881e1016"-dependencies = [- "base64 0.22.1",- "indexmap 2.6.0",- "quick-xml",- "serde",- "time",-]--[[package]]-name = "png"-version = "0.17.14"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "52f9d46a34a05a6a57566bc2bfae066ef07585a6e3fa30fbbdff5936380623f0"-dependencies = [- "bitflags 1.3.2",- "crc32fast",- "fdeflate",- "flate2",- "miniz_oxide",-]--[[package]]-name = "powerfmt"-version = "0.2.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "439ee305def115ba05938db6eb1644ff94165c5ab5e9420d1c1bcedbba909391"--[[package]]-name = "ppv-lite86"-version = "0.2.20"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "77957b295656769bb8ad2b6a6b09d897d94f05c41b069aede1fcdaa675eaea04"-dependencies = [- "zerocopy",-]--[[package]]-name = "precomputed-hash"-version = "0.1.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "925383efa346730478fb4838dbe9137d2a47675ad789c546d150a6e1dd4ab31c"--[[package]]-name = "proc-macro-crate"-version = "1.3.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "7f4c021e1093a56626774e81216a4ce732a735e5bad4868a03f3ed65ca0c3919"-dependencies = [- "once_cell",- "toml_edit 0.19.15",-]--[[package]]-name = "proc-macro-error"-version = "1.0.4"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "da25490ff9892aab3fcf7c36f08cfb902dd3e71ca0f9f9517bea02a73a5ce38c"-dependencies = [- "proc-macro-error-attr",- "proc-macro2",- "quote",- "syn 1.0.109",- "version_check",-]--[[package]]-name = "proc-macro-error-attr"-version = "1.0.4"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "a1be40180e52ecc98ad80b184934baf3d0d29f979574e439af5a55274b35f869"-dependencies = [- "proc-macro2",- "quote",- "version_check",-]--[[package]]-name = "proc-macro-hack"-version = "0.5.20+deprecated"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "dc375e1527247fe1a97d8b7156678dfe7c1af2fc075c9a4db3690ecd2a148068"--[[package]]-name = "proc-macro2"-version = "1.0.89"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "f139b0662de085916d1fb67d2b4169d1addddda1919e696f3252b740b629986e"-dependencies = [- "unicode-ident",-]--[[package]]-name = "quick-xml"-version = "0.32.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "1d3a6e5838b60e0e8fa7a43f22ade549a37d61f8bdbe636d0d7816191de969c2"-dependencies = [- "memchr",-]--[[package]]-name = "quote"-version = "1.0.37"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "b5b9d34b8991d19d98081b46eacdd8eb58c6f2b201139f7c5f643cc155a633af"-dependencies = [- "proc-macro2",-]--[[package]]-name = "rand"-version = "0.7.3"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "6a6b1679d49b24bbfe0c803429aa1874472f50d9b363131f0e89fc356b544d03"-dependencies = [- "getrandom 0.1.16",- "libc",- "rand_chacha 0.2.2",- "rand_core 0.5.1",- "rand_hc",- "rand_pcg",-]--[[package]]-name = "rand"-version = "0.8.5"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404"-dependencies = [- "libc",- "rand_chacha 0.3.1",- "rand_core 0.6.4",-]--[[package]]-name = "rand_chacha"-version = "0.2.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "f4c8ed856279c9737206bf725bf36935d8666ead7aa69b52be55af369d193402"-dependencies = [- "ppv-lite86",- "rand_core 0.5.1",-]--[[package]]-name = "rand_chacha"-version = "0.3.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88"-dependencies = [- "ppv-lite86",- "rand_core 0.6.4",-]--[[package]]-name = "rand_core"-version = "0.5.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "90bde5296fc891b0cef12a6d03ddccc162ce7b2aff54160af9338f8d40df6d19"-dependencies = [- "getrandom 0.1.16",-]--[[package]]-name = "rand_core"-version = "0.6.4"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c"-dependencies = [- "getrandom 0.2.15",-]--[[package]]-name = "rand_hc"-version = "0.2.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "ca3129af7b92a17112d59ad498c6f81eaf463253766b90396d39ea7a39d6613c"-dependencies = [- "rand_core 0.5.1",-]--[[package]]-name = "rand_pcg"-version = "0.2.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "16abd0c1b639e9eb4d7c50c0b8100b0d0f849be2349829c740fe8e6eb4816429"-dependencies = [- "rand_core 0.5.1",-]--[[package]]-name = "raw-window-handle"-version = "0.5.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "f2ff9a1f06a88b01621b7ae906ef0211290d1c8a168a15542486a8f61c0833b9"--[[package]]-name = "redox_syscall"-version = "0.5.7"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "9b6dfecf2c74bce2466cabf93f6664d6998a69eb21e39f4207930065b27b771f"-dependencies = [- "bitflags 2.6.0",-]--[[package]]-name = "redox_users"-version = "0.4.6"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "ba009ff324d1fc1b900bd1fdb31564febe58a8ccc8a6fdbb93b543d33b13ca43"-dependencies = [- "getrandom 0.2.15",- "libredox",- "thiserror",-]--[[package]]-name = "regex"-version = "1.11.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "38200e5ee88914975b69f657f0801b6f6dccafd44fd9326302a4aaeecfacb1d8"-dependencies = [- "aho-corasick",- "memchr",- "regex-automata 0.4.8",- "regex-syntax 0.8.5",-]--[[package]]-name = "regex-automata"-version = "0.1.10"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "6c230d73fb8d8c1b9c0b3135c5142a8acee3a0558fb8db5cf1cb65f8d7862132"-dependencies = [- "regex-syntax 0.6.29",-]--[[package]]-name = "regex-automata"-version = "0.4.8"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "368758f23274712b504848e9d5a6f010445cc8b87a7cdb4d7cbee666c1288da3"-dependencies = [- "aho-corasick",- "memchr",- "regex-syntax 0.8.5",-]--[[package]]-name = "regex-syntax"-version = "0.6.29"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "f162c6dd7b008981e4d40210aca20b4bd0f9b60ca9271061b07f78537722f2e1"--[[package]]-name = "regex-syntax"-version = "0.8.5"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "2b15c43186be67a4fd63bee50d0303afffcef381492ebe2c5d87f324e1b8815c"--[[package]]-name = "reqwest"-version = "0.11.27"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "dd67538700a17451e7cba03ac727fb961abb7607553461627b97de0b89cf4a62"-dependencies = [- "base64 0.21.7",- "bytes",- "encoding_rs",- "futures-core",- "futures-util",- "h2",- "http 0.2.12",- "http-body",- "hyper",- "hyper-tls",- "ipnet",- "js-sys",- "log",- "mime",- "mime_guess",- "native-tls",- "once_cell",- "percent-encoding",- "pin-project-lite",- "rustls-pemfile",- "serde",- "serde_json",- "serde_urlencoded",- "sync_wrapper",- "system-configuration",- "tokio",- "tokio-native-tls",- "tokio-util",- "tower-service",- "url",- "wasm-bindgen",- "wasm-bindgen-futures",- "wasm-streams",- "web-sys",- "winreg 0.50.0",-]--[[package]]-name = "rfd"-version = "0.10.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "0149778bd99b6959285b0933288206090c50e2327f47a9c463bfdbf45c8823ea"-dependencies = [- "block",- "dispatch",- "glib-sys",- "gobject-sys",- "gtk-sys",- "js-sys",- "lazy_static",- "log",- "objc",- "objc-foundation",- "objc_id",- "raw-window-handle",- "wasm-bindgen",- "wasm-bindgen-futures",- "web-sys",- "windows 0.37.0",-]--[[package]]-name = "rustc-demangle"-version = "0.1.24"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "719b953e2095829ee67db738b3bfa9fa368c94900df327b3f07fe6e794d2fe1f"--[[package]]-name = "rustc_version"-version = "0.4.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "cfcb3a22ef46e85b45de6ee7e79d063319ebb6594faafcf1c225ea92ab6e9b92"-dependencies = [- "semver",-]--[[package]]-name = "rustix"-version = "0.38.37"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "8acb788b847c24f28525660c4d7758620a7210875711f79e7f663cc152726811"-dependencies = [- "bitflags 2.6.0",- "errno",- "libc",- "linux-raw-sys",- "windows-sys 0.52.0",-]--[[package]]-name = "rustls-pemfile"-version = "1.0.4"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "1c74cae0a4cf6ccbbf5f359f08efdf8ee7e1dc532573bf0db71968cb56b1448c"-dependencies = [- "base64 0.21.7",-]--[[package]]-name = "rustversion"-version = "1.0.18"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "0e819f2bc632f285be6d7cd36e25940d45b2391dd6d9b939e79de557f7014248"--[[package]]-name = "ryu"-version = "1.0.18"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "f3cb5ba0dc43242ce17de99c180e96db90b235b8a9fdc9543c96d2209116bd9f"--[[package]]-name = "same-file"-version = "1.0.6"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502"-dependencies = [- "winapi-util",-]--[[package]]-name = "schannel"-version = "0.1.26"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "01227be5826fa0690321a2ba6c5cd57a19cf3f6a09e76973b58e61de6ab9d1c1"-dependencies = [- "windows-sys 0.59.0",-]--[[package]]-name = "scoped-tls"-version = "1.0.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "e1cf6437eb19a8f4a6cc0f7dca544973b0b78843adbfeb3683d1a94a0024a294"--[[package]]-name = "scopeguard"-version = "1.2.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49"--[[package]]-name = "security-framework"-version = "2.11.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "897b2245f0b511c87893af39b033e5ca9cce68824c4d7e7630b5a1d339658d02"-dependencies = [- "bitflags 2.6.0",- "core-foundation",- "core-foundation-sys",- "libc",- "security-framework-sys",-]--[[package]]-name = "security-framework-sys"-version = "2.12.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "ea4a292869320c0272d7bc55a5a6aafaff59b4f63404a003887b679a2e05b4b6"-dependencies = [- "core-foundation-sys",- "libc",-]--[[package]]-name = "selectors"-version = "0.22.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "df320f1889ac4ba6bc0cdc9c9af7af4bd64bb927bccdf32d81140dc1f9be12fe"-dependencies = [- "bitflags 1.3.2",- "cssparser",- "derive_more",- "fxhash",- "log",- "matches",- "phf 0.8.0",- "phf_codegen 0.8.0",- "precomputed-hash",- "servo_arc",- "smallvec",- "thin-slice",-]--[[package]]-name = "semver"-version = "1.0.23"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "61697e0a1c7e512e84a621326239844a24d8207b4669b41bc18b32ea5cbf988b"-dependencies = [- "serde",-]--[[package]]-name = "serde"-version = "1.0.213"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "3ea7893ff5e2466df8d720bb615088341b295f849602c6956047f8f80f0e9bc1"-dependencies = [- "serde_derive",-]--[[package]]-name = "serde_derive"-version = "1.0.213"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "7e85ad2009c50b58e87caa8cd6dac16bdf511bbfb7af6c33df902396aa480fa5"-dependencies = [- "proc-macro2",- "quote",- "syn 2.0.85",-]--[[package]]-name = "serde_json"-version = "1.0.132"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "d726bfaff4b320266d395898905d0eba0345aae23b54aee3a737e260fd46db03"-dependencies = [- "indexmap 2.6.0",- "itoa 1.0.11",- "memchr",- "ryu",- "serde",-]--[[package]]-name = "serde_repr"-version = "0.1.19"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "6c64451ba24fc7a6a2d60fc75dd9c83c90903b19028d4eff35e88fc1e86564e9"-dependencies = [- "proc-macro2",- "quote",- "syn 2.0.85",-]--[[package]]-name = "serde_spanned"-version = "0.6.8"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "87607cb1398ed59d48732e575a4c28a7a8ebf2454b964fe3f224f2afc07909e1"-dependencies = [- "serde",-]--[[package]]-name = "serde_urlencoded"-version = "0.7.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "d3491c14715ca2294c4d6a88f15e84739788c1d030eed8c110436aafdaa2f3fd"-dependencies = [- "form_urlencoded",- "itoa 1.0.11",- "ryu",- "serde",-]--[[package]]-name = "serde_with"-version = "3.11.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "8e28bdad6db2b8340e449f7108f020b3b092e8583a9e3fb82713e1d4e71fe817"-dependencies = [- "base64 0.22.1",- "chrono",- "hex",- "indexmap 1.9.3",- "indexmap 2.6.0",- "serde",- "serde_derive",- "serde_json",- "serde_with_macros",- "time",-]--[[package]]-name = "serde_with_macros"-version = "3.11.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "9d846214a9854ef724f3da161b426242d8de7c1fc7de2f89bb1efcb154dca79d"-dependencies = [- "darling",- "proc-macro2",- "quote",- "syn 2.0.85",-]--[[package]]-name = "serialize-to-javascript"-version = "0.1.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "04f3666a07a197cdb77cdf306c32be9b7f598d7060d50cfd4d5aa04bfd92f6c5"-dependencies = [- "serde",- "serde_json",- "serialize-to-javascript-impl",-]--[[package]]-name = "serialize-to-javascript-impl"-version = "0.1.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "772ee033c0916d670af7860b6e1ef7d658a4629a6d0b4c8c3e67f09b3765b75d"-dependencies = [- "proc-macro2",- "quote",- "syn 2.0.85",-]--[[package]]-name = "servo_arc"-version = "0.1.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "d98238b800e0d1576d8b6e3de32827c2d74bee68bb97748dcf5071fb53965432"-dependencies = [- "nodrop",- "stable_deref_trait",-]--[[package]]-name = "sha2"-version = "0.10.8"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "793db75ad2bcafc3ffa7c68b215fee268f537982cd901d132f89c6343f3a3dc8"-dependencies = [- "cfg-if",- "cpufeatures",- "digest",-]--[[package]]-name = "sharded-slab"-version = "0.1.7"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "f40ca3c46823713e0d4209592e8d6e826aa57e928f09752619fc696c499637f6"-dependencies = [- "lazy_static",-]--[[package]]-name = "shlex"-version = "1.3.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64"--[[package]]-name = "simd-adler32"-version = "0.3.7"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "d66dc143e6b11c1eddc06d5c423cfc97062865baf299914ab64caa38182078fe"--[[package]]-name = "siphasher"-version = "0.3.11"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "38b58827f4464d87d377d175e90bf58eb00fd8716ff0a62f80356b5e61555d0d"--[[package]]-name = "slab"-version = "0.4.9"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "8f92a496fb766b417c996b9c5e57daf2f7ad3b0bebe1ccfca4856390e3d3bb67"-dependencies = [- "autocfg",-]--[[package]]-name = "smallvec"-version = "1.13.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "3c5e1a9a646d36c3599cd173a41282daf47c44583ad367b8e6837255952e5c67"--[[package]]-name = "socket2"-version = "0.5.7"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "ce305eb0b4296696835b71df73eb912e0f1ffd2556a501fcede6e0c50349191c"-dependencies = [- "libc",- "windows-sys 0.52.0",-]--[[package]]-name = "soup2"-version = "0.2.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "b2b4d76501d8ba387cf0fefbe055c3e0a59891d09f0f995ae4e4b16f6b60f3c0"-dependencies = [- "bitflags 1.3.2",- "gio",- "glib",- "libc",- "once_cell",- "soup2-sys",-]--[[package]]-name = "soup2-sys"-version = "0.2.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "009ef427103fcb17f802871647a7fa6c60cbb654b4c4e4c0ac60a31c5f6dc9cf"-dependencies = [- "bitflags 1.3.2",- "gio-sys",- "glib-sys",- "gobject-sys",- "libc",- "system-deps 5.0.0",-]--[[package]]-name = "stable_deref_trait"-version = "1.2.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "a8f112729512f8e442d81f95a8a7ddf2b7c6b8a1a6f509a95864142b30cab2d3"--[[package]]-name = "state"-version = "0.5.3"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "dbe866e1e51e8260c9eed836a042a5e7f6726bb2b411dffeaa712e19c388f23b"-dependencies = [- "loom",-]--[[package]]-name = "string_cache"-version = "0.8.7"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "f91138e76242f575eb1d3b38b4f1362f10d3a43f47d182a5b359af488a02293b"-dependencies = [- "new_debug_unreachable",- "once_cell",- "parking_lot",- "phf_shared 0.10.0",- "precomputed-hash",- "serde",-]--[[package]]-name = "string_cache_codegen"-version = "0.5.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "6bb30289b722be4ff74a408c3cc27edeaad656e06cb1fe8fa9231fa59c728988"-dependencies = [- "phf_generator 0.10.0",- "phf_shared 0.10.0",- "proc-macro2",- "quote",-]--[[package]]-name = "strsim"-version = "0.11.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f"--[[package]]-name = "syn"-version = "1.0.109"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "72b64191b275b66ffe2469e8af2c1cfe3bafa67b529ead792a6d0160888b4237"-dependencies = [- "proc-macro2",- "quote",- "unicode-ident",-]--[[package]]-name = "syn"-version = "2.0.85"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "5023162dfcd14ef8f32034d8bcd4cc5ddc61ef7a247c024a33e24e1f24d21b56"-dependencies = [- "proc-macro2",- "quote",- "unicode-ident",-]--[[package]]-name = "sync_wrapper"-version = "0.1.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "2047c6ded9c721764247e62cd3b03c09ffc529b2ba5b10ec482ae507a4a70160"--[[package]]-name = "sys-locale"-version = "0.3.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "e801cf239ecd6ccd71f03d270d67dd53d13e90aab208bf4b8fe4ad957ea949b0"-dependencies = [- "libc",-]--[[package]]-name = "system-configuration"-version = "0.5.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "ba3a3adc5c275d719af8cb4272ea1c4a6d668a777f37e115f6d11ddbc1c8e0e7"-dependencies = [- "bitflags 1.3.2",- "core-foundation",- "system-configuration-sys",-]--[[package]]-name = "system-configuration-sys"-version = "0.5.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "a75fb188eb626b924683e3b95e3a48e63551fcfb51949de2f06a9d91dbee93c9"-dependencies = [- "core-foundation-sys",- "libc",-]--[[package]]-name = "system-deps"-version = "5.0.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "18db855554db7bd0e73e06cf7ba3df39f97812cb11d3f75e71c39bf45171797e"-dependencies = [- "cfg-expr 0.9.1",- "heck 0.3.3",- "pkg-config",- "toml 0.5.11",- "version-compare 0.0.11",-]--[[package]]-name = "system-deps"-version = "6.2.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "a3e535eb8dded36d55ec13eddacd30dec501792ff23a0b1682c38601b8cf2349"-dependencies = [- "cfg-expr 0.15.8",- "heck 0.5.0",- "pkg-config",- "toml 0.8.19",- "version-compare 0.2.0",-]--[[package]]-name = "tao"-version = "0.16.10"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "48d298c441a1da46e28e8ad8ec205aab7fd8cd71b9d10e05454224eef422e1ae"-dependencies = [- "bitflags 1.3.2",- "cairo-rs",- "cc",- "cocoa 0.24.1",- "core-foundation",- "core-graphics 0.22.3",- "crossbeam-channel",- "dispatch",- "gdk",- "gdk-pixbuf",- "gdk-sys",- "gdkwayland-sys",- "gdkx11-sys",- "gio",- "glib",- "glib-sys",- "gtk",- "image",- "instant",- "jni",- "lazy_static",- "libc",- "log",- "ndk",- "ndk-context",- "ndk-sys",- "objc",- "once_cell",- "parking_lot",- "png",- "raw-window-handle",- "scopeguard",- "serde",- "tao-macros",- "unicode-segmentation",- "uuid",- "windows 0.39.0",- "windows-implement",- "x11-dl",-]--[[package]]-name = "tao-macros"-version = "0.1.3"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "f4e16beb8b2ac17db28eab8bca40e62dbfbb34c0fcdc6d9826b11b7b5d047dfd"-dependencies = [- "proc-macro2",- "quote",- "syn 2.0.85",-]--[[package]]-name = "tar"-version = "0.4.42"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "4ff6c40d3aedb5e06b57c6f669ad17ab063dd1e63d977c6a88e7f4dfa4f04020"-dependencies = [- "filetime",- "libc",- "xattr",-]--[[package]]-name = "target-lexicon"-version = "0.12.16"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "61c41af27dd6d1e27b1b16b489db798443478cef1f06a660c96db617ba5de3b1"--[[package]]-name = "tauri"-version = "1.8.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "1bf327e247698d3f39af8aa99401c9708384290d1f5c544bf5d251d44c2fea22"-dependencies = [- "anyhow",- "bytes",- "cocoa 0.24.1",- "dirs-next",- "dunce",- "embed_plist",- "encoding_rs",- "flate2",- "futures-util",- "getrandom 0.2.15",- "glib",- "glob",- "gtk",- "heck 0.5.0",- "http 0.2.12",- "ignore",- "indexmap 1.9.3",- "log",- "objc",- "once_cell",- "open",- "os_info",- "percent-encoding",- "plist",- "rand 0.8.5",- "raw-window-handle",- "regex",- "reqwest",- "rfd",- "semver",- "serde",- "serde_json",- "serde_repr",- "serialize-to-javascript",- "state",- "sys-locale",- "tar",- "tauri-macros",- "tauri-runtime",- "tauri-runtime-wry",- "tauri-utils",- "tempfile",- "thiserror",- "tokio",- "url",- "uuid",- "webkit2gtk",- "webview2-com",- "windows 0.39.0",-]--[[package]]-name = "tauri-build"-version = "1.5.5"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "586f3e677f940c8bb4f70c52eda05dc59b79e61543f1182de83516810bb8e35d"-dependencies = [- "anyhow",- "cargo_toml",- "dirs-next",- "heck 0.5.0",- "json-patch",- "semver",- "serde",- "serde_json",- "tauri-utils",- "tauri-winres",- "walkdir",-]--[[package]]-name = "tauri-codegen"-version = "1.4.5"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "93a9e3f5cebf779a63bf24903e714ec91196c307d8249a0008b882424328bcda"-dependencies = [- "base64 0.21.7",- "brotli",- "ico",- "json-patch",- "plist",- "png",- "proc-macro2",- "quote",- "regex",- "semver",- "serde",- "serde_json",- "sha2",- "tauri-utils",- "thiserror",- "time",- "uuid",- "walkdir",-]--[[package]]-name = "tauri-macros"-version = "1.4.6"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "d1d0e989f54fe06c5ef0875c5e19cf96453d099a0a774d5192ab47e80471cdab"-dependencies = [- "heck 0.5.0",- "proc-macro2",- "quote",- "syn 1.0.109",- "tauri-codegen",- "tauri-utils",-]--[[package]]-name = "tauri-plugin-deep-link"-version = "0.1.2"-source = "git+https://github.com/FabianLars/tauri-plugin-deep-link?branch=main#1aa5c3d01dfadfe6495673bb8767a913198da279"-dependencies = [- "dirs",- "interprocess",- "log",- "objc2",- "once_cell",- "tauri-utils",- "windows-sys 0.52.0",- "winreg 0.52.0",-]--[[package]]-name = "tauri-plugin-store"-version = "0.0.0"-source = "git+https://github.com/tauri-apps/plugins-workspace?branch=v1#fa8ee1d4f2115bf1201cb4b4082d343476c01785"-dependencies = [- "log",- "serde",- "serde_json",- "tauri",- "thiserror",-]--[[package]]-name = "tauri-plugin-window-state"-version = "0.1.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "fa47eaa4047a7b51064caff32f0c6282e2c5adc6ceacdd493ecf1b01fa4b0eaa"-dependencies = [- "bincode",- "bitflags 2.6.0",- "log",- "serde",- "serde_json",- "tauri",- "thiserror",-]--[[package]]-name = "tauri-runtime"-version = "0.14.5"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "f33fda7d213e239077fad52e96c6b734cecedb30c2382118b64f94cb5103ff3a"-dependencies = [- "gtk",- "http 0.2.12",- "http-range",- "rand 0.8.5",- "raw-window-handle",- "serde",- "serde_json",- "tauri-utils",- "thiserror",- "url",- "uuid",- "webview2-com",- "windows 0.39.0",-]--[[package]]-name = "tauri-runtime-wry"-version = "0.14.10"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "18c447dcd9b0f09c7dc4b752cc33e72788805bfd761fbda5692d30c48289efec"-dependencies = [- "cocoa 0.24.1",- "gtk",- "percent-encoding",- "rand 0.8.5",- "raw-window-handle",- "tauri-runtime",- "tauri-utils",- "uuid",- "webkit2gtk",- "webview2-com",- "windows 0.39.0",- "wry",-]--[[package]]-name = "tauri-utils"-version = "1.6.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "83a0c939e88d82903a0a7dfb28388b12a3c03504d6bd6086550edaa3b6d8beaa"-dependencies = [- "brotli",- "ctor",- "dunce",- "glob",- "heck 0.5.0",- "html5ever",- "infer",- "json-patch",- "kuchikiki",- "log",- "memchr",- "phf 0.11.2",- "proc-macro2",- "quote",- "semver",- "serde",- "serde_json",- "serde_with",- "thiserror",- "url",- "walkdir",- "windows-version",-]--[[package]]-name = "tauri-winres"-version = "0.1.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "5993dc129e544393574288923d1ec447c857f3f644187f4fbf7d9a875fbfc4fb"-dependencies = [- "embed-resource",- "toml 0.7.8",-]--[[package]]-name = "tempfile"-version = "3.13.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "f0f2c9fc62d0beef6951ccffd757e241266a2c833136efbe35af6cd2567dca5b"-dependencies = [- "cfg-if",- "fastrand",- "once_cell",- "rustix",- "windows-sys 0.59.0",-]--[[package]]-name = "tendril"-version = "0.4.3"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "d24a120c5fc464a3458240ee02c299ebcb9d67b5249c8848b09d639dca8d7bb0"-dependencies = [- "futf",- "mac",- "utf-8",-]--[[package]]-name = "thin-slice"-version = "0.1.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "8eaa81235c7058867fa8c0e7314f33dcce9c215f535d1913822a2b3f5e289f3c"--[[package]]-name = "thiserror"-version = "1.0.65"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "5d11abd9594d9b38965ef50805c5e469ca9cc6f197f883f717e0269a3057b3d5"-dependencies = [- "thiserror-impl",-]--[[package]]-name = "thiserror-impl"-version = "1.0.65"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "ae71770322cbd277e69d762a16c444af02aa0575ac0d174f0b9562d3b37f8602"-dependencies = [- "proc-macro2",- "quote",- "syn 2.0.85",-]--[[package]]-name = "thread_local"-version = "1.1.8"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "8b9ef9bad013ada3808854ceac7b46812a6465ba368859a37e2100283d2d719c"-dependencies = [- "cfg-if",- "once_cell",-]--[[package]]-name = "time"-version = "0.3.36"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "5dfd88e563464686c916c7e46e623e520ddc6d79fa6641390f2e3fa86e83e885"-dependencies = [- "deranged",- "itoa 1.0.11",- "num-conv",- "powerfmt",- "serde",- "time-core",- "time-macros",-]--[[package]]-name = "time-core"-version = "0.1.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "ef927ca75afb808a4d64dd374f00a2adf8d0fcff8e7b184af886c3c87ec4a3f3"--[[package]]-name = "time-macros"-version = "0.2.18"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "3f252a68540fde3a3877aeea552b832b40ab9a69e318efd078774a01ddee1ccf"-dependencies = [- "num-conv",- "time-core",-]--[[package]]-name = "tinyvec"-version = "1.8.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "445e881f4f6d382d5f27c034e25eb92edd7c784ceab92a0937db7f2e9471b938"-dependencies = [- "tinyvec_macros",-]--[[package]]-name = "tinyvec_macros"-version = "0.1.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20"--[[package]]-name = "to_method"-version = "1.1.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "c7c4ceeeca15c8384bbc3e011dbd8fccb7f068a440b752b7d9b32ceb0ca0e2e8"--[[package]]-name = "tokio"-version = "1.41.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "145f3413504347a2be84393cc8a7d2fb4d863b375909ea59f2158261aa258bbb"-dependencies = [- "backtrace",- "bytes",- "libc",- "mio",- "pin-project-lite",- "socket2",- "tokio-macros",- "windows-sys 0.52.0",-]--[[package]]-name = "tokio-macros"-version = "2.4.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "693d596312e88961bc67d7f1f97af8a70227d9f90c31bba5806eec004978d752"-dependencies = [- "proc-macro2",- "quote",- "syn 2.0.85",-]--[[package]]-name = "tokio-native-tls"-version = "0.3.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "bbae76ab933c85776efabc971569dd6119c580d8f5d448769dec1764bf796ef2"-dependencies = [- "native-tls",- "tokio",-]--[[package]]-name = "tokio-util"-version = "0.7.12"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "61e7c3654c13bcd040d4a03abee2c75b1d14a37b423cf5a813ceae1cc903ec6a"-dependencies = [- "bytes",- "futures-core",- "futures-sink",- "pin-project-lite",- "tokio",-]--[[package]]-name = "toml"-version = "0.5.11"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "f4f7f0dd8d50a853a531c426359045b1998f04219d88799810762cd4ad314234"-dependencies = [- "serde",-]--[[package]]-name = "toml"-version = "0.7.8"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "dd79e69d3b627db300ff956027cc6c3798cef26d22526befdfcd12feeb6d2257"-dependencies = [- "serde",- "serde_spanned",- "toml_datetime",- "toml_edit 0.19.15",-]--[[package]]-name = "toml"-version = "0.8.19"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "a1ed1f98e3fdc28d6d910e6737ae6ab1a93bf1985935a1193e68f93eeb68d24e"-dependencies = [- "serde",- "serde_spanned",- "toml_datetime",- "toml_edit 0.22.22",-]--[[package]]-name = "toml_datetime"-version = "0.6.8"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "0dd7358ecb8fc2f8d014bf86f6f638ce72ba252a2c3a2572f2a795f1d23efb41"-dependencies = [- "serde",-]--[[package]]-name = "toml_edit"-version = "0.19.15"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "1b5bb770da30e5cbfde35a2d7b9b8a2c4b8ef89548a7a6aeab5c9a576e3e7421"-dependencies = [- "indexmap 2.6.0",- "serde",- "serde_spanned",- "toml_datetime",- "winnow 0.5.40",-]--[[package]]-name = "toml_edit"-version = "0.22.22"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "4ae48d6208a266e853d946088ed816055e556cc6028c5e8e2b84d9fa5dd7c7f5"-dependencies = [- "indexmap 2.6.0",- "serde",- "serde_spanned",- "toml_datetime",- "winnow 0.6.20",-]--[[package]]-name = "tower-service"-version = "0.3.3"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "8df9b6e13f2d32c91b9bd719c00d1958837bc7dec474d94952798cc8e69eeec3"--[[package]]-name = "tracing"-version = "0.1.40"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "c3523ab5a71916ccf420eebdf5521fcef02141234bbc0b8a49f2fdc4544364ef"-dependencies = [- "pin-project-lite",- "tracing-attributes",- "tracing-core",-]--[[package]]-name = "tracing-attributes"-version = "0.1.27"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "34704c8d6ebcbc939824180af020566b01a7c01f80641264eba0999f6c2b6be7"-dependencies = [- "proc-macro2",- "quote",- "syn 2.0.85",-]--[[package]]-name = "tracing-core"-version = "0.1.32"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "c06d3da6113f116aaee68e4d601191614c9053067f9ab7f6edbcb161237daa54"-dependencies = [- "once_cell",- "valuable",-]--[[package]]-name = "tracing-log"-version = "0.2.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "ee855f1f400bd0e5c02d150ae5de3840039a3f54b025156404e34c23c03f47c3"-dependencies = [- "log",- "once_cell",- "tracing-core",-]--[[package]]-name = "tracing-subscriber"-version = "0.3.18"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "ad0f048c97dbd9faa9b7df56362b8ebcaa52adb06b498c050d2f4e32f90a7a8b"-dependencies = [- "matchers",- "nu-ansi-term",- "once_cell",- "regex",- "sharded-slab",- "smallvec",- "thread_local",- "tracing",- "tracing-core",- "tracing-log",-]--[[package]]-name = "try-lock"-version = "0.2.5"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b"--[[package]]-name = "typenum"-version = "1.17.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "42ff0bf0c66b8238c6f3b578df37d0b7848e55df8577b3f74f92a69acceeb825"--[[package]]-name = "unicase"-version = "2.8.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "7e51b68083f157f853b6379db119d1c1be0e6e4dec98101079dec41f6f5cf6df"--[[package]]-name = "unicode-bidi"-version = "0.3.17"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "5ab17db44d7388991a428b2ee655ce0c212e862eff1768a455c58f9aad6e7893"--[[package]]-name = "unicode-ident"-version = "1.0.13"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "e91b56cd4cadaeb79bbf1a5645f6b4f8dc5bde8834ad5894a8db35fda9efa1fe"--[[package]]-name = "unicode-normalization"-version = "0.1.24"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "5033c97c4262335cded6d6fc3e5c18ab755e1a3dc96376350f3d8e9f009ad956"-dependencies = [- "tinyvec",-]--[[package]]-name = "unicode-segmentation"-version = "1.12.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "f6ccf251212114b54433ec949fd6a7841275f9ada20dddd2f29e9ceea4501493"--[[package]]-name = "url"-version = "2.5.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "22784dbdf76fdde8af1aeda5622b546b422b6fc585325248a2bf9f5e41e94d6c"-dependencies = [- "form_urlencoded",- "idna",- "percent-encoding",- "serde",-]--[[package]]-name = "url-escape"-version = "0.1.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "44e0ce4d1246d075ca5abec4b41d33e87a6054d08e2366b63205665e950db218"-dependencies = [- "percent-encoding",-]--[[package]]-name = "utf-8"-version = "0.7.6"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "09cc8ee72d2a9becf2f2febe0205bbed8fc6615b7cb429ad062dc7b7ddd036a9"--[[package]]-name = "utf8parse"-version = "0.2.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821"--[[package]]-name = "uuid"-version = "1.11.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "f8c5f0a0af699448548ad1a2fbf920fb4bee257eae39953ba95cb84891a0446a"-dependencies = [- "getrandom 0.2.15",-]--[[package]]-name = "valuable"-version = "0.1.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "830b7e5d4d90034032940e4ace0d9a9a057e7a45cd94e6c007832e39edb82f6d"--[[package]]-name = "vcpkg"-version = "0.2.15"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426"--[[package]]-name = "version-compare"-version = "0.0.11"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "1c18c859eead79d8b95d09e4678566e8d70105c4e7b251f707a03df32442661b"--[[package]]-name = "version-compare"-version = "0.2.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "852e951cb7832cb45cb1169900d19760cfa39b82bc0ea9c0e5a14ae88411c98b"--[[package]]-name = "version_check"-version = "0.9.5"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a"--[[package]]-name = "vswhom"-version = "0.1.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "be979b7f07507105799e854203b470ff7c78a1639e330a58f183b5fea574608b"-dependencies = [- "libc",- "vswhom-sys",-]--[[package]]-name = "vswhom-sys"-version = "0.1.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "d3b17ae1f6c8a2b28506cd96d412eebf83b4a0ff2cbefeeb952f2f9dfa44ba18"-dependencies = [- "cc",- "libc",-]--[[package]]-name = "walkdir"-version = "2.5.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "29790946404f91d9c5d06f9874efddea1dc06c5efe94541a7d6863108e3a5e4b"-dependencies = [- "same-file",- "winapi-util",-]--[[package]]-name = "want"-version = "0.3.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "bfa7760aed19e106de2c7c0b581b509f2f25d3dacaf737cb82ac61bc6d760b0e"-dependencies = [- "try-lock",-]--[[package]]-name = "wasi"-version = "0.9.0+wasi-snapshot-preview1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "cccddf32554fecc6acb585f82a32a72e28b48f8c4c1883ddfeeeaa96f7d8e519"--[[package]]-name = "wasi"-version = "0.11.0+wasi-snapshot-preview1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423"--[[package]]-name = "wasm-bindgen"-version = "0.2.95"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "128d1e363af62632b8eb57219c8fd7877144af57558fb2ef0368d0087bddeb2e"-dependencies = [- "cfg-if",- "once_cell",- "wasm-bindgen-macro",-]--[[package]]-name = "wasm-bindgen-backend"-version = "0.2.95"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "cb6dd4d3ca0ddffd1dd1c9c04f94b868c37ff5fac97c30b97cff2d74fce3a358"-dependencies = [- "bumpalo",- "log",- "once_cell",- "proc-macro2",- "quote",- "syn 2.0.85",- "wasm-bindgen-shared",-]--[[package]]-name = "wasm-bindgen-futures"-version = "0.4.45"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "cc7ec4f8827a71586374db3e87abdb5a2bb3a15afed140221307c3ec06b1f63b"-dependencies = [- "cfg-if",- "js-sys",- "wasm-bindgen",- "web-sys",-]--[[package]]-name = "wasm-bindgen-macro"-version = "0.2.95"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "e79384be7f8f5a9dd5d7167216f022090cf1f9ec128e6e6a482a2cb5c5422c56"-dependencies = [- "quote",- "wasm-bindgen-macro-support",-]--[[package]]-name = "wasm-bindgen-macro-support"-version = "0.2.95"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "26c6ab57572f7a24a4985830b120de1594465e5d500f24afe89e16b4e833ef68"-dependencies = [- "proc-macro2",- "quote",- "syn 2.0.85",- "wasm-bindgen-backend",- "wasm-bindgen-shared",-]--[[package]]-name = "wasm-bindgen-shared"-version = "0.2.95"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "65fc09f10666a9f147042251e0dda9c18f166ff7de300607007e96bdebc1068d"--[[package]]-name = "wasm-streams"-version = "0.4.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "4e072d4e72f700fb3443d8fe94a39315df013eef1104903cdb0a2abd322bbecd"-dependencies = [- "futures-util",- "js-sys",- "wasm-bindgen",- "wasm-bindgen-futures",- "web-sys",-]--[[package]]-name = "web-sys"-version = "0.3.72"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "f6488b90108c040df0fe62fa815cbdee25124641df01814dd7282749234c6112"-dependencies = [- "js-sys",- "wasm-bindgen",-]--[[package]]-name = "webkit2gtk"-version = "0.18.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "b8f859735e4a452aeb28c6c56a852967a8a76c8eb1cc32dbf931ad28a13d6370"-dependencies = [- "bitflags 1.3.2",- "cairo-rs",- "gdk",- "gdk-sys",- "gio",- "gio-sys",- "glib",- "glib-sys",- "gobject-sys",- "gtk",- "gtk-sys",- "javascriptcore-rs",- "libc",- "once_cell",- "soup2",- "webkit2gtk-sys",-]--[[package]]-name = "webkit2gtk-sys"-version = "0.18.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "4d76ca6ecc47aeba01ec61e480139dda143796abcae6f83bcddf50d6b5b1dcf3"-dependencies = [- "atk-sys",- "bitflags 1.3.2",- "cairo-sys-rs",- "gdk-pixbuf-sys",- "gdk-sys",- "gio-sys",- "glib-sys",- "gobject-sys",- "gtk-sys",- "javascriptcore-rs-sys",- "libc",- "pango-sys",- "pkg-config",- "soup2-sys",- "system-deps 6.2.2",-]--[[package]]-name = "webview2-com"-version = "0.19.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "b4a769c9f1a64a8734bde70caafac2b96cada12cd4aefa49196b3a386b8b4178"-dependencies = [- "webview2-com-macros",- "webview2-com-sys",- "windows 0.39.0",- "windows-implement",-]--[[package]]-name = "webview2-com-macros"-version = "0.6.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "eaebe196c01691db62e9e4ca52c5ef1e4fd837dcae27dae3ada599b5a8fd05ac"-dependencies = [- "proc-macro2",- "quote",- "syn 1.0.109",-]--[[package]]-name = "webview2-com-sys"-version = "0.19.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "aac48ef20ddf657755fdcda8dfed2a7b4fc7e4581acce6fe9b88c3d64f29dee7"-dependencies = [- "regex",- "serde",- "serde_json",- "thiserror",- "windows 0.39.0",- "windows-bindgen",- "windows-metadata",-]--[[package]]-name = "winapi"-version = "0.3.9"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419"-dependencies = [- "winapi-i686-pc-windows-gnu",- "winapi-x86_64-pc-windows-gnu",-]--[[package]]-name = "winapi-i686-pc-windows-gnu"-version = "0.4.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"--[[package]]-name = "winapi-util"-version = "0.1.9"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "cf221c93e13a30d793f7645a0e7762c55d169dbb0a49671918a2319d289b10bb"-dependencies = [- "windows-sys 0.59.0",-]--[[package]]-name = "winapi-x86_64-pc-windows-gnu"-version = "0.4.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"--[[package]]-name = "windows"-version = "0.37.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "57b543186b344cc61c85b5aab0d2e3adf4e0f99bc076eff9aa5927bcc0b8a647"-dependencies = [- "windows_aarch64_msvc 0.37.0",- "windows_i686_gnu 0.37.0",- "windows_i686_msvc 0.37.0",- "windows_x86_64_gnu 0.37.0",- "windows_x86_64_msvc 0.37.0",-]--[[package]]-name = "windows"-version = "0.39.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "f1c4bd0a50ac6020f65184721f758dba47bb9fbc2133df715ec74a237b26794a"-dependencies = [- "windows-implement",- "windows_aarch64_msvc 0.39.0",- "windows_i686_gnu 0.39.0",- "windows_i686_msvc 0.39.0",- "windows_x86_64_gnu 0.39.0",- "windows_x86_64_msvc 0.39.0",-]--[[package]]-name = "windows"-version = "0.48.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "e686886bc078bc1b0b600cac0147aadb815089b6e4da64016cbd754b6342700f"-dependencies = [- "windows-targets 0.48.5",-]--[[package]]-name = "windows"-version = "0.52.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "e48a53791691ab099e5e2ad123536d0fff50652600abaf43bbf952894110d0be"-dependencies = [- "windows-core",- "windows-targets 0.52.6",-]--[[package]]-name = "windows-bindgen"-version = "0.39.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "68003dbd0e38abc0fb85b939240f4bce37c43a5981d3df37ccbaaa981b47cb41"-dependencies = [- "windows-metadata",- "windows-tokens",-]--[[package]]-name = "windows-core"-version = "0.52.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "33ab640c8d7e35bf8ba19b884ba838ceb4fba93a4e8c65a9059d08afcfc683d9"-dependencies = [- "windows-targets 0.52.6",-]--[[package]]-name = "windows-implement"-version = "0.39.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "ba01f98f509cb5dc05f4e5fc95e535f78260f15fea8fe1a8abdd08f774f1cee7"-dependencies = [- "syn 1.0.109",- "windows-tokens",-]--[[package]]-name = "windows-metadata"-version = "0.39.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "9ee5e275231f07c6e240d14f34e1b635bf1faa1c76c57cfd59a5cdb9848e4278"--[[package]]-name = "windows-sys"-version = "0.42.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "5a3e1820f08b8513f676f7ab6c1f99ff312fb97b553d30ff4dd86f9f15728aa7"-dependencies = [- "windows_aarch64_gnullvm 0.42.2",- "windows_aarch64_msvc 0.42.2",- "windows_i686_gnu 0.42.2",- "windows_i686_msvc 0.42.2",- "windows_x86_64_gnu 0.42.2",- "windows_x86_64_gnullvm 0.42.2",- "windows_x86_64_msvc 0.42.2",-]--[[package]]-name = "windows-sys"-version = "0.48.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "677d2418bec65e3338edb076e806bc1ec15693c5d0104683f2efe857f61056a9"-dependencies = [- "windows-targets 0.48.5",-]--[[package]]-name = "windows-sys"-version = "0.52.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d"-dependencies = [- "windows-targets 0.52.6",-]--[[package]]-name = "windows-sys"-version = "0.59.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "1e38bc4d79ed67fd075bcc251a1c39b32a1776bbe92e5bef1f0bf1f8c531853b"-dependencies = [- "windows-targets 0.52.6",-]--[[package]]-name = "windows-targets"-version = "0.48.5"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "9a2fa6e2155d7247be68c096456083145c183cbbbc2764150dda45a87197940c"-dependencies = [- "windows_aarch64_gnullvm 0.48.5",- "windows_aarch64_msvc 0.48.5",- "windows_i686_gnu 0.48.5",- "windows_i686_msvc 0.48.5",- "windows_x86_64_gnu 0.48.5",- "windows_x86_64_gnullvm 0.48.5",- "windows_x86_64_msvc 0.48.5",-]--[[package]]-name = "windows-targets"-version = "0.52.6"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973"-dependencies = [- "windows_aarch64_gnullvm 0.52.6",- "windows_aarch64_msvc 0.52.6",- "windows_i686_gnu 0.52.6",- "windows_i686_gnullvm",- "windows_i686_msvc 0.52.6",- "windows_x86_64_gnu 0.52.6",- "windows_x86_64_gnullvm 0.52.6",- "windows_x86_64_msvc 0.52.6",-]--[[package]]-name = "windows-tokens"-version = "0.39.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "f838de2fe15fe6bac988e74b798f26499a8b21a9d97edec321e79b28d1d7f597"--[[package]]-name = "windows-version"-version = "0.1.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "6998aa457c9ba8ff2fb9f13e9d2a930dabcea28f1d0ab94d687d8b3654844515"-dependencies = [- "windows-targets 0.52.6",-]--[[package]]-name = "windows_aarch64_gnullvm"-version = "0.42.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "597a5118570b68bc08d8d59125332c54f1ba9d9adeedeef5b99b02ba2b0698f8"--[[package]]-name = "windows_aarch64_gnullvm"-version = "0.48.5"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "2b38e32f0abccf9987a4e3079dfb67dcd799fb61361e53e2882c3cbaf0d905d8"--[[package]]-name = "windows_aarch64_gnullvm"-version = "0.52.6"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3"--[[package]]-name = "windows_aarch64_msvc"-version = "0.37.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "2623277cb2d1c216ba3b578c0f3cf9cdebeddb6e66b1b218bb33596ea7769c3a"--[[package]]-name = "windows_aarch64_msvc"-version = "0.39.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "ec7711666096bd4096ffa835238905bb33fb87267910e154b18b44eaabb340f2"--[[package]]-name = "windows_aarch64_msvc"-version = "0.42.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "e08e8864a60f06ef0d0ff4ba04124db8b0fb3be5776a5cd47641e942e58c4d43"--[[package]]-name = "windows_aarch64_msvc"-version = "0.48.5"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "dc35310971f3b2dbbf3f0690a219f40e2d9afcf64f9ab7cc1be722937c26b4bc"--[[package]]-name = "windows_aarch64_msvc"-version = "0.52.6"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469"--[[package]]-name = "windows_i686_gnu"-version = "0.37.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "d3925fd0b0b804730d44d4b6278c50f9699703ec49bcd628020f46f4ba07d9e1"--[[package]]-name = "windows_i686_gnu"-version = "0.39.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "763fc57100a5f7042e3057e7e8d9bdd7860d330070251a73d003563a3bb49e1b"--[[package]]-name = "windows_i686_gnu"-version = "0.42.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "c61d927d8da41da96a81f029489353e68739737d3beca43145c8afec9a31a84f"--[[package]]-name = "windows_i686_gnu"-version = "0.48.5"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "a75915e7def60c94dcef72200b9a8e58e5091744960da64ec734a6c6e9b3743e"--[[package]]-name = "windows_i686_gnu"-version = "0.52.6"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b"--[[package]]-name = "windows_i686_gnullvm"-version = "0.52.6"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66"--[[package]]-name = "windows_i686_msvc"-version = "0.37.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "ce907ac74fe331b524c1298683efbf598bb031bc84d5e274db2083696d07c57c"--[[package]]-name = "windows_i686_msvc"-version = "0.39.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "7bc7cbfe58828921e10a9f446fcaaf649204dcfe6c1ddd712c5eebae6bda1106"--[[package]]-name = "windows_i686_msvc"-version = "0.42.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "44d840b6ec649f480a41c8d80f9c65108b92d89345dd94027bfe06ac444d1060"--[[package]]-name = "windows_i686_msvc"-version = "0.48.5"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "8f55c233f70c4b27f66c523580f78f1004e8b5a8b659e05a4eb49d4166cca406"--[[package]]-name = "windows_i686_msvc"-version = "0.52.6"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66"--[[package]]-name = "windows_x86_64_gnu"-version = "0.37.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "2babfba0828f2e6b32457d5341427dcbb577ceef556273229959ac23a10af33d"--[[package]]-name = "windows_x86_64_gnu"-version = "0.39.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "6868c165637d653ae1e8dc4d82c25d4f97dd6605eaa8d784b5c6e0ab2a252b65"--[[package]]-name = "windows_x86_64_gnu"-version = "0.42.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "8de912b8b8feb55c064867cf047dda097f92d51efad5b491dfb98f6bbb70cb36"--[[package]]-name = "windows_x86_64_gnu"-version = "0.48.5"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "53d40abd2583d23e4718fddf1ebec84dbff8381c07cae67ff7768bbf19c6718e"--[[package]]-name = "windows_x86_64_gnu"-version = "0.52.6"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78"--[[package]]-name = "windows_x86_64_gnullvm"-version = "0.42.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "26d41b46a36d453748aedef1486d5c7a85db22e56aff34643984ea85514e94a3"--[[package]]-name = "windows_x86_64_gnullvm"-version = "0.48.5"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "0b7b52767868a23d5bab768e390dc5f5c55825b6d30b86c844ff2dc7414044cc"--[[package]]-name = "windows_x86_64_gnullvm"-version = "0.52.6"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d"--[[package]]-name = "windows_x86_64_msvc"-version = "0.37.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "f4dd6dc7df2d84cf7b33822ed5b86318fb1781948e9663bacd047fc9dd52259d"--[[package]]-name = "windows_x86_64_msvc"-version = "0.39.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "5e4d40883ae9cae962787ca76ba76390ffa29214667a111db9e0a1ad8377e809"--[[package]]-name = "windows_x86_64_msvc"-version = "0.42.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "9aec5da331524158c6d1a4ac0ab1541149c0b9505fde06423b02f5ef0106b9f0"--[[package]]-name = "windows_x86_64_msvc"-version = "0.48.5"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "ed94fce61571a4006852b7389a063ab983c02eb1bb37b47f8272ce92d06d9538"--[[package]]-name = "windows_x86_64_msvc"-version = "0.52.6"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec"--[[package]]-name = "winnow"-version = "0.5.40"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "f593a95398737aeed53e489c785df13f3618e41dbcd6718c6addbf1395aa6876"-dependencies = [- "memchr",-]--[[package]]-name = "winnow"-version = "0.6.20"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "36c1fec1a2bb5866f07c25f68c26e565c4c200aebb96d7e55710c19d3e8ac49b"-dependencies = [- "memchr",-]--[[package]]-name = "winreg"-version = "0.50.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "524e57b2c537c0f9b1e69f1965311ec12182b4122e45035b1508cd24d2adadb1"-dependencies = [- "cfg-if",- "windows-sys 0.48.0",-]--[[package]]-name = "winreg"-version = "0.52.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "a277a57398d4bfa075df44f501a17cfdf8542d224f0d36095a2adc7aee4ef0a5"-dependencies = [- "cfg-if",- "windows-sys 0.48.0",-]--[[package]]-name = "winver"-version = "1.0.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "9e0e7162b9e282fd75a0a832cce93994bdb21208d848a418cd05a5fdd9b9ab33"-dependencies = [- "windows 0.48.0",-]--[[package]]-name = "wry"-version = "0.24.11"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "c55c80b12287eb1ff7c365fc2f7a5037cb6181bd44c9fce81c8d1cf7605ffad6"-dependencies = [- "base64 0.13.1",- "block",- "cocoa 0.24.1",- "core-graphics 0.22.3",- "crossbeam-channel",- "dunce",- "gdk",- "gio",- "glib",- "gtk",- "html5ever",- "http 0.2.12",- "kuchikiki",- "libc",- "log",- "objc",- "objc_id",- "once_cell",- "serde",- "serde_json",- "sha2",- "soup2",- "tao",- "thiserror",- "url",- "webkit2gtk",- "webkit2gtk-sys",- "webview2-com",- "windows 0.39.0",- "windows-implement",-]--[[package]]-name = "x11"-version = "2.21.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "502da5464ccd04011667b11c435cb992822c2c0dbde1770c988480d312a0db2e"-dependencies = [- "libc",- "pkg-config",-]--[[package]]-name = "x11-dl"-version = "2.21.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "38735924fedd5314a6e548792904ed8c6de6636285cb9fec04d5b1db85c1516f"-dependencies = [- "libc",- "once_cell",- "pkg-config",-]--[[package]]-name = "xattr"-version = "1.3.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "8da84f1a25939b27f6820d92aed108f83ff920fdf11a7b19366c27c4cda81d4f"-dependencies = [- "libc",- "linux-raw-sys",- "rustix",-]--[[package]]-name = "zerocopy"-version = "0.7.35"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "1b9b4fd18abc82b8136838da5d50bae7bdea537c574d8dc1a34ed098d6c166f0"-dependencies = [- "byteorder",- "zerocopy-derive",-]--[[package]]-name = "zerocopy-derive"-version = "0.7.35"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "fa4f8080344d4671fb4e831a13ad1e68092748387dfc4f55e356242fae12ce3e"-dependencies = [- "proc-macro2",- "quote",- "syn 2.0.85",-]diff --git a/packages/hoppscotch-selfhost-desktop/src-tauri/Cargo.toml b/packages/hoppscotch-selfhost-desktop/src-tauri/Cargo.tomldeleted file mode 100644index 6ac112e47..000000000--- a/packages/hoppscotch-selfhost-desktop/src-tauri/Cargo.toml+++ /dev/null@@ -1,58 +0,0 @@-[package]-name = "hoppscotch-desktop"-version = "25.1.1"-description = "A Tauri App"-authors = ["you"]-license = ""-repository = ""-edition = "2021"--# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html--[build-dependencies]-tauri-build = { version = "1.5.5", features = [] }--[dependencies]-tauri = { version = "1.8.1", features = [- "dialog-save",- "fs-write-file",- "http-all",- "os-all",- "shell-open",- "window-start-dragging",- "http-multipart",-] }-tauri-plugin-store = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "v1" }-tauri-plugin-deep-link = { git = "https://github.com/FabianLars/tauri-plugin-deep-link", branch = "main" }-tauri-plugin-window-state = "0.1.1"-hoppscotch-relay = { path = "../../hoppscotch-relay" }-serde_json = "1.0.128"-url = "2.5.2"-hex_color = "3.0.0"-serde = { version = "1.0.210", features = ["derive"] }-dashmap = "5.5.3"-tokio = { version = "1.40.0", features = ["macros"] }-tokio-util = "0.7.12"-log = "0.4.22"-thiserror = "1.0.64"--[dev-dependencies]-tauri = { version = "1.8.1", features = ["devtools", "test"] }-env_logger = "0.11.5"--[target.'cfg(target_os = "macos")'.dependencies]-cocoa = "0.25.0"-objc = "0.2.7"--[target.'cfg(target_os = "windows")'.dependencies]-windows = { version = "0.52.0", features = [- "Win32_Graphics_Dwm",- "Win32_Foundation",- "Win32_UI_Controls",-] }-winver = "1"--[features]-# this feature is used for production builds or when `devPath` points to the filesystem-# DO NOT REMOVE!!-custom-protocol = ["tauri/custom-protocol"]diff --git a/packages/hoppscotch-selfhost-desktop/src-tauri/Info.plist b/packages/hoppscotch-selfhost-desktop/src-tauri/Info.plistdeleted file mode 100644index 2af419d4e..000000000--- a/packages/hoppscotch-selfhost-desktop/src-tauri/Info.plist+++ /dev/null@@ -1,19 +0,0 @@-<?xml version="1.0" encoding="UTF-8"?>-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">-<plist version="1.0">- <dict>- <key>CFBundleURLTypes</key>- <array>- <dict>- <key>CFBundleURLName</key>- <!-- Obviously needs to be replaced with your app's bundle identifier -->- <string>io.hoppscotch.desktop</string>- <key>CFBundleURLSchemes</key>- <array>- <!-- register the myapp:// and myscheme:// schemes -->- <string>hoppscotch</string>- </array>- </dict>- </array>- </dict>-</plist>\ No newline at end of filediff --git a/packages/hoppscotch-selfhost-desktop/src-tauri/build.rs b/packages/hoppscotch-selfhost-desktop/src-tauri/build.rsdeleted file mode 100644index 795b9b7c8..000000000--- a/packages/hoppscotch-selfhost-desktop/src-tauri/build.rs+++ /dev/null@@ -1,3 +0,0 @@-fn main() {- tauri_build::build()-}diff --git a/packages/hoppscotch-selfhost-desktop/src-tauri/icons/128x128.png b/packages/hoppscotch-selfhost-desktop/src-tauri/icons/128x128.pngdeleted file mode 100644index deb04401e..000000000Binary files a/packages/hoppscotch-selfhost-desktop/src-tauri/icons/128x128.png and /dev/null differdiff --git a/packages/hoppscotch-selfhost-desktop/src-tauri/icons/[email protected] b/packages/hoppscotch-selfhost-desktop/src-tauri/icons/[email protected]deleted file mode 100644index 21e55044a..000000000Binary files a/packages/hoppscotch-selfhost-desktop/src-tauri/icons/[email protected] and /dev/null differdiff --git a/packages/hoppscotch-selfhost-desktop/src-tauri/icons/32x32.png b/packages/hoppscotch-selfhost-desktop/src-tauri/icons/32x32.pngdeleted file mode 100644index ac7d5af8e..000000000Binary files a/packages/hoppscotch-selfhost-desktop/src-tauri/icons/32x32.png and /dev/null differdiff --git a/packages/hoppscotch-selfhost-desktop/src-tauri/icons/Square107x107Logo.png b/packages/hoppscotch-selfhost-desktop/src-tauri/icons/Square107x107Logo.pngdeleted file mode 100644index 1cbc5179a..000000000Binary files a/packages/hoppscotch-selfhost-desktop/src-tauri/icons/Square107x107Logo.png and /dev/null differdiff --git a/packages/hoppscotch-selfhost-desktop/src-tauri/icons/Square142x142Logo.png b/packages/hoppscotch-selfhost-desktop/src-tauri/icons/Square142x142Logo.pngdeleted file mode 100644index 1ab47c52a..000000000Binary files a/packages/hoppscotch-selfhost-desktop/src-tauri/icons/Square142x142Logo.png and /dev/null differdiff --git a/packages/hoppscotch-selfhost-desktop/src-tauri/icons/Square150x150Logo.png b/packages/hoppscotch-selfhost-desktop/src-tauri/icons/Square150x150Logo.pngdeleted file mode 100644index 348f11d08..000000000Binary files a/packages/hoppscotch-selfhost-desktop/src-tauri/icons/Square150x150Logo.png and /dev/null differdiff --git a/packages/hoppscotch-selfhost-desktop/src-tauri/icons/Square284x284Logo.png b/packages/hoppscotch-selfhost-desktop/src-tauri/icons/Square284x284Logo.pngdeleted file mode 100644index 45feeef5f..000000000Binary files a/packages/hoppscotch-selfhost-desktop/src-tauri/icons/Square284x284Logo.png and /dev/null differdiff --git a/packages/hoppscotch-selfhost-desktop/src-tauri/icons/Square30x30Logo.png b/packages/hoppscotch-selfhost-desktop/src-tauri/icons/Square30x30Logo.pngdeleted file mode 100644index 7dded529f..000000000Binary files a/packages/hoppscotch-selfhost-desktop/src-tauri/icons/Square30x30Logo.png and /dev/null differdiff --git a/packages/hoppscotch-selfhost-desktop/src-tauri/icons/Square310x310Logo.png b/packages/hoppscotch-selfhost-desktop/src-tauri/icons/Square310x310Logo.pngdeleted file mode 100644index ea2dd24f9..000000000Binary files a/packages/hoppscotch-selfhost-desktop/src-tauri/icons/Square310x310Logo.png and /dev/null differdiff --git a/packages/hoppscotch-selfhost-desktop/src-tauri/icons/Square44x44Logo.png b/packages/hoppscotch-selfhost-desktop/src-tauri/icons/Square44x44Logo.pngdeleted file mode 100644index 094d05796..000000000Binary files a/packages/hoppscotch-selfhost-desktop/src-tauri/icons/Square44x44Logo.png and /dev/null differdiff --git a/packages/hoppscotch-selfhost-desktop/src-tauri/icons/Square71x71Logo.png b/packages/hoppscotch-selfhost-desktop/src-tauri/icons/Square71x71Logo.pngdeleted file mode 100644index 6451a311a..000000000Binary files a/packages/hoppscotch-selfhost-desktop/src-tauri/icons/Square71x71Logo.png and /dev/null differdiff --git a/packages/hoppscotch-selfhost-desktop/src-tauri/icons/Square89x89Logo.png b/packages/hoppscotch-selfhost-desktop/src-tauri/icons/Square89x89Logo.pngdeleted file mode 100644index 773422a6a..000000000Binary files a/packages/hoppscotch-selfhost-desktop/src-tauri/icons/Square89x89Logo.png and /dev/null differdiff --git a/packages/hoppscotch-selfhost-desktop/src-tauri/icons/StoreLogo.png b/packages/hoppscotch-selfhost-desktop/src-tauri/icons/StoreLogo.pngdeleted file mode 100644index 8a465c400..000000000Binary files a/packages/hoppscotch-selfhost-desktop/src-tauri/icons/StoreLogo.png and /dev/null differdiff --git a/packages/hoppscotch-selfhost-desktop/src-tauri/icons/icon.icns b/packages/hoppscotch-selfhost-desktop/src-tauri/icons/icon.icnsdeleted file mode 100644index f6d9061ca..000000000Binary files a/packages/hoppscotch-selfhost-desktop/src-tauri/icons/icon.icns and /dev/null differdiff --git a/packages/hoppscotch-selfhost-desktop/src-tauri/icons/icon.ico b/packages/hoppscotch-selfhost-desktop/src-tauri/icons/icon.icodeleted file mode 100644index 652ed2530..000000000Binary files a/packages/hoppscotch-selfhost-desktop/src-tauri/icons/icon.ico and /dev/null differdiff --git a/packages/hoppscotch-selfhost-desktop/src-tauri/icons/icon.png b/packages/hoppscotch-selfhost-desktop/src-tauri/icons/icon.pngdeleted file mode 100644index 08d418b6a..000000000Binary files a/packages/hoppscotch-selfhost-desktop/src-tauri/icons/icon.png and /dev/null differdiff --git a/packages/hoppscotch-selfhost-desktop/src-tauri/src/interceptor.rs b/packages/hoppscotch-selfhost-desktop/src-tauri/src/interceptor.rsdeleted file mode 100644index fb2d0317b..000000000--- a/packages/hoppscotch-selfhost-desktop/src-tauri/src/interceptor.rs+++ /dev/null@@ -1,90 +0,0 @@-use dashmap::DashMap;-use hoppscotch_relay::{RequestWithMetadata, ResponseWithMetadata};-use serde::Serialize;-use tauri::{- plugin::{Builder, TauriPlugin},- Manager, Runtime, State,-};-use thiserror::Error;-use tokio_util::sync::CancellationToken;--#[derive(Default)]-struct InterceptorState {- cancellation_tokens: DashMap<usize, CancellationToken>,-}--#[derive(Debug, Serialize, Error)]-pub enum RunRequestError {- #[error("Request cancelled")]- RequestCancelled,- #[error("Internal server error")]- InternalServerError,- #[error("Relay error: {0}")]- Relay(#[from] hoppscotch_relay::RelayError),-}--#[tauri::command]-async fn run_request(- req: RequestWithMetadata,- state: State<'_, InterceptorState>,-) -> Result<ResponseWithMetadata, RunRequestError> {- let req_id = req.req_id;- let cancel_token = CancellationToken::new();- // NOTE: This will drop reference to an existing cancellation token- // if you send a request with the same request id as an existing one,- // thereby, dropping any means to cancel a running operation with the old token.- // This is done so because, on FE side, we may lose cancel token info upon reloads- // and this allows us to work around that.- state- .cancellation_tokens- .insert(req_id, cancel_token.clone());-- let cancel_token_clone = cancel_token.clone();- // Execute the HTTP request in a blocking thread pool and handles cancellation.- //- // It:- // 1. Uses `spawn_blocking` to run the sync `run_request_task`- // without blocking the main Tokio runtime.- // 2. Uses `select!` to concurrently wait for either- // a. the task to complete,- // b. or a cancellation signal.- //- // Why spawn_blocking?- // - `run_request_task` uses synchronous curl operations which would block- // the async runtime if not run in a separate thread.- // - `spawn_blocking` moves this operation to a thread pool designed for- // blocking tasks, so other async operations to continue unblocked.- let result = tokio::select! {- res = tokio::task::spawn_blocking(move || hoppscotch_relay::run_request_task(&req, cancel_token_clone)) => {- match res {- Ok(task_result) => Ok(task_result?),- Err(_) => Err(RunRequestError::InternalServerError),- }- },- _ = cancel_token.cancelled() => {- Err(RunRequestError::RequestCancelled)- }- };-- state.cancellation_tokens.remove(&req_id);-- result-}--#[tauri::command]-fn cancel_request(req_id: usize, state: State<'_, InterceptorState>) {- if let Some((_, cancel_token)) = state.cancellation_tokens.remove(&req_id) {- cancel_token.cancel();- }-}--pub fn init<R: Runtime>() -> TauriPlugin<R> {- Builder::new("hopp_native_interceptor")- .invoke_handler(tauri::generate_handler![run_request, cancel_request])- .setup(|app_handle| {- app_handle.manage(InterceptorState::default());-- Ok(())- })- .build()-}diff --git a/packages/hoppscotch-selfhost-desktop/src-tauri/src/interop/mod.rs b/packages/hoppscotch-selfhost-desktop/src-tauri/src/interop/mod.rsdeleted file mode 100644index 91973a8e1..000000000--- a/packages/hoppscotch-selfhost-desktop/src-tauri/src/interop/mod.rs+++ /dev/null@@ -1 +0,0 @@-pub(crate) mod startup;diff --git a/packages/hoppscotch-selfhost-desktop/src-tauri/src/interop/startup/error.rs b/packages/hoppscotch-selfhost-desktop/src-tauri/src/interop/startup/error.rsdeleted file mode 100644index d8ba3fa42..000000000--- a/packages/hoppscotch-selfhost-desktop/src-tauri/src/interop/startup/error.rs+++ /dev/null@@ -1,53 +0,0 @@-/// Error handling module for startup-related operations.-///-/// This module defines custom error types and a result type used for startup process of the app.-/// Essentially provides a way to handle and communicate errors-/// that may occur during the initialization and window management phases.-use serde::Serialize;-use thiserror::Error;--/// Represents errors related to window lookup failures.-///-/// Provide more specific information about which window that could not be found.-///-/// Derives `Serialize` mainly for sending it over to the frontend for info/logging purposes.-#[derive(Debug, Error, Serialize)]-pub(crate) enum WindowNotFoundError {- /// Indicates that the `main` window of the app could not be found.- ///- /// This typically occurs if there's a mismatch between the expected- /// window labels and the actual windows created by the application.- #[error("No window labeled 'main' found")]- Main,-}--/// Represents errors that can occur during the startup process.-///-/// Derives `Serialize` mainly for sending it over to the frontend for info/logging purposes.-#[derive(Debug, Error, Serialize)]-pub(crate) enum StartupError {- /// Represents errors related to window lookup failures.- #[error("Window not found: {0}")]- WindowNotFound(WindowNotFoundError),-- /// Represents a general error from the Tauri runtime.- ///- /// This variant is used for any errors originating from Tauri that don't- /// fit into more specific categories.- #[error("Tauri error: {0}")]- Tauri(String),-}--/// Functions that are part of the startup process should return this result type.-/// This allows for consistent error handling and makes it clear that the function-/// is part of the startup flow.-///-/// ```-/// use your_crate::error::{StartupResult, StartupError};-///-/// fn some_startup_function() -> StartupResult<()> {-/// // Function implementation-/// Ok(())-/// }-/// ```-pub(crate) type StartupResult<T> = std::result::Result<T, StartupError>;diff --git a/packages/hoppscotch-selfhost-desktop/src-tauri/src/interop/startup/init.rs b/packages/hoppscotch-selfhost-desktop/src-tauri/src/interop/startup/init.rsdeleted file mode 100644index fe67125e2..000000000--- a/packages/hoppscotch-selfhost-desktop/src-tauri/src/interop/startup/init.rs+++ /dev/null@@ -1,186 +0,0 @@-use log::{error, info};-use tauri::{Manager, Runtime, Window};--use super::error::{StartupError, StartupResult, WindowNotFoundError};-/// Shows the `main` labeled application window.-///-/// This function is designed to be called as a Tauri command.-///-/// # Arguments-///-/// * `window` - A `Window` instance representing the current window. This is automatically-/// provided by Tauri when the command is invoked.-///-/// # Returns-///-/// Returns a `StartupResult<(), String>`:-/// - `Ok(())` if showing main window operation succeed.-/// - `Err(StartupError)` containing an error message if any operation fails.-///-/// # Errors-///-/// This function will return an error if:-/// - The "main" window is not found.-/// - Showing the main window fails.-///-/// # Example-///-/// ```rust,no_run-/// #[tauri::command]-/// async fn invoke_interop_startup_init(window: tauri::Window) {-/// match interop_startup_init(window).await {-/// Ok(_) => println!("`main` window shown successfully"),-/// Err(e) => eprintln!("Error: {}", e),-/// }-/// }-/// ```-#[tauri::command]-pub async fn interop_startup_init<R: Runtime>(window: Window<R>) -> StartupResult<()> {- let main_window = window.get_window("main").ok_or_else(|| {- error!("No window labeled 'main' found");- StartupError::WindowNotFound(WindowNotFoundError::Main)- })?;-- main_window.show().map_err(|e| {- error!("Failed to show `main` window: {}", e);- StartupError::Tauri(format!("Failed to show `main` window: {}", e))- })?;-- info!("`main` window shown successfully");-- Ok(())-}--#[cfg(test)]-mod tests {- use super::*;- use serde_json::json;- use tauri::test::{assert_ipc_response, mock_builder, mock_context, noop_assets};- use tauri::{InvokePayload, WindowBuilder, WindowUrl};-- fn create_app<R: tauri::Runtime>(builder: tauri::Builder<R>) -> tauri::App<R> {- builder- .invoke_handler(tauri::generate_handler![interop_startup_init])- .build(mock_context(noop_assets()))- .expect("failed to build mock app")- }-- /// Test: Main window shown successfully in isolation- ///- /// Rationale:- /// This test verifies the core functionality of `interop_startup_init`.- /// A failure indicates a fundamental issue with the app's initialization process.- ///- /// Context:- /// The "main" window is typically the primary interface,- /// so ensuring it shows correctly is important.- ///- /// Key Points:- /// - We use a mock Tauri application to isolate the window showing behavior.- /// - The test focuses solely on the "main" window to verify the basic case works correctly.- ///- /// Assumptions:- /// - The Tauri runtime is functioning correctly.- /// - A window labeled "main" exists in the application.- /// For this see `tauri.conf.json`:- /// ```json- /// {- /// ...- /// "label": "main",- /// "title": "Hoppscotch",- /// ...- /// ...- /// }- /// ```- ///- /// Implications of Failure:- /// 1. The window labeling system is broken.- /// 2. There's an issue with Tauri's window management.- /// 3. The `interop_startup_init` function is not correctly implemented.- #[tokio::test]- async fn test_interop_startup_init_main_window_shown_successfully() {- let app = create_app(mock_builder());-- let window = app.get_window("main").expect("`main` window not found");-- let result = interop_startup_init(window).await;-- assert!(result.is_ok(), "Expected Ok, but got {:?}", result);- }-- /// Test: Main window found and shown amongst other windows- ///- /// Rationale:- /// This test ensures `interop_startup_init` can correctly identify and show the main window- /// in a more complex scenario with multiple windows.- ///- /// Context:- /// As applications grow, they may introduce additional windows for various purposes. The ability- /// to consistently identify and manipulate the main window is important for maintaining- /// expected behavior.- ///- /// Key Points:- /// - We create an additional "other" window to simulate another window.- /// - The test verifies that the presence of other windows doesn't interfere with main window operations.- ///- /// Assumptions:- /// - The window labeling system consistently identifies the "main" window regardless of other windows.- /// - The order of window creation doesn't affect the ability to find the main window.- ///- /// Implications of Failure:- /// 1. The window identification logic breaks with multiple windows.- #[tokio::test]- async fn test_interop_startup_init_main_window_found_amongst_others() {- let app = create_app(mock_builder());-- let _ = WindowBuilder::new(&app, "other", WindowUrl::default())- .build()- .expect("Failed to create other window");-- let window = app.get_window("other").expect("`other` window not found");-- let result = interop_startup_init(window).await;-- assert!(result.is_ok(), "Expected `Ok(())`, but got {:?}", result);- }-- /// Test: IPC invocation of interop startup init- ///- /// Rationale:- /// This test makes sure that `interop_startup_init` can be correctly invoked through Tauri's IPC mechanism.- /// It's important because it verifies the integration between the Rust backend and the frontend- /// that would typically call this function.- ///- /// Context:- /// This test simulates scenarios where operations are initiated from the frontend via IPC calls.- ///- /// Key Points:- /// - We're testing the IPC invocation, not just the direct function call.- /// - This verifies both the function's behavior and its correct registration with Tauri's IPC system.- ///- /// Assumptions:- /// - The Tauri IPC system is functioning correctly.- /// - The `interop_startup_init` function is properly registered as a Tauri command.- ///- /// Implications of Failure:- /// 1. There's a mismatch between how the frontend tries to call the function and how it's implemented.- /// 2. The Tauri command registration is incorrect.- /// 3. The function isn't properly handling the IPC context.- #[tokio::test]- async fn test_ipc_interop_startup_init() {- let app = create_app(mock_builder());-- let window = app.get_window("main").expect("main window not found");-- let payload = InvokePayload {- cmd: "interop_startup_init".into(),- tauri_module: None,- callback: tauri::api::ipc::CallbackFn(0),- error: tauri::api::ipc::CallbackFn(1),- inner: json!(null),- invoke_key: Some("__invoke-key__".to_string()),- };-- assert_ipc_response(&window, payload, Ok(()));- }-}diff --git a/packages/hoppscotch-selfhost-desktop/src-tauri/src/interop/startup/mod.rs b/packages/hoppscotch-selfhost-desktop/src-tauri/src/interop/startup/mod.rsdeleted file mode 100644index 32de9ce44..000000000--- a/packages/hoppscotch-selfhost-desktop/src-tauri/src/interop/startup/mod.rs+++ /dev/null@@ -1,7 +0,0 @@-//! Startup management module.-//!-//! This module contains functionality related to managing the application's startup-//! like controlling visibility and lifecycle of the main application windows.--pub(crate) mod init;-pub(crate) mod error;diff --git a/packages/hoppscotch-selfhost-desktop/src-tauri/src/mac/mod.rs b/packages/hoppscotch-selfhost-desktop/src-tauri/src/mac/mod.rsdeleted file mode 100644index 61b63f177..000000000--- a/packages/hoppscotch-selfhost-desktop/src-tauri/src/mac/mod.rs+++ /dev/null@@ -1 +0,0 @@-pub mod window;diff --git a/packages/hoppscotch-selfhost-desktop/src-tauri/src/mac/window.rs b/packages/hoppscotch-selfhost-desktop/src-tauri/src/mac/window.rsdeleted file mode 100644index 1330bfba5..000000000--- a/packages/hoppscotch-selfhost-desktop/src-tauri/src/mac/window.rs+++ /dev/null@@ -1,390 +0,0 @@-use hex_color::HexColor;-use tauri::{App, Manager, Runtime, Window};--// If anything breaks on macOS, this should be the place which is broken-// We have to override Tauri (Tao) 's built-in NSWindowDelegate implementation with a-// custom implementation so we can emit events on full screen mode changes.-// Our custom implementation tries to mock the Tauri implementation. So please do refer to the relevant parts--// Apple's NSWindowDelegate reference: https://developer.apple.com/documentation/appkit/nswindowdelegate?language=objc-// Tao's Window Delegate Implementation: https://github.com/tauri-apps/tao/blob/dev/src/platform_impl/macos/window_delegate.rs--#[allow(dead_code)]-pub enum ToolbarThickness {- Thick,- Medium,- Thin,-}--const WINDOW_CONTROL_PAD_X: f64 = 15.0;-const WINDOW_CONTROL_PAD_Y: f64 = 23.0;--pub trait WindowExt {- #[cfg(target_os = "macos")]- fn set_transparent_titlebar(&self);-}--#[cfg(target_os = "macos")]-unsafe fn set_transparent_titlebar(id: cocoa::base::id) {- use cocoa::appkit::NSWindow;-- id.setTitlebarAppearsTransparent_(cocoa::base::YES);- id.setTitleVisibility_(cocoa::appkit::NSWindowTitleVisibility::NSWindowTitleHidden);-}--struct UnsafeWindowHandle(*mut std::ffi::c_void);-unsafe impl Send for UnsafeWindowHandle {}-unsafe impl Sync for UnsafeWindowHandle {}--#[cfg(target_os = "macos")]-fn update_window_theme(window: &tauri::Window, color: HexColor) {- use cocoa::appkit::{- NSAppearance, NSAppearanceNameVibrantDark, NSAppearanceNameVibrantLight, NSWindow,- };-- let brightness = (color.r as u64 + color.g as u64 + color.b as u64) / 3;-- unsafe {- let window_handle = UnsafeWindowHandle(window.ns_window().unwrap());-- let _ = window.run_on_main_thread(move || {- let handle = window_handle;-- let selected_appearance = if brightness >= 128 {- NSAppearance(NSAppearanceNameVibrantLight)- } else {- NSAppearance(NSAppearanceNameVibrantDark)- };-- NSWindow::setAppearance(handle.0 as cocoa::base::id, selected_appearance);- set_window_controls_pos(- handle.0 as cocoa::base::id,- WINDOW_CONTROL_PAD_X,- WINDOW_CONTROL_PAD_Y,- );- });- }-}--#[cfg(target_os = "macos")]-fn set_window_controls_pos(window: cocoa::base::id, x: f64, y: f64) {- use cocoa::{- appkit::{NSView, NSWindow, NSWindowButton},- foundation::NSRect,- };-- unsafe {- let close = window.standardWindowButton_(NSWindowButton::NSWindowCloseButton);- let miniaturize = window.standardWindowButton_(NSWindowButton::NSWindowMiniaturizeButton);- let zoom = window.standardWindowButton_(NSWindowButton::NSWindowZoomButton);-- let title_bar_container_view = close.superview().superview();-- let close_rect: NSRect = msg_send![close, frame];- let button_height = close_rect.size.height;-- let title_bar_frame_height = button_height + y;- let mut title_bar_rect = NSView::frame(title_bar_container_view);- title_bar_rect.size.height = title_bar_frame_height;- title_bar_rect.origin.y = NSView::frame(window).size.height - title_bar_frame_height;- let _: () = msg_send![title_bar_container_view, setFrame: title_bar_rect];-- let window_buttons = vec![close, miniaturize, zoom];- let space_between = NSView::frame(miniaturize).origin.x - NSView::frame(close).origin.x;-- for (i, button) in window_buttons.into_iter().enumerate() {- let mut rect: NSRect = NSView::frame(button);- rect.origin.x = x + (i as f64 * space_between);- button.setFrameOrigin(rect.origin);- }- }-}--impl<R: Runtime> WindowExt for Window<R> {- #[cfg(target_os = "macos")]- fn set_transparent_titlebar(&self) {- unsafe {- let id = self.ns_window().unwrap() as cocoa::base::id;-- set_transparent_titlebar(id);-- set_window_controls_pos(id, WINDOW_CONTROL_PAD_X, WINDOW_CONTROL_PAD_Y);- }- }-}--#[cfg(target_os = "macos")]-#[derive(Debug)]-struct HoppAppState {- window: Window,-}--#[cfg(target_os = "macos")]-pub fn setup_mac_window(app: &mut App) {- use cocoa::appkit::NSWindow;- use cocoa::base::{id, BOOL};- use cocoa::foundation::NSUInteger;- use objc::runtime::{Object, Sel};- use std::ffi::c_void;-- fn with_hopp_app<F: FnOnce(&mut HoppAppState) -> T, T>(this: &Object, func: F) {- let ptr = unsafe {- let x: *mut c_void = *this.get_ivar("hoppApp");- &mut *(x as *mut HoppAppState)- };- func(ptr);- }-- let window = app.get_window("main").unwrap();-- unsafe {- let ns_win = window.ns_window().unwrap() as id;-- let current_delegate: id = ns_win.delegate();-- extern "C" fn on_window_should_close(this: &Object, _cmd: Sel, sender: id) -> BOOL {- unsafe {- let super_del: id = *this.get_ivar("super_delegate");- msg_send![super_del, windowShouldClose: sender]- }- }- extern "C" fn on_window_will_close(this: &Object, _cmd: Sel, notification: id) {- unsafe {- let super_del: id = *this.get_ivar("super_delegate");- let _: () = msg_send![super_del, windowWillClose: notification];- }- }- extern "C" fn on_window_did_resize(this: &Object, _cmd: Sel, notification: id) {- unsafe {- with_hopp_app(&*this, |state| {- let id = state.window.ns_window().unwrap() as id;-- set_window_controls_pos(id, WINDOW_CONTROL_PAD_X, WINDOW_CONTROL_PAD_Y);- });-- let super_del: id = *this.get_ivar("super_delegate");- let _: () = msg_send![super_del, windowDidResize: notification];- }- }- extern "C" fn on_window_did_move(this: &Object, _cmd: Sel, notification: id) {- unsafe {- let super_del: id = *this.get_ivar("super_delegate");- let _: () = msg_send![super_del, windowDidMove: notification];- }- }- extern "C" fn on_window_did_change_backing_properties(- this: &Object,- _cmd: Sel,- notification: id,- ) {- unsafe {- let super_del: id = *this.get_ivar("super_delegate");- let _: () = msg_send![super_del, windowDidChangeBackingProperties: notification];- }- }- extern "C" fn on_window_did_become_key(this: &Object, _cmd: Sel, notification: id) {- unsafe {- let super_del: id = *this.get_ivar("super_delegate");- let _: () = msg_send![super_del, windowDidBecomeKey: notification];- }- }- extern "C" fn on_window_did_resign_key(this: &Object, _cmd: Sel, notification: id) {- unsafe {- let super_del: id = *this.get_ivar("super_delegate");- let _: () = msg_send![super_del, windowDidResignKey: notification];- }- }- extern "C" fn on_dragging_entered(this: &Object, _cmd: Sel, notification: id) -> BOOL {- unsafe {- let super_del: id = *this.get_ivar("super_delegate");- msg_send![super_del, draggingEntered: notification]- }- }- extern "C" fn on_prepare_for_drag_operation(- this: &Object,- _cmd: Sel,- notification: id,- ) -> BOOL {- unsafe {- let super_del: id = *this.get_ivar("super_delegate");- msg_send![super_del, prepareForDragOperation: notification]- }- }- extern "C" fn on_perform_drag_operation(this: &Object, _cmd: Sel, sender: id) -> BOOL {- unsafe {- let super_del: id = *this.get_ivar("super_delegate");- msg_send![super_del, performDragOperation: sender]- }- }- extern "C" fn on_conclude_drag_operation(this: &Object, _cmd: Sel, notification: id) {- unsafe {- let super_del: id = *this.get_ivar("super_delegate");- let _: () = msg_send![super_del, concludeDragOperation: notification];- }- }- extern "C" fn on_dragging_exited(this: &Object, _cmd: Sel, notification: id) {- unsafe {- let super_del: id = *this.get_ivar("super_delegate");- let _: () = msg_send![super_del, draggingExited: notification];- }- }- extern "C" fn on_window_will_use_full_screen_presentation_options(- this: &Object,- _cmd: Sel,- window: id,- proposed_options: NSUInteger,- ) -> NSUInteger {- unsafe {- let super_del: id = *this.get_ivar("super_delegate");- msg_send![super_del, window: window willUseFullScreenPresentationOptions: proposed_options]- }- }- extern "C" fn on_window_did_enter_full_screen(this: &Object, _cmd: Sel, notification: id) {- unsafe {- with_hopp_app(&*this, |state| {- state.window.emit("did-enter-fullscreen", ()).unwrap();- });-- let super_del: id = *this.get_ivar("super_delegate");- let _: () = msg_send![super_del, windowDidEnterFullScreen: notification];- }- }- extern "C" fn on_window_will_enter_full_screen(this: &Object, _cmd: Sel, notification: id) {- unsafe {- with_hopp_app(&*this, |state| {- state.window.emit("will-enter-fullscreen", ()).unwrap();- });-- let super_del: id = *this.get_ivar("super_delegate");- let _: () = msg_send![super_del, windowWillEnterFullScreen: notification];- }- }- extern "C" fn on_window_did_exit_full_screen(this: &Object, _cmd: Sel, notification: id) {- unsafe {- with_hopp_app(&*this, |state| {- state.window.emit("did-exit-fullscreen", ()).unwrap();-- let id = state.window.ns_window().unwrap() as id;- set_window_controls_pos(id, WINDOW_CONTROL_PAD_X, WINDOW_CONTROL_PAD_Y);- });-- let super_del: id = *this.get_ivar("super_delegate");- let _: () = msg_send![super_del, windowDidExitFullScreen: notification];- }- }- extern "C" fn on_window_will_exit_full_screen(this: &Object, _cmd: Sel, notification: id) {- unsafe {- with_hopp_app(&*this, |state| {- state.window.emit("will-exit-fullscreen", ()).unwrap();- });-- let super_del: id = *this.get_ivar("super_delegate");- let _: () = msg_send![super_del, windowWillExitFullScreen: notification];- }- }- extern "C" fn on_window_did_fail_to_enter_full_screen(- this: &Object,- _cmd: Sel,- window: id,- ) {- unsafe {- let super_del: id = *this.get_ivar("super_delegate");- let _: () = msg_send![super_del, windowDidFailToEnterFullScreen: window];- }- }- extern "C" fn on_effective_appearance_did_change(- this: &Object,- _cmd: Sel,- notification: id,- ) {- unsafe {- let super_del: id = *this.get_ivar("super_delegate");- let _: () = msg_send![super_del, effectiveAppearanceDidChange: notification];- }- }- extern "C" fn on_effective_appearance_did_changed_on_main_thread(- this: &Object,- _cmd: Sel,- notification: id,- ) {- unsafe {- let super_del: id = *this.get_ivar("super_delegate");- let _: () = msg_send![- super_del,- effectiveAppearanceDidChangedOnMainThread: notification- ];- }- }-- // extern fn on_dealloc(this: &Object, cmd: Sel) {- // unsafe {- // let super_del: id = *this.get_ivar("super_delegate");- // let _: () = msg_send![super_del, dealloc];- // }- // }-- // extern fn on_mark_is_checking_zoomed_in(this: &Object, cmd: Sel) {- // unsafe {- // let super_del: id = *this.get_ivar("super_delegate");- // let _: () = msg_send![super_del, markIsCheckingZoomedIn];- // }- // }-- // extern fn on_clear_is_checking_zoomed_in(this: &Object, cmd: Sel) {- // unsafe {- // let super_del: id = *this.get_ivar("super_delegate");- // let _: () = msg_send![super_del, clearIsCheckingZoomedIn];- // }- // }-- // Are we deallocing this properly ? (I miss safe Rust :( )- let app_state = HoppAppState { window };- let app_box = Box::into_raw(Box::new(app_state)) as *mut c_void;-- ns_win.setDelegate_(delegate!("MainWindowDelegate", {- window: id = ns_win,- hoppApp: *mut c_void = app_box,- toolbar: id = cocoa::base::nil,- super_delegate: id = current_delegate,- // (dealloc) => on_dealloc as extern fn(&Object, Sel),- // (markIsCheckingZoomedIn) => on_mark_is_checking_zoomed_in as extern fn(&Object, Sel),- // (clearIsCheckingZoomedIn) => on_clear_is_checking_zoomed_in as extern fn(&Object, Sel),- (windowShouldClose:) => on_window_should_close as extern fn(&Object, Sel, id) -> BOOL,- (windowWillClose:) => on_window_will_close as extern fn(&Object, Sel, id),- (windowDidResize:) => on_window_did_resize as extern fn(&Object, Sel, id),- (windowDidMove:) => on_window_did_move as extern fn(&Object, Sel, id),- (windowDidChangeBackingProperties:) => on_window_did_change_backing_properties as extern fn(&Object, Sel, id),- (windowDidBecomeKey:) => on_window_did_become_key as extern fn(&Object, Sel, id),- (windowDidResignKey:) => on_window_did_resign_key as extern fn(&Object, Sel, id),- (draggingEntered:) => on_dragging_entered as extern fn(&Object, Sel, id) -> BOOL,- (prepareForDragOperation:) => on_prepare_for_drag_operation as extern fn(&Object, Sel, id) -> BOOL,- (performDragOperation:) => on_perform_drag_operation as extern fn(&Object, Sel, id) -> BOOL,- (concludeDragOperation:) => on_conclude_drag_operation as extern fn(&Object, Sel, id),- (draggingExited:) => on_dragging_exited as extern fn(&Object, Sel, id),- (window:willUseFullScreenPresentationOptions:) => on_window_will_use_full_screen_presentation_options as extern fn(&Object, Sel, id, NSUInteger) -> NSUInteger,- (windowDidEnterFullScreen:) => on_window_did_enter_full_screen as extern fn(&Object, Sel, id),- (windowWillEnterFullScreen:) => on_window_will_enter_full_screen as extern fn(&Object, Sel, id),- (windowDidExitFullScreen:) => on_window_did_exit_full_screen as extern fn(&Object, Sel, id),- (windowWillExitFullScreen:) => on_window_will_exit_full_screen as extern fn(&Object, Sel, id),- (windowDidFailToEnterFullScreen:) => on_window_did_fail_to_enter_full_screen as extern fn(&Object, Sel, id),- (effectiveAppearanceDidChange:) => on_effective_appearance_did_change as extern fn(&Object, Sel, id),- (effectiveAppearanceDidChangedOnMainThread:) => on_effective_appearance_did_changed_on_main_thread as extern fn(&Object, Sel, id)- }))- }-- app.get_window("main").unwrap().set_transparent_titlebar();-- let window_handle = app.get_window("main").unwrap();- update_window_theme(&window_handle, HexColor::WHITE);-- // Control window theme based on app update_window- app.listen_global("hopp-bg-changed", move |ev| {- let payload = serde_json::from_str::<&str>(ev.payload().unwrap())- .unwrap()- .trim();-- let color = HexColor::parse_rgb(payload).unwrap();-- update_window_theme(&window_handle, color);- });-}diff --git a/packages/hoppscotch-selfhost-desktop/src-tauri/src/main.rs b/packages/hoppscotch-selfhost-desktop/src-tauri/src/main.rsdeleted file mode 100644index 89145a241..000000000--- a/packages/hoppscotch-selfhost-desktop/src-tauri/src/main.rs+++ /dev/null@@ -1,80 +0,0 @@-// Prevents additional console window on Windows in release, DO NOT REMOVE!!-#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]--#[cfg(target_os = "macos")]-#[macro_use]-extern crate cocoa;--#[cfg(target_os = "macos")]-#[macro_use]-extern crate objc;--#[cfg(target_os = "macos")]-mod mac;--#[cfg(target_os = "windows")]-mod win;--mod interceptor;-mod interop;--use tauri::Manager;--fn main() {- tauri_plugin_deep_link::prepare("io.hoppscotch.desktop");-- tauri::Builder::default()- .invoke_handler(tauri::generate_handler![- interop::startup::init::interop_startup_init- ])- .plugin(- tauri_plugin_window_state::Builder::default()- .with_state_flags(- // NOTE:- // The app (window labeled "main") manages its visible state via `interop_startup_init`.- // See `tauri.conf.json`:- // ```json- // {- // "label": "main",- // "title": "Hoppscotch",- // ...- // ...- // "visible": false, // This is the important part.- // ...- // ...- // }- // ```- tauri_plugin_window_state::StateFlags::all()- & !tauri_plugin_window_state::StateFlags::VISIBLE,- )- .build(),- )- .plugin(tauri_plugin_store::Builder::default().build())- .plugin(interceptor::init())- .setup(|app| {- if cfg!(target_os = "macos") {- #[cfg(target_os = "macos")]- use mac::window::setup_mac_window;-- #[cfg(target_os = "macos")]- setup_mac_window(app);- } else if cfg!(target_os = "windows") {- #[cfg(target_os = "windows")]- use win::window::setup_win_window;-- #[cfg(target_os = "windows")]- setup_win_window(app);- }-- let handle = app.handle();- tauri_plugin_deep_link::register("hoppscotch", move |request| {- println!("{:?}", request);- handle.emit_all("scheme-request-received", request).unwrap();- })- .unwrap();-- Ok(())- })- .run(tauri::generate_context!())- .expect("error while running tauri application");-}diff --git a/packages/hoppscotch-selfhost-desktop/src-tauri/src/win/mod.rs b/packages/hoppscotch-selfhost-desktop/src-tauri/src/win/mod.rsdeleted file mode 100644index 61b63f177..000000000--- a/packages/hoppscotch-selfhost-desktop/src-tauri/src/win/mod.rs+++ /dev/null@@ -1 +0,0 @@-pub mod window;diff --git a/packages/hoppscotch-selfhost-desktop/src-tauri/src/win/window.rs b/packages/hoppscotch-selfhost-desktop/src-tauri/src/win/window.rsdeleted file mode 100644index c83202b24..000000000--- a/packages/hoppscotch-selfhost-desktop/src-tauri/src/win/window.rs+++ /dev/null@@ -1,95 +0,0 @@-use hex_color::HexColor;-use tauri::App;-use tauri::Manager;--use std::mem::transmute;-use std::{ptr, ffi::c_void, mem::size_of};--use windows::Win32::UI::Controls::{WTA_NONCLIENT, WTNCA_NODRAWICON, WTNCA_NOSYSMENU, WTNCA_NOMIRRORHELP};--use windows::Win32::UI::Controls::SetWindowThemeAttribute;-use windows::Win32::UI::Controls::WTNCA_NODRAWCAPTION;-use windows::Win32::Graphics::Dwm::DWMWA_CAPTION_COLOR;-use windows::Win32::Foundation::COLORREF;-use windows::Win32::Foundation::BOOL;-use windows::Win32::Graphics::Dwm::DwmSetWindowAttribute;-use windows::Win32::Foundation::HWND;-use windows::Win32::Graphics::Dwm::{DWMWA_USE_IMMERSIVE_DARK_MODE};--use winver::WindowsVersion;--fn hex_color_to_colorref(color: HexColor) -> COLORREF {- // TODO: Remove this unsafe, This operation doesn't need to be unsafe!- unsafe {- COLORREF(transmute::<[u8; 4], u32>([color.r, color.g, color.b, 0]))- }-}--struct WinThemeAttribute {- flag: u32,- mask: u32-}--#[cfg(target_os = "windows")]-fn update_bg_color(hwnd: &HWND, bg_color: HexColor) {-- let use_dark_mode = BOOL::from(true);-- let final_color = hex_color_to_colorref(bg_color);-- unsafe {- DwmSetWindowAttribute(- HWND(hwnd.0),- DWMWA_USE_IMMERSIVE_DARK_MODE,- ptr::addr_of!(use_dark_mode) as *const c_void,- size_of::<BOOL>().try_into().unwrap()- ).unwrap();- }-- let version = WindowsVersion::detect().unwrap();- if version >= WindowsVersion::new(10, 0, 22000) {- unsafe {- DwmSetWindowAttribute(- HWND(hwnd.0),- DWMWA_CAPTION_COLOR,- ptr::addr_of!(final_color) as *const c_void,- size_of::<COLORREF>().try_into().unwrap()- ).unwrap();- }- }-- let flags = WTNCA_NODRAWCAPTION | WTNCA_NODRAWICON;- let mask = WTNCA_NODRAWCAPTION | WTNCA_NODRAWICON | WTNCA_NOSYSMENU | WTNCA_NOMIRRORHELP;- let options = WinThemeAttribute { flag: flags, mask };-- unsafe {- SetWindowThemeAttribute(- HWND(hwnd.0),- WTA_NONCLIENT,- ptr::addr_of!(options) as *const c_void,- size_of::<WinThemeAttribute>().try_into().unwrap()- ).unwrap();- }-}--#[cfg(target_os = "windows")]-pub fn setup_win_window(app: &mut App) {-- let window = app.get_window("main").unwrap();- let win_handle = window.hwnd().unwrap();-- let win_clone = win_handle.clone();-- app.listen_global("hopp-bg-changed", move |ev| {-- let payload = serde_json::from_str::<&str>(ev.payload().unwrap())- .unwrap()- .trim();-- let color = HexColor::parse_rgb(payload).unwrap();-- update_bg_color(&HWND(win_clone.0), color);- });-- update_bg_color(&HWND(win_handle.0), HexColor::rgb(23, 23, 23));-}diff --git a/packages/hoppscotch-selfhost-desktop/src-tauri/tauri.conf.json b/packages/hoppscotch-selfhost-desktop/src-tauri/tauri.conf.jsondeleted file mode 100644index f8055664d..000000000--- a/packages/hoppscotch-selfhost-desktop/src-tauri/tauri.conf.json+++ /dev/null@@ -1,70 +0,0 @@-{- "build": {- "beforeDevCommand": "pnpm dev",- "beforeBuildCommand": "pnpm build",- "devPath": "http://localhost:3000",- "distDir": "../dist",- "withGlobalTauri": false- },- "package": {- "productName": "Hoppscotch",- "version": "25.1.1"- },- "tauri": {- "allowlist": {- "all": false,- "shell": {- "all": false,- "open": true- },- "os": {- "all": true- },- "fs": {- "writeFile": true- },- "dialog": {- "save": true- },- "http": {- "all": true,- "request": true,- "scope": ["http://*", "https://*", "wss://*"]- },- "window": {- "startDragging": true- }- },- "bundle": {- "active": true,- "category": "DeveloperTool",- "icon": [- "icons/32x32.png",- "icons/128x128.png",- "icons/[email protected]",- "icons/icon.icns",- "icons/icon.ico"- ],- "identifier": "io.hoppscotch.desktop",- "targets": "all"- },- "security": {- "csp": null- },- "updater": {- "active": false- },- "windows": [- {- "label": "main",- "title": "Hoppscotch",- "visible": false,- "fullscreen": false,- "resizable": true,- "width": 800,- "height": 600,- "fileDropEnabled": false- }- ]- }-}diff --git a/packages/hoppscotch-selfhost-desktop/src/api/mutations/ClearGlobalEnvironments.graphql b/packages/hoppscotch-selfhost-desktop/src/api/mutations/ClearGlobalEnvironments.graphqldeleted file mode 100644index 5a184fcf8..000000000--- a/packages/hoppscotch-selfhost-desktop/src/api/mutations/ClearGlobalEnvironments.graphql+++ /dev/null@@ -1,5 +0,0 @@-mutation ClearGlobalEnvironments($id: ID!) {- clearGlobalEnvironments(id: $id) {- id- }-}diff --git a/packages/hoppscotch-selfhost-desktop/src/api/mutations/CreateGQLChildUserCollection.graphql b/packages/hoppscotch-selfhost-desktop/src/api/mutations/CreateGQLChildUserCollection.graphqldeleted file mode 100644index 736781a47..000000000--- a/packages/hoppscotch-selfhost-desktop/src/api/mutations/CreateGQLChildUserCollection.graphql+++ /dev/null@@ -1,14 +0,0 @@-mutation CreateGQLChildUserCollection(- $title: String!- $parentUserCollectionID: ID!- $data: String-) {- createGQLChildUserCollection(- title: $title- parentUserCollectionID: $parentUserCollectionID- data: $data- ) {- id- data- }-}diff --git a/packages/hoppscotch-selfhost-desktop/src/api/mutations/CreateGQLRootUserCollection.graphql b/packages/hoppscotch-selfhost-desktop/src/api/mutations/CreateGQLRootUserCollection.graphqldeleted file mode 100644index bc30e96d2..000000000--- a/packages/hoppscotch-selfhost-desktop/src/api/mutations/CreateGQLRootUserCollection.graphql+++ /dev/null@@ -1,6 +0,0 @@-mutation CreateGQLRootUserCollection($title: String!, $data: String) {- createGQLRootUserCollection(title: $title, data: $data) {- id- data- }-}diff --git a/packages/hoppscotch-selfhost-desktop/src/api/mutations/CreateGQLUserRequest.graphql b/packages/hoppscotch-selfhost-desktop/src/api/mutations/CreateGQLUserRequest.graphqldeleted file mode 100644index 02423e864..000000000--- a/packages/hoppscotch-selfhost-desktop/src/api/mutations/CreateGQLUserRequest.graphql+++ /dev/null@@ -1,13 +0,0 @@-mutation CreateGQLUserRequest(- $title: String!- $request: String!- $collectionID: ID!-) {- createGQLUserRequest(- title: $title- request: $request- collectionID: $collectionID- ) {- id- }-}diff --git a/packages/hoppscotch-selfhost-desktop/src/api/mutations/CreateRESTChildUserCollection.graphql b/packages/hoppscotch-selfhost-desktop/src/api/mutations/CreateRESTChildUserCollection.graphqldeleted file mode 100644index eea3cdf75..000000000--- a/packages/hoppscotch-selfhost-desktop/src/api/mutations/CreateRESTChildUserCollection.graphql+++ /dev/null@@ -1,14 +0,0 @@-mutation CreateRESTChildUserCollection(- $title: String!- $parentUserCollectionID: ID!- $data: String-) {- createRESTChildUserCollection(- title: $title- parentUserCollectionID: $parentUserCollectionID- data: $data- ) {- id- data- }-}diff --git a/packages/hoppscotch-selfhost-desktop/src/api/mutations/CreateRESTRootUserCollection.graphql b/packages/hoppscotch-selfhost-desktop/src/api/mutations/CreateRESTRootUserCollection.graphqldeleted file mode 100644index d0136c499..000000000--- a/packages/hoppscotch-selfhost-desktop/src/api/mutations/CreateRESTRootUserCollection.graphql+++ /dev/null@@ -1,6 +0,0 @@-mutation CreateRESTRootUserCollection($title: String!, $data: String) {- createRESTRootUserCollection(title: $title, data: $data) {- id- data- }-}diff --git a/packages/hoppscotch-selfhost-desktop/src/api/mutations/CreateRESTUserRequest.graphql b/packages/hoppscotch-selfhost-desktop/src/api/mutations/CreateRESTUserRequest.graphqldeleted file mode 100644index 01d51b0c0..000000000--- a/packages/hoppscotch-selfhost-desktop/src/api/mutations/CreateRESTUserRequest.graphql+++ /dev/null@@ -1,13 +0,0 @@-mutation CreateRESTUserRequest(- $collectionID: ID!- $title: String!- $request: String!-) {- createRESTUserRequest(- collectionID: $collectionID- title: $title- request: $request- ) {- id- }-}diff --git a/packages/hoppscotch-selfhost-desktop/src/api/mutations/CreateUserEnvironment.graphql b/packages/hoppscotch-selfhost-desktop/src/api/mutations/CreateUserEnvironment.graphqldeleted file mode 100644index 186510644..000000000--- a/packages/hoppscotch-selfhost-desktop/src/api/mutations/CreateUserEnvironment.graphql+++ /dev/null@@ -1,9 +0,0 @@-mutation CreateUserEnvironment($name: String!, $variables: String!) {- createUserEnvironment(name: $name, variables: $variables) {- id- userUid- name- variables- isGlobal- }-}diff --git a/packages/hoppscotch-selfhost-desktop/src/api/mutations/CreateUserGlobalEnvironment.graphql b/packages/hoppscotch-selfhost-desktop/src/api/mutations/CreateUserGlobalEnvironment.graphqldeleted file mode 100644index 8e7553f32..000000000--- a/packages/hoppscotch-selfhost-desktop/src/api/mutations/CreateUserGlobalEnvironment.graphql+++ /dev/null@@ -1,5 +0,0 @@-mutation CreateUserGlobalEnvironment($variables: String!) {- createUserGlobalEnvironment(variables: $variables) {- id- }-}diff --git a/packages/hoppscotch-selfhost-desktop/src/api/mutations/CreateUserHistory.graphql b/packages/hoppscotch-selfhost-desktop/src/api/mutations/CreateUserHistory.graphqldeleted file mode 100644index ef9da5c66..000000000--- a/packages/hoppscotch-selfhost-desktop/src/api/mutations/CreateUserHistory.graphql+++ /dev/null@@ -1,13 +0,0 @@-mutation CreateUserHistory(- $reqData: String!- $resMetadata: String!- $reqType: ReqType!-) {- createUserHistory(- reqData: $reqData- resMetadata: $resMetadata- reqType: $reqType- ) {- id- }-}diff --git a/packages/hoppscotch-selfhost-desktop/src/api/mutations/CreateUserSettings.graphql b/packages/hoppscotch-selfhost-desktop/src/api/mutations/CreateUserSettings.graphqldeleted file mode 100644index 2ada8a1fa..000000000--- a/packages/hoppscotch-selfhost-desktop/src/api/mutations/CreateUserSettings.graphql+++ /dev/null@@ -1,5 +0,0 @@-mutation CreateUserSettings($properties: String!) {- createUserSettings(properties: $properties) {- id- }-}diff --git a/packages/hoppscotch-selfhost-desktop/src/api/mutations/DeleteAllUserHistory.graphql b/packages/hoppscotch-selfhost-desktop/src/api/mutations/DeleteAllUserHistory.graphqldeleted file mode 100644index 3e5085870..000000000--- a/packages/hoppscotch-selfhost-desktop/src/api/mutations/DeleteAllUserHistory.graphql+++ /dev/null@@ -1,6 +0,0 @@-mutation DeleteAllUserHistory($reqType: ReqType!) {- deleteAllUserHistory(reqType: $reqType) {- count- reqType- }-}diff --git a/packages/hoppscotch-selfhost-desktop/src/api/mutations/DeleteUserCollection.graphql b/packages/hoppscotch-selfhost-desktop/src/api/mutations/DeleteUserCollection.graphqldeleted file mode 100644index cafa7b08a..000000000--- a/packages/hoppscotch-selfhost-desktop/src/api/mutations/DeleteUserCollection.graphql+++ /dev/null@@ -1,3 +0,0 @@-mutation DeleteUserCollection($userCollectionID: ID!) {- deleteUserCollection(userCollectionID: $userCollectionID)-}diff --git a/packages/hoppscotch-selfhost-desktop/src/api/mutations/DeleteUserEnvironments.graphql b/packages/hoppscotch-selfhost-desktop/src/api/mutations/DeleteUserEnvironments.graphqldeleted file mode 100644index 148971933..000000000--- a/packages/hoppscotch-selfhost-desktop/src/api/mutations/DeleteUserEnvironments.graphql+++ /dev/null@@ -1,3 +0,0 @@-mutation DeleteUserEnvironment($id: ID!) {- deleteUserEnvironment(id: $id)-}diff --git a/packages/hoppscotch-selfhost-desktop/src/api/mutations/DeleteUserRequest.graphql b/packages/hoppscotch-selfhost-desktop/src/api/mutations/DeleteUserRequest.graphqldeleted file mode 100644index c4855e807..000000000--- a/packages/hoppscotch-selfhost-desktop/src/api/mutations/DeleteUserRequest.graphql+++ /dev/null@@ -1,3 +0,0 @@-mutation DeleteUserRequest($requestID: ID!) {- deleteUserRequest(id: $requestID)-}diff --git a/packages/hoppscotch-selfhost-desktop/src/api/mutations/DuplicateUserCollection.graphql b/packages/hoppscotch-selfhost-desktop/src/api/mutations/DuplicateUserCollection.graphqldeleted file mode 100644index 78d68bcdb..000000000--- a/packages/hoppscotch-selfhost-desktop/src/api/mutations/DuplicateUserCollection.graphql+++ /dev/null@@ -1,3 +0,0 @@-mutation DuplicateUserCollection($collectionID: String!, $reqType: ReqType!) {- duplicateUserCollection(collectionID: $collectionID, reqType: $reqType)-}diff --git a/packages/hoppscotch-selfhost-desktop/src/api/mutations/ImportUserCollectionsFromJSON.graphql b/packages/hoppscotch-selfhost-desktop/src/api/mutations/ImportUserCollectionsFromJSON.graphqldeleted file mode 100644index 0fa6a920b..000000000--- a/packages/hoppscotch-selfhost-desktop/src/api/mutations/ImportUserCollectionsFromJSON.graphql+++ /dev/null@@ -1,11 +0,0 @@-mutation ImportUserCollectionsFromJSON(- $jsonString: String!- $reqType: ReqType!- $parentCollectionID: ID-) {- importUserCollectionsFromJSON(- jsonString: $jsonString- reqType: $reqType- parentCollectionID: $parentCollectionID- )-}diff --git a/packages/hoppscotch-selfhost-desktop/src/api/mutations/MoveUserCollection.graphql b/packages/hoppscotch-selfhost-desktop/src/api/mutations/MoveUserCollection.graphqldeleted file mode 100644index ac280122f..000000000--- a/packages/hoppscotch-selfhost-desktop/src/api/mutations/MoveUserCollection.graphql+++ /dev/null@@ -1,8 +0,0 @@-mutation MoveUserCollection($destCollectionID: ID, $userCollectionID: ID!) {- moveUserCollection(- destCollectionID: $destCollectionID- userCollectionID: $userCollectionID- ) {- id- }-}diff --git a/packages/hoppscotch-selfhost-desktop/src/api/mutations/MoveUserRequest.graphql b/packages/hoppscotch-selfhost-desktop/src/api/mutations/MoveUserRequest.graphqldeleted file mode 100644index 38f8e6ca7..000000000--- a/packages/hoppscotch-selfhost-desktop/src/api/mutations/MoveUserRequest.graphql+++ /dev/null@@ -1,15 +0,0 @@-mutation MoveUserRequest(- $sourceCollectionID: ID!- $requestID: ID!- $destinationCollectionID: ID!- $nextRequestID: ID-) {- moveUserRequest(- sourceCollectionID: $sourceCollectionID- requestID: $requestID- destinationCollectionID: $destinationCollectionID- nextRequestID: $nextRequestID- ) {- id- }-}diff --git a/packages/hoppscotch-selfhost-desktop/src/api/mutations/RemoveRequestFromHistory.graphql b/packages/hoppscotch-selfhost-desktop/src/api/mutations/RemoveRequestFromHistory.graphqldeleted file mode 100644index a0dd3e988..000000000--- a/packages/hoppscotch-selfhost-desktop/src/api/mutations/RemoveRequestFromHistory.graphql+++ /dev/null@@ -1,5 +0,0 @@-mutation RemoveRequestFromHistory($id: ID!) {- removeRequestFromHistory(id: $id) {- id- }-}diff --git a/packages/hoppscotch-selfhost-desktop/src/api/mutations/RenameUserCollection.graphql b/packages/hoppscotch-selfhost-desktop/src/api/mutations/RenameUserCollection.graphqldeleted file mode 100644index 35603cea6..000000000--- a/packages/hoppscotch-selfhost-desktop/src/api/mutations/RenameUserCollection.graphql+++ /dev/null@@ -1,8 +0,0 @@-mutation RenameUserCollection($userCollectionID: ID!, $newTitle: String!) {- renameUserCollection(- userCollectionID: $userCollectionID- newTitle: $newTitle- ) {- id- }-}diff --git a/packages/hoppscotch-selfhost-desktop/src/api/mutations/SortUserCollections.graphql b/packages/hoppscotch-selfhost-desktop/src/api/mutations/SortUserCollections.graphqldeleted file mode 100644index 6417fd9d5..000000000--- a/packages/hoppscotch-selfhost-desktop/src/api/mutations/SortUserCollections.graphql+++ /dev/null@@ -1,9 +0,0 @@-mutation SortUserCollections(- $parentCollectionID: ID- $sortOption: SortOptions!-) {- sortUserCollections(- parentCollectionID: $parentCollectionID- sortOption: $sortOption- )-}diff --git a/packages/hoppscotch-selfhost-desktop/src/api/mutations/ToggleHistoryStarStatus.graphql b/packages/hoppscotch-selfhost-desktop/src/api/mutations/ToggleHistoryStarStatus.graphqldeleted file mode 100644index 33bf9c173..000000000--- a/packages/hoppscotch-selfhost-desktop/src/api/mutations/ToggleHistoryStarStatus.graphql+++ /dev/null@@ -1,5 +0,0 @@-mutation ToggleHistoryStarStatus($id: ID!) {- toggleHistoryStarStatus(id: $id) {- id- }-}diff --git a/packages/hoppscotch-selfhost-desktop/src/api/mutations/UpdateGQLUserRequest.graphql b/packages/hoppscotch-selfhost-desktop/src/api/mutations/UpdateGQLUserRequest.graphqldeleted file mode 100644index 253fed7db..000000000--- a/packages/hoppscotch-selfhost-desktop/src/api/mutations/UpdateGQLUserRequest.graphql+++ /dev/null@@ -1,5 +0,0 @@-mutation UpdateGQLUserRequest($id: ID!, $request: String!, $title: String) {- updateGQLUserRequest(id: $id, request: $request, title: $title) {- id- }-}diff --git a/packages/hoppscotch-selfhost-desktop/src/api/mutations/UpdateRESTUserRequest.graphql b/packages/hoppscotch-selfhost-desktop/src/api/mutations/UpdateRESTUserRequest.graphqldeleted file mode 100644index b7899df9e..000000000--- a/packages/hoppscotch-selfhost-desktop/src/api/mutations/UpdateRESTUserRequest.graphql+++ /dev/null@@ -1,7 +0,0 @@-mutation UpdateRESTUserRequest($id: ID!, $title: String!, $request: String!) {- updateRESTUserRequest(id: $id, title: $title, request: $request) {- id- collectionID- request- }-}diff --git a/packages/hoppscotch-selfhost-desktop/src/api/mutations/UpdateUserCollection.graphql b/packages/hoppscotch-selfhost-desktop/src/api/mutations/UpdateUserCollection.graphqldeleted file mode 100644index c5e89d22c..000000000--- a/packages/hoppscotch-selfhost-desktop/src/api/mutations/UpdateUserCollection.graphql+++ /dev/null@@ -1,15 +0,0 @@-mutation UpdateUserCollection(- $userCollectionID: ID!- $newTitle: String- $data: String-) {- updateUserCollection(- userCollectionID: $userCollectionID- newTitle: $newTitle- data: $data- ) {- id- title- data- }-}diff --git a/packages/hoppscotch-selfhost-desktop/src/api/mutations/UpdateUserCollectionOrder.graphql b/packages/hoppscotch-selfhost-desktop/src/api/mutations/UpdateUserCollectionOrder.graphqldeleted file mode 100644index c9e665be0..000000000--- a/packages/hoppscotch-selfhost-desktop/src/api/mutations/UpdateUserCollectionOrder.graphql+++ /dev/null@@ -1,6 +0,0 @@-mutation UpdateUserCollectionOrder($collectionID: ID!, $nextCollectionID: ID) {- updateUserCollectionOrder(- collectionID: $collectionID- nextCollectionID: $nextCollectionID- )-}diff --git a/packages/hoppscotch-selfhost-desktop/src/api/mutations/UpdateUserEnvironment.graphql b/packages/hoppscotch-selfhost-desktop/src/api/mutations/UpdateUserEnvironment.graphqldeleted file mode 100644index c849a1541..000000000--- a/packages/hoppscotch-selfhost-desktop/src/api/mutations/UpdateUserEnvironment.graphql+++ /dev/null@@ -1,9 +0,0 @@-mutation UpdateUserEnvironment($id: ID!, $name: String!, $variables: String!) {- updateUserEnvironment(id: $id, name: $name, variables: $variables) {- id- userUid- name- variables- isGlobal- }-}diff --git a/packages/hoppscotch-selfhost-desktop/src/api/mutations/UpdateUserSettings.graphql b/packages/hoppscotch-selfhost-desktop/src/api/mutations/UpdateUserSettings.graphqldeleted file mode 100644index 85bb4b0e6..000000000--- a/packages/hoppscotch-selfhost-desktop/src/api/mutations/UpdateUserSettings.graphql+++ /dev/null@@ -1,5 +0,0 @@-mutation UpdateUserSettings($properties: String!) {- updateUserSettings(properties: $properties) {- id- }-}diff --git a/packages/hoppscotch-selfhost-desktop/src/api/queries/CreateUserEnvironment.graphql b/packages/hoppscotch-selfhost-desktop/src/api/queries/CreateUserEnvironment.graphqldeleted file mode 100644index 186510644..000000000--- a/packages/hoppscotch-selfhost-desktop/src/api/queries/CreateUserEnvironment.graphql+++ /dev/null@@ -1,9 +0,0 @@-mutation CreateUserEnvironment($name: String!, $variables: String!) {- createUserEnvironment(name: $name, variables: $variables) {- id- userUid- name- variables- isGlobal- }-}diff --git a/packages/hoppscotch-selfhost-desktop/src/api/queries/ExportUserCollectionsToJSON.graphql b/packages/hoppscotch-selfhost-desktop/src/api/queries/ExportUserCollectionsToJSON.graphqldeleted file mode 100644index 09f54adb9..000000000--- a/packages/hoppscotch-selfhost-desktop/src/api/queries/ExportUserCollectionsToJSON.graphql+++ /dev/null@@ -1,12 +0,0 @@-query ExportUserCollectionsToJSON(- $collectionID: ID- $collectionType: ReqType!-) {- exportUserCollectionsToJSON(- collectionID: $collectionID- collectionType: $collectionType- ) {- collectionType- exportedCollection- }-}diff --git a/packages/hoppscotch-selfhost-desktop/src/api/queries/GetGlobalEnvironments.graphql b/packages/hoppscotch-selfhost-desktop/src/api/queries/GetGlobalEnvironments.graphqldeleted file mode 100644index 08d3c2143..000000000--- a/packages/hoppscotch-selfhost-desktop/src/api/queries/GetGlobalEnvironments.graphql+++ /dev/null@@ -1,11 +0,0 @@-query GetGlobalEnvironments {- me {- globalEnvironments {- id- isGlobal- name- userUid- variables- }- }-}diff --git a/packages/hoppscotch-selfhost-desktop/src/api/queries/GetRestUserHistory.graphql b/packages/hoppscotch-selfhost-desktop/src/api/queries/GetRestUserHistory.graphqldeleted file mode 100644index 144861594..000000000--- a/packages/hoppscotch-selfhost-desktop/src/api/queries/GetRestUserHistory.graphql+++ /dev/null@@ -1,23 +0,0 @@-query GetRESTUserHistory {- me {- RESTHistory {- id- userUid- reqType- request- responseMetadata- isStarred- executedOn- }-- GQLHistory {- id- userUid- reqType- request- responseMetadata- isStarred- executedOn- }- }-}diff --git a/packages/hoppscotch-selfhost-desktop/src/api/queries/GetRootGQLUserCollections.graphql b/packages/hoppscotch-selfhost-desktop/src/api/queries/GetRootGQLUserCollections.graphqldeleted file mode 100644index fcc80d993..000000000--- a/packages/hoppscotch-selfhost-desktop/src/api/queries/GetRootGQLUserCollections.graphql+++ /dev/null@@ -1,13 +0,0 @@-query GetGQLRootUserCollections {- # the frontend doesnt paginate right now, so giving take a big enough value to get all collections at once- rootGQLUserCollections(take: 99999) {- id- title- type- childrenGQL {- id- title- type- }- }-}diff --git a/packages/hoppscotch-selfhost-desktop/src/api/queries/GetUserEnvironments.graphql b/packages/hoppscotch-selfhost-desktop/src/api/queries/GetUserEnvironments.graphqldeleted file mode 100644index 0bbeddbb4..000000000--- a/packages/hoppscotch-selfhost-desktop/src/api/queries/GetUserEnvironments.graphql+++ /dev/null@@ -1,11 +0,0 @@-query GetUserEnvironments {- me {- environments {- id- isGlobal- name- userUid- variables- }- }-}diff --git a/packages/hoppscotch-selfhost-desktop/src/api/queries/GetUserRootCollections.graphql b/packages/hoppscotch-selfhost-desktop/src/api/queries/GetUserRootCollections.graphqldeleted file mode 100644index 0b6842339..000000000--- a/packages/hoppscotch-selfhost-desktop/src/api/queries/GetUserRootCollections.graphql+++ /dev/null@@ -1,13 +0,0 @@-query GetUserRootCollections {- # the frontend doesnt paginate right now, so giving take a big enough value to get all collections at once- rootRESTUserCollections(take: 99999) {- id- title- type- childrenREST {- id- title- type- }- }-}diff --git a/packages/hoppscotch-selfhost-desktop/src/api/queries/GetUserSettings.graphql b/packages/hoppscotch-selfhost-desktop/src/api/queries/GetUserSettings.graphqldeleted file mode 100644index 1ac94553e..000000000--- a/packages/hoppscotch-selfhost-desktop/src/api/queries/GetUserSettings.graphql+++ /dev/null@@ -1,8 +0,0 @@-query GetUserSettings {- me {- settings {- id- properties- }- }-}diff --git a/packages/hoppscotch-selfhost-desktop/src/api/queries/IsUserHistoryEnabled.graphql b/packages/hoppscotch-selfhost-desktop/src/api/queries/IsUserHistoryEnabled.graphqldeleted file mode 100644index 77bd96500..000000000--- a/packages/hoppscotch-selfhost-desktop/src/api/queries/IsUserHistoryEnabled.graphql+++ /dev/null@@ -1,6 +0,0 @@-query IsUserHistoryEnabled {- isUserHistoryEnabled {- name- value- }-}diff --git a/packages/hoppscotch-selfhost-desktop/src/api/subscriptions/UserChildCollectionSorted.graphql b/packages/hoppscotch-selfhost-desktop/src/api/subscriptions/UserChildCollectionSorted.graphqldeleted file mode 100644index 595dbecae..000000000--- a/packages/hoppscotch-selfhost-desktop/src/api/subscriptions/UserChildCollectionSorted.graphql+++ /dev/null@@ -1,6 +0,0 @@-subscription UserChildCollectionSorted {- userChildCollectionsSorted {- parentCollectionID- sortOption- }-}diff --git a/packages/hoppscotch-selfhost-desktop/src/api/subscriptions/UserCollectionCreated.graphql b/packages/hoppscotch-selfhost-desktop/src/api/subscriptions/UserCollectionCreated.graphqldeleted file mode 100644index 1accfec11..000000000--- a/packages/hoppscotch-selfhost-desktop/src/api/subscriptions/UserCollectionCreated.graphql+++ /dev/null@@ -1,11 +0,0 @@-subscription UserCollectionCreated {- userCollectionCreated {- parent {- id- }- id- title- type- data- }-}diff --git a/packages/hoppscotch-selfhost-desktop/src/api/subscriptions/UserCollectionDuplicated.graphql b/packages/hoppscotch-selfhost-desktop/src/api/subscriptions/UserCollectionDuplicated.graphqldeleted file mode 100644index 401686f96..000000000--- a/packages/hoppscotch-selfhost-desktop/src/api/subscriptions/UserCollectionDuplicated.graphql+++ /dev/null@@ -1,15 +0,0 @@-subscription UserCollectionDuplicated {- userCollectionDuplicated {- id- parentID- title- type- data- childCollections- requests {- id- request- collectionID- }- }-}diff --git a/packages/hoppscotch-selfhost-desktop/src/api/subscriptions/UserCollectionMoved.graphql b/packages/hoppscotch-selfhost-desktop/src/api/subscriptions/UserCollectionMoved.graphqldeleted file mode 100644index ed69fa99b..000000000--- a/packages/hoppscotch-selfhost-desktop/src/api/subscriptions/UserCollectionMoved.graphql+++ /dev/null@@ -1,9 +0,0 @@-subscription UserCollectionMoved {- userCollectionMoved {- id- parent {- id- }- type- }-}diff --git a/packages/hoppscotch-selfhost-desktop/src/api/subscriptions/UserCollectionOrderUpdated.graphql b/packages/hoppscotch-selfhost-desktop/src/api/subscriptions/UserCollectionOrderUpdated.graphqldeleted file mode 100644index 6b181af88..000000000--- a/packages/hoppscotch-selfhost-desktop/src/api/subscriptions/UserCollectionOrderUpdated.graphql+++ /dev/null@@ -1,17 +0,0 @@-subscription UserCollectionOrderUpdated {- userCollectionOrderUpdated {- userCollection {- id- parent {- id- }- }-- nextUserCollection {- id- parent {- id- }- }- }-}diff --git a/packages/hoppscotch-selfhost-desktop/src/api/subscriptions/UserCollectionRemoved.graphql b/packages/hoppscotch-selfhost-desktop/src/api/subscriptions/UserCollectionRemoved.graphqldeleted file mode 100644index a3deba560..000000000--- a/packages/hoppscotch-selfhost-desktop/src/api/subscriptions/UserCollectionRemoved.graphql+++ /dev/null@@ -1,6 +0,0 @@-subscription UserCollectionRemoved {- userCollectionRemoved {- id- type- }-}diff --git a/packages/hoppscotch-selfhost-desktop/src/api/subscriptions/UserCollectionUpdated.graphql b/packages/hoppscotch-selfhost-desktop/src/api/subscriptions/UserCollectionUpdated.graphqldeleted file mode 100644index 3fd8487d0..000000000--- a/packages/hoppscotch-selfhost-desktop/src/api/subscriptions/UserCollectionUpdated.graphql+++ /dev/null@@ -1,10 +0,0 @@-subscription userCollectionUpdated {- userCollectionUpdated {- id- title- type- parent {- id- }- }-}diff --git a/packages/hoppscotch-selfhost-desktop/src/api/subscriptions/UserEnvironmentCreated.graphql b/packages/hoppscotch-selfhost-desktop/src/api/subscriptions/UserEnvironmentCreated.graphqldeleted file mode 100644index 49fb4b651..000000000--- a/packages/hoppscotch-selfhost-desktop/src/api/subscriptions/UserEnvironmentCreated.graphql+++ /dev/null@@ -1,9 +0,0 @@-subscription UserEnvironmentCreated {- userEnvironmentCreated {- id- isGlobal- name- userUid- variables- }-}diff --git a/packages/hoppscotch-selfhost-desktop/src/api/subscriptions/UserEnvironmentDeleted.graphql b/packages/hoppscotch-selfhost-desktop/src/api/subscriptions/UserEnvironmentDeleted.graphqldeleted file mode 100644index 1ceb27e21..000000000--- a/packages/hoppscotch-selfhost-desktop/src/api/subscriptions/UserEnvironmentDeleted.graphql+++ /dev/null@@ -1,5 +0,0 @@-subscription UserEnvironmentDeleted {- userEnvironmentDeleted {- id- }-}diff --git a/packages/hoppscotch-selfhost-desktop/src/api/subscriptions/UserEnvironmentUpdated.graphql b/packages/hoppscotch-selfhost-desktop/src/api/subscriptions/UserEnvironmentUpdated.graphqldeleted file mode 100644index 730c33e57..000000000--- a/packages/hoppscotch-selfhost-desktop/src/api/subscriptions/UserEnvironmentUpdated.graphql+++ /dev/null@@ -1,9 +0,0 @@-subscription UserEnvironmentUpdated {- userEnvironmentUpdated {- id- userUid- name- variables- isGlobal- }-}diff --git a/packages/hoppscotch-selfhost-desktop/src/api/subscriptions/UserHistoryAllDeleted.graphql b/packages/hoppscotch-selfhost-desktop/src/api/subscriptions/UserHistoryAllDeleted.graphqldeleted file mode 100644index 2e57592c8..000000000--- a/packages/hoppscotch-selfhost-desktop/src/api/subscriptions/UserHistoryAllDeleted.graphql+++ /dev/null@@ -1,3 +0,0 @@-subscription UserHistoryAllDeleted {- userHistoryAllDeleted-}diff --git a/packages/hoppscotch-selfhost-desktop/src/api/subscriptions/UserHistoryCreated.graphql b/packages/hoppscotch-selfhost-desktop/src/api/subscriptions/UserHistoryCreated.graphqldeleted file mode 100644index f513671ab..000000000--- a/packages/hoppscotch-selfhost-desktop/src/api/subscriptions/UserHistoryCreated.graphql+++ /dev/null@@ -1,10 +0,0 @@-subscription UserHistoryCreated {- userHistoryCreated {- id- reqType- request- responseMetadata- isStarred- executedOn- }-}diff --git a/packages/hoppscotch-selfhost-desktop/src/api/subscriptions/UserHistoryDeleted.graphql b/packages/hoppscotch-selfhost-desktop/src/api/subscriptions/UserHistoryDeleted.graphqldeleted file mode 100644index ba6540fe2..000000000--- a/packages/hoppscotch-selfhost-desktop/src/api/subscriptions/UserHistoryDeleted.graphql+++ /dev/null@@ -1,6 +0,0 @@-subscription userHistoryDeleted {- userHistoryDeleted {- id- reqType- }-}diff --git a/packages/hoppscotch-selfhost-desktop/src/api/subscriptions/UserHistoryDeletedMany.graphql b/packages/hoppscotch-selfhost-desktop/src/api/subscriptions/UserHistoryDeletedMany.graphqldeleted file mode 100644index fae7aca62..000000000--- a/packages/hoppscotch-selfhost-desktop/src/api/subscriptions/UserHistoryDeletedMany.graphql+++ /dev/null@@ -1,6 +0,0 @@-subscription UserHistoryDeletedMany {- userHistoryDeletedMany {- count- reqType- }-}diff --git a/packages/hoppscotch-selfhost-desktop/src/api/subscriptions/UserHistoryStoreStatusChanged.graphql b/packages/hoppscotch-selfhost-desktop/src/api/subscriptions/UserHistoryStoreStatusChanged.graphqldeleted file mode 100644index bde1df551..000000000--- a/packages/hoppscotch-selfhost-desktop/src/api/subscriptions/UserHistoryStoreStatusChanged.graphql+++ /dev/null@@ -1,3 +0,0 @@-subscription UserHistoryStoreStatusChanged {- infraConfigUpdate(configName: USER_HISTORY_STORE_ENABLED)-}diff --git a/packages/hoppscotch-selfhost-desktop/src/api/subscriptions/UserHistoryUpdated.graphql b/packages/hoppscotch-selfhost-desktop/src/api/subscriptions/UserHistoryUpdated.graphqldeleted file mode 100644index a673edb72..000000000--- a/packages/hoppscotch-selfhost-desktop/src/api/subscriptions/UserHistoryUpdated.graphql+++ /dev/null@@ -1,10 +0,0 @@-subscription UserHistoryUpdated {- userHistoryUpdated {- id- reqType- request- responseMetadata- isStarred- executedOn- }-}diff --git a/packages/hoppscotch-selfhost-desktop/src/api/subscriptions/UserRequestCreated.graphql b/packages/hoppscotch-selfhost-desktop/src/api/subscriptions/UserRequestCreated.graphqldeleted file mode 100644index 462bc2461..000000000--- a/packages/hoppscotch-selfhost-desktop/src/api/subscriptions/UserRequestCreated.graphql+++ /dev/null@@ -1,9 +0,0 @@-subscription UserRequestCreated {- userRequestCreated {- id- collectionID- title- request- type- }-}diff --git a/packages/hoppscotch-selfhost-desktop/src/api/subscriptions/UserRequestDeleted.graphql b/packages/hoppscotch-selfhost-desktop/src/api/subscriptions/UserRequestDeleted.graphqldeleted file mode 100644index 6ef26f14c..000000000--- a/packages/hoppscotch-selfhost-desktop/src/api/subscriptions/UserRequestDeleted.graphql+++ /dev/null@@ -1,9 +0,0 @@-subscription UserRequestDeleted {- userRequestDeleted {- id- collectionID- title- request- type- }-}diff --git a/packages/hoppscotch-selfhost-desktop/src/api/subscriptions/UserRequestMoved.graphql b/packages/hoppscotch-selfhost-desktop/src/api/subscriptions/UserRequestMoved.graphqldeleted file mode 100644index 01a0fb24a..000000000--- a/packages/hoppscotch-selfhost-desktop/src/api/subscriptions/UserRequestMoved.graphql+++ /dev/null@@ -1,13 +0,0 @@-subscription UserRequestMoved {- userRequestMoved {- request {- id- collectionID- type- }- nextRequest {- id- collectionID- }- }-}diff --git a/packages/hoppscotch-selfhost-desktop/src/api/subscriptions/UserRequestUpdated.graphql b/packages/hoppscotch-selfhost-desktop/src/api/subscriptions/UserRequestUpdated.graphqldeleted file mode 100644index b8c7f6e27..000000000--- a/packages/hoppscotch-selfhost-desktop/src/api/subscriptions/UserRequestUpdated.graphql+++ /dev/null@@ -1,9 +0,0 @@-subscription UserRequestUpdated {- userRequestUpdated {- id- collectionID- title- request- type- }-}diff --git a/packages/hoppscotch-selfhost-desktop/src/api/subscriptions/UserRootCollectionsSorted.graphql b/packages/hoppscotch-selfhost-desktop/src/api/subscriptions/UserRootCollectionsSorted.graphqldeleted file mode 100644index ed77dd456..000000000--- a/packages/hoppscotch-selfhost-desktop/src/api/subscriptions/UserRootCollectionsSorted.graphql+++ /dev/null@@ -1,6 +0,0 @@-subscription UserRootCollectionsSorted {- userRootCollectionsSorted {- parentCollectionID- sortOption- }-}diff --git a/packages/hoppscotch-selfhost-desktop/src/api/subscriptions/UserSettingsUpdated.graphql b/packages/hoppscotch-selfhost-desktop/src/api/subscriptions/UserSettingsUpdated.graphqldeleted file mode 100644index 4b8f6a6e7..000000000--- a/packages/hoppscotch-selfhost-desktop/src/api/subscriptions/UserSettingsUpdated.graphql+++ /dev/null@@ -1,6 +0,0 @@-subscription UserSettingsUpdated {- userSettingsUpdated {- id- properties- }-}diff --git a/packages/hoppscotch-selfhost-desktop/src/components/modals/NativeCACertificates.vue b/packages/hoppscotch-selfhost-desktop/src/components/modals/NativeCACertificates.vuedeleted file mode 100644index 52012269b..000000000--- a/packages/hoppscotch-selfhost-desktop/src/components/modals/NativeCACertificates.vue+++ /dev/null@@ -1,167 +0,0 @@-<template>- <HoppSmartModal- v-if="show"- dialog- :title="'CA Certificates'"- @close="emit('hide-modal')"- >- <template #body>- <div class="flex flex-col space-y-4">- <ul- v-if="certificates.length > 0"- class="mx-4 border border-dividerDark rounded"- >- <li- v-for="(certificate, index) in certificates"- :key="index"- class="flex border-dividerDark px-2 items-center justify-between"- :class="{ 'border-t border-dividerDark': index !== 0 }"- >- <div class="truncate">- {{ certificate.filename }}- </div>-- <div class="flex items-center">- <HoppButtonSecondary- :icon="certificate.enabled ? IconCheckCircle : IconCircle"- v-tippy="{ theme: 'tooltip' }"- :title="- certificate.enabled- ? t('action.turn_off')- : t('action.turn_on')- "- color="green"- @click="toggleEntryEnabled(index)"- />-- <HoppButtonSecondary- :icon="IconTrash"- v-tippy="{ theme: 'tooltip' }"- :title="t('action.remove')"- @click="deleteEntry(index)"- />- </div>- </li>- </ul>-- <HoppButtonSecondary- class="mx-4"- :icon="IconPlus"- :label="'Add Certificate File'"- :loading="selectedFiles && selectedFiles!.length > 0"- filled- outline- @click="openFilePicker"- />-- <p class="text-center text-secondaryLight">- Hoppscotch supports .crt, .cer or .pem files containing one or more- certificates.- </p>- </div>- </template>-- <template #footer>- <div class="flex space-x-2">- <HoppButtonPrimary :label="'Save'" @click="save" />- <HoppButtonSecondary- :label="'Cancel'"- filled- outline- @click="emit('hide-modal')"- />- </div>- </template>- </HoppSmartModal>-</template>--<!-- TODO: i18n -->-<script setup lang="ts">-import IconPlus from "~icons/lucide/plus"-import IconCheckCircle from "~icons/lucide/check-circle"-import IconCircle from "~icons/lucide/circle"-import IconTrash from "~icons/lucide/trash"-import { useService } from "dioc/vue"-import { ref, watch } from "vue"-import { useFileDialog } from "@vueuse/core"-import { cloneDeep } from "lodash-es"-import {- NativeInterceptorService,- CACertificateEntry,-} from "@platform/interceptors/native"-import { useI18n } from "@composables/i18n"--const t = useI18n()--const props = defineProps<{- show: boolean-}>()--const emit = defineEmits<{- (e: "hide-modal"): void-}>()--const nativeInterceptorService = useService(NativeInterceptorService)--const certificates = ref<CACertificateEntry[]>([])--const {- files: selectedFiles,- open: openFilePicker,- reset: resetFilePicker,- onChange: onSelectedFilesChange,-} = useFileDialog({- multiple: true,-})--// When files are selected, add them to the list of certificates and reset the file list-onSelectedFilesChange(async (files) => {- if (files) {- const addedCertificates: CACertificateEntry[] = []-- for (let i = 0; i < files.length; i++) {- const file = files[i]-- const data = new Uint8Array(await file.arrayBuffer())-- addedCertificates.push({- filename: file.name,- enabled: true,- certificate: data,- })- }-- certificates.value.push(...addedCertificates)-- resetFilePicker()- }-})--// When the modal is shown, clone the certificates from the service,-// We only write to the service when the user clicks on save-watch(- () => props.show,- (show) => {- if (show) {- certificates.value = cloneDeep(- nativeInterceptorService.caCertificates.value- )- } else {- resetFilePicker()- }- }-)--function save() {- nativeInterceptorService.caCertificates.value = certificates.value- emit("hide-modal")-}--function deleteEntry(index: number) {- certificates.value.splice(index, 1)-}--function toggleEntryEnabled(index: number) {- certificates.value[index].enabled = !certificates.value[index].enabled-}-</script>diff --git a/packages/hoppscotch-selfhost-desktop/src/components/modals/NativeClientCertificates.vue b/packages/hoppscotch-selfhost-desktop/src/components/modals/NativeClientCertificates.vuedeleted file mode 100644index c731bf36a..000000000--- a/packages/hoppscotch-selfhost-desktop/src/components/modals/NativeClientCertificates.vue+++ /dev/null@@ -1,153 +0,0 @@-<template>- <HoppSmartModal- v-if="show"- dialog- :title="'Client Certificates'"- @close="emit('hide-modal')"- >- <template #body>- <div class="flex flex-col space-y-4">- <ul- v-if="certificateMap.size > 0"- class="mx-4 border border-dividerDark rounded"- >- <li- v-for="([domain, certificate], index) in certificateMap"- :key="domain"- class="flex border-dividerDark px-2 items-center justify-between"- :class="{ 'border-t border-dividerDark': index !== 0 }"- >- <div class="flex space-x-2">- <div class="truncate">- {{ domain }}- </div>- </div>-- <div class="flex items-center space-x-1">- <div class="text-secondaryLight mr-2">- {{ "PEMCert" in certificate.cert ? "PEM" : "PFX/PKCS12" }}- </div>-- <HoppButtonSecondary- :icon="certificate.enabled ? IconCheckCircle : IconCircle"- v-tippy="{ theme: 'tooltip' }"- :title="- certificate.enabled- ? t('action.turn_off')- : t('action.turn_on')- "- color="green"- @click="toggleEntryEnabled(domain)"- />-- <HoppButtonSecondary- :icon="IconTrash"- v-tippy="{ theme: 'tooltip' }"- :title="t('action.remove')"- color="red"- @click="deleteEntry(domain)"- />- </div>- </li>- </ul>-- <HoppButtonSecondary- class="mx-4"- :icon="IconPlus"- :label="'Add Certificate File'"- filled- outline- @click="showAddModal = true"- />- </div>- </template>-- <template #footer>- <div class="flex space-x-2">- <HoppButtonPrimary :label="'Save'" @click="save" />- <HoppButtonSecondary- :label="'Cancel'"- filled- outline- @click="emit('hide-modal')"- />- </div>- </template>- </HoppSmartModal>-- <ModalsNativeClientCertsAdd- :show="showAddModal"- :existing-domains="Array.from(certificateMap.keys())"- @hide-modal="showAddModal = false"- @save="saveCertificate"- />-</template>--<!-- TODO: i18n -->-<script setup lang="ts">-import IconPlus from "~icons/lucide/plus"-import IconCheckCircle from "~icons/lucide/check-circle"-import IconCircle from "~icons/lucide/circle"-import IconTrash from "~icons/lucide/trash"-import { ref, watch } from "vue"-import { useI18n } from "@composables/i18n"-import { useService } from "dioc/vue"-import {- ClientCertificateEntry,- NativeInterceptorService,-} from "@platform/interceptors/native"-import { cloneDeep } from "lodash-es"--const props = defineProps<{- show: boolean-}>()--const emit = defineEmits<{- (e: "hide-modal"): void-}>()--const t = useI18n()--const nativeInterceptorService = useService(NativeInterceptorService)--const certificateMap = ref(new Map<string, ClientCertificateEntry>())--const showAddModal = ref(false)--watch(- () => props.show,- (show) => {- if (show) {- certificateMap.value = cloneDeep(- nativeInterceptorService.clientCertificates.value- )- }- }-)--function save() {- nativeInterceptorService.clientCertificates.value = cloneDeep(- certificateMap.value- )- emit("hide-modal")-}--function saveCertificate(cert: ClientCertificateEntry) {- certificateMap.value.set(cert.domain, cert)-}--function toggleEntryEnabled(domain: string) {- const certificate = certificateMap.value.get(domain)-- if (certificate) {- certificateMap.value.set(domain, {- ...certificate,- enabled: !certificate.enabled,- })- }-}--function deleteEntry(domain: string) {- certificateMap.value.delete(domain)-}-</script>diff --git a/packages/hoppscotch-selfhost-desktop/src/components/modals/NativeClientCertsAdd.vue b/packages/hoppscotch-selfhost-desktop/src/components/modals/NativeClientCertsAdd.vuedeleted file mode 100644index 08566b7e9..000000000--- a/packages/hoppscotch-selfhost-desktop/src/components/modals/NativeClientCertsAdd.vue+++ /dev/null@@ -1,281 +0,0 @@-<template>- <HoppSmartModal- v-if="show"- dialog- :title="'Add Client Certificate'"- @close="emit('hide-modal')"- >- <template #body>- <div class="space-y-4">- <HoppSmartInput- v-model="domain"- :autofocus="false"- styles="flex-1"- placeholder=" "- :label="'Domain'"- input-styles="input floating-input"- />-- <HoppSmartTabs v-model="selectedTab">- <HoppSmartTab :id="'pem'" :label="'PEM'">- <div class="p-4 space-y-4">- <div class="flex flex-col space-y-2">- <label> Certificate </label>- <HoppButtonSecondary- :icon="pemCert?.type === 'loaded' ? IconFile : IconPlus"- :loading="pemCert?.type === 'loading'"- :label="- pemCert?.type === 'loaded'- ? pemCert.filename- : 'Add Certificate File'- "- filled- outline- @click="openFilePicker('pem_cert')"- />- </div>- <div class="flex flex-col space-y-2">- <label> Key </label>- <HoppButtonSecondary- :icon="pemKey?.type === 'loaded' ? IconFile : IconPlus"- :loading="pemKey?.type === 'loading'"- :label="- pemKey?.type === 'loaded' ? pemKey.filename : 'Add Key File'- "- @click="openFilePicker('pem_key')"- filled- outline- />- </div>- </div>- </HoppSmartTab>-- <HoppSmartTab :id="'pfx'" :label="'PFX/PKCS12'">- <div class="p-4 space-y-6">- <div class="flex flex-col space-y-2">- <label> PFX/PKCS12 File </label>- <HoppButtonSecondary- :icon="pfxCert?.type === 'loaded' ? IconFile : IconPlus"- :loading="pfxCert?.type === 'loading'"- :label="- pfxCert?.type === 'loaded'- ? pfxCert.filename- : 'Add PFX/PKCS12 File'- "- @click="openFilePicker('pfx_cert')"- filled- outline- />- </div>-- <div class="border border-divider rounded">- <HoppSmartInput- v-model="pfxPassword"- :type="showPfxPassword ? 'text' : 'password'"- :label="'Password'"- input-styles="floating-input !border-0 "- :placeholder="' '"- >- <template #button>- <HoppButtonSecondary- v-tippy="{ theme: 'tooltip' }"- :title="- showPfxPassword ? 'Hide Password' : 'Show Password'- "- :icon="showPfxPassword ? IconEye : IconEyeOff"- @click="showPfxPassword = !showPfxPassword"- />- </template>- </HoppSmartInput>- </div>- </div>- </HoppSmartTab>- </HoppSmartTabs>- </div>- </template>-- <template #footer>- <div class="flex space-x-2">- <HoppButtonPrimary- :label="'Save'"- :disabled="!isValidCertificate || anyFileSelectorIsLoading"- @click="save"- />- <HoppButtonSecondary- :label="'Cancel'"- filled- outline- @click="emit('hide-modal')"- />- </div>- </template>- </HoppSmartModal>-</template>--<!-- TODO: i18n -->-<script setup lang="ts">-import IconPlus from "~icons/lucide/plus"-import IconEyeOff from "~icons/lucide/eye-off"-import IconEye from "~icons/lucide/eye"-import IconFile from "~icons/lucide/file"-import { ref, watch, computed } from "vue"-import { useFileDialog } from "@vueuse/core"-import { ClientCertificateEntry } from "../../platform/interceptors/native"-import { useToast } from "@composables/toast"--const toast = useToast()--const props = defineProps<{- show: boolean- existingDomains: string[]-}>()--const emit = defineEmits<{- (e: "hide-modal"): void- (e: "save", certificate: ClientCertificateEntry): void-}>()--type FileSelectorState =- | null- | { type: "loading" }- | { type: "loaded"; filename: string; data: Uint8Array }--const domain = ref("")--const pemCert = ref<FileSelectorState>(null)-const pemKey = ref<FileSelectorState>(null)--const pfxCert = ref<FileSelectorState>(null)--const pfxPassword = ref("")-const showPfxPassword = ref(false)--const anyFileSelectorIsLoading = computed(- () =>- pemCert.value?.type === "loading" ||- pemKey.value?.type === "loading" ||- pfxCert.value?.type === "loading"-)--const currentlyPickingFile = ref<null | "pem_cert" | "pem_key" | "pfx_cert">(- null-)--const selectedTab = ref<"pem" | "pfx">("pem")--watch(- () => props.show,- (show) => {- if (!show) return-- currentlyPickingFile.value = null-- domain.value = ""- pemCert.value = null- pemKey.value = null- pfxCert.value = null- pfxPassword.value = ""- showPfxPassword.value = false- selectedTab.value = "pem"- }-)--const certificate = computed<ClientCertificateEntry | null>(() => {- if (selectedTab.value === "pem") {- if (pemCert.value?.type === "loaded" && pemKey.value?.type === "loaded") {- return <ClientCertificateEntry>{- domain: domain.value,- enabled: true,- cert: {- PEMCert: {- certificate_filename: pemCert.value.filename,- certificate_pem: pemCert.value.data,-- key_filename: pemKey.value.filename,- key_pem: pemKey.value.data,- },- },- }- }- } else {- if (pfxCert.value?.type === "loaded") {- return <ClientCertificateEntry>{- domain: domain.value.trim(),- enabled: true,- cert: {- PFXCert: {- certificate_filename: pfxCert.value.filename,- certificate_pfx: pfxCert.value.data,- password: pfxPassword.value,- },- },- }- }- }-- return null-})--const isValidCertificate = computed(() => {- if (certificate.value === null) return false-- if (props.existingDomains.includes(certificate.value.domain)) {- toast.error("A certificate for this domain already exists")- return false- }-- return ClientCertificateEntry.safeParse(certificate.value).success-})--const {- open: openFileDialog,- reset: resetFilePicker,- onChange: onFilePickerChange,-} = useFileDialog({- reset: true,- multiple: false,-})--onFilePickerChange(async (files) => {- if (!files) return-- const file = files.item(0)-- if (!file) return-- if (currentlyPickingFile.value === "pem_cert") {- pemCert.value = { type: "loading" }- } else if (currentlyPickingFile.value === "pem_key") {- pemKey.value = { type: "loading" }- } else if (currentlyPickingFile.value === "pfx_cert") {- pfxCert.value = { type: "loading" }- }-- const data = new Uint8Array(await file.arrayBuffer())-- if (currentlyPickingFile.value === "pem_cert") {- pemCert.value = { type: "loaded", filename: file.name, data }- } else if (currentlyPickingFile.value === "pem_key") {- pemKey.value = { type: "loaded", filename: file.name, data }- } else if (currentlyPickingFile.value === "pfx_cert") {- pfxCert.value = { type: "loaded", filename: file.name, data }- }-- currentlyPickingFile.value = null-- resetFilePicker()-})--function openFilePicker(type: "pem_cert" | "pem_key" | "pfx_cert") {- currentlyPickingFile.value = type-- openFileDialog()-}--function save() {- if (certificate.value) {- emit("save", certificate.value)- emit("hide-modal")- }-}-</script>diff --git a/packages/hoppscotch-selfhost-desktop/src/components/settings/NativeInterceptor.vue b/packages/hoppscotch-selfhost-desktop/src/components/settings/NativeInterceptor.vuedeleted file mode 100644index 0b2cc69ad..000000000--- a/packages/hoppscotch-selfhost-desktop/src/components/settings/NativeInterceptor.vue+++ /dev/null@@ -1,100 +0,0 @@-<template>- <div class="py-4 space-y-4">- <div class="flex items-center">- <HoppSmartToggle- :on="allowSSLVerification"- @change="allowSSLVerification = !allowSSLVerification"- />- Verify SSL Certificates- </div>-- <div class="flex space-x-4">- <HoppButtonSecondary- :icon="IconLucideFileBadge"- :label="'CA Certificates'"- outline- @click="showCACertificatesModal = true"- />- <HoppButtonSecondary- :icon="IconLucideFileKey"- :label="'Client Certificates'"- @click="showClientCertificatesModal = true"- outline- />- </div>-- <ModalsNativeCACertificates- :show="showCACertificatesModal"- @hide-modal="showCACertificatesModal = false"- />- <ModalsNativeClientCertificates- :show="showClientCertificatesModal"- @hide-modal="showClientCertificatesModal = false"- />-- <div class="pt-4 space-y-4">- <div class="flex items-center">- <HoppSmartToggle :on="allowProxy" @change="allowProxy = !allowProxy" />- Use HTTP Proxy- </div>-- <HoppSmartInput- v-if="allowProxy"- v-model="proxyURL"- :autofocus="false"- styles="flex-1"- placeholder=" "- :label="'Proxy URL'"- input-styles="input floating-input"- />-- <p class="my-1 text-secondaryLight">- Hoppscotch native interceptor supports HTTP/HTTPS/SOCKS proxies along with NTLM and Basic Auth in those proxies. Include the username and password for the proxy authentication in the URL itself.- </p>- </div>- </div>-</template>--<!-- TODO: i18n -->-<script setup lang="ts">-import { computed, ref } from "vue"-import IconLucideFileBadge from "~icons/lucide/file-badge"-import IconLucideFileKey from "~icons/lucide/file-key"-import { useService } from "dioc/vue"-import { RequestDef, NativeInterceptorService } from "@platform/interceptors/native"-import { syncRef } from "@vueuse/core"--type RequestProxyInfo = RequestDef["proxy"]--const nativeInterceptorService = useService(NativeInterceptorService)--const allowSSLVerification = nativeInterceptorService.validateCerts--const showCACertificatesModal = ref(false)-const showClientCertificatesModal = ref(false)--const allowProxy = ref(false)-const proxyURL = ref("")--const proxyInfo = computed<RequestProxyInfo>({- get() {- if (allowProxy.value) {- return {- url: proxyURL.value,- }- }-- return undefined- },- set(newData) {- if (newData) {- allowProxy.value = true- proxyURL.value = newData.url- } else {- allowProxy.value = false- }- },-})--syncRef(nativeInterceptorService.proxyInfo, proxyInfo, { direction: "both" })-</script>diff --git a/packages/hoppscotch-selfhost-desktop/src/interop.ts b/packages/hoppscotch-selfhost-desktop/src/interop.tsdeleted file mode 100644index a681f2ff4..000000000--- a/packages/hoppscotch-selfhost-desktop/src/interop.ts+++ /dev/null@@ -1,41 +0,0 @@-import { invoke } from "@tauri-apps/api/tauri";-import { onMounted } from "vue";-import { HoppModule } from "@hoppscotch/common/modules"--/**- * Initializes the interop startup process.- *- * This function invokes a Tauri command to perform necessary startup operations.- * It's a bridge, specifically calling `interop_startup_init` function defined in- * `src-tauri/src/interop/startup/init.rs`.- *- * @returns A promise that resolves when the startup initialization is complete.- * @throws Will throw an error if the Tauri command fails for any reason.- */-async function interopStartupInit(): Promise<void> {- return invoke<void>("interop_startup_init");-}--/**- * HoppModule for handling interop operations and- * is responsible for initializing interop-startup related functionality.- */-export const interopModule: HoppModule = {- /**- * Executes when the root component is set up.- *- * This function is called during the application's initialization process,- * and it also uses Vue's `onMounted` hook so the interop-startup occurs- * **after** the component has been mounted in the DOM.- */- onRootSetup: () => {- onMounted(async () => {- try {- await interopStartupInit();- console.log("Interop startup initialization completed successfully");- } catch (error) {- console.error("Failed to initialize interop startup:", error);- }- });- },-};diff --git a/packages/hoppscotch-selfhost-desktop/src/lib/sync/index.ts b/packages/hoppscotch-selfhost-desktop/src/lib/sync/index.tsdeleted file mode 100644index dd776ee2a..000000000--- a/packages/hoppscotch-selfhost-desktop/src/lib/sync/index.ts+++ /dev/null@@ -1,102 +0,0 @@-import { Observable } from "rxjs"-import DispatchingStore from "@hoppscotch/common/newstore/DispatchingStore"--export type DispatchersOf<T extends DispatchingStore<any, any>> =- T extends DispatchingStore<any, infer U>- ? U extends Record<infer D, any>- ? D- : never- : never--export type StoreSyncDefinitionOf<T extends DispatchingStore<any, any>> = {- [x in DispatchersOf<T>]?: T extends DispatchingStore<any, infer U>- ? U extends Record<x, any>- ? U[x] extends (x: any, y: infer Y) => any- ? (payload: Y) => void- : never- : never- : never-}--let _isRunningDispatchWithoutSyncing = true--export function runDispatchWithOutSyncing(func: () => void) {- _isRunningDispatchWithoutSyncing = false- func()- _isRunningDispatchWithoutSyncing = true-}--export const getSyncInitFunction = <T extends DispatchingStore<any, any>>(- store: T,- storeSyncDefinition: StoreSyncDefinitionOf<T>,- shouldSyncValue: () => boolean,- shouldSyncObservable?: Observable<boolean>-) => {- let startSubscriptions: () => () => void | undefined- let stopSubscriptions: () => void | undefined-- let oldSyncStatus = shouldSyncValue()-- // Start and stop the subscriptions according to the sync settings from profile- shouldSyncObservable &&- shouldSyncObservable.subscribe((newSyncStatus) => {- if (oldSyncStatus === true && newSyncStatus === false) {- stopListeningToSubscriptions()- } else if (oldSyncStatus === false && newSyncStatus === true) {- startListeningToSubscriptions()- }-- oldSyncStatus = newSyncStatus- })-- function startStoreSync() {- store.dispatches$.subscribe((actionParams) => {- // typescript cannot understand that the dispatcher can be the index, so casting to any- if ((storeSyncDefinition as any)[actionParams.dispatcher]) {- const dispatcher = actionParams.dispatcher- const payload = actionParams.payload-- const operationMapperFunction = (storeSyncDefinition as any)[dispatcher]-- if (- operationMapperFunction &&- _isRunningDispatchWithoutSyncing &&- shouldSyncValue()- ) {- operationMapperFunction(payload)- }- }- })- }-- function setupSubscriptions(func: () => () => void) {- startSubscriptions = func- }-- function startListeningToSubscriptions() {- if (!startSubscriptions) {- console.warn(- "We don't have a function to start subscriptions. Please use `setupSubscriptions` to setup the start function."- )- }-- stopSubscriptions = startSubscriptions?.()- }-- function stopListeningToSubscriptions() {- if (!stopSubscriptions) {- console.warn(- "We don't have a function to unsubscribe. make sure you return the unsubscribe function when using setupSubscriptions"- )- }-- stopSubscriptions?.()- }-- return {- startStoreSync,- setupSubscriptions,- startListeningToSubscriptions,- stopListeningToSubscriptions,- }-}diff --git a/packages/hoppscotch-selfhost-desktop/src/lib/sync/mapper.ts b/packages/hoppscotch-selfhost-desktop/src/lib/sync/mapper.tsdeleted file mode 100644index b303243a6..000000000--- a/packages/hoppscotch-selfhost-desktop/src/lib/sync/mapper.ts+++ /dev/null@@ -1,42 +0,0 @@-export const createMapper = <- LocalIDType extends string | number,- BackendIDType extends string | number->() => {- const backendIDByLocalIDMap = new Map<- LocalIDType,- BackendIDType | undefined- >()- const localIDByBackendIDMap = new Map<- BackendIDType,- LocalIDType | undefined- >()-- return {- addEntry(localIdentifier: LocalIDType, backendIdentifier: BackendIDType) {- backendIDByLocalIDMap.set(localIdentifier, backendIdentifier)- localIDByBackendIDMap.set(backendIdentifier, localIdentifier)- },- getValue() {- return backendIDByLocalIDMap- },- getBackendIDByLocalID(localIdentifier: LocalIDType) {- return backendIDByLocalIDMap.get(localIdentifier)- },- getLocalIDByBackendID(backendId: BackendIDType) {- return localIDByBackendIDMap.get(backendId)- },- removeEntry(backendId?: BackendIDType, index?: LocalIDType) {- if (backendId) {- const index = localIDByBackendIDMap.get(backendId)-- localIDByBackendIDMap.delete(backendId)- index && backendIDByLocalIDMap.delete(index)- } else if (index) {- const backendId = backendIDByLocalIDMap.get(index)-- backendIDByLocalIDMap.delete(index)- backendId && localIDByBackendIDMap.delete(backendId)- }- },- }-}diff --git a/packages/hoppscotch-selfhost-desktop/src/main.ts b/packages/hoppscotch-selfhost-desktop/src/main.tsdeleted file mode 100644index da4510fe9..000000000--- a/packages/hoppscotch-selfhost-desktop/src/main.ts+++ /dev/null@@ -1,130 +0,0 @@-import { createHoppApp } from "@hoppscotch/common"-import { def as authDef } from "./platform/auth"-import { def as environmentsDef } from "./platform/environments/environments.platform"-import { def as collectionsDef } from "./platform/collections/collections.platform"-import { def as settingsDef } from "./platform/settings/settings.platform"-import { def as historyDef } from "./platform/history/history.platform"-import { def as backendDef } from "@hoppscotch/common/platform/std/backend"-import { proxyInterceptor } from "@hoppscotch/common/platform/std/interceptors/proxy"-import { NativeInterceptorService } from "./platform/interceptors/native"-import { nextTick, ref, watch } from "vue"-import { emit, listen } from "@tauri-apps/api/event"-import { type } from "@tauri-apps/api/os"-import { useSettingStatic } from "@hoppscotch/common/composables/settings"-import { appWindow } from "@tauri-apps/api/window"-import { stdFooterItems } from "@hoppscotch/common/platform/std/ui/footerItem"-import { stdSupportOptionItems } from "@hoppscotch/common/platform/std/ui/supportOptionsItem"-import { ioDef } from "./platform/io"-import { interopModule } from "./interop"--const headerPaddingLeft = ref("0px")-const headerPaddingTop = ref("0px")--;(async () => {- const platform = await type()-- createHoppApp("#app", {- ui: {- additionalFooterMenuItems: stdFooterItems,- additionalSupportOptionsMenuItems: stdSupportOptionItems,- appHeader: {- paddingLeft: headerPaddingLeft,- paddingTop: headerPaddingTop,- onHeaderAreaClick() {- if (platform === "Darwin") {- // Drag the window when the user drags the header area- // TODO: Ignore click on headers and fields- appWindow.startDragging()- }- },- },- },- io: ioDef,- auth: authDef,- sync: {- environments: environmentsDef,- collections: collectionsDef,- settings: settingsDef,- history: historyDef,- },- addedHoppModules: [interopModule],- interceptors: {- default: "native",- interceptors: [- { type: "service", service: NativeInterceptorService },- {- type: "standalone",- interceptor: { ...proxyInterceptor, supportsDigestAuth: true },- },- ],- },- platformFeatureFlags: {- exportAsGIST: false,- hasTelemetry: false,- cookiesEnabled: true,- promptAsUsingCookies: false,- },- backend: backendDef,- })-- watch(- useSettingStatic("BG_COLOR")[0],- async () => {- await nextTick()-- await emit(- "hopp-bg-changed",- getComputedStyle(document.documentElement).getPropertyValue(- "--primary-color"- )- )- },- { immediate: true }- )-- if (platform === "Darwin") {- listen("will-enter-fullscreen", () => {- headerPaddingTop.value = "0px"- headerPaddingLeft.value = "0px"- })-- listen("will-exit-fullscreen", () => {- headerPaddingTop.value = "2px"- headerPaddingLeft.value = "70px"- })-- headerPaddingTop.value = "2px"- headerPaddingLeft.value = "70px"- }-})()--function isTextInput(target: EventTarget | null) {- if (target instanceof HTMLInputElement) {- return (- target.type === "text" ||- target.type === "email" ||- target.type === "password" ||- target.type === "number" ||- target.type === "search" ||- target.type === "tel" ||- target.type === "url" ||- target.type === "textarea"- )- } else if (target instanceof HTMLTextAreaElement) {- return true- } else if (target instanceof HTMLElement && target.isContentEditable) {- return true- }-- return false-}--window.addEventListener(- "keydown",- function (e) {- if (e.key === "Backspace" && !isTextInput(e.target)) {- e.preventDefault()- }- },- true-)diff --git a/packages/hoppscotch-selfhost-desktop/src/platform/auth.ts b/packages/hoppscotch-selfhost-desktop/src/platform/auth.tsdeleted file mode 100644index f215bb0b8..000000000--- a/packages/hoppscotch-selfhost-desktop/src/platform/auth.ts+++ /dev/null@@ -1,428 +0,0 @@-import { getService } from "@hoppscotch/common/modules/dioc"-import {- AuthEvent,- AuthPlatformDef,- HoppUser,-} from "@hoppscotch/common/platform/auth"-import { PersistenceService } from "@hoppscotch/common/services/persistence"-import { listen } from "@tauri-apps/api/event"-import { Body, getClient } from "@tauri-apps/api/http"-import { open } from "@tauri-apps/api/shell"-import { BehaviorSubject, Subject } from "rxjs"-import { Store } from "tauri-plugin-store-api"-import { Ref, ref, watch } from "vue"--export const authEvents$ = new Subject<AuthEvent | { event: "token_refresh" }>()-const currentUser$ = new BehaviorSubject<HoppUser | null>(null)-export const probableUser$ = new BehaviorSubject<HoppUser | null>(null)--const APP_DATA_PATH = "~/.hopp-desktop-app-data.dat"--const persistenceService = getService(PersistenceService)--async function logout() {- let client = await getClient()- await client.get(`${import.meta.env.VITE_BACKEND_API_URL}/auth/logout`)-- const store = new Store(APP_DATA_PATH)- await store.set("refresh_token", {})- await store.set("access_token", {})- await store.save()-}--async function signInUserWithGithubFB() {- await open(- `${import.meta.env.VITE_BACKEND_API_URL}/auth/github?redirect_uri=desktop`- )-}--async function signInUserWithGoogleFB() {- await open(- `${import.meta.env.VITE_BACKEND_API_URL}/auth/google?redirect_uri=desktop`- )-}--async function signInUserWithMicrosoftFB() {- await open(- `${- import.meta.env.VITE_BACKEND_API_URL- }/auth/microsoft?redirect_uri=desktop`- )-}--async function getInitialUserDetails() {- const store = new Store(APP_DATA_PATH)-- try {- const accessToken = await store.get("access_token")- let client = await getClient()- let body = {- query: `query Me {- me {- uid- displayName- photoURL- isAdmin- createdOn- }- }`,- }-- let res = await client.post(- `${import.meta.env.VITE_BACKEND_GQL_URL}`,- Body.json(body),- {- headers: {- Cookie: `access_token=${accessToken.value}`,- },- }- )-- return res.data- } catch (error) {- let res = {- error: "auth/cookies_not_found",- }-- return res- }-}--const isGettingInitialUser: Ref<null | boolean> = ref(null)--function setUser(user: HoppUser | null) {- currentUser$.next(user)- probableUser$.next(user)-- persistenceService.setLocalConfig("login_state", JSON.stringify(user))-}--async function setInitialUser() {- isGettingInitialUser.value = true- const res = await getInitialUserDetails()-- const error = res.errors && res.errors[0]-- // no cookies sent. so the user is not logged in- if (error && error.message === "auth/cookies_not_found") {- setUser(null)- isGettingInitialUser.value = false- return- }-- if (error && error.message === "user/not_found") {- setUser(null)- isGettingInitialUser.value = false- return- }-- // cookies sent, but it is expired, we need to refresh the token- if (error && error.message === "Unauthorized") {- const isRefreshSuccess = await refreshToken()-- if (isRefreshSuccess) {- setInitialUser()- } else {- setUser(null)- isGettingInitialUser.value = false- }-- return- }-- // no errors, we have a valid user- if (res.data && res.data.me) {- const hoppBackendUser = res.data.me-- const hoppUser: HoppUser = {- uid: hoppBackendUser.uid,- displayName: hoppBackendUser.displayName,- email: hoppBackendUser.email,- photoURL: hoppBackendUser.photoURL,- // all our signin methods currently guarantees the email is verified- emailVerified: true,- }-- setUser(hoppUser)-- isGettingInitialUser.value = false-- authEvents$.next({- event: "login",- user: hoppUser,- })-- return- }-}--async function refreshToken() {- const store = new Store(APP_DATA_PATH)- try {- const refreshToken = await store.get("refresh_token")-- let client = await getClient()- let res = await client.get(- `${import.meta.env.VITE_BACKEND_API_URL}/auth/refresh`,- {- headers: { Cookie: `refresh_token=${refreshToken.value}` },- }- )-- setAuthCookies(res.rawHeaders)-- const isSuccessful = res.status === 200-- if (isSuccessful) {- authEvents$.next({- event: "token_refresh",- })- }-- return isSuccessful- } catch (err) {- return false- }-}--async function sendMagicLink(email: string) {- const client = await getClient()- let url = `${import.meta.env.VITE_BACKEND_API_URL}/auth/signin?origin=desktop`-- const res = await client.post(url, Body.json({ email }))-- if (res.data && res.data.deviceIdentifier) {- persistenceService.setLocalConfig(- "deviceIdentifier",- res.data.deviceIdentifier- )- } else {- throw new Error("test: does not get device identifier")- }-- return res.data-}--async function setAuthCookies(rawHeaders: Array<String>) {- let cookies = rawHeaders["set-cookie"].join("|")-- const accessTokenMatch = cookies.match(/access_token=([^;]+)/)- const refreshTokenMatch = cookies.match(/refresh_token=([^;]+)/)-- const store = new Store(APP_DATA_PATH)-- if (accessTokenMatch) {- const accessToken = accessTokenMatch[1]- await store.set("access_token", { value: accessToken })- }-- if (refreshTokenMatch) {- const refreshToken = refreshTokenMatch[1]- await store.set("refresh_token", { value: refreshToken })- }-- await store.save()-}--export const def: AuthPlatformDef = {- getCurrentUserStream: () => currentUser$,- getAuthEventsStream: () => authEvents$,- getProbableUserStream: () => probableUser$,-- getCurrentUser: () => currentUser$.value,- getProbableUser: () => probableUser$.value,-- getBackendHeaders() {- return {}- },- getGQLClientOptions() {- return {- fetchOptions: {- credentials: "include",- },- }- },-- /**- * it is not possible for us to know if the current cookie is expired because we cannot access http-only cookies from js- * hence just returning if the currentUser$ has a value associated with it- */- willBackendHaveAuthError() {- return !currentUser$.value- },- // eslint-disable-next-line @typescript-eslint/no-unused-vars- onBackendGQLClientShouldReconnect(func) {- authEvents$.subscribe((event) => {- if (- event.event == "login" ||- event.event == "logout" ||- event.event == "token_refresh"- ) {- func()- }- })- },-- /**- * we cannot access our auth cookies from javascript, so leaving this as null- */- getDevOptsBackendIDToken() {- return null- },- async performAuthInit() {- const probableUser = JSON.parse(- persistenceService.getLocalConfig("login_state") ?? "null"- )- probableUser$.next(probableUser)- await setInitialUser()-- await listen("scheme-request-received", async (event: any) => {- let deep_link = event.payload as string-- const params = new URLSearchParams(deep_link.split("?")[1])- const accessToken = params.get("access_token")- const refreshToken = params.get("refresh_token")- const token = params.get("token")-- function isNotNullOrUndefined(x: any) {- return x !== null && x !== undefined- }-- if (- isNotNullOrUndefined(accessToken) &&- isNotNullOrUndefined(refreshToken)- ) {- const store = new Store(APP_DATA_PATH)-- await store.set("access_token", { value: accessToken })- await store.set("refresh_token", { value: refreshToken })- await store.save()-- window.location.href = "/"- return- }-- if (isNotNullOrUndefined(token)) {- persistenceService.setLocalConfig("verifyToken", token)- await this.signInWithEmailLink("", "")- await setInitialUser()- }- })- },-- waitProbableLoginToConfirm() {- return new Promise<void>((resolve, reject) => {- if (this.getCurrentUser()) {- resolve()- }-- if (!probableUser$.value) reject(new Error("no_probable_user"))-- const unwatch = watch(isGettingInitialUser, (val) => {- if (val === true || val === false) {- resolve()- unwatch()- }- })- })- },-- async signInWithEmail(email: string) {- await sendMagicLink(email)- },-- async verifyEmailAddress() {- return- },- async signInUserWithGoogle() {- await signInUserWithGoogleFB()- },- async signInUserWithGithub() {- await signInUserWithGithubFB()- return undefined- },- async signInUserWithMicrosoft() {- await signInUserWithMicrosoftFB()- },- async signInWithEmailLink(_email, _url) {- const deviceIdentifier =- persistenceService.getLocalConfig("deviceIdentifier")-- if (!deviceIdentifier) {- throw new Error(- "Device Identifier not found, you can only signin from the browser you generated the magic link"- )- }-- let verifyToken = persistenceService.getLocalConfig("verifyToken")-- const client = await getClient()- let res = await client.post(- `${import.meta.env.VITE_BACKEND_API_URL}/auth/verify`,- Body.json({- token: verifyToken,- deviceIdentifier,- })- )-- setAuthCookies(res.rawHeaders)-- persistenceService.removeLocalConfig("deviceIdentifier")- persistenceService.removeLocalConfig("verifyToken")- window.location.href = "/"- },- // eslint-disable-next-line @typescript-eslint/no-unused-vars- async setEmailAddress(_email: string) {- return- },- // eslint-disable-next-line @typescript-eslint/no-unused-vars- async setDisplayName(name: string) {- return- },-- async signOutUser() {- // if (!currentUser$.value) throw new Error("No user has logged in")-- await logout()-- probableUser$.next(null)- currentUser$.next(null)- persistenceService.removeLocalConfig("login_state")-- authEvents$.next({- event: "logout",- })- },-- async refreshAuthToken() {- return refreshToken()- },-- /**- * Verifies if the current user's authentication tokens are valid- * @returns True if tokens are valid, false otherwise- */- async verifyAuthTokens() {- try {- const BACKEND_API_URL = import.meta.env.VITE_BACKEND_API_URL-- const client = await getClient()-- const response = await client.get(- `${BACKEND_API_URL}/auth/verify-token`,- {- headers: {- "Content-Type": "application/json",- ...this.getBackendHeaders(),- },- }- )-- // axios automatically throws on error status codes, so if we reach here, it was successful- return !!response.data.isValid- } catch (error) {- return false- }- },-}diff --git a/packages/hoppscotch-selfhost-desktop/src/platform/collections/collections.api.ts b/packages/hoppscotch-selfhost-desktop/src/platform/collections/collections.api.tsdeleted file mode 100644index 1d6c678af..000000000--- a/packages/hoppscotch-selfhost-desktop/src/platform/collections/collections.api.ts+++ /dev/null@@ -1,397 +0,0 @@-import {- runGQLQuery,- runGQLSubscription,- runMutation,-} from "@hoppscotch/common/helpers/backend/GQLClient"-import {- CreateGqlChildUserCollectionDocument,- CreateGqlChildUserCollectionMutation,- CreateGqlChildUserCollectionMutationVariables,- CreateGqlRootUserCollectionDocument,- CreateGqlRootUserCollectionMutation,- CreateGqlRootUserCollectionMutationVariables,- CreateGqlUserRequestDocument,- CreateGqlUserRequestMutation,- CreateGqlUserRequestMutationVariables,- CreateRestChildUserCollectionDocument,- CreateRestChildUserCollectionMutation,- CreateRestChildUserCollectionMutationVariables,- CreateRestRootUserCollectionDocument,- CreateRestRootUserCollectionMutation,- CreateRestRootUserCollectionMutationVariables,- CreateRestUserRequestDocument,- CreateRestUserRequestMutation,- CreateRestUserRequestMutationVariables,- DeleteUserCollectionDocument,- DeleteUserCollectionMutation,- DeleteUserCollectionMutationVariables,- DeleteUserRequestDocument,- DeleteUserRequestMutation,- DeleteUserRequestMutationVariables,- DuplicateUserCollectionDocument,- DuplicateUserCollectionMutation,- DuplicateUserCollectionMutationVariables,- ExportUserCollectionsToJsonDocument,- ExportUserCollectionsToJsonQuery,- ExportUserCollectionsToJsonQueryVariables,- GetGqlRootUserCollectionsDocument,- GetGqlRootUserCollectionsQuery,- GetGqlRootUserCollectionsQueryVariables,- GetUserRootCollectionsDocument,- GetUserRootCollectionsQuery,- GetUserRootCollectionsQueryVariables,- ImportUserCollectionsFromJsonDocument,- ImportUserCollectionsFromJsonMutation,- ImportUserCollectionsFromJsonMutationVariables,- MoveUserCollectionDocument,- MoveUserCollectionMutation,- MoveUserCollectionMutationVariables,- MoveUserRequestDocument,- MoveUserRequestMutation,- MoveUserRequestMutationVariables,- RenameUserCollectionDocument,- RenameUserCollectionMutation,- RenameUserCollectionMutationVariables,- ReqType,- SortOptions,- SortUserCollectionsDocument,- SortUserCollectionsMutation,- SortUserCollectionsMutationVariables,- UpdateGqlUserRequestDocument,- UpdateGqlUserRequestMutation,- UpdateGqlUserRequestMutationVariables,- UpdateRestUserRequestDocument,- UpdateRestUserRequestMutation,- UpdateRestUserRequestMutationVariables,- UpdateUserCollectionDocument,- UpdateUserCollectionMutation,- UpdateUserCollectionMutationVariables,- UpdateUserCollectionOrderDocument,- UpdateUserCollectionOrderMutation,- UpdateUserCollectionOrderMutationVariables,- UserChildCollectionSortedDocument,- UserCollectionCreatedDocument,- UserCollectionDuplicatedDocument,- UserCollectionMovedDocument,- UserCollectionOrderUpdatedDocument,- UserCollectionRemovedDocument,- UserCollectionUpdatedDocument,- UserRequestCreatedDocument,- UserRequestDeletedDocument,- UserRequestMovedDocument,- UserRequestUpdatedDocument,- UserRootCollectionsSortedDocument,-} from "../../api/generated/graphql"--export const createRESTRootUserCollection = (title: string, data?: string) =>- runMutation<- CreateRestRootUserCollectionMutation,- CreateRestRootUserCollectionMutationVariables,- ""- >(CreateRestRootUserCollectionDocument, {- title,- data,- })()--export const createGQLRootUserCollection = (title: string, data?: string) =>- runMutation<- CreateGqlRootUserCollectionMutation,- CreateGqlRootUserCollectionMutationVariables,- ""- >(CreateGqlRootUserCollectionDocument, {- title,- data,- })()--export const createRESTUserRequest = (- title: string,- request: string,- collectionID: string-) =>- runMutation<- CreateRestUserRequestMutation,- CreateRestUserRequestMutationVariables,- ""- >(CreateRestUserRequestDocument, {- title,- request,- collectionID,- })()--export const createGQLUserRequest = (- title: string,- request: string,- collectionID: string-) =>- runMutation<- CreateGqlUserRequestMutation,- CreateGqlUserRequestMutationVariables,- ""- >(CreateGqlUserRequestDocument, {- title,- request,- collectionID,- })()--export const createRESTChildUserCollection = (- title: string,- parentUserCollectionID: string,- data?: string-) =>- runMutation<- CreateRestChildUserCollectionMutation,- CreateRestChildUserCollectionMutationVariables,- ""- >(CreateRestChildUserCollectionDocument, {- title,- parentUserCollectionID,- data,- })()--export const createGQLChildUserCollection = (- title: string,- parentUserCollectionID: string,- data?: string-) =>- runMutation<- CreateGqlChildUserCollectionMutation,- CreateGqlChildUserCollectionMutationVariables,- ""- >(CreateGqlChildUserCollectionDocument, {- title,- parentUserCollectionID,- data,- })()--export const deleteUserCollection = (userCollectionID: string) =>- runMutation<- DeleteUserCollectionMutation,- DeleteUserCollectionMutationVariables,- ""- >(DeleteUserCollectionDocument, {- userCollectionID,- })()--export const renameUserCollection = (- userCollectionID: string,- newTitle: string-) =>- runMutation<- RenameUserCollectionMutation,- RenameUserCollectionMutationVariables,- ""- >(RenameUserCollectionDocument, { userCollectionID, newTitle })()--export const updateUserCollection = (- userCollectionID: string,- newTitle?: string,- data?: string-) =>- runMutation<- UpdateUserCollectionMutation,- UpdateUserCollectionMutationVariables,- ""- >(UpdateUserCollectionDocument, { userCollectionID, newTitle, data })()--export const moveUserCollection = (- sourceCollectionID: string,- destinationCollectionID?: string-) =>- runMutation<- MoveUserCollectionMutation,- MoveUserCollectionMutationVariables,- ""- >(MoveUserCollectionDocument, {- userCollectionID: sourceCollectionID,- destCollectionID: destinationCollectionID,- })()--export const duplicateUserCollection = (- collectionID: string,- reqType: ReqType-) =>- runMutation<- DuplicateUserCollectionMutation,- DuplicateUserCollectionMutationVariables,- ""- >(DuplicateUserCollectionDocument, {- collectionID,- reqType,- })()--export const sortUserCollections = (- parentCollectionID: string | null,- sortOption: SortOptions-) =>- runMutation<- SortUserCollectionsMutation,- SortUserCollectionsMutationVariables,- ""- >(SortUserCollectionsDocument, {- parentCollectionID,- sortOption,- })()--export const editUserRequest = (- requestID: string,- title: string,- request: string-) =>- runMutation<- UpdateRestUserRequestMutation,- UpdateRestUserRequestMutationVariables,- ""- >(UpdateRestUserRequestDocument, {- id: requestID,- request,- title,- })()--export const editGQLUserRequest = (- requestID: string,- title: string,- request: string-) =>- runMutation<- UpdateGqlUserRequestMutation,- UpdateGqlUserRequestMutationVariables,- ""- >(UpdateGqlUserRequestDocument, {- id: requestID,- request,- title,- })()--export const deleteUserRequest = (requestID: string) =>- runMutation<- DeleteUserRequestMutation,- DeleteUserRequestMutationVariables,- ""- >(DeleteUserRequestDocument, {- requestID,- })()--export const moveUserRequest = (- sourceCollectionID: string,- destinationCollectionID: string,- requestID: string,- nextRequestID?: string-) =>- runMutation<MoveUserRequestMutation, MoveUserRequestMutationVariables, "">(- MoveUserRequestDocument,- {- sourceCollectionID,- destinationCollectionID,- requestID,- nextRequestID,- }- )()--export const updateUserCollectionOrder = (- collectionID: string,- nextCollectionID?: string-) =>- runMutation<- UpdateUserCollectionOrderMutation,- UpdateUserCollectionOrderMutationVariables,- ""- >(UpdateUserCollectionOrderDocument, {- collectionID,- nextCollectionID,- })()--export const getUserRootCollections = () =>- runGQLQuery<- GetUserRootCollectionsQuery,- GetUserRootCollectionsQueryVariables,- ""- >({- query: GetUserRootCollectionsDocument,- variables: {},- })--export const getGQLRootUserCollections = () =>- runGQLQuery<- GetGqlRootUserCollectionsQuery,- GetGqlRootUserCollectionsQueryVariables,- ""- >({- query: GetGqlRootUserCollectionsDocument,- variables: {},- })--export const exportUserCollectionsToJSON = (- collectionID?: string,- collectionType: ReqType.Rest | ReqType.Gql = ReqType.Rest-) =>- runGQLQuery<- ExportUserCollectionsToJsonQuery,- ExportUserCollectionsToJsonQueryVariables,- ""- >({- query: ExportUserCollectionsToJsonDocument,- variables: { collectionID, collectionType },- })--export const importUserCollectionsFromJSON = (- jsonString: string,- reqType: ReqType,- parentCollectionID?: string-) =>- runMutation<- ImportUserCollectionsFromJsonMutation,- ImportUserCollectionsFromJsonMutationVariables,- ""- >(ImportUserCollectionsFromJsonDocument, {- jsonString,- reqType,- parentCollectionID,- })()--export const runUserCollectionCreatedSubscription = () =>- runGQLSubscription({ query: UserCollectionCreatedDocument, variables: {} })--export const runUserCollectionUpdatedSubscription = () =>- runGQLSubscription({ query: UserCollectionUpdatedDocument, variables: {} })--export const runUserCollectionRemovedSubscription = () =>- runGQLSubscription({ query: UserCollectionRemovedDocument, variables: {} })--export const runUserCollectionMovedSubscription = () =>- runGQLSubscription({ query: UserCollectionMovedDocument, variables: {} })--export const runUserCollectionOrderUpdatedSubscription = () =>- runGQLSubscription({- query: UserCollectionOrderUpdatedDocument,- variables: {},- })--export const runUserCollectionDuplicatedSubscription = () =>- runGQLSubscription({- query: UserCollectionDuplicatedDocument,- variables: {},- })--export const runUserRootCollectionsSortedSubscription = () =>- runGQLSubscription({- query: UserRootCollectionsSortedDocument,- variables: {},- })--export const runUserChildCollectionSortedSubscription = () =>- runGQLSubscription({- query: UserChildCollectionSortedDocument,- variables: {},- })--export const runUserRequestCreatedSubscription = () =>- runGQLSubscription({ query: UserRequestCreatedDocument, variables: {} })--export const runUserRequestUpdatedSubscription = () =>- runGQLSubscription({ query: UserRequestUpdatedDocument, variables: {} })--export const runUserRequestMovedSubscription = () =>- runGQLSubscription({ query: UserRequestMovedDocument, variables: {} })--export const runUserRequestDeletedSubscription = () =>- runGQLSubscription({ query: UserRequestDeletedDocument, variables: {} })diff --git a/packages/hoppscotch-selfhost-desktop/src/platform/collections/collections.platform.ts b/packages/hoppscotch-selfhost-desktop/src/platform/collections/collections.platform.tsdeleted file mode 100644index 51a4e5271..000000000--- a/packages/hoppscotch-selfhost-desktop/src/platform/collections/collections.platform.ts+++ /dev/null@@ -1,1147 +0,0 @@-import { CollectionsPlatformDef } from "@hoppscotch/common/platform/collections"-import { authEvents$, def as platformAuth } from "@platform/auth"-import { runDispatchWithOutSyncing } from "../../lib/sync"--import {- exportUserCollectionsToJSON,- runUserChildCollectionSortedSubscription,- runUserCollectionCreatedSubscription,- runUserCollectionDuplicatedSubscription,- runUserCollectionMovedSubscription,- runUserCollectionOrderUpdatedSubscription,- runUserCollectionRemovedSubscription,- runUserCollectionUpdatedSubscription,- runUserRequestCreatedSubscription,- runUserRequestDeletedSubscription,- runUserRequestMovedSubscription,- runUserRequestUpdatedSubscription,- runUserRootCollectionsSortedSubscription,-} from "./collections.api"-import { collectionsSyncer, getStoreByCollectionType } from "./collections.sync"--import { runGQLSubscription } from "@hoppscotch/common/helpers/backend/GQLClient"-import {- addGraphqlCollection,- addGraphqlFolder,- addRESTCollection,- addRESTFolder,- editGraphqlCollection,- editGraphqlFolder,- editGraphqlRequest,- editRESTCollection,- editRESTFolder,- editRESTRequest,- moveGraphqlRequest,- moveRESTFolder,- moveRESTRequest,- navigateToFolderWithIndexPath,- removeGraphqlCollection,- removeGraphqlFolder,- removeGraphqlRequest,- removeRESTCollection,- removeRESTFolder,- removeRESTRequest,- restCollectionStore,- saveGraphqlRequestAs,- saveRESTRequestAs,- setGraphqlCollections,- setRESTCollections,- sortRESTCollection,- sortRESTFolder,- updateRESTCollectionOrder,- updateRESTRequestOrder,-} from "@hoppscotch/common/newstore/collections"-import {- GQLHeader,- HoppCollection,- HoppGQLRequest,- HoppRESTHeaders,- HoppRESTParam,- HoppRESTRequest,-} from "@hoppscotch/data"-import * as E from "fp-ts/Either"-import {- ReqType,- UserCollectionDuplicatedData,- UserRequest,-} from "../../api/generated/graphql"-import { gqlCollectionsSyncer } from "./gqlCollections.sync"--function initCollectionsSync() {- const currentUser$ = platformAuth.getCurrentUserStream()- collectionsSyncer.startStoreSync()- collectionsSyncer.setupSubscriptions(setupSubscriptions)-- gqlCollectionsSyncer.startStoreSync()-- // TODO: fix collection schema transformation on backend maybe?- loadUserCollections("REST")- loadUserCollections("GQL")-- // TODO: test & make sure the auth thing is working properly- currentUser$.subscribe(async (user) => {- if (user) {- loadUserCollections("REST")- loadUserCollections("GQL")- }- })-- authEvents$.subscribe((event) => {- if (event.event == "login" || event.event == "token_refresh") {- collectionsSyncer.startListeningToSubscriptions()- }-- if (event.event == "logout") {- collectionsSyncer.stopListeningToSubscriptions()- }- })-}--type ExportedUserCollectionREST = {- id?: string- folders: ExportedUserCollectionREST[]- requests: Array<HoppRESTRequest & { id: string }>- name: string- data: string-}--type ExportedUserCollectionGQL = {- id?: string- folders: ExportedUserCollectionGQL[]- requests: Array<HoppGQLRequest & { id: string }>- name: string- data: string-}--function addDescriptionField(- candidate: HoppRESTHeaders | GQLHeader[] | HoppRESTParam[]-) {- return candidate.map((item) => ({- ...item,- description: "description" in item ? item.description : "",- }))-}--function exportedCollectionToHoppCollection(- collection: ExportedUserCollectionREST | ExportedUserCollectionGQL,- collectionType: "REST" | "GQL"-): HoppCollection {- if (collectionType == "REST") {- const restCollection = collection as ExportedUserCollectionREST-- const data =- restCollection.data && restCollection.data !== "null"- ? JSON.parse(restCollection.data)- : {- auth: { authType: "inherit", authActive: true },- headers: [],- variables: [],- description: null,- }-- return {- id: restCollection.id,- v: 11,- name: restCollection.name,- folders: restCollection.folders.map((folder) =>- exportedCollectionToHoppCollection(folder, collectionType)- ),- requests: restCollection.requests.map((request) => {- const requestParsedResult = HoppRESTRequest.safeParse(request)- if (requestParsedResult.type === "ok") {- return requestParsedResult.value- }-- const {- v,- id,- auth,- body,- endpoint,- headers,- method,- name,- params,- preRequestScript,- testScript,- requestVariables,- responses,- description,- } = request-- const resolvedParams = addDescriptionField(params)- const resolvedHeaders = addDescriptionField(headers)-- return {- v,- id,- name,- endpoint,- method,- params: resolvedParams,- requestVariables,- auth,- headers: resolvedHeaders,- body,- preRequestScript,- testScript,- responses,- description,- }- }),- auth: data.auth,- headers: addDescriptionField(data.headers),- variables: data.variables ?? [],- description: data.description ?? null,- }- } else {- const gqlCollection = collection as ExportedUserCollectionGQL-- const data =- gqlCollection.data && gqlCollection.data !== "null"- ? JSON.parse(gqlCollection.data)- : {- auth: { authType: "inherit", authActive: true },- headers: [],- variables: [],- description: null,- }-- return {- id: gqlCollection.id,- v: 11,- name: gqlCollection.name,- folders: gqlCollection.folders.map((folder) =>- exportedCollectionToHoppCollection(folder, collectionType)- ),- requests: gqlCollection.requests.map((request) => {- const requestParsedResult = HoppGQLRequest.safeParse(request)- if (requestParsedResult.type === "ok") {- return requestParsedResult.value- }-- const { v, auth, headers, name, id, query, url, variables } = request-- const resolvedHeaders = addDescriptionField(headers)-- return {- id,- v,- auth,- headers: resolvedHeaders,- name,- query,- url,- variables,- }- }),- auth: data.auth,- headers: addDescriptionField(data.headers),- variables: data.variables ?? [],- description: data.description ?? null,- }- }-}--async function loadUserCollections(collectionType: "REST" | "GQL") {- const res = await exportUserCollectionsToJSON(- undefined,- collectionType == "REST" ? ReqType.Rest : ReqType.Gql- )- if (E.isRight(res)) {- const collectionsJSONString =- res.right.exportUserCollectionsToJSON.exportedCollection- const exportedCollections = (- JSON.parse(collectionsJSONString) as Array<- ExportedUserCollectionGQL | ExportedUserCollectionREST- >- ).map((collection) => ({ v: 1, ...collection }))- runDispatchWithOutSyncing(() => {- collectionType == "REST"- ? setRESTCollections(- exportedCollections.map(- (collection) =>- exportedCollectionToHoppCollection(- collection,- "REST"- ) as HoppCollection- )- )- : setGraphqlCollections(- exportedCollections.map(- (collection) =>- exportedCollectionToHoppCollection(- collection,- "GQL"- ) as HoppCollection- )- )- })- }-}--function setupSubscriptions() {- let subs: ReturnType<typeof runGQLSubscription>[1][] = []-- const userCollectionCreatedSub = setupUserCollectionCreatedSubscription()- const userCollectionUpdatedSub = setupUserCollectionUpdatedSubscription()- const userCollectionRemovedSub = setupUserCollectionRemovedSubscription()- const userCollectionMovedSub = setupUserCollectionMovedSubscription()- const userCollectionOrderUpdatedSub =- setupUserCollectionOrderUpdatedSubscription()- const userCollectionDuplicatedSub =- setupUserCollectionDuplicatedSubscription()- const userRootCollectionsSortedSub =- setupUserRootCollectionsSortedSubscription()- const userChildCollectionSortedSub =- setupUserChildCollectionSortedSubscription()-- const userRequestCreatedSub = setupUserRequestCreatedSubscription()- const userRequestUpdatedSub = setupUserRequestUpdatedSubscription()- const userRequestDeletedSub = setupUserRequestDeletedSubscription()- const userRequestMovedSub = setupUserRequestMovedSubscription()-- subs = [- userCollectionCreatedSub,- userCollectionUpdatedSub,- userCollectionRemovedSub,- userCollectionMovedSub,- userCollectionOrderUpdatedSub,- userCollectionDuplicatedSub,- userRootCollectionsSortedSub,- userChildCollectionSortedSub,- userRequestCreatedSub,- userRequestUpdatedSub,- userRequestDeletedSub,- userRequestMovedSub,- ]-- return () => {- subs.forEach((sub) => sub.unsubscribe())- }-}--function setupUserCollectionCreatedSubscription() {- const [userCollectionCreated$, userCollectionCreatedSub] =- runUserCollectionCreatedSubscription()-- userCollectionCreated$.subscribe((res) => {- if (E.isRight(res)) {- const collectionType = res.right.userCollectionCreated.type-- const { collectionStore } = getStoreByCollectionType(collectionType)-- const userCollectionBackendID = res.right.userCollectionCreated.id- const parentCollectionID = res.right.userCollectionCreated.parent?.id-- const userCollectionLocalID = getCollectionPathFromCollectionID(- userCollectionBackendID,- collectionStore.value.state- )-- // collection already exists in store ( this instance created it )- if (userCollectionLocalID) {- return- }-- const parentCollectionPath =- parentCollectionID &&- getCollectionPathFromCollectionID(- parentCollectionID,- collectionStore.value.state- )-- // only folders will have parent collection id- if (parentCollectionID && parentCollectionPath) {- runDispatchWithOutSyncing(() => {- collectionType == "GQL"- ? addGraphqlFolder(- res.right.userCollectionCreated.title,- parentCollectionPath- )- : addRESTFolder(- res.right.userCollectionCreated.title,- parentCollectionPath- )-- const parentCollection = navigateToFolderWithIndexPath(- collectionStore.value.state,- parentCollectionPath- .split("/")- .map((pathIndex) => parseInt(pathIndex))- )-- if (parentCollection) {- const folderIndex = parentCollection.folders.length - 1-- const addedFolder = parentCollection.folders[folderIndex]- addedFolder.id = userCollectionBackendID- }- })- } else {- // root collections won't have parentCollectionID- const data =- res.right.userCollectionCreated.data &&- res.right.userCollectionCreated.data != "null"- ? JSON.parse(res.right.userCollectionCreated.data)- : {- auth: { authType: "inherit", authActive: true },- headers: [],- variables: [],- description: null,- }-- runDispatchWithOutSyncing(() => {- collectionType == "GQL"- ? addGraphqlCollection({- name: res.right.userCollectionCreated.title,- folders: [],- requests: [],- v: 11,- auth: data.auth,- headers: addDescriptionField(data.headers),- variables: data.variables ?? [],- description: data.description ?? null,- })- : addRESTCollection({- name: res.right.userCollectionCreated.title,- folders: [],- requests: [],- v: 11,- auth: data.auth,- headers: addDescriptionField(data.headers),- variables: data.variables ?? [],- description: data.description ?? null,- })-- const localIndex = collectionStore.value.state.length - 1-- const addedCollection = collectionStore.value.state[localIndex]- addedCollection.id = userCollectionBackendID- })- }- }- })-- return userCollectionCreatedSub-}--function setupUserCollectionUpdatedSubscription() {- const [userCollectionUpdated$, userCollectionUpdatedSub] =- runUserCollectionUpdatedSubscription()-- userCollectionUpdated$.subscribe((res) => {- if (E.isRight(res)) {- const collectionType = res.right.userCollectionUpdated.type-- const { collectionStore } = getStoreByCollectionType(collectionType)-- const updatedCollectionBackendID = res.right.userCollectionUpdated.id- const updatedCollectionLocalPath = getCollectionPathFromCollectionID(- updatedCollectionBackendID,- collectionStore.value.state- )-- const isFolder =- updatedCollectionLocalPath &&- updatedCollectionLocalPath.split("/").length > 1-- // updated collection is a folder- if (isFolder) {- runDispatchWithOutSyncing(() => {- collectionType == "REST"- ? editRESTFolder(updatedCollectionLocalPath, {- name: res.right.userCollectionUpdated.title,- })- : editGraphqlFolder(updatedCollectionLocalPath, {- name: res.right.userCollectionUpdated.title,- })- })- }-- // updated collection is a root collection- if (updatedCollectionLocalPath && !isFolder) {- runDispatchWithOutSyncing(() => {- collectionType == "REST"- ? editRESTCollection(parseInt(updatedCollectionLocalPath), {- name: res.right.userCollectionUpdated.title,- })- : editGraphqlCollection(parseInt(updatedCollectionLocalPath), {- name: res.right.userCollectionUpdated.title,- })- })- }- }- })-- return userCollectionUpdatedSub-}--function setupUserCollectionMovedSubscription() {- const [userCollectionMoved$, userCollectionMovedSub] =- runUserCollectionMovedSubscription()-- userCollectionMoved$.subscribe((res) => {- if (E.isRight(res)) {- const movedMetadata = res.right.userCollectionMoved-- const sourcePath = getCollectionPathFromCollectionID(- movedMetadata.id,- restCollectionStore.value.state- )-- let destinationPath: string | undefined-- if (movedMetadata.parent?.id) {- destinationPath =- getCollectionPathFromCollectionID(- movedMetadata.parent?.id,- restCollectionStore.value.state- ) ?? undefined- }-- sourcePath &&- runDispatchWithOutSyncing(() => {- moveRESTFolder(sourcePath, destinationPath ?? null)- })- }- })-- return userCollectionMovedSub-}--function setupUserCollectionRemovedSubscription() {- const [userCollectionRemoved$, userCollectionRemovedSub] =- runUserCollectionRemovedSubscription()-- userCollectionRemoved$.subscribe((res) => {- if (E.isRight(res)) {- const removedCollectionBackendID = res.right.userCollectionRemoved.id- const collectionType = res.right.userCollectionRemoved.type-- const { collectionStore } = getStoreByCollectionType(collectionType)-- const removedCollectionLocalPath = getCollectionPathFromCollectionID(- removedCollectionBackendID,- collectionStore.value.state- )-- const isFolder =- removedCollectionLocalPath &&- removedCollectionLocalPath.split("/").length > 1-- if (removedCollectionLocalPath && isFolder) {- runDispatchWithOutSyncing(() => {- collectionType == "REST"- ? removeRESTFolder(removedCollectionLocalPath)- : removeGraphqlFolder(removedCollectionLocalPath)- })- }-- if (removedCollectionLocalPath && !isFolder) {- runDispatchWithOutSyncing(() => {- collectionType == "REST"- ? removeRESTCollection(parseInt(removedCollectionLocalPath))- : removeGraphqlCollection(parseInt(removedCollectionLocalPath))- })- }- }- })-- return userCollectionRemovedSub-}--function setupUserCollectionOrderUpdatedSubscription() {- const [userCollectionOrderUpdated$, userCollectionOrderUpdatedSub] =- runUserCollectionOrderUpdatedSubscription()-- userCollectionOrderUpdated$.subscribe((res) => {- if (E.isRight(res)) {- const { userCollection, nextUserCollection } =- res.right.userCollectionOrderUpdated-- const sourceCollectionID = userCollection.id- const destinationCollectionID = nextUserCollection?.id-- const sourcePath = getCollectionPathFromCollectionID(- sourceCollectionID,- restCollectionStore.value.state- )-- let destinationPath: string | null | undefined-- if (destinationCollectionID) {- destinationPath = getCollectionPathFromCollectionID(- destinationCollectionID,- restCollectionStore.value.state- )- }-- runDispatchWithOutSyncing(() => {- if (sourcePath) {- updateRESTCollectionOrder(sourcePath, destinationPath ?? null)- }- })- }- })-- return userCollectionOrderUpdatedSub-}--function setupUserCollectionDuplicatedSubscription() {- const [userCollectionDuplicated$, userCollectionDuplicatedSub] =- runUserCollectionDuplicatedSubscription()-- userCollectionDuplicated$.subscribe((res) => {- if (E.isRight(res)) {- const {- childCollections: childCollectionsJSONStr,- data,- id,- parentID: parentCollectionID,- requests: userRequests,- title: name,- type: collectionType,- } = res.right.userCollectionDuplicated-- const { collectionStore } = getStoreByCollectionType(collectionType)-- const parentCollectionPath =- parentCollectionID &&- getCollectionPathFromCollectionID(- parentCollectionID,- collectionStore.value.state- )-- // Incoming data transformed to the respective internal representations- const { auth, headers, variables, description } =- data && data != "null"- ? JSON.parse(data)- : {- auth: { authType: "inherit", authActive: true },- headers: [],- variables: [],- description: null,- }-- const folders = transformDuplicatedCollections(childCollectionsJSONStr)-- const requests = transformDuplicatedCollectionRequests(- userRequests as UserRequest[]- )-- // New collection to be added to store with the transformed data- const effectiveDuplicatedCollection: HoppCollection = {- id,- name,- folders,- requests,- v: 11,- auth,- headers: addDescriptionField(headers),- variables: variables ?? [],- description: description ?? null,- }-- // only folders will have parent collection id- if (parentCollectionID && parentCollectionPath) {- const collectionCreatedFromStoreIDSuffix = "-duplicate-collection"-- const parentCollection = navigateToFolderWithIndexPath(- collectionStore.value.state,- parentCollectionPath- .split("/")- .map((pathIndex) => parseInt(pathIndex))- )-- if (!parentCollection) {- return- }-- // Grab the child collection inserted via store update with the ID suffix- const collectionInsertedViaStoreUpdateIdx =- parentCollection.folders.findIndex(({ id }) =>- id?.endsWith(collectionCreatedFromStoreIDSuffix)- )-- if (collectionInsertedViaStoreUpdateIdx === -1) {- return- }-- const collectionInsertedViaStoreUpdateIndexPath = `${parentCollectionPath}/${collectionInsertedViaStoreUpdateIdx}`-- runDispatchWithOutSyncing(() => {- /**- * Step 1. Remove the collection inserted via store update with the ID suffix- * Step 2. Add the duplicated collection received from the GQL subscription- * Step 3. Update the duplicated collection with the relevant data- */-- if (collectionType === "GQL") {- removeGraphqlFolder(collectionInsertedViaStoreUpdateIndexPath)-- addGraphqlFolder(name, parentCollectionPath)-- editGraphqlFolder(- collectionInsertedViaStoreUpdateIndexPath,- effectiveDuplicatedCollection- )- } else {- removeRESTFolder(collectionInsertedViaStoreUpdateIndexPath)-- addRESTFolder(name, parentCollectionPath)-- editRESTFolder(- collectionInsertedViaStoreUpdateIndexPath,- effectiveDuplicatedCollection- )- }- })- } else {- // root collections won't have `parentCollectionID`- const collectionCreatedFromStoreIDSuffix = "-duplicate-collection"-- // Grab the child collection inserted via store update with the ID suffix- const collectionInsertedViaStoreUpdateIdx =- collectionStore.value.state.findIndex(({ id }) =>- id?.endsWith(collectionCreatedFromStoreIDSuffix)- )-- if (collectionInsertedViaStoreUpdateIdx === -1) {- return- }-- runDispatchWithOutSyncing(() => {- /**- * Step 1. Remove the collection inserted via store update with the ID suffix- * Step 2. Add the duplicated collection received from the GQL subscription- */- if (collectionType === "GQL") {- removeGraphqlCollection(collectionInsertedViaStoreUpdateIdx)-- addGraphqlCollection(effectiveDuplicatedCollection)- } else {- removeRESTCollection(collectionInsertedViaStoreUpdateIdx)-- addRESTCollection(effectiveDuplicatedCollection)- }- })- }- }- })-- return userCollectionDuplicatedSub-}--const setupUserRootCollectionsSortedSubscription = () => {- const [userRootCollectionsSorted$, userRootCollectionsSortedSub] =- runUserRootCollectionsSortedSubscription()-- userRootCollectionsSorted$.subscribe((res) => {- if (E.isRight(res)) {- runDispatchWithOutSyncing(() => {- if (res.right.userRootCollectionsSorted) {- const { sortOption } = res.right.userRootCollectionsSorted-- const sortOrder = sortOption === "TITLE_ASC" ? "asc" : "desc"-- sortRESTCollection(null, sortOrder)- }- })- }- })- return userRootCollectionsSortedSub-}--const setupUserChildCollectionSortedSubscription = () => {- const [userChildCollectionSorted$, userChildCollectionSortedSub] =- runUserChildCollectionSortedSubscription()-- userChildCollectionSorted$.subscribe((res) => {- if (E.isRight(res)) {- runDispatchWithOutSyncing(() => {- if (res.right.userChildCollectionsSorted) {- const { parentCollectionID, sortOption } =- res.right.userChildCollectionsSorted-- if (!parentCollectionID) return-- const sortOrder = sortOption === "TITLE_ASC" ? "asc" : "desc"-- const sourcePath = getCollectionPathFromCollectionID(- parentCollectionID,- restCollectionStore.value.state- )-- if (!sourcePath) return-- sortRESTFolder(sourcePath, sortOrder)- }- })- }- })- return userChildCollectionSortedSub-}--function setupUserRequestCreatedSubscription() {- const [userRequestCreated$, userRequestCreatedSub] =- runUserRequestCreatedSubscription()-- userRequestCreated$.subscribe((res) => {- if (E.isRight(res)) {- const collectionID = res.right.userRequestCreated.collectionID- const request = JSON.parse(res.right.userRequestCreated.request)- const requestID = res.right.userRequestCreated.id-- const requestType = res.right.userRequestCreated.type-- const { collectionStore } = getStoreByCollectionType(requestType)-- const hasAlreadyHappened = getRequestPathFromRequestID(- requestID,- collectionStore.value.state- )-- if (!!hasAlreadyHappened) {- return- }-- const collectionPath = getCollectionPathFromCollectionID(- collectionID,- collectionStore.value.state- )-- if (collectionID && collectionPath) {- runDispatchWithOutSyncing(() => {- requestType == "REST"- ? saveRESTRequestAs(collectionPath, request)- : saveGraphqlRequestAs(collectionPath, request)-- const target = navigateToFolderWithIndexPath(- collectionStore.value.state,- collectionPath.split("/").map((index) => parseInt(index))- )-- const targetRequest = target?.requests[target?.requests.length - 1]-- if (targetRequest) {- targetRequest.id = requestID- }- })- }- }- })-- return userRequestCreatedSub-}--function setupUserRequestUpdatedSubscription() {- const [userRequestUpdated$, userRequestUpdatedSub] =- runUserRequestUpdatedSubscription()-- userRequestUpdated$.subscribe((res) => {- if (E.isRight(res)) {- const requestType = res.right.userRequestUpdated.type-- const { collectionStore } = getStoreByCollectionType(requestType)-- const requestPath = getRequestPathFromRequestID(- res.right.userRequestUpdated.id,- collectionStore.value.state- )-- const collectionPath = requestPath?.collectionPath- const requestIndex = requestPath?.requestIndex-- ;(requestIndex || requestIndex == 0) &&- collectionPath &&- runDispatchWithOutSyncing(() => {- requestType == "REST"- ? editRESTRequest(- collectionPath,- requestIndex,- JSON.parse(res.right.userRequestUpdated.request)- )- : editGraphqlRequest(- collectionPath,- requestIndex,- JSON.parse(res.right.userRequestUpdated.request)- )- })- }- })-- return userRequestUpdatedSub-}--function setupUserRequestMovedSubscription() {- const [userRequestMoved$, userRequestMovedSub] =- runUserRequestMovedSubscription()-- userRequestMoved$.subscribe((res) => {- if (E.isRight(res)) {- const { request, nextRequest } = res.right.userRequestMoved-- const {- collectionID: destinationCollectionID,- id: sourceRequestID,- type: requestType,- } = request-- const { collectionStore } = getStoreByCollectionType(requestType)-- const sourceRequestPath = getRequestPathFromRequestID(- sourceRequestID,- collectionStore.value.state- )-- const destinationCollectionPath = getCollectionPathFromCollectionID(- destinationCollectionID,- collectionStore.value.state- )-- const destinationRequestIndex = destinationCollectionPath- ? (() => {- const requestsLength = navigateToFolderWithIndexPath(- collectionStore.value.state,- destinationCollectionPath- .split("/")- .map((index) => parseInt(index))- )?.requests.length-- return requestsLength || requestsLength == 0- ? requestsLength - 1- : undefined- })()- : undefined-- // there is no nextRequest, so request is moved- if (- (destinationRequestIndex || destinationRequestIndex == 0) &&- destinationCollectionPath &&- sourceRequestPath &&- !nextRequest- ) {- runDispatchWithOutSyncing(() => {- requestType == "REST"- ? moveRESTRequest(- sourceRequestPath.collectionPath,- sourceRequestPath.requestIndex,- destinationCollectionPath- )- : moveGraphqlRequest(- sourceRequestPath.collectionPath,- sourceRequestPath.requestIndex,- destinationCollectionPath- )- })- }-- // there is nextRequest, so request is reordered- if (- (destinationRequestIndex || destinationRequestIndex == 0) &&- destinationCollectionPath &&- nextRequest &&- // we don't have request reordering for graphql yet- requestType == "REST"- ) {- const { collectionID: nextCollectionID, id: nextRequestID } =- nextRequest-- const nextCollectionPath =- getCollectionPathFromCollectionID(- nextCollectionID,- collectionStore.value.state- ) ?? undefined-- const nextRequestIndex = nextCollectionPath- ? getRequestIndex(- nextRequestID,- nextCollectionPath,- collectionStore.value.state- )- : undefined-- nextRequestIndex &&- nextCollectionPath &&- sourceRequestPath &&- runDispatchWithOutSyncing(() => {- updateRESTRequestOrder(- sourceRequestPath?.requestIndex,- nextRequestIndex,- nextCollectionPath- )- })- }- }- })-- return userRequestMovedSub-}--function setupUserRequestDeletedSubscription() {- const [userRequestDeleted$, userRequestDeletedSub] =- runUserRequestDeletedSubscription()-- userRequestDeleted$.subscribe((res) => {- if (E.isRight(res)) {- const requestType = res.right.userRequestDeleted.type-- const { collectionStore } = getStoreByCollectionType(requestType)-- const deletedRequestPath = getRequestPathFromRequestID(- res.right.userRequestDeleted.id,- collectionStore.value.state- )-- ;(deletedRequestPath?.requestIndex ||- deletedRequestPath?.requestIndex == 0) &&- deletedRequestPath.collectionPath &&- runDispatchWithOutSyncing(() => {- requestType == "REST"- ? removeRESTRequest(- deletedRequestPath.collectionPath,- deletedRequestPath.requestIndex- )- : removeGraphqlRequest(- deletedRequestPath.collectionPath,- deletedRequestPath.requestIndex- )- })- }- })-- return userRequestDeletedSub-}--export const def: CollectionsPlatformDef = {- initCollectionsSync,-}--function getCollectionPathFromCollectionID(- collectionID: string,- collections: HoppCollection[],- parentPath?: string-): string | null {- for (const collectionIndex in collections) {- if (collections[collectionIndex].id == collectionID) {- return parentPath- ? `${parentPath}/${collectionIndex}`- : `${collectionIndex}`- } else {- const collectionPath = getCollectionPathFromCollectionID(- collectionID,- collections[collectionIndex].folders,- parentPath ? `${parentPath}/${collectionIndex}` : `${collectionIndex}`- )-- if (collectionPath) return collectionPath- }- }-- return null-}--function getRequestPathFromRequestID(- requestID: string,- collections: HoppCollection[],- parentPath?: string-): { collectionPath: string; requestIndex: number } | null {- for (const collectionIndex in collections) {- const requestIndex = collections[collectionIndex].requests.findIndex(- (request) => request.id == requestID- )-- if (requestIndex != -1) {- return {- collectionPath: parentPath- ? `${parentPath}/${collectionIndex}`- : `${collectionIndex}`,- requestIndex,- }- } else {- const requestPath = getRequestPathFromRequestID(- requestID,- collections[collectionIndex].folders,- parentPath ? `${parentPath}/${collectionIndex}` : `${collectionIndex}`- )-- if (requestPath) return requestPath- }- }-- return null-}--function getRequestIndex(- requestID: string,- parentCollectionPath: string,- collections: HoppCollection[]-) {- const collection = navigateToFolderWithIndexPath(- collections,- parentCollectionPath?.split("/").map((index) => parseInt(index))- )-- const requestIndex = collection?.requests.findIndex(- (request) => request.id == requestID- )-- return requestIndex-}--function transformDuplicatedCollections(- collectionsJSONStr: string-): HoppCollection[] {- const parsedCollections: UserCollectionDuplicatedData[] =- JSON.parse(collectionsJSONStr)-- return parsedCollections.map(- ({- childCollections: childCollectionsJSONStr,- data,- id,- requests: userRequests,- title: name,- }) => {- const { auth, headers, variables, description } =- data && data !== "null"- ? JSON.parse(data)- : {- auth: { authType: "inherit", authActive: true },- headers: [],- variables: [],- description: null,- }-- const folders = transformDuplicatedCollections(childCollectionsJSONStr)-- const requests = transformDuplicatedCollectionRequests(userRequests)-- return {- id,- name,- folders,- requests,- v: 11,- auth,- headers: addDescriptionField(headers),- variables: variables ?? [],- description: description ?? null,- }- }- )-}--function transformDuplicatedCollectionRequests(- requests: UserRequest[]-): HoppRESTRequest[] | HoppGQLRequest[] {- return requests.map(({ id, request }) => {- const parsedRequest = JSON.parse(request)-- return {- ...parsedRequest,- id,- }- })-}diff --git a/packages/hoppscotch-selfhost-desktop/src/platform/collections/collections.sync.ts b/packages/hoppscotch-selfhost-desktop/src/platform/collections/collections.sync.tsdeleted file mode 100644index 9e25f6b8a..000000000--- a/packages/hoppscotch-selfhost-desktop/src/platform/collections/collections.sync.ts+++ /dev/null@@ -1,701 +0,0 @@-import {- graphqlCollectionStore,- navigateToFolderWithIndexPath,- removeDuplicateRESTCollectionOrFolder,- restCollectionStore,-} from "@hoppscotch/common/newstore/collections"-import {- getSettingSubject,- settingsStore,-} from "@hoppscotch/common/newstore/settings"--import {- generateUniqueRefId,- HoppCollection,- HoppRESTRequest,-} from "@hoppscotch/data"--import { getSyncInitFunction, type StoreSyncDefinitionOf } from "../../lib/sync"--import { createMapper } from "../../lib/sync/mapper"-import {- createRESTChildUserCollection,- createRESTRootUserCollection,- createRESTUserRequest,- deleteUserCollection,- deleteUserRequest,- editUserRequest,- importUserCollectionsFromJSON,- moveUserCollection,- moveUserRequest,- sortUserCollections,- updateUserCollection,- updateUserCollectionOrder,-} from "./collections.api"--import { ReqType, SortOptions } from "../../api/generated/graphql"--import * as E from "fp-ts/Either"--// restCollectionsMapper uses the collectionPath as the local identifier-export const restCollectionsMapper = createMapper<string, string>()--// restRequestsMapper uses the collectionPath/requestIndex as the local identifier-export const restRequestsMapper = createMapper<string, string>()--// temp implementation until the backend implements an endpoint that accepts an entire collection-// TODO: use importCollectionsJSON to do this-const recursivelySyncCollections = async (- collection: HoppCollection,- collectionPath: string,- parentUserCollectionID?: string-) => {- let parentCollectionID = parentUserCollectionID-- // if parentUserCollectionID does not exist, create the collection as a root collection- if (!parentUserCollectionID) {- const data = {- auth: collection.auth ?? {- authType: "inherit",- authActive: true,- },- headers: collection.headers ?? [],- variables: collection.variables ?? [],- description: collection.description ?? null,- _ref_id: collection._ref_id,- }- const res = await createRESTRootUserCollection(- collection.name,- JSON.stringify(data)- )-- if (E.isRight(res)) {- parentCollectionID = res.right.createRESTRootUserCollection.id-- const returnedData = res.right.createRESTRootUserCollection.data- ? JSON.parse(res.right.createRESTRootUserCollection.data)- : {- auth: {- authType: "inherit",- authActive: true,- },- headers: [],- variables: [],- _ref_id: generateUniqueRefId("coll"),- description: null,- }-- collection.id = parentCollectionID- collection._ref_id = returnedData._ref_id ?? generateUniqueRefId("coll")- collection.auth = returnedData.auth- collection.headers = returnedData.headers- collection.variables = returnedData.variables- collection.description = returnedData.description ?? null- removeDuplicateRESTCollectionOrFolder(parentCollectionID, collectionPath)- } else {- parentCollectionID = undefined- }- } else {- // if parentUserCollectionID exists, create the collection as a child collection-- const data = {- auth: collection.auth ?? {- authType: "inherit",- authActive: true,- },- headers: collection.headers ?? [],- variables: collection.variables ?? [],- description: collection.description ?? null,- _ref_id: collection._ref_id,- }-- const res = await createRESTChildUserCollection(- collection.name,- parentUserCollectionID,- JSON.stringify(data)- )-- if (E.isRight(res)) {- const childCollectionId = res.right.createRESTChildUserCollection.id-- const returnedData = res.right.createRESTChildUserCollection.data- ? JSON.parse(res.right.createRESTChildUserCollection.data)- : {- auth: {- authType: "inherit",- authActive: true,- },- headers: [],- _ref_id: generateUniqueRefId("coll"),- variables: [],- description: null,- }-- collection.id = childCollectionId- collection._ref_id = returnedData._ref_id ?? generateUniqueRefId("coll")- collection.auth = returnedData.auth- collection.headers = returnedData.headers- parentCollectionID = childCollectionId- collection.variables = returnedData.variables- collection.description = returnedData.description ?? null-- removeDuplicateRESTCollectionOrFolder(- childCollectionId,- `${collectionPath}`- )- }- }-- // create the requests- if (parentCollectionID) {- collection.requests.forEach(async (request) => {- const res = await createRESTUserRequest(- request.name,- JSON.stringify(request),- parentCollectionID- )-- if (res && E.isRight(res)) {- const requestId = res.right.createRESTUserRequest.id-- request.id = requestId- }- })- }-- // create the folders aka child collections- if (parentCollectionID)- collection.folders.forEach(async (folder, index) => {- recursivelySyncCollections(- folder,- `${collectionPath}/${index}`,- parentCollectionID- )- })-}--// Helper function to transform HoppCollection to backend format-const transformCollectionForBackend = (collection: HoppCollection): any => {- const data = {- auth: collection.auth ?? {- authType: "inherit",- authActive: true,- },- headers: collection.headers ?? [],- variables: collection.variables ?? [],- description: collection.description ?? null,- _ref_id: collection._ref_id,- }-- return {- name: collection.name,- data: JSON.stringify(data),- folders: collection.folders.map(transformCollectionForBackend),- requests: collection.requests,- }-}--// TODO: generalize this-// TODO: ask backend to send enough info on the subscription to not need this-export const collectionReorderOrMovingOperations: {- sourceCollectionID: string- destinationCollectionID?: string- reorderOperation: {- fromPath: string- toPath?: string- }-}[] = []--type OperationStatus = "pending" | "completed"--type OperationCollectionRemoved = {- type: "COLLECTION_REMOVED"- collectionBackendID: string- status: OperationStatus-}--export const restCollectionsOperations: Array<OperationCollectionRemoved> = []--export const storeSyncDefinition: StoreSyncDefinitionOf<- typeof restCollectionStore-> = {- async appendCollections({ entries }) {- // Transform collections to backend format- const transformedCollections = entries.map(transformCollectionForBackend)-- // Use bulk import API for better performance- const result = await importUserCollectionsFromJSON(- JSON.stringify(transformedCollections),- ReqType.Rest,- undefined // parentCollectionID is undefined for root collections- )-- if (E.isLeft(result)) {- // Fallback to individual creation if bulk import fails- let indexStart = restCollectionStore.value.state.length - entries.length- entries.forEach((collection) => {- recursivelySyncCollections(collection, `${indexStart}`)- indexStart++- })- }- },- async addCollection({ collection }) {- const lastCreatedCollectionIndex =- restCollectionStore.value.state.length - 1-- recursivelySyncCollections(collection, `${lastCreatedCollectionIndex}`)- },- async removeCollection({ collectionID }) {- if (collectionID) {- await deleteUserCollection(collectionID)- }- },- editCollection({ partialCollection: collection, collectionIndex }) {- const collectionID = navigateToFolderWithIndexPath(- restCollectionStore.value.state,- [collectionIndex]- )?.id-- const data = {- auth: collection.auth,- headers: collection.headers,- variables: collection.variables,- _ref_id: collection._ref_id,- description: collection.description,- }-- if (collectionID) {- updateUserCollection(collectionID, collection.name, JSON.stringify(data))- }- },- sortRESTCollection({ collectionPath, sortOrder }) {- // If collectionPath is empty, it means we're sorting the whole root collections else we're sorting a specific collection- const collectionID =- collectionPath !== null && collectionPath !== undefined- ? navigateToFolderWithIndexPath(restCollectionStore.value.state, [- collectionPath,- ])?.id- : null-- const order =- sortOrder === "asc" ? SortOptions.TitleAsc : SortOptions.TitleDesc-- sortUserCollections(collectionID ?? null, order)- },-- sortRESTFolder({ path, sortOrder }) {- const collectionID = navigateToFolderWithIndexPath(- restCollectionStore.value.state,- path.split("/").map((index) => parseInt(index))- )?.id-- if (collectionID) {- const order =- sortOrder === "asc" ? SortOptions.TitleAsc : SortOptions.TitleDesc-- sortUserCollections(collectionID, order)- }- },- async addFolder({ name, path }) {- const parentCollection = navigateToFolderWithIndexPath(- restCollectionStore.value.state,- path.split("/").map((index) => parseInt(index))- )-- const parentCollectionBackendID = parentCollection?.id-- if (parentCollectionBackendID) {- const res = await createRESTChildUserCollection(- name,- parentCollectionBackendID- )-- if (E.isRight(res)) {- const { id } = res.right.createRESTChildUserCollection-- // Always try to assign the ID to the last created folder- const foldersLength = parentCollection.folders.length- if (foldersLength > 0) {- const lastFolderIndex = foldersLength - 1- const lastFolder = parentCollection.folders[lastFolderIndex]-- // Only assign ID if the folder doesn't already have one (avoid overwriting)- if (!lastFolder.id) {- lastFolder.id = id- removeDuplicateRESTCollectionOrFolder(- id,- `${path}/${lastFolderIndex}`- )- }- }- }- }- },- editFolder({ folder, path }) {- const folderID = navigateToFolderWithIndexPath(- restCollectionStore.value.state,- path.split("/").map((index) => parseInt(index))- )?.id-- const folderName = folder.name- const data = {- auth: folder.auth,- headers: folder.headers,- variables: folder.variables,- _ref_id: folder._ref_id,- description: folder.description,- }-- if (folderID) {- updateUserCollection(folderID, folderName, JSON.stringify(data))- }- },- async removeFolder({ folderID }) {- if (folderID) {- await deleteUserCollection(folderID)- }- },- async moveFolder({ destinationPath, path }) {- const { newSourcePath, newDestinationPath } = getPathsAfterMoving(- path,- destinationPath ?? undefined- )-- if (newSourcePath) {- const sourceCollectionID = navigateToFolderWithIndexPath(- restCollectionStore.value.state,- newSourcePath.split("/").map((index) => parseInt(index))- )?.id-- const destinationCollectionID = destinationPath- ? newDestinationPath &&- navigateToFolderWithIndexPath(- restCollectionStore.value.state,- newDestinationPath.split("/").map((index) => parseInt(index))- )?.id- : undefined-- if (sourceCollectionID) {- await moveUserCollection(sourceCollectionID, destinationCollectionID)- }- }- },- editRequest({ path, requestIndex, requestNew }) {- const request = navigateToFolderWithIndexPath(- restCollectionStore.value.state,- path.split("/").map((index) => parseInt(index))- )?.requests[requestIndex]-- const requestBackendID = request?.id-- if (requestBackendID) {- editUserRequest(- requestBackendID,- (requestNew as HoppRESTRequest).name,- JSON.stringify(requestNew)- )- }- },- async saveRequestAs({ path, request }) {- const folder = navigateToFolderWithIndexPath(- restCollectionStore.value.state,- path.split("/").map((index) => parseInt(index))- )-- const parentCollectionBackendID = folder?.id-- if (parentCollectionBackendID) {- const res = await createRESTUserRequest(- (request as HoppRESTRequest).name,- JSON.stringify(request),- parentCollectionBackendID- )-- if (E.isRight(res)) {- const { id } = res.right.createRESTUserRequest-- // Find the last request that doesn't have an ID (the newly added one)- const requestsLength = folder.requests.length- if (requestsLength > 0) {- const lastRequestIndex = requestsLength - 1- const lastRequest = folder.requests[lastRequestIndex]-- // Only assign ID if the request doesn't already have one- if (!lastRequest.id) {- lastRequest.id = id- removeDuplicateRESTCollectionOrFolder(- id,- `${path}/${lastRequestIndex}`,- "request"- )- }- }- }- }- },- async removeRequest({ requestID }) {- if (requestID) {- await deleteUserRequest(requestID)- }- },- moveRequest({ destinationPath, path, requestIndex }) {- moveOrReorderRequests(requestIndex, path, destinationPath)- },- updateRequestOrder({- destinationCollectionPath,- destinationRequestIndex,- requestIndex,- }) {- /**- * currently the FE implementation only supports reordering requests between the same collection,- * so destinationCollectionPath and sourceCollectionPath will be same- */- moveOrReorderRequests(- requestIndex,- destinationCollectionPath,- destinationCollectionPath,- destinationRequestIndex ?? undefined- )- },- async updateCollectionOrder({- collectionIndex: collectionPath,- destinationCollectionIndex: destinationCollectionPath,- }) {- const collections = restCollectionStore.value.state-- const sourcePathIndexes = getParentPathIndexesFromPath(collectionPath)- const sourceCollectionIndex = getCollectionIndexFromPath(collectionPath)-- const destinationCollectionIndex = !!destinationCollectionPath- ? getCollectionIndexFromPath(destinationCollectionPath)- : undefined-- let updatedCollectionIndexs:- | [newSourceIndex: number, newDestinationIndex: number | undefined]- | undefined-- if (- (sourceCollectionIndex || sourceCollectionIndex == 0) &&- (destinationCollectionIndex || destinationCollectionIndex == 0)- ) {- updatedCollectionIndexs = getIndexesAfterReorder(- sourceCollectionIndex,- destinationCollectionIndex- )- } else if (sourceCollectionIndex || sourceCollectionIndex == 0) {- if (sourcePathIndexes.length == 0) {- // we're reordering root collections- updatedCollectionIndexs = [collections.length - 1, undefined]- } else {- const sourceCollection = navigateToFolderWithIndexPath(collections, [- ...sourcePathIndexes,- ])-- if (sourceCollection && sourceCollection.folders.length > 0) {- updatedCollectionIndexs = [- sourceCollection.folders.length - 1,- undefined,- ]- }- }- }-- const sourceCollectionID =- updatedCollectionIndexs &&- navigateToFolderWithIndexPath(collections, [- ...sourcePathIndexes,- updatedCollectionIndexs[0],- ])?.id-- const destinationCollectionID =- updatedCollectionIndexs &&- (updatedCollectionIndexs[1] || updatedCollectionIndexs[1] == 0)- ? navigateToFolderWithIndexPath(collections, [- ...sourcePathIndexes,- updatedCollectionIndexs[1],- ])?.id- : undefined-- if (sourceCollectionID) {- await updateUserCollectionOrder(- sourceCollectionID,- destinationCollectionID- )- }- },-}--export const collectionsSyncer = getSyncInitFunction(- restCollectionStore,- storeSyncDefinition,- () => settingsStore.value.syncCollections,- getSettingSubject("syncCollections")-)--export async function moveOrReorderRequests(- requestIndex: number,- path: string,- destinationPath: string,- nextRequestIndex?: number,- requestType: "REST" | "GQL" = "REST"-) {- const { collectionStore } = getStoreByCollectionType(requestType)-- const sourceCollectionBackendID = navigateToFolderWithIndexPath(- collectionStore.value.state,- path.split("/").map((index) => parseInt(index))- )?.id-- const destinationCollection = navigateToFolderWithIndexPath(- collectionStore.value.state,- destinationPath.split("/").map((index) => parseInt(index))- )-- const destinationCollectionBackendID = destinationCollection?.id-- let requestBackendID: string | undefined-- let nextRequestBackendID: string | undefined-- // we only need this for reordering requests, not for moving requests- if (nextRequestIndex) {- // reordering- const [newRequestIndex, newDestinationIndex] = getIndexesAfterReorder(- requestIndex,- nextRequestIndex- )-- requestBackendID =- destinationCollection?.requests[newRequestIndex]?.id ?? undefined-- nextRequestBackendID =- destinationCollection?.requests[newDestinationIndex]?.id ?? undefined- } else {- // moving- const requests = destinationCollection?.requests- requestBackendID =- requests && requests.length > 0- ? requests[requests.length - 1]?.id- : undefined- }-- if (- sourceCollectionBackendID &&- destinationCollectionBackendID &&- requestBackendID- ) {- await moveUserRequest(- sourceCollectionBackendID,- destinationCollectionBackendID,- requestBackendID,- nextRequestBackendID- )- }-}--function getParentPathIndexesFromPath(path: string) {- const indexes = path.split("/")- indexes.pop()- return indexes.map((index) => parseInt(index))-}--export function getCollectionIndexFromPath(collectionPath: string) {- const sourceCollectionIndexString = collectionPath.split("/").pop()- const sourceCollectionIndex = sourceCollectionIndexString- ? parseInt(sourceCollectionIndexString)- : undefined-- return sourceCollectionIndex-}--/**- * the sync function is called after the reordering has happened on the store- * because of this we need to find the new source and destination indexes after the reordering- */-function getIndexesAfterReorder(- oldSourceIndex: number,- oldDestinationIndex: number-): [newSourceIndex: number, newDestinationIndex: number] {- // Source Becomes Destination -1- // Destination Remains Same- if (oldSourceIndex < oldDestinationIndex) {- return [oldDestinationIndex - 1, oldDestinationIndex]- }-- // Source Becomes The Destination- // Destintion Becomes Source + 1- if (oldSourceIndex > oldDestinationIndex) {- return [oldDestinationIndex, oldDestinationIndex + 1]- }-- throw new Error("Source and Destination are the same")-}--/**- * the sync function is called after moving a folder has happened on the store,- * because of this the source index given to the sync function is not the live one- * we need to find the new source index after the moving- */-function getPathsAfterMoving(sourcePath: string, destinationPath?: string) {- if (!destinationPath) {- return {- newSourcePath: `${restCollectionStore.value.state.length - 1}`,- newDestinationPath: destinationPath,- }- }-- const sourceParentPath = getParentPathFromPath(sourcePath)- const destinationParentPath = getParentPathFromPath(destinationPath)-- const isSameParentPath = sourceParentPath === destinationParentPath-- let newDestinationPath: string-- if (isSameParentPath) {- const sourceIndex = getCollectionIndexFromPath(sourcePath)- const destinationIndex = getCollectionIndexFromPath(destinationPath)-- if (- (sourceIndex || sourceIndex == 0) &&- (destinationIndex || destinationIndex == 0) &&- sourceIndex < destinationIndex- ) {- newDestinationPath = destinationParentPath- ? `${destinationParentPath}/${destinationIndex - 1}`- : `${destinationIndex - 1}`- } else {- newDestinationPath = destinationPath- }- } else {- newDestinationPath = destinationPath- }-- const destinationFolder = navigateToFolderWithIndexPath(- restCollectionStore.value.state,- newDestinationPath.split("/").map((index) => parseInt(index))- )-- const newSourcePath = destinationFolder- ? `${newDestinationPath}/${destinationFolder?.folders.length - 1}`- : undefined-- return {- newSourcePath,- newDestinationPath,- }-}--function getParentPathFromPath(path: string | undefined) {- const indexes = path ? path.split("/") : []- indexes.pop()-- return indexes.join("/")-}--export function getStoreByCollectionType(type: "GQL" | "REST") {- const isGQL = type == "GQL"-- const collectionStore = isGQL ? graphqlCollectionStore : restCollectionStore-- return { collectionStore }-}diff --git a/packages/hoppscotch-selfhost-desktop/src/platform/collections/gqlCollections.sync.ts b/packages/hoppscotch-selfhost-desktop/src/platform/collections/gqlCollections.sync.tsdeleted file mode 100644index cf2194609..000000000--- a/packages/hoppscotch-selfhost-desktop/src/platform/collections/gqlCollections.sync.ts+++ /dev/null@@ -1,380 +0,0 @@-import {- graphqlCollectionStore,- navigateToFolderWithIndexPath,- removeDuplicateGraphqlCollectionOrFolder,-} from "@hoppscotch/common/newstore/collections"-import {- getSettingSubject,- settingsStore,-} from "@hoppscotch/common/newstore/settings"--import {- generateUniqueRefId,- HoppCollection,- HoppRESTRequest,-} from "@hoppscotch/data"--import { getSyncInitFunction, type StoreSyncDefinitionOf } from "../../lib/sync"--import { createMapper } from "../../lib/sync/mapper"-import {- createGQLChildUserCollection,- createGQLRootUserCollection,- createGQLUserRequest,- deleteUserCollection,- deleteUserRequest,- editGQLUserRequest,- importUserCollectionsFromJSON,- renameUserCollection,- updateUserCollection,-} from "./collections.api"--import { ReqType } from "../../api/generated/graphql"-import * as E from "fp-ts/Either"--// Helper function to transform HoppCollection to backend format-const transformCollectionForBackend = (collection: HoppCollection): any => {- const data = {- auth: collection.auth ?? {- authType: "inherit",- authActive: true,- },- headers: collection.headers ?? [],- variables: collection.variables ?? [],- _ref_id: collection._ref_id,- }-- return {- name: collection.name,- data: JSON.stringify(data),- folders: collection.folders.map(transformCollectionForBackend),- requests: collection.requests,- }-}--import { moveOrReorderRequests } from "./collections.sync"--// gqlCollectionsMapper uses the collectionPath as the local identifier-export const gqlCollectionsMapper = createMapper<string, string>()--// gqlRequestsMapper uses the collectionPath/requestIndex as the local identifier-export const gqlRequestsMapper = createMapper<string, string>()--// temp implementation until the backend implements an endpoint that accepts an entire collection-// TODO: use importCollectionsJSON to do this-const recursivelySyncCollections = async (- collection: HoppCollection,- collectionPath: string,- parentUserCollectionID?: string-) => {- let parentCollectionID = parentUserCollectionID-- // if parentUserCollectionID does not exist, create the collection as a root collection- if (!parentUserCollectionID) {- const data = {- auth: collection.auth ?? {- authType: "inherit",- authActive: true,- },- headers: collection.headers ?? [],- variables: collection.variables ?? [],- _ref_id: collection._ref_id ?? generateUniqueRefId("coll"),- }- const res = await createGQLRootUserCollection(- collection.name,- JSON.stringify(data)- )-- if (E.isRight(res)) {- parentCollectionID = res.right.createGQLRootUserCollection.id-- const returnedData = res.right.createGQLRootUserCollection.data- ? JSON.parse(res.right.createGQLRootUserCollection.data)- : {- auth: {- authType: "inherit",- authActive: true,- },- headers: [],- variables: [],- _ref_id: generateUniqueRefId("coll"),- }-- collection.id = parentCollectionID- collection.auth = returnedData.auth- collection.headers = returnedData.headers- collection.variables = returnedData.variables- collection._ref_id = returnedData._ref_id ?? generateUniqueRefId("coll")-- removeDuplicateGraphqlCollectionOrFolder(- parentCollectionID,- collectionPath- )- } else {- parentCollectionID = undefined- }- } else {- // if parentUserCollectionID exists, create the collection as a child collection-- const data = {- auth: collection.auth ?? {- authType: "inherit",- authActive: true,- },- headers: collection.headers ?? [],- variables: collection.variables ?? [],- _ref_id: collection._ref_id ?? generateUniqueRefId("coll"),- }-- const res = await createGQLChildUserCollection(- collection.name,- parentUserCollectionID,- JSON.stringify(data)- )-- if (E.isRight(res)) {- const childCollectionId = res.right.createGQLChildUserCollection.id-- const returnedData = res.right.createGQLChildUserCollection.data- ? JSON.parse(res.right.createGQLChildUserCollection.data)- : {- auth: {- authType: "inherit",- authActive: true,- },- headers: [],- variables: [],- _ref_id: generateUniqueRefId("coll"),- }-- collection.id = childCollectionId- collection.auth = returnedData.auth- collection.headers = returnedData.headers- parentCollectionID = childCollectionId- collection.variables = returnedData.variables- collection._ref_id = returnedData._ref_id ?? generateUniqueRefId("coll")-- removeDuplicateGraphqlCollectionOrFolder(- childCollectionId,- `${collectionPath}`- )- }- }-- // create the requests- if (parentCollectionID) {- collection.requests.forEach(async (request) => {- const res = await createGQLUserRequest(- request.name,- JSON.stringify(request),- parentCollectionID- )-- if (res && E.isRight(res)) {- const requestId = res.right.createGQLUserRequest.id-- request.id = requestId- }- })- }-- // create the folders aka child collections- if (parentCollectionID)- collection.folders.forEach(async (folder, index) => {- recursivelySyncCollections(- folder,- `${collectionPath}/${index}`,- parentCollectionID- )- })-}--// TODO: generalize this-// TODO: ask backend to send enough info on the subscription to not need this-export const collectionReorderOrMovingOperations: {- sourceCollectionID: string- destinationCollectionID?: string- reorderOperation: {- fromPath: string- toPath?: string- }-}[] = []--type OperationStatus = "pending" | "completed"--type OperationCollectionRemoved = {- type: "COLLECTION_REMOVED"- collectionBackendID: string- status: OperationStatus-}--export const gqlCollectionsOperations: Array<OperationCollectionRemoved> = []--export const storeSyncDefinition: StoreSyncDefinitionOf<- typeof graphqlCollectionStore-> = {- async appendCollections({ entries }) {- // Transform collections to backend format- const transformedCollections = entries.map(transformCollectionForBackend)-- // Use bulk import API for better performance- const result = await importUserCollectionsFromJSON(- JSON.stringify(transformedCollections),- ReqType.Gql,- undefined // parentCollectionID is undefined for root collections- )-- if (E.isLeft(result)) {- // Fallback to individual creation if bulk import fails- let indexStart =- graphqlCollectionStore.value.state.length - entries.length-- entries.forEach((collection) => {- recursivelySyncCollections(collection, `${indexStart}`)- indexStart++- })- }- },- async addCollection({ collection }) {- const lastCreatedCollectionIndex =- graphqlCollectionStore.value.state.length - 1-- await recursivelySyncCollections(- collection,- `${lastCreatedCollectionIndex}`- )- },- async removeCollection({ collectionID }) {- if (collectionID) {- await deleteUserCollection(collectionID)- }- },- editCollection({ collection, collectionIndex }) {- const collectionID = navigateToFolderWithIndexPath(- graphqlCollectionStore.value.state,- [collectionIndex]- )?.id-- const data = {- auth: collection.auth,- headers: collection.headers,- variables: collection.variables,- _ref_id: collection._ref_id ?? generateUniqueRefId("coll"),- }-- if (collectionID) {- updateUserCollection(collectionID, collection.name, JSON.stringify(data))- }- },- async addFolder({ name, path }) {- const parentCollection = navigateToFolderWithIndexPath(- graphqlCollectionStore.value.state,- path.split("/").map((index) => parseInt(index))- )-- const parentCollectionBackendID = parentCollection?.id-- if (parentCollectionBackendID) {- const foldersLength = parentCollection.folders.length-- const res = await createGQLChildUserCollection(- name,- parentCollectionBackendID- )-- if (E.isRight(res)) {- const { id } = res.right.createGQLChildUserCollection-- if (foldersLength) {- parentCollection.folders[foldersLength - 1].id = id- removeDuplicateGraphqlCollectionOrFolder(- id,- `${path}/${foldersLength - 1}`- )- }- }- }- },- editFolder({ folder, path }) {- const folderBackendId = navigateToFolderWithIndexPath(- graphqlCollectionStore.value.state,- path.split("/").map((index) => parseInt(index))- )?.id-- const data = {- auth: folder.auth,- headers: folder.headers,- variables: folder.variables,- _ref_id: folder._ref_id ?? generateUniqueRefId("coll"),- }-- if (folderBackendId) {- updateUserCollection(folderBackendId, folder.name, JSON.stringify(data))- }- },- async removeFolder({ folderID }) {- if (folderID) {- await deleteUserCollection(folderID)- }- },- editRequest({ path, requestIndex, requestNew }) {- const request = navigateToFolderWithIndexPath(- graphqlCollectionStore.value.state,- path.split("/").map((index) => parseInt(index))- )?.requests[requestIndex]-- const requestBackendID = request?.id-- if (requestBackendID) {- editGQLUserRequest(- requestBackendID,- (requestNew as HoppRESTRequest).name,- JSON.stringify(requestNew)- )- }- },- async saveRequestAs({ path, request }) {- const folder = navigateToFolderWithIndexPath(- graphqlCollectionStore.value.state,- path.split("/").map((index) => parseInt(index))- )-- const parentCollectionBackendID = folder?.id-- if (parentCollectionBackendID) {- const newRequest = folder.requests[folder.requests.length - 1]-- const res = await createGQLUserRequest(- (request as HoppRESTRequest).name,- JSON.stringify(request),- parentCollectionBackendID- )-- if (E.isRight(res)) {- const { id } = res.right.createGQLUserRequest-- newRequest.id = id- removeDuplicateGraphqlCollectionOrFolder(- id,- `${path}/${folder.requests.length - 1}`,- "request"- )- }- }- },- async removeRequest({ requestID }) {- if (requestID) {- await deleteUserRequest(requestID)- }- },- moveRequest({ destinationPath, path, requestIndex }) {- moveOrReorderRequests(requestIndex, path, destinationPath, undefined, "GQL")- },-}--export const gqlCollectionsSyncer = getSyncInitFunction(- graphqlCollectionStore,- storeSyncDefinition,- () => settingsStore.value.syncCollections,- getSettingSubject("syncCollections")-)diff --git a/packages/hoppscotch-selfhost-desktop/src/platform/environments/environments.api.ts b/packages/hoppscotch-selfhost-desktop/src/platform/environments/environments.api.tsdeleted file mode 100644index a6ed2530f..000000000--- a/packages/hoppscotch-selfhost-desktop/src/platform/environments/environments.api.ts+++ /dev/null@@ -1,117 +0,0 @@-import {- runMutation,- runGQLQuery,- runGQLSubscription,-} from "@hoppscotch/common/helpers/backend/GQLClient"--import {- CreateUserEnvironmentDocument,- CreateUserEnvironmentMutation,- CreateUserEnvironmentMutationVariables,- UpdateUserEnvironmentMutation,- UpdateUserEnvironmentMutationVariables,- UpdateUserEnvironmentDocument,- DeleteUserEnvironmentMutation,- DeleteUserEnvironmentMutationVariables,- DeleteUserEnvironmentDocument,- ClearGlobalEnvironmentsMutation,- ClearGlobalEnvironmentsMutationVariables,- ClearGlobalEnvironmentsDocument,- CreateUserGlobalEnvironmentMutation,- CreateUserGlobalEnvironmentMutationVariables,- CreateUserGlobalEnvironmentDocument,- GetGlobalEnvironmentsDocument,- GetGlobalEnvironmentsQueryVariables,- GetGlobalEnvironmentsQuery,- GetUserEnvironmentsDocument,- UserEnvironmentCreatedDocument,- UserEnvironmentUpdatedDocument,- UserEnvironmentDeletedDocument,-} from "./../../api/generated/graphql"--import { Environment } from "@hoppscotch/data"--export const createUserEnvironment = (name: string, variables: string) =>- runMutation<- CreateUserEnvironmentMutation,- CreateUserEnvironmentMutationVariables,- ""- >(CreateUserEnvironmentDocument, {- name,- variables,- })()--export const updateUserEnvironment = (- id: string,- { name, variables }: Environment-) =>- runMutation<- UpdateUserEnvironmentMutation,- UpdateUserEnvironmentMutationVariables,- ""- >(UpdateUserEnvironmentDocument, {- id,- name,- variables: JSON.stringify(variables),- })--export const deleteUserEnvironment = (id: string) =>- runMutation<- DeleteUserEnvironmentMutation,- DeleteUserEnvironmentMutationVariables,- ""- >(DeleteUserEnvironmentDocument, {- id,- })--export const clearGlobalEnvironmentVariables = (id: string) =>- runMutation<- ClearGlobalEnvironmentsMutation,- ClearGlobalEnvironmentsMutationVariables,- ""- >(ClearGlobalEnvironmentsDocument, {- id,- })()--export const getUserEnvironments = () =>- runGQLQuery({- query: GetUserEnvironmentsDocument,- variables: {},- })--export const getGlobalEnvironments = () =>- runGQLQuery<- GetGlobalEnvironmentsQuery,- GetGlobalEnvironmentsQueryVariables,- "user_environment/user_env_does_not_exists"- >({- query: GetGlobalEnvironmentsDocument,- variables: {},- })--export const createUserGlobalEnvironment = (variables: string) =>- runMutation<- CreateUserGlobalEnvironmentMutation,- CreateUserGlobalEnvironmentMutationVariables,- ""- >(CreateUserGlobalEnvironmentDocument, {- variables,- })()--export const runUserEnvironmentCreatedSubscription = () =>- runGQLSubscription({- query: UserEnvironmentCreatedDocument,- variables: {},- })--export const runUserEnvironmentUpdatedSubscription = () =>- runGQLSubscription({- query: UserEnvironmentUpdatedDocument,- variables: {},- })--export const runUserEnvironmentDeletedSubscription = () =>- runGQLSubscription({- query: UserEnvironmentDeletedDocument,- variables: {},- })diff --git a/packages/hoppscotch-selfhost-desktop/src/platform/environments/environments.platform.ts b/packages/hoppscotch-selfhost-desktop/src/platform/environments/environments.platform.tsdeleted file mode 100644index e0a55a61a..000000000--- a/packages/hoppscotch-selfhost-desktop/src/platform/environments/environments.platform.ts+++ /dev/null@@ -1,240 +0,0 @@-import { authEvents$, def as platformAuth } from "@platform/auth"-import {- createEnvironment,- deleteEnvironment,- environmentsStore,- getLocalIndexByEnvironmentID,- replaceEnvironments,- setGlobalEnvID,- setGlobalEnvVariables,- updateEnvironment,-} from "@hoppscotch/common/newstore/environments"--import { EnvironmentsPlatformDef } from "@hoppscotch/common/src/platform/environments"-import { runGQLSubscription } from "@hoppscotch/common/helpers/backend/GQLClient"--import { environnmentsSyncer } from "@platform/environments/environments.sync"--import * as E from "fp-ts/Either"-import { runDispatchWithOutSyncing } from "@lib/sync"-import {- createUserGlobalEnvironment,- getGlobalEnvironments,- getUserEnvironments,- runUserEnvironmentCreatedSubscription,- runUserEnvironmentDeletedSubscription,- runUserEnvironmentUpdatedSubscription,-} from "@platform/environments/environments.api"-import { entityReference } from "verzod"-import {- Environment,- EnvironmentSchemaVersion,- GlobalEnvironment,-} from "@hoppscotch/data"--export function initEnvironmentsSync() {- const currentUser$ = platformAuth.getCurrentUserStream()-- environnmentsSyncer.startStoreSync()- environnmentsSyncer.setupSubscriptions(setupSubscriptions)-- currentUser$.subscribe(async (user) => {- if (user) {- await loadAllEnvironments()- }- })-- authEvents$.subscribe((event) => {- if (event.event == "login" || event.event == "token_refresh") {- environnmentsSyncer.startListeningToSubscriptions()- }-- if (event.event == "logout") {- environnmentsSyncer.stopListeningToSubscriptions()- }- })-}--export const def: EnvironmentsPlatformDef = {- initEnvironmentsSync,-}--function setupSubscriptions() {- let subs: ReturnType<typeof runGQLSubscription>[1][] = []-- const userEnvironmentCreatedSub = setupUserEnvironmentCreatedSubscription()- const userEnvironmentUpdatedSub = setupUserEnvironmentUpdatedSubscription()- const userEnvironmentDeletedSub = setupUserEnvironmentDeletedSubscription()-- subs = [- userEnvironmentCreatedSub,- userEnvironmentUpdatedSub,- userEnvironmentDeletedSub,- ]-- return () => {- subs.forEach((sub) => sub.unsubscribe())- }-}--async function loadUserEnvironments() {- const res = await getUserEnvironments()-- if (E.isRight(res)) {- const environments = res.right.me.environments-- if (environments.length > 0) {- runDispatchWithOutSyncing(() => {- const formatedEnvironments = environments.map(- (env) =>- <Environment>{- id: env.id,- name: env.name,- variables: JSON.parse(env.variables),- }- )-- replaceEnvironments(- formatedEnvironments.map((environment) => {- const parsedEnv = Environment.safeParse(environment)-- return parsedEnv.type === "ok"- ? parsedEnv.value- : {- ...environment,- v: EnvironmentSchemaVersion,- }- })- )- })- }- }-}--async function loadGlobalEnvironments() {- const res = await getGlobalEnvironments()-- if (E.isRight(res)) {- const globalEnv = res.right.me.globalEnvironments-- if (globalEnv) {- const globalEnvVariableEntries = JSON.parse(globalEnv.variables)-- const result = entityReference(GlobalEnvironment).safeParse(- globalEnvVariableEntries- )-- runDispatchWithOutSyncing(() => {- setGlobalEnvVariables(- result.success ? result.data : globalEnvVariableEntries- )- setGlobalEnvID(globalEnv.id)- })- }- } else if (res.left.error == "user_environment/user_env_does_not_exists") {- const res = await createUserGlobalEnvironment(JSON.stringify([]))-- if (E.isRight(res)) {- const backendId = res.right.createUserGlobalEnvironment.id- setGlobalEnvID(backendId)- }- }-}--async function loadAllEnvironments() {- await loadUserEnvironments()- await loadGlobalEnvironments()-}--function setupUserEnvironmentCreatedSubscription() {- const [userEnvironmentCreated$, userEnvironmentCreatedSub] =- runUserEnvironmentCreatedSubscription()-- userEnvironmentCreated$.subscribe((res) => {- if (E.isRight(res)) {- const { name, variables, id } = res.right.userEnvironmentCreated-- const isAlreadyExisting = environmentsStore.value.environments.some(- (env) => env.id == id- )-- if (name && !isAlreadyExisting) {- runDispatchWithOutSyncing(() => {- createEnvironment(name, JSON.parse(variables), id)- })- }- }- })-- return userEnvironmentCreatedSub-}--function setupUserEnvironmentUpdatedSubscription() {- const [userEnvironmentUpdated$, userEnvironmentUpdatedSub] =- runUserEnvironmentUpdatedSubscription()-- userEnvironmentUpdated$.subscribe((res) => {- if (E.isRight(res)) {- const { name, variables, id, isGlobal } = res.right.userEnvironmentUpdated-- // handle the case for global environments- if (isGlobal) {- runDispatchWithOutSyncing(() => {- setGlobalEnvVariables(JSON.parse(variables))- })- } else {- // handle the case for normal environments-- const localIndex = environmentsStore.value.environments.findIndex(- (env) => env.id == id- )-- if ((localIndex || localIndex == 0) && name) {- const environment = {- id,- name,- variables: JSON.parse(variables),- }-- const parsedEnvResult = Environment.safeParse(environment)-- const parsedEnv: Environment =- parsedEnvResult.type === "ok"- ? parsedEnvResult.value- : {- ...environment,- v: EnvironmentSchemaVersion,- }-- runDispatchWithOutSyncing(() => {- updateEnvironment(localIndex, parsedEnv)- })- }- }- }- })-- return userEnvironmentUpdatedSub-}--function setupUserEnvironmentDeletedSubscription() {- const [userEnvironmentDeleted$, userEnvironmentDeletedSub] =- runUserEnvironmentDeletedSubscription()-- userEnvironmentDeleted$.subscribe((res) => {- if (E.isRight(res)) {- const { id } = res.right.userEnvironmentDeleted-- // TODO: move getLocalIndexByID to a getter in the environmentsStore- const localIndex = getLocalIndexByEnvironmentID(id)-- if (localIndex || localIndex === 0) {- runDispatchWithOutSyncing(() => {- deleteEnvironment(localIndex)- })- }- }- })-- return userEnvironmentDeletedSub-}diff --git a/packages/hoppscotch-selfhost-desktop/src/platform/environments/environments.sync.ts b/packages/hoppscotch-selfhost-desktop/src/platform/environments/environments.sync.tsdeleted file mode 100644index 842f3de5f..000000000--- a/packages/hoppscotch-selfhost-desktop/src/platform/environments/environments.sync.ts+++ /dev/null@@ -1,121 +0,0 @@-import {- environmentsStore,- getGlobalVariableID,- removeDuplicateEntry,-} from "@hoppscotch/common/newstore/environments"-import {- getSettingSubject,- settingsStore,-} from "@hoppscotch/common/newstore/settings"--import { getSyncInitFunction, type StoreSyncDefinitionOf } from "../../lib/sync"--import * as E from "fp-ts/Either"--import { createMapper } from "../../lib/sync/mapper"-import {- clearGlobalEnvironmentVariables,- createUserEnvironment,- deleteUserEnvironment,- updateUserEnvironment,-} from "./environments.api"--export const environmentsMapper = createMapper<number, string>()-export const globalEnvironmentMapper = createMapper<number, string>()--export const storeSyncDefinition: StoreSyncDefinitionOf<- typeof environmentsStore-> = {- async createEnvironment({ name, variables }) {- const lastCreatedEnvIndex = environmentsStore.value.environments.length - 1-- const res = await createUserEnvironment(name, JSON.stringify(variables))-- if (E.isRight(res)) {- const id = res.right.createUserEnvironment.id- environmentsStore.value.environments[lastCreatedEnvIndex].id = id- removeDuplicateEntry(id)- }- },- async appendEnvironments({ envs }) {- const appendListLength = envs.length- let appendStart =- environmentsStore.value.environments.length - appendListLength - 1-- envs.forEach((env) => {- const envId = ++appendStart-- ;(async function () {- const res = await createUserEnvironment(- env.name,- JSON.stringify(env.variables)- )-- if (E.isRight(res)) {- const id = res.right.createUserEnvironment.id- environmentsStore.value.environments[envId].id = id-- removeDuplicateEntry(id)- }- })()- })- },- async duplicateEnvironment({ envIndex }) {- const environmentToDuplicate = environmentsStore.value.environments.find(- (_, index) => index === envIndex- )-- const lastCreatedEnvIndex = environmentsStore.value.environments.length - 1-- if (environmentToDuplicate) {- const res = await createUserEnvironment(- `${environmentToDuplicate?.name} - Duplicate`,- JSON.stringify(environmentToDuplicate?.variables)- )-- if (E.isRight(res)) {- const id = res.right.createUserEnvironment.id- environmentsStore.value.environments[lastCreatedEnvIndex].id = id-- removeDuplicateEntry(id)- }- }- },- updateEnvironment({ envIndex, updatedEnv }) {- const backendId = environmentsStore.value.environments[envIndex].id-- if (backendId) {- updateUserEnvironment(backendId, updatedEnv)()- }- },- async deleteEnvironment({ envID }) {- if (envID) {- await deleteUserEnvironment(envID)()- }- },- setGlobalVariables({ entries }) {- const backendId = getGlobalVariableID()- if (backendId) {- updateUserEnvironment(backendId, {- name: "",- variables: entries,- id: "",- v: 2,- })()- }- },- clearGlobalVariables() {- const backendId = getGlobalVariableID()-- if (backendId) {- clearGlobalEnvironmentVariables(backendId)- }- },-}--export const environnmentsSyncer = getSyncInitFunction(- environmentsStore,- storeSyncDefinition,- () => settingsStore.value.syncEnvironments,- getSettingSubject("syncEnvironments")-)diff --git a/packages/hoppscotch-selfhost-desktop/src/platform/history/history.api.ts b/packages/hoppscotch-selfhost-desktop/src/platform/history/history.api.tsdeleted file mode 100644index 0b8c46973..000000000--- a/packages/hoppscotch-selfhost-desktop/src/platform/history/history.api.ts+++ /dev/null@@ -1,127 +0,0 @@-import {- runMutation,- runGQLQuery,- runGQLSubscription,-} from "@hoppscotch/common/helpers/backend/GQLClient"--import {- CreateUserHistoryDocument,- CreateUserHistoryMutation,- CreateUserHistoryMutationVariables,- DeleteAllUserHistoryDocument,- DeleteAllUserHistoryMutation,- DeleteAllUserHistoryMutationVariables,- GetRestUserHistoryDocument,- GetRestUserHistoryQuery,- GetRestUserHistoryQueryVariables,- RemoveRequestFromHistoryDocument,- RemoveRequestFromHistoryMutation,- RemoveRequestFromHistoryMutationVariables,- ReqType,- ToggleHistoryStarStatusDocument,- ToggleHistoryStarStatusMutation,- ToggleHistoryStarStatusMutationVariables,- UserHistoryCreatedDocument,- UserHistoryDeletedDocument,- UserHistoryDeletedManyDocument,- UserHistoryUpdatedDocument,- IsUserHistoryEnabledQuery,- IsUserHistoryEnabledQueryVariables,- IsUserHistoryEnabledDocument,- UserHistoryStoreStatusChangedDocument,- UserHistoryAllDeletedDocument,-} from "../../api/generated/graphql"--export const getUserHistoryEntries = () =>- runGQLQuery<GetRestUserHistoryQuery, GetRestUserHistoryQueryVariables, "">({- query: GetRestUserHistoryDocument,- variables: {},- })--export const getUserHistoryStore = () =>- runGQLQuery<- IsUserHistoryEnabledQuery,- IsUserHistoryEnabledQueryVariables,- ""- >({- query: IsUserHistoryEnabledDocument,- variables: {},- })--export const createUserHistory = (- reqData: string,- resMetadata: string,- reqType: ReqType-) =>- runMutation<- CreateUserHistoryMutation,- CreateUserHistoryMutationVariables,- ""- >(CreateUserHistoryDocument, {- reqData,- resMetadata,- reqType,- })()--export const toggleHistoryStarStatus = (id: string) =>- runMutation<- ToggleHistoryStarStatusMutation,- ToggleHistoryStarStatusMutationVariables,- ""- >(ToggleHistoryStarStatusDocument, {- id,- })()--export const removeRequestFromHistory = (id: string) =>- runMutation<- RemoveRequestFromHistoryMutation,- RemoveRequestFromHistoryMutationVariables,- ""- >(RemoveRequestFromHistoryDocument, {- id,- })()--export const deleteAllUserHistory = (reqType: ReqType) =>- runMutation<- DeleteAllUserHistoryMutation,- DeleteAllUserHistoryMutationVariables,- ""- >(DeleteAllUserHistoryDocument, {- reqType,- })()--export const runUserHistoryCreatedSubscription = () =>- runGQLSubscription({- query: UserHistoryCreatedDocument,- variables: {},- })--export const runUserHistoryUpdatedSubscription = () =>- runGQLSubscription({- query: UserHistoryUpdatedDocument,- variables: {},- })--export const runUserHistoryDeletedSubscription = () =>- runGQLSubscription({- query: UserHistoryDeletedDocument,- variables: {},- })--export const runUserHistoryDeletedManySubscription = () =>- runGQLSubscription({- query: UserHistoryDeletedManyDocument,- variables: {},- })--export const runUserHistoryStoreStatusChangedSubscription = () =>- runGQLSubscription({- query: UserHistoryStoreStatusChangedDocument,- variables: {},- })--export const runUserHistoryAllDeletedSubscription = () =>- runGQLSubscription({- query: UserHistoryAllDeletedDocument,- variables: {},- })diff --git a/packages/hoppscotch-selfhost-desktop/src/platform/history/history.platform.ts b/packages/hoppscotch-selfhost-desktop/src/platform/history/history.platform.tsdeleted file mode 100644index 7189d6937..000000000--- a/packages/hoppscotch-selfhost-desktop/src/platform/history/history.platform.ts+++ /dev/null@@ -1,337 +0,0 @@-import { authEvents$, def as platformAuth } from "@platform/auth"-import {- restHistoryStore,- RESTHistoryEntry,- setRESTHistoryEntries,- addRESTHistoryEntry,- toggleRESTHistoryEntryStar,- deleteRESTHistoryEntry,- clearRESTHistory,- setGraphqlHistoryEntries,- GQLHistoryEntry,- addGraphqlHistoryEntry,- toggleGraphqlHistoryEntryStar,- graphqlHistoryStore,- deleteGraphqlHistoryEntry,- clearGraphqlHistory,-} from "@hoppscotch/common/newstore/history"-import { HistoryPlatformDef } from "@hoppscotch/common/platform/history"-import {- getUserHistoryEntries,- getUserHistoryStore,- runUserHistoryAllDeletedSubscription,- runUserHistoryCreatedSubscription,- runUserHistoryDeletedManySubscription,- runUserHistoryDeletedSubscription,- runUserHistoryStoreStatusChangedSubscription,- runUserHistoryUpdatedSubscription,-} from "./history.api"--import * as E from "fp-ts/Either"-import { restHistorySyncer, gqlHistorySyncer } from "./history.sync"-import { runGQLSubscription } from "@hoppscotch/common/helpers/backend/GQLClient"-import { runDispatchWithOutSyncing } from "@lib/sync"-import { ReqType } from "../../api/generated/graphql"-import { ref } from "vue"--function initHistorySync() {- const currentUser$ = platformAuth.getCurrentUserStream()-- restHistorySyncer.startStoreSync()- restHistorySyncer.setupSubscriptions(setupSubscriptions)-- gqlHistorySyncer.startStoreSync()-- getUserHistoryStatus()- loadHistoryEntries()-- currentUser$.subscribe(async (user) => {- getUserHistoryStatus()-- if (user) {- await loadHistoryEntries()- }- })-- authEvents$.subscribe((event) => {- if (event.event == "login" || event.event == "token_refresh") {- restHistorySyncer.startListeningToSubscriptions()- }-- if (event.event == "logout") {- restHistorySyncer.stopListeningToSubscriptions()- }- })-}--function setupSubscriptions() {- let subs: ReturnType<typeof runGQLSubscription>[1][] = []-- const userHistoryCreatedSub = setupUserHistoryCreatedSubscription()- const userHistoryUpdatedSub = setupUserHistoryUpdatedSubscription()- const userHistoryDeletedSub = setupUserHistoryDeletedSubscription()- const userHistoryDeletedManySub = setupUserHistoryDeletedManySubscription()- const userHistoryStoreStatusChangedSub =- setupUserHistoryStoreStatusChangedSubscription()- const userHistoryAllDeletedSub = setupUserHistoryAllDeletedSubscription()-- subs = [- userHistoryCreatedSub,- userHistoryUpdatedSub,- userHistoryDeletedSub,- userHistoryDeletedManySub,- userHistoryStoreStatusChangedSub,- userHistoryAllDeletedSub,- ]-- return () => {- subs.forEach((sub) => sub.unsubscribe())- }-}--async function loadHistoryEntries() {- const res = await getUserHistoryEntries()-- if (E.isRight(res)) {- const restEntries = res.right.me.RESTHistory- const gqlEntries = res.right.me.GQLHistory-- const restHistoryEntries: RESTHistoryEntry[] = restEntries.map((entry) => ({- v: 1,- request: JSON.parse(entry.request),- responseMeta: JSON.parse(entry.responseMetadata),- star: entry.isStarred,- updatedOn: new Date(entry.executedOn),- id: entry.id,- }))-- const gqlHistoryEntries: GQLHistoryEntry[] = gqlEntries.map((entry) => ({- v: 1,- request: JSON.parse(entry.request),- response: JSON.parse(entry.responseMetadata),- star: entry.isStarred,- updatedOn: new Date(entry.executedOn),- id: entry.id,- }))-- runDispatchWithOutSyncing(() => {- setRESTHistoryEntries(restHistoryEntries)- setGraphqlHistoryEntries(gqlHistoryEntries)- })- }-}--async function getUserHistoryStatus() {- const currentUser = platformAuth.getCurrentUser()-- if (!currentUser) {- isHistoryStoreEnabled.value = true- return- }-- isFetchingHistoryStoreStatus.value = true-- const res = await getUserHistoryStore()-- if (E.isLeft(res)) {- hasErrorFetchingHistoryStoreStatus.value = true- isFetchingHistoryStoreStatus.value = false- return- }-- isHistoryStoreEnabled.value =- res.right.isUserHistoryEnabled.value === "ENABLE"-- isFetchingHistoryStoreStatus.value = false-}--function setupUserHistoryCreatedSubscription() {- const [userHistoryCreated$, userHistoryCreatedSub] =- runUserHistoryCreatedSubscription()-- userHistoryCreated$.subscribe((res) => {- if (E.isRight(res)) {- const { id, reqType, request, responseMetadata, isStarred, executedOn } =- res.right.userHistoryCreated-- const hasAlreadyBeenAdded =- reqType == ReqType.Rest- ? restHistoryStore.value.state.some((entry) => entry.id == id)- : graphqlHistoryStore.value.state.some((entry) => entry.id == id)-- !hasAlreadyBeenAdded &&- runDispatchWithOutSyncing(() => {- reqType == ReqType.Rest- ? addRESTHistoryEntry({- v: 1,- id,- request: JSON.parse(request),- responseMeta: JSON.parse(responseMetadata),- star: isStarred,- updatedOn: new Date(executedOn),- })- : addGraphqlHistoryEntry({- v: 1,- id,- request: JSON.parse(request),- response: JSON.parse(responseMetadata),- star: isStarred,- updatedOn: new Date(executedOn),- })- })- }- })-- return userHistoryCreatedSub-}--// currently the updates are only for toggling the star-function setupUserHistoryUpdatedSubscription() {- const [userHistoryUpdated$, userHistoryUpdatedSub] =- runUserHistoryUpdatedSubscription()-- userHistoryUpdated$.subscribe((res) => {- if (E.isRight(res)) {- const { id, executedOn, isStarred, request, responseMetadata, reqType } =- res.right.userHistoryUpdated-- if (reqType == ReqType.Rest) {- const updatedRestEntryIndex = restHistoryStore.value.state.findIndex(- (entry) => entry.id == id- )-- if (updatedRestEntryIndex != -1) {- runDispatchWithOutSyncing(() => {- toggleRESTHistoryEntryStar({- v: 1,- id,- request: JSON.parse(request),- responseMeta: JSON.parse(responseMetadata),- // because the star will be toggled in the store, we need to pass the opposite value- star: !isStarred,- updatedOn: new Date(executedOn),- })- })- }- }-- if (reqType == ReqType.Gql) {- const updatedGQLEntryIndex = graphqlHistoryStore.value.state.findIndex(- (entry) => entry.id == id- )-- if (updatedGQLEntryIndex != -1) {- runDispatchWithOutSyncing(() => {- toggleGraphqlHistoryEntryStar({- v: 1,- id,- request: JSON.parse(request),- response: JSON.parse(responseMetadata),- // because the star will be toggled in the store, we need to pass the opposite value- star: !isStarred,- updatedOn: new Date(executedOn),- })- })- }- }- }- })-- return userHistoryUpdatedSub-}--function setupUserHistoryDeletedSubscription() {- const [userHistoryDeleted$, userHistoryDeletedSub] =- runUserHistoryDeletedSubscription()-- userHistoryDeleted$.subscribe((res) => {- if (E.isRight(res)) {- const { id, reqType } = res.right.userHistoryDeleted-- if (reqType == ReqType.Gql) {- const deletedEntry = graphqlHistoryStore.value.state.find(- (entry) => entry.id == id- )-- deletedEntry &&- runDispatchWithOutSyncing(() => {- deleteGraphqlHistoryEntry(deletedEntry)- })- }-- if (reqType == ReqType.Rest) {- const deletedEntry = restHistoryStore.value.state.find(- (entry) => entry.id == id- )-- deletedEntry &&- runDispatchWithOutSyncing(() => {- deleteRESTHistoryEntry(deletedEntry)- })- }- }- })-- return userHistoryDeletedSub-}--function setupUserHistoryDeletedManySubscription() {- const [userHistoryDeletedMany$, userHistoryDeletedManySub] =- runUserHistoryDeletedManySubscription()-- userHistoryDeletedMany$.subscribe((res) => {- if (E.isRight(res)) {- const { reqType } = res.right.userHistoryDeletedMany-- runDispatchWithOutSyncing(() => {- reqType == ReqType.Rest ? clearRESTHistory() : clearGraphqlHistory()- })- }- })-- return userHistoryDeletedManySub-}--function setupUserHistoryStoreStatusChangedSubscription() {- const [userHistoryStoreStatusChanged$, userHistoryStoreStatusChangedSub] =- runUserHistoryStoreStatusChangedSubscription()-- userHistoryStoreStatusChanged$.subscribe((res) => {- if (E.isRight(res)) {- const status = res.right.infraConfigUpdate == "ENABLE" ? true : false-- isHistoryStoreEnabled.value = status- }- })-- return userHistoryStoreStatusChangedSub-}--function setupUserHistoryAllDeletedSubscription() {- const [userHistoryAllDeleted$, userHistoryAllDeletedSub] =- runUserHistoryAllDeletedSubscription()-- userHistoryAllDeleted$.subscribe((res) => {- if (E.isRight(res)) {- runDispatchWithOutSyncing(() => {- clearRESTHistory()- clearGraphqlHistory()- })- }- })-- return userHistoryAllDeletedSub-}--export const isHistoryStoreEnabled = ref(false)-const isFetchingHistoryStoreStatus = ref(false)-const hasErrorFetchingHistoryStoreStatus = ref(false)--export const def: HistoryPlatformDef = {- initHistorySync,- requestHistoryStore: {- isHistoryStoreEnabled,- isFetchingHistoryStoreStatus,- hasErrorFetchingHistoryStoreStatus,- },-}diff --git a/packages/hoppscotch-selfhost-desktop/src/platform/history/history.sync.ts b/packages/hoppscotch-selfhost-desktop/src/platform/history/history.sync.tsdeleted file mode 100644index f018edb9b..000000000--- a/packages/hoppscotch-selfhost-desktop/src/platform/history/history.sync.ts+++ /dev/null@@ -1,100 +0,0 @@-import {- graphqlHistoryStore,- removeDuplicateRestHistoryEntry,- removeDuplicateGraphqlHistoryEntry,- restHistoryStore,-} from "@hoppscotch/common/newstore/history"-import {- getSettingSubject,- settingsStore,-} from "@hoppscotch/common/newstore/settings"--import { getSyncInitFunction, type StoreSyncDefinitionOf } from "../../lib/sync"--import * as E from "fp-ts/Either"--import {- createUserHistory,- deleteAllUserHistory,- removeRequestFromHistory,- toggleHistoryStarStatus,-} from "./history.api"-import { ReqType } from "../../api/generated/graphql"--export const restHistoryStoreSyncDefinition: StoreSyncDefinitionOf<- typeof restHistoryStore-> = {- async addEntry({ entry }) {- const res = await createUserHistory(- JSON.stringify(entry.request),- JSON.stringify(entry.responseMeta),- ReqType.Rest- )-- if (E.isRight(res)) {- entry.id = res.right.createUserHistory.id-- // preventing double insertion from here and subscription- removeDuplicateRestHistoryEntry(entry.id)- }- },- deleteEntry({ entry }) {- if (entry.id) {- removeRequestFromHistory(entry.id)- }- },- toggleStar({ entry }) {- if (entry.id) {- toggleHistoryStarStatus(entry.id)- }- },- clearHistory() {- deleteAllUserHistory(ReqType.Rest)- },-}--export const gqlHistoryStoreSyncDefinition: StoreSyncDefinitionOf<- typeof graphqlHistoryStore-> = {- async addEntry({ entry }) {- const res = await createUserHistory(- JSON.stringify(entry.request),- JSON.stringify(entry.response),- ReqType.Gql- )-- if (E.isRight(res)) {- entry.id = res.right.createUserHistory.id-- // preventing double insertion from here and subscription- removeDuplicateGraphqlHistoryEntry(entry.id)- }- },- deleteEntry({ entry }) {- if (entry.id) {- removeRequestFromHistory(entry.id)- }- },- toggleStar({ entry }) {- if (entry.id) {- toggleHistoryStarStatus(entry.id)- }- },- clearHistory() {- deleteAllUserHistory(ReqType.Gql)- },-}--export const restHistorySyncer = getSyncInitFunction(- restHistoryStore,- restHistoryStoreSyncDefinition,- () => settingsStore.value.syncHistory,- getSettingSubject("syncHistory")-)--export const gqlHistorySyncer = getSyncInitFunction(- graphqlHistoryStore,- gqlHistoryStoreSyncDefinition,- () => settingsStore.value.syncHistory,- getSettingSubject("syncHistory")-)diff --git a/packages/hoppscotch-selfhost-desktop/src/platform/interceptors/native/index.ts b/packages/hoppscotch-selfhost-desktop/src/platform/interceptors/native/index.tsdeleted file mode 100644index e2d271bec..000000000--- a/packages/hoppscotch-selfhost-desktop/src/platform/interceptors/native/index.ts+++ /dev/null@@ -1,499 +0,0 @@-import { CookieJarService } from "@hoppscotch/common/services/cookie-jar.service"-import { Interceptor, InterceptorError, RequestRunResult } from "@hoppscotch/common/services/interceptor.service"-import { Service } from "dioc"-import { cloneDeep } from "lodash-es"-import { invoke } from "@tauri-apps/api/tauri"-import * as E from "fp-ts/Either"-import SettingsNativeInterceptor from "../../../components/settings/NativeInterceptor.vue"-import { ref, watch } from "vue"-import { z } from "zod"-import { PersistenceService } from "@hoppscotch/common/services/persistence"-import { CACertStore, ClientCertsStore, ClientCertStore, StoredClientCert } from "./persisted-data"---type KeyValuePair = {- key: string,- value: string-}--type FormDataValue =- | { Text: string }- | {- File: {- filename: string,- data: number[],- mime: string- }- }--type FormDataEntry = {- key: string,- value: FormDataValue-}--type BodyDef =- | { Text: string }- | { URLEncoded: KeyValuePair[] }- | { FormData: FormDataEntry[] }--type ClientCertDef =- | {- PEMCert: {- certificate_pem: number[],- key_pem: number[]- },- }- | {- PFXCert: {- certificate_pfx: number[],- password: string- }- }--// TODO: Figure out a way to autogen this from the interceptor definition on the Rust side-export type RequestDef = {- req_id: number-- method: string- endpoint: string-- parameters: KeyValuePair[]- headers: KeyValuePair[]-- body: BodyDef | null,-- validate_certs: boolean,- root_cert_bundle_files: number[],- client_cert: ClientCertDef | null-- proxy?: {- url: string- }-}--type RunRequestResponse = {- status: number,- status_text: string,- headers: KeyValuePair[],- data: number[],-- time_start_ms: number,- time_end_ms: number-}--// HACK: To solve the AxiosRequestConfig being different between @hoppscotch/common-// and the axios present in this package-type AxiosRequestConfig = Parameters<Interceptor["runRequest"]>[0]--export const preProcessRequest = (- req: AxiosRequestConfig-): AxiosRequestConfig => {- const reqClone = cloneDeep(req)-- // If the parameters are URLSearchParams, inject them to URL instead- // This prevents issues of marshalling the URLSearchParams to the proxy- if (reqClone.params instanceof URLSearchParams) {- try {- const url = new URL(reqClone.url ?? "")-- for (const [key, value] of reqClone.params.entries()) {- url.searchParams.append(key, value)- }-- reqClone.url = url.toString()- } catch (e) {- // making this a non-empty block, so we can make the linter happy.- // we should probably use, allowEmptyCatch, or take the time to do something with the caught errors :)- }-- reqClone.params = {}- }-- return reqClone-}--async function processBody(axiosReq: AxiosRequestConfig): Promise<BodyDef | null> {- if (!axiosReq.data) return null-- if (typeof axiosReq.data === "string") {- return { Text: axiosReq.data }- }-- if (axiosReq.data instanceof FormData) {- const entries: FormDataEntry[] = []-- for (const [key, value] of axiosReq.data.entries()) {- if (typeof value === "string") {- entries.push({- key,- value: { Text: value }- })- } else {- const mime = value.type !== "" ? value.type : "application/octet-stream"-- entries.push({- key,- value: {- File: {- filename: value.name,- data: Array.from(new Uint8Array(await value.arrayBuffer())),- mime,- }- }- })- }- }-- return { FormData: entries }- }-- throw new Error("Native Process Body: Unhandled Axios Request Configuration")-}--function getURLDomain(url: string): string | null {- try {- return new URL(url).host- } catch (_) {- return null- }-}--function convertClientCertToDefCert(cert: ClientCertificateEntry): ClientCertDef {- if ("PEMCert" in cert.cert) {- return {- PEMCert: {- certificate_pem: Array.from(cert.cert.PEMCert.certificate_pem),- key_pem: Array.from(cert.cert.PEMCert.key_pem)- }- }- } else {- return {- PFXCert: {- certificate_pfx: Array.from(cert.cert.PFXCert.certificate_pfx),- password: cert.cert.PFXCert.password- }- }- }-}--async function convertToRequestDef(- axiosReq: AxiosRequestConfig,- reqID: number,- caCertificates: CACertificateEntry[],- clientCertificates: Map<string, ClientCertificateEntry>,- validateCerts: boolean,- proxyInfo: RequestDef["proxy"]-): Promise<RequestDef> {- const clientCertDomain = getURLDomain(axiosReq.url!)-- const clientCert = clientCertDomain ? clientCertificates.get(clientCertDomain) : null-- return {- req_id: reqID,- method: axiosReq.method ?? "GET",- endpoint: axiosReq.url ?? "",- headers: Object.entries(axiosReq.headers ?? {})- .filter(- ([key, value]) =>- !(- key.toLowerCase() === "content-type" &&- value.toLowerCase() === "multipart/form-data"- )- ) // Removing header, because this header will be set by relay.- .map(([key, value]): KeyValuePair => ({ key, value })),- parameters: Object.entries(axiosReq.params as Record<string, string> ?? {})- .map(([key, value]): KeyValuePair => ({ key, value })),- body: await processBody(axiosReq),- root_cert_bundle_files: caCertificates.map((cert) => Array.from(cert.certificate)),- validate_certs: validateCerts,- client_cert: clientCert ? convertClientCertToDefCert(clientCert) : null,- proxy: proxyInfo- }-}--export const CACertificateEntry = z.object({- filename: z.string().min(1),- enabled: z.boolean(),- certificate: z.instanceof(Uint8Array)-})--export type CACertificateEntry = z.infer<typeof CACertificateEntry>--export const ClientCertificateEntry = z.object({- enabled: z.boolean(),- domain: z.string().trim().min(1),- cert: z.union([- z.object({- PEMCert: z.object({- certificate_filename: z.string().min(1),- certificate_pem: z.instanceof(Uint8Array),-- key_filename: z.string().min(1),- key_pem: z.instanceof(Uint8Array),- })- }),- z.object({- PFXCert: z.object({- certificate_filename: z.string().min(1),- certificate_pfx: z.instanceof(Uint8Array),-- password: z.string()- })- })- ])-})--export type ClientCertificateEntry = z.infer<typeof ClientCertificateEntry>--const CA_STORE_PERSIST_KEY = "native_interceptor_ca_store"-const CLIENT_CERTS_PERSIST_KEY = "native_interceptor_client_certs_store"-const VALIDATE_SSL_KEY = "native_interceptor_validate_ssl"-const PROXY_INFO_PERSIST_KEY = "native_interceptor_proxy_info"--export class NativeInterceptorService extends Service implements Interceptor {- public static readonly ID = "NATIVE_INTERCEPTOR_SERVICE"-- public interceptorID = "native"-- public name = () => "Native"-- public selectable = { type: "selectable" as const }-- public supportsCookies = true- public supportsDigestAuth = true- public supportsBinaryContentType = false-- private cookieJarService = this.bind(CookieJarService)- private persistenceService: PersistenceService = this.bind(PersistenceService)-- private reqIDTicker = 0-- public settingsPageEntry = {- entryTitle: () => "Native", // TODO: i18n this- component: SettingsNativeInterceptor- }-- public caCertificates = ref<CACertificateEntry[]>([])-- public clientCertificates = ref<Map<string, ClientCertificateEntry>>(new Map())- public validateCerts = ref(true)- public proxyInfo = ref<RequestDef["proxy"]>(undefined)-- override onServiceInit() {- // Load SSL Validation- const persistedValidateSSL: unknown = JSON.parse(- this.persistenceService.getLocalConfig(VALIDATE_SSL_KEY) ?? "null"- )-- if (typeof persistedValidateSSL === "boolean") {- this.validateCerts.value = persistedValidateSSL- }-- const persistedProxyInfo = this.persistenceService.getLocalConfig(- PROXY_INFO_PERSIST_KEY- )-- if (persistedProxyInfo && persistedProxyInfo !== "null") {- try {- const proxyInfo = JSON.parse(persistedProxyInfo)- this.proxyInfo.value = proxyInfo- } catch (e) {}- }-- watch(this.validateCerts, () => {- this.persistenceService.setLocalConfig(VALIDATE_SSL_KEY, JSON.stringify(this.validateCerts.value))- })-- // Load and setup writes for CA Store- const persistedCAStoreData = JSON.parse(- this.persistenceService.getLocalConfig(CA_STORE_PERSIST_KEY) ?? "null"- )-- const caStoreDataParseResult = CACertStore.safeParse(persistedCAStoreData)-- if (caStoreDataParseResult.type === "ok") {- this.caCertificates.value = caStoreDataParseResult.value.certs- .map((entry) => ({ ...entry, certificate: new Uint8Array(entry.certificate) }))- }-- watch(this.caCertificates, (certs) => {- const storableValue: CACertStore = {- v: 1,- certs: certs- .map((el) => ({ ...el, certificate: Array.from(el.certificate) }))- }-- this.persistenceService.setLocalConfig(CA_STORE_PERSIST_KEY, JSON.stringify(storableValue))- })--- // Load and setup writes for Client Certs Store- const persistedClientCertStoreData = JSON.parse(- this.persistenceService.getLocalConfig(CLIENT_CERTS_PERSIST_KEY) ?? "null"- )-- const clientCertStoreDataParseResult = ClientCertsStore.safeParse(persistedClientCertStoreData)-- if (clientCertStoreDataParseResult.type === "ok") {- this.clientCertificates.value = new Map(- Object.entries(- clientCertStoreDataParseResult.value.clientCerts- )- .map(([domain, cert]) => {- if ("PFXCert" in cert.cert) {- const newCert = <ClientCertificateEntry>{- ...cert,- cert: {- PFXCert: {- certificate_pfx: new Uint8Array(cert.cert.PFXCert.certificate_pfx),- certificate_filename: cert.cert.PFXCert.certificate_filename,-- password: cert.cert.PFXCert.password- }- }- }-- return [domain, newCert]- } else {- const newCert = <ClientCertificateEntry>{- ...cert,- cert: {- PEMCert: {- certificate_pem: new Uint8Array(cert.cert.PEMCert.certificate_pem),- certificate_filename: cert.cert.PEMCert.certificate_filename,-- key_pem: new Uint8Array(cert.cert.PEMCert.key_pem),- key_filename: cert.cert.PEMCert.key_filename- }- }- }-- return [domain, newCert]- }- })- )- }-- watch(this.clientCertificates, (certs) => {- const storableValue: ClientCertStore = {- v: 1,- clientCerts: Object.fromEntries(- Array.from(certs.entries())- .map(([domain, cert]) => {- if ("PFXCert" in cert.cert) {- const newCert = <StoredClientCert>{- ...cert,- cert: {- PFXCert: {- certificate_pfx: Array.from(cert.cert.PFXCert.certificate_pfx),- certificate_filename: cert.cert.PFXCert.certificate_filename,-- password: cert.cert.PFXCert.password- }- }- }-- return [domain, newCert]- } else {- const newCert = <StoredClientCert>{- ...cert,- cert: {- PEMCert: {- certificate_pem: Array.from(cert.cert.PEMCert.certificate_pem),- certificate_filename: cert.cert.PEMCert.certificate_filename,-- key_pem: Array.from(cert.cert.PEMCert.key_pem),- key_filename: cert.cert.PEMCert.key_filename- }- }- }-- return [domain, newCert]- }- })- )- }--- this.persistenceService.setLocalConfig(CLIENT_CERTS_PERSIST_KEY, JSON.stringify(storableValue))- })-- watch(this.proxyInfo, (newProxyInfo) => {- this.persistenceService.setLocalConfig(- PROXY_INFO_PERSIST_KEY,- JSON.stringify(newProxyInfo) ?? "null"- )- })- }-- public runRequest(req: AxiosRequestConfig): RequestRunResult<InterceptorError> {- const processedReq = preProcessRequest(req)-- const relevantCookies = this.cookieJarService.getCookiesForURL(- new URL(processedReq.url!)- )-- if (relevantCookies.length > 0) {- processedReq.headers["Cookie"] = relevantCookies- .map((cookie) => `${cookie.name!}=${cookie.value!}`)- .join(";")- }-- const reqID = this.reqIDTicker++;-- return {- cancel: () => {- invoke("plugin:hopp_native_interceptor|cancel_request", { reqId: reqID });- },- response: (async () => {- const requestDef = await convertToRequestDef(- processedReq,- reqID,- this.caCertificates.value,- this.clientCertificates.value,- this.validateCerts.value,- this.proxyInfo.value- )-- try {-- const response: RunRequestResponse = await invoke(- "plugin:hopp_native_interceptor|run_request",- { req: requestDef }- )-- return E.right({- headers: Object.fromEntries(- response.headers.map(({ key, value }) => [key, value])- ),- status: response.status,- statusText: response.status_text,- data: new Uint8Array(response.data).buffer,- config: {- timeData: {- startTime: response.time_start_ms,- endTime: response.time_end_ms- }- },- additional: {- multiHeaders: response.headers- }- })- } catch (e) {-- if (typeof e === "object" && (e as any)["RequestCancelled"]) {- return E.left("cancellation" as const)- }-- // TODO: More in-depth error messages- return E.left(<InterceptorError>{- humanMessage: {- heading: (t) => t("error.network_fail"),- description: (t) => t("helpers.network_fail"),- }- })- }- })()- }- }-}diff --git a/packages/hoppscotch-selfhost-desktop/src/platform/interceptors/native/persisted-data.ts b/packages/hoppscotch-selfhost-desktop/src/platform/interceptors/native/persisted-data.tsdeleted file mode 100644index bea7234b0..000000000--- a/packages/hoppscotch-selfhost-desktop/src/platform/interceptors/native/persisted-data.ts+++ /dev/null@@ -1,85 +0,0 @@-import { z } from "zod"-import { defineVersion, createVersionedEntity, InferredEntity } from "verzod"--const Uint8 = z.number()- .int()- .gte(0)- .lte(255);--export const StoredCACert = z.object({- filename: z.string().min(1),- enabled: z.boolean(),- certificate: z.array(Uint8)-})--const caCertStore_v1 = defineVersion({- initial: true,- schema: z.object({- v: z.literal(1),- certs: z.array(StoredCACert)- })-})--export const CACertStore = createVersionedEntity({- latestVersion: 1,- versionMap: {- 1: caCertStore_v1- },- getVersion(data) {- const result = caCertStore_v1.schema.safeParse(data)-- return result.success ? result.data.v : null- }-})--export type CACertStore = InferredEntity<typeof CACertStore>----export const StoredClientCert = z.object({- enabled: z.boolean(),- domain: z.string().trim().min(1),- cert: z.union([- z.object({- PEMCert: z.object({- certificate_filename: z.string().min(1),- certificate_pem: z.array(Uint8),-- key_filename: z.string().min(1),- key_pem: z.array(Uint8)- })- }),- z.object({- PFXCert: z.object({- certificate_filename: z.string().min(1),- certificate_pfx: z.array(Uint8),-- password: z.string()- })- })- ])-})--export type StoredClientCert = z.infer<typeof StoredClientCert>--const clientCertsStore_v1 = defineVersion({- initial: true,- schema: z.object({- v: z.literal(1),- clientCerts: z.record(StoredClientCert)- })-})--export const ClientCertsStore = createVersionedEntity({- latestVersion: 1,- versionMap: {- 1: clientCertsStore_v1- },- getVersion(data) {- const result = clientCertsStore_v1.schema.safeParse(data)-- return result.success ? result.data.v : null- }-})--export type ClientCertStore = InferredEntity<typeof ClientCertsStore>diff --git a/packages/hoppscotch-selfhost-desktop/src/platform/io.ts b/packages/hoppscotch-selfhost-desktop/src/platform/io.tsdeleted file mode 100644index 1488e1924..000000000--- a/packages/hoppscotch-selfhost-desktop/src/platform/io.ts+++ /dev/null@@ -1,28 +0,0 @@-import { IOPlatformDef } from "@hoppscotch/common/platform/io"-import { save } from "@tauri-apps/api/dialog"-import { open } from "@tauri-apps/api/shell"-import { writeBinaryFile, writeTextFile } from "@tauri-apps/api/fs"--export const ioDef: IOPlatformDef = {- async saveFileWithDialog(opts) {- const path = await save({- filters: opts.filters,- defaultPath: opts.suggestedFilename,- })-- if (path === null) {- return { type: "cancelled" }- }-- if (typeof opts.data === "string") {- await writeTextFile(path, opts.data)- } else {- await writeBinaryFile(path, opts.data)- }-- return { type: "saved", path }- },- openExternalLink(url) {- return open(url)- },-}diff --git a/packages/hoppscotch-selfhost-desktop/src/platform/settings/settings.api.ts b/packages/hoppscotch-selfhost-desktop/src/platform/settings/settings.api.tsdeleted file mode 100644index 198701a56..000000000--- a/packages/hoppscotch-selfhost-desktop/src/platform/settings/settings.api.ts+++ /dev/null@@ -1,51 +0,0 @@-import {- runGQLQuery,- runGQLSubscription,- runMutation,-} from "@hoppscotch/common/helpers/backend/GQLClient"-import {- CreateUserSettingsDocument,- CreateUserSettingsMutation,- CreateUserSettingsMutationVariables,- GetUserSettingsDocument,- GetUserSettingsQuery,- GetUserSettingsQueryVariables,- UpdateUserSettingsDocument,- UpdateUserSettingsMutation,- UpdateUserSettingsMutationVariables,- UserSettingsUpdatedDocument,-} from "../../api/generated/graphql"--export const getUserSettings = () =>- runGQLQuery<- GetUserSettingsQuery,- GetUserSettingsQueryVariables,- "user_settings/not_found"- >({- query: GetUserSettingsDocument,- variables: {},- })--export const createUserSettings = (properties: string) =>- runMutation<- CreateUserSettingsMutation,- CreateUserSettingsMutationVariables,- ""- >(CreateUserSettingsDocument, {- properties,- })()--export const updateUserSettings = (properties: string) =>- runMutation<- UpdateUserSettingsMutation,- UpdateUserSettingsMutationVariables,- ""- >(UpdateUserSettingsDocument, {- properties,- })()--export const runUserSettingsUpdatedSubscription = () =>- runGQLSubscription({- query: UserSettingsUpdatedDocument,- variables: {},- })diff --git a/packages/hoppscotch-selfhost-desktop/src/platform/settings/settings.platform.ts b/packages/hoppscotch-selfhost-desktop/src/platform/settings/settings.platform.tsdeleted file mode 100644index a8aca2e72..000000000--- a/packages/hoppscotch-selfhost-desktop/src/platform/settings/settings.platform.ts+++ /dev/null@@ -1,88 +0,0 @@-import { SettingsPlatformDef } from "@hoppscotch/common/platform/settings"-import { settingsSyncer } from "./settings.sync"-import { authEvents$, def as platformAuth } from "@platform/auth"-import {- createUserSettings,- getUserSettings,- runUserSettingsUpdatedSubscription,-} from "./settings.api"-import * as E from "fp-ts/Either"-import { runGQLSubscription } from "@hoppscotch/common/helpers/backend/GQLClient"-import {- bulkApplySettings,- getDefaultSettings,-} from "@hoppscotch/common/newstore/settings"-import { runDispatchWithOutSyncing } from "@lib/sync"--function initSettingsSync() {- const currentUser$ = platformAuth.getCurrentUserStream()- settingsSyncer.startStoreSync()- settingsSyncer.setupSubscriptions(setupSubscriptions)-- // load the settings-- loadUserSettings()-- currentUser$.subscribe(async (user) => {- if (user) {- // load the settings- loadUserSettings()- }- })-- authEvents$.subscribe((event) => {- if (event.event == "login" || event.event == "token_refresh") {- settingsSyncer.startListeningToSubscriptions()- }-- if (event.event == "logout") {- settingsSyncer.stopListeningToSubscriptions()- }- })-}--async function loadUserSettings() {- const res = await getUserSettings()-- // create user settings if it doesn't exist- E.isLeft(res) &&- res.left.error == "user_settings/not_found" &&- (await createUserSettings(JSON.stringify(getDefaultSettings())))-- if (E.isRight(res)) {- runDispatchWithOutSyncing(() => {- bulkApplySettings(JSON.parse(res.right.me.settings.properties))- })- }-}--function setupSubscriptions() {- let subs: ReturnType<typeof runGQLSubscription>[1][] = []-- const userSettingsUpdatedSub = setupUserSettingsUpdatedSubscription()-- subs = [userSettingsUpdatedSub]-- return () => {- subs.forEach((sub) => sub.unsubscribe())- }-}--function setupUserSettingsUpdatedSubscription() {- const [userSettingsUpdated$, userSettingsUpdatedSub] =- runUserSettingsUpdatedSubscription()-- userSettingsUpdated$.subscribe((res) => {- if (E.isRight(res)) {- runDispatchWithOutSyncing(() => {- bulkApplySettings(JSON.parse(res.right.userSettingsUpdated.properties))- })- }- })-- return userSettingsUpdatedSub-}--export const def: SettingsPlatformDef = {- initSettingsSync,-}diff --git a/packages/hoppscotch-selfhost-desktop/src/platform/settings/settings.sync.ts b/packages/hoppscotch-selfhost-desktop/src/platform/settings/settings.sync.tsdeleted file mode 100644index ae5543bf9..000000000--- a/packages/hoppscotch-selfhost-desktop/src/platform/settings/settings.sync.ts+++ /dev/null@@ -1,27 +0,0 @@-import { settingsStore } from "@hoppscotch/common/newstore/settings"-import { getSyncInitFunction, type StoreSyncDefinitionOf } from "../../lib/sync"--import { updateUserSettings } from "./settings.api"--export const settingsSyncDefinition: StoreSyncDefinitionOf<- typeof settingsStore-> = {- toggleSetting() {- updateUserSettings(JSON.stringify(settingsStore.value))- },- toggleNestedSetting() {- updateUserSettings(JSON.stringify(settingsStore.value))- },- applySetting() {- updateUserSettings(JSON.stringify(settingsStore.value))- },- applyNestedSetting() {- updateUserSettings(JSON.stringify(settingsStore.value))- },-}--export const settingsSyncer = getSyncInitFunction(- settingsStore,- settingsSyncDefinition,- () => true-)diff --git a/packages/hoppscotch-selfhost-desktop/src/vite-env.d.ts b/packages/hoppscotch-selfhost-desktop/src/vite-env.d.tsdeleted file mode 100644index fc812394b..000000000--- a/packages/hoppscotch-selfhost-desktop/src/vite-env.d.ts+++ /dev/null@@ -1,7 +0,0 @@-/// <reference types="vite/client" />--declare module "*.vue" {- import type { DefineComponent } from "vue";- const component: DefineComponent<{}, {}, any>;- export default component;-}diff --git a/packages/hoppscotch-selfhost-desktop/tailwind.config.ts b/packages/hoppscotch-selfhost-desktop/tailwind.config.tsdeleted file mode 100644index eea6fe87d..000000000--- a/packages/hoppscotch-selfhost-desktop/tailwind.config.ts+++ /dev/null@@ -1,30 +0,0 @@-import { Config } from "tailwindcss"-import preset from "@hoppscotch/ui/ui-preset"--export default {- content: ["../hoppscotch-common/src/**/*.{vue,html}"],- presets: [preset],- theme: {- 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)",- propertiesPrimaryStickyFold: "var(--properties-primary-sticky-fold)",- },- },- },-} satisfies Configdiff --git a/packages/hoppscotch-selfhost-desktop/tsconfig.json b/packages/hoppscotch-selfhost-desktop/tsconfig.jsondeleted file mode 100644index 969f1e100..000000000--- a/packages/hoppscotch-selfhost-desktop/tsconfig.json+++ /dev/null@@ -1,25 +0,0 @@-{- "compilerOptions": {- "target": "ESNext",- "useDefineForClassFields": true,- "module": "ESNext",- "moduleResolution": "Node",- "strict": true,- "jsx": "preserve",- "resolveJsonModule": true,- "isolatedModules": true,- "esModuleInterop": true,- "lib": ["ESNext", "DOM"],- "skipLibCheck": true,- "noEmit": true,- "paths": {- "@hoppscotch/common": [ "../hoppscotch-common/src/index.ts" ],- "@hoppscotch/common/*": [ "../hoppscotch-common/src/*" ],- "@platform/*": ["./src/platform/*"],- "@lib/*": ["./src/lib/*"],- }-- },- "include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue"],- "references": [{ "path": "./tsconfig.node.json" }]-}diff --git a/packages/hoppscotch-selfhost-desktop/tsconfig.node.json b/packages/hoppscotch-selfhost-desktop/tsconfig.node.jsondeleted file mode 100644index 28e5a5e9b..000000000--- a/packages/hoppscotch-selfhost-desktop/tsconfig.node.json+++ /dev/null@@ -1,9 +0,0 @@-{- "compilerOptions": {- "composite": true,- "module": "ESNext",- "moduleResolution": "Node",- "allowSyntheticDefaultImports": true- },- "include": ["vite.config.ts", "meta.ts"]-}diff --git a/packages/hoppscotch-selfhost-desktop/vite.config.ts b/packages/hoppscotch-selfhost-desktop/vite.config.tsdeleted file mode 100644index e259a0e9d..000000000--- a/packages/hoppscotch-selfhost-desktop/vite.config.ts+++ /dev/null@@ -1,204 +0,0 @@-import { defineConfig, loadEnv, normalizePath } from "vite"-import { APP_INFO, META_TAGS } from "./meta"-import { viteStaticCopy as StaticCopy } from "vite-plugin-static-copy"-import generateSitemap from "vite-plugin-pages-sitemap"-import HtmlConfig from "vite-plugin-html-config"-import Vue from "@vitejs/plugin-vue"-import VueI18n from "@intlify/unplugin-vue-i18n/vite"-import Components from "unplugin-vue-components/vite"-import Icons from "unplugin-icons/vite"-import Inspect from "vite-plugin-inspect"-import { VitePWA } from "vite-plugin-pwa"-import Pages from "vite-plugin-pages"-import Layouts from "vite-plugin-vue-layouts"-import IconResolver from "unplugin-icons/resolver"-import { FileSystemIconLoader } from "unplugin-icons/loaders"-import * as path from "path"-import legacy from "@vitejs/plugin-legacy"-import Unfonts from "unplugin-fonts/vite"--const ENV = loadEnv("development", path.resolve(__dirname, "../../"))--export default defineConfig({- envDir: path.resolve(__dirname, "../../"),- // TODO: Migrate @hoppscotch/data to full ESM- define: {- // For 'util' polyfill required by dep of '@apidevtools/swagger-parser'- "process.env": {},- },- server: {- port: 3000,- },- preview: {- port: 3000,- },- publicDir: path.resolve(__dirname, "../hoppscotch-common/public"),- build: {- sourcemap: true,- emptyOutDir: true,- rollupOptions: {- maxParallelFileOps: 2,- },- },- resolve: {- alias: {- // TODO: Maybe leave ~ only for individual apps and not use on common- "~": path.resolve(__dirname, "../hoppscotch-common/src"),- "@hoppscotch/common": "@hoppscotch/common/src",- "@composables": path.resolve(- __dirname,- "../hoppscotch-common/src/composables"- ),- "@modules": path.resolve(__dirname, "../hoppscotch-common/src/modules"),- "@components": path.resolve(- __dirname,- "../hoppscotch-common/src/components"- ),- "@helpers": path.resolve(__dirname, "../hoppscotch-common/src/helpers"),- "@functional": path.resolve(- __dirname,- "../hoppscotch-common/src/helpers/functional"- ),- "@workers": path.resolve(__dirname, "../hoppscotch-common/src/workers"),- "@platform": path.resolve(__dirname, "./src/platform"),- "@lib": path.resolve(__dirname, "./src/lib"),- stream: "stream-browserify",- util: "util",- querystring: "qs",- },- dedupe: ["vue"],- },- plugins: [- Inspect(), // go to url -> /__inspect- HtmlConfig({- metas: META_TAGS(ENV),- }),- Vue(),- Pages({- routeStyle: "nuxt",- dirs: "../hoppscotch-common/src/pages",- importMode: "async",- onRoutesGenerated(routes) {- return (generateSitemap as any as typeof generateSitemap)({- routes,- nuxtStyle: true,- allowRobots: true,- dest: ".sitemap-gen",- hostname: ENV.VITE_BASE_URL,- })- },- }),- StaticCopy({- targets: [- {- src: normalizePath(path.resolve(__dirname, "./.sitemap-gen/*")),- dest: normalizePath(path.resolve(__dirname, "./dist")),- },- ],- }),- Layouts({- layoutsDirs: "../hoppscotch-common/src/layouts",- defaultLayout: "default",- }),- VueI18n({- runtimeOnly: false,- compositionOnly: true,- include: [path.resolve(__dirname, "locales")],- }),- Components({- dts: "../hoppscotch-common/src/components.d.ts",- dirs: ["../hoppscotch-common/src/components", "./src/components"],- directoryAsNamespace: true,- resolvers: [- IconResolver({- prefix: "icon",- customCollections: ["hopp", "auth", "brands"],- }),- (compName: string) => {- if (compName.startsWith("Hopp"))- return { name: compName, from: "@hoppscotch/ui" }- else return undefined- },- ],- types: [- {- from: "vue-tippy",- names: ["Tippy"],- },- ],- }),- Icons({- compiler: "vue3",- customCollections: {- hopp: FileSystemIconLoader("../hoppscotch-common/assets/icons"),- auth: FileSystemIconLoader("../hoppscotch-common/assets/icons/auth"),- brands: FileSystemIconLoader(- "../hoppscotch-common/assets/icons/brands"- ),- },- }),- VitePWA({- manifest: {- name: APP_INFO.name,- short_name: APP_INFO.name,- description: APP_INFO.shortDescription,- start_url: "/?source=pwa",- background_color: APP_INFO.app.background,- theme_color: APP_INFO.app.background,- icons: [- {- src: "/icon.png",- sizes: "512x512",- type: "image/png",- purpose: "any maskable",- },- {- src: "/logo.svg",- sizes: "48x48 72x72 96x96 128x128 256x256 512x512",- type: "image/svg+xml",- purpose: "any maskable",- },- ],- },- registerType: "prompt",- workbox: {- cleanupOutdatedCaches: true,- maximumFileSizeToCacheInBytes: 4194304,- navigateFallbackDenylist: [- /robots.txt/,- /sitemap.xml/,- /discord/,- /telegram/,- /beta/,- /careers/,- /newsletter/,- /twitter/,- /github/,- /announcements/,- ],- },- }),- Unfonts({- fontsource: {- families: [- {- name: "Inter Variable",- variables: ["variable-full"],- },- {- name: "Material Symbols Rounded Variable",- variables: ["variable-full"],- },- {- name: "Roboto Mono Variable",- variables: ["variable-full"],- },- ],- },- }),- legacy({- modernPolyfills: ["es.string.replace-all"],- renderLegacyChunks: false,- }),- ],-})diff --git a/packages/hoppscotch-selfhost-web/.eslintrc.cjs b/packages/hoppscotch-selfhost-web/.eslintrc.cjsindex 82a291dd5..2e62b8b6b 100644--- a/packages/hoppscotch-selfhost-web/.eslintrc.cjs+++ b/packages/hoppscotch-selfhost-web/.eslintrc.cjs@@ -39,8 +39,14 @@ module.exports = {"vue/no-side-effects-in-computed-properties": "off","import/no-named-as-default": "off","import/no-named-as-default-member": "off",- "@typescript-eslint/no-unused-vars":+ "@typescript-eslint/no-unused-vars": [process.env.HOPP_LINT_FOR_PROD === "true" ? "error" : "warn",+ {+ "argsIgnorePattern": "^_",+ "varsIgnorePattern": "^_",+ "caughtErrorsIgnorePattern": "^_"+ }+ ],"@typescript-eslint/no-non-null-assertion": "off","@typescript-eslint/no-explicit-any": "off","import/default": "off",diff --git a/packages/hoppscotch-selfhost-web/package.json b/packages/hoppscotch-selfhost-web/package.jsonindex 1dc6833fa..d1f7a5f75 100644--- a/packages/hoppscotch-selfhost-web/package.json+++ b/packages/hoppscotch-selfhost-web/package.json@@ -29,6 +29,7 @@"@hoppscotch/common": "workspace:^","@hoppscotch/data": "workspace:^","@hoppscotch/kernel": "workspace:^",+ "@hoppscotch/plugin-appload": "github:CuriousCorrelation/tauri-plugin-appload#e05861959938b57479a1a81fa796735ebbd08c7c","@hoppscotch/ui": "0.2.5","@import-meta-env/unplugin": "0.6.3","@tauri-apps/api": "2.1.1",diff --git a/packages/hoppscotch-selfhost-web/postcss.config.cjs b/packages/hoppscotch-selfhost-web/postcss.config.cjsindex 177031b7a..e305dd92a 100644--- a/packages/hoppscotch-selfhost-web/postcss.config.cjs+++ b/packages/hoppscotch-selfhost-web/postcss.config.cjs@@ -3,6 +3,6 @@ const config = {tailwindcss: {},autoprefixer: {},},-}+};-module.exports = config+module.exports = config;diff --git a/packages/hoppscotch-selfhost-web/src/components/Login.vue b/packages/hoppscotch-selfhost-web/src/components/Login.vueindex b9b7c60dc..626838210 100644--- a/packages/hoppscotch-selfhost-web/src/components/Login.vue+++ b/packages/hoppscotch-selfhost-web/src/components/Login.vue@@ -44,7 +44,7 @@ import { copyToClipboard } from "@hoppscotch/common/helpers/utils/clipboard"import { refAutoReset } from "@vueuse/core"import { PersistenceService } from "@hoppscotch/common/services/persistence"import { useService } from "dioc/vue"-import { setInitialUser } from "@platform/auth/desktop"+import { setInitialUser } from "@app/platform/auth/desktop"import { z } from "zod"const persistenceService = useService(PersistenceService)diff --git a/packages/hoppscotch-selfhost-web/src/kernel/index.ts b/packages/hoppscotch-selfhost-web/src/kernel/index.tsnew file mode 100644index 000000000..add8a56fd--- /dev/null+++ b/packages/hoppscotch-selfhost-web/src/kernel/index.ts@@ -0,0 +1,13 @@+import { KernelAPI } from "@hoppscotch/kernel"++export { Io } from "./io"+export { Relay } from "./relay"+export { Store } from "./store"++export const getModule = <K extends keyof KernelAPI>(+ name: K+): NonNullable<KernelAPI[K]> => {+ const kernel = window.__KERNEL__+ if (!kernel?.[name]) throw new Error(`Kernel ${name} not initialized`)+ return kernel[name]+}diff --git a/packages/hoppscotch-selfhost-web/src/kernel/io.ts b/packages/hoppscotch-selfhost-web/src/kernel/io.tsnew file mode 100644index 000000000..bf55cf8d2--- /dev/null+++ b/packages/hoppscotch-selfhost-web/src/kernel/io.ts@@ -0,0 +1,34 @@+import type {+ SaveFileWithDialogOptions,+ OpenExternalLinkOptions,+ SaveFileResponse,+ OpenExternalLinkResponse,+ EventCallback,+ UnlistenFn,+} from "@hoppscotch/kernel"+import { getModule } from "."++export const Io = (() => {+ const module = () => getModule("io")++ return {+ saveFileWithDialog: (+ opts: SaveFileWithDialogOptions+ ): Promise<SaveFileResponse> => module().saveFileWithDialog(opts),++ openExternalLink: (+ opts: OpenExternalLinkOptions+ ): Promise<OpenExternalLinkResponse> => module().openExternalLink(opts),++ listen: <T>(+ event: string,+ handler: EventCallback<T>+ ): Promise<UnlistenFn> => module().listen(event, handler),++ once: <T>(event: string, handler: EventCallback<T>): Promise<UnlistenFn> =>+ module().once(event, handler),++ emit: (event: string, payload?: unknown): Promise<void> =>+ module().emit(event, payload),+ } as const+})()diff --git a/packages/hoppscotch-selfhost-web/src/kernel/relay.ts b/packages/hoppscotch-selfhost-web/src/kernel/relay.tsnew file mode 100644index 000000000..46a8d4ea4--- /dev/null+++ b/packages/hoppscotch-selfhost-web/src/kernel/relay.ts@@ -0,0 +1,26 @@+import type {+ RelayRequest,+ RelayRequestEvents,+ RelayError,+ RelayResponse,+ RelayEventEmitter,+} from "@hoppscotch/kernel"+import * as E from "fp-ts/Either"+import { getModule } from "."++export const Relay = (() => {+ const module = () => getModule("relay")++ return {+ capabilities: () => module().capabilities,+ canHandle: (request: RelayRequest): E.Either<RelayError, true> =>+ module().canHandle(request),+ execute: (+ request: RelayRequest+ ): {+ cancel: () => Promise<void>+ emitter: RelayEventEmitter<RelayRequestEvents>+ response: Promise<E.Either<RelayError, RelayResponse>>+ } => module().execute(request),+ } as const+})()diff --git a/packages/hoppscotch-selfhost-web/src/kernel/store.ts b/packages/hoppscotch-selfhost-web/src/kernel/store.tsnew file mode 100644index 000000000..a8b8372ed--- /dev/null+++ b/packages/hoppscotch-selfhost-web/src/kernel/store.ts@@ -0,0 +1,114 @@+import type {+ StorageOptions,+ StoreError,+ StoreEvents,+ StoreEventEmitter,+} from "@hoppscotch/kernel"+import * as E from "fp-ts/Either"+import { getModule } from "."+import { invoke } from "@tauri-apps/api/core"+import { join } from "@tauri-apps/api/path"++const STORE_PATH = "hoppscotch-unified.store"++export const getConfigDir = async (): Promise<string> => {+ return await invoke<string>("get_config_dir")+}++export const getBackupDir = async (): Promise<string> => {+ return await invoke<string>("get_backup_dir")+}++export const getLatestDir = async (): Promise<string> => {+ return await invoke<string>("get_latest_dir")+}++export const getStoreDir = async (): Promise<string> => {+ return await invoke<string>("get_store_dir")+}++export const getInstanceDir = async (): Promise<string> => {+ return await invoke<string>("get_instance_dir")+}++const getStorePath = async (): Promise<string> => {+ try {+ const instanceDir = await getInstanceDir()+ return await join(instanceDir, STORE_PATH)+ } catch (error) {+ console.error("Failed to get instance directory:", error)+ return "hoppscotch-unified.store"+ }+}++export const Store = (() => {+ const module = () => getModule("store")++ return {+ capabilities: () => module().capabilities,++ init: async () => {+ const storePath = await getStorePath()+ return module().init(storePath)+ },++ set: async (+ namespace: string,+ key: string,+ value: unknown,+ options?: StorageOptions+ ): Promise<E.Either<StoreError, void>> => {+ const storePath = await getStorePath()+ return module().set(storePath, namespace, key, value, options)+ },++ get: async <T>(+ namespace: string,+ key: string+ ): Promise<E.Either<StoreError, T | undefined>> => {+ const storePath = await getStorePath()+ return module().get<T>(storePath, namespace, key)+ },++ remove: async (+ namespace: string,+ key: string+ ): Promise<E.Either<StoreError, boolean>> => {+ const storePath = await getStorePath()+ return module().remove(storePath, namespace, key)+ },++ clear: async (namespace?: string): Promise<E.Either<StoreError, void>> => {+ const storePath = await getStorePath()+ return module().clear(storePath, namespace)+ },++ has: async (+ namespace: string,+ key: string+ ): Promise<E.Either<StoreError, boolean>> => {+ const storePath = await getStorePath()+ return module().has(storePath, namespace, key)+ },++ listNamespaces: async (): Promise<E.Either<StoreError, string[]>> => {+ const storePath = await getStorePath()+ return module().listNamespaces(storePath)+ },++ listKeys: async (+ namespace: string+ ): Promise<E.Either<StoreError, string[]>> => {+ const storePath = await getStorePath()+ return module().listKeys(storePath, namespace)+ },++ watch: async (+ namespace: string,+ key: string+ ): Promise<StoreEventEmitter<StoreEvents>> => {+ const storePath = await getStorePath()+ return module().watch(storePath, namespace, key)+ },+ } as const+})()diff --git a/packages/hoppscotch-selfhost-web/src/main.ts b/packages/hoppscotch-selfhost-web/src/main.tsindex 4d00d2374..3cff9fe25 100644--- a/packages/hoppscotch-selfhost-web/src/main.ts+++ b/packages/hoppscotch-selfhost-web/src/main.ts@@ -1,132 +1,188 @@-import { ref } from "vue"-import { listen, emit } from "@tauri-apps/api/event"-+import { nextTick, ref, watch } from "vue"+import { emit, listen } from "@tauri-apps/api/event"import { createHoppApp } from "@hoppscotch/common"--import { def as webAuth } from "@platform/auth/web"-import { def as webEnvironments } from "@platform/environments/web"-import { def as webCollections } from "@platform/collections/web"-import { def as webSettings } from "@platform/settings/web"-import { def as webHistory } from "@platform/history/web"--import { def as desktopAuth } from "@platform/auth/desktop"-import { def as desktopEnvironments } from "@platform/environments/desktop"-import { def as desktopCollections } from "@platform/collections/desktop"-import { def as desktopSettings } from "@platform/settings/desktop"-import { def as desktopHistory } from "@platform/history/desktop"+import { useSettingStatic } from "@hoppscotch/common/composables/settings"+import { getKernelMode } from "@hoppscotch/kernel"import { def as stdBackendDef } from "@hoppscotch/common/platform/std/backend"+// Platform imports+import { def as webAuth } from "@app/platform/auth/web"+import { def as webEnvironments } from "@app/platform/environments/web"+import { def as webCollections } from "@app/platform/collections/web"+import { def as webSettings } from "@app/platform/settings/web"+import { def as webHistory } from "@app/platform/history/web"++import { def as desktopAuth } from "@app/platform/auth/desktop"+import { def as desktopEnvironments } from "@app/platform/environments/desktop"+import { def as desktopCollections } from "@app/platform/collections/desktop"+import { def as desktopSettings } from "@app/platform/settings/desktop"+import { def as desktopHistory } from "@app/platform/history/desktop"++// Std platform+import { def as webInstance } from "@app/platform/instance/web"+import { def as desktopInstance } from "@app/platform/instance/desktop"import { stdFooterItems } from "@hoppscotch/common/platform/std/ui/footerItem"import { stdSupportOptionItems } from "@hoppscotch/common/platform/std/ui/supportOptionsItem"-import { InfraPlatform } from "@platform/infra/infra.platform"-import { getKernelMode } from "@hoppscotch/kernel"+import { InfraPlatform } from "@app/platform/infra/infra.platform"import { kernelIO } from "@hoppscotch/common/platform/std/kernel-io"+import { HeaderDownloadableLinksService } from "@app/services/headerDownloadableLinks.service"+// Std interceptorsimport { NativeKernelInterceptorService } from "@hoppscotch/common/platform/std/kernel-interceptors/native"import { AgentKernelInterceptorService } from "@hoppscotch/common/platform/std/kernel-interceptors/agent"import { ProxyKernelInterceptorService } from "@hoppscotch/common/platform/std/kernel-interceptors/proxy"import { ExtensionKernelInterceptorService } from "@hoppscotch/common/platform/std/kernel-interceptors/extension"import { BrowserKernelInterceptorService } from "@hoppscotch/common/platform/std/kernel-interceptors/browser"-import { HeaderDownloadableLinksService } from "./services/headerDownloadableLinks.service"--type Platform = "web" | "desktop"--const createPlatformDef = <Web, Desktop>(web: Web, desktop: Desktop) => ({- web,- desktop,- get: (platform: Platform) => (platform === "web" ? web : desktop),-})--const webInterceptors = [- BrowserKernelInterceptorService,- ProxyKernelInterceptorService,- AgentKernelInterceptorService,- ExtensionKernelInterceptorService,-]-const desktopInterceptors = [- NativeKernelInterceptorService,- ProxyKernelInterceptorService,-]--const platformDefs = {- auth: createPlatformDef(webAuth, desktopAuth),- environments: createPlatformDef(webEnvironments, desktopEnvironments),- collections: createPlatformDef(webCollections, desktopCollections),- settings: createPlatformDef(webSettings, desktopSettings),- history: createPlatformDef(webHistory, desktopHistory),- interceptors: createPlatformDef(webInterceptors, desktopInterceptors),++const PLATFORM_CONFIG = {+ web: {+ auth: webAuth,+ environments: webEnvironments,+ collections: webCollections,+ settings: webSettings,+ history: webHistory,+ instance: webInstance,+ interceptors: [+ BrowserKernelInterceptorService,+ ProxyKernelInterceptorService,+ AgentKernelInterceptorService,+ ExtensionKernelInterceptorService,+ ],+ defaultInterceptor: "browser",+ menuItems: stdFooterItems,+ supportItems: stdSupportOptionItems,+ cookiesEnabled: false,+ },++ desktop: {+ auth: desktopAuth,+ environments: desktopEnvironments,+ collections: desktopCollections,+ settings: desktopSettings,+ history: desktopHistory,+ instance: desktopInstance,+ interceptors: [+ NativeKernelInterceptorService,+ ProxyKernelInterceptorService,+ ],+ defaultInterceptor: "native",+ menuItems: stdFooterItems,+ supportItems: stdSupportOptionItems,+ cookiesEnabled: true,+ },}-const kernelMode = getKernelMode()const headerPaddingLeft = ref("0px")const headerPaddingTop = ref("0px")-const getInterceptors = (mode: Platform) =>- platformDefs.interceptors.get(mode).map((service) => ({- type: "service" as const,- service,- }))+function setupDesktopUI() {+ headerPaddingTop.value = "0px"+ headerPaddingLeft.value = "80px"++ listen("will-enter-fullscreen", () => {+ headerPaddingTop.value = "0px"+ headerPaddingLeft.value = "0px"+ })++ listen("will-exit-fullscreen", () => {+ headerPaddingTop.value = "0px"+ headerPaddingLeft.value = "80px"+ })++ window.addEventListener(+ "keydown",+ (e) => {+ if (e.key === "Backspace" && !isTextInput(e.target)) {+ e.preventDefault()+ }+ },+ true+ )++ watch(+ useSettingStatic("BG_COLOR")[0],+ async () => {+ await nextTick()+ await emit("hopp-bg-changed")+ },+ { immediate: true }+ )+}++function isTextInput(target: EventTarget | null): boolean {+ if (target instanceof HTMLInputElement) {+ const textTypes = [+ "text",+ "email",+ "password",+ "number",+ "search",+ "tel",+ "url",+ "textarea",+ ]+ return textTypes.includes(target.type)+ }++ return (+ target instanceof HTMLTextAreaElement ||+ (target instanceof HTMLElement && target.isContentEditable)+ )+}async function initApp() {+ const platform = getKernelMode()+ const config = PLATFORM_CONFIG[platform]++ if (platform === "desktop") {+ setupDesktopUI()+ }+await createHoppApp("#app", {ui: {- additionalFooterMenuItems: stdFooterItems,- additionalSupportOptionsMenuItems: stdSupportOptionItems,+ additionalFooterMenuItems: config.menuItems,+ additionalSupportOptionsMenuItems: config.supportItems,appHeader: {paddingLeft: headerPaddingLeft,paddingTop: headerPaddingTop,},},- auth: platformDefs.auth.get(kernelMode),++ auth: config.auth,kernelIO,- instance: {- instanceType: "vendored",- displayConfig: {- displayName: "Hoppscotch",- description: "On-Prem",- version: "25.11.0",- connectingMessage: "Connecting to On-prem",- connectedMessage: "Connected to On-prem",- },- },+ instance: config.instance,sync: {- environments: platformDefs.environments.get(kernelMode),- collections: platformDefs.collections.get(kernelMode),- settings: platformDefs.settings.get(kernelMode),- history: platformDefs.history.get(kernelMode),+ environments: config.environments,+ collections: config.collections,+ settings: config.settings,+ history: config.history,},+kernelInterceptors: {- default: kernelMode === "desktop" ? "native" : "browser",- interceptors: getInterceptors(kernelMode),+ default: config.defaultInterceptor,+ interceptors: config.interceptors.map((service) => ({+ type: "service" as const,+ service,+ })),},+platformFeatureFlags: {exportAsGIST: false,hasTelemetry: false,- cookiesEnabled: kernelMode === "desktop",+ cookiesEnabled: config.cookiesEnabled,promptAsUsingCookies: false,},limits: {collectionImportSizeLimit: 50,},+infra: InfraPlatform,backend: stdBackendDef,additionalLinks: [HeaderDownloadableLinksService],+ addedServices: [],})- if (kernelMode === "desktop") {- listen("will-enter-fullscreen", () => {- headerPaddingTop.value = "0px"- headerPaddingLeft.value = "0px"- })-- listen("will-exit-fullscreen", () => {- headerPaddingTop.value = "0px"- headerPaddingLeft.value = "80px"- })-- headerPaddingTop.value = "0px"- headerPaddingLeft.value = "80px"-+ if (platform === "desktop") {const ALLOWED_DROP_SELECTORS = ['[draggable="true"]',".draggable-content",@@ -336,24 +392,4 @@ async function initApp() {}}-function isTextInput(target: EventTarget | null) {- if (target instanceof HTMLInputElement) {- return (- target.type === "text" ||- target.type === "email" ||- target.type === "password" ||- target.type === "number" ||- target.type === "search" ||- target.type === "tel" ||- target.type === "url" ||- target.type === "textarea"- )- } else if (target instanceof HTMLTextAreaElement) {- return true- } else if (target instanceof HTMLElement && target.isContentEditable) {- return true- }- return false-}-initApp().catch(console.error)diff --git a/packages/hoppscotch-selfhost-web/src/platform/auth/desktop/api.ts b/packages/hoppscotch-selfhost-web/src/platform/auth/desktop/api.tsindex 9767f75c1..1291d2a60 100644--- a/packages/hoppscotch-selfhost-web/src/platform/auth/desktop/api.ts+++ b/packages/hoppscotch-selfhost-web/src/platform/auth/desktop/api.ts@@ -1,4 +1,4 @@-import { runMutation } from "@hoppscotch/common/helpers/backend/GQLClient"+import { runMutation } from "@helpers/backend/GQLClient"import axios from "axios"import * as E from "fp-ts/Either"import { z } from "zod"@@ -6,7 +6,7 @@ import {UpdateUserDisplayNameDocument,UpdateUserDisplayNameMutation,UpdateUserDisplayNameMutationVariables,-} from "@api/generated/graphql"+} from "@app/api/generated/graphql"const expectedAllowedProvidersSchema = z.object({// currently supported values are "GOOGLE", "GITHUB", "EMAIL", "MICROSOFT", "SAML"diff --git a/packages/hoppscotch-selfhost-web/src/platform/auth/desktop/index.ts b/packages/hoppscotch-selfhost-web/src/platform/auth/desktop/index.tsindex 9a866a38f..9b4ae45fc 100644--- a/packages/hoppscotch-selfhost-web/src/platform/auth/desktop/index.ts+++ b/packages/hoppscotch-selfhost-web/src/platform/auth/desktop/index.ts@@ -13,7 +13,7 @@ import { AuthEvent, AuthPlatformDef } from "@hoppscotch/common/platform/auth"import { PersistenceService } from "@hoppscotch/common/services/persistence"import { KernelInterceptorService } from "@hoppscotch/common/services/kernel-interceptor.service"-import Login from "@platform-components/Login.vue"+import Login from "@app/components/Login.vue"import { getAllowedAuthProviders, updateUserDisplayName } from "./api"export type HoppUserWithAuthDetail = {diff --git a/packages/hoppscotch-selfhost-web/src/platform/auth/web/api.ts b/packages/hoppscotch-selfhost-web/src/platform/auth/web/api.tsindex 9767f75c1..1291d2a60 100644--- a/packages/hoppscotch-selfhost-web/src/platform/auth/web/api.ts+++ b/packages/hoppscotch-selfhost-web/src/platform/auth/web/api.ts@@ -1,4 +1,4 @@-import { runMutation } from "@hoppscotch/common/helpers/backend/GQLClient"+import { runMutation } from "@helpers/backend/GQLClient"import axios from "axios"import * as E from "fp-ts/Either"import { z } from "zod"@@ -6,7 +6,7 @@ import {UpdateUserDisplayNameDocument,UpdateUserDisplayNameMutation,UpdateUserDisplayNameMutationVariables,-} from "@api/generated/graphql"+} from "@app/api/generated/graphql"const expectedAllowedProvidersSchema = z.object({// currently supported values are "GOOGLE", "GITHUB", "EMAIL", "MICROSOFT", "SAML"diff --git a/packages/hoppscotch-selfhost-web/src/platform/collections/desktop/api.ts b/packages/hoppscotch-selfhost-web/src/platform/collections/desktop/api.tsindex 359f76203..e06cbf512 100644--- a/packages/hoppscotch-selfhost-web/src/platform/collections/desktop/api.ts+++ b/packages/hoppscotch-selfhost-web/src/platform/collections/desktop/api.ts@@ -2,7 +2,7 @@ import {runGQLQuery,runGQLSubscription,runMutation,-} from "@hoppscotch/common/helpers/backend/GQLClient"+} from "@helpers/backend/GQLClient"import {CreateGqlChildUserCollectionDocument,CreateGqlChildUserCollectionMutation,@@ -81,7 +81,7 @@ import {UserRequestMovedDocument,UserRequestUpdatedDocument,UserRootCollectionsSortedDocument,-} from "@api/generated/graphql"+} from "@app/api/generated/graphql"export const createRESTRootUserCollection = (title: string, data?: string) =>runMutation<diff --git a/packages/hoppscotch-selfhost-web/src/platform/collections/desktop/gqlCollections.sync.ts b/packages/hoppscotch-selfhost-web/src/platform/collections/desktop/gqlCollections.sync.tsindex 18ef157c2..ccfa7533a 100644--- a/packages/hoppscotch-selfhost-web/src/platform/collections/desktop/gqlCollections.sync.ts+++ b/packages/hoppscotch-selfhost-web/src/platform/collections/desktop/gqlCollections.sync.ts@@ -14,9 +14,10 @@ import {HoppRESTRequest,} from "@hoppscotch/data"-import { getSyncInitFunction, type StoreSyncDefinitionOf } from "@lib/sync"+import { getSyncInitFunction, type StoreSyncDefinitionOf } from "@app/lib/sync"++import { createMapper } from "@app/lib/sync/mapper"-import { createMapper } from "@lib/sync/mapper"import {createGQLChildUserCollection,createGQLRootUserCollection,@@ -30,7 +31,7 @@ import {} from "./api"import * as E from "fp-ts/Either"-import { ReqType } from "@api/generated/graphql"+import { ReqType } from "@app/api/generated/graphql"import { moveOrReorderRequests } from "./sync"// gqlCollectionsMapper uses the collectionPath as the local identifierdiff --git a/packages/hoppscotch-selfhost-web/src/platform/collections/desktop/index.ts b/packages/hoppscotch-selfhost-web/src/platform/collections/desktop/index.tsindex a1aeaa615..918995405 100644--- a/packages/hoppscotch-selfhost-web/src/platform/collections/desktop/index.ts+++ b/packages/hoppscotch-selfhost-web/src/platform/collections/desktop/index.ts@@ -1,6 +1,6 @@import { CollectionsPlatformDef } from "@hoppscotch/common/platform/collections"-import { runDispatchWithOutSyncing } from "@lib/sync"-import { authEvents$, def as platformAuth } from "@platform/auth/desktop"+import { authEvents$, def as platformAuth } from "@app/platform/auth/desktop"+import { runDispatchWithOutSyncing } from "@app/lib/sync"import {exportUserCollectionsToJSON,@@ -23,7 +23,7 @@ import {ReqType,UserCollectionDuplicatedData,UserRequest,-} from "@api/generated/graphql"+} from "@app/api/generated/graphql"import { runGQLSubscription } from "@hoppscotch/common/helpers/backend/GQLClient"import {addGraphqlCollection,diff --git a/packages/hoppscotch-selfhost-web/src/platform/collections/desktop/sync.ts b/packages/hoppscotch-selfhost-web/src/platform/collections/desktop/sync.tsindex 0477dbbf2..32fbdc6d2 100644--- a/packages/hoppscotch-selfhost-web/src/platform/collections/desktop/sync.ts+++ b/packages/hoppscotch-selfhost-web/src/platform/collections/desktop/sync.ts@@ -15,8 +15,8 @@ import {HoppRESTRequest,} from "@hoppscotch/data"-import { getSyncInitFunction, StoreSyncDefinitionOf } from "@lib/sync"-import { createMapper } from "@lib/sync/mapper"+import { getSyncInitFunction, StoreSyncDefinitionOf } from "@app/lib/sync"+import { createMapper } from "@app/lib/sync/mapper"import {createRESTChildUserCollection,createRESTRootUserCollection,@@ -34,7 +34,7 @@ import {} from "./api"import * as E from "fp-ts/Either"-import { ReqType, SortOptions } from "@api/generated/graphql"+import { ReqType, SortOptions } from "@app/api/generated/graphql"// restCollectionsMapper uses the collectionPath as the local identifier// Helper function to transform HoppCollection to backend formatdiff --git a/packages/hoppscotch-selfhost-web/src/platform/collections/web/api.ts b/packages/hoppscotch-selfhost-web/src/platform/collections/web/api.tsindex 359f76203..e06cbf512 100644--- a/packages/hoppscotch-selfhost-web/src/platform/collections/web/api.ts+++ b/packages/hoppscotch-selfhost-web/src/platform/collections/web/api.ts@@ -2,7 +2,7 @@ import {runGQLQuery,runGQLSubscription,runMutation,-} from "@hoppscotch/common/helpers/backend/GQLClient"+} from "@helpers/backend/GQLClient"import {CreateGqlChildUserCollectionDocument,CreateGqlChildUserCollectionMutation,@@ -81,7 +81,7 @@ import {UserRequestMovedDocument,UserRequestUpdatedDocument,UserRootCollectionsSortedDocument,-} from "@api/generated/graphql"+} from "@app/api/generated/graphql"export const createRESTRootUserCollection = (title: string, data?: string) =>runMutation<diff --git a/packages/hoppscotch-selfhost-web/src/platform/collections/web/gqlCollections.sync.ts b/packages/hoppscotch-selfhost-web/src/platform/collections/web/gqlCollections.sync.tsindex 6b34d0daa..5f50988d4 100644--- a/packages/hoppscotch-selfhost-web/src/platform/collections/web/gqlCollections.sync.ts+++ b/packages/hoppscotch-selfhost-web/src/platform/collections/web/gqlCollections.sync.ts@@ -14,9 +14,10 @@ import {HoppRESTRequest,} from "@hoppscotch/data"-import { getSyncInitFunction, type StoreSyncDefinitionOf } from "@lib/sync"+import { getSyncInitFunction, type StoreSyncDefinitionOf } from "@app/lib/sync"++import { createMapper } from "@app/lib/sync/mapper"-import { createMapper } from "@lib/sync/mapper"import {createGQLChildUserCollection,createGQLRootUserCollection,@@ -30,7 +31,7 @@ import {} from "./api"import * as E from "fp-ts/Either"-import { ReqType } from "@api/generated/graphql"+import { ReqType } from "@app/api/generated/graphql"import { moveOrReorderRequests } from "./sync"// gqlCollectionsMapper uses the collectionPath as the local identifierdiff --git a/packages/hoppscotch-selfhost-web/src/platform/collections/web/index.ts b/packages/hoppscotch-selfhost-web/src/platform/collections/web/index.tsindex 5ce79bce4..938764a04 100644--- a/packages/hoppscotch-selfhost-web/src/platform/collections/web/index.ts+++ b/packages/hoppscotch-selfhost-web/src/platform/collections/web/index.ts@@ -1,6 +1,6 @@import { CollectionsPlatformDef } from "@hoppscotch/common/platform/collections"-import { runDispatchWithOutSyncing } from "@lib/sync"-import { authEvents$, def as platformAuth } from "@platform/auth/web"+import { authEvents$, def as platformAuth } from "@app/platform/auth/web"+import { runDispatchWithOutSyncing } from "@app/lib/sync"import {exportUserCollectionsToJSON,@@ -23,7 +23,7 @@ import {ReqType,UserCollectionDuplicatedData,UserRequest,-} from "@api/generated/graphql"+} from "@app/api/generated/graphql"import { runGQLSubscription } from "@hoppscotch/common/helpers/backend/GQLClient"import {addGraphqlCollection,diff --git a/packages/hoppscotch-selfhost-web/src/platform/collections/web/sync.ts b/packages/hoppscotch-selfhost-web/src/platform/collections/web/sync.tsindex a02fff16f..a552258af 100644--- a/packages/hoppscotch-selfhost-web/src/platform/collections/web/sync.ts+++ b/packages/hoppscotch-selfhost-web/src/platform/collections/web/sync.ts@@ -15,8 +15,8 @@ import {HoppRESTRequest,} from "@hoppscotch/data"-import { getSyncInitFunction, StoreSyncDefinitionOf } from "@lib/sync"-import { createMapper } from "@lib/sync/mapper"+import { getSyncInitFunction, StoreSyncDefinitionOf } from "@app/lib/sync"+import { createMapper } from "@app/lib/sync/mapper"import {createRESTChildUserCollection,createRESTRootUserCollection,@@ -34,7 +34,7 @@ import {} from "./api"import * as E from "fp-ts/Either"-import { ReqType, SortOptions } from "@api/generated/graphql"+import { ReqType, SortOptions } from "@app/api/generated/graphql"// restCollectionsMapper uses the collectionPath as the local identifier// Helper function to transform HoppCollection to backend formatdiff --git a/packages/hoppscotch-selfhost-web/src/platform/environments/desktop/api.ts b/packages/hoppscotch-selfhost-web/src/platform/environments/desktop/api.tsindex db056265a..2ce32bed6 100644--- a/packages/hoppscotch-selfhost-web/src/platform/environments/desktop/api.ts+++ b/packages/hoppscotch-selfhost-web/src/platform/environments/desktop/api.ts@@ -2,7 +2,7 @@ import {runMutation,runGQLQuery,runGQLSubscription,-} from "@hoppscotch/common/helpers/backend/GQLClient"+} from "@helpers/backend/GQLClient"import {CreateUserEnvironmentDocument,@@ -27,7 +27,7 @@ import {UserEnvironmentCreatedDocument,UserEnvironmentUpdatedDocument,UserEnvironmentDeletedDocument,-} from "@api/generated/graphql"+} from "@app/api/generated/graphql"import { Environment } from "@hoppscotch/data"diff --git a/packages/hoppscotch-selfhost-web/src/platform/environments/desktop/index.ts b/packages/hoppscotch-selfhost-web/src/platform/environments/desktop/index.tsindex fd65e24d7..b0044718a 100644--- a/packages/hoppscotch-selfhost-web/src/platform/environments/desktop/index.ts+++ b/packages/hoppscotch-selfhost-web/src/platform/environments/desktop/index.ts@@ -1,4 +1,4 @@-import { authEvents$, def as platformAuth } from "@platform/auth/desktop"+import { authEvents$, def as platformAuth } from "@app/platform/auth/desktop"import { entityReference } from "verzod"import {@@ -15,7 +15,7 @@ import {import { EnvironmentsPlatformDef } from "@hoppscotch/common/src/platform/environments"import { runGQLSubscription } from "@hoppscotch/common/helpers/backend/GQLClient"-import { environnmentsSyncer } from "@platform/environments/desktop/sync"+import { environnmentsSyncer } from "@app/platform/environments/desktop/sync"import * as E from "fp-ts/Either"import {@@ -23,7 +23,7 @@ import {EnvironmentSchemaVersion,GlobalEnvironment,} from "@hoppscotch/data"-import { runDispatchWithOutSyncing } from "@lib/sync"+import { runDispatchWithOutSyncing } from "@app/lib/sync"import {createUserGlobalEnvironment,getGlobalEnvironments,diff --git a/packages/hoppscotch-selfhost-web/src/platform/environments/desktop/sync.ts b/packages/hoppscotch-selfhost-web/src/platform/environments/desktop/sync.tsindex 8d30d59df..04dd3e26a 100644--- a/packages/hoppscotch-selfhost-web/src/platform/environments/desktop/sync.ts+++ b/packages/hoppscotch-selfhost-web/src/platform/environments/desktop/sync.ts@@ -8,11 +8,12 @@ import {settingsStore,} from "@hoppscotch/common/newstore/settings"-import { getSyncInitFunction, type StoreSyncDefinitionOf } from "@lib/sync"+import { getSyncInitFunction, type StoreSyncDefinitionOf } from "@app/lib/sync"import * as E from "fp-ts/Either"-import { createMapper } from "@lib/sync/mapper"+import { createMapper } from "@app/lib/sync/mapper"+import {clearGlobalEnvironmentVariables,createUserEnvironment,diff --git a/packages/hoppscotch-selfhost-web/src/platform/environments/web/api.ts b/packages/hoppscotch-selfhost-web/src/platform/environments/web/api.tsindex db056265a..2ce32bed6 100644--- a/packages/hoppscotch-selfhost-web/src/platform/environments/web/api.ts+++ b/packages/hoppscotch-selfhost-web/src/platform/environments/web/api.ts@@ -2,7 +2,7 @@ import {runMutation,runGQLQuery,runGQLSubscription,-} from "@hoppscotch/common/helpers/backend/GQLClient"+} from "@helpers/backend/GQLClient"import {CreateUserEnvironmentDocument,@@ -27,7 +27,7 @@ import {UserEnvironmentCreatedDocument,UserEnvironmentUpdatedDocument,UserEnvironmentDeletedDocument,-} from "@api/generated/graphql"+} from "@app/api/generated/graphql"import { Environment } from "@hoppscotch/data"diff --git a/packages/hoppscotch-selfhost-web/src/platform/environments/web/index.ts b/packages/hoppscotch-selfhost-web/src/platform/environments/web/index.tsindex f80136e83..0b4f800b0 100644--- a/packages/hoppscotch-selfhost-web/src/platform/environments/web/index.ts+++ b/packages/hoppscotch-selfhost-web/src/platform/environments/web/index.ts@@ -11,19 +11,19 @@ import {setGlobalEnvVariables,updateEnvironment,} from "@hoppscotch/common/newstore/environments"-import { authEvents$, def as platformAuth } from "@platform/auth/web"+import { authEvents$, def as platformAuth } from "@app/platform/auth/web"import { runGQLSubscription } from "@hoppscotch/common/helpers/backend/GQLClient"import { EnvironmentsPlatformDef } from "@hoppscotch/common/src/platform/environments"-import { environnmentsSyncer } from "@platform/environments/web/sync"+import { environnmentsSyncer } from "@app/platform/environments/web/sync"import {Environment,EnvironmentSchemaVersion,GlobalEnvironment,} from "@hoppscotch/data"-import { runDispatchWithOutSyncing } from "@lib/sync"+import { runDispatchWithOutSyncing } from "@app/lib/sync"import {createUserGlobalEnvironment,getGlobalEnvironments,diff --git a/packages/hoppscotch-selfhost-web/src/platform/environments/web/sync.ts b/packages/hoppscotch-selfhost-web/src/platform/environments/web/sync.tsindex 8d30d59df..2229ca19c 100644--- a/packages/hoppscotch-selfhost-web/src/platform/environments/web/sync.ts+++ b/packages/hoppscotch-selfhost-web/src/platform/environments/web/sync.ts@@ -8,11 +8,12 @@ import {settingsStore,} from "@hoppscotch/common/newstore/settings"-import { getSyncInitFunction, type StoreSyncDefinitionOf } from "@lib/sync"+import { getSyncInitFunction, type StoreSyncDefinitionOf } from "@app/lib/sync"import * as E from "fp-ts/Either"-import { createMapper } from "@lib/sync/mapper"+import { createMapper } from "@app/lib/sync/mapper"+import {clearGlobalEnvironmentVariables,createUserEnvironment,@@ -44,7 +45,6 @@ export const storeSyncDefinition: StoreSyncDefinitionOf<environmentsStore.value.environments[lastCreatedEnvIndex].id,id)-currentEnvironmentValueService.updateEnvironmentID(environmentsStore.value.environments[lastCreatedEnvIndex].id,iddiff --git a/packages/hoppscotch-selfhost-web/src/platform/history/desktop/api.ts b/packages/hoppscotch-selfhost-web/src/platform/history/desktop/api.tsindex 67f67467e..9e49017a6 100644--- a/packages/hoppscotch-selfhost-web/src/platform/history/desktop/api.ts+++ b/packages/hoppscotch-selfhost-web/src/platform/history/desktop/api.ts@@ -2,7 +2,7 @@ import {runMutation,runGQLQuery,runGQLSubscription,-} from "@hoppscotch/common/helpers/backend/GQLClient"+} from "@helpers/backend/GQLClient"import {CreateUserHistoryDocument,@@ -30,7 +30,7 @@ import {IsUserHistoryEnabledDocument,UserHistoryStoreStatusChangedDocument,UserHistoryAllDeletedDocument,-} from "@api/generated/graphql"+} from "@app/api/generated/graphql"export const getUserHistoryEntries = () =>runGQLQuery<GetRestUserHistoryQuery, GetRestUserHistoryQueryVariables, "">({diff --git a/packages/hoppscotch-selfhost-web/src/platform/history/desktop/index.ts b/packages/hoppscotch-selfhost-web/src/platform/history/desktop/index.tsindex 82b419fb7..fd79ac3ce 100644--- a/packages/hoppscotch-selfhost-web/src/platform/history/desktop/index.ts+++ b/packages/hoppscotch-selfhost-web/src/platform/history/desktop/index.ts@@ -1,4 +1,4 @@-import { authEvents$, def as platformAuth } from "@platform/auth/desktop"+import { authEvents$, def as platformAuth } from "@app/platform/auth/desktop"import {restHistoryStore,RESTHistoryEntry,@@ -30,8 +30,8 @@ import {import * as E from "fp-ts/Either"import { restHistorySyncer, gqlHistorySyncer } from "./sync"import { runGQLSubscription } from "@hoppscotch/common/helpers/backend/GQLClient"-import { runDispatchWithOutSyncing } from "@lib/sync"-import { ReqType, ServiceStatus } from "@api/generated/graphql"+import { runDispatchWithOutSyncing } from "@app/lib/sync"+import { ReqType, ServiceStatus } from "@app/api/generated/graphql"import { ref } from "vue"function initHistorySync() {diff --git a/packages/hoppscotch-selfhost-web/src/platform/history/desktop/sync.ts b/packages/hoppscotch-selfhost-web/src/platform/history/desktop/sync.tsindex 35c4b25d5..cc2661ffb 100644--- a/packages/hoppscotch-selfhost-web/src/platform/history/desktop/sync.ts+++ b/packages/hoppscotch-selfhost-web/src/platform/history/desktop/sync.ts@@ -9,7 +9,7 @@ import {settingsStore,} from "@hoppscotch/common/newstore/settings"-import { getSyncInitFunction, type StoreSyncDefinitionOf } from "@lib/sync"+import { getSyncInitFunction, type StoreSyncDefinitionOf } from "@app/lib/sync"import * as E from "fp-ts/Either"@@ -18,8 +18,8 @@ import {deleteAllUserHistory,removeRequestFromHistory,toggleHistoryStarStatus,-} from "@platform/history/desktop/api"-import { ReqType } from "@api/generated/graphql"+} from "@app/platform/history/desktop/api"+import { ReqType } from "@app/api/generated/graphql"import { isHistoryStoreEnabled } from "."diff --git a/packages/hoppscotch-selfhost-web/src/platform/history/web/api.ts b/packages/hoppscotch-selfhost-web/src/platform/history/web/api.tsindex 67f67467e..9e49017a6 100644--- a/packages/hoppscotch-selfhost-web/src/platform/history/web/api.ts+++ b/packages/hoppscotch-selfhost-web/src/platform/history/web/api.ts@@ -2,7 +2,7 @@ import {runMutation,runGQLQuery,runGQLSubscription,-} from "@hoppscotch/common/helpers/backend/GQLClient"+} from "@helpers/backend/GQLClient"import {CreateUserHistoryDocument,@@ -30,7 +30,7 @@ import {IsUserHistoryEnabledDocument,UserHistoryStoreStatusChangedDocument,UserHistoryAllDeletedDocument,-} from "@api/generated/graphql"+} from "@app/api/generated/graphql"export const getUserHistoryEntries = () =>runGQLQuery<GetRestUserHistoryQuery, GetRestUserHistoryQueryVariables, "">({diff --git a/packages/hoppscotch-selfhost-web/src/platform/history/web/index.ts b/packages/hoppscotch-selfhost-web/src/platform/history/web/index.tsindex 45eb941e8..03858cb21 100644--- a/packages/hoppscotch-selfhost-web/src/platform/history/web/index.ts+++ b/packages/hoppscotch-selfhost-web/src/platform/history/web/index.ts@@ -1,4 +1,4 @@-import { authEvents$, def as platformAuth } from "@platform/auth/web"+import { authEvents$, def as platformAuth } from "@app/platform/auth/web"import {restHistoryStore,RESTHistoryEntry,@@ -25,13 +25,16 @@ import {runUserHistoryDeletedSubscription,runUserHistoryStoreStatusChangedSubscription,runUserHistoryUpdatedSubscription,-} from "@platform/history/web/api"+} from "@app/platform/history/web/api"import * as E from "fp-ts/Either"-import { restHistorySyncer, gqlHistorySyncer } from "@platform/history/web/sync"+import {+ restHistorySyncer,+ gqlHistorySyncer,+} from "@app/platform/history/web/sync"import { runGQLSubscription } from "@hoppscotch/common/helpers/backend/GQLClient"-import { runDispatchWithOutSyncing } from "@lib/sync"-import { ReqType, ServiceStatus } from "@api/generated/graphql"+import { runDispatchWithOutSyncing } from "@app/lib/sync"+import { ReqType, ServiceStatus } from "@app/api/generated/graphql"import { ref } from "vue"function initHistorySync() {diff --git a/packages/hoppscotch-selfhost-web/src/platform/history/web/sync.ts b/packages/hoppscotch-selfhost-web/src/platform/history/web/sync.tsindex 08dfa73ec..e4b8c3190 100644--- a/packages/hoppscotch-selfhost-web/src/platform/history/web/sync.ts+++ b/packages/hoppscotch-selfhost-web/src/platform/history/web/sync.ts@@ -9,7 +9,7 @@ import {settingsStore,} from "@hoppscotch/common/newstore/settings"-import { getSyncInitFunction, type StoreSyncDefinitionOf } from "@lib/sync"+import { getSyncInitFunction, type StoreSyncDefinitionOf } from "@app/lib/sync"import * as E from "fp-ts/Either"@@ -19,7 +19,7 @@ import {removeRequestFromHistory,toggleHistoryStarStatus,} from "./api"-import { ReqType } from "@api/generated/graphql"+import { ReqType } from "@app/api/generated/graphql"import { isHistoryStoreEnabled } from "."diff --git a/packages/hoppscotch-selfhost-web/src/platform/infra/infra.platform.ts b/packages/hoppscotch-selfhost-web/src/platform/infra/infra.platform.tsindex 6d6ea85ba..73f1012ab 100644--- a/packages/hoppscotch-selfhost-web/src/platform/infra/infra.platform.ts+++ b/packages/hoppscotch-selfhost-web/src/platform/infra/infra.platform.ts@@ -1,6 +1,6 @@import { runGQLQuery } from "@hoppscotch/common/helpers/backend/GQLClient"import { InfraPlatformDef } from "@hoppscotch/common/platform/infra"-import { GetSmtpStatusDocument } from "@api/generated/graphql"+import { GetSmtpStatusDocument } from "@app/api/generated/graphql"import * as E from "fp-ts/Either"const getSMTPStatus = () => {diff --git a/packages/hoppscotch-selfhost-web/src/platform/instance/desktop/index.ts b/packages/hoppscotch-selfhost-web/src/platform/instance/desktop/index.tsnew file mode 100644index 000000000..2ad1ed9c6--- /dev/null+++ b/packages/hoppscotch-selfhost-web/src/platform/instance/desktop/index.ts@@ -0,0 +1,1311 @@+import { pipe } from "fp-ts/function"+import * as E from "fp-ts/Either"+import * as A from "fp-ts/Array"+import * as Ord from "fp-ts/Ord"+import * as N from "fp-ts/number"+import * as TE from "fp-ts/TaskEither"+import * as O from "fp-ts/Option"+import { map } from "rxjs/operators"++import {+ download,+ load,+ close,+ clear,+ remove,+ type DownloadResponse,+ type LoadOptions,+ type LoadResponse,+ type CloseResponse,+ type RemoveResponse,+} from "@hoppscotch/plugin-appload"++import { Service } from "dioc"+import { BehaviorSubject, Observable } from "rxjs"+import { getCurrentWebviewWindow } from "@tauri-apps/api/webviewWindow"++import {+ Instance,+ ConnectionState,+ OperationResult,+ InstanceKind,+ InstancePlatformDef,+ VENDORED_INSTANCE_CONFIG,+} from "@hoppscotch/common/platform/instance"++import { Store } from "@app/kernel/store"+import { getKernelMode } from "@hoppscotch/kernel"+import { getService } from "@hoppscotch/common/modules/dioc"++const STORE_NAMESPACE = "hoppscotch-desktop.v1"++type RecentInstances = Instance[]++const sortByLastUsedDesc = A.sort(+ pipe(+ N.Ord,+ Ord.reverse,+ Ord.contramap((instance: Instance) => new Date(instance.lastUsed).getTime())+ )+)++export class DesktopInstanceService+ extends Service<ConnectionState>+ implements InstancePlatformDef+{+ public static readonly ID = "DESKTOP_INSTANCE_SERVICE"++ private connectionState$ = new BehaviorSubject<ConnectionState>(+ this.getDefaultConnectionState()+ )+ private recentInstances$ = new BehaviorSubject<RecentInstances>(+ this.getDefaultRecentInstances()+ )++ /**+ * Enable instance switching for this platform, adherence to platform def+ */+ public readonly instanceSwitchingEnabled: boolean =+ getKernelMode() === "desktop"++ /**+ * Configuration options for instance management+ */+ public readonly config: InstancePlatformDef["config"] = {+ maxRecentInstances: 10,+ defaultWindowOptions: {+ title: "Hoppscotch",+ width: 1200,+ height: 800,+ resizable: true,+ },+ autoReconnect: false,+ connectionTimeout: 30000,+ confirmDestructiveOperations: true,+ }++ /**+ * Gets observable stream of connection state+ */+ public getConnectionStateStream(): Observable<ConnectionState> {+ return this.connectionState$.asObservable()+ }++ /**+ * Gets observable stream of recent instances+ */+ public getRecentInstancesStream(): Observable<RecentInstances> {+ return this.recentInstances$.asObservable()+ }++ /**+ * Gets observable stream of the current active instance+ */+ public getCurrentInstanceStream(): Observable<Instance | null> {+ return this.getConnectionStateStream().pipe(+ map((state) => (state.status === "connected" ? state.instance : null))+ )+ }++ /**+ * Gets current connection state synchronously+ */+ public getCurrentConnectionState(): ConnectionState {+ return this.connectionState$.value+ }++ /**+ * Gets recent instances synchronously+ */+ public getRecentInstances(): RecentInstances {+ return this.recentInstances$.value+ }++ /**+ * Gets the current active instance synchronously+ */+ public getCurrentInstance(): Instance | null {+ const state = this.getCurrentConnectionState()+ return state.status === "connected" ? state.instance : null+ }++ /**+ * Connects to an instance+ */+ public async connectToInstance(+ serverUrl: string,+ instanceKind: InstanceKind,+ displayName?: string,+ options?: Partial<LoadOptions>+ ): Promise<OperationResult> {+ console.log(`[InstanceService] Connecting to: ${serverUrl}`)++ if (this.beforeConnect) {+ const shouldContinue = await this.beforeConnect(+ serverUrl,+ instanceKind,+ displayName+ )+ if (!shouldContinue) {+ console.log(+ `[InstanceService] Connection cancelled by beforeConnect hook`+ )+ return {+ success: false,+ message: "Connection cancelled by beforeConnect hook",+ }+ }+ }++ const result = await this.connectToInstanceTE(+ serverUrl,+ instanceKind,+ displayName,+ options+ )()++ const operationResult = pipe(+ result,+ E.fold(+ (error): OperationResult => {+ console.log(`[InstanceService] Connection failed: ${error}`)+ if (this.onConnectionError) {+ this.onConnectionError(error, serverUrl)+ }+ return { success: false, message: error }+ },+ (operationResult) => {+ console.log(`[InstanceService] Connection successful`)+ return operationResult+ }+ )+ )++ if (operationResult.success && this.afterConnect) {+ const currentInstance = this.getCurrentInstance()+ if (currentInstance) {+ await this.afterConnect(currentInstance)+ }+ }++ return operationResult+ }++ /**+ * Downloads an instance without connecting+ */+ public async downloadInstance(+ serverUrl: string,+ instanceKind: InstanceKind,+ displayName?: string+ ): Promise<OperationResult> {+ console.log(`[InstanceService] Downloading instance: ${serverUrl}`)++ const result = await this.downloadInstanceTE(+ serverUrl,+ instanceKind,+ displayName+ )()++ return pipe(+ result,+ E.fold(+ (error): OperationResult => {+ console.log(`[InstanceService] Download failed: ${error}`)+ if (this.onDownloadError) {+ this.onDownloadError(error, serverUrl)+ }+ return { success: false, message: error }+ },+ (instance): OperationResult => {+ console.log(+ `[InstanceService] Download successful: ${instance.displayName}`+ )+ return {+ success: true,+ message: `Successfully downloaded ${instance.displayName}`,+ data: instance,+ }+ }+ )+ )+ }++ /**+ * Loads a previously downloaded instance+ */+ public async loadInstance(+ instance: Instance,+ options?: Partial<LoadOptions>+ ): Promise<OperationResult> {+ console.log(`[InstanceService] Loading instance: ${instance.displayName}`)++ const result = await this.loadInstanceTE(instance, options)()++ return pipe(+ result,+ E.fold(+ (error): OperationResult => {+ console.log(`[InstanceService] Load failed: ${error}`)+ if (this.onLoadError) {+ this.onLoadError(error, instance)+ }+ return { success: false, message: error }+ },+ (loadResponse): OperationResult => {+ console.log(+ `[InstanceService] Load successful: ${instance.displayName}`+ )+ return {+ success: true,+ message: `Successfully loaded ${instance.displayName}`,+ data: loadResponse,+ }+ }+ )+ )+ }++ /**+ * Removes an instance and its data (except vendored instance)+ */+ public async removeInstance(instance: Instance): Promise<OperationResult> {+ if (instance.kind === "vendored") {+ console.log(+ `[InstanceService] Attempted to remove vendored instance: ${instance.displayName}`+ )+ return {+ success: false,+ message: "Built-in instances cannot be removed",+ }+ }++ console.log(`[InstanceService] Removing instance: ${instance.displayName}`)++ if (this.beforeRemove) {+ const shouldContinue = await this.beforeRemove(instance)+ if (!shouldContinue) {+ console.log(`[InstanceService] Removal cancelled by beforeRemove hook`)+ return {+ success: false,+ message: "Removal cancelled by beforeRemove hook",+ }+ }+ }++ const result = await this.removeInstanceTE(instance)()++ const operationResult = pipe(+ result,+ E.fold(+ (error): OperationResult => {+ console.log(`[InstanceService] Removal failed: ${error}`)+ if (this.onRemoveError) {+ this.onRemoveError(error, instance)+ }+ return { success: false, message: error }+ },+ (operationResult) => {+ console.log(`[InstanceService] Removal successful`)+ return operationResult+ }+ )+ )++ if (operationResult.success && this.afterRemove) {+ await this.afterRemove(instance)+ }++ return operationResult+ }++ /**+ * Disconnects from current instance+ */+ public async disconnect(): Promise<OperationResult> {+ console.log(`[InstanceService] Disconnecting`)++ const currentInstance = this.getCurrentInstance()++ if (currentInstance && this.beforeDisconnect) {+ const shouldContinue = await this.beforeDisconnect(currentInstance)+ if (!shouldContinue) {+ console.log(+ `[InstanceService] Disconnection cancelled by beforeDisconnect hook`+ )+ return {+ success: false,+ message: "Disconnection cancelled by beforeDisconnect hook",+ }+ }+ }++ const result = await this.disconnectTE()()++ const operationResult = pipe(+ result,+ E.fold(+ (error): OperationResult => {+ console.log(`[InstanceService] Disconnection failed: ${error}`)+ return { success: false, message: error }+ },+ (operationResult) => {+ console.log(`[InstanceService] Disconnection successful`)+ return operationResult+ }+ )+ )++ if (operationResult.success && this.afterDisconnect) {+ await this.afterDisconnect()+ }++ return operationResult+ }++ /**+ * Clears all cached instances+ */+ public async clearCache(): Promise<OperationResult> {+ console.log(`[InstanceService] Clearing cache`)++ const result = await this.clearCacheTE()()++ return pipe(+ result,+ E.fold(+ (error): OperationResult => {+ console.log(`[InstanceService] Cache clear failed: ${error}`)+ return { success: false, message: error }+ },+ (operationResult) => {+ console.log(`[InstanceService] Cache cleared successfully`)+ return operationResult+ }+ )+ )+ }++ /**+ * Closes a window+ */+ public async closeWindow(windowLabel?: string): Promise<OperationResult> {+ console.log(`[InstanceService] Closing window: ${windowLabel || "current"}`)++ const result = await pipe(+ this.performCloseTE(windowLabel),+ TE.chain((response) =>+ this.validateCloseResponseTE(response, windowLabel)+ )+ )()++ return pipe(+ result,+ E.fold(+ (error): OperationResult => {+ console.log(`[InstanceService] Window close failed: ${error}`)+ return { success: false, message: error }+ },+ (closeResponse): OperationResult => {+ console.log(`[InstanceService] Window close successful`)+ return {+ success: true,+ message: `Successfully closed window ${windowLabel || "current"}`,+ data: closeResponse,+ }+ }+ )+ )+ }++ /**+ * Normalizes a URL+ */+ public normalizeUrl(url: string): string | null {+ return pipe(+ this.normalizeUrlE(url),+ E.fold(+ () => null,+ (normalized) => normalized+ )+ )+ }++ /**+ * Validates if a server URL is reachable and compatible+ */+ public async validateServerUrl(url: string): Promise<{+ valid: boolean+ version?: string+ instanceKind?: InstanceKind+ error?: string+ }> {+ console.log(`[InstanceService] Validating server URL: ${url}`)++ const normalizedUrl = this.normalizeUrl(url)+ if (!normalizedUrl) {+ return {+ valid: false,+ error: "Invalid URL format",+ }+ }++ try {+ const result = await this.performDownloadTE(normalizedUrl)()++ return pipe(+ result,+ E.fold(+ (+ error+ ): {+ valid: boolean+ version?: string+ instanceKind?: InstanceKind+ error?: string+ } => ({+ valid: false,+ error,+ }),+ (+ response+ ): {+ valid: boolean+ version?: string+ instanceKind?: InstanceKind+ error?: string+ } => {+ if (response.success) {+ console.log(`[InstanceService] URL validation successful`)+ return {+ valid: true,+ version: response.version,+ instanceKind: "on-prem" as InstanceKind,+ }+ } else {+ return {+ valid: false,+ error: "Server validation failed",+ }+ }+ }+ )+ )+ } catch (error) {+ console.log(`[InstanceService] URL validation failed: ${error}`)+ return {+ valid: false,+ error: `Validation failed: ${error}`,+ }+ }+ }++ public beforeConnect?: (+ serverUrl: string,+ instanceKind: InstanceKind,+ displayName?: string+ ) => Promise<boolean>++ public afterConnect?: (instance: Instance) => Promise<void>++ public beforeDisconnect?: (instance: Instance) => Promise<boolean>++ public afterDisconnect?: () => Promise<void>++ public beforeRemove?: (instance: Instance) => Promise<boolean>++ public afterRemove?: (instance: Instance) => Promise<void>++ public onConnectionError?: (error: string, target: string) => void++ public onDownloadError?: (error: string, serverUrl: string) => void++ public onLoadError?: (error: string, instance: Instance) => void++ public onRemoveError?: (error: string, instance: Instance) => void++ private getDefaultRecentInstances(): RecentInstances {+ return []+ }++ private getDefaultConnectionState(): ConnectionState {+ return { status: "idle" }+ }++ private loadRecentInstancesTE(): TE.TaskEither<string, RecentInstances> {+ console.log("[DEBUG] loadRecentInstancesTE called")++ return pipe(+ TE.tryCatch(+ async () => {+ console.log("[DEBUG] About to call Store.get for recentInstances")+ const result = await Store.get<RecentInstances>(+ STORE_NAMESPACE,+ "recentInstances"+ )+ console.log("[DEBUG] Store.get result:", result)+ return result+ },+ (error) => {+ console.error("[DEBUG] Store.get failed:", error)+ return `Failed to load recent instances: ${error}`+ }+ ),+ TE.map(+ E.fold(+ (storeError) => {+ console.log("[DEBUG] Store.get returned Left (error):", storeError)+ const defaultInstances = this.getDefaultRecentInstances()+ console.log("[DEBUG] Using default instances:", defaultInstances)+ return defaultInstances+ },+ (instances) => {+ console.log(+ "[DEBUG] Store.get returned Right (success):",+ instances+ )++ return pipe(+ O.fromNullable(instances),+ O.fold(+ () => {+ console.log(+ "[DEBUG] Instances is null/undefined, using default"+ )+ const defaultInstances = this.getDefaultRecentInstances()+ console.log("[DEBUG] Default instances:", defaultInstances)+ return defaultInstances+ },+ (instances) => {+ console.log("[DEBUG] Processing loaded instances:", instances)++ const processed = pipe(+ instances,+ sortByLastUsedDesc,+ this.config?.maxRecentInstances+ ? A.takeLeft(this.config.maxRecentInstances)+ : (x) => x+ )++ console.log("[DEBUG] After sorting and limiting:", processed)+ return processed+ }+ )+ )+ }+ )+ )+ )+ }++ private loadConnectionStateTE(): TE.TaskEither<string, ConnectionState> {+ return pipe(+ TE.tryCatch(+ () => Store.get<ConnectionState>(STORE_NAMESPACE, "connectionState"),+ (error) => `Failed to load connection state: ${error}`+ ),+ TE.map(+ E.fold(+ () => this.getDefaultConnectionState(),+ (state) =>+ pipe(+ O.fromNullable(state),+ O.getOrElse(() => this.getDefaultConnectionState())+ )+ )+ )+ )+ }++ private initializeServiceTE(): TE.TaskEither<+ string,+ {+ instances: RecentInstances+ state: ConnectionState+ }+ > {+ return pipe(+ pipe(+ TE.tryCatch(+ () => Store.init(),+ (error) => `Store initialization failed: ${error}`+ ),+ TE.chainEitherK(E.mapLeft(() => "Failed to initialize store"))+ ),+ TE.chain(() =>+ pipe(+ TE.Do,+ TE.bind("instances", () => this.loadRecentInstancesTE()),+ TE.bind("state", () => this.loadConnectionStateTE())+ )+ )+ )+ }++ private updateConnectionState(state: ConnectionState): void {+ this.connectionState$.next(state)+ this.emit(state)+ }++ private updateRecentInstances(instances: RecentInstances): void {+ this.recentInstances$.next(instances)+ }++ override async onServiceInit(): Promise<void> {+ console.log(`[InstanceService] Initializing service`)++ await pipe(+ this.initializeServiceTE(),+ TE.chain(({ instances, state }) => {+ console.log("[DEBUG] initializeServiceTE returned:", {+ instances,+ state,+ })++ this.updateRecentInstances(instances)+ this.updateConnectionState(state)++ return pipe(+ TE.of({ instances, state }),+ TE.chainFirst(() => this.initializeVendoredInstanceTE()),+ TE.map(({ instances, state }) => {+ console.log(+ "[DEBUG] Before updating state - loaded instances:",+ instances+ )+ console.log(+ "[DEBUG] Before updating state - connection state:",+ state+ )+ console.log(+ "[DEBUG] Current BehaviorSubject instances:",+ this.recentInstances$.value+ )++ console.log(+ `[InstanceService] Service initialized with ${this.recentInstances$.value.length} recent instances`+ )++ this.updateConnectionState(state)++ console.log(+ "[DEBUG] After updateConnectionState, BehaviorSubject value:",+ this.connectionState$.value+ )+ })+ )+ }),+ TE.fold(+ (error) => async () => {+ console.error("Service initialization failed:", error)+ this.updateConnectionState({+ status: "error",+ target: "store",+ message: error,+ })+ },+ () => async () => {+ console.log(`[InstanceService] Service initialization complete`)+ console.log(+ "[DEBUG] Final recentInstances$ value:",+ this.recentInstances$.value+ )+ console.log(+ "[DEBUG] Final connectionState$ value:",+ this.connectionState$.value+ )+ }+ )+ )()+ }++ private initializeVendoredInstanceTE(): TE.TaskEither<string, void> {+ console.log(`[InstanceService] Checking for vendored instance`)++ return pipe(+ TE.of(this.recentInstances$.value),+ TE.chain((currentInstances) => {+ const hasVendored = currentInstances.some((i) => i.kind === "vendored")++ if (hasVendored) {+ console.log(+ `[InstanceService] Vendored instance already exists, skipping`+ )+ return TE.of(undefined)+ } else {+ console.log(+ `[InstanceService] Vendored instance missing, adding to recent instances`+ )+ return pipe(+ TE.of(VENDORED_INSTANCE_CONFIG),+ TE.chainFirst((instance) => this.addToRecentInstancesTE(instance)),+ TE.map(() => undefined)+ )+ }+ })+ )+ }++ private setConnectionState(+ newState: ConnectionState+ ): TE.TaskEither<string, ConnectionState> {+ return pipe(+ TE.tryCatch(+ () => Store.set(STORE_NAMESPACE, "connectionState", newState),+ (error) => `Failed to save connection state: ${error}`+ ),+ TE.map((): ConnectionState => {+ this.updateConnectionState(newState)+ return newState+ })+ )+ }++ private setRecentInstances(+ newInstances: RecentInstances+ ): TE.TaskEither<string, RecentInstances> {+ console.log("[DEBUG] setRecentInstances called with:", newInstances)++ const limitedInstances = this.config?.maxRecentInstances+ ? pipe(newInstances, A.takeLeft(this.config.maxRecentInstances))+ : newInstances++ console.log(+ "[DEBUG] After applying maxRecentInstances limit:",+ limitedInstances+ )+ console.log(+ "[DEBUG] maxRecentInstances config:",+ this.config?.maxRecentInstances+ )++ return pipe(+ TE.tryCatch(+ async () => {+ console.log("[DEBUG] About to call Store.set with:", limitedInstances)+ const result = await Store.set(+ STORE_NAMESPACE,+ "recentInstances",+ limitedInstances+ )+ console.log("[DEBUG] Store.set result:", result)+ return result+ },+ (error) => {+ console.error("[DEBUG] Store.set failed with error:", error)+ return `Failed to save recent instances: ${error}`+ }+ ),+ TE.map((_storeResult): RecentInstances => {+ console.log("[DEBUG] Store.set succeeded, updating BehaviorSubject")+ console.log(+ "[DEBUG] Before updateRecentInstances, current value:",+ this.recentInstances$.value+ )+ this.updateRecentInstances(limitedInstances)+ console.log(+ "[DEBUG] After updateRecentInstances, new value:",+ this.recentInstances$.value+ )+ return limitedInstances+ })+ )+ }++ private normalizeUrlE(url: string): E.Either<string, string> {+ return pipe(+ E.tryCatch(+ () => {+ const parsed = new URL(url.includes("://") ? url : `http://${url}`)+ return `${parsed.protocol}//${parsed.host}/desktop-app-server`+ },+ (error) => `Failed to normalize URL: ${error}`+ )+ )+ }++ private setConnectingStateTE(+ target: string+ ): TE.TaskEither<string, ConnectionState> {+ console.log(`[InstanceService] Setting connecting state for: ${target}`)+ return this.setConnectionState({ status: "connecting", target })+ }++ private performDownloadTE(+ serverUrl: string+ ): TE.TaskEither<string, DownloadResponse> {+ console.log(`[InstanceService] Downloading from: ${serverUrl}`)++ const timeout = this.config?.connectionTimeout || 30000++ return TE.tryCatch(+ () =>+ Promise.race([+ download({ serverUrl }),+ new Promise<never>((_, reject) =>+ setTimeout(+ () => reject(new Error(`Connection timeout after ${timeout}ms`)),+ timeout+ )+ ),+ ]),+ (error) => `Failed to download instance: ${error}`+ )+ }++ private validateDownloadResponseTE(+ response: DownloadResponse,+ serverUrl: string+ ): TE.TaskEither<string, DownloadResponse> {+ return response.success+ ? TE.right(response)+ : TE.left(`Download failed for ${serverUrl}`)+ }++ private createInstanceFromDownload(+ response: DownloadResponse,+ instanceKind: InstanceKind,+ displayName?: string+ ): Instance {+ const finalDisplayName = pipe(+ O.fromNullable(displayName),+ O.getOrElse(() => response.serverUrl),+ (rawName) =>+ pipe(+ E.tryCatch(+ () =>+ new URL(rawName.includes("://") ? rawName : `http://${rawName}`),+ () => rawName+ ),+ E.fold(+ (fallback) => fallback,+ (urlObj) => {+ const hostnameParts = urlObj.hostname.split(".")+ const mainDomain = hostnameParts.slice(-2).join(".")++ return mainDomain === "hoppscotch"+ ? "Hoppscotch"+ : mainDomain || urlObj.hostname.replace(/^www\./, "")+ }+ )+ )+ )++ return {+ kind: instanceKind,+ serverUrl: response.serverUrl,+ displayName: finalDisplayName,+ version: response.version,+ lastUsed: new Date().toISOString(),+ bundleName: response.bundleName,+ }+ }++ private downloadInstanceTE(+ serverUrl: string,+ instanceKind: InstanceKind,+ displayName?: string+ ): TE.TaskEither<string, Instance> {+ return pipe(+ this.normalizeUrlE(serverUrl),+ TE.fromEither,+ TE.chain((normalizedUrl) =>+ pipe(+ this.setConnectingStateTE(normalizedUrl),+ TE.chain(() => this.performDownloadTE(normalizedUrl)),+ TE.chain((response) =>+ this.validateDownloadResponseTE(response, normalizedUrl)+ ),+ TE.map((response) =>+ this.createInstanceFromDownload(response, instanceKind, displayName)+ )+ )+ )+ )+ }++ private getBundleNameTE(instance: Instance): TE.TaskEither<string, string> {+ return pipe(+ O.fromNullable(instance.bundleName),+ TE.fromOption(() => `Instance ${instance.displayName} has no bundle name`)+ )+ }++ private buildLoadOptions(+ instance: Instance,+ options?: Partial<LoadOptions>+ ): LoadOptions {+ const defaultWindowOptions = this.config?.defaultWindowOptions || {+ title: "Hoppscotch",+ width: 1200,+ height: 800,+ resizable: true,+ }++ return {+ bundleName: instance.bundleName!,+ inline: options?.inline ?? true,+ window: options?.window ?? defaultWindowOptions,+ }+ }++ private performLoadTE(+ loadOptions: LoadOptions+ ): TE.TaskEither<string, LoadResponse> {+ console.log(+ `[InstanceService] Loading with bundle: ${loadOptions.bundleName}`+ )++ return TE.tryCatch(+ () => load(loadOptions),+ (error) => `Failed to load instance: ${error}`+ )+ }++ private validateLoadResponseTE(+ response: LoadResponse,+ displayName: string+ ): TE.TaskEither<string, LoadResponse> {+ return response.success+ ? TE.right(response)+ : TE.left(`Failed to load instance ${displayName}`)+ }++ private updateInstanceStateTE(+ instance: Instance+ ): TE.TaskEither<string, ConnectionState> {+ console.log(`[InstanceService] Updating instance state to connected`)+ return this.setConnectionState({ status: "connected", instance })+ }++ private performCloseTE(+ windowLabel?: string+ ): TE.TaskEither<string, CloseResponse> {+ console.log(`[InstanceService] Closing window: ${windowLabel || "current"}`)++ return TE.tryCatch(+ async () => {+ const currentWindow = getCurrentWebviewWindow()+ const labelToClose = windowLabel || currentWindow.label++ if (labelToClose === "main") {+ throw new Error("Cannot close main window")+ }++ const closeResponse = await close({ windowLabel: labelToClose })+ return closeResponse+ },+ (error) => `Failed to close window: ${error}`+ )+ }++ private validateCloseResponseTE(+ response: CloseResponse,+ windowLabel?: string+ ): TE.TaskEither<string, CloseResponse> {+ return response.success+ ? TE.right(response)+ : TE.left(`Failed to close window ${windowLabel || "current"}`)+ }++ private loadInstanceTE(+ instance: Instance,+ options?: Partial<LoadOptions>+ ): TE.TaskEither<string, LoadResponse> {+ return pipe(+ instance.kind === "vendored"+ ? TE.of(undefined)+ : TE.tryCatch(+ async () => {+ console.log(+ `[InstanceService] Ensuring bundle is available for: ${instance.displayName}`+ )+ await download({ serverUrl: instance.serverUrl })+ return undefined+ },+ (error) => `Failed to ensure bundle is available: ${error}`+ ),+ TE.chain(() => this.getBundleNameTE(instance)),+ TE.map(() => this.buildLoadOptions(instance, options)),+ TE.chain((loadOptions) => this.performLoadTE(loadOptions)),+ TE.chain((response) =>+ this.validateLoadResponseTE(response, instance.displayName)+ ),+ TE.chainFirst(() => this.updateInstanceStateTE(instance)),+ TE.chainFirst(() => this.updateInstanceLastUsed(instance)),+ TE.chainFirst((_loadResponse) =>+ TE.fromTask(async () => {+ try {+ const closeResult = await this.performCloseTE()()+ if (E.isRight(closeResult)) {+ const validateResult = await this.validateCloseResponseTE(+ closeResult.right+ )()+ if (E.isRight(validateResult)) {+ console.log(`Window closed successfully after load`)+ } else {+ console.warn(+ `Window close validation failed but load succeeded: ${validateResult.left}`+ )+ }+ } else {+ console.warn(+ `Window close failed but load succeeded: ${closeResult.left}`+ )+ }+ } catch (error) {+ console.warn(`Window close error but load succeeded: ${error}`)+ }+ return undefined+ })+ )+ )+ }++ private performRemoveTE(+ bundleName: string,+ serverUrl: string+ ): TE.TaskEither<string, RemoveResponse> {+ console.log(`[InstanceService] Removing bundle: ${bundleName}`)++ return TE.tryCatch(+ () => remove({ bundleName, serverUrl }),+ (error) => `Failed to remove instance: ${error}`+ )+ }++ private validateRemoveResponseTE(+ response: RemoveResponse,+ displayName: string+ ): TE.TaskEither<string, RemoveResponse> {+ return response.success+ ? TE.right(response)+ : TE.left(`Failed to remove instance ${displayName}`)+ }++ private removeFromRecentInstancesTE(+ serverUrl: string+ ): TE.TaskEither<string, RecentInstances> {+ return pipe(+ this.recentInstances$.value,+ A.filter((i) => {+ // NOTE: Never remove vendored instances from recent instances list.+ if (i.kind === "vendored") {+ console.log(+ `[InstanceService] Preserving vendored instance: ${i.displayName}`+ )+ return true+ }+ return i.serverUrl !== serverUrl+ }),+ (filtered) => this.setRecentInstances(filtered)+ )+ }++ private removeInstanceTE(+ instance: Instance+ ): TE.TaskEither<string, OperationResult> {+ return pipe(+ O.fromNullable(instance.bundleName),+ O.fold(+ () =>+ TE.left(`Instance ${instance.displayName} has no bundle to remove`),+ (bundleName) =>+ pipe(+ this.performRemoveTE(bundleName, instance.serverUrl),+ TE.chain((response) =>+ this.validateRemoveResponseTE(response, instance.displayName)+ ),+ TE.chainFirst(() =>+ this.removeFromRecentInstancesTE(instance.serverUrl)+ ),+ TE.map(+ (): OperationResult => ({+ success: true,+ message: `Successfully removed ${instance.displayName}`,+ })+ )+ )+ )+ )+ }++ private clearCacheTE(): TE.TaskEither<string, OperationResult> {+ return pipe(+ TE.tryCatch(+ () => clear(),+ (error) => `Failed to clear cache: ${error}`+ ),+ TE.chainFirst(() => {+ const vendoredInstance = this.recentInstances$.value.find(+ (i) => i.kind === "vendored"+ )+ const instancesToKeep = vendoredInstance ? [vendoredInstance] : []+ return this.setRecentInstances(instancesToKeep)+ }),+ TE.map(+ (): OperationResult => ({+ success: true,+ message: "Cache cleared successfully",+ })+ )+ )+ }++ private createOrGetInstanceTE(+ serverUrl: string,+ instanceKind: InstanceKind,+ displayName?: string+ ): TE.TaskEither<string, Instance> {+ return pipe(+ this.findInstanceByUrl(serverUrl),+ O.fold(+ () => {+ console.log(+ `[InstanceService] Instance not found, downloading new: ${serverUrl}`+ )+ return pipe(+ this.downloadInstanceTE(serverUrl, instanceKind, displayName),+ TE.chainFirst((newInstance) =>+ this.addToRecentInstancesTE(newInstance)+ )+ )+ },+ (existing) => {+ console.log(+ `[InstanceService] Using existing instance: ${existing.displayName}`+ )+ return TE.right(existing)+ }+ )+ )+ }++ private addToRecentInstancesTE(+ instance: Instance+ ): TE.TaskEither<string, RecentInstances> {+ console.log(+ `[InstanceService] Adding to recent instances: ${instance.displayName}`+ )++ console.log(+ "[DEBUG] Current recentInstances$ before adding:",+ this.recentInstances$.value+ )++ return pipe(+ this.recentInstances$.value,+ A.prepend(instance),+ (withNew) => {+ console.log("[DEBUG] After prepending:", withNew)+ return withNew+ },+ sortByLastUsedDesc,+ (afterSort) => {+ console.log("[DEBUG] After sorting:", afterSort)+ return afterSort+ },+ (updated) => {+ console.log("[DEBUG] About to save to store:", updated)+ return this.setRecentInstances(updated)+ }+ )+ }++ private connectToInstanceTE(+ serverUrl: string,+ instanceKind: InstanceKind,+ displayName?: string,+ options?: Partial<LoadOptions>+ ): TE.TaskEither<string, OperationResult> {+ return pipe(+ this.normalizeUrlE(serverUrl),+ TE.fromEither,+ TE.chain((normalizedUrl) =>+ pipe(+ this.createOrGetInstanceTE(normalizedUrl, instanceKind, displayName),+ TE.chain((instance) => this.loadInstanceTE(instance, options)),+ TE.map(+ (): OperationResult => ({+ success: true,+ message: `Successfully connected to ${displayName || serverUrl}`,+ })+ )+ )+ )+ )+ }++ private findInstanceByUrl(serverUrl: string): O.Option<Instance> {+ const extractHost = (url: string): string =>+ url.startsWith("app://")+ ? url.split("/")[2]+ : pipe(+ E.tryCatch(+ () => new URL(url).host,+ () => url+ ),+ E.getOrElse((fallback) => fallback)+ )++ const targetHost = extractHost(serverUrl)++ console.log(+ `[InstanceService] Looking up ${targetHost} in ${JSON.stringify(this.recentInstances$.value, null, 2)}`+ )++ return pipe(+ this.recentInstances$.value,+ A.findFirst((instance) => extractHost(instance.serverUrl) === targetHost)+ )+ }++ private updateInstanceLastUsed(+ instance: Instance+ ): TE.TaskEither<string, void> {+ console.log(+ `[InstanceService] Updating last used for: ${instance.displayName}`+ )++ return pipe(+ this.recentInstances$.value,+ A.map((i) =>+ i.serverUrl === instance.serverUrl+ ? { ...i, lastUsed: new Date().toISOString() }+ : i+ ),+ sortByLastUsedDesc,+ (updated) => this.setRecentInstances(updated),+ TE.map(() => undefined)+ )+ }++ private disconnectTE(): TE.TaskEither<string, OperationResult> {+ return pipe(+ this.performCloseTE(),+ TE.chain((response) => this.validateCloseResponseTE(response)),+ TE.map(+ (): OperationResult => ({+ success: true,+ message: "Disconnected successfully",+ })+ ),+ TE.orElse((error) => {+ if (error.includes("Cannot close main window")) {+ console.log(+ `[InstanceService] Disconnected (main window remains open)`+ )+ return TE.right({+ success: true,+ message: "Disconnected (main window remains open)",+ })+ }+ return TE.left(error)+ })+ )+ }+}++const desktopInstanceService = getService(DesktopInstanceService)++export const def: InstancePlatformDef = desktopInstanceServicediff --git a/packages/hoppscotch-selfhost-web/src/platform/instance/web/index.ts b/packages/hoppscotch-selfhost-web/src/platform/instance/web/index.tsnew file mode 100644index 000000000..6f984cd61--- /dev/null+++ b/packages/hoppscotch-selfhost-web/src/platform/instance/web/index.ts@@ -0,0 +1,120 @@+import { Service } from "dioc"+import { Observable, of } from "rxjs"++import {+ Instance,+ ConnectionState,+ OperationResult,+ InstanceKind,+ InstancePlatformDef,+} from "@hoppscotch/common/src/platform/instance"+import { getService } from "@hoppscotch/common/modules/dioc"++export class WebInstanceService+ extends Service<never>+ implements InstancePlatformDef+{+ public static readonly ID = "WEB_INSTANCE_SERVICE"++ /**+ * Disable instance switching for web platform+ */+ public readonly instanceSwitchingEnabled: boolean = false++ /**+ * Web platform doesn't need most of these methods, but we implement them+ * to satisfy the interface contract+ */++ public getConnectionStateStream?(): Observable<ConnectionState> {+ return of({ status: "idle" })+ }++ public getRecentInstancesStream?(): Observable<Instance[]> {+ return of([])+ }++ public getCurrentInstanceStream?(): Observable<Instance | null> {+ return of(null)+ }++ public getCurrentConnectionState?(): ConnectionState {+ return { status: "idle" }+ }++ public getRecentInstances?(): Instance[] {+ return []+ }++ public getCurrentInstance?(): Instance | null {+ return null+ }++ public async connectToInstance?(+ _serverUrl: string,+ _instanceKind: InstanceKind,+ _displayName?: string+ ): Promise<OperationResult> {+ return {+ success: false,+ message: "Instance switching not supported on web platform",+ }+ }++ public async downloadInstance?(+ _serverUrl: string,+ _instanceKind: InstanceKind,+ _displayName?: string+ ): Promise<OperationResult> {+ return {+ success: false,+ message: "Instance downloading not supported on web platform",+ }+ }++ public async loadInstance?(): Promise<OperationResult> {+ return {+ success: false,+ message: "Instance loading not supported on web platform",+ }+ }++ public async removeInstance?(): Promise<OperationResult> {+ return {+ success: false,+ message: "Instance removal not supported on web platform",+ }+ }++ public async disconnect?(): Promise<OperationResult> {+ return {+ success: false,+ message: "Disconnect not supported on web platform",+ }+ }++ public async clearCache?(): Promise<OperationResult> {+ return {+ success: false,+ message: "Cache clearing not supported on web platform",+ }+ }++ public normalizeUrl?(_url: string): string | null {+ return null+ }++ public async validateServerUrl?(): Promise<{+ valid: boolean+ error?: string+ }> {+ return {+ valid: false,+ error: "Server validation not supported on web platform",+ }+ }+}++const webInstanceService = getService(WebInstanceService)++export const def: InstancePlatformDef = webInstanceServicediff --git a/packages/hoppscotch-selfhost-web/src/platform/settings/desktop/api.ts b/packages/hoppscotch-selfhost-web/src/platform/settings/desktop/api.tsindex d3aff03f9..dd726fe9a 100644--- a/packages/hoppscotch-selfhost-web/src/platform/settings/desktop/api.ts+++ b/packages/hoppscotch-selfhost-web/src/platform/settings/desktop/api.ts@@ -2,7 +2,7 @@ import {runGQLQuery,runGQLSubscription,runMutation,-} from "@hoppscotch/common/helpers/backend/GQLClient"+} from "@helpers/backend/GQLClient"import {CreateUserSettingsDocument,CreateUserSettingsMutation,@@ -14,7 +14,7 @@ import {UpdateUserSettingsMutation,UpdateUserSettingsMutationVariables,UserSettingsUpdatedDocument,-} from "@api/generated/graphql"+} from "@app/api/generated/graphql"export const getUserSettings = () =>runGQLQuery<diff --git a/packages/hoppscotch-selfhost-web/src/platform/settings/desktop/index.ts b/packages/hoppscotch-selfhost-web/src/platform/settings/desktop/index.tsindex b5505a25a..2e3c46a1d 100644--- a/packages/hoppscotch-selfhost-web/src/platform/settings/desktop/index.ts+++ b/packages/hoppscotch-selfhost-web/src/platform/settings/desktop/index.ts@@ -1,6 +1,6 @@import { SettingsPlatformDef } from "@hoppscotch/common/platform/settings"import { settingsSyncer } from "./sync"-import { authEvents$, def as platformAuth } from "@platform/auth/desktop"+import { authEvents$, def as platformAuth } from "@app/platform/auth/desktop"import {createUserSettings,getUserSettings,@@ -12,7 +12,7 @@ import {bulkApplySettings,getDefaultSettings,} from "@hoppscotch/common/newstore/settings"-import { runDispatchWithOutSyncing } from "@lib/sync"+import { runDispatchWithOutSyncing } from "@app/lib/sync"function initSettingsSync() {const currentUser$ = platformAuth.getCurrentUserStream()diff --git a/packages/hoppscotch-selfhost-web/src/platform/settings/desktop/sync.ts b/packages/hoppscotch-selfhost-web/src/platform/settings/desktop/sync.tsindex 7103ba0b5..17d9011c1 100644--- a/packages/hoppscotch-selfhost-web/src/platform/settings/desktop/sync.ts+++ b/packages/hoppscotch-selfhost-web/src/platform/settings/desktop/sync.ts@@ -1,6 +1,6 @@import { settingsStore } from "@hoppscotch/common/newstore/settings"-import { getSyncInitFunction, type StoreSyncDefinitionOf } from "@lib/sync"+import { getSyncInitFunction, type StoreSyncDefinitionOf } from "@app/lib/sync"import { updateUserSettings } from "./api"diff --git a/packages/hoppscotch-selfhost-web/src/platform/settings/web/api.ts b/packages/hoppscotch-selfhost-web/src/platform/settings/web/api.tsindex d3aff03f9..dd726fe9a 100644--- a/packages/hoppscotch-selfhost-web/src/platform/settings/web/api.ts+++ b/packages/hoppscotch-selfhost-web/src/platform/settings/web/api.ts@@ -2,7 +2,7 @@ import {runGQLQuery,runGQLSubscription,runMutation,-} from "@hoppscotch/common/helpers/backend/GQLClient"+} from "@helpers/backend/GQLClient"import {CreateUserSettingsDocument,CreateUserSettingsMutation,@@ -14,7 +14,7 @@ import {UpdateUserSettingsMutation,UpdateUserSettingsMutationVariables,UserSettingsUpdatedDocument,-} from "@api/generated/graphql"+} from "@app/api/generated/graphql"export const getUserSettings = () =>runGQLQuery<diff --git a/packages/hoppscotch-selfhost-web/src/platform/settings/web/index.ts b/packages/hoppscotch-selfhost-web/src/platform/settings/web/index.tsindex fc59447de..cbcefe0b3 100644--- a/packages/hoppscotch-selfhost-web/src/platform/settings/web/index.ts+++ b/packages/hoppscotch-selfhost-web/src/platform/settings/web/index.ts@@ -1,6 +1,6 @@import { SettingsPlatformDef } from "@hoppscotch/common/platform/settings"import { settingsSyncer } from "./sync"-import { authEvents$, def as platformAuth } from "@platform/auth/web"+import { authEvents$, def as platformAuth } from "@app/platform/auth/web"import {createUserSettings,getUserSettings,@@ -12,7 +12,7 @@ import {bulkApplySettings,getDefaultSettings,} from "@hoppscotch/common/newstore/settings"-import { runDispatchWithOutSyncing } from "@lib/sync"+import { runDispatchWithOutSyncing } from "@app/lib/sync"function initSettingsSync() {const currentUser$ = platformAuth.getCurrentUserStream()diff --git a/packages/hoppscotch-selfhost-web/src/platform/settings/web/sync.ts b/packages/hoppscotch-selfhost-web/src/platform/settings/web/sync.tsindex 7103ba0b5..17d9011c1 100644--- a/packages/hoppscotch-selfhost-web/src/platform/settings/web/sync.ts+++ b/packages/hoppscotch-selfhost-web/src/platform/settings/web/sync.ts@@ -1,6 +1,6 @@import { settingsStore } from "@hoppscotch/common/newstore/settings"-import { getSyncInitFunction, type StoreSyncDefinitionOf } from "@lib/sync"+import { getSyncInitFunction, type StoreSyncDefinitionOf } from "@app/lib/sync"import { updateUserSettings } from "./api"diff --git a/packages/hoppscotch-selfhost-web/tsconfig.json b/packages/hoppscotch-selfhost-web/tsconfig.jsonindex d4b1c7845..d5681338f 100644--- a/packages/hoppscotch-selfhost-web/tsconfig.json+++ b/packages/hoppscotch-selfhost-web/tsconfig.json@@ -15,10 +15,13 @@"paths": {"@hoppscotch/common": ["../hoppscotch-common/src/index.ts"],"@hoppscotch/common/*": ["../hoppscotch-common/src/*"],- "@platform/*": ["./src/platform/*"],- "@platform-components/*": ["./src/components/*"],- "@api/*": ["./src/api/*"],- "@lib/*": ["./src/lib/*"]+ "@app/platform/*": ["./src/platform/*"],+ "@app/services/*": ["./src/services/*"],+ "@app/components/*": ["./src/components/*"],+ "@app/helpers/*": ["./src/helpers/*"],+ "@app/api/*": ["./src/api/*"],+ "@app/lib/*": ["./src/lib/*"],+ "@app/kernel/*": ["./src/kernel/*"]}},"include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue"],diff --git a/packages/hoppscotch-selfhost-web/vite.config.ts b/packages/hoppscotch-selfhost-web/vite.config.tsindex 58dfa964b..6b600eff5 100644--- a/packages/hoppscotch-selfhost-web/vite.config.ts+++ b/packages/hoppscotch-selfhost-web/vite.config.ts@@ -48,6 +48,7 @@ export default defineConfig({},resolve: {alias: {+ // Config files"tailwind.config.cjs": path.resolve(__dirname,"../hoppscotch-common/tailwind.config.cjs"@@ -56,28 +57,41 @@ export default defineConfig({__dirname,"../hoppscotch-common/postcss.config.cjs"),+// TODO: Maybe leave ~ only for individual apps and not use on common+ // Common package aliases"~": path.resolve(__dirname, "../hoppscotch-common/src"),"@hoppscotch/common": "@hoppscotch/common/src",++ // Common (shared) modules (legacy - TODO: migrate these to @common/*)"@composables": path.resolve(__dirname,"../hoppscotch-common/src/composables"),"@modules": path.resolve(__dirname, "../hoppscotch-common/src/modules"),+ "@services": path.resolve(__dirname, "../hoppscotch-common/src/services"),"@components": path.resolve(__dirname,"../hoppscotch-common/src/components"),"@helpers": path.resolve(__dirname, "../hoppscotch-common/src/helpers"),+ "@platform": path.resolve(__dirname, "../hoppscotch-common/src/platform"),"@functional": path.resolve(__dirname,"../hoppscotch-common/src/helpers/functional"),"@workers": path.resolve(__dirname, "../hoppscotch-common/src/workers"),- "@platform": path.resolve(__dirname, "./src/platform"),- "@platform-components": path.resolve(__dirname, "./src/components"),- "@api": path.resolve(__dirname, "./src/api"),- "@lib": path.resolve(__dirname, "./src/lib"),++ // Application layer+ "@app/platform": path.resolve(__dirname, "./src/platform"),+ "@app/services": path.resolve(__dirname, "./src/services"),+ "@app/components": path.resolve(__dirname, "./src/components"),+ "@app/helpers": path.resolve(__dirname, "./src/helpers"),+ "@app/api": path.resolve(__dirname, "./src/api"),+ "@app/lib": path.resolve(__dirname, "./src/lib"),+ "@app/kernel": path.resolve(__dirname, "./src/kernel"),++ // Node.js polyfillsstream: "stream-browserify",util: "util",querystring: "qs",@@ -214,7 +228,7 @@ export default defineConfig({registerType: "prompt",workbox: {cleanupOutdatedCaches: true,- maximumFileSizeToCacheInBytes: 15728640, // 15 MB,+ maximumFileSizeToCacheInBytes: 15728640, // 15 MBnavigateFallbackDenylist: [/robots.txt/,/sitemap.xml/,diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex e964ba7a7..b9e940b4d 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -1298,211 +1298,6 @@ importers:specifier: 6.3.5version: 6.3.5(@types/[email protected])([email protected])([email protected])([email protected])([email protected])- packages/hoppscotch-selfhost-desktop:- dependencies:- '@fontsource-variable/inter':- specifier: 5.2.8- version: 5.2.8- '@fontsource-variable/material-symbols-rounded':- specifier: 5.2.24- version: 5.2.24- '@fontsource-variable/roboto-mono':- specifier: 5.2.8- version: 5.2.8- '@hoppscotch/common':- specifier: workspace:^- version: link:../hoppscotch-common- '@hoppscotch/data':- specifier: workspace:^- version: link:../hoppscotch-data- '@platform/auth':- specifier: 0.1.106- version: 0.1.106- '@tauri-apps/api':- specifier: 1.5.1- version: 1.5.1- '@tauri-apps/cli':- specifier: 1.5.6- version: 1.5.6- '@vueuse/core':- specifier: 10.5.0- version: 10.5.0([email protected]([email protected]))- axios:- specifier: 1.8.2- version: 1.8.2- buffer:- specifier: 6.0.3- version: 6.0.3- dioc:- specifier: 3.0.2- version: 3.0.2([email protected]([email protected]))- environments.api:- specifier: link:@platform/environments/environments.api- version: link:@platform/environments/environments.api- event:- specifier: link:@tauri-apps/api/event- version: link:@tauri-apps/api/event- fp-ts:- specifier: 2.16.1- version: 2.16.1- lodash-es:- specifier: 4.17.21- version: 4.17.21- process:- specifier: 0.11.10- version: 0.11.10- rxjs:- specifier: 7.8.1- version: 7.8.1- shell:- specifier: link:@tauri-apps/api/shell- version: link:@tauri-apps/api/shell- stream-browserify:- specifier: 3.0.0- version: 3.0.0- tauri:- specifier: link:@tauri-apps/api/tauri- version: link:@tauri-apps/api/tauri- tauri-plugin-store-api:- specifier: 0.0.0- version: 0.0.0- util:- specifier: 0.12.5- version: 0.12.5- verzod:- specifier: 0.3.0- version: 0.3.0([email protected])- vue:- specifier: 3.5.22- version: 3.5.22([email protected])- workbox-window:- specifier: 6.6.0- version: 6.6.0- zod:- specifier: 3.25.32- version: 3.25.32- devDependencies:- '@graphql-codegen/add':- specifier: 5.0.0- version: 5.0.0([email protected])- '@graphql-codegen/cli':- specifier: 5.0.0- version: 5.0.0(@parcel/[email protected])(@types/[email protected])([email protected])([email protected])- '@graphql-codegen/typed-document-node':- specifier: 5.0.1- version: 5.0.1([email protected])- '@graphql-codegen/typescript':- specifier: 4.0.1- version: 4.0.1([email protected])- '@graphql-codegen/typescript-operations':- specifier: 4.0.1- version: 4.0.1([email protected])- '@graphql-codegen/typescript-urql-graphcache':- specifier: 2.4.5- version: 2.4.5(@urql/[email protected](@urql/[email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected])- '@graphql-codegen/urql-introspection':- specifier: 2.2.1- version: 2.2.1([email protected])- '@graphql-typed-document-node/core':- specifier: 3.2.0- version: 3.2.0([email protected])- '@iconify-json/lucide':- specifier: 1.2.68- version: 1.2.68- '@intlify/unplugin-vue-i18n':- specifier: 6.0.4- version: 6.0.4(@vue/[email protected])([email protected])([email protected])([email protected])([email protected]([email protected]([email protected])))([email protected]([email protected]))- '@rushstack/eslint-patch':- specifier: 1.14.0- version: 1.14.0- '@types/lodash-es':- specifier: 4.17.10- version: 4.17.10- '@types/node':- specifier: 24.9.1- version: 24.9.1- '@typescript-eslint/eslint-plugin':- specifier: 8.44.1- version: 8.44.1(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])- '@typescript-eslint/parser':- specifier: 8.44.1- version: 8.44.1([email protected])([email protected])- '@vitejs/plugin-legacy':- specifier: 2.3.0- version: 2.3.0([email protected])([email protected](@types/[email protected])([email protected])([email protected]))- '@vitejs/plugin-vue':- specifier: 4.3.1- version: 4.3.1([email protected](@types/[email protected])([email protected])([email protected]))([email protected]([email protected]))- '@vue/eslint-config-typescript':- specifier: 11.0.3- version: 11.0.3([email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected]([email protected])))([email protected])([email protected])- autoprefixer:- specifier: 10.4.16- version: 10.4.16([email protected])- cross-env:- specifier: 10.1.0- version: 10.1.0- dotenv:- specifier: 17.2.3- version: 17.2.3- eslint:- specifier: 8.47.0- version: 8.47.0- eslint-plugin-prettier:- specifier: 4.2.1- version: 4.2.1([email protected])([email protected])- eslint-plugin-vue:- specifier: 10.5.1- version: 10.5.1(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected]([email protected]))- npm-run-all:- specifier: 4.1.5- version: 4.1.5- postcss:- specifier: 8.4.32- version: 8.4.32- tailwindcss:- specifier: 3.3.6- typescript:- specifier: 5.9.3- version: 5.9.3- unplugin-fonts:- specifier: 1.1.1- unplugin-icons:- specifier: 0.14.9- version: 0.14.9(@vue/[email protected])([email protected])- unplugin-vue-components:- specifier: 0.21.0- version: 0.21.0(@babel/[email protected])([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected]))([email protected]([email protected]))([email protected]([email protected]))- vite:- specifier: 4.5.0- vite-plugin-html-config:- specifier: 1.0.11- version: 1.0.11([email protected](@types/[email protected])([email protected])([email protected]))- vite-plugin-inspect:- specifier: 0.7.38- version: 0.7.38([email protected])([email protected](@types/[email protected])([email protected])([email protected]))- vite-plugin-pages:- specifier: 0.26.0- version: 0.26.0(@vue/[email protected])([email protected](@types/[email protected])([email protected])([email protected]))- vite-plugin-pages-sitemap:- specifier: 1.6.1- version: 1.6.1- vite-plugin-pwa:- specifier: 1.1.0- version: 1.1.0([email protected](@types/[email protected])([email protected])([email protected]))([email protected](@types/[email protected]))([email protected])- vite-plugin-static-copy:- specifier: 0.12.0- version: 0.12.0([email protected](@types/[email protected])([email protected])([email protected]))- vite-plugin-vue-layouts:- specifier: 0.7.0- version: 0.7.0([email protected](@types/[email protected])([email protected])([email protected]))([email protected]([email protected]([email protected])))([email protected]([email protected]))- vue-tsc:- specifier: 1.8.8- version: 1.8.8([email protected])-packages/hoppscotch-selfhost-web:dependencies:'@fontsource-variable/inter':@@ -1523,6 +1318,9 @@ importers:'@hoppscotch/kernel':specifier: workspace:^version: link:../hoppscotch-kernel+ '@hoppscotch/plugin-appload':+ specifier: github:CuriousCorrelation/tauri-plugin-appload#e05861959938b57479a1a81fa796735ebbd08c7c+ version: '@CuriousCorrelation/plugin-appload@https://codeload.github.com/CuriousCorrelation/tauri-plugin-appload/tar.gz/e05861959938b57479a1a81fa796735ebbd08c7c''@hoppscotch/ui':specifier: 0.2.5version: 0.2.5([email protected])([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected]([email protected]))@@ -1933,18 +1731,9 @@ packages:resolution: {integrity: sha512-J4Jarr0SohdrHcb40gTL4wGPCQ952IMWF1G/MSAQfBAPvA9ZKApYhpxcY7PmehVePve+ujpus1dGsJ7dPxz8Kg==}engines: {node: ^18.19.1 || ^20.11.1 || >=22.0.0, npm: ^6.11.0 || ^7.5.6 || >=8.0.0, yarn: '>= 1.13.0'}- '@antfu/[email protected]':- resolution: {integrity: sha512-LyB/8+bSfa0DFGC06zpCEfs89/XoWZwws5ygEa5D+Xsm3OfI+aXQ86VgVG7Acyef+rSZ5HE7J8rrxzrQeM3PjQ==}-'@antfu/[email protected]':resolution: {integrity: sha512-MGQsmw10ZyI+EJo45CdSER4zEb+p31LpDAFp2Z3gkSd1yqVZGi0Ebx++YTEMonJy4oChEMLsxZ64j8FH6sSqtQ==}- '@antfu/[email protected]':- resolution: {integrity: sha512-CQkeV+oJxUazwjlHD0/3ZD08QWKuGQkhnrKo3e6ly5pd48VUpXbb77q0xMU4+vc2CkJnDS02Eq/M9ugyX20XZA==}-- '@antfu/[email protected]':- resolution: {integrity: sha512-+562v9k4aI80m1+VuMHehNJWLOFjBnXn3tdOitzD0il5b7smkSBal4+a3oKiQTbrwMmN/TBUMDvbdoWDehgOww==}-'@antfu/[email protected]':resolution: {integrity: sha512-Mex9nXf9vR6AhcXmMrlz/HVgYYZpVGJ6YlPgwl7UnaFpnshXs6EK/oa5Gpf3CzENMjkvEx2tQtntGnb7UtSTOQ==}@@ -3168,12 +2957,6 @@ packages:cpu: [arm64]os: [android]- '@esbuild/[email protected]':- resolution: {integrity: sha512-Nz4rJcchGDtENV0eMKUNa6L12zz2zBDXuhj/Vjh18zGqB44Bi7MBMSXjgunJgjRhCmKOjnPuZp4Mb6OKqtMHLQ==}- engines: {node: '>=12'}- cpu: [arm64]- os: [android]-'@esbuild/[email protected]':resolution: {integrity: sha512-6AAmLG7zwD1Z159jCKPvAxZd4y/VTO0VkprYy+3N2FtJ8+BQWFXU+OxARIwA46c5tdD9SsKGZ/1ocqBS/gAKHg==}engines: {node: '>=18'}@@ -3198,12 +2981,6 @@ packages:cpu: [arm]os: [android]- '@esbuild/[email protected]':- resolution: {integrity: sha512-fyi7TDI/ijKKNZTUJAQqiG5T7YjJXgnzkURqmGj13C6dCqckZBLdl4h7bkhHt/t0WP+zO9/zwroDvANaOqO5Sw==}- engines: {node: '>=12'}- cpu: [arm]- os: [android]-'@esbuild/[email protected]':resolution: {integrity: sha512-VJ+sKvNA/GE7Ccacc9Cha7bpS8nyzVv0jdVgwNDaR4gDMC/2TTRc33Ip8qrNYUcpkOHUT5OZ0bUcNNVZQ9RLlg==}engines: {node: '>=18'}@@ -3222,12 +2999,6 @@ packages:cpu: [x64]os: [android]- '@esbuild/[email protected]':- resolution: {integrity: sha512-8GDdlePJA8D6zlZYJV/jnrRAi6rOiNaCC/JclcXpB+KIuvfBN4owLtgzY2bsxnx666XjJx2kDPUmnTtR8qKQUg==}- engines: {node: '>=12'}- cpu: [x64]- os: [android]-'@esbuild/[email protected]':resolution: {integrity: sha512-5jbb+2hhDHx5phYR2By8GTWEzn6I9UqR11Kwf22iKbNpYrsmRB18aX/9ivc5cabcUiAT/wM+YIZ6SG9QO6a8kg==}engines: {node: '>=18'}@@ -3246,12 +3017,6 @@ packages:cpu: [arm64]os: [darwin]- '@esbuild/[email protected]':- resolution: {integrity: sha512-bxRHW5kHU38zS2lPTPOyuyTm+S+eobPUnTNkdJEfAddYgEcll4xkT8DB9d2008DtTbl7uJag2HuE5NZAZgnNEA==}- engines: {node: '>=12'}- cpu: [arm64]- os: [darwin]-'@esbuild/[email protected]':resolution: {integrity: sha512-N3zl+lxHCifgIlcMUP5016ESkeQjLj/959RxxNYIthIg+CQHInujFuXeWbWMgnTo4cp5XVHqFPmpyu9J65C1Yg==}engines: {node: '>=18'}@@ -3270,12 +3035,6 @@ packages:cpu: [x64]os: [darwin]- '@esbuild/[email protected]':- resolution: {integrity: sha512-pc5gxlMDxzm513qPGbCbDukOdsGtKhfxD1zJKXjCCcU7ju50O7MeAZ8c4krSJcOIJGFR+qx21yMMVYwiQvyTyQ==}- engines: {node: '>=12'}- cpu: [x64]- os: [darwin]-'@esbuild/[email protected]':resolution: {integrity: sha512-HQ9ka4Kx21qHXwtlTUVbKJOAnmG1ipXhdWTmNXiPzPfWKpXqASVcWdnf2bnL73wgjNrFXAa3yYvBSd9pzfEIpA==}engines: {node: '>=18'}@@ -3294,12 +3053,6 @@ packages:cpu: [arm64]os: [freebsd]- '@esbuild/[email protected]':- resolution: {integrity: sha512-yqDQHy4QHevpMAaxhhIwYPMv1NECwOvIpGCZkECn8w2WFHXjEwrBn3CeNIYsibZ/iZEUemj++M26W3cNR5h+Tw==}- engines: {node: '>=12'}- cpu: [arm64]- os: [freebsd]-'@esbuild/[email protected]':resolution: {integrity: sha512-gA0Bx759+7Jve03K1S0vkOu5Lg/85dou3EseOGUes8flVOGxbhDDh/iZaoek11Y8mtyKPGF3vP8XhnkDEAmzeg==}engines: {node: '>=18'}@@ -3318,12 +3071,6 @@ packages:cpu: [x64]os: [freebsd]- '@esbuild/[email protected]':- resolution: {integrity: sha512-tgWRPPuQsd3RmBZwarGVHZQvtzfEBOreNuxEMKFcd5DaDn2PbBxfwLcj4+aenoh7ctXcbXmOQIn8HI6mCSw5MQ==}- engines: {node: '>=12'}- cpu: [x64]- os: [freebsd]-'@esbuild/[email protected]':resolution: {integrity: sha512-TGbO26Yw2xsHzxtbVFGEXBFH0FRAP7gtcPE7P5yP7wGy7cXK2oO7RyOhL5NLiqTlBh47XhmIUXuGciXEqYFfBQ==}engines: {node: '>=18'}@@ -3342,12 +3089,6 @@ packages:cpu: [arm64]os: [linux]- '@esbuild/[email protected]':- resolution: {integrity: sha512-2YbscF+UL7SQAVIpnWvYwM+3LskyDmPhe31pE7/aoTMFKKzIc9lLbyGUpmmb8a8AixOL61sQ/mFh3jEjHYFvdA==}- engines: {node: '>=12'}- cpu: [arm64]- os: [linux]-'@esbuild/[email protected]':resolution: {integrity: sha512-8bwX7a8FghIgrupcxb4aUmYDLp8pX06rGh5HqDT7bB+8Rdells6mHvrFHHW2JAOPZUbnjUpKTLg6ECyzvas2AQ==}engines: {node: '>=18'}@@ -3366,12 +3107,6 @@ packages:cpu: [arm]os: [linux]- '@esbuild/[email protected]':- resolution: {integrity: sha512-/5bHkMWnq1EgKr1V+Ybz3s1hWXok7mDFUMQ4cG10AfW3wL02PSZi5kFpYKrptDsgb2WAJIvRcDm+qIvXf/apvg==}- engines: {node: '>=12'}- cpu: [arm]- os: [linux]-'@esbuild/[email protected]':resolution: {integrity: sha512-lPDGyC1JPDou8kGcywY0YILzWlhhnRjdof3UlcoqYmS9El818LLfJJc3PXXgZHrHCAKs/Z2SeZtDJr5MrkxtOw==}engines: {node: '>=18'}@@ -3390,12 +3125,6 @@ packages:cpu: [ia32]os: [linux]- '@esbuild/[email protected]':- resolution: {integrity: sha512-P4etWwq6IsReT0E1KHU40bOnzMHoH73aXp96Fs8TIT6z9Hu8G6+0SHSw9i2isWrD2nbx2qo5yUqACgdfVGx7TA==}- engines: {node: '>=12'}- cpu: [ia32]- os: [linux]-'@esbuild/[email protected]':resolution: {integrity: sha512-0y9KrdVnbMM2/vG8KfU0byhUN+EFCny9+8g202gYqSSVMonbsCfLjUO+rCci7pM0WBEtz+oK/PIwHkzxkyharA==}engines: {node: '>=18'}@@ -3420,12 +3149,6 @@ packages:cpu: [loong64]os: [linux]- '@esbuild/[email protected]':- resolution: {integrity: sha512-nXW8nqBTrOpDLPgPY9uV+/1DjxoQ7DoB2N8eocyq8I9XuqJ7BiAMDMf9n1xZM9TgW0J8zrquIb/A7s3BJv7rjg==}- engines: {node: '>=12'}- cpu: [loong64]- os: [linux]-'@esbuild/[email protected]':resolution: {integrity: sha512-h///Lr5a9rib/v1GGqXVGzjL4TMvVTv+s1DPoxQdz7l/AYv6LDSxdIwzxkrPW438oUXiDtwM10o9PmwS/6Z0Ng==}engines: {node: '>=18'}@@ -3444,12 +3167,6 @@ packages:cpu: [mips64el]os: [linux]- '@esbuild/[email protected]':- resolution: {integrity: sha512-d5NeaXZcHp8PzYy5VnXV3VSd2D328Zb+9dEq5HE6bw6+N86JVPExrA6O68OPwobntbNJ0pzCpUFZTo3w0GyetQ==}- engines: {node: '>=12'}- cpu: [mips64el]- os: [linux]-'@esbuild/[email protected]':resolution: {integrity: sha512-iyRrM1Pzy9GFMDLsXn1iHUm18nhKnNMWscjmp4+hpafcZjrr2WbT//d20xaGljXDBYHqRcl8HnxbX6uaA/eGVw==}engines: {node: '>=18'}@@ -3468,12 +3185,6 @@ packages:cpu: [ppc64]os: [linux]- '@esbuild/[email protected]':- resolution: {integrity: sha512-WHPyeScRNcmANnLQkq6AfyXRFr5D6N2sKgkFo2FqguP44Nw2eyDlbTdZwd9GYk98DZG9QItIiTlFLHJHjxP3FA==}- engines: {node: '>=12'}- cpu: [ppc64]- os: [linux]-'@esbuild/[email protected]':resolution: {integrity: sha512-9meM/lRXxMi5PSUqEXRCtVjEZBGwB7P/D4yT8UG/mwIdze2aV4Vo6U5gD3+RsoHXKkHCfSxZKzmDssVlRj1QQA==}engines: {node: '>=18'}@@ -3492,12 +3203,6 @@ packages:cpu: [riscv64]os: [linux]- '@esbuild/[email protected]':- resolution: {integrity: sha512-WSxo6h5ecI5XH34KC7w5veNnKkju3zBRLEQNY7mv5mtBmrP/MjNBCAlsM2u5hDBlS3NGcTQpoBvRzqBcRtpq1A==}- engines: {node: '>=12'}- cpu: [riscv64]- os: [linux]-'@esbuild/[email protected]':resolution: {integrity: sha512-Zr7KR4hgKUpWAwb1f3o5ygT04MzqVrGEGXGLnj15YQDJErYu/BGg+wmFlIDOdJp0PmB0lLvxFIOXZgFRrdjR0w==}engines: {node: '>=18'}@@ -3516,12 +3221,6 @@ packages:cpu: [s390x]os: [linux]- '@esbuild/[email protected]':- resolution: {integrity: sha512-+8231GMs3mAEth6Ja1iK0a1sQ3ohfcpzpRLH8uuc5/KVDFneH6jtAJLFGafpzpMRO6DzJ6AvXKze9LfFMrIHVQ==}- engines: {node: '>=12'}- cpu: [s390x]- os: [linux]-'@esbuild/[email protected]':resolution: {integrity: sha512-MsKncOcgTNvdtiISc/jZs/Zf8d0cl/t3gYWX8J9ubBnVOwlk65UIEEvgBORTiljloIWnBzLs4qhzPkJcitIzIg==}engines: {node: '>=18'}@@ -3540,12 +3239,6 @@ packages:cpu: [x64]os: [linux]- '@esbuild/[email protected]':- resolution: {integrity: sha512-UYqiqemphJcNsFEskc73jQ7B9jgwjWrSayxawS6UVFZGWrAAtkzjxSqnoclCXxWtfwLdzU+vTpcNYhpn43uP1w==}- engines: {node: '>=12'}- cpu: [x64]- os: [linux]-'@esbuild/[email protected]':resolution: {integrity: sha512-uqZMTLr/zR/ed4jIGnwSLkaHmPjOjJvnm6TVVitAa08SLS9Z0VM8wIRx7gWbJB5/J54YuIMInDquWyYvQLZkgw==}engines: {node: '>=18'}@@ -3576,12 +3269,6 @@ packages:cpu: [x64]os: [netbsd]- '@esbuild/[email protected]':- resolution: {integrity: sha512-iO1c++VP6xUBUmltHZoMtCUdPlnPGdBom6IrO4gyKPFFVBKioIImVooR5I83nTew5UOYrk3gIJhbZh8X44y06A==}- engines: {node: '>=12'}- cpu: [x64]- os: [netbsd]-'@esbuild/[email protected]':resolution: {integrity: sha512-Ld5pTlzPy3YwGec4OuHh1aCVCRvOXdH8DgRjfDy/oumVovmuSzWfnSJg+VtakB9Cm0gxNO9BzWkj6mtO1FMXkQ==}engines: {node: '>=18'}@@ -3612,12 +3299,6 @@ packages:cpu: [x64]os: [openbsd]- '@esbuild/[email protected]':- resolution: {integrity: sha512-e5e4YSsuQfX4cxcygw/UCPIEP6wbIL+se3sxPdCiMbFLBWu0eiZOJ7WoD+ptCLrmjZBK1Wk7I6D/I3NglUGOxg==}- engines: {node: '>=12'}- cpu: [x64]- os: [openbsd]-'@esbuild/[email protected]':resolution: {integrity: sha512-MZyXUkZHjQxUvzK7rN8DJ3SRmrVrke8ZyRusHlP+kuwqTcfWLyqMOE3sScPPyeIXN/mDJIfGXvcMqCgYKekoQw==}engines: {node: '>=18'}@@ -3648,12 +3329,6 @@ packages:cpu: [x64]os: [sunos]- '@esbuild/[email protected]':- resolution: {integrity: sha512-kDbFRFp0YpTQVVrqUd5FTYmWo45zGaXe0X8E1G/LKFC0v8x0vWrhOWSLITcCn63lmZIxfOMXtCfti/RxN/0wnQ==}- engines: {node: '>=12'}- cpu: [x64]- os: [sunos]-'@esbuild/[email protected]':resolution: {integrity: sha512-3wGSCDyuTHQUzt0nV7bocDy72r2lI33QL3gkDNGkod22EsYl04sMf0qLb8luNKTOmgF/eDEDP5BFNwoBKH441w==}engines: {node: '>=18'}@@ -3672,12 +3347,6 @@ packages:cpu: [arm64]os: [win32]- '@esbuild/[email protected]':- resolution: {integrity: sha512-ddYFR6ItYgoaq4v4JmQQaAI5s7npztfV4Ag6NrhiaW0RrnOXqBkgwZLofVTlq1daVTQNhtI5oieTvkRPfZrePg==}- engines: {node: '>=12'}- cpu: [arm64]- os: [win32]-'@esbuild/[email protected]':resolution: {integrity: sha512-rMmLrur64A7+DKlnSuwqUdRKyd3UE7oPJZmnljqEptesKM8wx9J8gx5u0+9Pq0fQQW8vqeKebwNXdfOyP+8Bsg==}engines: {node: '>=18'}@@ -3696,12 +3365,6 @@ packages:cpu: [ia32]os: [win32]- '@esbuild/[email protected]':- resolution: {integrity: sha512-Wv7QBi3ID/rROT08SABTS7eV4hX26sVduqDOTe1MvGMjNd3EjOz4b7zeexIR62GTIEKrfJXKL9LFxTYgkyeu7g==}- engines: {node: '>=12'}- cpu: [ia32]- os: [win32]-'@esbuild/[email protected]':resolution: {integrity: sha512-HkqnmmBoCbCwxUKKNPBixiWDGCpQGVsrQfJoVGYLPT41XWF8lHuE5N6WhVia2n4o5QK5M4tYr21827fNhi4byQ==}engines: {node: '>=18'}@@ -3720,12 +3383,6 @@ packages:cpu: [x64]os: [win32]- '@esbuild/[email protected]':- resolution: {integrity: sha512-kTdfRcSiDfQca/y9QIkng02avJ+NCaQvrMejlsB3RRv5sE9rRoeBPISaZpKxHELzRxZyLvNts1P27W3wV+8geQ==}- engines: {node: '>=12'}- cpu: [x64]- os: [win32]-'@esbuild/[email protected]':resolution: {integrity: sha512-alJC0uCZpTFrSL0CCDjcgleBXPnCrEAhTBILpeAp7M/OFgoqtAetfBzX0xM00MUsVVPpVjlPuMbREqnZCXaTnA==}engines: {node: '>=18'}@@ -3772,10 +3429,6 @@ packages:resolution: {integrity: sha512-Ys+3g2TaW7gADOJzPt83SJtCDhMjndcDMFVQ/Tj9iA1BfJzFKD9mAUXT3OenpuPHbI6P/myECxRJrofUsDx/5g==}engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}- '@eslint/[email protected]':- resolution: {integrity: sha512-d9zaMRSTIKDLhctzH12MtXvJKSSUhaHcjV+2Z+GK+EEY7XKpP5yR4x+N3TAcHTcu963nIr+TMcCb4DBCYX1z6Q==}- engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}-'@eslint/[email protected]':resolution: {integrity: sha512-S26Stp4zCy88tH94QbBv3XCuzRQiZ9yXofEILmglYTh/Ug/a9/umqvgFtYBAo3Lp0nsI/5/qH1CCrbdK3AP1Tw==}engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}@@ -3810,27 +3463,12 @@ packages:'@glideapps/[email protected]':resolution: {integrity: sha512-gXi0awOZLHk3TbW55GZLCPP6O+y/b5X1pBXKBVckFONSwF1z1E5ND2BGJsghQFah+pW7pkkyFb2VhUQI2qhL5w==}- '@graphql-codegen/[email protected]':- resolution: {integrity: sha512-ynWDOsK2yxtFHwcJTB9shoSkUd7YXd6ZE57f0nk7W5cu/nAgxZZpEsnTPEpZB/Mjf14YRGe2uJHQ7AfElHjqUQ==}- peerDependencies:- graphql: ^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0-'@graphql-codegen/[email protected]':resolution: {integrity: sha512-biFdaURX0KTwEJPQ1wkT6BRgNasqgQ5KbCI1a3zwtLtO7XTo7/vKITPylmiU27K5DSOWYnY/1jfSqUAEBuhZrQ==}engines: {node: '>=16'}peerDependencies:graphql: ^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0- '@graphql-codegen/[email protected]':- resolution: {integrity: sha512-A7J7+be/a6e+/ul2KI5sfJlpoqeqwX8EzktaKCeduyVKgOLA6W5t+NUGf6QumBDXU8PEOqXk3o3F+RAwCWOiqA==}- hasBin: true- peerDependencies:- '@parcel/watcher': ^2.1.0- graphql: ^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0- peerDependenciesMeta:- '@parcel/watcher':- optional: true-'@graphql-codegen/[email protected]':resolution: {integrity: sha512-7w3Zq5IFONVOBcyOiP01Nv9WRxGS/TEaBCAb/ALYA3xHq95dqKCpoGnxt/Ut9R18jiS+aMgT0gc8Tr8sHy44jA==}engines: {node: '>=16'}@@ -3852,11 +3490,6 @@ packages:graphql-sock:optional: true- '@graphql-codegen/[email protected]':- resolution: {integrity: sha512-IZbpkhwVqgizcjNiaVzNAzm/xbWT6YnGgeOLwVjm4KbJn3V2jchVtuzHH09G5/WkkLSk2wgbXNdwjM41JxO6Eg==}- peerDependencies:- graphql: ^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0-'@graphql-codegen/[email protected]':resolution: {integrity: sha512-vLTEW0m8LbE4xgRwbFwCdYxVkJ1dBlVJbQyLb9Q7bHnVFgHAP982Xo8Uv7FuPBmON+2IbTjkCqhFLHVZbqpvjQ==}engines: {node: '>=16'}@@ -3875,44 +3508,23 @@ packages:peerDependencies:graphql: ^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0- '@graphql-codegen/[email protected]':- resolution: {integrity: sha512-kln2AZ12uii6U59OQXdjLk5nOlh1pHis1R98cDZGFnfaiAbX9V3fxcZ1MMJkB7qFUymTALzyjZoXXdyVmPMfRg==}- peerDependencies:- graphql: ^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0-'@graphql-codegen/[email protected]':resolution: {integrity: sha512-emOQiHyIliVOIjKVKdsI5MXj312zmRDwmHpyUTZMjfpvxq/UVAHUJIVdVf+lnjjrI+LXBTgMlTWTgHQfmICxjg==}peerDependencies:graphql: ^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0- '@graphql-codegen/[email protected]':- resolution: {integrity: sha512-28GHODK2HY1NhdyRcPP3sCz0Kqxyfiz7boIZ8qIxFYmpLYnlDgiYok5fhFLVSZihyOpCs4Fa37gVHf/Q4I2FEg==}- engines: {node: '>=16'}- peerDependencies:- graphql: ^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0-'@graphql-codegen/[email protected]':resolution: {integrity: sha512-JJypehWTcty9kxKiqH7TQOetkGdOYjY78RHlI+23qB59cV2wxjFFVf8l7kmuXS4cpGVUNfIjFhVr7A1W7JMtdA==}engines: {node: '>=16'}peerDependencies:graphql: ^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0- '@graphql-codegen/[email protected]':- resolution: {integrity: sha512-kZVn0z+th9SvqxfKYgztA6PM7mhnSZaj4fiuBWvMTqA+QqQ9BBed6Pz41KuD/jr0gJtnlr2A4++/0VlpVbCTmQ==}- peerDependencies:- graphql: ^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0-'@graphql-codegen/[email protected]':resolution: {integrity: sha512-jn7Q3PKQc0FxXjbpo9trxzlz/GSFQWxL042l0iC8iSbM/Ar+M7uyBwMtXPsev/3Razk+osQyreghIz0d2+6F7Q==}engines: {node: '>=16'}peerDependencies:graphql: ^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0- '@graphql-codegen/[email protected]':- resolution: {integrity: sha512-VFkhCuJnkgtbbgzoCAwTdJe2G1H6sd3LfCrDqWUrQe53y2ukfSb5Ov1PhAIkCBStKCMQBUY9YgGz9GKR40qQ8g==}- peerDependencies:- graphql: ^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0-'@graphql-codegen/[email protected]':resolution: {integrity: sha512-U1+16S3EWnR4T5b9219pu/47InfDB3UZ2E/CihJXgkeSklNteNBtw3D8m9R+ZanIq/GIsEin2hYpR++PO6neLQ==}engines: {node: '>=16'}@@ -3925,11 +3537,6 @@ packages:peerDependencies:graphql: ^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0- '@graphql-codegen/[email protected]':- resolution: {integrity: sha512-GpUWWdBVUec/Zqo23aFLBMrXYxN2irypHqDcKjN78JclDPdreasAEPcIpMfqf4MClvpmvDLy4ql+djVAwmkjbw==}- peerDependencies:- graphql: ^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0-'@graphql-codegen/[email protected]':resolution: {integrity: sha512-4PpndN6teJ/mN/QxGYhaBwkpN+Q3/lOeM5sArZ5tiDDI4ItxjPRCEm/gOGv52nRHmB6xoQ5/9uqY52KWcf9AWA==}engines: {node: '>=16'}@@ -3940,13 +3547,6 @@ packages:graphql-sock:optional: true- '@graphql-codegen/[email protected]':- resolution: {integrity: sha512-h+Px+Cj/9MMI5I8iQbSoJUWuq7I/hSCG5yM1tur8hzqzaQMbR5FGTwxlPnHFfUljvHj/bVdwYHwvO9p+PaNvww==}- peerDependencies:- '@urql/exchange-graphcache': ^4.1.1 || ^5.0.0- graphql: ^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0- graphql-tag: ^2.0.0-'@graphql-codegen/[email protected]':resolution: {integrity: sha512-ArnNFH/NGQkIhc6R6BLJ//qzudDExMGxiqiOoHolVzqVoxLbxVUFzy9XCeZOx0ZML2IUpBhJPPCzfyUxBkVcQA==}engines: {node: '>= 16.0.0'}@@ -3955,43 +3555,23 @@ packages:graphql: ^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0graphql-tag: ^2.0.0- '@graphql-codegen/[email protected]':- resolution: {integrity: sha512-3YziQ21dCVdnHb+Us1uDb3pA6eG5Chjv0uTK+bt9dXeMlwYBU8MbtzvQTo4qvzWVC1AxSOKj0rgfNu1xCXqJyA==}- peerDependencies:- graphql: ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0-'@graphql-codegen/[email protected]':resolution: {integrity: sha512-NwrUTjKALbeOrFyL/741DP/uRfcHKLD+kYL+e1de+X9b1wa1CfpMIdRIhGTuivuD5y6PYh3VePrE98Q5qz0+Ww==}engines: {node: '>=16'}peerDependencies:graphql: ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0- '@graphql-codegen/[email protected]':- resolution: {integrity: sha512-/KjHSf4dQNoYZZ+G10b3lbw304ik9xHzRf/syNvoYehmwdYE5J7RnO1v1Cz78LDm2NEdsFas6vJHi0sJd/pOHg==}- peerDependencies:- graphql: ^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0-'@graphql-codegen/[email protected]':resolution: {integrity: sha512-SNpC3L3l1aJgacdo2OqaPB0/bj6xwixCXYFrLjraSfgGj12L6o3LhKYS+kEI4jIjr7KkPKAFsPke3C8EqC3Tig==}engines: {node: '>= 16.0.0'}peerDependencies:graphql: ^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0- '@graphql-codegen/[email protected]':- resolution: {integrity: sha512-mD9ufZhDGhyrSaWQGrU1Q1c5f01TeWtSWy/cDwXYjJcHIj1Y/DG2x0tOflEfCvh5WcnmHNIw4lzDsg1W7iFJEg==}- peerDependencies:- graphql: ^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0-'@graphql-codegen/[email protected]':resolution: {integrity: sha512-IQWu99YV4wt8hGxIbBQPtqRuaWZhkQRG2IZKbMoSvh0vGeWb3dB0n0hSgKaOOxDY+tljtOf9MTcUYvJslQucMQ==}peerDependencies:graphql: ^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0- '@graphql-codegen/[email protected]':- resolution: {integrity: sha512-Bi/1z0nHg4QMsAqAJhds+ForyLtk7A3HQOlkrZNm3xEkY7lcBzPtiOTLBtvziwopBsXUxqeSwVjOOFPLS5Yw1Q==}- peerDependencies:- graphql: ^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0-'@graphql-codegen/[email protected]':resolution: {integrity: sha512-8mx5uDDEwhP3G1jdeBdvVm4QhbEdkwXQa1hAXBWGofL87ePs5PUhz4IuQpwiS/CfFa4cqxcAWbe0k74x8iWfKw==}engines: {node: '>=16'}@@ -4138,12 +3718,6 @@ packages:peerDependencies:graphql: ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0- '@graphql-tools/[email protected]':- resolution: {integrity: sha512-uQ4JNcNPsyMkTIgzeSbsoT9hogLjYrZooLUYd173l5eUGUi49EAcsGdiBCKaKfEjanv410FE8hjaHr7fjSRkJw==}- engines: {node: '>=16.0.0'}- peerDependencies:- graphql: ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0-'@graphql-tools/[email protected]':resolution: {integrity: sha512-w8RRhOTS1Qn2/MUWO2ogtLok6/0p15IdAoYfkCW7duCTPWWG/blCtiYNDyrOZahjCuL4WrxL9+JZfj+6nXSpIQ==}engines: {node: '>=20.0.0'}@@ -4228,13 +3802,6 @@ packages:peerDependencies:graphql: ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0- '@graphql-tools/[email protected]':- resolution: {integrity: sha512-fnuTLeQhqRbA156pAyzJYN0KxCjKYRU5bz1q/SKOwElSnAU4k7/G1kyVsWLh7fneY78LoMNH5n+KlFV8iQlnyg==}- engines: {node: '>=16.0.0'}- deprecated: 'This package was intended to be used with an older versions of Prisma.\nThe newer versions of Prisma has a different approach to GraphQL integration.\nTherefore, this package is no longer needed and has been deprecated and removed.\nLearn more: https://www.prisma.io/graphql'- peerDependencies:- graphql: ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0-'@graphql-tools/[email protected]':resolution: {integrity: sha512-mc5VPyTeV+LwiM+DNvoDQfPqwQYhPV/cl5jOBjTgSniyaq8/86aODfMkrE2OduhQ5E00hqrkuL2Fdrgk0w1QJg==}peerDependencies:@@ -4292,11 +3859,6 @@ packages:peerDependencies:graphql: ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0- '@graphql-tools/[email protected]':- resolution: {integrity: sha512-qIh9yYpdUFmctVqovwMdheVNJqFh+DQNWIhX87FJStfXYnmweBUDATok9fWPleKeFwxnW8IapKmY8m8toJEkAw==}- peerDependencies:- graphql: ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0-'@graphql-tools/[email protected]':resolution: {integrity: sha512-WUw506Ql6xzmOORlriNrD6Ugx+HjVgYxt9KCXD9mHAak+eaXSwuGGPyE60hy9xaDEoXKBsG7SkG69ybitaVl6A==}peerDependencies:@@ -4403,15 +3965,9 @@ packages:'@iconify-json/[email protected]':resolution: {integrity: sha512-++HFkqDNu4jqG5+vYT+OcVj9OiuPCw9wQuh8G5QWQnBRSJ9eKwSStiU8ORgOoK07xJsm/0VIHySMniXUUXP9Gw==}- '@iconify/[email protected]':- resolution: {integrity: sha512-Jh0llaK2LRXQoYsorIH8maClebsnzTcve+7U3rQUSnC11X4jtPnFuyatqFLvMxZ8MLG8dB4zfHsbPfuvxluONw==}-'@iconify/[email protected]':resolution: {integrity: sha512-+wluvCrRhXrhyOmRDJ3q8mux9JkKy5SJ/v8ol2tu4FVjyYvtEzkc/3pK15ET6RKg4b4w4BmTk1+gsCUhf21Ykg==}- '@iconify/[email protected]':- resolution: {integrity: sha512-vGeAqo7aGPxOQmGdVoXFUOuyN+0V7Lcrx2EvaiRjxUD1x6Om0Tvq2bdm7E24l2Pz++4S0mWMCVFXe/17EtKImQ==}-'@iconify/[email protected]':resolution: {integrity: sha512-GmQ78prtwYW6EtzXRU1rY+KwOKfz32PD7iJh6Iyqw68GiKuoZ2A6pRtzWONz5VQJbp50mEjXh/7NkumtrAgRKA==}@@ -4579,18 +4135,6 @@ packages:'@types/node':optional: true- '@intlify/[email protected]':- resolution: {integrity: sha512-WkaXfSevtpgtUR4t8K2M6lbR7g03mtOxFeh+vXp5KExvPqS12ppaRj1QxzwRuRI5VUto54A22BjKoBMLyHILWQ==}- engines: {node: '>= 18'}- peerDependencies:- petite-vue-i18n: '*'- vue-i18n: '*'- peerDependenciesMeta:- petite-vue-i18n:- optional: true- vue-i18n:- optional: true-'@intlify/[email protected]':resolution: {integrity: sha512-5l10G5wE2cQRsZMS9y0oSFMOLW5IG/SgbkIUltqnwF1EMRrRbUAHFiPabXdGTHeexCsMTcxj/1w9i0rzjJU9IQ==}engines: {node: '>= 20'}@@ -4628,19 +4172,6 @@ packages:vue-i18n:optional: true- '@intlify/[email protected]':- resolution: {integrity: sha512-QjNhbw7LkPe2vvoO9uDuq/omnHJg5dQUH9YViu+68+puM2ZQnk0sQDyWxnWLZ8+AiB+wDDOfW23t26VupLbiow==}- engines: {node: '>= 18'}- peerDependencies:- petite-vue-i18n: '*'- vue: 3.5.22- vue-i18n: '*'- peerDependenciesMeta:- petite-vue-i18n:- optional: true- vue-i18n:- optional: true-'@intlify/[email protected]':resolution: {integrity: sha512-w0+70CvTmuqbskWfzeYhn0IXxllr6mU+IeM2MU0M+j9OW64jkrvqY+pYFWrUnIIC9bEdij3NICruicwd5EgUuQ==}engines: {node: '>= 18'}@@ -5312,17 +4843,6 @@ packages:resolution: {integrity: sha512-QNqXyfVS2wm9hweSYD2O7F0G06uurj9kZ96TRQE5Y9hU7+tgdZwIkbAKc5Ocy1HxEY2kuDQa6cQ1WRs/O5LFKA==}engines: {node: ^12.20.0 || ^14.18.0 || >=16.0.0}- '@platform/[email protected]':- resolution: {integrity: sha512-Z3lgZYBybBBki0bH2Xr8ceX49okscoowui+nkUWbs7YTWI0Cx8KnW6pwwsOVFJvG8FPEh624ItvAfacEovF6GQ==}- deprecated: pre-release module deprecation-- '@platform/[email protected]':- resolution: {integrity: sha512-Iwdzd/XizT0Gytnpird5aVkImnTSXM1tGHa+RI4XgLVC6ONVGTevGDCtrvY+ABO4B8UxCvVqOcabRFpQ7WwBzw==}-- '@platform/[email protected]':- resolution: {integrity: sha512-zWh8OsTydmUZiwFT2Fqc5BYCzoO9pVVty6nTxC6YS75rWqQ5Ig0VR9ey97h4yV8DUdVXrP2XHH/ADAByHdsktA==}- deprecated: pre-release module deprecation-'@polka/[email protected]':resolution: {integrity: sha512-wwQAWhWSuHaag8c4q/KN/vCoeOJYshAIvMQwD4GpSb3OiZklFfvAgmj0VCBBImRpuF/aFgIRzllXlVX93Jevww==}@@ -5851,22 +5371,12 @@ packages:svelte: ^3.44.0vite: ^3.0.0- '@tauri-apps/[email protected]':- resolution: {integrity: sha512-6unsZDOdlXTmauU3NhWhn+Cx0rODV+rvNvTdvolE5Kls5ybA6cqndQENDt1+FS0tF7ozCP66jwWoH6a5h90BrA==}- engines: {node: '>= 14.6.0', npm: '>= 6.6.0', yarn: '>= 1.19.1'}-'@tauri-apps/[email protected]':resolution: {integrity: sha512-fzUfFFKo4lknXGJq8qrCidkUcKcH2UHhfaaCNt4GzgzGaW2iS26uFOg4tS3H4P8D6ZEeUxtiD5z0nwFF0UN30A==}'@tauri-apps/[email protected]':resolution: {integrity: sha512-qD5tMjh7utwBk9/5PrTA/aGr3i5QaJ/Mlt7p8NilQ45WgbifUNPyKWsA63iQ8YfQq6R8ajMapU+/Q8nMcPRLNw==}- '@tauri-apps/[email protected]':- resolution: {integrity: sha512-NNvG3XLtciCMsBahbDNUEvq184VZmOveTGOuy0So2R33b/6FDkuWaSgWZsR1mISpOuP034htQYW0VITCLelfqg==}- engines: {node: '>= 10'}- cpu: [arm64]- os: [darwin]-'@tauri-apps/[email protected]':resolution: {integrity: sha512-W8FQXZXQmQ0Fmj9UJXNrm2mLdIaLLriKVY7o/FzmizyIKTPIvHjfZALTNybbpTQRbJvKoGHLrW1DNzAWVDWJYg==}engines: {node: '>= 10'}@@ -5879,12 +5389,6 @@ packages:cpu: [arm64]os: [darwin]- '@tauri-apps/[email protected]':- resolution: {integrity: sha512-nkiqmtUQw3N1j4WoVjv81q6zWuZFhBLya/RNGUL94oafORloOZoSY0uTZJAoeieb3Y1YK0rCHSDl02MyV2Fi4A==}- engines: {node: '>= 10'}- cpu: [x64]- os: [darwin]-'@tauri-apps/[email protected]':resolution: {integrity: sha512-zDwu40rlshijt3TU6aRvzPUyVpapsx1sNfOlreDMTaMelQLHl6YoQzSRpLHYwrHrhimxyX2uDqnKIiuGel0Lhg==}engines: {node: '>= 10'}@@ -5897,12 +5401,6 @@ packages:cpu: [x64]os: [darwin]- '@tauri-apps/[email protected]':- resolution: {integrity: sha512-z6SPx+axZexmWXTIVPNs4Tg7FtvdJl9EKxYN6JPjOmDZcqA13iyqWBQal2DA/GMZ1Xqo3vyJf6EoEaKaliymPQ==}- engines: {node: '>= 10'}- cpu: [arm]- os: [linux]-'@tauri-apps/[email protected]':resolution: {integrity: sha512-+Oc2OfcTRwYtW93VJqd/HOk77buORwC9IToj/qsEvM7bTMq6Kda4alpZprzwrCHYANSw+zD8PgjJdljTpe4p+g==}engines: {node: '>= 10'}@@ -5915,12 +5413,6 @@ packages:cpu: [arm]os: [linux]- '@tauri-apps/[email protected]':- resolution: {integrity: sha512-QuQjMQmpsCbzBrmtQiG4uhnfAbdFx3nzm+9LtqjuZlurc12+Mj5MTgqQ3AOwQedH3f7C+KlvbqD2AdXpwTg7VA==}- engines: {node: '>= 10'}- cpu: [arm64]- os: [linux]-'@tauri-apps/[email protected]':resolution: {integrity: sha512-59GqU/J1n9wFyAtleoQOaU0oVIo+kwQynEw4meFDoKRXszKGor6lTsbsS3r0QKLSPbc0o/yYGJhqqCtkYjb/eg==}engines: {node: '>= 10'}@@ -5933,12 +5425,6 @@ packages:cpu: [arm64]os: [linux]- '@tauri-apps/[email protected]':- resolution: {integrity: sha512-8j5dH3odweFeom7bRGlfzDApWVOT4jIq8/214Wl+JeiNVehouIBo9lZGeghZBH3XKFRwEvU23i7sRVjuh2s8mg==}- engines: {node: '>= 10'}- cpu: [arm64]- os: [linux]-'@tauri-apps/[email protected]':resolution: {integrity: sha512-fzvG+jEn5/iYGNH6Z2IRMheYFC4pJdXa19BR9fFm6Bdn2cuajRLDKdUcEME/DCtwqclphXtFZTrT4oezY5vI/A==}engines: {node: '>= 10'}@@ -5963,12 +5449,6 @@ packages:cpu: [riscv64]os: [linux]- '@tauri-apps/[email protected]':- resolution: {integrity: sha512-gbFHYHfdEGW0ffk8SigDsoXks6USpilF6wR0nqB/JbWzbzFR/sBuLVNQlJl1RKNakyJHu+lsFxGy0fcTdoX8xA==}- engines: {node: '>= 10'}- cpu: [x64]- os: [linux]-'@tauri-apps/[email protected]':resolution: {integrity: sha512-tquyEONCNRfqEBWEe4eAHnxFN5yY5lFkCuD4w79XLIovUxVftQ684+xLp7zkhntkt4y20SMj2AgJa/+MOlx4Kg==}engines: {node: '>= 10'}@@ -5981,12 +5461,6 @@ packages:cpu: [x64]os: [linux]- '@tauri-apps/[email protected]':- resolution: {integrity: sha512-9v688ogoLkeFYQNgqiSErfhTreLUd8B3prIBSYUt+x4+5Kcw91zWvIh+VSxL1n3KCGGsM7cuXhkGPaxwlEh1ug==}- engines: {node: '>= 10'}- cpu: [x64]- os: [linux]-'@tauri-apps/[email protected]':resolution: {integrity: sha512-v2cBIB/6ji8DL+aiL5QUykU3ZO8OoJGyx50/qv2HQVzkf85KdaYSis3D/oVRemN/pcDz+vyCnnL3XnzFnDl4JQ==}engines: {node: '>= 10'}@@ -5999,12 +5473,6 @@ packages:cpu: [x64]os: [linux]- '@tauri-apps/[email protected]':- resolution: {integrity: sha512-DRNDXFNZb6y5IZrw+lhTTA9l4wbzO4TNRBAlHAiXUrH+pRFZ/ZJtv5WEuAj9ocVSahVw2NaK5Yaold4NPAxHog==}- engines: {node: '>= 10'}- cpu: [arm64]- os: [win32]-'@tauri-apps/[email protected]':resolution: {integrity: sha512-ZGvBy7nvrHPbE0HeKp/ioaiw8bNgAHxWnb7JRZ4/G0A+oFj0SeSFxl9k5uU6FKnM7bHM23Gd1oeaDex9g5Fceg==}engines: {node: '>= 10'}@@ -6017,12 +5485,6 @@ packages:cpu: [arm64]os: [win32]- '@tauri-apps/[email protected]':- resolution: {integrity: sha512-oUYKNR/IZjF4fsOzRpw0xesl2lOjhsQEyWlgbpT25T83EU113Xgck9UjtI7xemNI/OPCv1tPiaM1e7/ABdg5iA==}- engines: {node: '>= 10'}- cpu: [ia32]- os: [win32]-'@tauri-apps/[email protected]':resolution: {integrity: sha512-UsgIwOnpCoY9NK9/65QiwgmWVIE80LE7SwRYVblGtmlY9RYfsYvpbItwsovA/AcHMTiO+OCvS/q9yLeqS3m6Sg==}engines: {node: '>= 10'}@@ -6035,12 +5497,6 @@ packages:cpu: [ia32]os: [win32]- '@tauri-apps/[email protected]':- resolution: {integrity: sha512-RmEf1os9C8//uq2hbjXi7Vgz9ne7798ZxqemAZdUwo1pv3oLVZSz1/IvZmUHPdy2e6zSeySqWu1D0Y3QRNN+dg==}- engines: {node: '>= 10'}- cpu: [x64]- os: [win32]-'@tauri-apps/[email protected]':resolution: {integrity: sha512-fmw7NrrHE5m49idCvJAx9T9bsupjdJ0a3p3DPCNCZRGANU6R1tA1L+KTlVuUtdAldX2NqU/9UPo2SCslYKgJHQ==}engines: {node: '>= 10'}@@ -6053,11 +5509,6 @@ packages:cpu: [x64]os: [win32]- '@tauri-apps/[email protected]':- resolution: {integrity: sha512-k4Y19oVCnt7WZb2TnDzLqfs7o98Jq0tUoVMv+JQSzuRDJqaVu2xMBZ8dYplEn+EccdR5SOMyzaLBJWu38TVK1A==}- engines: {node: '>= 10'}- hasBin: true-'@tauri-apps/[email protected]':resolution: {integrity: sha512-BQ7iLUXTQcyG1PpzLWeVSmBCedYDpnA/6Cm/kRFGtqjTf/eVUlyYO5S2ee07tLum3nWwDBWTGFZeruO8yEukfA==}engines: {node: '>= 10'}@@ -6230,9 +5681,6 @@ packages:'@types/[email protected]':resolution: {integrity: sha512-sVDA58zAw4eWAffKOaQH5/5j3XeayukzDk+ewSsnv3p4yJEZHCCzMDiZM8e0OUrRvmpGZ85jf4yDHkHsgBNr9Q==}- '@types/[email protected]':- resolution: {integrity: sha512-YJP+w/2khSBwbUSFdGsSqmDvmnN3cCKoPOL7Zjle6s30ZtemkkqhjVfFqGwPN7ASil5VyjE2GtyU/yqYY6mC0A==}-'@types/[email protected]':resolution: {integrity: sha512-0NgftHUcV4v34VhXm8QBSftKVXtbkBG3ViCjs6+eJ5a6y6Mi/jiFGPc1sC7QK+9BFhWrURE3EOggmWaSxL9OzQ==}@@ -6323,9 +5771,6 @@ packages:'@types/[email protected]':resolution: {integrity: sha512-eOunJqu0K1923aExK6y8p6fsihYEn/BYuQ4g0CxAAgFc4b/ZLN4CrsRZ55srTdqoiLzU2B2evC+apEIxprEzkQ==}- '@types/[email protected]':- resolution: {integrity: sha512-FCaLNVZry65jW8x/FDnKgjgkCNQxgc5AYMQwdNn6yW5M+62R+0nt2Y36U43dTNora9hcquemfrY5gxhE5pcilQ==}-'@types/[email protected]':resolution: {integrity: sha512-hKormJbkJqzQGhziax5PItDUTMAM9uE2XXQmM37dyd4hVM+5aVl7oVxMVUiVQn2oCQFN/LKCZdvSM0pFRqbSmQ==}@@ -6344,9 +5789,6 @@ packages:'@types/[email protected]':resolution: {integrity: sha512-rO73L89PJxeYM3s3pPPjiPgVVcymqU490g0YO5n5By0k2Erzj6tay/4lr1CHAAU4JyOWd1rpQ8bCf6cZfHU96A==}- '@types/[email protected]':- resolution: {integrity: sha512-FmgJfu+MOcQ370SD0ev7EI8TlCAfKYU+B4m5T3yXc1CiRN94g/SZPtsCkk506aUDtlMnFZvasDwHHUcZUEaYuA==}-'@types/[email protected]':resolution: {integrity: sha512-Uqt8rPBE8SY0RK8JB1EzVOIZ32uqy8HwdxCnoCOsYrvnswqmFZ/k+9Ikidlk/ImhsdvBsloHbAlewb2IEBV/Og==}@@ -6386,9 +5828,6 @@ packages:'@types/[email protected]':resolution: {integrity: sha512-5d2RhCard1nQUC3aHcq/gHzWYO6K0WJmAbjO7mQJgCQKtZpgXxv1rOM6O/dBDhDYYVutk1sciOgNSe+5YyfM8A==}- '@types/[email protected]':- resolution: {integrity: sha512-v/ZHEj9xh82usl8LMR3GarzFY1IrbXJw5L4QfQhokjRV91q+SelFqxQWSep1ucXEZ22+dSTwLFkXeur25sPIbw==}-'@types/[email protected]':resolution: {integrity: sha512-oIQLCGWtcFZy2JW77j9k8nHzAOpqMHLQejDA48XXMWH6tjCQHz5RCFz1bzsmROyL6PUm+LLnUiI4BCn221inxA==}@@ -6401,17 +5840,6 @@ packages:'@types/[email protected]':resolution: {integrity: sha512-qUHkeCyQFxMXg79wQfTtfndEC+N9ZZg76HJftDJp+qH2tV7Gj4OJi7l+PiWwJ+pWtW8GwSmqsDj/oymhrTWXjg==}- '@typescript-eslint/[email protected]':- resolution: {integrity: sha512-TiZzBSJja/LbhNPvk6yc0JrX9XqhQ0hdh6M2svYfsHGejaKFIAGd9MQ+ERIMzLGlN/kZoYIgdxFV0PuljTKXag==}- engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}- peerDependencies:- '@typescript-eslint/parser': ^5.0.0- eslint: ^6.0.0 || ^7.0.0 || ^8.0.0- typescript: '*'- peerDependenciesMeta:- typescript:- optional: true-'@typescript-eslint/[email protected]':resolution: {integrity: sha512-94EQTWZ40mzBc42ATNIBimBEDltSJ9RQHCC8vc/PDbxi4k8dVwUAv4o98dk50M1zB+JGFxp43FP7f8+FP8R6Sw==}engines: {node: ^18.18.0 || >=20.0.0}@@ -6423,14 +5851,6 @@ packages:typescript:optional: true- '@typescript-eslint/[email protected]':- resolution: {integrity: sha512-molgphGqOBT7t4YKCSkbasmu1tb1MgrZ2szGzHbclF7PNmOkSTQVHy+2jXOSnxvR3+Xe1yySHFZoqMpz3TfQsw==}- engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}- peerDependencies:- '@typescript-eslint/parser': ^8.44.1- eslint: ^8.57.0 || ^9.0.0- typescript: '>=4.8.4 <6.0.0'-'@typescript-eslint/[email protected]':resolution: {integrity: sha512-fe0rz9WJQ5t2iaLfdbDc9T80GJy0AeO453q8C3YCilnGozvOyCG5t+EZtg7j7D88+c3FipfP/x+wzGnh1xp8ZA==}engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}@@ -6439,16 +5859,6 @@ packages:eslint: ^8.57.0 || ^9.0.0typescript: '>=4.8.4 <6.0.0'- '@typescript-eslint/[email protected]':- resolution: {integrity: sha512-VlJEV0fOQ7BExOsHYAGrgbEiZoi8D+Bl2+f6V2RrXerRSylnp+ZBHmPvaIa8cz0Ajx7WO7Z5RqfgYg7ED1nRhA==}- engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}- peerDependencies:- eslint: ^6.0.0 || ^7.0.0 || ^8.0.0- typescript: '*'- peerDependenciesMeta:- typescript:- optional: true-'@typescript-eslint/[email protected]':resolution: {integrity: sha512-4Z+L8I2OqhZV8qA132M4wNL30ypZGYOQVBfMgxDH/K5UX0PNqTu1c6za9ST5r9+tavvHiTWmBnKzpCJ/GlVFtg==}engines: {node: ^18.18.0 || >=20.0.0}@@ -6459,13 +5869,6 @@ packages:typescript:optional: true- '@typescript-eslint/[email protected]':- resolution: {integrity: sha512-EHrrEsyhOhxYt8MTg4zTF+DJMuNBzWwgvvOYNj/zm1vnaD/IC5zCXFehZv94Piqa2cRFfXrTFxIvO95L7Qc/cw==}- engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}- peerDependencies:- eslint: ^8.57.0 || ^9.0.0- typescript: '>=4.8.4 <6.0.0'-'@typescript-eslint/[email protected]':resolution: {integrity: sha512-lJi3PfxVmo0AkEY93ecfN+r8SofEqZNGByvHAI3GBLrvt1Cw6H5k1IM02nSzu0RfUafr2EvFSw0wAsZgubNplQ==}engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}@@ -6473,56 +5876,26 @@ packages:eslint: ^8.57.0 || ^9.0.0typescript: '>=4.8.4 <6.0.0'- '@typescript-eslint/[email protected]':- resolution: {integrity: sha512-ycSa60eGg8GWAkVsKV4E6Nz33h+HjTXbsDT4FILyL8Obk5/mx4tbvCNsLf9zret3ipSumAOG89UcCs/KRaKYrA==}- engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}- peerDependencies:- typescript: '>=4.8.4 <6.0.0'-'@typescript-eslint/[email protected]':resolution: {integrity: sha512-2X4BX8hUeB5JcA1TQJ7GjcgulXQ+5UkNb0DL8gHsHUHdFoiCTJoYLTpib3LtSDPZsRET5ygN4qqIWrHyYIKERA==}engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}peerDependencies:typescript: '>=4.8.4 <6.0.0'- '@typescript-eslint/[email protected]':- resolution: {integrity: sha512-VXuvVvZeQCQb5Zgf4HAxc04q5j+WrNAtNh9OwCsCgpKqESMTu3tF/jhZ3xG6T4NZwWl65Bg8KuS2uEvhSfLl0w==}- engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}-'@typescript-eslint/[email protected]':resolution: {integrity: sha512-jjhdIE/FPF2B7Z1uzc6i3oWKbGcHb87Qw7AWj6jmEqNOfDFbJWtjt/XfwCpvNkpGWlcJaog5vTR+VV8+w9JflA==}engines: {node: ^18.18.0 || >=20.0.0}- '@typescript-eslint/[email protected]':- resolution: {integrity: sha512-NdhWHgmynpSvyhchGLXh+w12OMT308Gm25JoRIyTZqEbApiBiQHD/8xgb6LqCWCFcxFtWwaVdFsLPQI3jvhywg==}- engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}-'@typescript-eslint/[email protected]':resolution: {integrity: sha512-a0TTJk4HXMkfpFkL9/WaGTNuv7JWfFTQFJd6zS9dVAjKsojmv9HT55xzbEpnZoY+VUb+YXLMp+ihMLz/UlZfDg==}engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}- '@typescript-eslint/[email protected]':- resolution: {integrity: sha512-B5OyACouEjuIvof3o86lRMvyDsFwZm+4fBOqFHccIctYgBjqR3qT39FBYGN87khcgf0ExpdCBeGKpKRhSFTjKQ==}- engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}- peerDependencies:- typescript: '>=4.8.4 <6.0.0'-'@typescript-eslint/[email protected]':resolution: {integrity: sha512-ybUAvjy4ZCL11uryalkKxuT3w3sXJAuWhOoGS3T/Wu+iUu1tGJmk5ytSY8gbdACNARmcYEB0COksD2j6hfGK2g==}engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}peerDependencies:typescript: '>=4.8.4 <6.0.0'- '@typescript-eslint/[email protected]':- resolution: {integrity: sha512-xsSQreu+VnfbqQpW5vnCJdq1Z3Q0U31qiWmRhr98ONQmcp/yhiPJFPq8MXiJVLiksmOKSjIldZzkebzHuCGzew==}- engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}- peerDependencies:- eslint: '*'- typescript: '*'- peerDependenciesMeta:- typescript:- optional: true-'@typescript-eslint/[email protected]':resolution: {integrity: sha512-XL0FJXuCLaDuX2sYqZUUSOJ2sG5/i1AAze+axqmLnSkNEVMVYLF+cbwlB2w8D1tinFuSikHmFta+P+HOofrLeA==}engines: {node: ^18.18.0 || >=20.0.0}@@ -6533,13 +5906,6 @@ packages:typescript:optional: true- '@typescript-eslint/[email protected]':- resolution: {integrity: sha512-KdEerZqHWXsRNKjF9NYswNISnFzXfXNDfPxoTh7tqohU/PRIbwTmsjGK6V9/RTYWau7NZvfo52lgVk+sJh0K3g==}- engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}- peerDependencies:- eslint: ^8.57.0 || ^9.0.0- typescript: '>=4.8.4 <6.0.0'-'@typescript-eslint/[email protected]':resolution: {integrity: sha512-QC9RiCmZ2HmIdCEvhd1aJELBlD93ErziOXXlHEZyuBo3tBiAZieya0HLIxp+DoDWlsQqDawyKuNEhORyku+P8A==}engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}@@ -6547,31 +5913,14 @@ packages:eslint: ^8.57.0 || ^9.0.0typescript: '>=4.8.4 <6.0.0'- '@typescript-eslint/[email protected]':- resolution: {integrity: sha512-87NVngcbVXUahrRTqIK27gD2t5Cu1yuCXxbLcFtCzZGlfyVWWh8mLHkoxzjsB6DDNnvdL+fW8MiwPEJyGJQDgQ==}- engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}-'@typescript-eslint/[email protected]':resolution: {integrity: sha512-iZqi+Ds1y4EDYUtlOOC+aUmxnE9xS/yCigkjA7XpTKV6nCBd3Hp/PRGGmdwnfkV2ThMyYldP1wRpm/id99spTQ==}engines: {node: ^18.18.0 || >=20.0.0}- '@typescript-eslint/[email protected]':- resolution: {integrity: sha512-Lk7uj7y9uQUOEguiDIDLYLJOrYHQa7oBiURYVFqIpGxclAFQ78f6VUOM8lI2XEuNOKNB7XuvM2+2cMXAoq4ALQ==}- engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}-'@typescript-eslint/[email protected]':resolution: {integrity: sha512-nHAE6bMKsizhA2uuYZbEbmp5z2UpffNrPEqiKIeN7VsV6UY/roxanWfoRrf6x/k9+Obf+GQdkm0nPU+vnMXo9A==}engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}- '@typescript-eslint/[email protected]':- resolution: {integrity: sha512-CmcQ6uY7b9y694lKdRB8FEel7JbU/40iSAPomu++SjLMntB+2Leay2LO6i8VnJk58MtE9/nQSFIH6jpyRWyYzA==}- engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}- peerDependencies:- typescript: '*'- peerDependenciesMeta:- typescript:- optional: true-'@typescript-eslint/[email protected]':resolution: {integrity: sha512-aP1v/BSPnnyhMHts8cf1qQ6Q1IFwwRvAQGRvBFkWlo3/lH29OXA3Pts+c10nxRxIBrDnoMqzhgdwVe5f2D6OzA==}engines: {node: ^18.18.0 || >=20.0.0}@@ -6581,37 +5930,18 @@ packages:typescript:optional: true- '@typescript-eslint/[email protected]':- resolution: {integrity: sha512-qnQJ+mVa7szevdEyvfItbO5Vo+GfZ4/GZWWDRRLjrxYPkhM+6zYB2vRYwCsoJLzqFCdZT4mEqyJoyzkunsZ96A==}- engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}- peerDependencies:- typescript: '>=4.8.4 <6.0.0'-'@typescript-eslint/[email protected]':resolution: {integrity: sha512-k6ti9UepJf5NpzCjH31hQNLHQWupTRPhZ+KFF8WtTuTpy7uHPfeg2NM7cP27aCGajoEplxJDFVCEm9TGPYyiVg==}engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}peerDependencies:typescript: '>=4.8.4 <6.0.0'- '@typescript-eslint/[email protected]':- resolution: {integrity: sha512-n8oxjeb5aIbPFEtmQxQYOLI0i9n5ySBEY/ZEHHZqKQSFnxio1rv6dthascc9dLuwrL0RC5mPCxB7vnAVGAYWAQ==}- engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}- peerDependencies:- eslint: ^6.0.0 || ^7.0.0 || ^8.0.0-'@typescript-eslint/[email protected]':resolution: {integrity: sha512-kK0/rNa2j74XuHVcoCZxdFBMF+aq/vH83CXAOHieC+2Gis4mF8jJXT5eAfyD3K0sAxtPuwxaIOIOvhwzVDt/kw==}engines: {node: ^18.18.0 || >=20.0.0}peerDependencies:eslint: ^8.56.0- '@typescript-eslint/[email protected]':- resolution: {integrity: sha512-DpX5Fp6edTlocMCwA+mHY8Mra+pPjRZ0TfHkXI8QFelIKcbADQz1LUPNtzOFUriBB2UYqw4Pi9+xV4w9ZczHFg==}- engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}- peerDependencies:- eslint: ^8.57.0 || ^9.0.0- typescript: '>=4.8.4 <6.0.0'-'@typescript-eslint/[email protected]':resolution: {integrity: sha512-g7XrNf25iL4TJOiPqatNuaChyqt49a/onq5YsJ9+hXeugK+41LVg7AxikMfM02PC6jbNtZLCJj6AUcQXJS/jGQ==}engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}@@ -6619,18 +5949,10 @@ packages:eslint: ^8.57.0 || ^9.0.0typescript: '>=4.8.4 <6.0.0'- '@typescript-eslint/[email protected]':- resolution: {integrity: sha512-07ny+LHRzQXepkGg6w0mFY41fVUNBrL2Roj/++7V1txKugfjm/Ci/qSND03r2RhlJhJYMcTn9AhhSSqQp0Ysyw==}- engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}-'@typescript-eslint/[email protected]':resolution: {integrity: sha512-cDF0/Gf81QpY3xYyJKDV14Zwdmid5+uuENhjH2EqFaF0ni+yAyq/LzMaIJdhNJXZI7uLzwIlA+V7oWoyn6Curg==}engines: {node: ^18.18.0 || >=20.0.0}- '@typescript-eslint/[email protected]':- resolution: {integrity: sha512-576+u0QD+Jp3tZzvfRfxon0EA2lzcDt3lhUbsC6Lgzy9x2VR4E+JUiNyGHi5T8vk0TV+fpJ5GLG1JsJuWCaKhw==}- engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}-'@typescript-eslint/[email protected]':resolution: {integrity: sha512-SIV3/6eftCy1bNzCQoPmbWsRLujS8t5iDIZ4spZOBHqrM+yfX2ogg8Tt3PDTAVKw3sSCiUgg30uOAvK2r9zGjQ==}engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}@@ -6782,13 +6104,6 @@ packages:terser: ^5.16.0vite: ^7.0.0- '@vitejs/[email protected]':- resolution: {integrity: sha512-tUBEtWcF7wFtII7ayNiLNDTCE1X1afySEo+XNVMNkFXaThENyCowIEX095QqbJZGTgoOcSVDJGlnde2NG4jtbQ==}- engines: {node: ^14.18.0 || >=16.0.0}- peerDependencies:- vite: ^4.0.0- vue: 3.5.22-'@vitejs/[email protected]':resolution: {integrity: sha512-iHmwV3QcVGGvSC1BG5bZ4z6iwa1SOpAPWmnjOErd4Ske+lZua5K9TtAVdx0gMBClJ28DViCbSmZitjWZsWO3LA==}engines: {node: ^20.19.0 || >=22.12.0}@@ -6873,17 +6188,6 @@ packages:'@vue/[email protected]':resolution: {integrity: sha512-sGhTPMuXqZ1rVOk32RylztWkfXTRhuS7vgAKv0zjqk8gbsHkJ7xfFf+jbySxt7tWObEJwyKaHMikV/WGDiQm8g==}- '@vue/[email protected]':- resolution: {integrity: sha512-dkt6W0PX6H/4Xuxg/BlFj5xHvksjpSlVjtkQCpaYJBIEuKj2hOVU7r+TIe+ysCwRYFz/lGqvklntRkCAibsbPw==}- engines: {node: ^14.17.0 || >=16.0.0}- peerDependencies:- eslint: ^6.2.0 || ^7.0.0 || ^8.0.0- eslint-plugin-vue: ^9.0.0- typescript: '*'- peerDependenciesMeta:- typescript:- optional: true-'@vue/[email protected]':resolution: {integrity: sha512-MHh9SncG/sfqjVqjcuFLOLD6Ed4dRAis4HNt0dXASeAuLqIAx4YMB1/m2o4pUKK1vCt8fUvYG8KKX2Ot3BVZTg==}engines: {node: ^18.18.0 || >=20.0.0}@@ -6948,9 +6252,6 @@ packages:'@vue/[email protected]':resolution: {integrity: sha512-jUnmMB6egu5wl342eaUH236v8tdcEPXXkPgj+eI/F6JwW/lb+yAU6U07ZbQ3MVabZRlupIlPESB7ajgAGixhow==}- '@vueuse/[email protected]':- resolution: {integrity: sha512-z/tI2eSvxwLRjOhDm0h/SXAjNm8N5ld6/SC/JQs6o6kpJ6Ya50LnEL8g5hoYu005i28L0zqB5L5yAl8Jl26K3A==}-'@vueuse/[email protected]':resolution: {integrity: sha512-d6tKRWkZE8IQElX2aHBxXOMD478fHIYV+Dzm2y9Ag122ICBpNKtGICiXKOhWU3L1kKdttDD9dCMS4bGP3jhCTQ==}peerDependencies:@@ -6967,18 +6268,12 @@ packages:vue:optional: true- '@vueuse/[email protected]':- resolution: {integrity: sha512-fEbElR+MaIYyCkeM0SzWkdoMtOpIwO72x8WsZHRE7IggiOlILttqttM69AS13nrDxosnDBYdyy3C5mR1LCxHsw==}-'@vueuse/[email protected]':resolution: {integrity: sha512-6yoGqbJcMldVCevkFiHDBTB1V5Hq+G/haPlGIuaFZHpXC0HADB0EN1ryQAAceiW+ryS3niUwvdFbGiqHqBrfVA==}'@vueuse/[email protected]':resolution: {integrity: sha512-IwSfzH80bnJMzqhaapqJl9JRIiyQU0zsRGEgnxN6jhq7992cPUJIRfV+JHRIZXjYqbwt07E1gTEp0R0zPJ1aqw==}- '@vueuse/[email protected]':- resolution: {integrity: sha512-18iyxbbHYLst9MqU1X1QNdMHIjks6wC7XTVf0KNOv5es/Ms6gjVFCAAWTVP2JStuGqydg3DT+ExpFORUEi9yhg==}-'@vueuse/[email protected]':resolution: {integrity: sha512-mTCA0uczBgurRlwVaQHfG0Ja7UdGe4g9mwffiJmvLiTtp1G4AQyIjej6si/k8c8pUwTfVpNufck+23gXptPAkw==}peerDependencies:@@ -7135,10 +6430,6 @@ packages:resolution: {integrity: sha512-MnA+YT8fwfJPgBx3m60MNqakm30XOkyIoH1y6huTQvC0PwZG7ki8NacLBcrPbNoo8vEZy7Jpuk7+jMO+CUovTQ==}engines: {node: '>= 14'}- resolution: {integrity: sha512-4I7Td01quW/RpocfNayFdFVk1qSuoh0E7JrbRJ16nH01HhKFQ88INq9Sd+nd72zqRySlr9BmDA8xlEJ6vJMrYA==}- engines: {node: '>=8'}-resolution: {integrity: sha512-mv00Te6nmYbRp5DCwclxtt7yV/joXJPGS7nM+97GdxvuttCOfgI3K4U25zboyeX0O+myI8ERluxQe5wljMmVIw==}peerDependencies:@@ -7295,10 +6586,6 @@ packages:resolution: {integrity: sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==}engines: {node: '>=12'}- resolution: {integrity: sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ==}- engines: {node: '>=8'}-resolution: {integrity: sha512-hsU18Ae8CDTR6Kgu9DYf0EbCr/a5iGL0rytQDobUcdpYOKokk8LEjVphnXkDkgpi0wYVsqrXuP0bZxJaTqdgoA==}engines: {node: '>= 0.4'}@@ -7320,13 +6607,6 @@ packages:resolution: {integrity: sha512-Hdw8qdNiqdJ8LqT0iK0sVzkFbzg6fhnQqqfWhBDxcHZvU75+B+ayzTy8x+k5Ix0Y92XOhOUlx74ps+bA6BeYMQ==}engines: {node: '>=8'}- resolution: {integrity: sha512-7vd3UC6xKp0HLfua5IjZlcXvGAGy7cBAXTg2lyQ/8WpNhd6SiZ8Be+xm3FyBSYJx5GKcpRCzBh7RH4/0dnY+uQ==}- engines: {node: ^10 || ^12 || >=14}- hasBin: true- peerDependencies:- postcss: ^8.1.0-resolution: {integrity: sha512-O+A6LWV5LDHSJD3LjHYoNi4VLsj/Whi7k6zG12xTYaU4cQ8oxQGckXNX8cRHK5yOZ/ppVHe0ZBXGzSV9jXdVbQ==}engines: {node: ^10 || ^12 || >=14}@@ -7351,9 +6631,6 @@ packages:resolution: {integrity: sha512-VPk9ebNqPcy5lRGuSlKx752IlDatOjT9paPlm8A7yOuW2Fbvp4X3JznJtT4f0GzGLLiWE9W8onz51SqLYwzGaA==}- resolution: {integrity: sha512-ls4GYBm5aig9vWx8AWDSGLpnpDQRtWAfrjU+EuytuODrFBkqesN2RkOQCBzrA1RQNHw1SmRMSDDDSwzNAYQ6Rg==}-resolution: {integrity: sha512-0YiBEOxWqKkSQWL9nNGGEgndoeL0ZpWrbLMNL5u/Kaxrli3Eaxlt3ZtIDktEvXt4L/R9r3ODr2zKwGM/2BjxVw==}engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0}@@ -7438,10 +6715,6 @@ packages:resolution: {integrity: sha512-RKshQI1R3YQ+n9YJz2QQ147P66ELpa1FQEg20Dk8oW9t2KgLbpDLLp9aGZ7y8WHSshDknG0bknqGw5/tyCs5tw==}- resolution: {integrity: sha512-QxD8cf2eVqJOOz63z6JIN9BzvVs/dlySa5HGSBH5xtR8dPteIRQnBxxKqkNTiT6jbDTF6jAfrd4oMcND9RGbQg==}- engines: {node: '>=0.6'}-resolution: {integrity: sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==}engines: {node: '>=8'}@@ -7469,10 +6742,6 @@ packages:resolution: {integrity: sha512-9gYgQKXx+1nP8mP7CzFyaUARhg7D3n1dF/FnErWmu9l6JvGpNUN278h0aSb+QjoiKSWG+iZ3uHrcqk0qrY9RQQ==}engines: {node: '>=10'}- resolution: {integrity: sha512-z0M+byMThzQmD9NILRniCUXYsYpjwnlO8N5uCFaCqIOpqRsJCrQL9NK3JsD67CN5a08nF5oIL2bD6loTdHOuKw==}- engines: {node: '>= 5.10.0'}-resolution: {integrity: sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==}@@ -7523,10 +6792,6 @@ packages:resolution: {integrity: sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==}- resolution: {integrity: sha512-PKA4BeSvBpQKQ8iPOGCSiell+N8P+Tf1DlwqmYhpe2gAhKPHn8EYOxVT+ShuGmhg8lN8XiSlS80yiExKXrURlw==}- engines: {node: '>=12'}-resolution: {integrity: sha512-tjwM5exMg6BGRI+kNmTntNsvdZS1X8BFYS6tnJ2hdH0kVxM6/eVZ2xy+FqStSWvYmtfFMDLIxurorHwDKfDz5Q==}engines: {node: '>=18'}@@ -7620,9 +6885,6 @@ packages:resolution: {integrity: sha512-7NzBL0rN6fMUW+f7A6Io4h40qQlG+xGmtMxfbnH/K7TAtt8JQWVQK+6g0UXKMeVJoyV5EkkNsErQ8pVD3bLHbA==}engines: {node: ^12.17.0 || ^14.13 || >=16.0.0}- resolution: {integrity: sha512-CWVm2uT7dmSHdO/z1CXT/n47mWonyypzBbuCy5tN7uMg22BsfkhwT6oHmFCAk+gL1LOOxhdbB9SZz3J1KTY3gA==}-resolution: {integrity: sha512-3+GIFhk3sNuvFAJKU46o26OdzudQlPNBCu1ZQi3cMeMHhty1bhDxu2WrEilVNYaGvqUtR1VSigFcJOiS13dRhQ==}@@ -7692,10 +6954,6 @@ packages:resolution: {integrity: sha512-3kMVRF2io8N8pY1IFIXlho9r8IPUUIfHe2hYVtiebvAzU2XeQFXTv+XI4WX+TnXmtwXMDcjngcpkiPM0O9PvLw==}- resolution: {integrity: sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A==}- engines: {node: '>=6'}-resolution: {integrity: sha512-y4coMcylgSCdVinjiDBuR8PCC2bLjyGTwEmPb9NHR/QaNU6EUOXcTY/s6VjGMD6ENSEaeQYHCY0GNGS5jfMwPw==}engines: {node: '>=6'}@@ -7716,18 +6974,10 @@ packages:resolution: {integrity: sha512-+W/5efTR7y5HRD7gACw9yQjqMVvEMLBHmboM/kPWam+H+Hmyrgjh6YncVKK122YZkXrLudzTuAukUw9FnMf7IQ==}engines: {node: 10.* || >= 12.*}- resolution: {integrity: sha512-n8fOixwDD6b/ObinzTrp1ZKFzbgvKZvuz/TvejnLn1aQfC6r52XEx85FmuC+3HI+JM7coBRXUvNqEU2PHVrHpg==}- engines: {node: '>=8'}-resolution: {integrity: sha512-SroPvNHxUnk+vIW/dOSfNqdy1sPEFkrTk6TUtqLCnBlo3N7TNYYkzzN7uSD6+jVjrdO4+p8nH7JzH6cIvUem6A==}engines: {node: '>=20'}- resolution: {integrity: sha512-FxqpkPPwu1HjuN93Omfm4h8uIanXofW0RxVEW3k5RKx+mJJYSthzNhp32Kzxxy3YAEZ/Dc/EWN1vZRY0+kOhbw==}- engines: {node: '>= 10'}-resolution: {integrity: sha512-ouuZd4/dm2Sw5Gmqy6bGyNNNe1qt9RpmxveLSO7KcgsTnU7RXfsw+/bukWGo1abgBiMAic068rclZsO4IWmmxQ==}engines: {node: '>= 12'}@@ -8088,9 +7338,6 @@ packages:resolution: {integrity: sha512-e/1zu3xH5MQryN2zdVaF0OrdNLUbvWxzMbi+iNA6Bky7l1RoP8a2fIbRocyHclXt/arDrrR6lL3TqFD9pMQTsg==}- resolution: {integrity: sha512-XRRe6Glud4rd/ZGQfiV1ruXSfbvfJedlV9Y6zOlP+2K04vBYiJEte6stfFkCP03aMnY5tsipamumUjL14fofug==}-resolution: {integrity: sha512-Xks6RUDLZFdz8LIdR6q0MTH44k7FikOmnh5xkSjMig6ch45afc8sjTjRQf3P6ax8dMgcQrYO/AR2RGWURrruqw==}engines: {node: '>=18'}@@ -8152,10 +7399,6 @@ packages:babel-plugin-macros:optional: true- resolution: {integrity: sha512-ZIwpnevOurS8bpT4192sqAowWM76JDKSHYzMLty3BZGSswgq6pBaH3DhCSW5xVAZICZyKdOBPjwww5wfgT/6PA==}- engines: {node: '>= 0.4'}-resolution: {integrity: sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==}engines: {node: '>=4.0.0'}@@ -8171,18 +7414,10 @@ packages:resolution: {integrity: sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==}engines: {node: '>=0.10.0'}- resolution: {integrity: sha512-OZ1y3y0SqSICtE8DE4S8YOE9UZOJ8wO16fKWVP5J1Qz42kV9jcnMVFrEE/noXb/ss3Q4pZIH79kxofzyNNtUNA==}- engines: {node: '>=12'}-resolution: {integrity: sha512-x1VCxdX4t+8wVfd1so/9w+vQ4vx7lKd2Qp5tDRutErwmR85OgmfX7RlLRMWafRMY7hbEiXIbudNrjOAPa/hL8Q==}engines: {node: '>=18'}- resolution: {integrity: sha512-wX5pXO1+BrhMkSbROFsyxUm0i/cJEScyNhA4PPxc41ICuv05ZZB/MX28s8aZx6xjmatvebIapF6hLEKEcpneUA==}- engines: {node: '>=14.16'}-resolution: {integrity: sha512-XDuvSq38Hr1MdN47EDvYtx3U0MTqpCEn+F6ft8z2vYDzMrvQhVp0ui9oQdqW3MvK3vqUETglt1tVGgjLuJ5izg==}engines: {node: '>=18'}@@ -8476,9 +7711,6 @@ packages:resolution: {integrity: sha512-sqQamAnR14VgCr1A618A3sGrygcpK+HEbenA/HiEAkkUwcZIIB/tgWqHFxWgOyDh4nB4JCRimh79dR5Ywc9MDQ==}- resolution: {integrity: sha512-xHku1X40RO+fO8yJ8Wh2f2rZWVjqyhb1zgq1yZ8aZRQkv6OOKhKWRUaht3eSCUbAOBaKIgM+ykwFLE+QUxgGeg==}-resolution: {integrity: sha512-5qucVt2XcuGMcEGgWI7i+yZpmpByQ8J1lHhcL7PwqCwu9FPP3VUXzT4ltHe5i2z9dePwEHcDVOAfSnHsOlCXRA==}@@ -8494,9 +7726,6 @@ packages:resolution: {integrity: sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==}engines: {node: '>= 0.4'}- resolution: {integrity: sha512-sPZmqHBe6JIiTfN5q2pEi//TwxmAFHwj/XEuYjTuse78i8KxaqMTTzxPoFKuzRpDpTJ+0NAbpfenkmH2rePtuw==}-resolution: {integrity: sha512-jEQoCwk8hyb2AZziIOLhDqpm5+2ww5uIE6lkO/6jcOCusfk6LhMHpXXfBLXTZ7Ydyt0j4VoUQv6uGNYbdW+kBA==}@@ -8645,11 +7874,6 @@ packages:engines: {node: '>=12'}hasBin: true- resolution: {integrity: sha512-ceqxoedUrcayh7Y7ZX6NdbbDzGROiyVBgC4PriJThBKSVPWnnFHZAkfI1lJT8QFkOwH4qOS2SJkS4wvpGl8BpA==}- engines: {node: '>=12'}- hasBin: true-resolution: {integrity: sha512-bbPBYYrtZbkt6Os6FiTLCTFxvq4tt3JKall1vRwshA3fdVztsLAatFaZobhkBC8/BrPetoa0oksYoKXoG4ryJg==}engines: {node: '>=18'}@@ -8698,17 +7922,6 @@ packages:peerDependencies:eslint: '>=7.0.0'- resolution: {integrity: sha512-f/0rXLXUt0oFYs8ra4w49wYZBG5GKZpAYsJSm6rnYL5uVDjd+zowwMwVZHnAjf4edNrKpCDYfXDgmRE/Ak7QyQ==}- engines: {node: '>=12.0.0'}- peerDependencies:- eslint: '>=7.28.0'- eslint-config-prettier: '*'- prettier: '>=2.0.0'- peerDependenciesMeta:- eslint-config-prettier:- optional: true-resolution: {integrity: sha512-swNtI95SToIz05YINMA6Ox5R057IMAmWZ26GqPxusAp1TZzj+IdY9tXNWWD3vkF/wEqydCONcwjTFpxybBqZsg==}engines: {node: ^14.18.0 || >=16.0.0}@@ -8757,12 +7970,6 @@ packages:resolution: {integrity: sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==}engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}- resolution: {integrity: sha512-spUQWrdPt+pRVP1TTJLmfRNJJHHZryFmptzcafwSvHsceV81djHOdnEeDmkdotZyLNjDhrOasNK8nikkoG1O8Q==}- engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}- deprecated: This version is no longer supported. Please see https://eslint.org/version-support for other options.- hasBin: true-resolution: {integrity: sha512-dZ6+mexnaTIbSBZWgou51U6OmzIhYM2VcNdtiTtI7qPNZm35Akpr0f6vtw3w1Kmn5PYo+tZVfh13WrhpS6oLqQ==}engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}@@ -8869,10 +8076,6 @@ packages:resolution: {integrity: sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==}engines: {node: '>=10'}- resolution: {integrity: sha512-UduyVP7TLB5IcAQl+OzLyLcS/l32W/GLg+AhHJ+ow40FOk2U3SAllPwR44v4vmdFwIWqpdwxxpQbF1n5ta9seA==}- engines: {node: ^14.18.0 || ^16.14.0 || >=18.0.0}-resolution: {integrity: sha512-+I6B/IkJc1o/2tiURyz/ivu/O0nKNEArIUB5O7zBrlDVJr22SCLH3xTeEry428LvFhRzIA1g8izguxJ/gbNcVQ==}engines: {node: '>= 0.8.0'}@@ -8988,10 +8191,6 @@ packages:resolution: {integrity: sha512-cPJU47OaAoCbg0pBvzsgpTPhmhqI5eJjh/JIu8tPj5q+T7iLvW/JAYUqmE7KOB4R1ZyEhzBaIQpQpardBF5z8A==}- resolution: {integrity: sha512-yaduQFRKLXYOGgEn6AZau90j3ggSOyiqXU0F9JZfeXYhNa+Jk4X+s45A2zg5jns87GAFa34BBm2kXw4XpNcbdg==}- engines: {node: '>=8'}-resolution: {integrity: sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==}engines: {node: ^10.12.0 || >=12.0.0}@@ -9093,9 +8292,6 @@ packages:resolution: {integrity: sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==}engines: {node: '>= 0.6'}- resolution: {integrity: sha512-by7U5W8dkIzcvDofUcO42yl9JbnHTEDBrzu3pt5fKT+Z4Oy85I21K80EYJYdjQGC2qum4Vo55Ag57iiIK4FYuA==}-resolution: {integrity: sha512-LaI+KaX2NFkfn1ZGHoKCmcfv7yrZsC3b8NtWsTVQeHkq4F27vI5igUuO53sxqDEa2gNQMHFPmpojDw/1zmUK7w==}@@ -9116,10 +8312,6 @@ packages:resolution: {integrity: sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==}engines: {node: '>=12'}- resolution: {integrity: sha512-Xr9F6z6up6Ws+NjzMCZc6WXg2YFRlrLP9NQDO3VQrWrfiojdhS56TzueT88ze0uBdCTwEIhQ3ptnmKeWGFAe0A==}- engines: {node: '>=14.14'}-resolution: {integrity: sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==}engines: {node: '>=10'}@@ -9327,11 +8519,6 @@ packages:peerDependencies:graphql-subscriptions: ^1.0.0 || ^2.0.0 || ^3.0.0- resolution: {integrity: sha512-p+XPfS4q7aIpKVcgmnZKhMNqhltk20hfXtkaIkTfjjmiKMJ5xrt5c743cL03y/K7y1rg3WrIC49xGiEQ4mxdNw==}- peerDependencies:- graphql: 14 - 16-resolution: {integrity: sha512-kZCdevgmzDjGAOqH7GlDmQXYAkuHoKpMlJrqF40HMPhUhM5ZWSFSxCwD/nSi6AkaijmMfsFhoJRGJ27UseCvRA==}peerDependencies:@@ -9538,10 +8725,6 @@ packages:resolution: {integrity: sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==}engines: {node: '>=10.17.0'}- resolution: {integrity: sha512-nZXjEF2nbo7lIw3mgYjItAfgQXog3OjJogSbKa2CQIIvSGWcKgeJnQlNXip6NglNzYH45nSRiEVimMvYL8DDqQ==}- engines: {node: '>=14.18.0'}-resolution: {integrity: sha512-5gs5ytaNjBrh5Ow3zrvdUUY+0VxIuWVL4i9irt6friV+BqdCfmV11CQTWMiBYWHbXhco+J1kHfTOUkePhCDvMA==}engines: {node: '>=18'}@@ -9599,10 +8782,6 @@ packages:resolution: {integrity: sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==}engines: {node: '>=0.8.19'}- resolution: {integrity: sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==}- engines: {node: '>=8'}-resolution: {integrity: sha512-i0G7hLJ1z0DE8dsqJa2rycj9dBmNKgXBvotXtZYXakU9oivfB9Uj2ZBC27qqef2U58/ZLwalxa1X/RDCdkHtVg==}@@ -9619,10 +8798,6 @@ packages:resolution: {integrity: sha512-QQnnxNyfvmHFIsj7gkPcYymR8Jdw/o7mp5ZFihxn6h8Ci6fh3Dx4E1gPjpQEpIuPo9XVNY/ZUwh4BPMjGyL01g==}engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0}- resolution: {integrity: sha512-UjOaSel/iddGZJ5xP/Eixh6dY1XghiBw4XK13rCCIJcJfyhhoul/7KhLLUGtebEj6GDYM6Vnx/mVsjx2L/mFIA==}- engines: {node: '>=12.0.0'}-resolution: {integrity: sha512-42FvUCwQcHg8OSr2EtppkfByPVQFhBgaxhpu7zslnvQXtf/tLU568xmAxI6fMIY0S69u2J2SyIli3x7qm+9r2w==}deprecated: Package no longer supported. Use at your own risk.@@ -9822,10 +8997,6 @@ packages:resolution: {integrity: sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==}engines: {node: '>=8'}- resolution: {integrity: sha512-LnQR4bZ9IADDRSkvpqMGvt/tEJWclzklNgSw48V5EAaAeDd6qGvN8ei6k5p0tvxSR171VmGyHuTiAOfxAbr8kA==}- engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}-resolution: {integrity: sha512-BtEeSsoaQjlSPBemMQIrY1MY0uM6vnS1g5fmufYOtnxLGUZM2178PKbhsk7Ffv58IX+ZtcvoGwccYsh0PglkAA==}engines: {node: '>= 0.4'}@@ -10117,9 +9288,6 @@ packages:resolution: {integrity: sha512-ekilCSN1jwRvIbgeg/57YFh8qQDNbwDb9xT/qu2DAHbFFZUicIl4ygVaAvzveMhMVr3LnpSKTNnwt8PoOfmKhQ==}hasBin: true- resolution: {integrity: sha512-s+3Al/p9g32Iq+oqXxkW//7jk2Vig6FF1CFqzVXoTUXt2qz89YWbL+OwS17NFYEvxC35n0FKeGO2LGYSxeM2Gg==}-resolution: {integrity: sha512-MpcPtHLE5EmztuFIqB0vzHAWJPpmN1E6L4oo+kze56LIs3MyXIj9ZHMDxqOvkP38gBR7K1v3jqd4WU2+nrfONQ==}@@ -10303,15 +9471,6 @@ packages:engines: {node: '>=16'}hasBin: true- resolution: {integrity: sha512-juGHV1doQdpNT3GSTs9IUN43QJb7KHdF9uqg7Vufs/tG9VTzpFphqF4pm/ICdAABGQxsyNn9CiYA3StkI6jpwA==}- engines: {node: '>=12'}- peerDependencies:- enquirer: '>= 2.3.0 < 3'- peerDependenciesMeta:- enquirer:- optional: true-resolution: {integrity: sha512-ME4Fb83LgEgwNw96RKNvKV4VTLuXfoKudAmm2lP8Kk87KaMK0/Xrx/aAkMWmT8mDb+3MlFDspfbCs7adjRxA2g==}engines: {node: '>=20.0.0'}@@ -10332,10 +9491,6 @@ packages:resolution: {integrity: sha512-IWqP2SCPhyVFTBtRcgMHdzlf9ul25NwaFx4wCEH/KjAXuuHY4yNjvPXsBokp8jCB936PyWRaPKUNh8NvylLp2Q==}engines: {node: '>=6.11.5'}- resolution: {integrity: sha512-SFppqq5p42fe2qcZQqqEOiVRXl+WCP1MdT6k7BDEW1j++sp5fIY+/fdRQitvKgB5BrBcmrs5m/L0v2FrU5MY1g==}- engines: {node: '>=14'}-resolution: {integrity: sha512-arhlxbFRmoQHl33a0Zkle/YWlmNwoyt6QNZEIJcqNbdrsix5Lvc4HyyI3EnwxTYlZYc32EbYrQ8SzEZ7dqgg9A==}engines: {node: '>=14'}@@ -10434,10 +9589,6 @@ packages:resolution: {integrity: sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg==}engines: {node: '>=10'}- resolution: {integrity: sha512-9fkkDevMefjg0mmzWFBW8YkFP91OrizzkW3diF7CpG+S2EYdy4+TVfGwz1zeF8x7hCx1ovSPTOE9Ngib74qqUg==}- engines: {node: '>=10'}-resolution: {integrity: sha512-9ie8ItPR6tjY5uYJh8K/Zrv/RMZ5VOlOWvtZdEHYSTFKZfIBPQa9tOAEeAWhd+AnIneLJ22w5fjOYtoutpWq5w==}engines: {node: '>=18'}@@ -10635,10 +9786,6 @@ packages:resolution: {integrity: sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==}engines: {node: '>=6'}- resolution: {integrity: sha512-vqiC06CuhBTUdZH+RYl8sFrL096vA45Ok5ISO6sE/Mr1jRbGH4Csnhi8f3wKVl7x8mO4Au7Ir9D3Oyv1VYMFJw==}- engines: {node: '>=12'}-resolution: {integrity: sha512-VP79XUPxV2CigYP3jWwAUFSku2aKqBH7uTAapFWCBqutsbmDo96KY5o8uh6U+/YSIn5OxJnXp73beVkpqMIGhA==}engines: {node: '>=18'}@@ -10818,9 +9965,6 @@ packages:resolution: {integrity: sha512-u7f2xaZ/UG8oLXHvtF/oWTRvT44p9ecwBBqTwgJVq0+4BW1g8OW01TyMEGWBHbyMOYVHXslaut7qEQ1meATXgw==}engines: {node: '>= 10.16.0'}- resolution: {integrity: sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA==}-resolution: {integrity: sha512-WWdIxpyjEn+FhQJQQv9aQAYlHoNVdzIzUySNV1gHUPDSdZJ3yZn7pAAbQcV7B56Mvu881q9FZV+0Vx2xC44VWA==}engines: {node: ^18.17.0 || >=20.5.0}@@ -10853,9 +9997,6 @@ packages:engines: {node: ^12.20.0 || ^14.18.0 || >=16.0.0}hasBin: true- resolution: {integrity: sha512-Tj+HTDSJJKaZnfiuw+iaF9skdPpTo2GtEly5JHnWV/hfv2Qj/9RKsGISQtLh2ox3l5EAGw487hnBee0sIJ6v2g==}-resolution: {integrity: sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==}@@ -10960,10 +10101,6 @@ packages:resolution: {integrity: sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==}engines: {node: '>=8'}- resolution: {integrity: sha512-ppwTtiJZq0O/ai0z7yfudtBpWIoxM8yE6nHi1X47eFR2EWORqfbu6CnPlNsjeN683eT0qG6H/Pyf9fCcvjnnnQ==}- engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}-resolution: {integrity: sha512-9qny7Z9DsQU8Ou39ERsPU4OZQlSTP47ShQzuKZ6PRXpYLtIFgl/DEBYEXKlvcEa+9tHVcK8CF81Y2V72qaZhWA==}engines: {node: '>=18'}@@ -11013,10 +10150,6 @@ packages:resolution: {integrity: sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==}engines: {node: '>= 0.4'}- resolution: {integrity: sha512-F8cZ+KfGlSGi09lJT7/Nd6KJZ9ygtvYC0/UYYLI9nmQKLMnydpB9yvbv9K1uSkEu7FU9vYPmVwLg328tX+ot3Q==}- engines: {node: '>= 0.4'}-resolution: {integrity: sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==}engines: {node: '>= 0.4'}@@ -11047,10 +10180,6 @@ packages:resolution: {integrity: sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==}engines: {node: '>=6'}- resolution: {integrity: sha512-1FlR+gjXK7X+AsAHso35MnyN5KqGwJRi/31ft6x0M194ht7S+rWAvd7PHss9xSKMzE0asv1pyIHaJYq+BbacAQ==}- engines: {node: '>=12'}-resolution: {integrity: sha512-VXJjc87FScF88uafS3JllDgvAm+c/Slfz06lorj2uAY34rlUu0Nt+v8wreiImcrgAjjIHp1rXpTDlLOGw29WwQ==}engines: {node: '>=18'}@@ -11063,10 +10192,6 @@ packages:resolution: {integrity: sha512-MVHddDVweXZF3awtlAS+6pgKLlm/JgxZ90+/NBurBoQctVOOB/zDdVjcyPzQ+0laDGbsWgrRkflI65sQeOgT9Q==}engines: {node: '>=8'}- resolution: {integrity: sha512-OS+QTnw1/4vrf+9hh1jc1jnYjzSG4ttTBB8UxOwAnInG3Uo4ssetzC1ihqaIHjLJnA5GGlRl6QlZXOTQhRBUvg==}- engines: {node: '>=14.16'}-resolution: {integrity: sha512-N4YtSYJqghVu4iek2ZUvcN/0aqH1kRDuNqzcycDxhOUpg7GdvLa2F3DgS6yBNhInhv2r/6I0Flkn7CqL8+nIcw==}@@ -11122,10 +10247,6 @@ packages:resolution: {integrity: sha512-wPrq66Llhl7/4AGC6I+cqxT07LhXvWL08LNXz1fENOw0Ap4sRZZ/gZpTTJ5jpurzzzfS2W/Ge9BY3LgLjCShcw==}engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}- resolution: {integrity: sha512-/bjOqmgETBYB5BoEeGVea8dmvHb2m9GLy1E9W43yeyfP6QQCZGFNa+XRceJEuDB6zqr+gKpIAmlLebMpykw/MQ==}- engines: {node: '>=10'}-resolution: {integrity: sha512-tkAQEw8ysMzmkhgw8k+1U/iPhWNhykKnSk4Rd5zLoPJCuJaGRPo6YposrZgaxHKzDHdDWWZvE/Sk7hsL2X/CpQ==}engines: {node: '>=18'}@@ -11295,9 +10416,6 @@ packages:resolution: {integrity: sha512-aXXC6s+1w7otVF9UletFkFcDsJeO7lSZBPUQhtb5O0xJe8LtYhj/GxldoL09bBj9+ZmE2hNoHqQSFMN5fikh4Q==}- resolution: {integrity: sha512-whLdWMYL2TwI08hn8/ZqAbrVemu0LNaNNJZX73O6qaIdCTfXutsLhMkjdENX0qhsQ9uIimo4/aQOmXkoon2nDQ==}-resolution: {integrity: sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==}@@ -11637,10 +10755,6 @@ packages:resolution: {integrity: sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==}- resolution: {integrity: sha512-D/kj5JNu6oo2EIy+XL/26JEDTlIbB8hw85G8StOE6L74RQAVVP5rej6wxCNqyMbR4RkPfqvezVbPw81Ngd6Kcw==}- engines: {node: ^10 || ^12 || >=14}-resolution: {integrity: sha512-3Ybi1tAuwAP9s0r1UQ2J4n5Y0G05bJkpUIO0/bI9MhwmD70S5aTWbXGBwxHrelT+XM1k6dM0pk+SwNkpTRN7Pg==}engines: {node: ^10 || ^12 || >=14}@@ -11914,9 +11028,6 @@ packages:resolution: {integrity: sha512-SbiLPU40JuJniHexQSAgad32hfwd+DRUdwF2PlVuI5RZD0/vahUco7R8vD86J/tcEKKF9vZrUVwgtmGCqlCKyA==}- resolution: {integrity: sha512-9QnLuG/kPVgWvMQ4aODhsBUFKOUmnbUnsSXACv+NCQZcHbeb+v8Lodp8OVxtRULN1/xOyYLLaL6npE6dMq5QTA==}-resolution: {integrity: sha512-iv7LhNVO047HzYR3InF6pUcUsPQiHTM1Qal51DcGSuZFBil1aBBWG5eHPNek7bvILMaYJ/8RU1e8w1AMdHmLQQ==}engines: {node: '>= 0.8'}@@ -12134,11 +11245,6 @@ packages:engines: {node: '>=10.0.0'}hasBin: true- resolution: {integrity: sha512-GVsDdsbJzzy4S/v3dqWPJ7EfvZJfCHiDqe80IyrF59LYuP+e6U1LJoUqeuqRbwAWoMNoXivMNeNAOf5E22VA1w==}- engines: {node: '>=14.18.0', npm: '>=8.0.0'}- hasBin: true-resolution: {integrity: sha512-w8GmOxZfBmKknvdXU1sdM9NHcoQejwF/4mNgj2JuEEdRaHwwF12K7e9eXn1nLZ07ad+du76mkVsyeb2rKGllsA==}engines: {node: '>=18.0.0', npm: '>=8.0.0'}@@ -12152,24 +11258,13 @@ packages:resolution: {integrity: sha512-Ep0RsvAjnRcBX1p5vogbaBdAGu/8j/ewpvGqnQYunnLd9SM0vWcPJewPKNnWFggf0hF0pwIgwV5XK7qQ7UZ8Qg==}engines: {node: '>=4'}- resolution: {integrity: sha512-XcT5rBksx1QdIhlFOCtgZkB99ZEouFZ1E2Kc2LHqNW13U3/74YGdkQRmThTwxy4QIyookibDKYZOPqX//6BlAg==}- engines: {node: '>=12'}-resolution: {integrity: sha512-DPe5pVFaAsinSaV6QjQ6gdiedWDcRCbUuiQfQa2wmWV7+xC9bGulGI8+TdRmoFkAPaBXk8CrAbnlY2ISniJ47Q==}engines: {node: '>=18'}- resolution: {integrity: sha512-tvVnVv01b8c1RrA6Ep7JkStj85Guv/YrMcwqYQnwjsAS2cTmmPGBBjAjpCW7RrSodNSoE2/qg9O4bceNvUuDgQ==}- engines: {node: '>=0.12.0'}-resolution: {integrity: sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==}- resolution: {integrity: sha512-dnyv2/YsXhnm461G+R/Pe5bWP41Nm6LBXEYWI6eiFP4fiwx6WRI/CD0zbdVAudd9xwLEF2IDcKXLHit0FYjUzw==}-resolution: {integrity: sha512-AA3TVj+0A2iuIoQkWEK/tqFjBq2j+6PO6Y0zJcvzLAFhEFIO3HL0vls9hWLncZbAAbK0mar7oZ4V079I/qPMxg==}@@ -12220,9 +11315,6 @@ packages:resolution: {integrity: sha512-eflK8wEtyOE6+hsaRVPxvUKYCpRgzLqDTb8krvAsRIwOGlHoSgYLgBXoubGgLd2fT41/OUYdb48v4k4WWHQurA==}engines: {node: '>= 10.13.0'}- resolution: {integrity: sha512-MuCAyrGZcTLfQoH2XoBlQ8C6bzwN88XT/0slOGz0pn8+gIP85BOAfYa44ZXQUTOwRwPU0QvgU+V+OSajl/59Xg==}-resolution: {integrity: sha512-AckIIV90rPDcBcglUwXPF3kg0P0qmPsPXAj6BBEENQE1p5yA1xfmDJzfi1Tappj37Pv2mVbKpL3Z1T+Nn7k1Qw==}@@ -12361,10 +11453,6 @@ packages:resolution: {integrity: sha512-brv7p5WgH0jmQJr1ZDDfKDOSeWWg+OVypG99A/5vYGPqJ6pxiaHLy8nxtFjBA7oMa01ebA9gfh1uMCFqOuXxvA==}- resolution: {integrity: sha512-94Bdh3cC2PKrbgSOUqTiGPWVZeSiXfKOVZNJniWoqrWrRkB1CJzBU3NEbiTsPcYy1lDsANA/THzS+9WBiy5nfQ==}- engines: {node: '>= 10'}-resolution: {integrity: sha512-2wcC/oGxHis/BoHkkPwldgiPSYcpZK3JU28WoMVv55yHJgcZ8rlXvuG9iZggz+sU1d4bRgIGASwyWqjxu3FM0g==}engines: {node: '>=18'}@@ -12378,14 +11466,6 @@ packages:resolution: {integrity: sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==}engines: {node: '>=8'}- resolution: {integrity: sha512-pSyv7bSTC7ig9Dcgbw9AuRNUb5k5V6oDudjZoMBSr13qpLBG7tB+zgCkARjq7xIUgdz5P1Qe8u+rSGdouOOIyQ==}- engines: {node: '>=8'}-- resolution: {integrity: sha512-qMCMfhY040cVHT43K9BFygqYbUPFZKHOg7K73mtTWJRb8pyP3fzf4Ixd5SzdEJQ6MRUg/WBnOLxghZtKKurENQ==}- engines: {node: '>=10'}-resolution: {integrity: sha512-iOBWFgUX7caIZiuutICxVgX1SdxwAVFFKwt1EvMYYec/NWO5meOJ6K5uQxhrYBdQJne4KxiqZc+KptFOWFSI9w==}engines: {node: '>=18'}@@ -12612,10 +11692,6 @@ packages:resolution: {integrity: sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==}engines: {node: '>=6'}- resolution: {integrity: sha512-dOESqjYr96iWYylGObzd39EuNTa5VJxyvVAEm5Jnh7KGo75V43Hk1odPQkNDyXNmUR6k+gEiDVXnjB8HJ3crXw==}- engines: {node: '>=12'}-resolution: {integrity: sha512-4gB8na07fecVVkOI6Rs4e7T6NOTki5EmL7TUduTs6bu3EdnSycntVJ4re8kgZA+wx9IueI2Y11bfbgwtzuE0KQ==}engines: {node: '>=0.10.0'}@@ -12734,11 +11810,6 @@ packages:resolution: {integrity: sha512-Nk8c4lXvMB98MtbmjX7JwJRgJOL8fluecYCfCeYBznwmpOs8Bf15hLM6z4z71EDAhQVrQrI+wt1aLWSXZq+hXA==}- resolution: {integrity: sha512-AKjF7qbbLvLaPieoKeTjG1+FyNZT6KaJMJPFeQyLfIp7l82ggH1fbHJSsYIvnbTFQOlkh+gBYpyby5GT1LIdLw==}- engines: {node: '>=14.0.0'}- hasBin: true-resolution: {integrity: sha512-TI4Cyx7gDiZ6r44ewaJmt0o6BrMCT5aK5e0rmJ/G9Xq3w7CX/5VXl/zIPEJZFUK5VEqwByyhqNPycPlvcK4ZNw==}engines: {node: '>=14.0.0'}@@ -12759,9 +11830,6 @@ packages:resolution: {integrity: sha512-ujeqbceABgwMZxEJnk2HDY2DlnUZ+9oEcb1KzTVfYHio0UE6dG71n60d8D2I4qNvleWrrXpmjpt7vZeF1LnMZQ==}engines: {node: '>=6'}- resolution: {integrity: sha512-OycAs/ElRxqMh8nATuBE8hJBPjJaeZ8o52N+X4lRxKV6VRrHZ9dRMCDBvEST5Sa1Gxk4kwUPHkBHsmXOL/kt0w==}-resolution: {integrity: sha512-aoBAniQmmwtcKp/7BzsH8Cxzv8OL736p7v1ihGb5e9DJ9kTwGWHrQrVB5+lfVDzfGrdRzXch+ig7LHaY1JTOrg==}engines: {node: '>=8'}@@ -12853,10 +11921,6 @@ packages:resolution: {integrity: sha512-e1zGYRvbffpcHIrnuqT0Dh+gEJtDaxDSoG4JAIpq4oDFyooziLBIiYQv0GBT4FUAnUop5uZ1hiIAj7oAF6sOCA==}- resolution: {integrity: sha512-KxVu8EYHDPBdUYdKZdKtU2aj2XfEx9AfjXxE/Aj0vT06w2icA09Vus1rh6eSu1y01akYg6BjIK/hxyLJINoMLQ==}- engines: {node: '>=12'}-resolution: {integrity: sha512-QXqwfEl9ddlGBaRFXIvNKK6OhipSiLXuRuLJX5DErz0o0Q0rYxulWLdFryTkV5PkdZct5iMInwYEGe/eR++1AA==}hasBin: true@@ -13000,9 +12064,6 @@ packages:'@swc/wasm':optional: true- resolution: {integrity: sha512-FZIXf1ksVyLcfr7M317jbB67XFJhOO1YqdTcuGaq9q5jLUoTikukZ+98TPjKiP2jC5CgmYdWWYs0s2nLSU0/1A==}-resolution: {integrity: sha512-zbem3rfRS8BgeNK50Zz5SIQgXzLafiHjOwUAvk/38/o1jHn/V5QAgVUcz884or7WYcPaH3N2CIfUc2u0ul7UcA==}engines: {node: '>=10.13.0'}@@ -13014,15 +12075,9 @@ packages:resolution: {integrity: sha512-vZXmzPrL+EmC4T/4rVlT2jNVMWCi/O4DIiSj3UHg1OE5kCKbk4mfrXc6dZksLgRM/TZlKnousKH9bbTazUWRRw==}- resolution: {integrity: sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==}-resolution: {integrity: sha512-tGyy4dAjRIEwI7BzsB0lynWgOpfqjUdq91XXAlIWD2OwKBH7oCl/GZG/HT4BOHrTlPMOASlMQ7veyTqpmRcrNA==}- resolution: {integrity: sha512-mSxlJJwl3BMEQCUNnxXBU9jP4JBktcEGhURcPR6VQVlnP0FdDEsIaz0C35dXNGLyRfrATNofF0F5p2KPxQgB+w==}-resolution: {integrity: sha512-xNvxJEOUiWPGhUuUdQgAJPKOOJfGnIyKySOc09XkKsgdUV/3E2zvwZYdejjmRgPCgcym1juLH3226yA7sEFJKQ==}@@ -13048,12 +12103,6 @@ packages:typescript:optional: true- resolution: {integrity: sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==}- engines: {node: '>= 6'}- peerDependencies:- typescript: '>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta'-resolution: {integrity: sha512-McnNiV1l8RYeY8tBgEpuodCC1mLUdbSN+CYBL7kJsJNInOP8UjDDEwdk6Mw60vdLLrr5NHKZhMAOSrR2NZuQ+w==}@@ -13207,15 +12256,6 @@ packages:resolution: {integrity: sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==}engines: {node: '>= 0.8'}- resolution: {integrity: sha512-/Aw/rL9D2aslGGM0vi+2R2aG508RSwawLnnBuo+JDSqYc4cHJO1R1phllhN6GysEhBp/6a4B6+vSFPVapWyAAw==}- peerDependencies:- '@nuxt/kit': ^3.0.0- vite: ^2.0.0 || ^3.0.0 || ^4.0.0 || ^5.0.0- peerDependenciesMeta:- '@nuxt/kit':- optional: true-resolution: {integrity: sha512-TIJqr5rSlK/+3oL5nnrrEJ+Ty2taQ/bTJY1C5abYnksl553Q3HoHVqS4pnRLDkwpZq8AYqywib3kEVvHH+CtRQ==}peerDependencies:@@ -13225,23 +12265,6 @@ packages:'@nuxt/kit':optional: true- resolution: {integrity: sha512-vPyVfNREH88dP6gszdaoGkAEFPpiScXj1A8eWN905jQgT53A3tsiPEiqJjCHOUVcsUaREt2JSudzumFOsCA78A==}- peerDependencies:- '@svgr/core': '>=5.5.0'- '@vue/compiler-sfc': ^3.0.2- vue-template-compiler: ^2.6.12- vue-template-es2015-compiler: ^1.9.0- peerDependenciesMeta:- '@svgr/core':- optional: true- '@vue/compiler-sfc':- optional: true- vue-template-compiler:- optional: true- vue-template-es2015-compiler:- optional: true-resolution: {integrity: sha512-OdrXCiXexC1rFd0QpliAgcd4cMEEEQtoCf2WIrRIGu4iW6auBPpQKMCBeWxoe55phYdRyZLUWNOtzyTX+HOFSA==}peerDependencies:@@ -13296,16 +12319,6 @@ packages:resolution: {integrity: sha512-5lWVjgi6vuHhJ526bI4nlCOmkCIF3nnfXkCMDeMJrtdvxTs6ZFCM8oNufGTsDbKv/tJ/xj8RpvXjRuPBZJuJog==}engines: {node: '>=20.19.0'}- resolution: {integrity: sha512-U7uOMNmRJ2eAv9CNjP8QRvxs6nAe3FVQUEIUphC1FGguBp3BWSLgGAcSHaX2nQy0gFoDY2mLF2M52W/t/eDaKg==}- engines: {node: '>=14'}- peerDependencies:- '@babel/parser': ^7.15.8- vue: 3.5.22- peerDependenciesMeta:- '@babel/parser':- optional: true-resolution: {integrity: sha512-M2DX44g4/jvBkB0V6uwqTbkTd5DMRHpeGoi/cIKwGG4HPuNxLbe8zoTStB2n12hoDiWc9I1PIRQruRWExNXHlQ==}engines: {node: '>=14'}@@ -13332,30 +12345,6 @@ packages:'@nuxt/kit':optional: true- resolution: {integrity: sha512-m7thX4jP8l5sETpLdUASoDOGOcHaOVtgNyrYlToyQUvILUtEzEnngRBrHnAX3IKqooJVmXpoa/CwQ/QqzvGaHQ==}- peerDependencies:- esbuild: '>=0.13'- rollup: ^2.50.0- vite: ^2.3.0 || ^3.0.0-0- webpack: 4 || 5- peerDependenciesMeta:- esbuild:- optional: true- rollup:- optional: true- vite:- optional: true- webpack:- optional: true-- resolution: {integrity: sha512-YYLtfoNiie/lxswy1GOsKXgnLJTE27la/PeCGznSItk+8METYZErO+zzV9KQ/hXhPwzIJsfJ4s0m1Rl7ZCWZ4Q==}-- resolution: {integrity: sha512-4/u/j4FrCKdi17jaxuJA0jClGxB1AvU2hw/IuayPc4ay1XGaJs/rbb4v5WKwAjNifjmXK9PIFyuPiaK8azyR9w==}- engines: {node: '>=14.0.0'}-resolution: {integrity: sha512-Qp+iiD+qCRnUek+nDoYvtWX7tfnYyXsrOnJ452FRTgOyKmTM7TUJ3l+PLPJOOWPTUyKISKp4isC5JJPSXUjGgw==}engines: {node: '>=18.12.0'}@@ -13371,10 +12360,6 @@ packages:resolution: {integrity: sha512-bSjt9pjaEBnNiGgc9rUiHGKv5l4/TGzDmYw3RhnkJGtLhbnnA/5qJj7x3dNDCRx/PJxu774LlH8lCOlB4hEfKg==}- resolution: {integrity: sha512-KK8xQ1mkzZeg9inewmFVDNkg3l5LUhoq9kN6iWYB/CC9YMG8HA+c1Q8HwDe6dEX7kErrEVNVBO3fWsVq5iDgtw==}- engines: {node: '>=8'}-resolution: {integrity: sha512-aZwGpamFO61g3OlfT7OQCHqhGnW43ieH9WZeP7QxN/G/jS4jfqUkZxoryvJgVPEcrl5NL/ggHsSmLMHuH64Lhg==}engines: {node: '>=4'}@@ -13473,12 +12458,6 @@ packages:resolution: {integrity: sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==}engines: {node: '>= 0.8'}- resolution: {integrity: sha512-h3L33u54/U/KWQh5z2sEaB0esQt3K3BhCCiriACW9t+83fLD7ebQnzcdckhIwZeZWfgQHNI7PTEDITlCqHTtZw==}- engines: {node: '>=16'}- peerDependencies:- zod: ^3.22.0-resolution: {integrity: sha512-TYAukAYYC1sK4MWSGoi1a5FrqJnknP7fp6Z9oJNt7BJACUW9oj8Yt4JZhF6nxbuhHn69Ay44zrXsD+W8jlcK6A==}engines: {node: '>=16'}@@ -13540,15 +12519,9 @@ packages:resolution: {integrity: sha512-fisKirkQrA2RFwcyI96SENLu1FyRYNIiC/l5DGdD8oV3OsAWGrYKs0e7/VZF6l0rm0QiYA2sOVTzYfrLAzP9cw==}- deprecated: renamed to `unplugin-fonts`, see https://github.com/cssninjaStudio/unplugin-fonts/releases/tag/v1.0.0- peerDependencies:- vite: ^2.0.0 || ^3.0.0 || ^4.0.0-- resolution: {integrity: sha512-hUybhgI+/LQQ5q6xoMMsTvI4PBuQD/Wv6Z1vtDPVWjanS8weCIexXuLLYNGD/93f0v8W2hpNfXpmxgpZMahJ0g==}- engines: {node: '>=12.0.0'}+ deprecated: renamed to `unplugin-fonts`, see https://github.com/cssninjaStudio/unplugin-fonts/releases/tag/v1.0.0peerDependencies:- vite: '>=2.0.0'+ vite: ^2.0.0 || ^3.0.0 || ^4.0.0resolution: {integrity: sha512-g09u0XsmgKyMUIp1RZSyNSkJWvIusaXxw3KylyxU3vkCq7/G8hyemLctT+4IvO42fCPlNySmrNC9g0qSoKmvpw==}@@ -13556,16 +12529,6 @@ packages:peerDependencies:vite: '>=5.0.0'- resolution: {integrity: sha512-+p6pJVtBOLGv+RBrcKAFUdx+euizg0bjL35HhPyM0MjtKlqoC5V9xkCmO9Ctc8JrTyXqODbHqiLWJKumu5zJ7g==}- engines: {node: '>=14'}- peerDependencies:- '@nuxt/kit': '*'- vite: ^3.1.0 || ^4.0.0- peerDependenciesMeta:- '@nuxt/kit':- optional: true-resolution: {integrity: sha512-u2eV5La99oHoYPHE6UvbwgEqKKOQGz86wMg40CCosP6q8BkB6e5xPneZfYagK4ojPJSj5anHCrnvC20DpwVdRA==}engines: {node: '>=14'}@@ -13576,21 +12539,9 @@ packages:'@nuxt/kit':optional: true- resolution: {integrity: sha512-8Nil2Q6qltBnxL/OX19ORMFxLGM//7mlW7LG+LCR8qOygxdzEIyxyw3LBz0j5tGwJr8BDSpuBW2MkMTtP6wBTQ==}-resolution: {integrity: sha512-XtrMxDTECbEGMXWPB22I+cUB7aij6rQvVq4/q6vqCfZ34IdUyVwMexCYrcvrEBuOZF0knivfLfJUDm45mgJHWg==}- resolution: {integrity: sha512-yJZvwHEt7puYIf19S89IvkDsWPjWleSied4H8hmdW6i8buCA93z1UAU1ipW1d8fNKrC4FzXsUHHbPm6+kl1p9w==}- peerDependencies:- '@vue/compiler-sfc': ^2.7.0 || ^3.0.0- vite: ^2.0.0 || ^3.0.0-0- peerDependenciesMeta:- '@vue/compiler-sfc':- optional: true-resolution: {integrity: sha512-ITLgZQCphuuovKqJg4cD7Mqo3SlaUO95O+Vfu1Kz9lF8fkAwNRK3XM25rGqaWXVja5OYinsskNH8Q8Eqvjk71Q==}peerDependencies:@@ -13621,12 +12572,6 @@ packages:'@vite-pwa/assets-generator':optional: true- resolution: {integrity: sha512-5a8hCjYJdf/rl8s7ct/YWt97gXdGPGNSOoJtkY5IYhbnSq04X1gTt5GpFHKfAxhHoed1Grfw3Ed13t7AjJi7gw==}- engines: {node: ^14.18.0 || >=16.0.0}- peerDependencies:- vite: ^3.0.0-resolution: {integrity: sha512-iCmr4GSw4eSnaB+G8zc2f4dxSuDjbkjwpuBLLGvQYR9IW7rnDzftnUjOH5p4RYR+d4GsiBqXRvzuFhs5bnzVyw==}engines: {node: ^18.0.0 || >=20.0.0}@@ -13640,13 +12585,6 @@ packages:vue: 3.5.22vue-router: ^4.0.11- resolution: {integrity: sha512-k5XDmRNFo4M/GmUjhbRXj2WmJiFcGoVI8l/uZ72RHyRDQr4wE/6Zq/KFq0lqXomWQxTSzakQRUswzNwtvZLE8A==}- peerDependencies:- vite: ^2.5.0 || ^3.0.0-0- vue: 3.5.22- vue-router: ^3.5.1 || ^ 4.0.11-resolution: {integrity: sha512-K/jGKL/PgbIgKCiJo5QbASQhFiV02X9Jh+Qq0AKCRCRKZtOTVi4t6wh75FDpGf2N9rYOnzH87OEFQNaFy6pdxQ==}engines: {node: ^14.18.0 || >=16.0.0}@@ -13672,34 +12610,6 @@ packages:terser:optional: true- resolution: {integrity: sha512-ulr8rNLA6rkyFAlVWw2q5YJ91v098AFQ2R0PRFwPzREXOUJQPtFUG0t+/ZikhaOCDqFoDhN6/v8Sq0o4araFAw==}- engines: {node: ^14.18.0 || >=16.0.0}- hasBin: true- peerDependencies:- '@types/node': '>= 14'- less: '*'- lightningcss: ^1.21.0- sass: '*'- stylus: '*'- sugarss: '*'- terser: ^5.4.0- peerDependenciesMeta:- '@types/node':- optional: true- less:- optional: true- lightningcss:- optional: true- sass:- optional: true- stylus:- optional: true- sugarss:- optional: true- terser:- optional: true-resolution: {integrity: sha512-cZn6NDFE7wdTpINgs++ZJ4N49W2vRp8LCKrn3Ob1kYNtOo21vfDoaV5GzBfLU4MovSAB8uNRm4jgzVQZ+mBzPQ==}engines: {node: ^18.0.0 || ^20.0.0 || >=22.0.0}@@ -13962,9 +12872,6 @@ packages:resolution: {integrity: sha512-yd1RBzSGanHkitROoPFd6qsrxt+oFhg/129YzheDGqeustzX0vTZJZsSsQjVQC4yzBQ56K55XU8gaNCtIzOnTg==}engines: {node: '>=10.13.0'}- resolution: {integrity: sha512-5tyDlKLqPfMqjT3Q9TAqf2YqjwmnUleZwzJi1A5qXnlBCdj2AtOJ6wAWdglTIDOPgOiOrXeBeFcsQ8+aGQ6QbA==}-resolution: {integrity: sha512-66/V2i5hQanC51vBQKPH4aI8NMAcBW59FVBs+rC7eGHupMyfn34q7rZIE+ETlJ+XTevqfUhVVBgSUNSW2flEUQ==}@@ -14060,9 +12967,6 @@ packages:resolution: {integrity: sha512-0Fb8795zg/x23ISFkAc7lbWes6vbw34DGFIMw31cwuHPgDEC/5EYm6m/ZkylLX0EnEbbOyOCLjKgFS/Z5g0HeQ==}- resolution: {integrity: sha512-GDtFRF7Yg3DD859PMbPAYPeJyg5gJYXuBQAC+wyrWuuXgpfoOrIQIvFRZnQ7+czTIQjIr1DhLEGFzZanAT/3bQ==}-resolution: {integrity: sha512-6BMfd8tYEnN4baG4emG9U0hdXM4gGuDU3ectXuVHnj71vwxTFI7WOpQJC4siTOlVtGqCUtj0ZQNsrvi6kZZTAQ==}@@ -14096,9 +13000,6 @@ packages:resolution: {integrity: sha512-ltU+Kr3qWR6BtbdlMnCjobZKzeV1hN+S6UvDywBrwM19TTyqA03X66dzw1tEIdJvQ4lYKkBFox6IAEhoSEZ8Xw==}- resolution: {integrity: sha512-L4N9+vka17d16geaJXXRjENLFldvkWy7JyGxElRD0JvBxvFEd8LOhr+uXCcar/NzAmIBRv9EZ+M+Qr4mOoBITw==}-resolution: {integrity: sha512-/bIYdBLAVsNR3v7gYGaV4pQW3M3kEPx5E8vDxGvxo6khTrGtSSCS7QiFKv9ogzBgZiy0OXLP9zO28U/1nF1mfw==}@@ -14214,9 +13115,6 @@ packages:resolution: {integrity: sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==}- resolution: {integrity: sha512-2PTINUwsRqSd+s8XxKaJWQlUuEMHJQyEuh2edBbW8KNJz0SJPwUSD2zRWqezFEdN7IzAgeuYHFUCF7o8zRdZ0A==}-resolution: {integrity: sha512-E/+VitOorXSLiAqtTd7Yqax0/pAS3xaYMP+AUUJGOK1OZG3rhcj9fcJOM5HJ2VrP1FrStVCWr1muTfQCdj4tAA==}engines: {node: ^14.17.0 || >=16.0.0}@@ -14364,20 +13262,11 @@ snapshots:transitivePeerDependencies:- chokidar- '@antfu/[email protected]':- dependencies:- execa: 5.1.1- find-up: 5.0.0-'@antfu/[email protected]':dependencies:package-manager-detector: 1.5.0tinyexec: 1.0.2- '@antfu/[email protected]': {}-- '@antfu/[email protected]': {}-'@antfu/[email protected]': {}'@antfu/[email protected]': {}@@ -16156,9 +15045,6 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true@@ -16171,9 +15057,6 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true@@ -16183,9 +15066,6 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true@@ -16195,9 +15075,6 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true@@ -16207,9 +15084,6 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true@@ -16219,9 +15093,6 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true@@ -16231,9 +15102,6 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true@@ -16243,9 +15111,6 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true@@ -16255,9 +15120,6 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true@@ -16267,9 +15129,6 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true@@ -16282,9 +15141,6 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true@@ -16294,9 +15150,6 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true@@ -16306,9 +15159,6 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true@@ -16318,9 +15168,6 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true@@ -16330,9 +15177,6 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true@@ -16342,9 +15186,6 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true@@ -16360,9 +15201,6 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true@@ -16378,9 +15216,6 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true@@ -16396,9 +15231,6 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true@@ -16408,9 +15240,6 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true@@ -16420,9 +15249,6 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true@@ -16432,20 +15258,12 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true'@esbuild/[email protected]':optional: true- '@eslint-community/[email protected]([email protected])':- dependencies:- eslint: 8.47.0- eslint-visitor-keys: 3.4.3-'@eslint-community/[email protected]([email protected])':dependencies:eslint: 8.57.0@@ -16504,8 +15322,6 @@ snapshots:'@eslint/[email protected]': {}- '@eslint/[email protected]': {}-'@eslint/[email protected]': {}'@eslint/[email protected]': {}@@ -16529,70 +15345,12 @@ snapshots:'@glideapps/[email protected]': {}- '@graphql-codegen/[email protected]([email protected])':- dependencies:- '@graphql-codegen/plugin-helpers': 5.1.1([email protected])- graphql: 16.12.0- tslib: 2.5.3-'@graphql-codegen/[email protected]([email protected])':dependencies:'@graphql-codegen/plugin-helpers': 6.1.0([email protected])graphql: 16.12.0tslib: 2.6.3- '@graphql-codegen/[email protected](@parcel/[email protected])(@types/[email protected])([email protected])([email protected])':- dependencies:- '@babel/generator': 7.28.5- '@babel/template': 7.27.2- '@babel/types': 7.28.5- '@graphql-codegen/core': 4.0.2([email protected])- '@graphql-codegen/plugin-helpers': 5.1.1([email protected])- '@graphql-tools/apollo-engine-loader': 8.0.26([email protected])- '@graphql-tools/code-file-loader': 8.1.26([email protected])- '@graphql-tools/git-loader': 8.0.30([email protected])- '@graphql-tools/github-loader': 8.0.22(@types/[email protected])([email protected])- '@graphql-tools/graphql-file-loader': 8.1.7([email protected])- '@graphql-tools/json-file-loader': 8.0.24([email protected])- '@graphql-tools/load': 8.1.6([email protected])- '@graphql-tools/prisma-loader': 8.0.17(@types/[email protected])([email protected])- '@graphql-tools/url-loader': 8.0.33(@types/[email protected])([email protected])- '@graphql-tools/utils': 10.10.3([email protected])- '@whatwg-node/fetch': 0.8.8- chalk: 4.1.2- cosmiconfig: 8.3.6([email protected])- debounce: 1.2.1- detect-indent: 6.1.0- graphql: 16.12.0- inquirer: 8.2.7(@types/[email protected])- is-glob: 4.0.3- jiti: 1.21.7- json-to-pretty-yaml: 1.2.2- listr2: 4.0.5- log-symbols: 4.1.0- micromatch: 4.0.8- shell-quote: 1.8.3- string-env-interpolation: 1.0.1- ts-log: 2.2.7- tslib: 2.8.1- yaml: 2.8.1- yargs: 17.7.2- optionalDependencies:- '@parcel/watcher': 2.5.1- transitivePeerDependencies:- - '@fastify/websocket'- - '@types/node'- - bufferutil- - cosmiconfig-toml-loader- - crossws- - encoding- - enquirer- - supports-color- - typescript- - uWebSockets.js- - utf-8-validate-'@graphql-codegen/[email protected](@parcel/[email protected])(@types/[email protected])([email protected])([email protected])':dependencies:'@babel/generator': 7.28.5@@ -16664,14 +15422,6 @@ snapshots:transitivePeerDependencies:- encoding- '@graphql-codegen/[email protected]([email protected])':- dependencies:- '@graphql-codegen/plugin-helpers': 5.1.1([email protected])- '@graphql-tools/schema': 10.0.29([email protected])- '@graphql-tools/utils': 10.10.3([email protected])- graphql: 16.12.0- tslib: 2.6.3-'@graphql-codegen/[email protected]([email protected])':dependencies:'@graphql-codegen/plugin-helpers': 6.1.0([email protected])@@ -16700,16 +15450,6 @@ snapshots:transitivePeerDependencies:- encoding- '@graphql-codegen/[email protected]([email protected])':- dependencies:- '@graphql-tools/utils': 8.13.1([email protected])- change-case-all: 1.0.14- common-tags: 1.8.2- graphql: 16.12.0- import-from: 4.0.0- lodash: 4.17.21- tslib: 2.4.1-'@graphql-codegen/[email protected]([email protected])':dependencies:'@graphql-tools/utils': 9.2.1([email protected])@@ -16720,16 +15460,6 @@ snapshots:lodash: 4.17.21tslib: 2.4.1- '@graphql-codegen/[email protected]([email protected])':- dependencies:- '@graphql-tools/utils': 10.10.3([email protected])- change-case-all: 1.0.15- common-tags: 1.8.2- graphql: 16.12.0- import-from: 4.0.0- lodash: 4.17.21- tslib: 2.6.3-'@graphql-codegen/[email protected]([email protected])':dependencies:'@graphql-tools/utils': 10.10.3([email protected])@@ -16740,13 +15470,6 @@ snapshots:lodash: 4.17.21tslib: 2.6.3- '@graphql-codegen/[email protected]([email protected])':- dependencies:- '@graphql-codegen/plugin-helpers': 5.1.1([email protected])- '@graphql-tools/utils': 10.10.3([email protected])- graphql: 16.12.0- tslib: 2.6.3-'@graphql-codegen/[email protected]([email protected])':dependencies:'@graphql-codegen/plugin-helpers': 6.1.0([email protected])@@ -16754,17 +15477,6 @@ snapshots:graphql: 16.12.0tslib: 2.6.3- '@graphql-codegen/[email protected]([email protected])':- dependencies:- '@graphql-codegen/plugin-helpers': 5.1.1([email protected])- '@graphql-codegen/visitor-plugin-common': 4.0.1([email protected])- auto-bind: 4.0.0- change-case-all: 1.0.15- graphql: 16.12.0- tslib: 2.5.3- transitivePeerDependencies:- - encoding-'@graphql-codegen/[email protected]([email protected])':dependencies:'@graphql-codegen/plugin-helpers': 6.1.0([email protected])@@ -16786,17 +15498,6 @@ snapshots:transitivePeerDependencies:- encoding- '@graphql-codegen/[email protected]([email protected])':- dependencies:- '@graphql-codegen/plugin-helpers': 5.1.1([email protected])- '@graphql-codegen/typescript': 4.0.1([email protected])- '@graphql-codegen/visitor-plugin-common': 4.0.1([email protected])- auto-bind: 4.0.0- graphql: 16.12.0- tslib: 2.5.3- transitivePeerDependencies:- - encoding-'@graphql-codegen/[email protected]([email protected])':dependencies:'@graphql-codegen/plugin-helpers': 6.1.0([email protected])@@ -16808,20 +15509,6 @@ snapshots:transitivePeerDependencies:- encoding- '@graphql-codegen/[email protected](@urql/[email protected](@urql/[email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected])':- dependencies:- '@graphql-codegen/plugin-helpers': 3.1.2([email protected])- '@graphql-codegen/visitor-plugin-common': 2.13.1([email protected])- auto-bind: 4.0.0- change-case-all: 1.0.15- graphql: 16.12.0- graphql-tag: 2.12.6([email protected])- tslib: 2.4.1- transitivePeerDependencies:- - encoding- - supports-color-'@graphql-codegen/[email protected](@urql/[email protected](@urql/[email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected])':dependencies:'@graphql-codegen/plugin-helpers': 3.1.2([email protected])@@ -16836,17 +15523,6 @@ snapshots:- encoding- supports-color- '@graphql-codegen/[email protected]([email protected])':- dependencies:- '@graphql-codegen/plugin-helpers': 5.1.1([email protected])- '@graphql-codegen/schema-ast': 4.1.0([email protected])- '@graphql-codegen/visitor-plugin-common': 4.0.1([email protected])- auto-bind: 4.0.0- graphql: 16.12.0- tslib: 2.5.3- transitivePeerDependencies:- - encoding-'@graphql-codegen/[email protected]([email protected])':dependencies:'@graphql-codegen/plugin-helpers': 6.1.0([email protected])@@ -16858,13 +15534,6 @@ snapshots:transitivePeerDependencies:- encoding- '@graphql-codegen/[email protected]([email protected])':- dependencies:- '@graphql-codegen/plugin-helpers': 2.7.2([email protected])- '@urql/introspection': 0.3.3([email protected])- graphql: 16.12.0- tslib: 2.4.1-'@graphql-codegen/[email protected]([email protected])':dependencies:'@graphql-codegen/plugin-helpers': 3.1.2([email protected])@@ -16872,23 +15541,6 @@ snapshots:graphql: 16.12.0tslib: 2.8.1- '@graphql-codegen/[email protected]([email protected])':- dependencies:- '@graphql-codegen/plugin-helpers': 2.7.2([email protected])- '@graphql-tools/optimize': 1.4.0([email protected])- '@graphql-tools/relay-operation-optimizer': 6.5.18([email protected])- '@graphql-tools/utils': 8.13.1([email protected])- auto-bind: 4.0.0- change-case-all: 1.0.14- dependency-graph: 0.11.0- graphql: 16.12.0- graphql-tag: 2.12.6([email protected])- parse-filepath: 1.0.2- tslib: 2.4.1- transitivePeerDependencies:- - encoding- - supports-color-'@graphql-codegen/[email protected]([email protected])':dependencies:'@graphql-codegen/plugin-helpers': 3.1.2([email protected])@@ -16906,22 +15558,6 @@ snapshots:- encoding- supports-color- '@graphql-codegen/[email protected]([email protected])':- dependencies:- '@graphql-codegen/plugin-helpers': 5.1.1([email protected])- '@graphql-tools/optimize': 2.0.0([email protected])- '@graphql-tools/relay-operation-optimizer': 7.0.25([email protected])- '@graphql-tools/utils': 10.10.3([email protected])- auto-bind: 4.0.0- change-case-all: 1.0.15- dependency-graph: 0.11.0- graphql: 16.12.0- graphql-tag: 2.12.6([email protected])- parse-filepath: 1.0.2- tslib: 2.5.3- transitivePeerDependencies:- - encoding-'@graphql-codegen/[email protected]([email protected])':dependencies:'@graphql-codegen/plugin-helpers': 6.1.0([email protected])@@ -17097,32 +15733,17 @@ snapshots:dependencies:'@graphql-tools/utils': 9.2.1([email protected])'@repeaterjs/repeater': 3.0.6- '@whatwg-node/fetch': 0.8.8- dset: 3.1.4- extract-files: 11.0.0- graphql: 16.12.0- meros: 1.3.2(@types/[email protected])- tslib: 2.8.1- value-or-promise: 1.0.12- transitivePeerDependencies:- - '@types/node'-- dependencies:- '@graphql-hive/signal': 1.0.0- '@graphql-tools/executor-common': 0.0.4([email protected])- '@graphql-tools/utils': 10.10.3([email protected])- '@repeaterjs/repeater': 3.0.6- '@whatwg-node/disposablestack': 0.0.6- '@whatwg-node/fetch': 0.10.13- '@whatwg-node/promise-helpers': 1.3.2+ '@whatwg-node/fetch': 0.8.8+ dset: 3.1.4+ extract-files: 11.0.0graphql: 16.12.0meros: 1.3.2(@types/[email protected])tslib: 2.8.1+ value-or-promise: 1.0.12transitivePeerDependencies:- '@types/node'dependencies:'@graphql-hive/signal': 1.0.0'@graphql-tools/executor-common': 0.0.4([email protected])@@ -17132,7 +15753,7 @@ snapshots:'@whatwg-node/fetch': 0.10.13'@whatwg-node/promise-helpers': 1.3.2graphql: 16.12.0- meros: 1.3.2(@types/[email protected])+ meros: 1.3.2(@types/[email protected])tslib: 2.8.1transitivePeerDependencies:- '@types/node'@@ -17207,20 +15828,6 @@ snapshots:transitivePeerDependencies:- supports-color- dependencies:- '@graphql-tools/executor-http': 1.3.3(@types/[email protected])([email protected])- '@graphql-tools/graphql-tag-pluck': 8.3.25([email protected])- '@graphql-tools/utils': 10.10.3([email protected])- '@whatwg-node/fetch': 0.10.13- '@whatwg-node/promise-helpers': 1.3.2- graphql: 16.12.0- sync-fetch: 0.6.0-2- tslib: 2.8.1- transitivePeerDependencies:- - '@types/node'- - supports-color-dependencies:'@graphql-tools/executor-http': 3.0.7(@types/[email protected])([email protected])@@ -17345,35 +15952,6 @@ snapshots:graphql: 16.12.0tslib: 2.8.1- dependencies:- '@graphql-tools/url-loader': 8.0.33(@types/[email protected])([email protected])- '@graphql-tools/utils': 10.10.3([email protected])- '@types/js-yaml': 4.0.9- '@whatwg-node/fetch': 0.10.13- chalk: 4.1.2- debug: 4.4.3([email protected])- dotenv: 16.6.1- graphql: 16.12.0- graphql-request: 6.1.0([email protected])- http-proxy-agent: 7.0.2- https-proxy-agent: 7.0.6- jose: 5.10.0- js-yaml: 4.1.1- lodash: 4.17.21- scuid: 1.1.0- tslib: 2.8.1- yaml-ast-parser: 0.0.43- transitivePeerDependencies:- - '@fastify/websocket'- - '@types/node'- - bufferutil- - crossws- - encoding- - supports-color- - uWebSockets.js- - utf-8-validate-'@graphql-tools/[email protected]([email protected])':dependencies:'@ardatan/relay-compiler': 12.0.0([email protected])@@ -17460,29 +16038,6 @@ snapshots:- uWebSockets.js- utf-8-validate- dependencies:- '@graphql-tools/executor-graphql-ws': 2.0.7([email protected])- '@graphql-tools/executor-http': 1.3.3(@types/[email protected])([email protected])- '@graphql-tools/executor-legacy-ws': 1.1.23([email protected])- '@graphql-tools/utils': 10.10.3([email protected])- '@graphql-tools/wrap': 10.1.4([email protected])- '@types/ws': 8.18.1- '@whatwg-node/fetch': 0.10.13- '@whatwg-node/promise-helpers': 1.3.2- graphql: 16.12.0- isomorphic-ws: 5.0.0([email protected])- sync-fetch: 0.6.0-2- tslib: 2.8.1- ws: 8.17.1- transitivePeerDependencies:- - '@fastify/websocket'- - '@types/node'- - bufferutil- - crossws- - uWebSockets.js- - utf-8-validate-dependencies:'@graphql-tools/executor-graphql-ws': 3.1.3([email protected])@@ -17523,11 +16078,6 @@ snapshots:graphql: 16.12.0tslib: 2.8.1- '@graphql-tools/[email protected]([email protected])':- dependencies:- graphql: 16.12.0- tslib: 2.8.1-'@graphql-tools/[email protected]([email protected])':dependencies:'@graphql-typed-document-node/core': 3.2.0([email protected])@@ -17682,21 +16232,8 @@ snapshots:dependencies:'@iconify/types': 2.0.0- '@iconify/[email protected]': {}-'@iconify/[email protected]': {}- '@iconify/[email protected]':- dependencies:- '@antfu/install-pkg': 0.1.1- '@antfu/utils': 0.5.2- '@iconify/types': 1.1.0- debug: 4.4.3([email protected])- kolorist: 1.8.0- local-pkg: 0.4.3- transitivePeerDependencies:- - supports-color-'@iconify/[email protected]':dependencies:'@antfu/install-pkg': 1.1.0@@ -17796,13 +16333,6 @@ snapshots:optionalDependencies:'@types/node': 24.10.1- '@inquirer/[email protected](@types/[email protected])':- dependencies:- chardet: 2.1.1- iconv-lite: 0.7.0- optionalDependencies:- '@types/node': 24.9.1-'@inquirer/[email protected]': {}'@inquirer/[email protected](@types/[email protected])':@@ -17888,20 +16418,6 @@ snapshots:optionalDependencies:'@types/node': 24.10.1- dependencies:- '@intlify/message-compiler': 11.1.12- '@intlify/shared': 11.1.12- acorn: 8.15.0- escodegen: 2.1.0- estree-walker: 2.0.2- jsonc-eslint-parser: 2.4.1- mlly: 1.8.0- source-map-js: 1.2.1- yaml-eslint-parser: 1.3.0- optionalDependencies:- vue-i18n: 11.1.12([email protected]([email protected]))-dependencies:'@intlify/message-compiler': 11.1.12@@ -17976,33 +16492,6 @@ snapshots:- supports-color- typescript- '@intlify/[email protected](@vue/[email protected])([email protected])([email protected])([email protected])([email protected]([email protected]([email protected])))([email protected]([email protected]))':- dependencies:- '@eslint-community/eslint-utils': 4.9.0([email protected])- '@intlify/shared': 11.1.12- '@intlify/vue-i18n-extensions': 8.0.0(@intlify/[email protected])(@vue/[email protected])([email protected]([email protected]([email protected])))([email protected]([email protected]))- '@rollup/pluginutils': 5.3.0([email protected])- '@typescript-eslint/scope-manager': 8.47.0- '@typescript-eslint/typescript-estree': 8.47.0([email protected])- debug: 4.4.3([email protected])- fast-glob: 3.3.3- js-yaml: 4.1.1- json5: 2.2.3- pathe: 1.1.2- picocolors: 1.1.1- source-map-js: 1.2.1- unplugin: 1.16.1- vue: 3.5.22([email protected])- optionalDependencies:- vue-i18n: 11.1.12([email protected]([email protected]))- transitivePeerDependencies:- - '@vue/compiler-dom'- - eslint- - rollup- - supports-color- - typescript-'@intlify/[email protected](@intlify/[email protected])(@vue/[email protected])([email protected]([email protected]([email protected])))([email protected]([email protected]))':dependencies:'@babel/parser': 7.28.5@@ -18745,19 +17234,6 @@ snapshots:'@pkgr/[email protected]': {}- '@platform/[email protected]':- dependencies:- '@platform/libs': 0.3.2- '@platform/util.is': 0.0.165-- '@platform/[email protected]':- dependencies:- '@types/ramda': 0.28.15- ramda: 0.28.0- rxjs: 7.5.6-- '@platform/[email protected]': {}-'@polka/[email protected]': {}'@popperjs/[email protected]': {}@@ -19375,51 +17851,34 @@ snapshots:transitivePeerDependencies:- supports-color- '@tauri-apps/[email protected]': {}-'@tauri-apps/[email protected]': {}'@tauri-apps/[email protected]': {}- '@tauri-apps/[email protected]':- optional: true-'@tauri-apps/[email protected]':optional: true'@tauri-apps/[email protected]':optional: true- '@tauri-apps/[email protected]':- optional: true-'@tauri-apps/[email protected]':optional: true'@tauri-apps/[email protected]':optional: true- '@tauri-apps/[email protected]':- optional: true-'@tauri-apps/[email protected]':optional: true'@tauri-apps/[email protected]':optional: true- '@tauri-apps/[email protected]':- optional: true-'@tauri-apps/[email protected]':optional: true'@tauri-apps/[email protected]':optional: true- '@tauri-apps/[email protected]':- optional: true-'@tauri-apps/[email protected]':optional: true@@ -19432,64 +17891,36 @@ snapshots:'@tauri-apps/[email protected]':optional: true- '@tauri-apps/[email protected]':- optional: true-'@tauri-apps/[email protected]':optional: true'@tauri-apps/[email protected]':optional: true- '@tauri-apps/[email protected]':- optional: true-'@tauri-apps/[email protected]':optional: true'@tauri-apps/[email protected]':optional: true- '@tauri-apps/[email protected]':- optional: true-'@tauri-apps/[email protected]':optional: true'@tauri-apps/[email protected]':optional: true- '@tauri-apps/[email protected]':- optional: true-'@tauri-apps/[email protected]':optional: true'@tauri-apps/[email protected]':optional: true- '@tauri-apps/[email protected]':- optional: true-'@tauri-apps/[email protected]':optional: true'@tauri-apps/[email protected]':optional: true- '@tauri-apps/[email protected]':- optionalDependencies:- '@tauri-apps/cli-darwin-arm64': 1.5.6- '@tauri-apps/cli-darwin-x64': 1.5.6- '@tauri-apps/cli-linux-arm-gnueabihf': 1.5.6- '@tauri-apps/cli-linux-arm64-gnu': 1.5.6- '@tauri-apps/cli-linux-arm64-musl': 1.5.6- '@tauri-apps/cli-linux-x64-gnu': 1.5.6- '@tauri-apps/cli-linux-x64-musl': 1.5.6- '@tauri-apps/cli-win32-arm64-msvc': 1.5.6- '@tauri-apps/cli-win32-ia32-msvc': 1.5.6- '@tauri-apps/cli-win32-x64-msvc': 1.5.6-'@tauri-apps/[email protected]':optionalDependencies:'@tauri-apps/cli-darwin-arm64': 2.9.3@@ -19718,10 +18149,6 @@ snapshots:'@types/[email protected]': {}- '@types/[email protected]':- dependencies:- '@types/lodash': 4.17.20-'@types/[email protected]':dependencies:'@types/lodash': 4.17.20@@ -19833,10 +18260,6 @@ snapshots:'@types/[email protected]': {}- '@types/[email protected]':- dependencies:- ts-toolbelt: 6.15.5-'@types/[email protected]': {}'@types/[email protected]':@@ -19859,8 +18282,6 @@ snapshots:dependencies:'@types/node': 24.10.1- '@types/[email protected]': {}-'@types/[email protected]':dependencies:'@types/mime': 1.3.5@@ -19908,8 +18329,6 @@ snapshots:'@types/[email protected]': {}- '@types/[email protected]': {}-'@types/[email protected]': {}'@types/[email protected]':@@ -19922,25 +18341,6 @@ snapshots:dependencies:'@types/yargs-parser': 21.0.3- '@typescript-eslint/[email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])':- dependencies:- '@eslint-community/regexpp': 4.12.2- '@typescript-eslint/parser': 5.62.0([email protected])([email protected])- '@typescript-eslint/scope-manager': 5.62.0- '@typescript-eslint/type-utils': 5.62.0([email protected])([email protected])- '@typescript-eslint/utils': 5.62.0([email protected])([email protected])- debug: 4.4.3([email protected])- eslint: 8.47.0- graphemer: 1.4.0- ignore: 5.3.2- natural-compare-lite: 1.4.0- semver: 7.7.3- tsutils: 3.21.0([email protected])- optionalDependencies:- typescript: 5.9.3- transitivePeerDependencies:- - supports-color-'@typescript-eslint/[email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])':dependencies:'@eslint-community/regexpp': 4.12.2@@ -19959,23 +18359,6 @@ snapshots:transitivePeerDependencies:- supports-color- '@typescript-eslint/[email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])':- dependencies:- '@eslint-community/regexpp': 4.12.2- '@typescript-eslint/parser': 8.44.1([email protected])([email protected])- '@typescript-eslint/scope-manager': 8.44.1- '@typescript-eslint/type-utils': 8.44.1([email protected])([email protected])- '@typescript-eslint/utils': 8.44.1([email protected])([email protected])- '@typescript-eslint/visitor-keys': 8.44.1- eslint: 8.47.0- graphemer: 1.4.0- ignore: 7.0.5- natural-compare: 1.4.0- ts-api-utils: 2.1.0([email protected])- typescript: 5.9.3- transitivePeerDependencies:- - supports-color-'@typescript-eslint/[email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])':dependencies:'@eslint-community/regexpp': 4.12.2@@ -20010,18 +18393,6 @@ snapshots:transitivePeerDependencies:- supports-color- dependencies:- '@typescript-eslint/scope-manager': 5.62.0- '@typescript-eslint/types': 5.62.0- '@typescript-eslint/typescript-estree': 5.62.0([email protected])- debug: 4.4.3([email protected])- eslint: 8.47.0- optionalDependencies:- typescript: 5.9.3- transitivePeerDependencies:- - supports-color-dependencies:'@typescript-eslint/scope-manager': 7.18.0@@ -20035,18 +18406,6 @@ snapshots:transitivePeerDependencies:- supports-color- dependencies:- '@typescript-eslint/scope-manager': 8.44.1- '@typescript-eslint/types': 8.44.1- '@typescript-eslint/typescript-estree': 8.44.1([email protected])- '@typescript-eslint/visitor-keys': 8.44.1- debug: 4.4.3([email protected])- eslint: 8.47.0- typescript: 5.9.3- transitivePeerDependencies:- - supports-color-dependencies:'@typescript-eslint/scope-manager': 8.47.0@@ -20071,15 +18430,6 @@ snapshots:transitivePeerDependencies:- supports-color- '@typescript-eslint/[email protected]([email protected])':- dependencies:- '@typescript-eslint/tsconfig-utils': 8.44.1([email protected])- '@typescript-eslint/types': 8.47.0- debug: 4.4.3([email protected])- typescript: 5.9.3- transitivePeerDependencies:- - supports-color-'@typescript-eslint/[email protected]([email protected])':dependencies:'@typescript-eslint/tsconfig-utils': 8.47.0([email protected])@@ -20089,46 +18439,20 @@ snapshots:transitivePeerDependencies:- supports-color- '@typescript-eslint/[email protected]':- dependencies:- '@typescript-eslint/types': 5.62.0- '@typescript-eslint/visitor-keys': 5.62.0-'@typescript-eslint/[email protected]':dependencies:'@typescript-eslint/types': 7.18.0'@typescript-eslint/visitor-keys': 7.18.0- '@typescript-eslint/[email protected]':- dependencies:- '@typescript-eslint/types': 8.44.1- '@typescript-eslint/visitor-keys': 8.44.1-'@typescript-eslint/[email protected]':dependencies:'@typescript-eslint/types': 8.47.0'@typescript-eslint/visitor-keys': 8.47.0- '@typescript-eslint/[email protected]([email protected])':- dependencies:- typescript: 5.9.3-'@typescript-eslint/[email protected]([email protected])':dependencies:typescript: 5.9.3- dependencies:- '@typescript-eslint/typescript-estree': 5.62.0([email protected])- '@typescript-eslint/utils': 5.62.0([email protected])([email protected])- debug: 4.4.3([email protected])- eslint: 8.47.0- tsutils: 3.21.0([email protected])- optionalDependencies:- typescript: 5.9.3- transitivePeerDependencies:- - supports-color-dependencies:'@typescript-eslint/typescript-estree': 7.18.0([email protected])@@ -20141,18 +18465,6 @@ snapshots:transitivePeerDependencies:- supports-color- dependencies:- '@typescript-eslint/types': 8.44.1- '@typescript-eslint/typescript-estree': 8.44.1([email protected])- '@typescript-eslint/utils': 8.44.1([email protected])([email protected])- debug: 4.4.3([email protected])- eslint: 8.47.0- ts-api-utils: 2.1.0([email protected])- typescript: 5.9.3- transitivePeerDependencies:- - supports-color-dependencies:'@typescript-eslint/types': 8.47.0@@ -20177,28 +18489,10 @@ snapshots:transitivePeerDependencies:- supports-color- '@typescript-eslint/[email protected]': {}-'@typescript-eslint/[email protected]': {}- '@typescript-eslint/[email protected]': {}-'@typescript-eslint/[email protected]': {}- '@typescript-eslint/[email protected]([email protected])':- dependencies:- '@typescript-eslint/types': 5.62.0- '@typescript-eslint/visitor-keys': 5.62.0- debug: 4.4.3([email protected])- globby: 11.1.0- is-glob: 4.0.3- semver: 7.7.3- tsutils: 3.21.0([email protected])- optionalDependencies:- typescript: 5.9.3- transitivePeerDependencies:- - supports-color-'@typescript-eslint/[email protected]([email protected])':dependencies:'@typescript-eslint/types': 7.18.0@@ -20214,22 +18508,6 @@ snapshots:transitivePeerDependencies:- supports-color- '@typescript-eslint/[email protected]([email protected])':- dependencies:- '@typescript-eslint/project-service': 8.44.1([email protected])- '@typescript-eslint/tsconfig-utils': 8.44.1([email protected])- '@typescript-eslint/types': 8.44.1- '@typescript-eslint/visitor-keys': 8.44.1- debug: 4.4.3([email protected])- fast-glob: 3.3.3- is-glob: 4.0.3- minimatch: 9.0.5- semver: 7.7.3- ts-api-utils: 2.1.0([email protected])- typescript: 5.9.3- transitivePeerDependencies:- - supports-color-'@typescript-eslint/[email protected]([email protected])':dependencies:'@typescript-eslint/project-service': 8.47.0([email protected])@@ -20246,21 +18524,6 @@ snapshots:transitivePeerDependencies:- supports-color- dependencies:- '@eslint-community/eslint-utils': 4.9.0([email protected])- '@types/json-schema': 7.0.15- '@types/semver': 7.7.1- '@typescript-eslint/scope-manager': 5.62.0- '@typescript-eslint/types': 5.62.0- '@typescript-eslint/typescript-estree': 5.62.0([email protected])- eslint: 8.47.0- eslint-scope: 5.1.1- semver: 7.7.3- transitivePeerDependencies:- - supports-color- - typescript-dependencies:'@eslint-community/eslint-utils': 4.9.0([email protected])@@ -20272,17 +18535,6 @@ snapshots:- supports-color- typescript- dependencies:- '@eslint-community/eslint-utils': 4.9.0([email protected])- '@typescript-eslint/scope-manager': 8.44.1- '@typescript-eslint/types': 8.44.1- '@typescript-eslint/typescript-estree': 8.44.1([email protected])- eslint: 8.47.0- typescript: 5.9.3- transitivePeerDependencies:- - supports-color-dependencies:'@eslint-community/eslint-utils': 4.9.0([email protected])@@ -20305,20 +18557,10 @@ snapshots:transitivePeerDependencies:- supports-color- '@typescript-eslint/[email protected]':- dependencies:- '@typescript-eslint/types': 5.62.0- eslint-visitor-keys: 3.4.3-'@typescript-eslint/[email protected]':dependencies:'@typescript-eslint/types': 7.18.0- eslint-visitor-keys: 3.4.3-- '@typescript-eslint/[email protected]':- dependencies:- '@typescript-eslint/types': 8.44.1- eslint-visitor-keys: 4.2.1+ eslint-visitor-keys: 3.4.3'@typescript-eslint/[email protected]':dependencies:@@ -20428,16 +18670,6 @@ snapshots:vue: 3.5.22([email protected])wonka: 6.3.5- '@vitejs/[email protected]([email protected])([email protected](@types/[email protected])([email protected])([email protected]))':- dependencies:- '@babel/standalone': 7.28.5- core-js: 3.47.0- magic-string: 0.26.7- regenerator-runtime: 0.13.11- systemjs: 6.15.1- terser: 5.44.1-'@vitejs/[email protected]([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))':dependencies:'@babel/standalone': 7.28.5@@ -20467,11 +18699,6 @@ snapshots:transitivePeerDependencies:- supports-color- '@vitejs/[email protected]([email protected](@types/[email protected])([email protected])([email protected]))([email protected]([email protected]))':- dependencies:- vue: 3.5.22([email protected])-'@vitejs/[email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected]([email protected]))':dependencies:'@rolldown/pluginutils': 1.0.0-beta.50@@ -20609,18 +18836,6 @@ snapshots:'@vue/[email protected]': {}- '@vue/[email protected]([email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected]([email protected])))([email protected])([email protected])':- dependencies:- '@typescript-eslint/eslint-plugin': 5.62.0(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])- '@typescript-eslint/parser': 5.62.0([email protected])([email protected])- eslint: 8.47.0- eslint-plugin-vue: 10.5.1(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected]([email protected]))- vue-eslint-parser: 9.4.3([email protected])- optionalDependencies:- typescript: 5.9.3- transitivePeerDependencies:- - supports-color-'@vue/[email protected]([email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected]([email protected])))([email protected])([email protected])':dependencies:'@typescript-eslint/eslint-plugin': 7.18.0(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])@@ -20714,16 +18929,6 @@ snapshots:transitivePeerDependencies:- typescript- dependencies:- '@types/web-bluetooth': 0.0.18- '@vueuse/metadata': 10.5.0- '@vueuse/shared': 10.5.0([email protected]([email protected]))- vue-demi: 0.14.10([email protected]([email protected]))- transitivePeerDependencies:- - '@vue/composition-api'- - vue-dependencies:'@types/web-bluetooth': 0.0.21@@ -20740,19 +18945,10 @@ snapshots:optionalDependencies:vue: 3.5.22([email protected])- '@vueuse/[email protected]': {}-'@vueuse/[email protected]': {}'@vueuse/[email protected]': {}- dependencies:- vue-demi: 0.14.10([email protected]([email protected]))- transitivePeerDependencies:- - '@vue/composition-api'- - vue-dependencies:vue: 3.5.22([email protected])@@ -20934,11 +19130,6 @@ snapshots:- dependencies:- clean-stack: 2.2.0- indent-string: 4.0.0-optionalDependencies:ajv: 8.17.1@@ -21092,8 +19283,6 @@ snapshots:- [email protected]: {}-@@ -21108,16 +19297,6 @@ snapshots:- dependencies:- browserslist: 4.28.0- caniuse-lite: 1.0.30001756- fraction.js: 4.3.7- normalize-range: 0.1.2- picocolors: 1.1.1- postcss: 8.4.32- postcss-value-parser: 4.2.0-dependencies:browserslist: 4.28.0@@ -21152,14 +19331,6 @@ snapshots:transitivePeerDependencies:- debug- dependencies:- follow-redirects: 1.15.11- form-data: 4.0.4- proxy-from-env: 1.1.0- transitivePeerDependencies:- - debug-[email protected](@babel/[email protected]):dependencies:'@babel/core': 7.28.5@@ -21301,8 +19472,6 @@ snapshots:dependencies:require-from-string: 2.0.2- [email protected]: {}-@@ -21344,10 +19513,6 @@ snapshots:widest-line: 3.1.0wrap-ansi: 7.0.0- dependencies:- big-integer: 1.6.52-dependencies:balanced-match: 1.0.2@@ -21402,10 +19567,6 @@ snapshots:base64-js: 1.5.1ieee754: 1.2.1- dependencies:- run-applescript: 5.0.0-dependencies:run-applescript: 7.1.0@@ -21507,19 +19668,6 @@ snapshots:- dependencies:- change-case: 4.1.2- is-lower-case: 2.0.2- is-upper-case: 2.0.2- lower-case: 2.0.2- lower-case-first: 2.0.2- sponge-case: 1.0.1- swap-case: 2.0.2- title-case: 3.0.3- upper-case: 2.0.2- upper-case-first: 2.0.2-dependencies:change-case: 4.1.2@@ -21629,8 +19777,6 @@ snapshots:libphonenumber-js: 1.12.28validator: 13.15.23- [email protected]: {}-@@ -21649,18 +19795,11 @@ snapshots:optionalDependencies:'@colors/colors': 1.5.0- dependencies:- slice-ansi: 3.0.0- string-width: 4.2.3-dependencies:slice-ansi: 7.1.2string-width: 8.1.0- [email protected]: {}-@@ -22031,8 +20170,6 @@ snapshots:- [email protected]: {}-@@ -22065,27 +20202,6 @@ snapshots:- dependencies:- array-buffer-byte-length: 1.0.2- call-bind: 1.0.8- es-get-iterator: 1.1.3- get-intrinsic: 1.3.0- is-arguments: 1.2.0- is-array-buffer: 3.0.5- is-date-object: 1.1.0- is-regex: 1.2.1- is-shared-array-buffer: 1.0.4- isarray: 2.0.5- object-is: 1.1.6- object-keys: 1.1.1- object.assign: 4.1.7- regexp.prototype.flags: 1.5.4- side-channel: 1.1.0- which-boxed-primitive: 1.1.1- which-collection: 1.0.2- which-typed-array: 1.1.19-@@ -22094,20 +20210,8 @@ snapshots:- dependencies:- bplist-parser: 0.2.0- untildify: 4.0.0-- dependencies:- bundle-name: 3.0.0- default-browser-id: 3.0.0- execa: 7.2.0- titleize: 3.0.0-dependencies:bundle-name: 4.1.0@@ -22419,8 +20523,6 @@ snapshots:dependencies:is-arrayish: 0.2.1- [email protected]: {}-@@ -22484,18 +20586,6 @@ snapshots:- dependencies:- call-bind: 1.0.8- get-intrinsic: 1.3.0- has-symbols: 1.1.0- is-arguments: 1.2.0- is-map: 2.0.3- is-set: 2.0.3- is-string: 1.1.1- isarray: 2.0.5- stop-iteration-iterator: 1.1.0-@@ -22627,31 +20717,6 @@ snapshots:'@esbuild/win32-ia32': 0.17.19'@esbuild/win32-x64': 0.17.19- optionalDependencies:- '@esbuild/android-arm': 0.18.20- '@esbuild/android-arm64': 0.18.20- '@esbuild/android-x64': 0.18.20- '@esbuild/darwin-arm64': 0.18.20- '@esbuild/darwin-x64': 0.18.20- '@esbuild/freebsd-arm64': 0.18.20- '@esbuild/freebsd-x64': 0.18.20- '@esbuild/linux-arm': 0.18.20- '@esbuild/linux-arm64': 0.18.20- '@esbuild/linux-ia32': 0.18.20- '@esbuild/linux-loong64': 0.18.20- '@esbuild/linux-mips64el': 0.18.20- '@esbuild/linux-ppc64': 0.18.20- '@esbuild/linux-riscv64': 0.18.20- '@esbuild/linux-s390x': 0.18.20- '@esbuild/linux-x64': 0.18.20- '@esbuild/netbsd-x64': 0.18.20- '@esbuild/openbsd-x64': 0.18.20- '@esbuild/sunos-x64': 0.18.20- '@esbuild/win32-arm64': 0.18.20- '@esbuild/win32-ia32': 0.18.20- '@esbuild/win32-x64': 0.18.20-optionalDependencies:'@esbuild/aix-ppc64': 0.25.12@@ -22742,12 +20807,6 @@ snapshots:dependencies:eslint: 9.39.1([email protected])- dependencies:- eslint: 8.47.0- prettier: 3.6.2- prettier-linter-helpers: 1.0.0-[email protected](@types/[email protected])([email protected]([email protected]))([email protected])([email protected]):dependencies:eslint: 8.57.0@@ -22768,19 +20827,6 @@ snapshots:'@types/eslint': 9.6.1eslint-config-prettier: 10.1.8([email protected]([email protected]))- [email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected]([email protected])):- dependencies:- '@eslint-community/eslint-utils': 4.9.0([email protected])- eslint: 8.47.0- natural-compare: 1.4.0- nth-check: 2.1.1- postcss-selector-parser: 6.1.2- semver: 7.7.3- vue-eslint-parser: 9.4.3([email protected])- xml-name-validator: 4.0.0- optionalDependencies:- '@typescript-eslint/parser': 8.44.1([email protected])([email protected])-[email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected]([email protected])):dependencies:'@eslint-community/eslint-utils': 4.9.0([email protected])@@ -22813,48 +20859,6 @@ snapshots:- dependencies:- '@eslint-community/eslint-utils': 4.9.0([email protected])- '@eslint-community/regexpp': 4.12.2- '@eslint/eslintrc': 2.1.4- '@eslint/js': 8.57.1- '@humanwhocodes/config-array': 0.11.14- '@humanwhocodes/module-importer': 1.0.1- '@nodelib/fs.walk': 1.2.8- ajv: 6.12.6- chalk: 4.1.2- cross-spawn: 7.0.6- debug: 4.4.3([email protected])- doctrine: 3.0.0- escape-string-regexp: 4.0.0- eslint-scope: 7.2.2- eslint-visitor-keys: 3.4.3- espree: 9.6.1- esquery: 1.6.0- esutils: 2.0.3- fast-deep-equal: 3.1.3- file-entry-cache: 6.0.1- find-up: 5.0.0- glob-parent: 6.0.2- globals: 13.24.0- graphemer: 1.4.0- ignore: 5.3.2- imurmurhash: 0.1.4- is-glob: 4.0.3- is-path-inside: 3.0.3- js-yaml: 4.1.1- json-stable-stringify-without-jsonify: 1.0.1- levn: 0.4.1- lodash.merge: 4.6.2- minimatch: 3.1.2- natural-compare: 1.4.0- optionator: 0.9.4- strip-ansi: 6.0.1- text-table: 0.2.0- transitivePeerDependencies:- - supports-color-dependencies:'@eslint-community/eslint-utils': 4.9.0([email protected])@@ -23033,18 +21037,6 @@ snapshots:signal-exit: 3.0.7strip-final-newline: 2.0.0- dependencies:- cross-spawn: 7.0.6- get-stream: 6.0.1- human-signals: 4.3.1- is-stream: 3.0.0- merge-stream: 2.0.0- npm-run-path: 5.3.0- onetime: 6.0.0- signal-exit: 3.0.7- strip-final-newline: 3.0.0-@@ -23206,10 +21198,6 @@ snapshots:- dependencies:- escape-string-regexp: 1.0.5-dependencies:flat-cache: 3.2.0@@ -23343,8 +21331,6 @@ snapshots:- [email protected]: {}-@@ -23361,12 +21347,6 @@ snapshots:jsonfile: 6.2.0universalify: 2.0.1- dependencies:- graceful-fs: 4.2.11- jsonfile: 6.2.0- universalify: 2.0.1-dependencies:at-least-node: 1.0.0@@ -23575,30 +21555,6 @@ snapshots:- uWebSockets.js- utf-8-validate- dependencies:- '@graphql-tools/graphql-file-loader': 8.1.7([email protected])- '@graphql-tools/json-file-loader': 8.0.24([email protected])- '@graphql-tools/load': 8.1.6([email protected])- '@graphql-tools/merge': 9.1.5([email protected])- '@graphql-tools/url-loader': 8.0.33(@types/[email protected])([email protected])- '@graphql-tools/utils': 10.10.3([email protected])- cosmiconfig: 8.3.6([email protected])- graphql: 16.12.0- jiti: 2.6.1- minimatch: 9.0.5- string-env-interpolation: 1.0.1- tslib: 2.8.1- transitivePeerDependencies:- - '@fastify/websocket'- - '@types/node'- - bufferutil- - crossws- - supports-color- - typescript- - uWebSockets.js- - utf-8-validate-dependencies:graphql: 16.12.0@@ -23663,14 +21619,6 @@ snapshots:transitivePeerDependencies:- supports-color- dependencies:- '@graphql-typed-document-node/core': 3.2.0([email protected])- cross-fetch: 3.2.0- graphql: 16.12.0- transitivePeerDependencies:- - encoding-dependencies:graphql: 16.12.0@@ -23886,8 +21834,6 @@ snapshots:- [email protected]: {}-@@ -23928,8 +21874,6 @@ snapshots:- [email protected]: {}-@@ -23940,26 +21884,6 @@ snapshots:- [email protected](@types/[email protected]):- dependencies:- '@inquirer/external-editor': 1.0.3(@types/[email protected])- ansi-escapes: 4.3.2- chalk: 4.1.2- cli-cursor: 3.1.0- cli-width: 3.0.0- figures: 3.2.0- lodash: 4.17.21- mute-stream: 0.0.8- ora: 5.4.1- run-async: 2.4.1- rxjs: 7.8.2- string-width: 4.2.3- strip-ansi: 6.0.1- through: 2.3.8- wrap-ansi: 6.2.0- transitivePeerDependencies:- - '@types/node'-dependencies:'@apidevtools/swagger-parser': 10.0.2([email protected])@@ -24061,7 +21985,8 @@ snapshots:call-bound: 1.0.4has-tostringtag: 1.0.2- [email protected]: {}+ optional: true@@ -24161,8 +22086,6 @@ snapshots:- [email protected]: {}-dependencies:call-bound: 1.0.4@@ -24212,6 +22135,7 @@ snapshots:dependencies:is-docker: 2.2.1+ optional: truedependencies:@@ -24650,8 +22574,6 @@ snapshots:- [email protected]: {}-@@ -24864,17 +22786,6 @@ snapshots:commander: 10.0.1optional: true- dependencies:- cli-truncate: 2.1.0- colorette: 2.0.20- log-update: 4.0.0- p-map: 4.0.0- rfdc: 1.4.1- rxjs: 7.8.2- through: 2.3.8- wrap-ansi: 7.0.0-dependencies:cli-truncate: 5.1.1@@ -24897,8 +22808,6 @@ snapshots:- [email protected]: {}-dependencies:mlly: 1.8.0@@ -24974,13 +22883,6 @@ snapshots:chalk: 4.1.2is-unicode-supported: 0.1.0- dependencies:- ansi-escapes: 4.3.2- cli-cursor: 3.1.0- slice-ansi: 4.0.0- wrap-ansi: 6.2.0-dependencies:ansi-escapes: 7.2.0@@ -25117,10 +23019,6 @@ snapshots:optionalDependencies:'@types/node': 24.10.1- [email protected](@types/[email protected]):- optionalDependencies:- '@types/node': 24.9.1-@@ -25152,8 +23050,6 @@ snapshots:- [email protected]: {}-@@ -25775,8 +23671,6 @@ snapshots:type-is: 1.6.18xtend: 4.0.2- [email protected]: {}-@@ -25809,8 +23703,6 @@ snapshots:- [email protected]: {}-@@ -25906,10 +23798,6 @@ snapshots:dependencies:path-key: 3.1.1- dependencies:- path-key: 4.0.0-dependencies:path-key: 4.0.0@@ -25970,11 +23858,6 @@ snapshots:- dependencies:- call-bind: 1.0.8- define-properties: 1.2.1-@@ -26006,10 +23889,6 @@ snapshots:dependencies:mimic-fn: 2.1.0- dependencies:- mimic-fn: 4.0.0-dependencies:mimic-function: 5.0.1@@ -26025,14 +23904,7 @@ snapshots:dependencies:is-docker: 2.2.1is-wsl: 2.2.0- optional: true-- dependencies:- default-browser: 4.0.0- define-lazy-prop: 3.0.0- is-inside-container: 1.0.0- is-wsl: 2.2.0+ optional: true@@ -26100,10 +23972,6 @@ snapshots:dependencies:p-limit: 4.0.0- dependencies:- aggregate-error: 3.1.0-@@ -26274,8 +24142,6 @@ snapshots:process: 0.11.10util: 0.10.4- [email protected]: {}-@@ -26441,14 +24307,6 @@ snapshots:postcss: 8.5.6ts-node: 10.9.2(@types/[email protected])([email protected])- [email protected]([email protected])([email protected](@types/[email protected])([email protected])):- dependencies:- lilconfig: 3.1.3- yaml: 2.8.1- optionalDependencies:- postcss: 8.5.6- ts-node: 10.9.2(@types/[email protected])([email protected])-dependencies:lilconfig: 3.1.3@@ -26607,12 +24465,6 @@ snapshots:- dependencies:- nanoid: 3.3.11- picocolors: 1.1.1- source-map-js: 1.2.1-dependencies:nanoid: 3.3.11@@ -26913,8 +24765,6 @@ snapshots:- [email protected]: {}-@@ -27146,10 +24996,6 @@ snapshots:optionalDependencies:fsevents: 2.3.3- optionalDependencies:- fsevents: 2.3.3-dependencies:'@types/estree': 1.0.8@@ -27193,22 +25039,12 @@ snapshots:execa: 2.0.0optional: true- dependencies:- execa: 5.1.1-- [email protected]: {}-dependencies:queue-microtask: 1.2.3- dependencies:- tslib: 2.8.1-dependencies:tslib: 2.8.1@@ -27271,8 +25107,6 @@ snapshots:ajv-formats: 2.1.1([email protected])ajv-keywords: 5.1.0([email protected])- [email protected]: {}-@@ -27441,12 +25275,6 @@ snapshots:once: 1.4.0simple-concat: 1.0.1- dependencies:- '@polka/url': 1.0.0-next.29- mrmime: 2.0.1- totalist: 3.0.1-dependencies:'@polka/url': 1.0.0-next.29@@ -27462,18 +25290,6 @@ snapshots:- dependencies:- ansi-styles: 4.3.0- astral-regex: 2.0.0- is-fullwidth-code-point: 3.0.0-- dependencies:- ansi-styles: 4.3.0- astral-regex: 2.0.0- is-fullwidth-code-point: 3.0.0-dependencies:ansi-styles: 6.2.3@@ -27757,8 +25573,6 @@ snapshots:- [email protected]: {}-@@ -27908,33 +25722,6 @@ snapshots:- dependencies:- '@alloc/quick-lru': 5.2.0- arg: 5.0.2- chokidar: 3.6.0- didyoumean: 1.2.2- dlv: 1.1.3- fast-glob: 3.3.3- glob-parent: 6.0.2- is-glob: 4.0.3- jiti: 1.21.7- lilconfig: 2.1.0- micromatch: 4.0.8- normalize-path: 3.0.0- object-hash: 3.0.0- picocolors: 1.1.1- postcss: 8.5.6- postcss-import: 15.1.0([email protected])- postcss-js: 4.1.0([email protected])- postcss-load-config: 4.0.2([email protected])([email protected](@types/[email protected])([email protected]))- postcss-nested: 6.2.0([email protected])- postcss-selector-parser: 6.1.2- resolve: 1.22.11- sucrase: 3.35.1- transitivePeerDependencies:- - ts-node-dependencies:'@alloc/quick-lru': 5.2.0@@ -27981,10 +25768,6 @@ snapshots:inherits: 2.0.4readable-stream: 3.6.2- dependencies:- '@tauri-apps/api': 1.5.1-@@ -28004,18 +25787,6 @@ snapshots:minimatch: 3.1.2resolve-from: 2.0.0- dependencies:- '@jridgewell/trace-mapping': 0.3.31- jest-worker: 27.5.1- schema-utils: 4.3.3- serialize-javascript: 6.0.2- terser: 5.44.1- webpack: 5.100.2([email protected])- optionalDependencies:- esbuild: 0.27.0- optional: true-dependencies:'@jridgewell/trace-mapping': 0.3.31@@ -28081,8 +25852,6 @@ snapshots:dependencies:tslib: 2.8.1- [email protected]: {}-optional: true@@ -28217,27 +25986,6 @@ snapshots:v8-compile-cache-lib: 3.0.1yn: 3.1.1- dependencies:- '@cspotcode/source-map-support': 0.8.1- '@tsconfig/node10': 1.0.12- '@tsconfig/node12': 1.0.11- '@tsconfig/node14': 1.0.3- '@tsconfig/node16': 1.0.4- '@types/node': 24.9.1- acorn: 8.15.0- acorn-walk: 8.3.4- arg: 4.1.3- create-require: 1.1.1- diff: 4.0.2- make-error: 1.3.6- typescript: 5.9.3- v8-compile-cache-lib: 3.0.1- yn: 3.1.1- optional: true-- [email protected]: {}-dependencies:chalk: 4.1.2@@ -28258,12 +26006,8 @@ snapshots:strip-bom: 3.0.0strip-json-comments: 2.0.1- [email protected]: {}-- [email protected]: {}-@@ -28296,11 +26040,6 @@ snapshots:- tsx- yaml- dependencies:- tslib: 1.14.1- typescript: 5.9.3-dependencies:safe-buffer: 5.2.1@@ -28444,33 +26183,12 @@ snapshots:- [email protected]([email protected](@types/[email protected])([email protected])([email protected])):- dependencies:- fast-glob: 3.3.3- unplugin: 1.16.1-[email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])):dependencies:fast-glob: 3.3.3unplugin: 2.3.5vite: 7.2.4(@types/[email protected])([email protected])([email protected])([email protected])([email protected])- dependencies:- '@antfu/install-pkg': 0.1.1- '@antfu/utils': 0.5.2- '@iconify/utils': 1.0.33- debug: 4.4.3([email protected])- kolorist: 1.8.0- local-pkg: 0.4.3- unplugin: 0.9.6- optionalDependencies:- '@vue/compiler-sfc': 3.5.24- vue-template-compiler: 2.7.16- transitivePeerDependencies:- - supports-color-dependencies:'@antfu/install-pkg': 1.1.0@@ -28509,28 +26227,6 @@ snapshots:pathe: 2.0.3picomatch: 4.0.3- [email protected](@babel/[email protected])([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected]))([email protected]([email protected]))([email protected]([email protected])):- dependencies:- '@antfu/utils': 0.5.2- '@rollup/pluginutils': 4.2.1- chokidar: 3.6.0- debug: 4.4.3([email protected])- fast-glob: 3.3.3- local-pkg: 0.4.3- magic-string: 0.26.7- minimatch: 5.1.6- resolve: 1.22.11- unplugin: 0.7.2([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected]))([email protected]([email protected]))- vue: 3.5.22([email protected])- optionalDependencies:- '@babel/parser': 7.28.5- transitivePeerDependencies:- - esbuild- - rollup- - supports-color- - vite- - webpack-dependencies:chokidar: 3.6.0@@ -28563,30 +26259,6 @@ snapshots:transitivePeerDependencies:- supports-color- [email protected]([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected]))([email protected]([email protected])):- dependencies:- acorn: 8.15.0- chokidar: 3.6.0- webpack-sources: 3.3.3- webpack-virtual-modules: 0.4.6- optionalDependencies:- esbuild: 0.27.0- rollup: 2.79.2- webpack: 5.100.2([email protected])-- dependencies:- acorn: 8.15.0- chokidar: 3.6.0- webpack-sources: 3.3.3- webpack-virtual-modules: 0.4.6-- dependencies:- acorn: 8.15.0- webpack-virtual-modules: 0.6.2-dependencies:acorn: 8.15.0@@ -28629,8 +26301,6 @@ snapshots:'@unrs/resolver-binding-win32-ia32-msvc': 1.11.1'@unrs/resolver-binding-win32-x64-msvc': 1.11.1- [email protected]: {}-@@ -28715,10 +26385,6 @@ snapshots:- dependencies:- zod: 3.25.32-dependencies:zod: 3.25.32@@ -28772,29 +26438,10 @@ snapshots:fast-glob: 3.3.3vite: 7.2.4(@types/[email protected])([email protected])([email protected])([email protected])([email protected])- [email protected]([email protected](@types/[email protected])([email protected])([email protected])):- dependencies:-[email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])):dependencies:vite: 7.2.4(@types/[email protected])([email protected])([email protected])([email protected])([email protected])- [email protected]([email protected])([email protected](@types/[email protected])([email protected])([email protected])):- dependencies:- '@antfu/utils': 0.7.10- '@rollup/pluginutils': 5.3.0([email protected])- debug: 4.4.3([email protected])- error-stack-parser-es: 0.1.5- fs-extra: 11.3.2- open: 9.1.0- picocolors: 1.1.1- sirv: 2.0.4- transitivePeerDependencies:- - rollup- - supports-color-[email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])):dependencies:ansis: 4.2.0@@ -28810,30 +26457,11 @@ snapshots:transitivePeerDependencies:- supports-color- [email protected]: {}-dependencies:sitemap: 8.0.2xml-formatter: 3.6.7- [email protected](@vue/[email protected])([email protected](@types/[email protected])([email protected])([email protected])):- dependencies:- '@types/debug': 4.1.12- debug: 4.4.3([email protected])- deep-equal: 2.2.3- extract-comments: 1.1.0- fast-glob: 3.3.3- json5: 2.2.3- local-pkg: 0.4.3- picocolors: 1.1.1- yaml: 2.8.1- optionalDependencies:- '@vue/compiler-sfc': 3.5.24- transitivePeerDependencies:- - supports-color-[email protected](@vue/[email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected]([email protected]([email protected]))):dependencies:'@types/debug': 4.1.12@@ -28853,17 +26481,6 @@ snapshots:transitivePeerDependencies:- supports-color- [email protected]([email protected](@types/[email protected])([email protected])([email protected]))([email protected](@types/[email protected]))([email protected]):- dependencies:- debug: 4.4.3([email protected])- pretty-bytes: 6.1.1- tinyglobby: 0.2.15- workbox-build: 7.4.0(@types/[email protected])- workbox-window: 6.6.0- transitivePeerDependencies:- - supports-color-[email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected](@types/[email protected]))([email protected]):dependencies:debug: 4.4.3([email protected])@@ -28875,14 +26492,6 @@ snapshots:transitivePeerDependencies:- supports-color- [email protected]([email protected](@types/[email protected])([email protected])([email protected])):- dependencies:- chokidar: 3.6.0- fast-glob: 3.3.3- fs-extra: 10.1.0- picocolors: 1.1.1-[email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])):dependencies:chokidar: 3.6.0@@ -28901,17 +26510,6 @@ snapshots:transitivePeerDependencies:- supports-color- [email protected]([email protected](@types/[email protected])([email protected])([email protected]))([email protected]([email protected]([email protected])))([email protected]([email protected])):- dependencies:- '@vue/compiler-sfc': 3.5.24- debug: 4.4.3([email protected])- fast-glob: 3.3.3- vue: 3.5.22([email protected])- vue-router: 4.6.3([email protected]([email protected]))- transitivePeerDependencies:- - supports-color-dependencies:esbuild: 0.15.18@@ -28924,17 +26522,6 @@ snapshots:sass: 1.94.2terser: 5.44.1- dependencies:- esbuild: 0.18.20- postcss: 8.5.6- rollup: 3.29.5- optionalDependencies:- '@types/node': 24.9.1- fsevents: 2.3.3- sass: 1.94.2- terser: 5.44.1-[email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]):dependencies:esbuild: 0.25.12@@ -29022,19 +26609,6 @@ snapshots:dependencies:vue: 3.5.22([email protected])- dependencies:- debug: 4.4.3([email protected])- eslint: 8.47.0- eslint-scope: 7.2.2- eslint-visitor-keys: 3.4.3- espree: 9.6.1- esquery: 1.6.0- lodash: 4.17.21- semver: 7.7.3- transitivePeerDependencies:- - supports-color-dependencies:debug: 4.4.3([email protected])@@ -29171,8 +26745,6 @@ snapshots:- [email protected]: {}-@@ -29207,39 +26779,6 @@ snapshots:- esbuild- uglify-js- dependencies:- '@types/eslint-scope': 3.7.7- '@types/estree': 1.0.8- '@types/json-schema': 7.0.15- '@webassemblyjs/ast': 1.14.1- '@webassemblyjs/wasm-edit': 1.14.1- '@webassemblyjs/wasm-parser': 1.14.1- acorn: 8.15.0- acorn-import-phases: 1.0.4([email protected])- browserslist: 4.28.0- chrome-trace-event: 1.0.4- enhanced-resolve: 5.18.3- es-module-lexer: 1.7.0- eslint-scope: 5.1.1- events: 3.3.0- glob-to-regexp: 0.4.1- graceful-fs: 4.2.11- json-parse-even-better-errors: 2.3.1- loader-runner: 4.3.1- mime-types: 2.1.35- neo-async: 2.6.2- schema-utils: 4.3.3- tapable: 2.3.0- watchpack: 2.4.4- webpack-sources: 3.3.3- transitivePeerDependencies:- - '@swc/core'- - esbuild- - uglify-js- optional: true-dependencies:iconv-lite: 0.6.3@@ -29392,8 +26931,6 @@ snapshots:dependencies:workbox-core: 7.4.0- [email protected]: {}-@@ -29446,11 +26983,6 @@ snapshots:- dependencies:- '@types/trusted-types': 2.0.7- workbox-core: 6.6.0-dependencies:'@types/trusted-types': 2.0.7@@ -29540,8 +27072,6 @@ snapshots:- [email protected]: {}-dependencies:eslint-visitor-keys: 3.4.3