chore: merge hoppscotch/staging into self-hosted/main

This commit is contained in:
Andrew Bastin
2023-03-31 01:07:56 +05:30
63 changed files with 2427 additions and 1924 deletions

View File

@@ -4,6 +4,7 @@ import { EnvironmentsPlatformDef } from "./environments"
import { CollectionsPlatformDef } from "./collections"
import { SettingsPlatformDef } from "./settings"
import { HistoryPlatformDef } from "./history"
import { TabStatePlatformDef } from "./tab"
export type PlatformDef = {
ui?: UIPlatformDef
@@ -13,6 +14,7 @@ export type PlatformDef = {
collections: CollectionsPlatformDef
settings: SettingsPlatformDef
history: HistoryPlatformDef
tabState: TabStatePlatformDef
}
}

View File

@@ -0,0 +1,10 @@
import { PersistableRESTTabState } from "~/helpers/rest/tab"
import { HoppUser } from "./auth"
export type TabStatePlatformDef = {
loadTabStateFromSync: () => Promise<PersistableRESTTabState | null>
writeCurrentTabState: (
user: HoppUser,
persistableTabState: PersistableRESTTabState
) => Promise<void>
}