-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement instance URLs in Galaxy markdown.
- Loading branch information
Showing
10 changed files
with
266 additions
and
5 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,31 @@ | ||
<script setup lang="ts"> | ||
import { computed } from "vue"; | ||
import ExternalLink from "@/components/ExternalLink.vue"; | ||
import LoadingSpan from "@/components/LoadingSpan.vue"; | ||
interface InstanceUrlProps { | ||
href?: string; | ||
title?: string; | ||
loading: boolean; | ||
} | ||
const props = withDefaults(defineProps<InstanceUrlProps>(), { | ||
href: null, | ||
title: null, | ||
}); | ||
const effectiveTitle = computed(() => { | ||
return props.title ? props.title : props.href; | ||
}); | ||
</script> | ||
|
||
<template> | ||
<p> | ||
<LoadingSpan v-if="props.loading" message="Loading instance configuration"> </LoadingSpan> | ||
<ExternalLink v-else-if="props.href" :href="props.href"> | ||
{{ effectiveTitle }} | ||
</ExternalLink> | ||
<i v-else> Configuration value unset, please contact Galaxy admin. </i> | ||
</p> | ||
</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
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
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
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
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
Oops, something went wrong.