liftie 4.2.8 → 4.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Makefile +3 -6
- package/lib/resorts/eldora/resort.json +0 -1
- package/lib/routes/index.js +2 -2
- package/package.json +1 -2
- package/public/stylesheets/style.css +751 -678
- package/public/stylesheets/style.styl.css +937 -0
- package/views/about-section.jade +1 -1
- package/views/index.jade +2 -6
- package/views/layout.jade +3 -1
- package/public/stylesheets/about.styl +0 -31
- package/public/stylesheets/icons.styl +0 -78
- package/public/stylesheets/style.styl +0 -546
- package/public/stylesheets/tags.styl +0 -50
- package/public/stylesheets/weather.styl +0 -136
package/Makefile
CHANGED
|
@@ -52,16 +52,13 @@ all: lint test build
|
|
|
52
52
|
%.gz: %
|
|
53
53
|
gzip --best --force --keep $<
|
|
54
54
|
|
|
55
|
-
%.styl.css: %.styl
|
|
56
|
-
$(NODE_BIN)/stylus $<
|
|
57
|
-
|
|
58
55
|
%.css: %.styl.css
|
|
59
56
|
$(NODE_BIN)/postcss \
|
|
60
57
|
--use postcss-cachify \
|
|
61
58
|
--postcss-cachify.baseUrl /stylesheets \
|
|
62
59
|
--postcss-cachify.basePath public \
|
|
63
60
|
--postcss-cachify.format name \
|
|
64
|
-
--output $@
|
|
61
|
+
--output $@ $<
|
|
65
62
|
|
|
66
63
|
%.min.css: %.css
|
|
67
64
|
$(NODE_BIN)/esbuild \
|
|
@@ -81,10 +78,10 @@ node_modules: package.json pnpm-lock.yaml
|
|
|
81
78
|
.NOTPARALLEL: node_modules
|
|
82
79
|
|
|
83
80
|
lint: | node_modules
|
|
84
|
-
$(NODE_BIN)/biome ci
|
|
81
|
+
$(NODE_BIN)/biome ci
|
|
85
82
|
|
|
86
83
|
format: | node_modules
|
|
87
|
-
$(NODE_BIN)/biome check --write
|
|
84
|
+
$(NODE_BIN)/biome check --write
|
|
88
85
|
|
|
89
86
|
test: | node_modules
|
|
90
87
|
node --test $(TESTS)
|
package/lib/routes/index.js
CHANGED
|
@@ -146,7 +146,7 @@ function api(req, res, next) {
|
|
|
146
146
|
}
|
|
147
147
|
// do not cache API responses
|
|
148
148
|
res.setHeader('Cache-Control', 'no-cache, max-age=0, must-revalidate');
|
|
149
|
-
res.setHeader('Content-Type', 'application/json');
|
|
149
|
+
res.setHeader('Content-Type', 'application/json;charset=UTF-8');
|
|
150
150
|
res.end(JSON.stringify(resorts[0]));
|
|
151
151
|
});
|
|
152
152
|
}
|
|
@@ -157,7 +157,7 @@ function meta(req, res, next) {
|
|
|
157
157
|
return next(err);
|
|
158
158
|
}
|
|
159
159
|
res.setHeader('Cache-Control', 'public, max-age=86400'); // good for 24hours
|
|
160
|
-
res.setHeader('Content-Type', 'application/json');
|
|
160
|
+
res.setHeader('Content-Type', 'application/json;charset==UTF-8');
|
|
161
161
|
res.end(JSON.stringify(resorts));
|
|
162
162
|
});
|
|
163
163
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "liftie",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.3.1",
|
|
4
4
|
"description": "Clean, simple, easy to read, fast ski resort lift status",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|
|
@@ -58,7 +58,6 @@
|
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"@biomejs/biome": "2.4.0",
|
|
61
|
-
"@pirxpilot/stylus": "^1.2.0",
|
|
62
61
|
"commander": "~14",
|
|
63
62
|
"postcss": "~8",
|
|
64
63
|
"postcss-cachify": "^5.0.0",
|