From bf4458e7e47ac4df0dfc297c6444d77fee527519 Mon Sep 17 00:00:00 2001 From: Zeanon Date: Sun, 30 Jul 2023 22:36:08 +0200 Subject: [PATCH] Squashed commit of the following: commit 1b763e23ef211e37e30d961e77c27b7c251d6c37 Merge: 4d241fc4 1a125548 Author: Stefan Dej Date: Sun Jul 30 21:23:05 2023 +0200 [Automated] Merged develop into target master commit 1a12554821a9eaf7737a7f4be5bb51c7552d6dce Author: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun Jul 30 19:22:55 2023 +0000 chore: push version number to v2.6.2 commit 7251a8c6bae2b92395de4c8c23e8e8e3900df66a Author: Zhu Qian Date: Mon Jul 31 03:17:39 2023 +0800 locale(zh): update chinese locale (#1486) Co-authored-by: Stefan Dej commit cda3098c9e09a054aa7baa69a3195e0a73f43e54 Author: Stefan Dej Date: Sun Jul 30 21:03:00 2023 +0200 fix: fix issue with cannot extrude after a Klipper restart (#1495) commit 9eb133bd85530ac08416e94f02ebe19f060bc095 Author: Stefan Dej Date: Sun Jul 30 21:02:28 2023 +0200 fix: fix multiple issues in the refactored update manager (#1497) commit 6a4cca751c88e89ddf5f2cc0f09a58f097a461af Author: Stefan Dej Date: Sun Jul 30 21:01:05 2023 +0200 fix: fix issue with create/edit presets and refactor settings (#1499) commit d67ef3aa908601b6bb87353957bcc97ea4f829ea Author: Stefan Dej Date: Sun Jul 30 12:41:08 2023 +0200 fix: use webcam name instead of UUID for timelapse plugin (#1492) commit aeee1982398acca803f7f4eae7b7b39a29253179 Author: Stefan Dej Date: Fri Jul 28 22:48:01 2023 +0200 fix: fix issue with camel-case object names in temperature panel (#1491) commit 5c4082010890e0b341754f42673affe7d1ca9d99 Author: Stefan Dej Date: Thu Jul 27 23:02:51 2023 +0200 fix: fix flip function in several webcam clients (#1487) commit e929c7cc0f45074f40407420b3585d9c02284fa1 Author: Stefan Dej Date: Thu Jul 27 09:42:07 2023 +0200 fix: hide rpm in temperature_fans without tachometer_pin (#1489) commit 0b47a80b133e6093aecdb0d7d87b718899dff0c7 Author: Stefan Dej Date: Mon Jul 24 22:13:16 2023 +0200 refactor: refactor SettingsRow (#1484) commit 8447be2ecee64fa4a3c0211ac57f42c3adf1d050 Author: Stefan Dej Date: Mon Jul 24 22:08:50 2023 +0200 fix: fix editor save & restart button behavior (#1483) commit 0c5aca8baffb65198f43a7d3b2b57571d8e911c9 Author: Daviteusz Date: Mon Jul 24 19:27:21 2023 +0200 locale(pl): Update Polish translation (#1482) commit eceb442a4c45f81f1e5cbcfc0d15572ecdb01cbd Author: meteyou Date: Mon Jul 24 07:36:14 2023 +0000 docs(changelog): update changelog --- CHANGELOG.md | 33 ++ package.json | 2 +- src/components/TheEditor.vue | 20 +- src/components/mixins/webcam.ts | 13 + .../panels/Machine/UpdatePanel/Entry.vue | 97 +++--- .../UpdatePanel/GitCommitsListDayCommit.vue | 6 +- .../Machine/UpdatePanel/UpdateHintAlert.vue | 8 +- .../Temperature/TemperaturePanelListItem.vue | 12 +- .../settings/Presets/PresetsEntry.vue | 56 +++ .../settings/Presets/PresetsEntryCooldown.vue | 26 ++ .../settings/Presets/PresetsForm.vue | 182 ++++++++++ .../settings/Presets/PresetsFormCooldown.vue | 52 +++ src/components/settings/SettingsEditorTab.vue | 45 +-- .../settings/SettingsPresetsTab.vue | 319 ++---------------- src/components/settings/SettingsRow.vue | 4 +- .../settings/SettingsTimelapseTab.vue | 132 ++++---- src/components/webcams/Hlsstreamer.vue | 11 +- src/components/webcams/Ipstreamer.vue | 13 +- src/components/webcams/JMuxerStream.vue | 13 +- src/components/webcams/JanusStreamer.vue | 14 +- src/components/webcams/Mjpegstreamer.vue | 11 +- .../webcams/MjpegstreamerAdaptive.vue | 15 +- src/components/webcams/Uv4lMjpeg.vue | 11 +- .../webcams/WebrtcCameraStreamer.vue | 9 +- src/components/webcams/WebrtcMediaMTX.vue | 13 +- src/locales/cz.json | 2 - src/locales/da.json | 2 - src/locales/de.json | 2 - src/locales/en.json | 3 +- src/locales/es.json | 2 - src/locales/fr.json | 2 - src/locales/hu.json | 2 - src/locales/ja.json | 2 - src/locales/ko.json | 2 - src/locales/nl.json | 2 - src/locales/pl.json | 44 ++- src/locales/pt.json | 2 - src/locales/ru.json | 2 - src/locales/sv.json | 2 - src/locales/tr.json | 2 - src/locales/uk.json | 2 - src/locales/zh.json | 62 ++-- src/locales/zh_TW.json | 2 - src/store/editor/actions.ts | 4 +- src/store/editor/getters.ts | 9 - src/store/gui/index.ts | 1 - src/store/gui/types.ts | 1 - src/store/gui/webcams/actions.ts | 11 +- src/store/printer/actions.ts | 15 + src/store/server/timelapse/actions.ts | 8 + src/store/server/updateManager/types.ts | 4 + 51 files changed, 720 insertions(+), 589 deletions(-) create mode 100644 src/components/settings/Presets/PresetsEntry.vue create mode 100644 src/components/settings/Presets/PresetsEntryCooldown.vue create mode 100644 src/components/settings/Presets/PresetsForm.vue create mode 100644 src/components/settings/Presets/PresetsFormCooldown.vue diff --git a/CHANGELOG.md b/CHANGELOG.md index 7c96e03b4..ea0a17a75 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,39 @@ # Changelog All notable changes to Mainsail will be documented in this file. +## [2.6.1](https://github.com/mainsail-crew/mainsail/releases/tag/v2.6.1) - 2023-07-24 +### Bug Fixes and Improvements + +- Show delete dialog for single files too (#1442) | [7da3352](7da33523d1ec7c4a3206400fb92803685176167e) +- Remove variable check in klipper config StreamParser (#1435) | [6e7ef65](6e7ef6554ec88ceb29f66b4d6a5d5f21ef77671b) +- Fix condition in restartServiceNameExists check (#1450) | [a7e70c7](a7e70c75d0009ffed14e8717ad8286f91e4e7e8a) +- Avoid hitting 100% before print is complete (#1455) | [3959000](39590004da7ca22fef82fbd148b31683c462bb13) +- Fix issue with ETA and 12h time format (#1463) | [039a446](039a446944f05ea241574c65040d520bbbef0e9b) +- Fix issue with CSV separator in contents (#1460) | [1895d2d](1895d2d90591946c792faaf3f62c52865f27cd62) +- Fix issue with webcams in farm printers (#1469) | [5b2bea5](5b2bea51aab79aabfab02825cdce45be351c1c6f) + +### Refactor + +- Build version file for moonraker (#1449) | [21d3d39](21d3d395039ec855d062a5ee5e5b43e2d858f402) +- Use moonraker webcam api instead of direct DB access (#1445) | [7c81690](7c81690c1e299c804edb4ede0acab7d77d1dedbe) +- Change SettingsGeneralTab file (#1475) | [db09bbe](db09bbe043b2e43053779709f5260c7275bc4969) +- Extract Presets and Settings from TemperaturePanel (#1465) | [be25316](be253165a003c50fd992f43c586ce5315dc2352d) +- Display errors and warnings in the update_manager (#1453) | [0cefa24](0cefa24e766c568a56127bfd55272735383cb45e) + +### Localization + +- **pl**: Update Polish translation (#1434) | [73e503f](73e503fc6448ae174dd7f9d59236c820bd4b6631) +- **pl**: Update Polish translation (#1447) | [d844125](d8441254db04d672fe2137f64e39127f524c4769) +- **pl**: Update polish locale (#1471) | [a58bef2](a58bef2a03479262b4ee5db2b5d103e8dc2194c5) +- **pl**: Update Polish translation (#1476) | [6758049](6758049d29c7410bcdedec689eaca503952b2c7e) +- **tr**: Update turkish locale (#1480) | [f52b94c](f52b94c459ad759e160a568d3b6f366b0e65f484) +- **zh**: Update Chinese (zh) localization (#1459) | [bcbef2f](bcbef2f19af4746b941ddcb29c98ff5f071611d0) + +### Other + +- **pwa**: Remove debug warnings in browser console (#1441) | [2962df2](2962df21e512baad6976dc502d6234c2969da686) +- Add dev-dist to .gitignore (#1451) | [ef2d17c](ef2d17cadde566e8b713031cb7292d65ca1bec12) + ## [2.6.0](https://github.com/mainsail-crew/mainsail/releases/tag/v2.6.0) - 2023-06-19 ### Features diff --git a/package.json b/package.json index 0f92a11a0..f9b28e8fb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mainsail", - "version": "2.6.10", + "version": "2.6.11", "private": true, "decription": "a klipper web interface", "author": { diff --git a/src/components/TheEditor.vue b/src/components/TheEditor.vue index e6ec42b30..63463ab87 100644 --- a/src/components/TheEditor.vue +++ b/src/components/TheEditor.vue @@ -239,25 +239,33 @@ export default class TheEditor extends Mixins(BaseMixin) { if (!this.isWriteable) return null if (['printing', 'paused'].includes(this.printer_state)) return null + // check for generic services .conf (like moonraker.conf, crowsnest.conf, sonar.conf) if (this.availableServices.includes(this.filenameWithoutExtension) && this.fileExtension === 'conf') return this.filenameWithoutExtension + + // old webcam service DEPRECATED if (this.filename.startsWith('webcam') && ['conf', 'txt'].includes(this.fileExtension)) return 'webcamd' + + // check for mooncord config files if (this.filename.startsWith('mooncord') && this.fileExtension === 'json') return 'mooncord' - if (this.filename === 'moonraker.conf') return this.moonrakerRestartInstance ?? 'moonraker' + // fallback for moonraker with multi instances + if (this.filename === 'moonraker.conf') return 'moonraker' + + // all .cfg files will be klipper config files if (this.fileExtension === 'cfg') return 'klipper' return null } get restartServiceNameExists() { - if (!this.restartServiceName) return true + // hide the button, if there is no service found + if (this.restartServiceName === null) return false - return this.availableServices.includes(this.restartServiceName) - } + // klipper and moonraker uses specific api calls instead of generic service restart + if (['klipper', 'moonraker'].includes(this.restartServiceName)) return true - get moonrakerRestartInstance() { - return this.$store.state.gui.editor.moonrakerRestartInstance + return this.availableServices.includes(this.restartServiceName) } get confirmUnsavedChanges() { diff --git a/src/components/mixins/webcam.ts b/src/components/mixins/webcam.ts index 0508a3b8d..784b3dce0 100644 --- a/src/components/mixins/webcam.ts +++ b/src/components/mixins/webcam.ts @@ -47,4 +47,17 @@ export default class WebcamMixin extends Mixins(BaseMixin) { return mdiWebcam } } + + generateTransform(flip_horizontal: boolean, flip_vertical: boolean, rotation: number) { + let transforms = '' + if (flip_horizontal) transforms += ' scaleX(-1)' + if (flip_vertical) transforms += ' scaleY(-1)' + if (rotation === 180) transforms += ' rotate(180deg)' + + // return transform when exist + if (transforms.trimStart().length) return transforms.trimStart() + + // return none as fallback + return 'none' + } } diff --git a/src/components/panels/Machine/UpdatePanel/Entry.vue b/src/components/panels/Machine/UpdatePanel/Entry.vue index 53e1e77d7..9aaae04fa 100644 --- a/src/components/panels/Machine/UpdatePanel/Entry.vue +++ b/src/components/panels/Machine/UpdatePanel/Entry.vue @@ -19,7 +19,17 @@ {{ versionOutput }} -