78 lines
1.3 KiB
JavaScript
78 lines
1.3 KiB
JavaScript
import actions from './actions'
|
|
import mutations from './mutations'
|
|
import getters from './getters'
|
|
|
|
export function getDefaultState() {
|
|
return {
|
|
general: {
|
|
printername: "",
|
|
},
|
|
dashboard: {
|
|
boolWebcam: false,
|
|
boolTempchart: true,
|
|
boolConsole: true,
|
|
hiddenMacros: [],
|
|
hiddenTempChart: [],
|
|
control: {
|
|
feedrateXY: 100,
|
|
stepsXY: [ 100, 10, 1 ],
|
|
feedrateZ: 25,
|
|
stepsZ: [ 25, 1, 0.1 ],
|
|
},
|
|
extruder: {
|
|
feedamount: 25,
|
|
feedamounts: [ 50, 25, 10, 5, 1 ],
|
|
feedrate: 5,
|
|
feedrates: [ 60, 30, 15, 5, 1 ],
|
|
}
|
|
},
|
|
webcam: {
|
|
service: 'mjpegstreamer',
|
|
targetFps: 25,
|
|
url: "",
|
|
rotate: false,
|
|
rotateDegrees: 90,
|
|
flipX: false,
|
|
flipY: false,
|
|
bool: false,
|
|
},
|
|
tempchart: {
|
|
intervalChartUpdate: 1000,
|
|
intervalDatasetUpdate: 1000,
|
|
autoscale: false,
|
|
datasetSettings: {
|
|
|
|
},
|
|
},
|
|
console: {
|
|
hideWaitTemperatures: true,
|
|
boolCustomFilters: false,
|
|
customFilters: "",
|
|
},
|
|
gcodefiles: {
|
|
countPerPage: 10,
|
|
showHiddenFiles: false,
|
|
hideMetadataColums: []
|
|
},
|
|
settings: {
|
|
configfiles: {
|
|
countPerPage: 10,
|
|
showHiddenFiles: false,
|
|
}
|
|
},
|
|
remotePrinters: [],
|
|
presets: [],
|
|
cooldownGcode: "TURN_OFF_HEATERS"
|
|
}
|
|
}
|
|
|
|
// initial state
|
|
const state = getDefaultState()
|
|
|
|
export default {
|
|
namespaced: true,
|
|
state,
|
|
getters,
|
|
actions,
|
|
mutations
|
|
} |