Mario Zechner
23f512087e
Refactored and fix #55
...
- `readJson()` now just checks for the file extension to decide whether to uncompress instead of taking a flag.
- moved migration logic from index.js to analysis.js:migrateToGzip
- fixed `restore()` in analysis.js
- also calling `migrateToGzip()` in replay.js
- Fix billa canonicalization for Dossier data
- Fix spar canonicalization for Dossier data and data from 2022.
2023-06-02 18:34:14 +02:00
Mario Zechner
8bf0d65d89
Merge branch 'main' into compress-json
2023-06-02 16:56:22 +02:00
Mario Zechner
c6bbd0e03b
Increased maxWidth to 150 in prettier config, formatted all the things. See #52 .
2023-06-02 16:45:54 +02:00
Christian Tschugg
02bd7e5ff8
Compress raw data files on disk, fixes badlogic/heissepreise#51
2023-06-02 16:24:58 +02:00
Mario Zechner
1fec42bfe1
Fix scheduling of data fetch, do it daily at 7am instead of every 24h after launching the server.
2023-06-01 14:59:02 +02:00
Mario Zechner
dfc23499b4
Generate compressed files in pages.js
2023-05-30 15:46:10 +02:00
Christian Tschugg
0f5a08d723
Fetch canonical compressed in parallel
2023-05-30 13:09:27 +02:00
Mario Zechner
f26b5c3625
Closes #34
2023-05-30 10:34:25 +02:00
HannesOberreiter
f497f1259f
style: 🔥 remove unused variables
2023-05-29 16:06:47 +02:00
Mario Zechner
296d131877
No more need for an api dir
2023-05-27 20:13:08 +02:00
Mario Zechner
b93ebc1423
No more API, just a static file in site/
2023-05-26 09:16:26 +02:00
Mario Zechner
e11f9a999f
Merge pull request #20 from HannesOberreiter/bugfix-data
...
Bugfix missing data dir
2023-05-25 20:50:59 +02:00
HannesOberreiter
1c4dca9359
style: 🎨 add const for folder
2023-05-25 20:19:40 +02:00
HannesOberreiter
30215b163a
fix: 🐛 create data folder if not exists
2023-05-25 20:08:34 +02:00
Christian Tschugg
93353271c4
Allow custom port on startup
2023-05-25 17:09:46 +02:00
Mario Zechner
dda562675f
Add package.sh to create Windows/Linux/macOS apps. Closes #11 .
2023-05-23 14:24:32 +02:00
Mario Zechner
8f67580822
Add carts.
2023-05-19 16:01:43 +02:00
Mario Zechner
ab8f78f0e3
Fix hofer canonization, lazy loading, replay.
2023-05-18 21:15:42 +02:00
Mario Zechner
2e7b783739
Formatting. If latest-canonical.json exists, load it and serve data immediately.
2023-05-18 18:34:14 +02:00
Mario Zechner
d7b6f6f25f
Refactoring.
2023-05-17 16:17:45 +02:00
Mario Zechner
ed66d46c3f
Price change stats and site.
2023-05-16 15:56:46 +02:00
Mario Zechner
38bcb53bc8
Store price history.
2023-05-15 15:06:30 +02:00
Mario Zechner
acee87273b
Always fetch data on startup.
2023-05-15 14:47:38 +02:00
Mario Zechner
0cdd6dd4f1
Generate initial canonical data if it doesn't exist.
2023-05-15 14:30:23 +02:00
Mario Zechner
9afe998789
Initial commit.
2023-05-15 13:53:34 +02:00