-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
297 changed files
with
9,806 additions
and
15,271 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
output/ | ||
tegola-cache/ | ||
web-assets/ | ||
.vscode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
"ecmaVersion": 12, | ||
"sourceType": "module" | ||
}, | ||
"plugins": ["@typescript-eslint"], | ||
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended"], | ||
"rules": { | ||
"@typescript-eslint/ban-ts-comment": "off", | ||
"@typescript-eslint/no-explicit-any": "off" | ||
}, | ||
"env": { | ||
"browser": true, | ||
"es2021": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,7 @@ | ||
node_modules | ||
dist | ||
|
||
public/pwa-*.png | ||
public/maskable-icon-*.png | ||
public/apple-touch-icon-*.png | ||
public/favicon.ico |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
/** @type {import("prettier").Options} */ | ||
const config = { | ||
trailingComma: "es5", | ||
tabWidth: 4, | ||
semi: false, | ||
singleQuote: true, | ||
printWidth: 110, | ||
}; | ||
|
||
export default config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM node:17-alpine | ||
FROM node:18-slim | ||
|
||
WORKDIR /app | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM node:17 | ||
FROM node:18-slim | ||
|
||
# Source mounted into /app | ||
WORKDIR /app | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import path from 'node:path' | ||
import fs from 'node:fs' | ||
import generateStyle from './src/style' | ||
|
||
const styles_path = path.join('./public', 'styles') | ||
|
||
fs.mkdirSync(styles_path, { recursive: true }) | ||
|
||
fs.writeFileSync( | ||
path.join(styles_path, 'style-basic.json'), | ||
JSON.stringify(generateStyle('basic', 'https://map.emfcamp.org', '/')) | ||
) | ||
|
||
fs.writeFileSync( | ||
path.join(styles_path, 'style-basic-dark.json'), | ||
JSON.stringify(generateStyle('basic', 'https://map.emfcamp.org', '/', 'dark')) | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<script type="module" rel="preload" src="/src/index.ts"></script> | ||
<meta | ||
name="viewport" | ||
content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no" | ||
/> | ||
<meta name="apple-mobile-web-app-capable" content="yes" /> | ||
<meta name="description" content="Electromagnetic Field 2024 Map" /> | ||
<meta name="theme-color" content="#171123" /> | ||
<link rel="icon" href="/favicon.ico" sizes="48x48" /> | ||
<link rel="icon" href="/icon.svg" sizes="any" type="image/svg+xml" /> | ||
<link rel="apple-touch-icon" href="/apple-touch-icon-180x180.png" /> | ||
<title>Electromagnetic Field 2024 Map</title> | ||
</head> | ||
<body> | ||
<noscript>You need Javascript enabled to view this map.</noscript> | ||
<div id="map"> | ||
<header> | ||
<h1>Electromagnetic Field 2024</h1> | ||
<div id="subtitle">Eastnor Castle Deer Park, Herefordshire, UK</div> | ||
</header> | ||
</div> | ||
<div id="distance" class="distance-container"></div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"folders": [ | ||
{ | ||
"path": ".." | ||
}, | ||
{ | ||
"path": "../../buildmap" | ||
} | ||
], | ||
"settings": {} | ||
} |
Oops, something went wrong.