diff --git a/src/components/panels/HistoryListPanel.vue b/src/components/panels/HistoryListPanel.vue index 5511bf05..6c923f87 100644 --- a/src/components/panels/HistoryListPanel.vue +++ b/src/components/panels/HistoryListPanel.vue @@ -102,6 +102,100 @@ + + + + + mdi-updateJob Details + + + mdi-close-thick + + + + + + Filename + {{ detailsDialog.item.filename }} + + + Filesize + {{ formatFilesize(detailsDialog.item.metadata.size) }} + + + Last Modified + {{ formatDate(detailsDialog.item.metadata.modified) }} + + + Status + {{ detailsDialog.item.status }} + + + Start Time + {{ formatDate(detailsDialog.item.start_time) }} + + + End Time + {{ formatDate(detailsDialog.item.end_time) }} + + + Estimated Time + {{ formatPrintTime(detailsDialog.item.metadata.estimated_time) }} + + + Print Duration + {{ formatPrintTime(detailsDialog.item.print_duration) }} + + + Total Duration + {{ formatPrintTime(detailsDialog.item.total_duration) }} + + + Estimated Filament + {{ Math.round(detailsDialog.item.metadata.filament_total) }} mm + + + Filament Used + {{ Math.round(detailsDialog.item.filament_used) }} mm + + + First Layer Ext. Temp. + {{ detailsDialog.item.metadata.first_layer_extr_temp }} °C + + + First Layer Bed Temp. + {{ detailsDialog.item.metadata.first_layer_bed_temp }} °C + + + First Layer Height + {{ detailsDialog.item.metadata.first_layer_height }} mm + + + Layer Height + {{ detailsDialog.item.metadata.layer_height }} mm + + + Object Height + {{ detailsDialog.item.metadata.object_height }} mm + + + Slicer + {{ detailsDialog.item.metadata.slicer }} + + + Slicer Version + {{ detailsDialog.item.metadata.slicer_version }} + + + + + + @@ -141,12 +235,15 @@ }, contextMenu: { shown: false, - isDirectory: false, touchTimer: undefined, x: 0, y: 0, item: {} }, + detailsDialog: { + item: {}, + boolShow: false, + } } }, computed: { @@ -249,6 +346,10 @@ return '--' }, + clickRow(item) { + this.detailsDialog.item = item + this.detailsDialog.boolShow = true + }, showContextMenu (e, item) { if (!this.contextMenu.shown) { e?.preventDefault(); @@ -334,6 +435,15 @@ } return false + }, + getThumbnailWidth(item) { + if (this.getBigThumbnail(item)) { + const thumbnail = item.metadata.thumbnails.find(thumb => thumb.width >= 300 && thumb.width <= 400) + + if (thumbnail) return thumbnail.width + } + + return 400 } }, watch: { diff --git a/src/store/server/history/getters.js b/src/store/server/history/getters.js index 0a6fdd06..95671cc9 100644 --- a/src/store/server/history/getters.js +++ b/src/store/server/history/getters.js @@ -84,7 +84,10 @@ export default { output.push({ name: current.status, value: 1, - itemStyle: itemStyle + itemStyle: itemStyle, + label: { + color: '#fff' + } }) } })