From b6c2f7647c3dff23efe738a6b8e0a1e60c4258f6 Mon Sep 17 00:00:00 2001 From: Mark Haslinghuis Date: Fri, 22 Nov 2024 23:13:30 +0100 Subject: [PATCH] Update Vue --- package.json | 8 +- .../betaflight-logo/BetaflightLogo.vue | 52 +++++---- src/components/data-flash/DataFlash.vue | 68 +++++------ src/components/eventBus.js | 10 +- src/components/init.js | 35 +++--- .../port-picker/FirmwareVirtualOption.vue | 40 ++++--- .../port-picker/PortOverrideOption.vue | 9 +- src/components/port-picker/PortPicker.vue | 108 ++++++++++-------- src/components/port-picker/PortsInput.vue | 70 +++++++----- src/components/quad-status/BatteryIcon.vue | 11 +- src/components/quad-status/BatteryLegend.vue | 8 +- .../quad-status/BottomStatusIcons.vue | 49 ++++---- src/components/sensor-status/SensorStatus.vue | 103 ++++++++--------- src/components/status-bar/PortUtilization.vue | 9 +- src/components/status-bar/ReadingStat.vue | 10 +- src/components/status-bar/StatusBar.vue | 13 ++- .../status-bar/StatusBarVersion.vue | 6 +- src/components/vueI18n.js | 9 -- src/js/port_handler.js | 5 + vite.config.js | 22 ++-- yarn.lock | 97 ++++++++++------ 21 files changed, 405 insertions(+), 337 deletions(-) delete mode 100644 src/components/vueI18n.js diff --git a/package.json b/package.json index 876f159f5c..8c51b61026 100644 --- a/package.json +++ b/package.json @@ -32,13 +32,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", @@ -57,8 +57,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", @@ -67,6 +68,7 @@ "@storybook/addon-essentials": "^6.5.16", "@storybook/addon-links": "^6.5.16", "@storybook/vue": "^6.5.16", + "@vue/compiler-sfc": "^3.5.12", "babel-loader": "^8.3.0", "eslint": "^8.57.0", "eslint-plugin-vue": "^7.20.0", diff --git a/src/components/betaflight-logo/BetaflightLogo.vue b/src/components/betaflight-logo/BetaflightLogo.vue index 54e2cca497..55ba542659 100644 --- a/src/components/betaflight-logo/BetaflightLogo.vue +++ b/src/components/betaflight-logo/BetaflightLogo.vue @@ -1,3 +1,26 @@ + + - - + +export default { + components: { + BetaflightLogo + } +} diff --git a/src/components/data-flash/DataFlash.vue b/src/components/data-flash/DataFlash.vue index cc5ee76148..c6cc90f847 100644 --- a/src/components/data-flash/DataFlash.vue +++ b/src/components/data-flash/DataFlash.vue @@ -24,42 +24,44 @@ +