gtfs-to-html 2.6.10 → 2.6.12
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/CHANGELOG.md +15 -0
- package/package.json +5 -5
- package/public/css/overview_styles.css +197 -0
- package/public/css/timetable_styles.css +289 -112
- package/public/js/system-map.js +37 -24
- package/public/js/timetable-map.js +36 -28
- package/public/js/timetable-menu.js +7 -13
- package/views/default/formatting_functions.pug +10 -2
- package/views/default/layout.pug +0 -5
- package/views/default/overview.pug +10 -12
- package/views/default/overview_full.pug +2 -0
- package/views/default/timetable_continuation_as.pug +3 -9
- package/views/default/timetable_continuation_from.pug +4 -10
- package/views/default/timetable_horizontal.pug +1 -1
- package/views/default/timetable_hourly.pug +5 -5
- package/views/default/timetable_menu.pug +46 -47
- package/views/default/timetable_stop_name.pug +1 -1
- package/views/default/timetable_vertical.pug +4 -4
- package/views/default/timetablepage.pug +54 -55
- package/views/default/timetablepage_full.pug +4 -0
- package/www/docs/custom-templates.md +1 -3
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,21 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [2.6.12] - 2024-07-26
|
|
9
|
+
|
|
10
|
+
### Updated
|
|
11
|
+
- Dependency updates
|
|
12
|
+
- Improved styles for default template
|
|
13
|
+
|
|
14
|
+
## [2.6.11] - 2024-07-24
|
|
15
|
+
|
|
16
|
+
### Updated
|
|
17
|
+
- Dependency updates
|
|
18
|
+
- Default template timetable styles
|
|
19
|
+
|
|
20
|
+
### Fixed
|
|
21
|
+
- Map route_text_color fix
|
|
22
|
+
|
|
8
23
|
## [2.6.10] - 2024-07-15
|
|
9
24
|
|
|
10
25
|
### Updated
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gtfs-to-html",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.12",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Build human readable transit timetables as HTML, PDF or CSV from GTFS",
|
|
6
6
|
"keywords": [
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"copy-dir": "^1.3.0",
|
|
43
43
|
"csv-stringify": "^6.5.0",
|
|
44
44
|
"express": "^4.19.2",
|
|
45
|
-
"gtfs": "^4.13.
|
|
45
|
+
"gtfs": "^4.13.1",
|
|
46
46
|
"insane": "^2.6.2",
|
|
47
47
|
"js-beautify": "^1.15.1",
|
|
48
48
|
"lodash-es": "^4.17.21",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"morgan": "^1.10.0",
|
|
52
52
|
"pretty-error": "^4.0.0",
|
|
53
53
|
"pug": "^3.0.3",
|
|
54
|
-
"puppeteer": "^22.
|
|
54
|
+
"puppeteer": "^22.14.0",
|
|
55
55
|
"sanitize-filename": "^1.6.3",
|
|
56
56
|
"sqlstring": "^2.3.3",
|
|
57
57
|
"timer-machine": "^1.1.0",
|
|
@@ -61,9 +61,9 @@
|
|
|
61
61
|
"yoctocolors": "^2.1.1"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
|
-
"husky": "^9.
|
|
64
|
+
"husky": "^9.1.3",
|
|
65
65
|
"lint-staged": "^15.2.7",
|
|
66
|
-
"prettier": "^3.3.
|
|
66
|
+
"prettier": "^3.3.3"
|
|
67
67
|
},
|
|
68
68
|
"engines": {
|
|
69
69
|
"node": ">= 20.11.0"
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
/* Base styles */
|
|
2
|
+
body {
|
|
3
|
+
color: #666;
|
|
4
|
+
font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
|
|
5
|
+
font-feature-settings: normal;
|
|
6
|
+
line-height: inherit;
|
|
7
|
+
margin: 0;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
*, ::before, ::after {
|
|
11
|
+
box-sizing: border-box;
|
|
12
|
+
border-width: 0;
|
|
13
|
+
border-style: solid;
|
|
14
|
+
border-color: #e5e7eb;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
h1,
|
|
18
|
+
h2,
|
|
19
|
+
h3,
|
|
20
|
+
h4,
|
|
21
|
+
h5,
|
|
22
|
+
h6 {
|
|
23
|
+
line-height: inherit;
|
|
24
|
+
font-weight: inherit;
|
|
25
|
+
color: #333;
|
|
26
|
+
margin: 0;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
a {
|
|
30
|
+
text-decoration: none;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
a:hover {
|
|
34
|
+
text-decoration: underline;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/* Overview styles */
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
.timetable-overview {
|
|
41
|
+
height: 100vh;
|
|
42
|
+
align-items: stretch;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
@media (min-width: 768px) {
|
|
46
|
+
.timetable-overview {
|
|
47
|
+
display: flex;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.timetable-overview h1 {
|
|
52
|
+
font-size: 1.5rem;
|
|
53
|
+
line-height: 2rem;
|
|
54
|
+
margin-left: 1rem;
|
|
55
|
+
margin-right: 1rem;
|
|
56
|
+
padding-top: 0.75rem;
|
|
57
|
+
padding-bottom: 0.75rem;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.timetable-overview .overview-list {
|
|
61
|
+
flex: none;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
@media (min-width: 768px) {
|
|
65
|
+
.timetable-overview .overview-list {
|
|
66
|
+
max-width: 24rem;
|
|
67
|
+
overflow-y: scroll;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.timetable-overview a.timetable-page-link {
|
|
72
|
+
display: flex;
|
|
73
|
+
align-items: center;
|
|
74
|
+
gap: 0.5rem;
|
|
75
|
+
border-bottom: 1px solid rgb(226 232 240);
|
|
76
|
+
text-decoration: none;
|
|
77
|
+
padding: 0.5rem;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.timetable-overview a.timetable-page-link:hover {
|
|
81
|
+
background-color: rgb(241 245 249);
|
|
82
|
+
text-decoration: none;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.timetable-overview a.timetable-page-link .timetable-page-label {
|
|
86
|
+
font-size: 1.25rem;
|
|
87
|
+
line-height: 1;
|
|
88
|
+
color: rgb(30 41 59)
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.timetable-overview .route-color-swatch {
|
|
92
|
+
min-width: 34px;
|
|
93
|
+
height: 34px;
|
|
94
|
+
border-radius: 17px;
|
|
95
|
+
text-align: center;
|
|
96
|
+
line-height: 34px;
|
|
97
|
+
font-size: 14px;
|
|
98
|
+
letter-spacing: -0.5px;
|
|
99
|
+
padding: 0 5px;
|
|
100
|
+
flex: none;
|
|
101
|
+
flex-shrink: 0;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.timetable-overview .route-color-swatch-large {
|
|
105
|
+
min-width: 46px;
|
|
106
|
+
height: 46px;
|
|
107
|
+
border-radius: 23px;
|
|
108
|
+
text-align: center;
|
|
109
|
+
line-height: 46px;
|
|
110
|
+
font-size: 20px;
|
|
111
|
+
font-weight: bold;
|
|
112
|
+
letter-spacing: -1px;
|
|
113
|
+
padding: 0 6px;
|
|
114
|
+
flex: none;
|
|
115
|
+
flex-shrink: 0;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.timetable-overview .btn-blue {
|
|
119
|
+
color: rgb(255 255 255);
|
|
120
|
+
padding: 0.75rem 2rem;
|
|
121
|
+
background-color: rgb(37 99 235);
|
|
122
|
+
border-radius: 0.375rem;
|
|
123
|
+
justify-content: center;
|
|
124
|
+
align-items: center;
|
|
125
|
+
display: inline-flex;
|
|
126
|
+
cursor: pointer;
|
|
127
|
+
text-decoration: none;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.timetable-overview .btn-blue:hover {
|
|
131
|
+
background-color: rgb(29 78 216);
|
|
132
|
+
text-decoration: none;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.timetable-overview .btn-sm {
|
|
136
|
+
padding: 0.25rem 1rem;
|
|
137
|
+
border-radius: 0.25rem;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.timetable-overview .badge-gray {
|
|
141
|
+
display: inline-flex;
|
|
142
|
+
align-items: center;
|
|
143
|
+
justify-content: center;
|
|
144
|
+
padding-left: 0.5rem;
|
|
145
|
+
padding-right: 0.5rem;
|
|
146
|
+
padding-top: 0.25rem;
|
|
147
|
+
padding-bottom: 0.25rem;
|
|
148
|
+
font-size: 0.75rem;
|
|
149
|
+
line-height: 1;
|
|
150
|
+
font-weight: 700;
|
|
151
|
+
color: rgb(30 41 59);
|
|
152
|
+
background-color: rgb(226 232 240);
|
|
153
|
+
border-radius: 9999px;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
/* Map Styles */
|
|
157
|
+
|
|
158
|
+
.overview-map {
|
|
159
|
+
height: 100%;
|
|
160
|
+
width: 100%;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.overview-map .mapboxgl-popup-content .popup-title {
|
|
164
|
+
margin: 0 20px 5px 0;
|
|
165
|
+
font-size: 16px;
|
|
166
|
+
font-weight: bold;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.overview-map .mapboxgl-popup-content .popup-label {
|
|
170
|
+
margin-right: 0.25rem;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.overview-map .mapboxgl-popup-content .route-list {
|
|
174
|
+
margin-bottom: 0.5rem;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.overview-map .mapboxgl-popup-content .map-route-item {
|
|
178
|
+
display: flex;
|
|
179
|
+
align-items: center;
|
|
180
|
+
font-size: 0.75rem;
|
|
181
|
+
line-height: 1;
|
|
182
|
+
margin-bottom: 0.5rem;
|
|
183
|
+
gap: 0.5rem;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.overview-map .mapboxgl-popup-content .map-route-item:hover {
|
|
187
|
+
text-decoration: none;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.overview-map .mapboxgl-popup-content a.map-route-item .underline-hover:hover {
|
|
191
|
+
text-decoration: underline;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
.overview-map .mapboxgl-popup-content .mapboxgl-popup-close-button {
|
|
195
|
+
padding: 0 5px;
|
|
196
|
+
}
|
|
197
|
+
|