diff --git a/.gitignore b/.gitignore
index 7d75fa68e..5ad0690cc 100644
--- a/.gitignore
+++ b/.gitignore
@@ -123,3 +123,4 @@ New client/photon-client/*
# *.iml
photon-server/build
photon-server/photon-vision
+photon-server/src/main/resources/web
diff --git a/photon-client/src/App.vue b/photon-client/src/App.vue
index f28559573..4c421cd00 100644
--- a/photon-client/src/App.vue
+++ b/photon-client/src/App.vue
@@ -118,14 +118,19 @@
},
methods: {
handleMessage(key, value) {
- if (this.$store.state.hasOwnProperty(key)) {
+ if (key === "logMessage") {
+ console.log(value)
+ this.logMessage(value, 0)
+ } else if (key === "updatePipelineResult") {
+ this.$store.commit('mutatePipelineResults', value)
+ } else if (this.$store.state.hasOwnProperty(key)) {
this.$store.commit(key, value);
- } else if (this.$store.state.pipeline.hasOwnProperty(key)) {
+ } else if (this.$store.getters.currentPipelineSettings.hasOwnProperty(key)) {
this.$store.commit('mutatePipeline', {'key': key, 'value': value});
} else {
switch (key) {
default: {
- console.log(key + " : " + value);
+ console.log(value);
}
}
}
@@ -141,7 +146,7 @@
}
this.timer = setInterval(this.saveSettings, 4000);
},
- logMessage({message, level}) {
+ logMessage(message, level) {
const colors = ["\u001b[31m", "\u001b[32m", "\u001b[33m", "\u001b[34m"]
const reset = "\u001b[0m"
this.log += `${colors[level]}${message}${reset}\n`
diff --git a/photon-client/src/components/common/cv-icon.vue b/photon-client/src/components/common/cv-icon.vue
index 8c91cacd4..bf48d65fc 100644
--- a/photon-client/src/components/common/cv-icon.vue
+++ b/photon-client/src/components/common/cv-icon.vue
@@ -23,6 +23,7 @@
\ No newline at end of file
diff --git a/photon-client/src/components/common/cv-select.vue b/photon-client/src/components/common/cv-select.vue
index da7e9d9ba..20a3a6c45 100644
--- a/photon-client/src/components/common/cv-select.vue
+++ b/photon-client/src/components/common/cv-select.vue
@@ -27,6 +27,7 @@
\ No newline at end of file
diff --git a/photon-client/src/components/common/cv-switch.vue b/photon-client/src/components/common/cv-switch.vue
index af49b328c..0128c9abd 100644
--- a/photon-client/src/components/common/cv-switch.vue
+++ b/photon-client/src/components/common/cv-switch.vue
@@ -23,6 +23,7 @@