Skip to content

Commit 2c979e3

Browse files
Makes path to itk-module adjustable via config.json
1 parent 4c0b5fb commit 2c979e3

File tree

5 files changed

+6
-7
lines changed

5 files changed

+6
-7
lines changed

viplab-standalone-frontend-vue/.env

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
VUE_APP_FILENAME = workshop-bash-example.computation-template
1+
VUE_APP_FILENAME = hello-world.docker-container-example
2+
#workshop-snakemake-example.computation-template
23
#workshop-snakemake-example.computation-template
34
#leap-year.computation-template
45
#case_1.computation-template
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
22
"WEBSOCKET_API": "wss://localhost/computations",
3-
"IS_STUDENT": false
3+
"IS_STUDENT": false,
4+
"ITK_PATH": "js/itk"
45
}

viplab-standalone-frontend-vue/src/App.vue

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,16 +90,13 @@ export default {
9090
console.log(Object.keys(this.$store.state.jsonTemplate).length === 0)
9191
console.log(this.$store.state.jsonTemplate)
9292
if (data !== "{{ data }}" && Object.keys(this.$store.state.jsonTemplate).length === 0) {
93-
console.log("1")
9493
this.json = JSON.parse(base64url.decode(data));
9594
// store token in Vuex store
9695
this.$store.commit("updateToken", appDiv.getAttribute("data-token"));
9796
} else if (Object.keys(this.$store.state.jsonTemplate).length > 0) {
98-
console.log("2")
9997
this.json = this.$store.state.jsonTemplate;
10098
this.token = this.$store.state.token;
10199
} else {
102-
console.log(3)
103100
this.json = {};
104101
this.token = "";
105102
}

viplab-standalone-frontend-vue/src/components/vtk-plots/VtkComponent.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ export default {
435435
beforeCreate() {
436436
// TODO: Is there a better solution for this?
437437
// before creation change the path of the itk modules such that they can be moved to the dist/js-folder upon build
438-
itkConfig.itkModulesPath = "js/itk"//"../static/js/vue";
438+
itkConfig.itkModulesPath = this.$config.ITK_PATH;
439439
}
440440
};
441441
</script>

viplab-standalone-frontend-vue/src/input/workshop-bash-example.computation-template.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
}
3838
],
3939
"configuration" :
40-
{ "resources.image": "name://example_snakemake",
40+
{ "resources.image": "name://example_bash",
4141
"resources.volume": "/my_simulation",
4242
"resources.memory": "1g",
4343
"resources.numCPUs": 1,

0 commit comments

Comments
 (0)