From 55081b24d81669aea40d4c4d7f0129080a10bc0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn-Michael=20Miehe?= Date: Fri, 23 Aug 2024 16:38:04 +0000 Subject: [PATCH] WIP: major refactoring --- ui/src/App.vue | 2 +- ui/src/components/AdminButton.vue | 4 +- ui/src/components/Calendar.vue | 4 +- ui/src/components/TouchButton.vue | 2 +- ui/src/components/UserView.vue | 2 +- ui/src/components/admin/CalendarAssistant.vue | 3 +- ui/src/components/admin/ConfigView.vue | 4 +- ui/src/components/admin/DoorMapEditor.vue | 6 +- ui/src/components/calendar/CalendarDoor.vue | 4 +- ui/src/components/calendar/SVGRect.vue | 4 +- ui/src/components/calendar/ThouCanvas.vue | 4 +- ui/src/components/editor/DoorCanvas.vue | 6 +- ui/src/components/editor/DoorChooser.vue | 4 +- ui/src/components/editor/DoorPlacer.vue | 4 +- ui/src/components/editor/PreviewDoor.vue | 2 +- ui/src/d.ts/shims-advent22.d.ts | 10 -- ui/src/lib/api.ts | 135 ++++++++++-------- ui/src/lib/api_error.ts | 73 ++++++++++ ui/src/lib/helpers.ts | 10 ++ ui/src/lib/model.ts | 67 +++++++++ ui/src/lib/{ => rects}/door.ts | 2 +- ui/src/lib/{ => rects}/rectangle.ts | 0 ui/src/lib/{ => rects}/vector2d.ts | 0 ui/src/{plugins => lib}/store.ts | 88 +----------- ui/src/main.ts | 2 +- ui/src/plugins/advent22.ts | 110 -------------- ui/tests/unit/rectangle.spec.ts | 4 +- ui/tests/unit/vector2d.spec.ts | 2 +- 28 files changed, 262 insertions(+), 296 deletions(-) delete mode 100644 ui/src/d.ts/shims-advent22.d.ts create mode 100644 ui/src/lib/api_error.ts create mode 100644 ui/src/lib/helpers.ts create mode 100644 ui/src/lib/model.ts rename ui/src/lib/{ => rects}/door.ts (96%) rename ui/src/lib/{ => rects}/rectangle.ts (100%) rename ui/src/lib/{ => rects}/vector2d.ts (100%) rename ui/src/{plugins => lib}/store.ts (61%) delete mode 100644 ui/src/plugins/advent22.ts diff --git a/ui/src/App.vue b/ui/src/App.vue index 38d9cfb..0f7a739 100644 --- a/ui/src/App.vue +++ b/ui/src/App.vue @@ -34,7 +34,7 @@