forked from galaxyproject/galaxy
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathAboutGalaxy.vue
More file actions
127 lines (118 loc) · 5.51 KB
/
AboutGalaxy.vue
File metadata and controls
127 lines (118 loc) · 5.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
<script setup lang="ts">
/* global __buildTimestamp__, __license__ */
/* (injected at build time) */
import { computed } from "vue";
import { RouterLink } from "vue-router";
import { galaxyLogo } from "@/components/icons/galaxyIcons";
import { useConfig } from "@/composables/config";
import { getAppRoot } from "@/onload/loadConfig";
import Heading from "@/components/Common/Heading.vue";
import ExternalLink from "@/components/ExternalLink.vue";
import License from "@/components/License/License.vue";
import UtcDate from "@/components/UtcDate.vue";
const { config, isConfigLoaded } = useConfig();
const clientBuildDate = __buildTimestamp__ || new Date().toISOString();
const apiDocsLink = `${getAppRoot()}api/docs`;
const galaxyLicense = __license__;
const versionUserDocumentationUrl = computed(() => {
const configVal = config.value;
return config.value.version_minor.slice(0, 3) === "dev"
? "https://docs.galaxyproject.org/en/latest/releases/index.html"
: `${configVal.release_doc_base_url}${configVal.version_major}/releases/${configVal.version_major}_announce_user.html`;
});
</script>
<template>
<div v-if="isConfigLoaded" class="about-galaxy">
<Heading h1 :icon="galaxyLogo" size="lg">Help and Support</Heading>
<div class="p-2">
<Heading h2 separator size="md">Support</Heading>
<div v-if="config.wiki_url">
<ExternalLink :href="config.wiki_url">
<strong v-localize>Community Hub</strong>
</ExternalLink>
<p v-localize>Join our community and explore tutorials on using Galaxy and enhance your skills.</p>
</div>
<div v-if="config.helpsite_url">
<ExternalLink :href="config.helpsite_url">
<strong v-localize>Ask Questions & Find Answers</strong>
</ExternalLink>
<p v-localize>
Visit the Galaxy Q&A website to find answers to your questions and connect with other users.
</p>
</div>
<div v-if="config.support_url">
<ExternalLink :href="config.support_url">
<strong v-localize>Reach Out</strong>
</ExternalLink>
<p v-localize>Need help or want to teach and learn more about Galaxy? Feel free to reach out to us.</p>
</div>
<Heading v-localize h2 separator size="md">Help</Heading>
<div>
<RouterLink to="tours">
<strong v-localize>Interactive Tours</strong>
</RouterLink>
<p v-localize>Discover and learn about Galaxy with our interactive tours.</p>
</div>
<div v-if="config.screencasts_url">
<ExternalLink :href="config.screencasts_url">
<strong v-localize>Videos and Screencasts</strong>
</ExternalLink>
<p v-localize>Learn more about Galaxy by watching videos and screencasts.</p>
</div>
<div v-if="config.citation_url">
<ExternalLink :href="config.citation_url">
<strong v-localize>How to Cite Us</strong>
</ExternalLink>
<p v-localize>View details on how to properly cite Galaxy.</p>
</div>
<Heading h2 separator size="md">Technical Details</Heading>
<div>
<!-- Galaxy version (detailed), with a link to the release notes -->
<ExternalLink :href="versionUserDocumentationUrl">
<strong v-localize>Release Notes</strong>
</ExternalLink>
<p v-localize>
This Galaxy server version is <strong>{{ config.version_major }}.{{ config.version_minor }}</strong
>, and the web client was built on
<strong><UtcDate :date="clientBuildDate" mode="pretty" /></strong>.
</p>
<template v-if="config.version_extra">
<p v-localize>The server also provides the following extra version information</p>
<ul>
<li v-for="([name, value], index) in Object.entries(config.version_extra)" :key="index">
<strong>{{ name }}</strong>
: {{ value }}
</li>
</ul>
</template>
</div>
<div>
<ExternalLink :href="apiDocsLink">
<strong v-localize>API Documentation</strong>
</ExternalLink>
<p v-localize>Explore the Galaxy API.</p>
</div>
<div>
<License class="font-weight-bold" :license-id="galaxyLicense" />
<p v-localize>The Galaxy Software is licensed under the MIT License.</p>
</div>
<div v-if="config.terms_url">
<!-- Terms, if available.-->
<ExternalLink :href="config.terms_url">
<strong v-localize>Terms and Conditions</strong>
</ExternalLink>
<p v-localize>
This Galaxy Server has specified Terms and Conditions that apply to use of the service.
</p>
</div>
</div>
</div>
</template>
<style lang="scss" scoped>
@import "@/style/scss/theme/blue.scss";
.about-galaxy h1 {
--fa-primary-color: #{$brand-primary};
--fa-secondary-color: #{$brand-toggle};
--fa-secondary-opacity: 1;
}
</style>