diff --git a/client/components.d.ts b/client/components.d.ts index e0172a0..fc7200b 100644 --- a/client/components.d.ts +++ b/client/components.d.ts @@ -10,8 +10,15 @@ declare module 'vue' { DropField: typeof import('./src/components/DropField.vue')['default'] EditableText: typeof import('./src/components/EditableText.vue')['default'] FilteredMap: typeof import('./src/components/FilteredMap.vue')['default'] + IBiArrowDownCircleFill: typeof import('~icons/bi/arrow-down-circle-fill')['default'] + IBiArrowLeft: typeof import('~icons/bi/arrow-left')['default'] + IBiArrowRightCircle: typeof import('~icons/bi/arrow-right-circle')['default'] + IBiChevronRight: typeof import('~icons/bi/chevron-right')['default'] + IBiPencilFill: typeof import('~icons/bi/pencil-fill')['default'] + IBiTrash: typeof import('~icons/bi/trash')['default'] LoginForm: typeof import('./src/components/auth/LoginForm.vue')['default'] LogoutForm: typeof import('./src/components/auth/LogoutForm.vue')['default'] + MapComponent: typeof import('./src/components/MapComponent.vue')['default'] RegistrationForm: typeof import('./src/components/auth/RegistrationForm.vue')['default'] RouterLink: typeof import('vue-router')['RouterLink'] RouterView: typeof import('vue-router')['RouterView'] diff --git a/client/package-lock.json b/client/package-lock.json index 3f697c6..94a1b4b 100644 --- a/client/package-lock.json +++ b/client/package-lock.json @@ -2053,13 +2053,13 @@ } }, "node_modules/@vitest/expect": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@vitest/expect/-/expect-1.1.0.tgz", - "integrity": "sha512-9IE2WWkcJo2BR9eqtY5MIo3TPmS50Pnwpm66A6neb2hvk/QSLfPXBz2qdiwUOQkwyFuuXEUj5380CbwfzW4+/w==", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@vitest/expect/-/expect-1.1.1.tgz", + "integrity": "sha512-Qpw01C2Hyb3085jBkOJLQ7HRX0Ncnh2qV4p+xWmmhcIUlMykUF69zsnZ1vPmAjZpomw9+5tWEGOQ0GTfR8U+kA==", "dev": true, "dependencies": { - "@vitest/spy": "1.1.0", - "@vitest/utils": "1.1.0", + "@vitest/spy": "1.1.1", + "@vitest/utils": "1.1.1", "chai": "^4.3.10" }, "funding": { @@ -2067,12 +2067,12 @@ } }, "node_modules/@vitest/runner": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@vitest/runner/-/runner-1.1.0.tgz", - "integrity": "sha512-zdNLJ00pm5z/uhbWF6aeIJCGMSyTyWImy3Fcp9piRGvueERFlQFbUwCpzVce79OLm2UHk9iwaMSOaU9jVHgNVw==", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@vitest/runner/-/runner-1.1.1.tgz", + "integrity": "sha512-8HokyJo1SnSi3uPFKfWm/Oq1qDwLC4QDcVsqpXIXwsRPAg3gIDh8EbZ1ri8cmQkBxdOu62aOF9B4xcqJhvt4xQ==", "dev": true, "dependencies": { - "@vitest/utils": "1.1.0", + "@vitest/utils": "1.1.1", "p-limit": "^5.0.0", "pathe": "^1.1.1" }, @@ -2108,9 +2108,9 @@ } }, "node_modules/@vitest/snapshot": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@vitest/snapshot/-/snapshot-1.1.0.tgz", - "integrity": "sha512-5O/wyZg09V5qmNmAlUgCBqflvn2ylgsWJRRuPrnHEfDNT6tQpQ8O1isNGgo+VxofISHqz961SG3iVvt3SPK/QQ==", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@vitest/snapshot/-/snapshot-1.1.1.tgz", + "integrity": "sha512-WnMHjv4VdHLbFGgCdVVvyRkRPnOKN75JJg+LLTdr6ah7YnL75W+7CTIMdzPEPzaDxA8r5yvSVlc1d8lH3yE28w==", "dev": true, "dependencies": { "magic-string": "^0.30.5", @@ -2154,9 +2154,9 @@ "dev": true }, "node_modules/@vitest/spy": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@vitest/spy/-/spy-1.1.0.tgz", - "integrity": "sha512-sNOVSU/GE+7+P76qYo+VXdXhXffzWZcYIPQfmkiRxaNCSPiLANvQx5Mx6ZURJ/ndtEkUJEpvKLXqAYTKEY+lTg==", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@vitest/spy/-/spy-1.1.1.tgz", + "integrity": "sha512-hDU2KkOTfFp4WFFPWwHFauddwcKuGQ7gF6Un/ZZkCogoAiTMN7/7YKvUDbywPZZ754iCQGjdUmXN3t4k0jm1IQ==", "dev": true, "dependencies": { "tinyspy": "^2.2.0" @@ -2166,9 +2166,9 @@ } }, "node_modules/@vitest/utils": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@vitest/utils/-/utils-1.1.0.tgz", - "integrity": "sha512-z+s510fKmYz4Y41XhNs3vcuFTFhcij2YF7F8VQfMEYAAUfqQh0Zfg7+w9xdgFGhPf3tX3TicAe+8BDITk6ampQ==", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@vitest/utils/-/utils-1.1.1.tgz", + "integrity": "sha512-E9LedH093vST/JuBSyHLFMpxJKW3dLhe/flUSPFedoyj4wKiFX7Jm8gYLtOIiin59dgrssfmFv0BJ1u8P/LC/A==", "dev": true, "dependencies": { "diff-sequences": "^29.6.3", @@ -6647,9 +6647,9 @@ } }, "node_modules/vite-node": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/vite-node/-/vite-node-1.1.0.tgz", - "integrity": "sha512-jV48DDUxGLEBdHCQvxL1mEh7+naVy+nhUUUaPAZLd3FJgXuxQiewHcfeZebbJ6onDqNGkP4r3MhQ342PRlG81Q==", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/vite-node/-/vite-node-1.1.1.tgz", + "integrity": "sha512-2bGE5w4jvym5v8llF6Gu1oBrmImoNSs4WmRVcavnG2me6+8UQntTqLiAMFyiAobp+ZXhj5ZFhI7SmLiFr/jrow==", "dev": true, "dependencies": { "cac": "^6.7.14", @@ -6669,16 +6669,16 @@ } }, "node_modules/vitest": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/vitest/-/vitest-1.1.0.tgz", - "integrity": "sha512-oDFiCrw7dd3Jf06HoMtSRARivvyjHJaTxikFxuqJjO76U436PqlVw1uLn7a8OSPrhSfMGVaRakKpA2lePdw79A==", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/vitest/-/vitest-1.1.1.tgz", + "integrity": "sha512-Ry2qs4UOu/KjpXVfOCfQkTnwSXYGrqTbBZxw6reIYEFjSy1QUARRg5pxiI5BEXy+kBVntxUYNMlq4Co+2vD3fQ==", "dev": true, "dependencies": { - "@vitest/expect": "1.1.0", - "@vitest/runner": "1.1.0", - "@vitest/snapshot": "1.1.0", - "@vitest/spy": "1.1.0", - "@vitest/utils": "1.1.0", + "@vitest/expect": "1.1.1", + "@vitest/runner": "1.1.1", + "@vitest/snapshot": "1.1.1", + "@vitest/spy": "1.1.1", + "@vitest/utils": "1.1.1", "acorn-walk": "^8.3.0", "cac": "^6.7.14", "chai": "^4.3.10", @@ -6693,7 +6693,7 @@ "tinybench": "^2.5.1", "tinypool": "^0.8.1", "vite": "^5.0.0", - "vite-node": "1.1.0", + "vite-node": "1.1.1", "why-is-node-running": "^2.2.2" }, "bin": { diff --git a/client/src/components/FilteredMap.vue b/client/src/components/MapComponent.vue similarity index 100% rename from client/src/components/FilteredMap.vue rename to client/src/components/MapComponent.vue diff --git a/client/src/lib/getconfig.ts b/client/src/lib/getconfig.ts index 1e5f01c..d255677 100644 --- a/client/src/lib/getconfig.ts +++ b/client/src/lib/getconfig.ts @@ -41,6 +41,9 @@ async function getConfig(sid: string, conftype: string, confkey: string): Promis const url = `/api/config/get/sid/${sid}/${conftype}/${confkey}` const r = await fetch(url) + if (!r.ok) { + throw Error("Retrieving config not successful", { cause: { url, status: r.status } }) + } const rJson = await r.json() as unknown if (!!rJson && typeof (rJson) === 'object' && 'value' in rJson) { diff --git a/client/src/views/TrackDetailPage.vue b/client/src/views/TrackDetailPage.vue index ec9af78..4ec1878 100644 --- a/client/src/views/TrackDetailPage.vue +++ b/client/src/views/TrackDetailPage.vue @@ -4,13 +4,13 @@

Track {{ id }} Details

- +