From 4faa7fa8c0fa5a95dbd17993b4a51d760f074af3 Mon Sep 17 00:00:00 2001 From: Eli Ribble Date: Tue, 7 Apr 2026 00:04:40 +0000 Subject: [PATCH] Figure out router pattern for compliance steps --- .../rmo/district-compliance-address.html | 16 ----- ts/rmo/components/HeaderCompliance.vue | 24 ++++++++ ts/rmo/components/ProgressBarCompliance.vue | 24 ++++++++ ts/rmo/content/Nuisance.vue | 9 +-- ts/rmo/content/compliance/Address.vue | 58 +++++++++++++++++++ ts/rmo/content/compliance/Intro.vue | 20 +------ ts/rmo/router.ts | 16 ++++- ts/rmo/view/Compliance.vue | 4 +- 8 files changed, 132 insertions(+), 39 deletions(-) create mode 100644 ts/rmo/components/HeaderCompliance.vue create mode 100644 ts/rmo/components/ProgressBarCompliance.vue create mode 100644 ts/rmo/content/compliance/Address.vue diff --git a/html/template/rmo/district-compliance-address.html b/html/template/rmo/district-compliance-address.html index 624ef9ed..d3fdf85e 100644 --- a/html/template/rmo/district-compliance-address.html +++ b/html/template/rmo/district-compliance-address.html @@ -32,22 +32,6 @@ {{ end }} {{ define "content" }}
- -
-
- {{ .District.Name }} logo -

{{ .District.Name }}

-
-
- {{ .District.OfficePhone }} -
-
-
diff --git a/ts/rmo/components/HeaderCompliance.vue b/ts/rmo/components/HeaderCompliance.vue new file mode 100644 index 00000000..c2bbb390 --- /dev/null +++ b/ts/rmo/components/HeaderCompliance.vue @@ -0,0 +1,24 @@ + + + diff --git a/ts/rmo/components/ProgressBarCompliance.vue b/ts/rmo/components/ProgressBarCompliance.vue new file mode 100644 index 00000000..dca024f3 --- /dev/null +++ b/ts/rmo/components/ProgressBarCompliance.vue @@ -0,0 +1,24 @@ + + diff --git a/ts/rmo/content/Nuisance.vue b/ts/rmo/content/Nuisance.vue index 2379bdce..4bac2d01 100644 --- a/ts/rmo/content/Nuisance.vue +++ b/ts/rmo/content/Nuisance.vue @@ -612,12 +612,13 @@ onMounted(() => { locationStore .get() .then((loc: GeolocationPosition) => { + console.log("user geolocation", loc); const coords = loc.coords; currentLocation.value = coords; - if (currentCamera.value) { - currentCamera.value.location = coords; - currentCamera.value.zoom = 15; - } + currentCamera.value = { + location: coords, + zoom: 15, + }; }) .catch((e) => { console.log("failed to get location", e); diff --git a/ts/rmo/content/compliance/Address.vue b/ts/rmo/content/compliance/Address.vue new file mode 100644 index 00000000..d31d0634 --- /dev/null +++ b/ts/rmo/content/compliance/Address.vue @@ -0,0 +1,58 @@ + + diff --git a/ts/rmo/content/compliance/Intro.vue b/ts/rmo/content/compliance/Intro.vue index 28e4da02..8736cae1 100644 --- a/ts/rmo/content/compliance/Intro.vue +++ b/ts/rmo/content/compliance/Intro.vue @@ -1,22 +1,7 @@