diff --git a/package-lock.json b/package-lock.json
index b7092741..e8fcd69c 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "mainsail",
- "version": "1.3.0",
+ "version": "1.4.0",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "mainsail",
- "version": "1.3.0",
+ "version": "1.4.0",
"dependencies": {
"axios": "^0.21.1",
"core-js": "^3.8.2",
@@ -20,8 +20,8 @@
"vue-context": "^6.0.0",
"vue-github-api": "^0.1.7",
"vue-headful": "^2.1.0",
- "vue-load-image": "^0.1.12",
"vue-i18n": "^8.22.4",
+ "vue-load-image": "^0.1.12",
"vue-observe-visibility": "^1.0.0",
"vue-plotly": "^1.1.0",
"vue-prism-editor": "^1.2.2",
@@ -17405,6 +17405,19 @@
"integrity": "sha512-BXq3jwIagosjgNVae6tkHzzIk6a8MHFtzAdwhnV5VlvPTFxDCvIttgSiHWjdGoTJvXtmRu5HacExfdarRcFhog==",
"dev": true
},
+ "node_modules/vue-i18n": {
+ "version": "8.24.2",
+ "resolved": "https://registry.npmjs.org/vue-i18n/-/vue-i18n-8.24.2.tgz",
+ "integrity": "sha512-+TkAPBQw4Cp2bQrSPtPNkhET7XcWYjjDt1UjWYQs+xbT41q5OAl1I3IZyhg0drjn1nlC1K0f8sLVB/nshUcF1Q=="
+ },
+ "node_modules/vue-load-image": {
+ "version": "0.1.12",
+ "resolved": "https://registry.npmjs.org/vue-load-image/-/vue-load-image-0.1.12.tgz",
+ "integrity": "sha512-F2OwNP0hB0OG1wOy/r9SJ5oFiKvpgS1jluMkHtr3VFtbrhQPvuL53wNxatjkONn3Ciw6Ui54hBCgGBLAwwkZYw==",
+ "peerDependencies": {
+ "vue": "^2.0.0"
+ }
+ },
"node_modules/vue-loader": {
"version": "15.9.3",
"resolved": "https://registry.npmjs.org/vue-loader/-/vue-loader-15.9.3.tgz",
@@ -35235,6 +35248,17 @@
"integrity": "sha512-BXq3jwIagosjgNVae6tkHzzIk6a8MHFtzAdwhnV5VlvPTFxDCvIttgSiHWjdGoTJvXtmRu5HacExfdarRcFhog==",
"dev": true
},
+ "vue-i18n": {
+ "version": "8.24.2",
+ "resolved": "https://registry.npmjs.org/vue-i18n/-/vue-i18n-8.24.2.tgz",
+ "integrity": "sha512-+TkAPBQw4Cp2bQrSPtPNkhET7XcWYjjDt1UjWYQs+xbT41q5OAl1I3IZyhg0drjn1nlC1K0f8sLVB/nshUcF1Q=="
+ },
+ "vue-load-image": {
+ "version": "0.1.12",
+ "resolved": "https://registry.npmjs.org/vue-load-image/-/vue-load-image-0.1.12.tgz",
+ "integrity": "sha512-F2OwNP0hB0OG1wOy/r9SJ5oFiKvpgS1jluMkHtr3VFtbrhQPvuL53wNxatjkONn3Ciw6Ui54hBCgGBLAwwkZYw==",
+ "requires": {}
+ },
"vue-loader": {
"version": "15.9.3",
"resolved": "https://registry.npmjs.org/vue-loader/-/vue-loader-15.9.3.tgz",
diff --git a/package.json b/package.json
index 8382bc88..2026985c 100644
--- a/package.json
+++ b/package.json
@@ -21,8 +21,8 @@
"vue-context": "^6.0.0",
"vue-github-api": "^0.1.7",
"vue-headful": "^2.1.0",
- "vue-load-image": "^0.1.12",
"vue-i18n": "^8.22.4",
+ "vue-load-image": "^0.1.12",
"vue-observe-visibility": "^1.0.0",
"vue-plotly": "^1.1.0",
"vue-prism-editor": "^1.2.2",
diff --git a/src/components/panels/HistoryListPanel.vue b/src/components/panels/HistoryListPanel.vue
index 49dc5874..c8280527 100644
--- a/src/components/panels/HistoryListPanel.vue
+++ b/src/components/panels/HistoryListPanel.vue
@@ -2,7 +2,7 @@
- Print History
+ {{ $t('History.PrintHistory') }}
mdi-refresh
@@ -22,7 +22,7 @@
@@ -37,7 +37,7 @@
:sort-desc.sync="sortDesc"
:items-per-page.sync="countPerPage"
:footer-props="{
- itemsPerPageText: 'Jobs',
+ itemsPerPageText: $t('History.Jobs'),
itemsPerPageOptions: [10,25,50,100,-1]
}"
item-key="name"
@@ -50,7 +50,7 @@
- empty
+ {{ $t('History.Empty') }}
@@ -120,13 +120,13 @@
- mdi-text-box-search Details
+ mdi-text-box-search {{ $t('History.Details') }}
- mdi-printer Reprint
+ mdi-printer {{ $t('History.Reprint') }}
- mdi-delete Delete
+ mdi-delete {{ $t('History.Delete') }}
@@ -134,7 +134,7 @@
- mdi-updateJob Details
+ mdi-update{{ $t('History.JobDetails') }}
mdi-close-thick
@@ -148,75 +148,75 @@
">
- | Filename |
+ {{ $t('History.Filename') }} |
{{ detailsDialog.item.filename }} |
- | Filesize |
+ {{ $t('History.Filesize') }} |
{{ formatFilesize(detailsDialog.item.metadata.size) }} |
- | Last Modified |
+ {{ $t('History.LastModified') }} |
{{ formatDate(detailsDialog.item.metadata.modified) }} |
- | Status |
+ {{ $t('History.Status') }} |
{{ detailsDialog.item.status }} |
- | Start Time |
+ {{ $t('History.StartTime') }} |
{{ formatDate(detailsDialog.item.start_time) }} |
- | End Time |
+ {{ $t('History.EndTime') }} |
{{ formatDate(detailsDialog.item.end_time) }} |
- | Estimated Time |
+ {{ $t('History.EstimatedTime') }} |
{{ formatPrintTime(detailsDialog.item.metadata.estimated_time) }} |
- | Print Duration |
+ {{ $t('History.PrintDuration') }} |
{{ formatPrintTime(detailsDialog.item.print_duration) }} |
- | Total Duration |
+ {{ $t('History.TotalDuration') }} |
{{ formatPrintTime(detailsDialog.item.total_duration) }} |
- | Estimated Filament |
+ {{ $t('History.EstimatedFilament') }} |
{{ Math.round(detailsDialog.item.metadata.filament_total) }} mm |
- | Filament Used |
+ {{ $t('History.FilamentUsed') }} |
{{ Math.round(detailsDialog.item.filament_used) }} mm |
- | First Layer Ext. Temp. |
+ {{ $t('History.FirstLayerExtTemp') }} |
{{ detailsDialog.item.metadata.first_layer_extr_temp }} °C |
- | First Layer Bed Temp. |
+ {{ $t('History.FirstLayerBedTemp') }} |
{{ detailsDialog.item.metadata.first_layer_bed_temp }} °C |
- | First Layer Height |
+ {{ $t('History.FirstLayerHeight') }} |
{{ detailsDialog.item.metadata.first_layer_height }} mm |
- | Layer Height |
+ {{ $t('History.LayerHeight') }} |
{{ detailsDialog.item.metadata.layer_height }} mm |
- | Object Height |
+ {{ $t('History.ObjectHeight') }} |
{{ detailsDialog.item.metadata.object_height }} mm |
- | Slicer |
+ {{ $t('History.Slicer') }} |
{{ detailsDialog.item.metadata.slicer }} |
- | Slicer Version |
+ {{ $t('History.SlicerVersion') }} |
{{ detailsDialog.item.metadata.slicer_version }} |
@@ -243,24 +243,24 @@ import VueLoadImage from 'vue-load-image'
selected: [],
hideHeaderColums: [],
headers: [
- { text: '', value: '', align: 'left', configable: false, visible: true, filterable: false },
- { text: 'Name', value: 'filename', align: 'left', configable: false, visible: true },
- { text: '', value: 'status', align: 'left', configable: false, visible: true, filterable: false },
- { text: 'Filesize', value: 'size', align: 'left', configable: true, visible: false },
- { text: 'Last modified', value: 'modified', align: 'left', configable: true, visible: false },
- { text: 'Start Time', value: 'start_time', align: 'left', configable: true, visible: true },
- { text: 'End Time', value: 'end_time', align: 'left', configable: true, visible: false },
- { text: 'Estimated Time', value: 'estimated_time', align: 'left', configable: true, visible: true },
- { text: 'Print Time', value: 'print_duration', align: 'left', configable: true, visible: true },
- { text: 'Total Time', value: 'total_duration', align: 'left', configable: true, visible: false },
- { text: 'Filament Calc', value: 'filament_total', align: 'left', configable: true, visible: false },
- { text: 'Filament Used', value: 'filament_used', align: 'left', configable: true, visible: true },
- { text: 'Ext. Temp.', value: 'first_layer_extr_temp', align: 'left', configable: true, visible: false },
- { text: 'Bed Temp.', value: 'first_layer_bed_temp', align: 'left', configable: true, visible: false },
- { text: 'First Layer Height', value: 'first_layer_height', align: 'left', configable: true, visible: false },
- { text: 'Layer Height', value: 'layer_height', align: 'left', configable: true, visible: false },
- { text: 'Object Height', value: 'object_height', align: 'left', configable: true, visible: false },
- { text: 'Slicer', value: 'slicer', align: 'left', configable: true, visible: true },
+ { text: '', value: '', align: 'left', configable: false, visible: true, filterable: false },
+ { text: this.$t("History.Filename"), value: 'filename', align: 'left', configable: false, visible: true },
+ { text: '', value: 'status', align: 'left', configable: false, visible: true, filterable: false },
+ { text: this.$t("History.Filesize"), value: 'size', align: 'left', configable: true, visible: false },
+ { text: this.$t("History.LastModified"), value: 'modified', align: 'left', configable: true, visible: false },
+ { text: this.$t("History.StartTime"), value: 'start_time', align: 'left', configable: true, visible: true },
+ { text: this.$t("History.EndTime"), value: 'end_time', align: 'left', configable: true, visible: false },
+ { text: this.$t("History.EstimatedTime"), value: 'estimated_time', align: 'left', configable: true, visible: true },
+ { text: this.$t("History.PrintTime"), value: 'print_duration', align: 'left', configable: true, visible: true },
+ { text: this.$t("History.TotalTime"), value: 'total_duration', align: 'left', configable: true, visible: false },
+ { text: this.$t("History.FilamentCalc"), value: 'filament_total', align: 'left', configable: true, visible: false },
+ { text: this.$t("History.FilamentUsed"), value: 'filament_used', align: 'left', configable: true, visible: true },
+ { text: this.$t("History.FirstLayerExtTemp"), value: 'first_layer_extr_temp', align: 'left', configable: true, visible: false },
+ { text: this.$t("History.FirstLayerBedTemp"), value: 'first_layer_bed_temp', align: 'left', configable: true, visible: false },
+ { text: this.$t("History.FirstLayerHeight"), value: 'first_layer_height', align: 'left', configable: true, visible: false },
+ { text: this.$t("History.LayerHeight"), value: 'layer_height', align: 'left', configable: true, visible: false },
+ { text: this.$t("History.ObjectHeight"), value: 'object_height', align: 'left', configable: true, visible: false },
+ { text: this.$t("History.Slicer"), value: 'slicer', align: 'left', configable: true, visible: true },
],
options: {
diff --git a/src/locales/en.js b/src/locales/en.js
index 497e0fe9..20c3a7ed 100644
--- a/src/locales/en.js
+++ b/src/locales/en.js
@@ -46,6 +46,7 @@ export default {
Console: "Console",
Heightmap: "Heightmap",
"G-Code Files": "G-Code Files",
+ History: "History",
Machine: "Machine",
Interface: "Interface"
},
@@ -121,6 +122,45 @@ export default {
DoYouReallyWantToDelete: "Do you really want to delete the profile",
Remove: "remove"
},
+ History: {
+ Statistics: "Statistics",
+ TotalPrinttime: "Total Printtime",
+ LongestPrinttime: "Longest Printtime",
+ AvgPrinttime: "Avg. Printtime",
+ TotalFilamentUsed: "Total Filament Used",
+ TotalJobs: "Total Jobs",
+ FilamentUsage: "Filament usage",
+ PrinttimeAvg: "Printtime AVG",
+ PrintHistory: "Print History",
+ Search: "search",
+ Jobs: "Jobs",
+ Empty: "empty",
+ Details: "Details",
+ Reprint: "Reprint",
+ Delete: "Delete",
+ JobDetails: "Job Details",
+ Filename: "Filename",
+ Filesize: "Filesize",
+ LastModified: "Last Modified",
+ Status: "Status",
+ StartTime: "Start Time",
+ EndTime: "End Time",
+ EstimatedTime: "Estimated Time",
+ PrintDuration: "Print Time",
+ PrintTime: "Print Time",
+ TotalDuration: "Total Time",
+ TotalTime: "Total Time",
+ EstimatedFilament: "Estimated Filament",
+ FilamentCalc: "Filament Calc",
+ FilamentUsed: "Filament Used",
+ FirstLayerExtTemp: "First Layer Ext Temp",
+ FirstLayerBedTemp: "First Layer Bed Temp",
+ FirstLayerHeight: "First Layer Height",
+ LayerHeight: "Layer Height",
+ ObjectHeight: "Object Height",
+ Slicer: "Slicer",
+ SlicerVersion: "Slicer Version",
+ },
Panels: {
ControlPanel: {
Controls: "Controls",
diff --git a/src/pages/History.vue b/src/pages/History.vue
index b1d2d258..8e69b54b 100644
--- a/src/pages/History.vue
+++ b/src/pages/History.vue
@@ -9,7 +9,7 @@
- mdi-chart-areasplineStatistics
+ mdi-chart-areaspline{{ $t('History.Statistics') }}
@@ -18,23 +18,23 @@
- | Total Printtime |
+ {{ $t('History.TotalPrinttime') }} |
{{ formatPrintTime(totalPrintTime) }} |
- | Longest Printtime |
+ {{ $t('History.LongestPrinttime') }} |
{{ formatPrintTime(longestPrintTime) }} |
- | Avg. Printtime |
+ {{ $t('History.AvgPrinttime') }} |
{{ formatPrintTime(avgPrintTime) }} |
- | Total Filament used |
+ {{ $t('History.TotalFilamentUsed') }} |
{{ Math.round(totalFilamentUsed / 100) / 10 }} m |
- | Total Jobs |
+ {{ $t('History.TotalJobs') }} |
{{ totalJobsCount }} |
@@ -49,10 +49,10 @@
- Filament usage
+ {{ $t('History.FilamentUsage') }}
- Printime AVG
+ {{ $t('History.PrinttimeAvg') }}