modify nginx config in README;
Settings > Machine > Endstop Status Settings > Machine > Runout Sensor
This commit is contained in:
1 parent
d0f78196c5
commit
6bc72dcb8c
24 files changed
+472
-93
No files matched your search
@@ -210,6 +210,11 @@ export default {
|
||||
commit('setLoadingRestartFirmware', false);
|
||||
},
|
||||
|
||||
responseEndstopStatus({ commit }, data) {
|
||||
commit('setLoadingEndstopStatus', false);
|
||||
commit('setEndstopStatus', data);
|
||||
},
|
||||
|
||||
switchToDashboard() {
|
||||
router.push("/");
|
||||
},
|
||||
|
||||
@@ -153,6 +153,32 @@ export default {
|
||||
});
|
||||
},
|
||||
|
||||
getFilamentSwitchSensors: state => {
|
||||
let sensors = [];
|
||||
|
||||
for (let [key, value] of Object.entries(state.printer)) {
|
||||
let nameSplit = key.split(" ");
|
||||
|
||||
if (nameSplit[0] === "filament_switch_sensor") {
|
||||
sensors.push({
|
||||
name: nameSplit[1],
|
||||
enabled: value.enabled,
|
||||
filament_detected: value.filament_detected,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
return sensors.sort((a, b) => {
|
||||
let nameA = a.name.toUpperCase();
|
||||
let nameB = b.name.toUpperCase();
|
||||
|
||||
if (nameA < nameB) return -1;
|
||||
if (nameA > nameB) return 1;
|
||||
|
||||
return 0;
|
||||
});
|
||||
},
|
||||
|
||||
getTitle: state => {
|
||||
if (state.socket.isConnected) {
|
||||
if (state.printer.pause_resume.is_paused) return "Pause Print";
|
||||
|
||||
+4
-1
@@ -29,6 +29,7 @@ export default new Vuex.Store({
|
||||
loadingRestart: false,
|
||||
loadingRestartFirmware: false,
|
||||
loadingSaveGuiConfig: false,
|
||||
loadingEndstopStatus: false,
|
||||
},
|
||||
webcam: {
|
||||
url: ""
|
||||
@@ -37,6 +38,7 @@ export default new Vuex.Store({
|
||||
dashboard: {
|
||||
boolWebcam: true,
|
||||
boolTempchart: true,
|
||||
boolConsole: false,
|
||||
hiddenMacros: [],
|
||||
},
|
||||
webcam: {
|
||||
@@ -86,7 +88,8 @@ export default new Vuex.Store({
|
||||
},
|
||||
fan: {
|
||||
speed: 0,
|
||||
}
|
||||
},
|
||||
endstops: {},
|
||||
},
|
||||
object: {
|
||||
heater: {
|
||||
|
||||
@@ -10,7 +10,7 @@ export default {
|
||||
},
|
||||
|
||||
setDisconnected (state) {
|
||||
state.socket.isConnected = false
|
||||
state.socket.isConnected = false;
|
||||
Vue.prototype.$socket.reconnect();
|
||||
},
|
||||
|
||||
@@ -162,6 +162,10 @@ export default {
|
||||
}
|
||||
},
|
||||
|
||||
setEndstopStatus(state, data) {
|
||||
Vue.set(state.printer, 'endstops', data);
|
||||
},
|
||||
|
||||
setLoadingSendGcode(state, value) {
|
||||
state.socket.loadingSendGcode = value;
|
||||
},
|
||||
@@ -230,6 +234,10 @@ export default {
|
||||
state.socket.loadingSaveGuiConfig = value;
|
||||
},
|
||||
|
||||
setLoadingEndstopStatus(state, value) {
|
||||
state.socket.loadingEndstopStatus = value;
|
||||
},
|
||||
|
||||
reportError(state, data) {
|
||||
//Vue.$toast.error(data.message);
|
||||
window.console.log(data);
|
||||
|
||||
Reference in new issue
Block a user