Compare commits
16 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 3fbffc7589 | |||
| 84312abc75 | |||
| c6fa8794e0 | |||
| 8e65fd396e | |||
| 8a05d8358f | |||
| a8c3117259 | |||
| 2b2095604c | |||
| 08f3d30e44 | |||
| 39511dd428 | |||
| cfcf651e41 | |||
| cfa1d44dbc | |||
| ca5e78e2b1 | |||
| 6c10cb628e | |||
| 46c897efcf | |||
| 16dec07270 | |||
| d53748f8ae |
@@ -3,7 +3,7 @@ run-name: ${{ gitea.actor }} is building and pushing
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
create:
|
create:
|
||||||
tags: "*"
|
tags: '*'
|
||||||
|
|
||||||
env:
|
env:
|
||||||
GITEA_DOMAIN: git.fjla.uk
|
GITEA_DOMAIN: git.fjla.uk
|
||||||
|
|||||||
1
.gitignore
vendored
1
.gitignore
vendored
@@ -2,6 +2,7 @@ node_modules
|
|||||||
|
|
||||||
# Transpiled JSON
|
# Transpiled JSON
|
||||||
/static/mapFiles/json/
|
/static/mapFiles/json/
|
||||||
|
/static/map-index.json
|
||||||
|
|
||||||
# Output
|
# Output
|
||||||
.output
|
.output
|
||||||
|
|||||||
@@ -6,4 +6,4 @@ bun.lock
|
|||||||
bun.lockb
|
bun.lockb
|
||||||
|
|
||||||
# Miscellaneous
|
# Miscellaneous
|
||||||
/static/
|
#/static/
|
||||||
|
|||||||
232
package-lock.json
generated
232
package-lock.json
generated
@@ -29,9 +29,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@esbuild/aix-ppc64": {
|
"node_modules/@esbuild/aix-ppc64": {
|
||||||
"version": "0.27.2",
|
"version": "0.27.3",
|
||||||
"resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.27.2.tgz",
|
"resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.27.3.tgz",
|
||||||
"integrity": "sha512-GZMB+a0mOMZs4MpDbj8RJp4cw+w1WV5NYD6xzgvzUJ5Ek2jerwfO2eADyI6ExDSUED+1X8aMbegahsJi+8mgpw==",
|
"integrity": "sha512-9fJMTNFTWZMh5qwrBItuziu834eOCUcEqymSH7pY+zoMVEZg3gcPuBNxH1EvfVYe9h0x/Ptw8KBzv7qxb7l8dg==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"ppc64"
|
"ppc64"
|
||||||
],
|
],
|
||||||
@@ -46,9 +46,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@esbuild/android-arm": {
|
"node_modules/@esbuild/android-arm": {
|
||||||
"version": "0.27.2",
|
"version": "0.27.3",
|
||||||
"resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.27.2.tgz",
|
"resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.27.3.tgz",
|
||||||
"integrity": "sha512-DVNI8jlPa7Ujbr1yjU2PfUSRtAUZPG9I1RwW4F4xFB1Imiu2on0ADiI/c3td+KmDtVKNbi+nffGDQMfcIMkwIA==",
|
"integrity": "sha512-i5D1hPY7GIQmXlXhs2w8AWHhenb00+GxjxRncS2ZM7YNVGNfaMxgzSGuO8o8SJzRc/oZwU2bcScvVERk03QhzA==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"arm"
|
"arm"
|
||||||
],
|
],
|
||||||
@@ -63,9 +63,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@esbuild/android-arm64": {
|
"node_modules/@esbuild/android-arm64": {
|
||||||
"version": "0.27.2",
|
"version": "0.27.3",
|
||||||
"resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.27.2.tgz",
|
"resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.27.3.tgz",
|
||||||
"integrity": "sha512-pvz8ZZ7ot/RBphf8fv60ljmaoydPU12VuXHImtAs0XhLLw+EXBi2BLe3OYSBslR4rryHvweW5gmkKFwTiFy6KA==",
|
"integrity": "sha512-YdghPYUmj/FX2SYKJ0OZxf+iaKgMsKHVPF1MAq/P8WirnSpCStzKJFjOjzsW0QQ7oIAiccHdcqjbHmJxRb/dmg==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"arm64"
|
"arm64"
|
||||||
],
|
],
|
||||||
@@ -80,9 +80,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@esbuild/android-x64": {
|
"node_modules/@esbuild/android-x64": {
|
||||||
"version": "0.27.2",
|
"version": "0.27.3",
|
||||||
"resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.27.2.tgz",
|
"resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.27.3.tgz",
|
||||||
"integrity": "sha512-z8Ank4Byh4TJJOh4wpz8g2vDy75zFL0TlZlkUkEwYXuPSgX8yzep596n6mT7905kA9uHZsf/o2OJZubl2l3M7A==",
|
"integrity": "sha512-IN/0BNTkHtk8lkOM8JWAYFg4ORxBkZQf9zXiEOfERX/CzxW3Vg1ewAhU7QSWQpVIzTW+b8Xy+lGzdYXV6UZObQ==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"x64"
|
"x64"
|
||||||
],
|
],
|
||||||
@@ -97,9 +97,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@esbuild/darwin-arm64": {
|
"node_modules/@esbuild/darwin-arm64": {
|
||||||
"version": "0.27.2",
|
"version": "0.27.3",
|
||||||
"resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.27.2.tgz",
|
"resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.27.3.tgz",
|
||||||
"integrity": "sha512-davCD2Zc80nzDVRwXTcQP/28fiJbcOwvdolL0sOiOsbwBa72kegmVU0Wrh1MYrbuCL98Omp5dVhQFWRKR2ZAlg==",
|
"integrity": "sha512-Re491k7ByTVRy0t3EKWajdLIr0gz2kKKfzafkth4Q8A5n1xTHrkqZgLLjFEHVD+AXdUGgQMq+Godfq45mGpCKg==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"arm64"
|
"arm64"
|
||||||
],
|
],
|
||||||
@@ -114,9 +114,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@esbuild/darwin-x64": {
|
"node_modules/@esbuild/darwin-x64": {
|
||||||
"version": "0.27.2",
|
"version": "0.27.3",
|
||||||
"resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.27.2.tgz",
|
"resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.27.3.tgz",
|
||||||
"integrity": "sha512-ZxtijOmlQCBWGwbVmwOF/UCzuGIbUkqB1faQRf5akQmxRJ1ujusWsb3CVfk/9iZKr2L5SMU5wPBi1UWbvL+VQA==",
|
"integrity": "sha512-vHk/hA7/1AckjGzRqi6wbo+jaShzRowYip6rt6q7VYEDX4LEy1pZfDpdxCBnGtl+A5zq8iXDcyuxwtv3hNtHFg==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"x64"
|
"x64"
|
||||||
],
|
],
|
||||||
@@ -131,9 +131,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@esbuild/freebsd-arm64": {
|
"node_modules/@esbuild/freebsd-arm64": {
|
||||||
"version": "0.27.2",
|
"version": "0.27.3",
|
||||||
"resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.27.2.tgz",
|
"resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.27.3.tgz",
|
||||||
"integrity": "sha512-lS/9CN+rgqQ9czogxlMcBMGd+l8Q3Nj1MFQwBZJyoEKI50XGxwuzznYdwcav6lpOGv5BqaZXqvBSiB/kJ5op+g==",
|
"integrity": "sha512-ipTYM2fjt3kQAYOvo6vcxJx3nBYAzPjgTCk7QEgZG8AUO3ydUhvelmhrbOheMnGOlaSFUoHXB6un+A7q4ygY9w==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"arm64"
|
"arm64"
|
||||||
],
|
],
|
||||||
@@ -148,9 +148,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@esbuild/freebsd-x64": {
|
"node_modules/@esbuild/freebsd-x64": {
|
||||||
"version": "0.27.2",
|
"version": "0.27.3",
|
||||||
"resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.27.2.tgz",
|
"resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.27.3.tgz",
|
||||||
"integrity": "sha512-tAfqtNYb4YgPnJlEFu4c212HYjQWSO/w/h/lQaBK7RbwGIkBOuNKQI9tqWzx7Wtp7bTPaGC6MJvWI608P3wXYA==",
|
"integrity": "sha512-dDk0X87T7mI6U3K9VjWtHOXqwAMJBNN2r7bejDsc+j03SEjtD9HrOl8gVFByeM0aJksoUuUVU9TBaZa2rgj0oA==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"x64"
|
"x64"
|
||||||
],
|
],
|
||||||
@@ -165,9 +165,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@esbuild/linux-arm": {
|
"node_modules/@esbuild/linux-arm": {
|
||||||
"version": "0.27.2",
|
"version": "0.27.3",
|
||||||
"resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.27.2.tgz",
|
"resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.27.3.tgz",
|
||||||
"integrity": "sha512-vWfq4GaIMP9AIe4yj1ZUW18RDhx6EPQKjwe7n8BbIecFtCQG4CfHGaHuh7fdfq+y3LIA2vGS/o9ZBGVxIDi9hw==",
|
"integrity": "sha512-s6nPv2QkSupJwLYyfS+gwdirm0ukyTFNl3KTgZEAiJDd+iHZcbTPPcWCcRYH+WlNbwChgH2QkE9NSlNrMT8Gfw==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"arm"
|
"arm"
|
||||||
],
|
],
|
||||||
@@ -182,9 +182,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@esbuild/linux-arm64": {
|
"node_modules/@esbuild/linux-arm64": {
|
||||||
"version": "0.27.2",
|
"version": "0.27.3",
|
||||||
"resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.27.2.tgz",
|
"resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.27.3.tgz",
|
||||||
"integrity": "sha512-hYxN8pr66NsCCiRFkHUAsxylNOcAQaxSSkHMMjcpx0si13t1LHFphxJZUiGwojB1a/Hd5OiPIqDdXONia6bhTw==",
|
"integrity": "sha512-sZOuFz/xWnZ4KH3YfFrKCf1WyPZHakVzTiqji3WDc0BCl2kBwiJLCXpzLzUBLgmp4veFZdvN5ChW4Eq/8Fc2Fg==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"arm64"
|
"arm64"
|
||||||
],
|
],
|
||||||
@@ -199,9 +199,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@esbuild/linux-ia32": {
|
"node_modules/@esbuild/linux-ia32": {
|
||||||
"version": "0.27.2",
|
"version": "0.27.3",
|
||||||
"resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.27.2.tgz",
|
"resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.27.3.tgz",
|
||||||
"integrity": "sha512-MJt5BRRSScPDwG2hLelYhAAKh9imjHK5+NE/tvnRLbIqUWa+0E9N4WNMjmp/kXXPHZGqPLxggwVhz7QP8CTR8w==",
|
"integrity": "sha512-yGlQYjdxtLdh0a3jHjuwOrxQjOZYD/C9PfdbgJJF3TIZWnm/tMd/RcNiLngiu4iwcBAOezdnSLAwQDPqTmtTYg==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"ia32"
|
"ia32"
|
||||||
],
|
],
|
||||||
@@ -216,9 +216,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@esbuild/linux-loong64": {
|
"node_modules/@esbuild/linux-loong64": {
|
||||||
"version": "0.27.2",
|
"version": "0.27.3",
|
||||||
"resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.27.2.tgz",
|
"resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.27.3.tgz",
|
||||||
"integrity": "sha512-lugyF1atnAT463aO6KPshVCJK5NgRnU4yb3FUumyVz+cGvZbontBgzeGFO1nF+dPueHD367a2ZXe1NtUkAjOtg==",
|
"integrity": "sha512-WO60Sn8ly3gtzhyjATDgieJNet/KqsDlX5nRC5Y3oTFcS1l0KWba+SEa9Ja1GfDqSF1z6hif/SkpQJbL63cgOA==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"loong64"
|
"loong64"
|
||||||
],
|
],
|
||||||
@@ -233,9 +233,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@esbuild/linux-mips64el": {
|
"node_modules/@esbuild/linux-mips64el": {
|
||||||
"version": "0.27.2",
|
"version": "0.27.3",
|
||||||
"resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.27.2.tgz",
|
"resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.27.3.tgz",
|
||||||
"integrity": "sha512-nlP2I6ArEBewvJ2gjrrkESEZkB5mIoaTswuqNFRv/WYd+ATtUpe9Y09RnJvgvdag7he0OWgEZWhviS1OTOKixw==",
|
"integrity": "sha512-APsymYA6sGcZ4pD6k+UxbDjOFSvPWyZhjaiPyl/f79xKxwTnrn5QUnXR5prvetuaSMsb4jgeHewIDCIWljrSxw==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"mips64el"
|
"mips64el"
|
||||||
],
|
],
|
||||||
@@ -250,9 +250,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@esbuild/linux-ppc64": {
|
"node_modules/@esbuild/linux-ppc64": {
|
||||||
"version": "0.27.2",
|
"version": "0.27.3",
|
||||||
"resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.27.2.tgz",
|
"resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.27.3.tgz",
|
||||||
"integrity": "sha512-C92gnpey7tUQONqg1n6dKVbx3vphKtTHJaNG2Ok9lGwbZil6DrfyecMsp9CrmXGQJmZ7iiVXvvZH6Ml5hL6XdQ==",
|
"integrity": "sha512-eizBnTeBefojtDb9nSh4vvVQ3V9Qf9Df01PfawPcRzJH4gFSgrObw+LveUyDoKU3kxi5+9RJTCWlj4FjYXVPEA==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"ppc64"
|
"ppc64"
|
||||||
],
|
],
|
||||||
@@ -267,9 +267,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@esbuild/linux-riscv64": {
|
"node_modules/@esbuild/linux-riscv64": {
|
||||||
"version": "0.27.2",
|
"version": "0.27.3",
|
||||||
"resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.27.2.tgz",
|
"resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.27.3.tgz",
|
||||||
"integrity": "sha512-B5BOmojNtUyN8AXlK0QJyvjEZkWwy/FKvakkTDCziX95AowLZKR6aCDhG7LeF7uMCXEJqwa8Bejz5LTPYm8AvA==",
|
"integrity": "sha512-3Emwh0r5wmfm3ssTWRQSyVhbOHvqegUDRd0WhmXKX2mkHJe1SFCMJhagUleMq+Uci34wLSipf8Lagt4LlpRFWQ==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"riscv64"
|
"riscv64"
|
||||||
],
|
],
|
||||||
@@ -284,9 +284,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@esbuild/linux-s390x": {
|
"node_modules/@esbuild/linux-s390x": {
|
||||||
"version": "0.27.2",
|
"version": "0.27.3",
|
||||||
"resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.27.2.tgz",
|
"resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.27.3.tgz",
|
||||||
"integrity": "sha512-p4bm9+wsPwup5Z8f4EpfN63qNagQ47Ua2znaqGH6bqLlmJ4bx97Y9JdqxgGZ6Y8xVTixUnEkoKSHcpRlDnNr5w==",
|
"integrity": "sha512-pBHUx9LzXWBc7MFIEEL0yD/ZVtNgLytvx60gES28GcWMqil8ElCYR4kvbV2BDqsHOvVDRrOxGySBM9Fcv744hw==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"s390x"
|
"s390x"
|
||||||
],
|
],
|
||||||
@@ -301,9 +301,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@esbuild/linux-x64": {
|
"node_modules/@esbuild/linux-x64": {
|
||||||
"version": "0.27.2",
|
"version": "0.27.3",
|
||||||
"resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.27.2.tgz",
|
"resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.27.3.tgz",
|
||||||
"integrity": "sha512-uwp2Tip5aPmH+NRUwTcfLb+W32WXjpFejTIOWZFw/v7/KnpCDKG66u4DLcurQpiYTiYwQ9B7KOeMJvLCu/OvbA==",
|
"integrity": "sha512-Czi8yzXUWIQYAtL/2y6vogER8pvcsOsk5cpwL4Gk5nJqH5UZiVByIY8Eorm5R13gq+DQKYg0+JyQoytLQas4dA==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"x64"
|
"x64"
|
||||||
],
|
],
|
||||||
@@ -318,9 +318,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@esbuild/netbsd-arm64": {
|
"node_modules/@esbuild/netbsd-arm64": {
|
||||||
"version": "0.27.2",
|
"version": "0.27.3",
|
||||||
"resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.27.2.tgz",
|
"resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.27.3.tgz",
|
||||||
"integrity": "sha512-Kj6DiBlwXrPsCRDeRvGAUb/LNrBASrfqAIok+xB0LxK8CHqxZ037viF13ugfsIpePH93mX7xfJp97cyDuTZ3cw==",
|
"integrity": "sha512-sDpk0RgmTCR/5HguIZa9n9u+HVKf40fbEUt+iTzSnCaGvY9kFP0YKBWZtJaraonFnqef5SlJ8/TiPAxzyS+UoA==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"arm64"
|
"arm64"
|
||||||
],
|
],
|
||||||
@@ -335,9 +335,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@esbuild/netbsd-x64": {
|
"node_modules/@esbuild/netbsd-x64": {
|
||||||
"version": "0.27.2",
|
"version": "0.27.3",
|
||||||
"resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.27.2.tgz",
|
"resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.27.3.tgz",
|
||||||
"integrity": "sha512-HwGDZ0VLVBY3Y+Nw0JexZy9o/nUAWq9MlV7cahpaXKW6TOzfVno3y3/M8Ga8u8Yr7GldLOov27xiCnqRZf0tCA==",
|
"integrity": "sha512-P14lFKJl/DdaE00LItAukUdZO5iqNH7+PjoBm+fLQjtxfcfFE20Xf5CrLsmZdq5LFFZzb5JMZ9grUwvtVYzjiA==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"x64"
|
"x64"
|
||||||
],
|
],
|
||||||
@@ -352,9 +352,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@esbuild/openbsd-arm64": {
|
"node_modules/@esbuild/openbsd-arm64": {
|
||||||
"version": "0.27.2",
|
"version": "0.27.3",
|
||||||
"resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.27.2.tgz",
|
"resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.27.3.tgz",
|
||||||
"integrity": "sha512-DNIHH2BPQ5551A7oSHD0CKbwIA/Ox7+78/AWkbS5QoRzaqlev2uFayfSxq68EkonB+IKjiuxBFoV8ESJy8bOHA==",
|
"integrity": "sha512-AIcMP77AvirGbRl/UZFTq5hjXK+2wC7qFRGoHSDrZ5v5b8DK/GYpXW3CPRL53NkvDqb9D+alBiC/dV0Fb7eJcw==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"arm64"
|
"arm64"
|
||||||
],
|
],
|
||||||
@@ -369,9 +369,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@esbuild/openbsd-x64": {
|
"node_modules/@esbuild/openbsd-x64": {
|
||||||
"version": "0.27.2",
|
"version": "0.27.3",
|
||||||
"resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.27.2.tgz",
|
"resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.27.3.tgz",
|
||||||
"integrity": "sha512-/it7w9Nb7+0KFIzjalNJVR5bOzA9Vay+yIPLVHfIQYG/j+j9VTH84aNB8ExGKPU4AzfaEvN9/V4HV+F+vo8OEg==",
|
"integrity": "sha512-DnW2sRrBzA+YnE70LKqnM3P+z8vehfJWHXECbwBmH/CU51z6FiqTQTHFenPlHmo3a8UgpLyH3PT+87OViOh1AQ==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"x64"
|
"x64"
|
||||||
],
|
],
|
||||||
@@ -386,9 +386,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@esbuild/openharmony-arm64": {
|
"node_modules/@esbuild/openharmony-arm64": {
|
||||||
"version": "0.27.2",
|
"version": "0.27.3",
|
||||||
"resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.27.2.tgz",
|
"resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.27.3.tgz",
|
||||||
"integrity": "sha512-LRBbCmiU51IXfeXk59csuX/aSaToeG7w48nMwA6049Y4J4+VbWALAuXcs+qcD04rHDuSCSRKdmY63sruDS5qag==",
|
"integrity": "sha512-NinAEgr/etERPTsZJ7aEZQvvg/A6IsZG/LgZy+81wON2huV7SrK3e63dU0XhyZP4RKGyTm7aOgmQk0bGp0fy2g==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"arm64"
|
"arm64"
|
||||||
],
|
],
|
||||||
@@ -403,9 +403,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@esbuild/sunos-x64": {
|
"node_modules/@esbuild/sunos-x64": {
|
||||||
"version": "0.27.2",
|
"version": "0.27.3",
|
||||||
"resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.27.2.tgz",
|
"resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.27.3.tgz",
|
||||||
"integrity": "sha512-kMtx1yqJHTmqaqHPAzKCAkDaKsffmXkPHThSfRwZGyuqyIeBvf08KSsYXl+abf5HDAPMJIPnbBfXvP2ZC2TfHg==",
|
"integrity": "sha512-PanZ+nEz+eWoBJ8/f8HKxTTD172SKwdXebZ0ndd953gt1HRBbhMsaNqjTyYLGLPdoWHy4zLU7bDVJztF5f3BHA==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"x64"
|
"x64"
|
||||||
],
|
],
|
||||||
@@ -420,9 +420,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@esbuild/win32-arm64": {
|
"node_modules/@esbuild/win32-arm64": {
|
||||||
"version": "0.27.2",
|
"version": "0.27.3",
|
||||||
"resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.27.2.tgz",
|
"resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.27.3.tgz",
|
||||||
"integrity": "sha512-Yaf78O/B3Kkh+nKABUF++bvJv5Ijoy9AN1ww904rOXZFLWVc5OLOfL56W+C8F9xn5JQZa3UX6m+IktJnIb1Jjg==",
|
"integrity": "sha512-B2t59lWWYrbRDw/tjiWOuzSsFh1Y/E95ofKz7rIVYSQkUYBjfSgf6oeYPNWHToFRr2zx52JKApIcAS/D5TUBnA==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"arm64"
|
"arm64"
|
||||||
],
|
],
|
||||||
@@ -437,9 +437,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@esbuild/win32-ia32": {
|
"node_modules/@esbuild/win32-ia32": {
|
||||||
"version": "0.27.2",
|
"version": "0.27.3",
|
||||||
"resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.27.2.tgz",
|
"resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.27.3.tgz",
|
||||||
"integrity": "sha512-Iuws0kxo4yusk7sw70Xa2E2imZU5HoixzxfGCdxwBdhiDgt9vX9VUCBhqcwY7/uh//78A1hMkkROMJq9l27oLQ==",
|
"integrity": "sha512-QLKSFeXNS8+tHW7tZpMtjlNb7HKau0QDpwm49u0vUp9y1WOF+PEzkU84y9GqYaAVW8aH8f3GcBck26jh54cX4Q==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"ia32"
|
"ia32"
|
||||||
],
|
],
|
||||||
@@ -454,9 +454,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@esbuild/win32-x64": {
|
"node_modules/@esbuild/win32-x64": {
|
||||||
"version": "0.27.2",
|
"version": "0.27.3",
|
||||||
"resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.27.2.tgz",
|
"resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.27.3.tgz",
|
||||||
"integrity": "sha512-sRdU18mcKf7F+YgheI/zGf5alZatMUTKj/jNS6l744f9u3WFu4v7twcUI9vu4mknF4Y9aDlblIie0IM+5xxaqQ==",
|
"integrity": "sha512-4uJGhsxuptu3OcpVAzli+/gWusVGwZZHTlS63hh++ehExkVT8SgiEf7/uC/PclrPPkLhZqGgCTjd0VWLo6xMqA==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"x64"
|
"x64"
|
||||||
],
|
],
|
||||||
@@ -1366,9 +1366,9 @@
|
|||||||
"license": "MIT"
|
"license": "MIT"
|
||||||
},
|
},
|
||||||
"node_modules/@types/node": {
|
"node_modules/@types/node": {
|
||||||
"version": "22.19.8",
|
"version": "22.19.9",
|
||||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-22.19.8.tgz",
|
"resolved": "https://registry.npmjs.org/@types/node/-/node-22.19.9.tgz",
|
||||||
"integrity": "sha512-ebO/Yl+EAvVe8DnMfi+iaAyIqYdK0q/q0y0rw82INWEKJOBe6b/P3YWE8NW7oOlF/nXFNrHwhARrN/hdgDkraA==",
|
"integrity": "sha512-PD03/U8g1F9T9MI+1OBisaIARhSzeidsUjQaf51fOxrfjeiKN9bLVO06lHuHYjxdnqLWJijJHfqXPSJri2EM2A==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
@@ -1907,9 +1907,9 @@
|
|||||||
"license": "MIT"
|
"license": "MIT"
|
||||||
},
|
},
|
||||||
"node_modules/esbuild": {
|
"node_modules/esbuild": {
|
||||||
"version": "0.27.2",
|
"version": "0.27.3",
|
||||||
"resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.27.2.tgz",
|
"resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.27.3.tgz",
|
||||||
"integrity": "sha512-HyNQImnsOC7X9PMNaCIeAm4ISCQXs5a5YasTXVliKv4uuBo1dKrG0A+uQS8M5eXjVMnLg3WgXaKvprHlFJQffw==",
|
"integrity": "sha512-8VwMnyGCONIs6cWue2IdpHxHnAjzxnw2Zr7MkVxB2vjmQ2ivqGFb4LEG3SMnv0Gb2F/G/2yA8zUaiL1gywDCCg==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"hasInstallScript": true,
|
"hasInstallScript": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
@@ -1920,32 +1920,32 @@
|
|||||||
"node": ">=18"
|
"node": ">=18"
|
||||||
},
|
},
|
||||||
"optionalDependencies": {
|
"optionalDependencies": {
|
||||||
"@esbuild/aix-ppc64": "0.27.2",
|
"@esbuild/aix-ppc64": "0.27.3",
|
||||||
"@esbuild/android-arm": "0.27.2",
|
"@esbuild/android-arm": "0.27.3",
|
||||||
"@esbuild/android-arm64": "0.27.2",
|
"@esbuild/android-arm64": "0.27.3",
|
||||||
"@esbuild/android-x64": "0.27.2",
|
"@esbuild/android-x64": "0.27.3",
|
||||||
"@esbuild/darwin-arm64": "0.27.2",
|
"@esbuild/darwin-arm64": "0.27.3",
|
||||||
"@esbuild/darwin-x64": "0.27.2",
|
"@esbuild/darwin-x64": "0.27.3",
|
||||||
"@esbuild/freebsd-arm64": "0.27.2",
|
"@esbuild/freebsd-arm64": "0.27.3",
|
||||||
"@esbuild/freebsd-x64": "0.27.2",
|
"@esbuild/freebsd-x64": "0.27.3",
|
||||||
"@esbuild/linux-arm": "0.27.2",
|
"@esbuild/linux-arm": "0.27.3",
|
||||||
"@esbuild/linux-arm64": "0.27.2",
|
"@esbuild/linux-arm64": "0.27.3",
|
||||||
"@esbuild/linux-ia32": "0.27.2",
|
"@esbuild/linux-ia32": "0.27.3",
|
||||||
"@esbuild/linux-loong64": "0.27.2",
|
"@esbuild/linux-loong64": "0.27.3",
|
||||||
"@esbuild/linux-mips64el": "0.27.2",
|
"@esbuild/linux-mips64el": "0.27.3",
|
||||||
"@esbuild/linux-ppc64": "0.27.2",
|
"@esbuild/linux-ppc64": "0.27.3",
|
||||||
"@esbuild/linux-riscv64": "0.27.2",
|
"@esbuild/linux-riscv64": "0.27.3",
|
||||||
"@esbuild/linux-s390x": "0.27.2",
|
"@esbuild/linux-s390x": "0.27.3",
|
||||||
"@esbuild/linux-x64": "0.27.2",
|
"@esbuild/linux-x64": "0.27.3",
|
||||||
"@esbuild/netbsd-arm64": "0.27.2",
|
"@esbuild/netbsd-arm64": "0.27.3",
|
||||||
"@esbuild/netbsd-x64": "0.27.2",
|
"@esbuild/netbsd-x64": "0.27.3",
|
||||||
"@esbuild/openbsd-arm64": "0.27.2",
|
"@esbuild/openbsd-arm64": "0.27.3",
|
||||||
"@esbuild/openbsd-x64": "0.27.2",
|
"@esbuild/openbsd-x64": "0.27.3",
|
||||||
"@esbuild/openharmony-arm64": "0.27.2",
|
"@esbuild/openharmony-arm64": "0.27.3",
|
||||||
"@esbuild/sunos-x64": "0.27.2",
|
"@esbuild/sunos-x64": "0.27.3",
|
||||||
"@esbuild/win32-arm64": "0.27.2",
|
"@esbuild/win32-arm64": "0.27.3",
|
||||||
"@esbuild/win32-ia32": "0.27.2",
|
"@esbuild/win32-ia32": "0.27.3",
|
||||||
"@esbuild/win32-x64": "0.27.2"
|
"@esbuild/win32-x64": "0.27.3"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/escape-string-regexp": {
|
"node_modules/escape-string-regexp": {
|
||||||
@@ -3079,9 +3079,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/semver": {
|
"node_modules/semver": {
|
||||||
"version": "7.7.3",
|
"version": "7.7.4",
|
||||||
"resolved": "https://registry.npmjs.org/semver/-/semver-7.7.3.tgz",
|
"resolved": "https://registry.npmjs.org/semver/-/semver-7.7.4.tgz",
|
||||||
"integrity": "sha512-SdsKMrI9TdgjdweUSR9MweHA4EJ8YxHn8DFaDisvhVlUOe4BF1tLD7GAj0lIqWVl+dPb/rExr0Btby5loQm20Q==",
|
"integrity": "sha512-vFKC2IEtQnVhpT78h1Yp8wzwrf8CM+MzKMHGJZfBtzhZNycRFnXsHk6E5TxIkkMsgNS7mdX3AGB7x2QM2di4lA==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"bin": {
|
"bin": {
|
||||||
@@ -3186,9 +3186,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/svelte": {
|
"node_modules/svelte": {
|
||||||
"version": "5.49.2",
|
"version": "5.50.0",
|
||||||
"resolved": "https://registry.npmjs.org/svelte/-/svelte-5.49.2.tgz",
|
"resolved": "https://registry.npmjs.org/svelte/-/svelte-5.50.0.tgz",
|
||||||
"integrity": "sha512-PYLwnngYzyhKzqDlGVlCH4z+NVI8mC0/bTv15vw25CcdOhxENsOHIbQ36oj5DIf3oBazM+STbCAvaskpxtBmWA==",
|
"integrity": "sha512-FR9kTLmX5i0oyeQ5j/+w8DuagIkQ7MWMuPpPVioW2zx9Dw77q+1ufLzF1IqNtcTXPRnIIio4PlasliVn43OnbQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|||||||
@@ -4,13 +4,30 @@ import path from 'path';
|
|||||||
|
|
||||||
const inputDir = './static/mapFiles/yaml';
|
const inputDir = './static/mapFiles/yaml';
|
||||||
const outputDir = './static/mapFiles/json';
|
const outputDir = './static/mapFiles/json';
|
||||||
|
const indexFile = './static/map-index.json';
|
||||||
|
|
||||||
if (!fs.existsSync(outputDir)) fs.mkdirSync(outputDir, { recursive: true });
|
if (!fs.existsSync(outputDir)) fs.mkdirSync(outputDir, { recursive: true });
|
||||||
|
|
||||||
|
const mapList = [];
|
||||||
|
|
||||||
fs.readdirSync(inputDir).forEach((file) => {
|
fs.readdirSync(inputDir).forEach((file) => {
|
||||||
if (file.endsWith('.yaml')) {
|
if (file.endsWith('.yaml')) {
|
||||||
const content = yaml.load(fs.readFileSync(path.join(inputDir, file), 'utf8'));
|
const fullPath = path.join(inputDir, file);
|
||||||
|
const content = yaml.load(fs.readFileSync(fullPath, 'utf8'));
|
||||||
|
|
||||||
const fileName = file.replace('.yaml', '.json');
|
const fileName = file.replace('.yaml', '.json');
|
||||||
fs.writeFileSync(path.join(outputDir, fileName), JSON.stringify(content));
|
fs.writeFileSync(path.join(outputDir, fileName), JSON.stringify(content));
|
||||||
|
|
||||||
|
mapList.push({
|
||||||
|
routeId: content.routeId || null,
|
||||||
|
routeStart: content.routeStart || null,
|
||||||
|
routeEnd: content.routeEnd || null,
|
||||||
|
created: content.created || null,
|
||||||
|
checked: content.checked || null
|
||||||
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
fs.writeFileSync(indexFile, JSON.stringify(mapList));
|
||||||
|
|
||||||
|
console.log(`Generated ${mapList.length} map files and index.`);
|
||||||
|
|||||||
@@ -6,6 +6,7 @@
|
|||||||
name="viewport"
|
name="viewport"
|
||||||
content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0"
|
content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0"
|
||||||
/>
|
/>
|
||||||
|
<link rel="manifest" href="/manifest.webmanifest" />
|
||||||
%sveltekit.head%
|
%sveltekit.head%
|
||||||
</head>
|
</head>
|
||||||
<body data-sveltekit-preload-data="hover">
|
<body data-sveltekit-preload-data="hover">
|
||||||
|
|||||||
@@ -1,20 +1,20 @@
|
|||||||
import { type HandleFetch } from "@sveltejs/kit";
|
import { type HandleFetch } from '@sveltejs/kit';
|
||||||
|
|
||||||
export const handleFetch: HandleFetch = async ({ request, fetch }) => {
|
export const handleFetch: HandleFetch = async ({ request, fetch }) => {
|
||||||
if (request.url.startsWith('https://maps.owlboard.info')) {
|
if (request.url.startsWith('https://maps.owlboard.info')) {
|
||||||
const newUrl = request.url.replace('https://maps.owlboard.info', 'http://localhost:3000');
|
const newUrl = request.url.replace('https://maps.owlboard.info', 'http://localhost:3000');
|
||||||
|
|
||||||
const headers = new Headers(request.headers);
|
const headers = new Headers(request.headers);
|
||||||
headers.set('host', 'maps.owlboard.info');
|
headers.set('host', 'maps.owlboard.info');
|
||||||
|
|
||||||
request = new Request(newUrl, {
|
request = new Request(newUrl, {
|
||||||
method: request.method,
|
method: request.method,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
body: request.body,
|
body: request.body,
|
||||||
// @ts-ignore - 'duplex' is needed for node fetch with bodies
|
// @ts-expect-error - 'duplex' is needed for node fetch with bodies
|
||||||
duplex: 'half'
|
duplex: 'half'
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
return fetch(request);
|
return fetch(request);
|
||||||
}
|
};
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
<svg xmlns="http://www.w3.org/2000/svg" width="107" height="128" viewBox="0 0 107 128"><title>svelte-logo</title><path d="M94.157 22.819c-10.4-14.885-30.94-19.297-45.792-9.835L22.282 29.608A29.92 29.92 0 0 0 8.764 49.65a31.5 31.5 0 0 0 3.108 20.231 30 30 0 0 0-4.477 11.183 31.9 31.9 0 0 0 5.448 24.116c10.402 14.887 30.942 19.297 45.791 9.835l26.083-16.624A29.92 29.92 0 0 0 98.235 78.35a31.53 31.53 0 0 0-3.105-20.232 30 30 0 0 0 4.474-11.182 31.88 31.88 0 0 0-5.447-24.116" style="fill:#ff3e00"/><path d="M45.817 106.582a20.72 20.72 0 0 1-22.237-8.243 19.17 19.17 0 0 1-3.277-14.503 18 18 0 0 1 .624-2.435l.49-1.498 1.337.981a33.6 33.6 0 0 0 10.203 5.098l.97.294-.09.968a5.85 5.85 0 0 0 1.052 3.878 6.24 6.24 0 0 0 6.695 2.485 5.8 5.8 0 0 0 1.603-.704L69.27 76.28a5.43 5.43 0 0 0 2.45-3.631 5.8 5.8 0 0 0-.987-4.371 6.24 6.24 0 0 0-6.698-2.487 5.7 5.7 0 0 0-1.6.704l-9.953 6.345a19 19 0 0 1-5.296 2.326 20.72 20.72 0 0 1-22.237-8.243 19.17 19.17 0 0 1-3.277-14.502 17.99 17.99 0 0 1 8.13-12.052l26.081-16.623a19 19 0 0 1 5.3-2.329 20.72 20.72 0 0 1 22.237 8.243 19.17 19.17 0 0 1 3.277 14.503 18 18 0 0 1-.624 2.435l-.49 1.498-1.337-.98a33.6 33.6 0 0 0-10.203-5.1l-.97-.294.09-.968a5.86 5.86 0 0 0-1.052-3.878 6.24 6.24 0 0 0-6.696-2.485 5.8 5.8 0 0 0-1.602.704L37.73 51.72a5.42 5.42 0 0 0-2.449 3.63 5.79 5.79 0 0 0 .986 4.372 6.24 6.24 0 0 0 6.698 2.486 5.8 5.8 0 0 0 1.602-.704l9.952-6.342a19 19 0 0 1 5.295-2.328 20.72 20.72 0 0 1 22.237 8.242 19.17 19.17 0 0 1 3.277 14.503 18 18 0 0 1-8.13 12.053l-26.081 16.622a19 19 0 0 1-5.3 2.328" style="fill:#fff"/></svg>
|
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 512 512"><defs><radialGradient xlink:href="#a" id="b" cx="256" cy="256" r="254.04401" fx="256" fy="256" gradientUnits="userSpaceOnUse"/><linearGradient id="a"><stop offset="0" stop-color="#2b343c"/><stop offset="1" stop-color="#404c55"/></linearGradient></defs><circle cx="256" cy="256" r="254.04401" fill="url(#b)"/><path fill="#4fd1d1" d="M256 63.429688c-70.95778.000042-128.48044 57.522702-128.48047 128.480472.00022 14.10748 2.32313 28.1184 6.87695 41.4707l-.01-.0156 7.35742 17.3086c1.62516 3.0994 3.37536 6.13147 5.24805 9.08789.32127.56629.64671 1.13007.97656 1.6914L256 448.57031l108.0293-187.11719c.32985-.56133.65528-1.12511.97656-1.6914 1.8727-2.95642 3.62483-5.98849 5.25-9.08789l7.34766-17.28125v-.0117c4.55383-13.3523 6.87674-27.36322 6.87695-41.4707C384.48042 120.95241 326.95774 63.429742 256 63.429688Zm-77.58594 58.457032c.01-.00084.0211-.00045.0312 0 0 0 17.19849 15.57553 33.64258 24.45117 20.19639 10.90092 31.83331 10.07724 43.91211 24.80469 12.0788-14.72745 23.71572-13.90377 43.91211-24.80469 16.44409-8.87564 33.64258-24.45117 33.64258-24.45117 2.60037-.11599 0 42.34071 0 58.96094 0 42.83269-73.74774 87.10937-77.55469 87.04687-3.80695.0625-77.55469-44.21418-77.55469-87.04687 0-16.55531-2.58111-58.74622-.0312-58.96094z"/><path fill="#fd5" d="m256 247.27121-7.4932-25.90681 7.46586 6 7.52054-6z"/></svg>
|
||||||
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.4 KiB |
17
src/lib/assets/global.css
Normal file
17
src/lib/assets/global.css
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
/* FONTS */
|
||||||
|
@font-face {
|
||||||
|
font-family: "urwgothic";
|
||||||
|
src: url("/fonts/urwgothic/urwgothic.woff2") format("woff2"), url("/font/urwgothic/urwgothic.woff") format("woff");
|
||||||
|
font-weight: normal;
|
||||||
|
font-style: normal;
|
||||||
|
}
|
||||||
|
@font-face {
|
||||||
|
font-family: "urwgothic";
|
||||||
|
src: url("/fonts/urwgothic/urwgothicDemi.woff2") format("woff2"), url("/font/urwgothic/urwgothicDemi.woff") format("woff");
|
||||||
|
font-weight: 900;
|
||||||
|
font-style: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
[id] {
|
||||||
|
scroll-margin-top: 100px;
|
||||||
|
}
|
||||||
@@ -6,9 +6,12 @@
|
|||||||
export let reversed: boolean = false;
|
export let reversed: boolean = false;
|
||||||
|
|
||||||
$: Icon = components[feature.type] || components.default;
|
$: Icon = components[feature.type] || components.default;
|
||||||
|
|
||||||
|
const slugify = (str?: string) =>
|
||||||
|
str?.toLocaleLowerCase().trim().replace(/\s+/g, '-') ?? 'unknown';
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="row-container">
|
<div class="row-container" id="{slugify(feature.name)}">
|
||||||
<div class="mileage-col">
|
<div class="mileage-col">
|
||||||
<span class="miles">{feature.miles + 'm' || ''}</span>
|
<span class="miles">{feature.miles + 'm' || ''}</span>
|
||||||
<span class="chains">{feature.chains + 'ch' || ''}</span>
|
<span class="chains">{feature.chains + 'ch' || ''}</span>
|
||||||
|
|||||||
@@ -1,80 +1,207 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import BaseTrack from '$lib/components/mapIcons/BaseTrack.svelte';
|
import BaseTrack from '$lib/components/mapIcons/BaseTrack.svelte';
|
||||||
|
import type { ElecType } from '$lib/railStyles';
|
||||||
|
|
||||||
export let feature: {
|
export let feature: {
|
||||||
position: 'over' | 'under';
|
position: 'over' | 'under';
|
||||||
category: 'rail' | 'footbridge' | 'aroad' | 'minorRoad' | 'motorway' | 'waterway';
|
category:
|
||||||
|
| 'rail'
|
||||||
|
| 'stream'
|
||||||
|
| 'foot'
|
||||||
|
| 'aroad'
|
||||||
|
| 'minorRoad'
|
||||||
|
| 'motorway'
|
||||||
|
| 'waterway'
|
||||||
|
| 'pipeline';
|
||||||
roadName?: string;
|
roadName?: string;
|
||||||
};
|
};
|
||||||
|
export let activeElec: ElecType;
|
||||||
export let activeElec: string;
|
|
||||||
|
|
||||||
const bridgeStyles = {
|
const bridgeStyles = {
|
||||||
rail: { color: '#ffffff', stroke: '#000000', width: 20, text: '#000000' },
|
rail: {
|
||||||
footbridge: { color: '#ffffff', stroke: '#475569', width: 10, text: '#475569' },
|
stroke: '#0f172a',
|
||||||
aroad: { color: '#00703c', stroke: '#004d29', width: 24, text: '#FFEB3B' },
|
width: 22,
|
||||||
minorRoad: { color: '#ffffff', stroke: '#64748b', width: 20, text: '#334155' },
|
bg: '#334155',
|
||||||
motorway: { color: '#005da1', stroke: '#003e6b', width: 32, text: '#ffffff' },
|
text: '#ffffff',
|
||||||
waterway: { color: '#bae6fd', stroke: '#0369a1', width: 24, text: '#075985' },
|
textBg: '#000000',
|
||||||
pipeline: { color: '#334155', stroke: '#1e293b', width: 4, text: '#334155' }
|
textBorder: '',
|
||||||
|
type: 'rail'
|
||||||
|
},
|
||||||
|
foot: {
|
||||||
|
stroke: '#475569',
|
||||||
|
width: 10,
|
||||||
|
bg: '#94a3b8',
|
||||||
|
text: '#ffffff',
|
||||||
|
textBg: '#000000',
|
||||||
|
textBorder: '',
|
||||||
|
type: 'path'
|
||||||
|
},
|
||||||
|
aroad: {
|
||||||
|
stroke: '#065f46',
|
||||||
|
width: 32,
|
||||||
|
bg: '#059669',
|
||||||
|
text: '#ffd200',
|
||||||
|
textBg: '#00703c',
|
||||||
|
textBorder: '#ffd200',
|
||||||
|
type: 'road'
|
||||||
|
},
|
||||||
|
minorRoad: {
|
||||||
|
stroke: '#334155',
|
||||||
|
width: 24,
|
||||||
|
bg: '#475569',
|
||||||
|
text: '#000000',
|
||||||
|
textBg: '#ffffff',
|
||||||
|
textBorder: '#000000',
|
||||||
|
type: 'road'
|
||||||
|
},
|
||||||
|
motorway: {
|
||||||
|
stroke: '#1e40af',
|
||||||
|
width: 40,
|
||||||
|
bg: '#3b82f6',
|
||||||
|
text: '#ffffff',
|
||||||
|
textBg: '#007ac1',
|
||||||
|
textBorder: '#ffffff',
|
||||||
|
type: 'road'
|
||||||
|
},
|
||||||
|
waterway: {
|
||||||
|
stroke: '#0369a1',
|
||||||
|
width: 32,
|
||||||
|
bg: '#bae6fd',
|
||||||
|
text: '#075985',
|
||||||
|
textBg: '#000000',
|
||||||
|
textBorder: '',
|
||||||
|
type: 'water'
|
||||||
|
},
|
||||||
|
stream: {
|
||||||
|
stroke: '#0369a1',
|
||||||
|
width: 4,
|
||||||
|
bg: '#bae6fd',
|
||||||
|
text: '#075985',
|
||||||
|
textBg: '#000000',
|
||||||
|
textBorder: '',
|
||||||
|
type: 'water'
|
||||||
|
},
|
||||||
|
pipeline: {
|
||||||
|
stroke: '#1e293b',
|
||||||
|
width: 4,
|
||||||
|
bg: '#1e293b',
|
||||||
|
text: '#ffffff',
|
||||||
|
textBg: '#000000',
|
||||||
|
textBorder: '',
|
||||||
|
type: 'path'
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
$: s = bridgeStyles[feature.category] || bridgeStyles.minorRoad;
|
$: s = bridgeStyles[feature.category] || bridgeStyles.minorRoad;
|
||||||
$: isOver = feature.position === 'over';
|
$: isOver = feature.position === 'over';
|
||||||
|
|
||||||
$: topY = 32 - s.width / 2;
|
$: xLeft = 6;
|
||||||
$: bottomY = 32 + s.width / 2;
|
$: xRight = 58;
|
||||||
|
|
||||||
$: topPath = `M 0 ${topY} Q 8 ${topY} 8 ${topY - 4} M 56 ${topY - 4} Q 56 ${topY} 64 ${topY}`;
|
const yTop = 16;
|
||||||
$: bottomPath = `M 0 ${bottomY} Q 8 ${bottomY} 8 ${bottomY + 4} M 56 ${bottomY + 4} Q 56 ${bottomY} 64 ${bottomY}`;
|
const yBottom = 48;
|
||||||
|
|
||||||
$: bodyPath = `M 0 ${topY} L 64 ${topY} L 64 ${bottomY} L 0 ${bottomY} Z`;
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<svg viewBox="0 0 64 64" width="64" height="64" class="bridge">
|
<svg viewBox="0 0 64 64" width="64" height="64" class="bridge">
|
||||||
{#if !isOver}
|
{#if isOver}
|
||||||
<path d={bodyPath} fill={s.color} />
|
|
||||||
<path d={`M 0 ${topY} L 64 ${topY}`} stroke={s.stroke} stroke-width="2" />
|
|
||||||
<path d={`M 0 ${bottomY} L 64 ${bottomY}`} stroke={s.stroke} stroke-width="2" />
|
|
||||||
<BaseTrack {activeElec} height={64} />
|
<BaseTrack {activeElec} height={64} />
|
||||||
|
|
||||||
|
<!-- White edge, to provide separation between abutment line and bridge content -->
|
||||||
|
<rect x="0" y={32 - s.width / 2 - 4} width="64" height={s.width + 8} fill="white" />
|
||||||
|
|
||||||
|
<rect x="6" y={32 - s.width / 2} width="52" height={s.width} fill={s.bg} />
|
||||||
|
|
||||||
|
{#if s.type === 'road'}
|
||||||
|
<line
|
||||||
|
x1={xLeft}
|
||||||
|
y1="32"
|
||||||
|
x2={xRight}
|
||||||
|
y2="32"
|
||||||
|
stroke="white"
|
||||||
|
stroke-width="1.5"
|
||||||
|
stroke-dasharray="4 3"
|
||||||
|
opacity="0.6"
|
||||||
|
/>
|
||||||
|
{:else if s.type === 'rail'}
|
||||||
|
<line x1={xLeft} y1="28" x2={xRight} y2="28" stroke="#cbd5e1" stroke-width="1.5" />
|
||||||
|
<line x1={xLeft} y1="36" x2={xRight} y2="36" stroke="#cbd5e1" stroke-width="1.5" />
|
||||||
|
{/if}
|
||||||
|
|
||||||
|
<g fill="none" stroke={s.stroke} stroke-width="2.5" stroke-linecap="square">
|
||||||
|
<path
|
||||||
|
d={`M 20 ${32 - s.width / 2 - 6} L 20 ${32 - s.width / 2 - 4} L 44 ${32 - s.width / 2 - 4} L 44 ${32 - s.width / 2 - 6}`}
|
||||||
|
/>
|
||||||
|
|
||||||
|
<path
|
||||||
|
d={`M 20 ${32 + s.width / 2 + 6} L 20 ${32 + s.width / 2 + 4} L 44 ${32 + s.width / 2 + 4} L 44 ${32 + s.width / 2 + 6}`}
|
||||||
|
/>
|
||||||
|
</g>
|
||||||
{:else}
|
{:else}
|
||||||
<BaseTrack {activeElec} height={64} />
|
<rect x="6" y={32 - s.width / 2} width="52" height={s.width} fill={s.bg} />
|
||||||
|
|
||||||
<path d={bodyPath} fill="white" /> <path d={bodyPath} fill={s.color} />
|
{#if s.type === 'road'}
|
||||||
|
<line
|
||||||
|
x1={xLeft}
|
||||||
|
y1="32"
|
||||||
|
x2={xRight}
|
||||||
|
y2="32"
|
||||||
|
stroke="white"
|
||||||
|
stroke-width="1.5"
|
||||||
|
stroke-dasharray="4 3"
|
||||||
|
opacity="0.6"
|
||||||
|
/>
|
||||||
|
{:else if s.type === 'rail'}
|
||||||
|
<line x1={xLeft} y1="28" x2={xRight} y2="28" stroke="#cbd5e1" stroke-width="1.5" />
|
||||||
|
<line x1={xLeft} y1="36" x2={xRight} y2="36" stroke="#cbd5e1" stroke-width="1.5" />
|
||||||
|
{/if}
|
||||||
|
|
||||||
<g fill="none" stroke={s.stroke} stroke-width="2.5" stroke-linecap="round">
|
<rect x="26" y={yTop} width="12" height="64" fill="white" />
|
||||||
<path d={`M 0 ${topY} L 64 ${topY}`} />
|
<g stroke={s.stroke} stroke-width="2.5" fill="none" stroke-linecap="square">
|
||||||
<path d={`M 0 ${bottomY} L 64 ${bottomY}`} />
|
<path
|
||||||
<path d={`M 0 ${topY} Q 4 ${topY} 4 ${topY - 6}`} />
|
d={`M 24 ${32 - s.width / 2 - 5} L 25 ${32 - s.width / 2 - 5} L 25 ${32 - s.width / 2 + s.width + 5} L 24 ${32 - s.width / 2 + s.width + 5}`}
|
||||||
<path d={`M 64 ${topY} Q 60 ${topY} 60 ${topY - 6}`} />
|
/>
|
||||||
<path d={`M 0 ${bottomY} Q 4 ${bottomY} 4 ${bottomY + 6}`} />
|
|
||||||
<path d={`M 64 ${bottomY} Q 60 ${bottomY} 60 ${bottomY + 6}`} />
|
<path
|
||||||
|
d={`M 40 ${32 - s.width / 2 - 5} L 39 ${32 - s.width / 2 - 5} L 39 ${32 - s.width / 2 + s.width + 5} L 40 ${32 - s.width / 2 + s.width + 5}`}
|
||||||
|
/>
|
||||||
</g>
|
</g>
|
||||||
|
|
||||||
{#if feature.roadName}
|
<BaseTrack {activeElec} height={64} />
|
||||||
|
{/if}
|
||||||
|
|
||||||
|
{#if feature.roadName}
|
||||||
|
<g class="label-group">
|
||||||
|
<rect
|
||||||
|
x={32 - feature.roadName.length * 3 - 4}
|
||||||
|
y="27"
|
||||||
|
width={feature.roadName.length * 6 + 8}
|
||||||
|
height="10"
|
||||||
|
stroke={s.textBorder || s.textBg}
|
||||||
|
stroke-width="1"
|
||||||
|
fill={s.textBg}
|
||||||
|
rx="3"
|
||||||
|
ry="4"
|
||||||
|
/>
|
||||||
<text
|
<text
|
||||||
x="32"
|
x="32"
|
||||||
y="32"
|
y="32"
|
||||||
text-anchor="middle"
|
text-anchor="middle"
|
||||||
dominant-baseline="central"
|
dominant-baseline="central"
|
||||||
fill={s.text}
|
fill={s.text}
|
||||||
font-family="sans-serif"
|
font-family="ui-monospace, monospace"
|
||||||
font-weight="bold"
|
font-weight="900"
|
||||||
font-size={s.width > 20 ? '10' : '8'}
|
font-size="8"
|
||||||
style="pointer-events: none; text-transform: uppercase; letter-spacing: 0.5px;"
|
|
||||||
>
|
>
|
||||||
{feature.roadName}
|
{feature.roadName}
|
||||||
</text>
|
</text>
|
||||||
{/if}
|
</g>
|
||||||
{/if}
|
{/if}
|
||||||
</svg>
|
</svg>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
svg {
|
|
||||||
display: block;
|
|
||||||
overflow: visible;
|
|
||||||
}
|
|
||||||
text {
|
text {
|
||||||
user-select: none;
|
text-transform: uppercase;
|
||||||
|
letter-spacing: 0.5px;
|
||||||
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -1,13 +1,14 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { getElecColour } from '$lib/railStyles';
|
import { getElecColour } from '$lib/railStyles';
|
||||||
|
import type { ElecType } from '$lib/railStyles';
|
||||||
|
|
||||||
export let feature: {
|
export let feature: {
|
||||||
from: {
|
from: {
|
||||||
elec: string;
|
elec: ElecType;
|
||||||
eco?: string;
|
eco?: string;
|
||||||
};
|
};
|
||||||
to: {
|
to: {
|
||||||
elec: string;
|
elec: ElecType;
|
||||||
eco?: string;
|
eco?: string;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,43 +1,48 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { getElecColour } from '$lib/railStyles';
|
import { getElecColour } from '$lib/railStyles';
|
||||||
import BaseTrack from '$lib/components/mapIcons/BaseTrack.svelte';
|
import BaseTrack from '$lib/components/mapIcons/BaseTrack.svelte';
|
||||||
|
|
||||||
export let feature: {
|
export let feature: {
|
||||||
direction: 'up' | 'down';
|
direction: 'up' | 'down';
|
||||||
diverges: 'left' | 'right' | 'both';
|
diverges: 'left' | 'right' | 'both';
|
||||||
elecBranch?: string;
|
elecBranch?: string;
|
||||||
};
|
};
|
||||||
export let activeElec: any;
|
export let activeElec: any;
|
||||||
export let reversed: boolean = false;
|
export let reversed: boolean = false;
|
||||||
|
|
||||||
$: isUp = feature.direction === 'up';
|
$: isUp = feature.direction === 'up';
|
||||||
$: visualUp = reversed ? !isUp : isUp;
|
$: visualUp = reversed ? !isUp : isUp;
|
||||||
|
$: visualSide = (side: 'left' | 'right') => {
|
||||||
|
if (!reversed) return side;
|
||||||
|
return side === 'left' ? 'right' : 'left';
|
||||||
|
};
|
||||||
|
|
||||||
const getPath = (side: 'left' | 'right') => {
|
const getPath = (side: 'left' | 'right') => {
|
||||||
const yStart = visualUp ? 64 : 0;
|
const yStart = visualUp ? 64 : 8;
|
||||||
const yEnd = visualUp ? 8 : 56;
|
const yEnd = visualUp ? 8 : 56;
|
||||||
const xEnd = side === 'right' ? 56 : 8;
|
const xEnd = side === 'right' ? 56 : 8;
|
||||||
return `M 32 ${yStart} Q 32 32 ${xEnd} ${yEnd}`;
|
return `M 32 ${yStart} Q 32 32 ${xEnd} ${yEnd}`;
|
||||||
};
|
};
|
||||||
|
|
||||||
$: paths = (() => {
|
$: paths = (() => {
|
||||||
if (feature.diverges === 'both') return [getPath('left'), getPath('right')];
|
if (feature.diverges === 'both') return [getPath('left'), getPath('right')];
|
||||||
return [getPath(feature.diverges)];
|
const effectiveSide = visualSide(feature.diverges as 'left' | 'right');
|
||||||
})();
|
return [getPath(effectiveSide)];
|
||||||
|
})();
|
||||||
|
|
||||||
$: branchColour = getElecColour(feature.elecBranch || activeElec);
|
$: branchColour = getElecColour(feature.elecBranch || activeElec);
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<svg viewBox="0 0 64 64" width="64" height="64" class="junction">
|
<svg viewBox="0 0 64 64" width="64" height="64" class="junction">
|
||||||
{#each paths as d}
|
{#each paths as d (d)}
|
||||||
<path {d} fill="none" stroke={branchColour} stroke-width="5" stroke-linecap="round" />
|
<path {d} fill="none" stroke={branchColour} stroke-width="5" stroke-linecap="round" />
|
||||||
{/each}
|
{/each}
|
||||||
<BaseTrack {activeElec} height={64} />
|
<BaseTrack {activeElec} height={64} />
|
||||||
</svg>
|
</svg>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
svg {
|
svg {
|
||||||
display: block;
|
display: block;
|
||||||
overflow: visible;
|
overflow: visible;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -1,93 +1,121 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
export let feature: {
|
export let feature: {
|
||||||
routeName: string;
|
routeName: string;
|
||||||
routeId: string;
|
routeId: string;
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="link-wrapper">
|
<div class="link-wrapper">
|
||||||
<a href="/map/{feature.routeId}" class="wide-button">
|
<a href="/map/{feature.routeId}" class="wide-button">
|
||||||
<div class="accent-bar"></div>
|
<div class="content">
|
||||||
<div class="content">
|
<div class="header-row">
|
||||||
<span class="sub-text">Continue to next map</span>
|
<span class="sub-text">Go to</span>
|
||||||
<span class="main-text">{feature.routeName}</span>
|
<span class="route-id-chip">{feature.routeId}</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="icon">
|
<span class="main-text">{feature.routeName}</span>
|
||||||
<svg viewBox="0 0 24 24" width="20" height="20">
|
</div>
|
||||||
<path d="M5 12h14M12 5l7 7-7 7" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
||||||
</svg>
|
<div class="icon-circle">
|
||||||
</div>
|
<svg viewBox="0 0 24 24" width="20" height="20">
|
||||||
</a>
|
<path
|
||||||
|
d="M5 12h14M12 5l7 7-7 7"
|
||||||
|
fill="none"
|
||||||
|
stroke="currentColor"
|
||||||
|
stroke-width="3"
|
||||||
|
stroke-linecap="round"
|
||||||
|
stroke-linejoin="round"
|
||||||
|
/>
|
||||||
|
</svg>
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
.link-wrapper {
|
.link-wrapper {
|
||||||
position: relative;
|
padding: 16px;
|
||||||
z-index: 100;
|
width: 100%;
|
||||||
padding: 12px;
|
box-sizing: border-box;
|
||||||
width: 100%;
|
}
|
||||||
box-sizing: border-box;
|
|
||||||
}
|
|
||||||
|
|
||||||
.wide-button {
|
.wide-button {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
background: #ffffff;
|
background: #ffffff;
|
||||||
border: 2px solid #e2e8f0;
|
border: 1px solid #e2e8f0;
|
||||||
border-radius: 12px;
|
border-radius: 16px;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
overflow: hidden;
|
padding: 12px 16px;
|
||||||
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
||||||
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
|
||||||
}
|
}
|
||||||
|
|
||||||
.accent-bar {
|
.content {
|
||||||
width: 6px;
|
flex: 1;
|
||||||
align-self: stretch;
|
display: flex;
|
||||||
background: #475569;
|
flex-direction: column;
|
||||||
}
|
gap: 4px;
|
||||||
|
min-width: 0;
|
||||||
|
}
|
||||||
|
|
||||||
.content {
|
.header-row {
|
||||||
flex: 1;
|
display: flex;
|
||||||
padding: 12px 16px;
|
align-items: center;
|
||||||
display: flex;
|
gap: 8px;
|
||||||
flex-direction: column;
|
}
|
||||||
gap: 2px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.sub-text {
|
.sub-text {
|
||||||
font-size: 10px;
|
font-size: 0.65rem;
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
letter-spacing: 0.05em;
|
letter-spacing: 0.05em;
|
||||||
color: #94a3b8;
|
color: #64748b;
|
||||||
}
|
}
|
||||||
|
|
||||||
.main-text {
|
.route-id-chip {
|
||||||
font-size: 16px;
|
font-size: 0.6rem;
|
||||||
font-weight: 800;
|
font-weight: 800;
|
||||||
color: #1e293b;
|
background: #f1f5f9;
|
||||||
}
|
color: #475569;
|
||||||
|
padding: 2px 6px;
|
||||||
|
border-radius: 6px;
|
||||||
|
text-transform: uppercase;
|
||||||
|
}
|
||||||
|
|
||||||
.icon {
|
.main-text {
|
||||||
padding-right: 20px;
|
font-size: 1rem;
|
||||||
color: #cbd5e1;
|
font-weight: 800;
|
||||||
transition: transform 0.2s ease;
|
color: #0f172a;
|
||||||
}
|
white-space: nowrap;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-circle {
|
||||||
|
width: 40px;
|
||||||
|
height: 40px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
background: #f8fafc;
|
||||||
|
border-radius: 50%;
|
||||||
|
color: #94a3b8;
|
||||||
|
transition: all 0.3s ease;
|
||||||
|
margin-left: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
.wide-button:hover {
|
.wide-button:hover {
|
||||||
border-color: #94a3b8;
|
border-color: #cbd5e1;
|
||||||
background: #f8fafc;
|
background: #fdfdfd;
|
||||||
}
|
box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
|
||||||
|
}
|
||||||
|
|
||||||
.wide-button:hover .icon {
|
.wide-button:hover .icon-circle {
|
||||||
color: #475569;
|
background: #4f46e5;
|
||||||
transform: translateX(4px);
|
color: #ffffff;
|
||||||
}
|
transform: rotate(-45deg);
|
||||||
|
}
|
||||||
|
|
||||||
.wide-button:active {
|
.wide-button:active {
|
||||||
transform: scale(0.98);
|
transform: scale(0.98);
|
||||||
background: #f1f5f9;
|
}
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
@@ -6,7 +6,14 @@
|
|||||||
to: string;
|
to: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export let reversed: boolean = false;
|
||||||
|
|
||||||
export let activeElec: any;
|
export let activeElec: any;
|
||||||
|
|
||||||
|
$: effectiveFeature = {
|
||||||
|
from: reversed ? feature.to : feature.from,
|
||||||
|
to: reversed ? feature.from : feature.to
|
||||||
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<svg viewBox="0 0 64 64" width="64" height="64" style="overflow: visible;">
|
<svg viewBox="0 0 64 64" width="64" height="64" style="overflow: visible;">
|
||||||
@@ -24,10 +31,10 @@
|
|||||||
|
|
||||||
<g font-family="sans-serif" font-weight="800" font-size="11">
|
<g font-family="sans-serif" font-weight="800" font-size="11">
|
||||||
<text x="70" y="24" fill="#4338ca" style="text-transform: uppercase;">
|
<text x="70" y="24" fill="#4338ca" style="text-transform: uppercase;">
|
||||||
{feature.from}
|
{effectiveFeature.from}
|
||||||
</text>
|
</text>
|
||||||
<text x="70" y="46" fill="#4338ca" style="text-transform: uppercase;">
|
<text x="70" y="46" fill="#4338ca" style="text-transform: uppercase;">
|
||||||
{feature.to}
|
{effectiveFeature.to}
|
||||||
</text>
|
</text>
|
||||||
</g>
|
</g>
|
||||||
</svg>
|
</svg>
|
||||||
|
|||||||
@@ -1,56 +1,59 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import BaseTrack from "./BaseTrack.svelte";
|
import BaseTrack from './BaseTrack.svelte';
|
||||||
|
|
||||||
export let feature: {
|
export let feature: {
|
||||||
tunnelType: "start" | "whole" | "end";
|
tunnelType: 'start' | 'whole' | 'end';
|
||||||
length: string;
|
length: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
export let activeElec: any;
|
export let activeElec: any;
|
||||||
|
|
||||||
export let reversed: boolean = false;
|
export let reversed: boolean = false;
|
||||||
|
|
||||||
const portalColour = "#475569"; // Slate grey
|
const portalColour = '#475569'; // Slate grey
|
||||||
|
|
||||||
$: effectiveType = (() => {
|
$: effectiveType = (() => {
|
||||||
if (!reversed || feature.tunnelType === 'whole') return feature.tunnelType;
|
if (!reversed || feature.tunnelType === 'whole') return feature.tunnelType;
|
||||||
return feature.tunnelType === 'start' ? 'end' : 'start';
|
return feature.tunnelType === 'start' ? 'end' : 'start';
|
||||||
})();
|
})();
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<svg viewBox="0 0 64 64" width="64" height="64" class="tunnel">
|
<svg viewBox="0 0 64 64" width="64" height="64" class="tunnel">
|
||||||
<BaseTrack {activeElec} height={64} />
|
<BaseTrack {activeElec} height={64} />
|
||||||
|
|
||||||
<g fill="none" stroke={portalColour} stroke-width="3" stroke-linecap="round">
|
<g fill="none" stroke={portalColour} stroke-width="3" stroke-linecap="round">
|
||||||
{#if effectiveType === 'whole'}
|
{#if effectiveType === 'whole'}
|
||||||
<path d="M 16 12 Q 32 24 48 12" />
|
<path d="M 16 12 Q 32 24 48 12" />
|
||||||
<path d="M 16 52 Q 32 40 48 52" />
|
<path d="M 16 52 Q 32 40 48 52" />
|
||||||
|
{:else if effectiveType === 'start'}
|
||||||
|
<path d="M 16 12 Q 32 24 48 12" />
|
||||||
|
{:else if effectiveType === 'end'}
|
||||||
|
<path d="M 16 52 Q 32 40 48 52" />
|
||||||
|
{/if}
|
||||||
|
</g>
|
||||||
|
|
||||||
{:else if effectiveType === 'start'}
|
{#if feature.tunnelType === 'whole' && feature.length}
|
||||||
<path d="M 16 12 Q 32 24 48 12" />
|
<rect x="12" y="26" width="40" height="12" fill="white" />
|
||||||
|
<text
|
||||||
{:else if effectiveType === 'end'}
|
x="32"
|
||||||
<path d="M 16 52 Q 32 40 48 52" />
|
y="35"
|
||||||
{/if}
|
text-anchor="middle"
|
||||||
</g>
|
font-size="8.5"
|
||||||
|
font-weight="bold"
|
||||||
{#if feature.tunnelType === 'whole' && feature.length}
|
fill={portalColour}
|
||||||
<rect x="12" y="26" width="40" height="12" fill="white" />
|
class="t-text"
|
||||||
<text
|
>
|
||||||
x="32"
|
{feature.length}
|
||||||
y="35"
|
</text>
|
||||||
text-anchor="middle"
|
{/if}
|
||||||
font-size="8.5"
|
|
||||||
font-weight="bold"
|
|
||||||
fill={portalColour}
|
|
||||||
class="t-text"
|
|
||||||
>
|
|
||||||
{feature.length}
|
|
||||||
</text>
|
|
||||||
{/if}
|
|
||||||
</svg>
|
</svg>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
svg { display: block; overflow: visible; }
|
svg {
|
||||||
.t-text { font-family: ui-monospace, monospace; }
|
display: block;
|
||||||
|
overflow: visible;
|
||||||
|
}
|
||||||
|
.t-text {
|
||||||
|
font-family: ui-monospace, monospace;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
@@ -23,5 +23,5 @@ export const components = {
|
|||||||
signallerChange: SignallerChange,
|
signallerChange: SignallerChange,
|
||||||
electrificationChange: ElectrificationChange,
|
electrificationChange: ElectrificationChange,
|
||||||
default: BaseTrack,
|
default: BaseTrack,
|
||||||
tunnel: Tunnel,
|
tunnel: Tunnel
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import favicon from '$lib/assets/favicon.svg';
|
import favicon from '$lib/assets/favicon.svg';
|
||||||
|
import '$lib/assets/global.css';
|
||||||
|
|
||||||
let { children } = $props();
|
let { children } = $props();
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -1,116 +1,332 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import RouteRow from '$lib/components/RouteRow.svelte';
|
import type { PageData } from './$types';
|
||||||
|
import { base } from '$app/paths';
|
||||||
|
export let data: PageData;
|
||||||
|
import favicon from '$lib/assets/favicon.svg';
|
||||||
|
|
||||||
const dummyFeatures = [
|
let searchTerm = '';
|
||||||
{
|
|
||||||
type: 'station',
|
$: filteredMaps = data.maps.filter(
|
||||||
miles: 0,
|
(m) =>
|
||||||
chains: 0,
|
m.routeId.toString().includes(searchTerm) ||
|
||||||
name: 'Testington',
|
m.routeStart.toLowerCase().includes(searchTerm.toLowerCase()) ||
|
||||||
description: 'Terminus',
|
m.routeEnd.toLowerCase().includes(searchTerm.toLowerCase())
|
||||||
terminus: true,
|
);
|
||||||
elec: '25kvac'
|
|
||||||
},
|
const vibrate = (patern: number | number[] = 10) => {
|
||||||
{
|
if (typeof window !== 'undefined' && window.navigator.vibrate) {
|
||||||
type: 'station',
|
window.navigator.vibrate(pattern);
|
||||||
miles: 0,
|
|
||||||
chains: 76,
|
|
||||||
name: 'Closeby',
|
|
||||||
description: 'Temporarily closed',
|
|
||||||
elec: '25kvac'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
type: 'junction',
|
|
||||||
name: 'Test Junction',
|
|
||||||
diverges: 'right',
|
|
||||||
direction: 'down',
|
|
||||||
elec: '25kvac',
|
|
||||||
elecBranch: 'none',
|
|
||||||
miles: 1,
|
|
||||||
chains: 13
|
|
||||||
},
|
|
||||||
{
|
|
||||||
type: 'bridge',
|
|
||||||
position: 'over',
|
|
||||||
category: 'pipeline',
|
|
||||||
name: 'Waterway Bridge',
|
|
||||||
roadName: 'TfL (LU)',
|
|
||||||
elec: '25kvac',
|
|
||||||
miles: 1,
|
|
||||||
chains: 41
|
|
||||||
},
|
|
||||||
{
|
|
||||||
type: 'crossover',
|
|
||||||
name: 'Dolphin junction',
|
|
||||||
elec: '25kvac',
|
|
||||||
miles: 1,
|
|
||||||
chains: 42
|
|
||||||
},
|
|
||||||
{
|
|
||||||
type: 'junction',
|
|
||||||
name: 'Test Junction South',
|
|
||||||
description: 'To: Banbury West Junction & Birmingham',
|
|
||||||
diverges: 'left',
|
|
||||||
direction: 'down',
|
|
||||||
elec: '25kvac',
|
|
||||||
elecBranch: '650vdc',
|
|
||||||
miles: 1,
|
|
||||||
chains: 42
|
|
||||||
},
|
|
||||||
{
|
|
||||||
type: 'electrificationChange',
|
|
||||||
from: {
|
|
||||||
elec: '25kvac',
|
|
||||||
eco: 'Didcot'
|
|
||||||
},
|
|
||||||
to: {
|
|
||||||
elec: 'none'
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
type: 'crossing',
|
|
||||||
kind: 'ahb',
|
|
||||||
elec: '25kvac',
|
|
||||||
name: 'Swindon Lane',
|
|
||||||
description: 'Controlled by TVSC (Level Crossing WS)'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
type: 'loop',
|
|
||||||
side: 'both',
|
|
||||||
elec: '25kvac',
|
|
||||||
elecLoop: 'none'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
type: 'signallerChange',
|
|
||||||
from: 'TVSC - Didcot WS (SB)',
|
|
||||||
to: 'TVSC - Swindon WS (SN)',
|
|
||||||
elec: '25kvac'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
type: 'station',
|
|
||||||
miles: 4,
|
|
||||||
chains: 13,
|
|
||||||
name: 'Powerless',
|
|
||||||
description: "Doesn't exist",
|
|
||||||
elec: '750vdc'
|
|
||||||
}
|
}
|
||||||
];
|
}
|
||||||
|
|
||||||
|
const isVerifiedRecently = (dateVal: string | null) => {
|
||||||
|
if (!dateVal) return 'draft';
|
||||||
|
|
||||||
|
const checkedDate = new Date(dateVal).getTime();
|
||||||
|
const oneYearAgo = Date.now() - 365 * 24 * 60 * 60 * 1000;
|
||||||
|
|
||||||
|
return checkedDate > oneYearAgo ? 'verified' : 'stale';
|
||||||
|
};
|
||||||
|
|
||||||
|
const formatDate = (dateVal: string | null) => {
|
||||||
|
if (!dateVal) return 'N/A';
|
||||||
|
|
||||||
|
const date = new Date(dateVal);
|
||||||
|
|
||||||
|
// Check for invalid dates to avoid "NaN/NaN/NaN"
|
||||||
|
if (isNaN(date.getTime())) return 'Invalid Date';
|
||||||
|
|
||||||
|
const d = date.getDate().toString().padStart(2, '0');
|
||||||
|
const m = (date.getMonth() + 1).toString().padStart(2, '0');
|
||||||
|
const y = date.getFullYear().toString().slice(-2);
|
||||||
|
|
||||||
|
return `${d}/${m}/${y}`;
|
||||||
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<h1>Welcome to SvelteKit</h1>
|
<div class="page-wrapper">
|
||||||
<p>Visit <a href="https://svelte.dev/docs/kit">svelte.dev/docs/kit</a> to read the documentation</p>
|
<header class="main-header">
|
||||||
|
<div class="brand-container">
|
||||||
|
<img
|
||||||
|
src={favicon}
|
||||||
|
alt="OwlBoard Logo"
|
||||||
|
class="main-logo"
|
||||||
|
/>
|
||||||
|
<div class="brand-text">
|
||||||
|
<h1>Routes</h1>
|
||||||
|
</div>
|
||||||
|
<div class="search-container">
|
||||||
|
<input
|
||||||
|
type="text"
|
||||||
|
bind:value={searchTerm}
|
||||||
|
placeholder="Search index..."
|
||||||
|
class="search-input"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</header>
|
||||||
|
|
||||||
<div class="map-container">
|
<div class="list-container">
|
||||||
{#each dummyFeatures as feature}
|
<a href="https://owlboard.info" class="button-link">Go to OwlBoard Live Departures & PIS</a>
|
||||||
<RouteRow {feature} activeElec={feature.elec} />
|
{#each filteredMaps as map (map.routeId)}
|
||||||
{/each}
|
<a href="{base}/map/{map.routeId.toString().padStart(4, '0')}" class="card" on:click={() => vibrate(10)}>
|
||||||
|
<div class="card-top">
|
||||||
|
<span class="route-id">{map.routeId.toString().padStart(4, '0')}</span>
|
||||||
|
<span class="status-badge {isVerifiedRecently(map.checked)}">
|
||||||
|
{#if isVerifiedRecently(map.checked) === 'verified'}
|
||||||
|
Reviewed
|
||||||
|
{:else if isVerifiedRecently(map.checked) === 'stale'}
|
||||||
|
Needs review
|
||||||
|
{:else}
|
||||||
|
Draft
|
||||||
|
{/if}
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="card-body">
|
||||||
|
<div class="location origin">{map.routeStart}</div>
|
||||||
|
<div class="path-arrow">to</div>
|
||||||
|
<div class="location destination">{map.routeEnd}</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="card-footer">
|
||||||
|
<span>Created on {formatDate(map.created)}</span>
|
||||||
|
{#if map.checked}
|
||||||
|
<span>• Checked & Updated on {formatDate(map.checked)}</span>
|
||||||
|
{/if}
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
|
{:else}
|
||||||
|
<div class="empty-state">No maps found.</div>
|
||||||
|
{/each}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
.map-container {
|
/* Mobile-First Base Styles */
|
||||||
width: 100%;
|
:global(body) {
|
||||||
max-width: 600px;
|
margin: 0;
|
||||||
|
background-color: #404c55;
|
||||||
|
background-image: radial-gradient(#2b343c, #404c55);
|
||||||
|
color: #0f172a;
|
||||||
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
||||||
|
}
|
||||||
|
|
||||||
|
.page-wrapper {
|
||||||
|
padding: 1rem;
|
||||||
|
max-width: 800px;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
font-family: sans-serif;
|
}
|
||||||
|
|
||||||
|
.main-header {
|
||||||
|
margin-bottom: 1.5rem;
|
||||||
|
position: fixed;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
box-sizing: border-box;
|
||||||
|
width: 100%;
|
||||||
|
background: #3c6f79;
|
||||||
|
color: #ebebeb;
|
||||||
|
z-index: 100;
|
||||||
|
}
|
||||||
|
|
||||||
|
.brand-container {
|
||||||
|
padding: 15px;
|
||||||
|
display: flex;
|
||||||
|
width: 100%;
|
||||||
|
align-items: center;
|
||||||
|
box-sizing: border-box;
|
||||||
|
gap: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.main-logo {
|
||||||
|
height: 52px;
|
||||||
|
width: auto;
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.brand-text h1 {
|
||||||
|
font-size: 1.5rem;
|
||||||
|
font-weight: 900;
|
||||||
|
font-family: "urwgothic";
|
||||||
|
margin: 0;
|
||||||
|
line-height: 1;
|
||||||
|
font-style: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.search-container {
|
||||||
|
margin-left: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.search-input {
|
||||||
|
width: 100%;
|
||||||
|
margin-left: auto;
|
||||||
|
height: 50px;
|
||||||
|
padding: 0.8rem 1rem;
|
||||||
|
text-align: center;
|
||||||
|
text-transform: uppercase;
|
||||||
|
border-radius: 30px;
|
||||||
|
border: none;
|
||||||
|
font-size: 1rem;
|
||||||
|
transition: all 0.3s ease;
|
||||||
|
box-sizing: border-box; /* Ensures padding doesn't break width */
|
||||||
|
outline: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.search-input:hover {
|
||||||
|
box-shadow: rgba(0, 0, 0, 0.46);
|
||||||
|
}
|
||||||
|
|
||||||
|
.list-container {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 1rem;
|
||||||
|
padding: 90px 1rem 1rem 1rem;
|
||||||
|
isolation: isolate;
|
||||||
|
z-index: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 600px) {
|
||||||
|
.list-container {
|
||||||
|
padding-top: 90px;
|
||||||
|
gap: 0.75rem;
|
||||||
|
padding-left: 0.5rem;
|
||||||
|
padding-right: 0.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card {
|
||||||
|
padding: 10px 12px;
|
||||||
|
margin: 0;
|
||||||
|
border-radius: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.location {
|
||||||
|
font-size: 1rem;
|
||||||
|
margin-bottom: 0.1rem;
|
||||||
|
font-weight: 500;
|
||||||
|
}
|
||||||
|
|
||||||
|
.path-arrow {
|
||||||
|
color: #fff;
|
||||||
|
font-size: 0.8rem;
|
||||||
|
margin: 0.1rem 0;
|
||||||
|
line-height: 0.75;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-footer {
|
||||||
|
font-size: 0.6rem;
|
||||||
|
line-height: 0.8rem;
|
||||||
|
padding-bottom: 2px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.card {
|
||||||
|
display: block;
|
||||||
|
background: #3c6f79;
|
||||||
|
padding: 1.25rem;
|
||||||
|
border-radius: 35px;
|
||||||
|
text-decoration: none;
|
||||||
|
color: #4fd1d1;
|
||||||
|
text-shadow: 2px 1px 10px rgba(0, 0, 0, 0.29);
|
||||||
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.482);
|
||||||
|
transition: transform 0.1s ease;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card:hover {
|
||||||
|
transform: scale(1.01);
|
||||||
|
z-index: 5;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card:active {
|
||||||
|
transform: scale(0.99); /* Tactile feedback for mobile */
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-top {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
margin-bottom: 0.75rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.route-id {
|
||||||
|
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
|
||||||
|
font-weight: 800;
|
||||||
|
color: #fff;
|
||||||
|
background: #2d2d2d;
|
||||||
|
text-shadow: none;
|
||||||
|
padding: 0.2rem 0.5rem;
|
||||||
|
border-radius: 6px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-body {
|
||||||
|
margin-bottom: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.location {
|
||||||
|
font-family: "urwgothic";
|
||||||
|
font-size: 1.23rem;
|
||||||
|
font-weight: 700;
|
||||||
|
}
|
||||||
|
|
||||||
|
.path-arrow {
|
||||||
|
color: #fff;
|
||||||
|
font-family: "urwgothic";
|
||||||
|
font-size: 0.9rem;
|
||||||
|
margin: 0.2rem 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-footer {
|
||||||
|
font-size: 0.7rem;
|
||||||
|
color: #e2ebeb;
|
||||||
|
text-transform: uppercase;
|
||||||
|
font-weight: 600;
|
||||||
|
letter-spacing: 0.05em;
|
||||||
|
padding-top: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.status-badge {
|
||||||
|
font-size: 0.65rem;
|
||||||
|
font-weight: 800;
|
||||||
|
text-shadow: none;
|
||||||
|
text-transform: uppercase;
|
||||||
|
padding: 0.3rem 0.6rem;
|
||||||
|
border-radius: 999px;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
.verified {
|
||||||
|
background: #dcfce7;
|
||||||
|
color: #166534;
|
||||||
|
}
|
||||||
|
|
||||||
|
.stale {
|
||||||
|
background: #fef3c7;
|
||||||
|
color: #92400e;
|
||||||
|
border: 1px solid #fcd34d;
|
||||||
|
}
|
||||||
|
|
||||||
|
.draft {
|
||||||
|
background: #f1f5f9;
|
||||||
|
color: #475569;
|
||||||
|
}
|
||||||
|
|
||||||
|
.button-link {
|
||||||
|
text-decoration: none;
|
||||||
|
border: none;
|
||||||
|
background: #3c6f79;
|
||||||
|
max-width: 360px;
|
||||||
|
padding: 8px 25px;
|
||||||
|
margin: auto;
|
||||||
|
text-align: center;
|
||||||
|
border-radius: 25px;
|
||||||
|
width: auto;
|
||||||
|
color: #e2ebeb;
|
||||||
|
transition: 0.3s all ease;
|
||||||
|
font-weight: 620;
|
||||||
|
}
|
||||||
|
|
||||||
|
.button-link:hover {
|
||||||
|
background: #2b2b2b;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
17
src/routes/+page.ts
Normal file
17
src/routes/+page.ts
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
import type { PageLoad } from './$types';
|
||||||
|
|
||||||
|
export const load: PageLoad = async ({ fetch }) => {
|
||||||
|
const response = await fetch('map-index.json');
|
||||||
|
|
||||||
|
if (!response.ok) {
|
||||||
|
return { maps: [] };
|
||||||
|
}
|
||||||
|
|
||||||
|
const maps = await response.json();
|
||||||
|
|
||||||
|
return {
|
||||||
|
maps: maps.sort((a: any, b: any) => {
|
||||||
|
return Number(a.routeId) - Number(b.routeId);
|
||||||
|
})
|
||||||
|
};
|
||||||
|
};
|
||||||
@@ -2,7 +2,10 @@ import { json } from '@sveltejs/kit';
|
|||||||
import type { RequestHandler } from './$types';
|
import type { RequestHandler } from './$types';
|
||||||
|
|
||||||
export const GET: RequestHandler = () => {
|
export const GET: RequestHandler = () => {
|
||||||
return json({ status: 'ok', uptime: process.uptime() }, {
|
return json(
|
||||||
status: 200
|
{ status: 'ok', uptime: process.uptime() },
|
||||||
});
|
{
|
||||||
|
status: 200
|
||||||
|
}
|
||||||
|
);
|
||||||
};
|
};
|
||||||
30
src/routes/manifest.webmanifest/+server.ts
Normal file
30
src/routes/manifest.webmanifest/+server.ts
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
import { json } from "@sveltejs/kit";
|
||||||
|
import type { RequestHandler } from './$types';
|
||||||
|
import favicon from '$lib/assets/favicon.svg?url';
|
||||||
|
|
||||||
|
export const prerender = true;
|
||||||
|
|
||||||
|
export const GET: RequestHandler = ({ url }) => {
|
||||||
|
const manifest = {
|
||||||
|
name: "OwlBoard Maps",
|
||||||
|
short_name: "OwlBoard Maps",
|
||||||
|
start_url: "/",
|
||||||
|
display: "standalone",
|
||||||
|
theme_color: "#ff6600",
|
||||||
|
background_color: "#ffffff",
|
||||||
|
icons: [
|
||||||
|
{
|
||||||
|
src: favicon,
|
||||||
|
sizes: "any",
|
||||||
|
type: "image/svg+xml"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
};
|
||||||
|
|
||||||
|
return json(manifest, {
|
||||||
|
headers: {
|
||||||
|
'Content-Type': 'application/manifest+json',
|
||||||
|
'Cache-Control': 'public, max-age=3600',
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
@@ -1,9 +1,10 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import RouteRow from '$lib/components/RouteRow.svelte';
|
import RouteRow from '$lib/components/RouteRow.svelte';
|
||||||
import RouteEndLink from '$lib/components/mapIcons/RouteEndLink.svelte';
|
import RouteEndLink from '$lib/components/mapIcons/RouteEndLink.svelte';
|
||||||
import { slide } from 'svelte/transition';
|
import { slide } from 'svelte/transition';
|
||||||
|
import { base } from '$app/paths';
|
||||||
|
|
||||||
// data.route contains: routeName, routeId, elecStart, elecEnd, routeDetail[]
|
// data.route contains: routeStart, routeEnd, routeId, elecStart, elecEnd, routeDetail[]
|
||||||
export let data;
|
export let data;
|
||||||
|
|
||||||
let reversed = false; // Reverses Array, and passes value down to children
|
let reversed = false; // Reverses Array, and passes value down to children
|
||||||
@@ -17,7 +18,7 @@
|
|||||||
electrificationChange: true,
|
electrificationChange: true,
|
||||||
siteof: true,
|
siteof: true,
|
||||||
junction: true,
|
junction: true,
|
||||||
tunnel: true,
|
tunnel: true
|
||||||
};
|
};
|
||||||
|
|
||||||
let showFilters = false;
|
let showFilters = false;
|
||||||
@@ -59,8 +60,23 @@
|
|||||||
|
|
||||||
<div class="map-layout">
|
<div class="map-layout">
|
||||||
<header class="top-nav">
|
<header class="top-nav">
|
||||||
<h1>{data.route.routeName}</h1>
|
<div class="nav-cluster">
|
||||||
<span class="route-code">{data.route.routeId}</span>
|
<a href="{base}/" class="home-link" title="Back to Index">
|
||||||
|
<span class="home-icon">⌂</span>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
<div class="route-stack">
|
||||||
|
{#if data?.route}
|
||||||
|
<h1 class="primary-station">
|
||||||
|
{reversed ? data.route.routeEnd : data.route.routeStart}
|
||||||
|
</h1>
|
||||||
|
<span class="secondary-station">
|
||||||
|
to {reversed ? data.route.routeStart : data.route.routeEnd}
|
||||||
|
</span>
|
||||||
|
{/if}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="quick-actions">
|
<div class="quick-actions">
|
||||||
<button class="icon-btn" on:click={() => (reversed = !reversed)}>
|
<button class="icon-btn" on:click={() => (reversed = !reversed)}>
|
||||||
⇄ {reversed ? 'UP' : 'DN'}
|
⇄ {reversed ? 'UP' : 'DN'}
|
||||||
@@ -91,7 +107,7 @@
|
|||||||
|
|
||||||
<div class="drawer-content">
|
<div class="drawer-content">
|
||||||
<div class="filter-flex">
|
<div class="filter-flex">
|
||||||
{#each Object.keys(visibleTypes) as type}
|
{#each Object.keys(visibleTypes) as type (type)}
|
||||||
<button
|
<button
|
||||||
class="filter-chip"
|
class="filter-chip"
|
||||||
class:active={visibleTypes[type]}
|
class:active={visibleTypes[type]}
|
||||||
@@ -108,53 +124,116 @@
|
|||||||
<main class="map-spine">
|
<main class="map-spine">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
{#each filteredFeatures as f, i (`${f.type}-${f.miles}-${f.chains}-${i}`)}
|
{#each filteredFeatures as f, i (`${f.type}-${f.miles}-${f.chains}-${i}`)}
|
||||||
{#if (f.type === 'continues')}
|
{#if f.type === 'continues'}
|
||||||
<RouteEndLink feature={f} />
|
<RouteEndLink feature={f} />
|
||||||
{:else}
|
{:else}
|
||||||
<RouteRow feature={f} activeElec={f.activeElec} {reversed} />
|
<RouteRow feature={f} activeElec={f.activeElec} {reversed} />
|
||||||
{/if}
|
{/if}
|
||||||
{/each}
|
{/each}
|
||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
.map-layout {
|
.map-layout {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
background: #ffffff;
|
background: #ffffff;
|
||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
|
margin-top: 0;
|
||||||
|
padding-top: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.top-nav {
|
.top-nav {
|
||||||
position: sticky;
|
position: fixed;
|
||||||
|
width: 100%;
|
||||||
|
box-sizing: border-box;
|
||||||
top: 0;
|
top: 0;
|
||||||
z-index: 100;
|
left: 0;
|
||||||
background: rgba(255, 255, 255, 0.9);
|
|
||||||
backdrop-filter: blur(10px);
|
|
||||||
border-bottom: 1px solid #e2e8f0;
|
|
||||||
padding: 0.75rem 1rem;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
padding: 0.5rem 1rem;
|
||||||
|
background: #3c6f79;
|
||||||
|
color: #e1ebeb;
|
||||||
gap: 1rem;
|
gap: 1rem;
|
||||||
|
z-index: 10000;
|
||||||
}
|
}
|
||||||
|
|
||||||
h1 {
|
.nav-cluster {
|
||||||
flex: 1;
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 1rem;
|
||||||
|
min-width: 0; /* Prevents flex children from overflowing */
|
||||||
|
}
|
||||||
|
|
||||||
|
.home-link {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
width: 36px;
|
||||||
|
height: 36px;
|
||||||
|
background: #404c55;
|
||||||
|
border: 1px solid #334155;
|
||||||
|
border-radius: 8px;
|
||||||
|
color: #e1ebeb;
|
||||||
|
text-decoration: none;
|
||||||
|
font-size: 1.2rem;
|
||||||
|
flex-shrink: 0;
|
||||||
|
transition: all 0.3s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.home-link:hover {
|
||||||
|
background: #2d2d2d;
|
||||||
|
}
|
||||||
|
|
||||||
|
.route-stack {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
margin: 0;
|
}
|
||||||
font-size: 1.1rem;
|
|
||||||
|
.primary-station {
|
||||||
|
font-size: 1rem;
|
||||||
font-weight: 800;
|
font-weight: 800;
|
||||||
line-height: 1.2;
|
margin: 0;
|
||||||
color: #0f172a;
|
white-space: nowrap;
|
||||||
letter-spacing: -0.02em;
|
color: #cce9e9;
|
||||||
white-space: normal;
|
overflow: hidden;
|
||||||
overflow-wrap: break-word;
|
text-overflow: ellipsis;
|
||||||
|
}
|
||||||
|
|
||||||
|
.secondary-station {
|
||||||
|
font-size: 0.7rem;
|
||||||
|
color: #cce9e9;
|
||||||
|
text-transform: uppercase;
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
|
||||||
|
.quick-actions {
|
||||||
|
display: flex;
|
||||||
|
gap: 0.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.map-spine {
|
||||||
|
padding-top: 72px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-width: 768px) {
|
@media (min-width: 768px) {
|
||||||
|
.primary-station {
|
||||||
|
font-size: 1.5rem;
|
||||||
|
}
|
||||||
|
.secondary-station {
|
||||||
|
font-size: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
.top-nav {
|
.top-nav {
|
||||||
padding: 1rem 2rem;
|
padding: 0 2rem;
|
||||||
|
height: 90px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.map-spine {
|
||||||
|
padding-top: 90px;
|
||||||
}
|
}
|
||||||
|
|
||||||
h1 {
|
h1 {
|
||||||
@@ -175,6 +254,7 @@
|
|||||||
inset: 0;
|
inset: 0;
|
||||||
background: rgba(0, 0, 0, 0.4);
|
background: rgba(0, 0, 0, 0.4);
|
||||||
z-index: 150;
|
z-index: 150;
|
||||||
|
transition: all 0.3s ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
.filter-drawer {
|
.filter-drawer {
|
||||||
@@ -182,7 +262,7 @@
|
|||||||
bottom: 0;
|
bottom: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
right: 0;
|
right: 0;
|
||||||
background: white;
|
background: #3c6f79;
|
||||||
z-index: 200;
|
z-index: 200;
|
||||||
border-radius: 20px 20px 0 0;
|
border-radius: 20px 20px 0 0;
|
||||||
box-shadow: 0 -8px 20px rgba(0, 0, 0, 0.15);
|
box-shadow: 0 -8px 20px rgba(0, 0, 0, 0.15);
|
||||||
@@ -195,17 +275,17 @@
|
|||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
padding: 1.25rem 1.5rem 0.75rem;
|
padding: 1.25rem 1.5rem 0.75rem;
|
||||||
border-bottom: 1px solid #f1f5f9;
|
border-bottom: 1px solid #e1ebeb;
|
||||||
}
|
}
|
||||||
|
|
||||||
.drawer-header h3 {
|
.drawer-header h3 {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
font-size: 1rem;
|
font-size: 1rem;
|
||||||
color: #1e293b;
|
color: #e1ebeb;
|
||||||
}
|
}
|
||||||
|
|
||||||
.close-icon {
|
.close-icon {
|
||||||
background: #f1f5f9;
|
background: #404c55;
|
||||||
border: none;
|
border: none;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
width: 32px;
|
width: 32px;
|
||||||
@@ -214,7 +294,12 @@
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
color: #64748b;
|
color: #e1ebeb;
|
||||||
|
transition: all 0.3s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.close-icon:hover {
|
||||||
|
background: #2d2d2d;
|
||||||
}
|
}
|
||||||
|
|
||||||
.drawer-content {
|
.drawer-content {
|
||||||
@@ -231,15 +316,47 @@
|
|||||||
padding: 0.5rem 1rem;
|
padding: 0.5rem 1rem;
|
||||||
border-radius: 999px;
|
border-radius: 999px;
|
||||||
border: 1px solid #e2e8f0;
|
border: 1px solid #e2e8f0;
|
||||||
background: #f8fafc;
|
background: #ff6060;
|
||||||
font-size: 0.875rem;
|
font-size: 0.875rem;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
transition: all 0.2s;
|
transition: all 0.2s;
|
||||||
}
|
}
|
||||||
|
|
||||||
.filter-chip.active {
|
.filter-chip.active {
|
||||||
background: #1e293b;
|
background: #00725b;
|
||||||
color: white;
|
color: white;
|
||||||
border-color: #1e293b;
|
border-color: #1e293b;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.quick-actions {
|
||||||
|
display: flex;
|
||||||
|
gap: 0.5rem;
|
||||||
|
flex-shrink: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-btn {
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 0.4rem;
|
||||||
|
border: none;
|
||||||
|
padding: 0.5rem 0.8rem;
|
||||||
|
border-radius: 12px;
|
||||||
|
background: #404c55;
|
||||||
|
color: #e1ebeb;
|
||||||
|
font-size: 0.75rem;
|
||||||
|
font-weight: 700;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
||||||
|
text-transform: uppercase;
|
||||||
|
letter-spacing: 0.02em;
|
||||||
|
transition: all 0.3s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-btn:hover {
|
||||||
|
background: #2d2d2d;
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-btn:active {
|
||||||
|
transform: scale(0.96);
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
BIN
static/fonts/urwgothic/urwgothic.woff
Normal file
BIN
static/fonts/urwgothic/urwgothic.woff
Normal file
Binary file not shown.
BIN
static/fonts/urwgothic/urwgothic.woff2
Normal file
BIN
static/fonts/urwgothic/urwgothic.woff2
Normal file
Binary file not shown.
BIN
static/fonts/urwgothic/urwgothicDemi.woff
Normal file
BIN
static/fonts/urwgothic/urwgothicDemi.woff
Normal file
Binary file not shown.
BIN
static/fonts/urwgothic/urwgothicDemi.woff2
Normal file
BIN
static/fonts/urwgothic/urwgothicDemi.woff2
Normal file
Binary file not shown.
File diff suppressed because it is too large
Load Diff
58
static/mapFiles/yaml/0002.yaml
Normal file
58
static/mapFiles/yaml/0002.yaml
Normal file
@@ -0,0 +1,58 @@
|
|||||||
|
routeStart: Reading
|
||||||
|
routeEnd: Bristol TM
|
||||||
|
routeId: 0002
|
||||||
|
created: 2026-02-04
|
||||||
|
checked:
|
||||||
|
signallerStart: TVSC Reading WS
|
||||||
|
signallerEnd: TVSC Temple Meads WS
|
||||||
|
elecStart:
|
||||||
|
elec: 25kvac
|
||||||
|
eco: Didcot (TVSC)
|
||||||
|
elecEnd:
|
||||||
|
elec: none
|
||||||
|
routeDetail:
|
||||||
|
- type: continues
|
||||||
|
routeName: Paddington - Reading
|
||||||
|
routeId: '0001'
|
||||||
|
|
||||||
|
- type: station
|
||||||
|
name: Reading
|
||||||
|
miles: 35
|
||||||
|
chains: 78
|
||||||
|
|
||||||
|
- type: bridge
|
||||||
|
name: Caversham Road
|
||||||
|
position: under
|
||||||
|
category: minorRoad
|
||||||
|
miles: 35
|
||||||
|
chains: 11
|
||||||
|
|
||||||
|
- type: junction
|
||||||
|
diverges: right
|
||||||
|
direction: down
|
||||||
|
name: Westbury Line Junction
|
||||||
|
description: to Oxford Road Jn
|
||||||
|
miles: 36
|
||||||
|
chains: 17
|
||||||
|
|
||||||
|
- type: junction
|
||||||
|
diverges: right
|
||||||
|
direction: down
|
||||||
|
name: Caversham Road Junction
|
||||||
|
description: Reading Feeder Main/Relief diverge and pass under Reading Viaduct to Oxford Rd Jn
|
||||||
|
miles: 36
|
||||||
|
chains: 22
|
||||||
|
|
||||||
|
- type: crossovers
|
||||||
|
name: Reading High Level Junction
|
||||||
|
description: Down Reading Festival Connects to Down Main
|
||||||
|
miles: 36
|
||||||
|
chains: 47
|
||||||
|
|
||||||
|
- type: junction
|
||||||
|
diverges: right
|
||||||
|
direction: up
|
||||||
|
name: Reading West Junction
|
||||||
|
description: to Oxford Road Junction (From relief lines only)
|
||||||
|
miles: 37
|
||||||
|
chains: 17
|
||||||
@@ -2,5 +2,16 @@ import { sveltekit } from '@sveltejs/kit/vite';
|
|||||||
import { defineConfig } from 'vite';
|
import { defineConfig } from 'vite';
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
plugins: [sveltekit()]
|
plugins: [
|
||||||
|
sveltekit(),
|
||||||
|
],
|
||||||
|
build: {
|
||||||
|
assetsInlineLimit: 0,
|
||||||
|
cssCodeSplit: true,
|
||||||
|
sourcemap: false,
|
||||||
|
target: 'esnext',
|
||||||
|
modulePreload: {
|
||||||
|
polyfill: false,
|
||||||
|
}
|
||||||
|
},
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user