-
-
Notifications
You must be signed in to change notification settings - Fork 401
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add tool fan, extrusion factor and speed factor to dashbaord; add mac…
…ro buttons to dashboard; show printer stats in title & favicon
- Loading branch information
Showing
22 changed files
with
3,079 additions
and
2,119 deletions.
There are no files selected for viewing
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
Large diffs are not rendered by default.
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
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,45 @@ | ||
<template> | ||
<v-card> | ||
<v-list-item> | ||
<v-list-item-avatar color="grey"><v-icon dark>fa-thermometer-three-quarters</v-icon></v-list-item-avatar> | ||
<v-list-item-content> | ||
<v-list-item-title class="headline">Macros</v-list-item-title> | ||
<v-list-item-subtitle> | ||
{{ getMacros.length }} Macros | ||
</v-list-item-subtitle> | ||
</v-list-item-content> | ||
</v-list-item> | ||
<v-divider class="my-2"></v-divider> | ||
<v-card-text class="px-0 pt-0 pb-2 content text-center"> | ||
<div v-for="(macro, index) in getMacros" v-bind:key="index+99" style="display: inline-block;" class="mx-1 my-1"> | ||
<v-btn color="primary" class="ml-3" @click="doSend(macro.name)">{{ macro.name }}</v-btn> | ||
</div> | ||
</v-card-text> | ||
</v-card> | ||
</template> | ||
|
||
<script> | ||
import {mapGetters} from 'vuex' | ||
export default { | ||
components: { | ||
}, | ||
data: function() { | ||
return { | ||
} | ||
}, | ||
computed: { | ||
...mapGetters([ | ||
'getMacros', | ||
]), | ||
}, | ||
methods: { | ||
doSend(gcode) { | ||
this.$socket.sendObj('post_printer_gcode', { script: gcode }, "sendGcode"); | ||
}, | ||
}, | ||
} | ||
</script> |
Oops, something went wrong.