From c40d62642410fceb2732f221bbddcdab4eb5c50c Mon Sep 17 00:00:00 2001 From: Mark Haslinghuis Date: Fri, 22 Nov 2024 23:13:30 +0100 Subject: [PATCH 1/2] Update Vue --- package.json | 7 +- src/components/data-flash/DataFlash.vue | 76 +++--- src/components/eventBus.js | 10 +- src/components/init.js | 43 ++-- .../port-picker/FirmwareVirtualOption.vue | 40 ++-- .../port-picker/PortOverrideOption.vue | 47 ++-- src/components/port-picker/PortPicker.vue | 147 +++++++----- src/components/port-picker/PortsInput.vue | 217 ++++++++++++++---- src/components/quad-status/BatteryIcon.vue | 84 +++++-- src/components/quad-status/BatteryLegend.vue | 30 ++- .../quad-status/BottomStatusIcons.vue | 49 ++-- src/components/sensor-status/SensorStatus.vue | 103 +++++---- src/components/status-bar/PortUtilization.vue | 47 ++-- src/components/status-bar/ReadingStat.vue | 47 ++-- src/components/status-bar/StatusBar.vue | 140 +++++++---- .../status-bar/StatusBarVersion.vue | 40 ++-- src/components/vueI18n.js | 9 - src/js/port_handler.js | 5 + vite.config.js | 22 +- yarn.lock | 102 +++++--- 20 files changed, 799 insertions(+), 466 deletions(-) delete mode 100644 src/components/vueI18n.js diff --git a/package.json b/package.json index 2cb77b35ca..1cd99b4a9b 100644 --- a/package.json +++ b/package.json @@ -41,13 +41,13 @@ "@capacitor/android": "^6.0.0", "@capacitor/core": "^6.0.0", "@fortawesome/fontawesome-free": "^6.5.2", - "@panter/vue-i18next": "^0.15.2", - "@vitejs/plugin-vue2": "^2.3.1", + "@vitejs/plugin-vue": "^5.1.4", "crypto-es": "^2.1.0", "d3": "^7.9.0", "djv": "^2.1.4", "dompurify": "^2.5.5", "i18next": "^19.9.2", + "i18next-vue": "^5.0.0", "i18next-xhr-backend": "^3.2.2", "inflection": "^1.13.4", "jbox": "^1.3.3", @@ -66,8 +66,9 @@ "short-unique-id": "^4.4.4", "switchery-latest": "^0.8.2", "three": "~0.97.0", + "tiny-emitter": "^2.1.0", "vite-plugin-pwa": "^0.17.5", - "vue": "^2.7.16" + "vue": "^3.5.12" }, "devDependencies": { "@babel/core": "^7.24.4", diff --git a/src/components/data-flash/DataFlash.vue b/src/components/data-flash/DataFlash.vue index 259de55343..c6fbf3b277 100644 --- a/src/components/data-flash/DataFlash.vue +++ b/src/components/data-flash/DataFlash.vue @@ -18,43 +18,61 @@ +