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
chore: enable/disable features in platforms (#2968)
Akash K1370b5372698
diff --git a/packages/hoppscotch-common/src/components/collections/ImportExport.vue b/packages/hoppscotch-common/src/components/collections/ImportExport.vueindex 90badc53f..7aa864c15 100644--- a/packages/hoppscotch-common/src/components/collections/ImportExport.vue+++ b/packages/hoppscotch-common/src/components/collections/ImportExport.vue@@ -131,6 +131,7 @@@click="emit('export-json-collection')"/><span+ v-if="platform.platformFeatureFlags.exportAsGIST"v-tippy="{ theme: 'tooltip' }":title="!currentUserdiff --git a/packages/hoppscotch-common/src/platform/index.ts b/packages/hoppscotch-common/src/platform/index.tsindex 9ce384458..8dd237f0f 100644--- a/packages/hoppscotch-common/src/platform/index.ts+++ b/packages/hoppscotch-common/src/platform/index.ts@@ -18,6 +18,9 @@ export type PlatformDef = {history: HistoryPlatformDeftabState: TabStatePlatformDef}+ platformFeatureFlags: {+ exportAsGIST: boolean+ }}export let platform: PlatformDefdiff --git a/packages/hoppscotch-web/src/main.ts b/packages/hoppscotch-web/src/main.tsindex 5e2108199..672f331cb 100644--- a/packages/hoppscotch-web/src/main.ts+++ b/packages/hoppscotch-web/src/main.ts@@ -20,4 +20,7 @@ createHoppApp("#app", {history: historyDef,tabState: tabStateDef,},+ platformFeatureFlags: {+ exportAsGIST: true,+ },})