feat: support for predefined variables (#3886)

Co-authored-by: Anwarul Islam <anwaarulislaam@gmail.com>
Co-authored-by: jamesgeorge007 <25279263+jamesgeorge007@users.noreply.github.com>
This commit is contained in:
Kishan Jadav
2024-09-30 09:47:34 +01:00
committed by jamesgeorge007
parent db8cf229ac
commit e4d9f82a75
14 changed files with 608 additions and 17 deletions

View File

@@ -261,7 +261,7 @@ const clearIcon = refAutoReset<typeof IconTrash2 | typeof IconDone>(
1000
)
const globalVars = useReadonlyStream(globalEnv$, {} as GlobalEnvironment)
const globalEnv = useReadonlyStream(globalEnv$, {} as GlobalEnvironment)
type SelectedEnv = "variables" | "secret"
@@ -319,7 +319,7 @@ const liveEnvs = computed(() => {
}
return [
...vars.value.map((x) => ({ ...x.env, source: editingName.value! })),
...globalVars.value.variables.map((x) => ({ ...x, source: "Global" })),
...globalEnv.value.variables.map((x) => ({ ...x, source: "Global" })),
]
})