From 39937d177f719f8d98fc3539cbf7939492b873ce Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Fri, 3 Apr 2026 13:57:37 +0200 Subject: [PATCH] refactor(webui): migrate globalProperties to provide/inject Replace Vue 2-style app.config.globalProperties with Vue 3 provide/inject using typed InjectionKeys. Create useConfiguration and useTemplates composables. Remove dead globalProperties fallback paths and refreshChargingStations no-op. Update test mounts to use provide. Clean ComponentCustomProperties from shims-vue.d.ts. --- .../actions/AddChargingStations.vue | 32 +++++----- .../components/actions/SetSupervisionUrl.vue | 15 +++-- .../components/actions/StartTransaction.vue | 9 +-- ui/web/src/composables/Utils.ts | 35 +++++++--- ui/web/src/composables/index.ts | 7 +- ui/web/src/main.ts | 32 ++++++---- ui/web/src/shims-vue.d.ts | 6 -- ui/web/src/views/ChargingStationsView.vue | 64 ++++++++----------- ui/web/tests/unit/AddChargingStations.test.ts | 7 +- .../tests/unit/ChargingStationsView.test.ts | 18 ++++-- ui/web/tests/unit/SetSupervisionUrl.test.ts | 5 +- 11 files changed, 123 insertions(+), 107 deletions(-) diff --git a/ui/web/src/components/actions/AddChargingStations.vue b/ui/web/src/components/actions/AddChargingStations.vue index 83de8529..d756ef3c 100644 --- a/ui/web/src/components/actions/AddChargingStations.vue +++ b/ui/web/src/components/actions/AddChargingStations.vue @@ -14,8 +14,8 @@ Please select a template