Skip to content

Commit ca22577

Browse files
TheSkormbismurphyxssfoxargilo
authored
Meow meow meow - release the colours! (projecthorus#345)
Co-authored-by: bismurphy <[email protected]> Co-authored-by: xssfox <[email protected]> Co-authored-by: Clayton Smith <[email protected]>
1 parent 742876b commit ca22577

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+465
-214
lines changed

β€Ž.gitignoreβ€Ž

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
*.swp
22
*.pyc
33
*.log
4-
js/mobile.js
5-
js/init_plot.js
6-
js/version.json
7-
css/mobile.css
4+
/index.html
5+
/js/version.json
86
cache.manifest
9-
tiles/
7+
tiles/

β€ŽDEVELOPER_README.mdβ€Ž

Lines changed: 1 addition & 1 deletion

β€ŽDockerfileβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
FROM alpine:latest
22

3-
RUN apk add --no-cache python3 openjdk11 sed git
3+
RUN apk add --no-cache python3 sed git
44

55
WORKDIR /app
66
ADD . .

β€ŽREADME.mdβ€Ž

Lines changed: 0 additions & 2 deletions

β€Žbuild.shβ€Ž

Lines changed: 5 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,18 @@
11
#!/bin/bash
22

3-
# compile stylesheet
4-
echo -n "Compiling CSS... "
5-
cd css
6-
rm -f mobile.css
7-
cat base.css skeleton.css layout.css habitat-font.css main.css leaflet.css leaflet.fullscreen.css skewt.css > mobile.tmp
8-
java -jar "../tools/yuicompressor-2.4.8.jar" --type=css mobile.tmp > mobile.css
9-
rm -f mobile.tmp
10-
cd ..
11-
echo "Done!"
12-
13-
#compile javascript
14-
echo -n "Compiling JavaScript... "
15-
cd js
16-
rm -f mobile.js init_plot.js
17-
# precompiled libs
18-
cat jquery* >> mobile.js
3+
set -e
194

205
VERSION="`git rev-parse --short HEAD`"
21-
226
BUILD_DATE="`date -u +%Y-%m-%dT%H:%M:%SZ`"
237

24-
# compile the rest
25-
java -jar "../tools/yuicompressor-2.4.8.jar" --type=js --disable-optimizations --nomunge iscroll.js >> mobile.js
26-
java -jar "../tools/yuicompressor-2.4.8.jar" --type=js --disable-optimizations --nomunge chasecar.lib.js | sed "s/{VER}/$VERSION/" >> mobile.js
27-
java -jar "../tools/yuicompressor-2.4.8.jar" --type=js --disable-optimizations --nomunge tracker.js >> mobile.js
28-
java -jar "../tools/yuicompressor-2.4.8.jar" --type=js --disable-optimizations --nomunge app.js | sed "s/{VER}/$VERSION/" | sed "s/{BUILD_DATE}/$BUILD_DATE/" >> mobile.js
29-
java -jar "../tools/yuicompressor-2.4.8.jar" --type=js --disable-optimizations --nomunge colour-map.js >> mobile.js
30-
java -jar "../tools/yuicompressor-2.4.8.jar" --type=js --disable-optimizations --nomunge xdata.js >> mobile.js
31-
java -jar "../tools/yuicompressor-2.4.8.jar" --type=js --disable-optimizations --nomunge station.js >> mobile.js
32-
java -jar "../tools/yuicompressor-2.4.8.jar" --type=js --disable-optimizations --nomunge format.js >> mobile.js
33-
34-
#compile plot lib and config
35-
java -jar "../tools/yuicompressor-2.4.8.jar" --type=js --disable-optimizations --nomunge _jquery.flot.js >> init_plot.js
36-
java -jar "../tools/yuicompressor-2.4.8.jar" --type=js --disable-optimizations --nomunge plot_config.js >> init_plot.js
37-
388
# create version check file
39-
echo "{\"build_date\": \"$BUILD_DATE\", \"version\": \"$VERSION\", \"refresh\": 86400}" > version.json
40-
41-
cd ..
9+
echo -n "Generating js/version.json... "
10+
echo "{\"build_date\": \"$BUILD_DATE\", \"version\": \"$VERSION\", \"refresh\": 86400}" > js/version.json
4211
echo "Done!"
4312

4413
# cache fixes
45-
sed -i'' "s/{VER}/$VERSION/" index.html
46-
sed -i'' "s/{VER}/$VERSION/" service-worker.js
47-
14+
echo -n "Generating index.html... "
15+
sed -e "s/{VER}/$VERSION/" -e "s/{BUILD_DATE}/$BUILD_DATE/" index.template.html > index.html
4816
echo "Done!"
4917

5018
echo "Build version: $VERSION Build date: $BUILD_DATE"
-5.92 KB
Binary file not shown.

β€Žimg/markers/balloon-blue.pngβ€Ž

-10.7 KB
Binary file not shown.

β€Žimg/markers/balloon-buzz.pngβ€Ž

-7.6 KB
Binary file not shown.

β€Žimg/markers/balloon-cyan.pngβ€Ž

-10.7 KB
Binary file not shown.
-10.7 KB
Binary file not shown.

0 commit comments

Comments
Β (0)