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
98 changed files
with
4,010 additions
and
576 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
32 changes: 32 additions & 0 deletions
32
client/src/components/ConfigTemplates/CreateInstance.test.ts
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,32 @@ | ||
import { shallowMount } from "@vue/test-utils"; | ||
import { getLocalVue } from "tests/jest/helpers"; | ||
|
||
import CreateInstance from "./CreateInstance.vue"; | ||
|
||
const localVue = getLocalVue(true); | ||
|
||
describe("CreateInstance", () => { | ||
it("should render a loading message during loading", async () => { | ||
const wrapper = shallowMount(CreateInstance, { | ||
propsData: { | ||
loading: true, | ||
loadingMessage: "component loading...", | ||
}, | ||
localVue, | ||
}); | ||
const loadingSpan = wrapper.findComponent({ name: "LoadingSpan" }).exists(); | ||
expect(loadingSpan).toBeTruthy(); | ||
}); | ||
|
||
it("should hide a loading message after loading", async () => { | ||
const wrapper = shallowMount(CreateInstance, { | ||
propsData: { | ||
loading: false, | ||
loadingMessage: "component loading...", | ||
}, | ||
localVue, | ||
}); | ||
const loadingSpan = wrapper.findComponent({ name: "LoadingSpan" }).exists(); | ||
expect(loadingSpan).toBeFalsy(); | ||
}); | ||
}); |
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 @@ | ||
<script lang="ts" setup> | ||
import { BContainer } from "bootstrap-vue"; | ||
import LoadingSpan from "@/components/LoadingSpan.vue"; | ||
interface Props { | ||
loading: boolean; | ||
loadingMessage: string; | ||
} | ||
defineProps<Props>(); | ||
</script> | ||
|
||
<template> | ||
<BContainer fluid class="p-0"> | ||
<LoadingSpan v-if="loading" :message="loadingMessage" /> | ||
<div v-else> | ||
<slot /> | ||
</div> | ||
</BContainer> | ||
</template> |
Oops, something went wrong.