mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
remove webpack for initial version, fix default location
This commit is contained in:
committed by
Dannon Baker
parent
a8fb9b5983
commit
c5825e07db
@@ -31,11 +31,6 @@
|
||||
<script>
|
||||
import { getAppRoot } from "onload/loadConfig";
|
||||
export default {
|
||||
// data() {
|
||||
// return {
|
||||
// imageLoc: "static/plugins/welcome_page/new_user/static/topics/",
|
||||
// }
|
||||
// },
|
||||
props: {
|
||||
header: {type: String, required: true},
|
||||
slides: {type: Array, required: true},
|
||||
@@ -44,7 +39,7 @@
|
||||
methods: {
|
||||
imgUrl(src) {
|
||||
const root = getAppRoot();
|
||||
const url = `${root}${this.imageLoc}${src}`.replace("//", "/");
|
||||
const url = `${root}static/${this.imageLoc}${src}`.replace("//", "/");
|
||||
return url;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -42,7 +42,7 @@
|
||||
methods: {
|
||||
imgUrl(src) {
|
||||
const root = getAppRoot();
|
||||
const url = `${root}${this.imageLoc}${src}`.replace("//", "/");
|
||||
const url = `${root}static/${this.imageLoc}${src}`.replace("//", "/");
|
||||
return url;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -32,7 +32,6 @@
|
||||
<script>
|
||||
import { getAppRoot } from "onload/loadConfig";
|
||||
export default {
|
||||
|
||||
props: {
|
||||
topics: {type: Array, required: true},
|
||||
imageLoc: {type: String, required: false, default: "static/plugins/welcome_page/new_user/static/topics/"},
|
||||
@@ -40,7 +39,7 @@ export default {
|
||||
methods: {
|
||||
imgUrl(src) {
|
||||
const root = getAppRoot();
|
||||
const url = `${root}${this.imageLoc}${src}`.replace("//", "/");
|
||||
const url = `${root}static/${this.imageLoc}${src}`.replace("//", "/");
|
||||
return url;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
v-bind="currentNode"
|
||||
@select="down"
|
||||
@back="up"
|
||||
:image-loc="config.welcome_directory || defaultLocation"
|
||||
:image-loc="config.welcome_directory"
|
||||
>
|
||||
</component>
|
||||
</ConfigProvider>
|
||||
@@ -60,7 +60,7 @@ export default {
|
||||
methods: {
|
||||
imgUrl(src) {
|
||||
const root = getAppRoot();
|
||||
const url = `${root}${this.imageLoc}${src}`.replace("//", "/");
|
||||
const url = `${root}static/${this.imageLoc}${src}`.replace("//", "/");
|
||||
return url;
|
||||
},
|
||||
up(){
|
||||
|
||||
@@ -433,13 +433,10 @@ export const getAnalysisRouter = (Galaxy) => {
|
||||
},
|
||||
|
||||
mountWelcome: async function() {
|
||||
import(/* webpackIgnore: true */ getAppRoot() + "static/plugins" + Galaxy.config.welcome_directory + "topics.js").then(module=> {
|
||||
const propsData = {
|
||||
newUserDict,
|
||||
};
|
||||
this._display_vue_helper(NewUserWelcome, propsData);
|
||||
}
|
||||
)
|
||||
},
|
||||
|
||||
/** load the center panel with a tool form described by the given params obj */
|
||||
|
||||
@@ -4796,7 +4796,7 @@
|
||||
Location of New User Welcome data, a single directory containing
|
||||
the images and JSON of Topics/Subtopics/Slides as export. This
|
||||
location is relative to galaxy/static
|
||||
:Default: ``/welcome_page/new_user/static/``
|
||||
:Default: ``plugins/welcome_page/new_user/static/topics/``
|
||||
:Type: str
|
||||
|
||||
|
||||
|
||||
@@ -2349,5 +2349,5 @@ galaxy:
|
||||
# Location of New User Welcome data, a single directory containing the
|
||||
# images and JSON of Topics/Subtopics/Slides as export. This location
|
||||
# is relative to galaxy/static
|
||||
#welcome_directory: /welcome_page/new_user/static/
|
||||
#welcome_directory: plugins/welcome_page/new_user/static/topics/
|
||||
|
||||
|
||||
@@ -3497,7 +3497,7 @@ mapping:
|
||||
|
||||
welcome_directory:
|
||||
type: str
|
||||
default: /welcome_page/new_user/static/
|
||||
default: plugins/welcome_page/new_user/static/topics/
|
||||
required: false
|
||||
desc: |
|
||||
Location of New User Welcome data, a single directory containing the
|
||||
|
||||
Reference in New Issue
Block a user