-
-
Notifications
You must be signed in to change notification settings - Fork 373
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
178 additions
and
98 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,43 @@ | ||
<style scoped> | ||
<style> | ||
.tool-input { | ||
min-width: 5rem; | ||
margin-top: 0; | ||
padding: 0; | ||
} | ||
.tool-input .v-input__slot { margin-bottom: 0; } | ||
.tool-input .v-text-field__details { display: none; } | ||
</style> | ||
|
||
<template> | ||
<v-text-field type="number" min="-273" max="1999" step="any" v-model="value" class="tool-input" @change="setTemps"> | ||
<v-text-field type="number" min="-273" max="1999" step="any" ref="toolField" v-model="value" class="tool-input" @change="setTemps"> | ||
</v-text-field> | ||
</template> | ||
|
||
|
||
<script> | ||
export default { | ||
data: () => ({ | ||
value: 0 | ||
}), | ||
data: function() { | ||
return { | ||
value: this.target | ||
} | ||
}, | ||
props: { | ||
name: String, | ||
target: Number, | ||
}, | ||
computed: { | ||
}, | ||
methods: { | ||
setTemps() { | ||
this.$socket.sendObj('post_printer_gcode', {script: 'SET_HEATER_TEMPERATURE HEATER='+this.name+' TARGET='+this.value}); | ||
} | ||
} | ||
}, | ||
watch: { | ||
target: function() { | ||
this.value = this.target; | ||
} | ||
}, | ||
} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import VueRouter from 'vue-router' | ||
import Vue from "vue"; | ||
import routes from "../routes"; | ||
|
||
Vue.use(VueRouter); | ||
const router = new VueRouter({mode: 'history', routes}); | ||
|
||
export default router; |
Oops, something went wrong.