gtfs-to-html 2.6.11 → 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 +6 -0
- package/package.json +3 -3
- package/public/css/overview_styles.css +91 -136
- package/public/css/timetable_styles.css +161 -217
- package/public/js/system-map.js +33 -23
- package/public/js/timetable-map.js +32 -27
- package/views/default/formatting_functions.pug +10 -2
- package/views/default/overview.pug +10 -11
- 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/www/docs/custom-templates.md +1 -3
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,12 @@ 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
|
+
|
|
8
14
|
## [2.6.11] - 2024-07-24
|
|
9
15
|
|
|
10
16
|
### 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": [
|
|
@@ -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,7 +61,7 @@
|
|
|
61
61
|
"yoctocolors": "^2.1.1"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
|
-
"husky": "^9.1.
|
|
64
|
+
"husky": "^9.1.3",
|
|
65
65
|
"lint-staged": "^15.2.7",
|
|
66
66
|
"prettier": "^3.3.3"
|
|
67
67
|
},
|
|
@@ -36,7 +36,59 @@ a:hover {
|
|
|
36
36
|
|
|
37
37
|
/* Overview styles */
|
|
38
38
|
|
|
39
|
-
|
|
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 {
|
|
40
92
|
min-width: 34px;
|
|
41
93
|
height: 34px;
|
|
42
94
|
border-radius: 17px;
|
|
@@ -45,9 +97,11 @@ a:hover {
|
|
|
45
97
|
font-size: 14px;
|
|
46
98
|
letter-spacing: -0.5px;
|
|
47
99
|
padding: 0 5px;
|
|
100
|
+
flex: none;
|
|
101
|
+
flex-shrink: 0;
|
|
48
102
|
}
|
|
49
103
|
|
|
50
|
-
.route-color-swatch-large {
|
|
104
|
+
.timetable-overview .route-color-swatch-large {
|
|
51
105
|
min-width: 46px;
|
|
52
106
|
height: 46px;
|
|
53
107
|
border-radius: 23px;
|
|
@@ -57,9 +111,11 @@ a:hover {
|
|
|
57
111
|
font-weight: bold;
|
|
58
112
|
letter-spacing: -1px;
|
|
59
113
|
padding: 0 6px;
|
|
114
|
+
flex: none;
|
|
115
|
+
flex-shrink: 0;
|
|
60
116
|
}
|
|
61
117
|
|
|
62
|
-
.btn-blue {
|
|
118
|
+
.timetable-overview .btn-blue {
|
|
63
119
|
color: rgb(255 255 255);
|
|
64
120
|
padding: 0.75rem 2rem;
|
|
65
121
|
background-color: rgb(37 99 235);
|
|
@@ -71,172 +127,71 @@ a:hover {
|
|
|
71
127
|
text-decoration: none;
|
|
72
128
|
}
|
|
73
129
|
|
|
74
|
-
.btn-blue:hover {
|
|
130
|
+
.timetable-overview .btn-blue:hover {
|
|
75
131
|
background-color: rgb(29 78 216);
|
|
76
132
|
text-decoration: none;
|
|
77
133
|
}
|
|
78
134
|
|
|
79
|
-
.btn-sm {
|
|
135
|
+
.timetable-overview .btn-sm {
|
|
80
136
|
padding: 0.25rem 1rem;
|
|
81
137
|
border-radius: 0.25rem;
|
|
82
138
|
}
|
|
83
139
|
|
|
84
|
-
.
|
|
85
|
-
margin-right: 0.25rem;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
.mx-4 {
|
|
89
|
-
margin-left: 1rem;
|
|
90
|
-
margin-right: 1rem;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
.mb-2 {
|
|
94
|
-
margin-bottom: 0.5rem;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
.block {
|
|
98
|
-
display: block;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
.flex {
|
|
102
|
-
display: flex;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
.inline-flex {
|
|
140
|
+
.timetable-overview .badge-gray {
|
|
106
141
|
display: inline-flex;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
.h-full {
|
|
110
|
-
height: 100%;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
.h-screen {
|
|
114
|
-
height: 100vh;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
.w-full {
|
|
118
|
-
width: 100%;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
.flex-none {
|
|
122
|
-
flex: none;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
.items-center {
|
|
126
142
|
align-items: center;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
.items-stretch {
|
|
130
|
-
align-items: stretch;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
.justify-center {
|
|
134
143
|
justify-content: center;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
.gap-2 {
|
|
138
|
-
gap: 0.5rem;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
.rounded-full {
|
|
142
|
-
border-radius: 9999px;
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
.border-b {
|
|
146
|
-
border-bottom-width: 1px;
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
.border-slate-200 {
|
|
150
|
-
border-color: rgb(226 232 240);
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
.bg-slate-200 {
|
|
154
|
-
background-color: rgb(226 232 240);
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
.p-2 {
|
|
158
|
-
padding: 0.5rem;
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
.px-2 {
|
|
162
144
|
padding-left: 0.5rem;
|
|
163
145
|
padding-right: 0.5rem;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
.py-1 {
|
|
167
146
|
padding-top: 0.25rem;
|
|
168
147
|
padding-bottom: 0.25rem;
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
.py-3 {
|
|
172
|
-
padding-top: 0.75rem;
|
|
173
|
-
padding-bottom: 0.75rem;
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
.text-2xl {
|
|
177
|
-
font-size: 1.5rem;
|
|
178
|
-
line-height: 2rem;
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
.text-xl {
|
|
182
|
-
font-size: 1.25rem;
|
|
183
|
-
line-height: 1.75rem;
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
.text-xs {
|
|
187
148
|
font-size: 0.75rem;
|
|
188
|
-
line-height: 1rem;
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
.font-bold {
|
|
192
|
-
font-weight: 700;
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
.leading-none {
|
|
196
149
|
line-height: 1;
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
.text-slate-800 {
|
|
150
|
+
font-weight: 700;
|
|
200
151
|
color: rgb(30 41 59);
|
|
152
|
+
background-color: rgb(226 232 240);
|
|
153
|
+
border-radius: 9999px;
|
|
201
154
|
}
|
|
202
155
|
|
|
203
|
-
|
|
204
|
-
background-color: rgb(241 245 249);
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
.hover\:no-underline:hover {
|
|
208
|
-
text-decoration-line: none;
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
@media (min-width: 768px) {
|
|
212
|
-
.md\:flex {
|
|
213
|
-
display: flex;
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
.md\:max-w-96 {
|
|
217
|
-
max-width: 24rem;
|
|
218
|
-
}
|
|
156
|
+
/* Map Styles */
|
|
219
157
|
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
158
|
+
.overview-map {
|
|
159
|
+
height: 100%;
|
|
160
|
+
width: 100%;
|
|
223
161
|
}
|
|
224
162
|
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
.map .mapboxgl-popup-content .popup-title {
|
|
163
|
+
.overview-map .mapboxgl-popup-content .popup-title {
|
|
228
164
|
margin: 0 20px 5px 0;
|
|
229
165
|
font-size: 16px;
|
|
230
166
|
font-weight: bold;
|
|
231
167
|
}
|
|
232
168
|
|
|
233
|
-
.map .mapboxgl-popup-content .
|
|
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 {
|
|
234
178
|
display: flex;
|
|
235
179
|
align-items: center;
|
|
180
|
+
font-size: 0.75rem;
|
|
236
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;
|
|
237
192
|
}
|
|
238
193
|
|
|
239
|
-
.map .mapboxgl-popup-content .mapboxgl-popup-close-button {
|
|
194
|
+
.overview-map .mapboxgl-popup-content .mapboxgl-popup-close-button {
|
|
240
195
|
padding: 0 5px;
|
|
241
196
|
}
|
|
242
197
|
|