Skip to content

Commit c7534c0

Browse files
authored
Merge pull request #7 from Yeggstry/feat-performance-improvements
feat: performance and build improvements, shard jumps for +Delta Denpasar and Cambridge
2 parents f9f30ff + daacb91 commit c7534c0

25 files changed

+17100
-198211
lines changed

.github/workflows/deploy.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- "feat-*"
8+
9+
permissions:
10+
id-token: write
11+
pages: write
12+
contents: read
13+
14+
jobs:
15+
build_and_deploy:
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- name: Checkout code
20+
uses: actions/checkout@v4
21+
22+
- name: Set up Python
23+
uses: actions/setup-python@v2
24+
with:
25+
python-version: "3.x"
26+
27+
- name: Install dependencies
28+
run: |
29+
python -m pip install --upgrade pip
30+
pip install -r requirements.txt
31+
32+
- name: Setup Node.js
33+
uses: actions/setup-node@v4
34+
with:
35+
node-version: "20"
36+
37+
- name: Install dependencies
38+
run: npm install
39+
40+
- name: Build project
41+
run: npm run build
42+
43+
- name: Upload Pages Artifact
44+
uses: actions/upload-pages-artifact@v3
45+
with:
46+
path: "./dist"
47+
48+
- name: Deploy to GitHub Pages
49+
id: deployment
50+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
1-
cache.sqlite
1+
cache.sqlite
2+
3+
/data
4+
/dist
5+
/node_modules
6+
/venv

README.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,23 @@
22

33
Leaflet map of Ingress shard jump JSON
44

5-
[<img src="screenshot.png">](https://neon-ninja.github.io/shards)
5+
[<img src="src/assets/screenshot.png">](https://neon-ninja.github.io/shards)
6+
7+
Distances are calculated with the [Haversine formula](https://rosettacode.org/wiki/Haversine_formula), using the Mean Earth Radius (6371km).
8+
9+
The colour of each portal is based on the last relevant action which occurred at that portal. This is either:
10+
11+
- The same colour of the last link which the shard jumped along.
12+
- The colour of the portal when the shard spawned (may be neutral).
13+
14+
Portal alignment at the time a shard despawns is deemed to be not relevant for display, however it is included in the history (hover over portal).
15+
16+
## Adding data to project
17+
18+
In order to ensure that new data is processed by the scripts for display on the map, the following changes are required to the project:
19+
20+
- Add shard jump times file to the _jump-times_ folder.
21+
- Add a new entry to the _src/js/shard-series-metadata.json_ array, including the series name (to be displayed in the drop-down box), and the filename.
22+
- (_Optional_) Add the Season Overview URL to the array of URLs at the top of _scripts/geocode.py_ if required.
23+
- (_Optional_) Add the file name to the _anomaly_jump_files_ in _scripts/geocode.py_ if the new file contains anomalies.
24+
- (_Optional_) Add the Anomaly series name to _src/js/data/shard-data-processor.js_ if the new file contains anomalies.

0 commit comments

Comments
 (0)