forked from galaxyproject/galaxy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
67 changed files
with
3,062 additions
and
564 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import type { components } from "@/api/schema/schema"; | ||
|
||
export type Instance = | ||
| components["schemas"]["UserFileSourceModel"] | ||
| components["schemas"]["UserConcreteObjectStoreModel"]; | ||
|
||
export type TemplateVariable = components["schemas"]["TemplateVariable"]; | ||
export type TemplateSecret = components["schemas"]["TemplateSecret"]; | ||
export type VariableValueType = (string | boolean | number) | undefined; | ||
export type VariableData = { [key: string]: VariableValueType }; | ||
export type SecretData = { [key: string]: string }; | ||
|
||
export interface TemplateSummary { | ||
description: string | null; | ||
hidden?: boolean; | ||
id: string; | ||
name: string | null; | ||
secrets?: TemplateSecret[] | null; | ||
variables?: TemplateVariable[] | null; | ||
version?: number; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import { type components } from "@/api/schema"; | ||
|
||
export type FileSourceTemplateSummary = components["schemas"]["FileSourceTemplateSummary"]; | ||
export type FileSourceTemplateSummaries = FileSourceTemplateSummary[]; | ||
|
||
export type UserFileSourceModel = components["schemas"]["UserFileSourceModel"]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<script lang="ts" setup> | ||
import { BContainer } from "bootstrap-vue"; | ||
import LoadingSpan from "@/components/LoadingSpan.vue"; | ||
interface Props { | ||
loading: boolean; | ||
loadingMessage: string; | ||
prefix: string; | ||
} | ||
defineProps<Props>(); | ||
</script> | ||
|
||
<template> | ||
<BContainer fluid class="p-0"> | ||
<LoadingSpan v-if="loading" :message="loadingMessage" /> | ||
<div v-else> | ||
<slot /> | ||
</div> | ||
</BContainer> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<script setup lang="ts"> | ||
import { TemplateSummary } from "@/api/configTemplates"; | ||
interface Props { | ||
template: TemplateSummary; | ||
title: string; | ||
} | ||
defineProps<Props>(); | ||
const emit = defineEmits<{ | ||
(e: "update", secretName: string, secretValue: string): void; | ||
}>(); | ||
async function update(secretName: string, secretValue: string) { | ||
emit("update", secretName, secretValue); | ||
} | ||
</script> | ||
|
||
<template> | ||
<FormCard :title="title"> | ||
<template v-slot:body> | ||
<div> | ||
<div v-for="secret in template.secrets" :key="secret.name"> | ||
<VaultSecret :name="secret.name" :help="secret.help || ''" :is-set="true" @update="update"> | ||
</VaultSecret> | ||
</div> | ||
</div> | ||
</template> | ||
</FormCard> | ||
</template> |
Oops, something went wrong.