From 6fa15f2ef3c0976a8e77ceca10ed2973104982df Mon Sep 17 00:00:00 2001 From: Legonzaur Date: Sun, 5 Jul 2026 11:27:59 +0200 Subject: [PATCH] chfore: split map into components --- app/components/map.client.vue | 165 ------------------------- app/components/map/clusters.client.vue | 68 ++++++++++ app/components/map/lines.client.vue | 36 ++++++ app/components/map/map.client.vue | 162 ++++++++++++++++++++++++ app/types.d.ts | 23 ++++ 5 files changed, 289 insertions(+), 165 deletions(-) delete mode 100644 app/components/map.client.vue create mode 100644 app/components/map/clusters.client.vue create mode 100644 app/components/map/lines.client.vue create mode 100644 app/components/map/map.client.vue create mode 100644 app/types.d.ts diff --git a/app/components/map.client.vue b/app/components/map.client.vue deleted file mode 100644 index 5acdfbc..0000000 --- a/app/components/map.client.vue +++ /dev/null @@ -1,165 +0,0 @@ - - - - - diff --git a/app/components/map/clusters.client.vue b/app/components/map/clusters.client.vue new file mode 100644 index 0000000..691ce33 --- /dev/null +++ b/app/components/map/clusters.client.vue @@ -0,0 +1,68 @@ + + + diff --git a/app/components/map/lines.client.vue b/app/components/map/lines.client.vue new file mode 100644 index 0000000..3e54e72 --- /dev/null +++ b/app/components/map/lines.client.vue @@ -0,0 +1,36 @@ + + + diff --git a/app/components/map/map.client.vue b/app/components/map/map.client.vue new file mode 100644 index 0000000..ceb0700 --- /dev/null +++ b/app/components/map/map.client.vue @@ -0,0 +1,162 @@ + + + + + diff --git a/app/types.d.ts b/app/types.d.ts new file mode 100644 index 0000000..eda573a --- /dev/null +++ b/app/types.d.ts @@ -0,0 +1,23 @@ +interface Route { + id: string; + gtfsId: string; + shortName: string; + longName: string; + color: string; + textColor: string; + mode: string; + type: string; + timeSheet: string; + pdfTimeSheet: boolean; + pdfMap: boolean; +} + +interface Cluster { + city: string; + code: string; + id: string; + lat: number; + lon: number; + name: string; + visible: boolean; +}