liftie 4.0.1 → 4.0.3
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 +6 -0
- package/app.js +1 -1
- package/lib/client/resort/webcams.js +4 -4
- package/package.json +13 -13
- package/public/scripts/liftie.js +1462 -1430
- package/public/scripts/liftie.js.map +4 -4
- package/public/stylesheets/style.css +2 -2
- package/views/layout.jade +2 -2
package/Makefile
CHANGED
|
@@ -10,11 +10,14 @@ LINT_SRC = app.js bin/generate lib test
|
|
|
10
10
|
|
|
11
11
|
PLUGINS = lifts weather webcams snow
|
|
12
12
|
|
|
13
|
+
ESBUILD_FORMAT = esm
|
|
14
|
+
|
|
13
15
|
ESBUILD_OPTS += \
|
|
14
16
|
--bundle \
|
|
15
17
|
--log-level=warning \
|
|
16
18
|
--color=false \
|
|
17
19
|
--tree-shaking=true \
|
|
20
|
+
--format=${ESBUILD_FORMAT} \
|
|
18
21
|
--target=es2018
|
|
19
22
|
|
|
20
23
|
ESBUILD_MIN_OPTS += \
|
|
@@ -57,6 +60,7 @@ all: lint test build
|
|
|
57
60
|
--use postcss-cachify \
|
|
58
61
|
--postcss-cachify.baseUrl /stylesheets \
|
|
59
62
|
--postcss-cachify.basePath public \
|
|
63
|
+
--postcss-cachify.format name \
|
|
60
64
|
--output $@ $@
|
|
61
65
|
|
|
62
66
|
%.min.css: %.css
|
|
@@ -94,9 +98,11 @@ $(BUILD_DIR)/$(PROJECT).js: lib/client/boot/index.js $(SRC) node_modules | $(BUI
|
|
|
94
98
|
$(BUILD_DIR)/$(PROJECT).min.js: lib/client/boot/index.js $(SRC) node_modules | $(BUILD_DIR)
|
|
95
99
|
$(RUN_ESBUILD_MIN)
|
|
96
100
|
|
|
101
|
+
$(BUILD_DIR)/$(PROJECT)-embed.js: ESBUILD_FORMAT=iife
|
|
97
102
|
$(BUILD_DIR)/$(PROJECT)-embed.js: lib/embed/index.js | $(BUILD_DIR)
|
|
98
103
|
$(RUN_ESBUILD)
|
|
99
104
|
|
|
105
|
+
$(BUILD_DIR)/$(PROJECT)-embed.min.js: ESBUILD_FORMAT=iife
|
|
100
106
|
$(BUILD_DIR)/$(PROJECT)-embed.min.js: lib/embed/index.js | $(BUILD_DIR)
|
|
101
107
|
$(RUN_ESBUILD_MIN)
|
|
102
108
|
|
package/app.js
CHANGED
|
@@ -28,7 +28,7 @@ process.env.NODE_ENV ??= 'development';
|
|
|
28
28
|
const root = path.join(path.dirname(new URL(import.meta.url).pathname), 'public');
|
|
29
29
|
const { SITE_URL: siteUrl, LIFTIE_STATIC_HOST: staticHost = '' } = process.env;
|
|
30
30
|
|
|
31
|
-
const cachify = cachifyStatic(root);
|
|
31
|
+
const cachify = cachifyStatic(root, { format: 'name' });
|
|
32
32
|
|
|
33
33
|
app.locals = {
|
|
34
34
|
min: '.min',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import Swipe from '@pirxpilot/swipe';
|
|
2
|
+
import Pager from 'tiny-pager';
|
|
3
3
|
|
|
4
4
|
render.section = 1;
|
|
5
5
|
render.type = 'webcams';
|
|
@@ -8,8 +8,8 @@ const DELAY = 15 * 60 * 1000; // update every 15 minutes
|
|
|
8
8
|
|
|
9
9
|
function swiper(el) {
|
|
10
10
|
const ui = {
|
|
11
|
-
swipe:
|
|
12
|
-
pager:
|
|
11
|
+
swipe: new Swipe(el.swipe),
|
|
12
|
+
pager: new Pager(el.pager)
|
|
13
13
|
};
|
|
14
14
|
|
|
15
15
|
function refresh(count) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "liftie",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.3",
|
|
4
4
|
"description": "Clean, simple, easy to read, fast ski resort lift status",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|
|
@@ -28,24 +28,24 @@
|
|
|
28
28
|
"test": "make lint test"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@pirxpilot/connect": "^
|
|
31
|
+
"@pirxpilot/connect": "^5.0.0",
|
|
32
32
|
"@pirxpilot/cookie-parser": "~2",
|
|
33
33
|
"@pirxpilot/jade-core": "^1.12.1",
|
|
34
34
|
"@pirxpilot/k": "^1.0.0",
|
|
35
|
-
"@pirxpilot/router": "
|
|
36
|
-
"@pirxpilot/swipe": "^
|
|
37
|
-
"connect-cachify-static": "
|
|
38
|
-
"connect-gzip-static": "
|
|
39
|
-
"connect-renderer": "^
|
|
40
|
-
"css-select": "~
|
|
41
|
-
"debounce": "^
|
|
35
|
+
"@pirxpilot/router": "~2",
|
|
36
|
+
"@pirxpilot/swipe": "^3.0.0",
|
|
37
|
+
"connect-cachify-static": "~5",
|
|
38
|
+
"connect-gzip-static": "~5",
|
|
39
|
+
"connect-renderer": "^2.0.0",
|
|
40
|
+
"css-select": "~6",
|
|
41
|
+
"debounce": "^3.0.0",
|
|
42
42
|
"debug": "~4",
|
|
43
43
|
"domelementtype": "^2.3.0",
|
|
44
44
|
"domhandler": "~5",
|
|
45
45
|
"dynload": "^1.0.2",
|
|
46
46
|
"el-component": "~2",
|
|
47
47
|
"errorhandler": "^1.5.0",
|
|
48
|
-
"esbuild": "^0.
|
|
48
|
+
"esbuild": "^0.27.1",
|
|
49
49
|
"htmlparser2": "~10",
|
|
50
50
|
"js-cookie": "^3.0.5",
|
|
51
51
|
"limiter": "~3",
|
|
@@ -54,15 +54,15 @@
|
|
|
54
54
|
"parseurl": "^1.3.3",
|
|
55
55
|
"qs": "^6.13.1",
|
|
56
56
|
"ro-rating": "~2",
|
|
57
|
-
"tiny-pager": "^
|
|
57
|
+
"tiny-pager": "^2.0.0",
|
|
58
58
|
"to-title-case": "^1.0.0"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
|
-
"@biomejs/biome": "2.
|
|
61
|
+
"@biomejs/biome": "2.3.8",
|
|
62
62
|
"@pirxpilot/stylus": "^1.2.0",
|
|
63
63
|
"commander": "~14",
|
|
64
64
|
"postcss": "~8",
|
|
65
|
-
"postcss-cachify": "^
|
|
65
|
+
"postcss-cachify": "^5.0.0",
|
|
66
66
|
"postcss-cli-simple": "~4.0.0",
|
|
67
67
|
"prompt": "~1",
|
|
68
68
|
"undici": "^7.10.0"
|