gtfs-to-html 2.9.8 → 2.9.10
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/README.md +1 -0
- package/dist/app/index.js +15 -3
- package/dist/app/index.js.map +1 -1
- package/dist/bin/gtfs-to-html.js +13 -4
- package/dist/bin/gtfs-to-html.js.map +1 -1
- package/dist/index.js +13 -4
- package/dist/index.js.map +1 -1
- package/package.json +7 -6
- package/views/default/css/overview_styles.css +2 -2
- package/views/default/css/timetable_styles.css +17 -9
- package/views/default/formatting_functions.pug +17 -2
- package/views/default/js/timetable-alerts.js +34 -15
- package/views/default/js/timetable-map.js +75 -11
- package/views/default/timetablepage_full.pug +2 -1
package/README.md
CHANGED
|
@@ -79,6 +79,7 @@ Many transit agencies use `gtfs-to-html` to generate the schedule pages used on
|
|
|
79
79
|
- [Palo Verde Valley Transit Agency](http://pvvta.com)
|
|
80
80
|
- [Petaluma Transit](http://transit.cityofpetaluma.net)
|
|
81
81
|
- [Rogue Valley Transportation District (Medford, OR)](https://rvtd.org)
|
|
82
|
+
- [rabbittransit (York and Adams County, PA)](https://www.rabbittransit.org)
|
|
82
83
|
- [RTC Washoe (Reno, NV)](https://www.rtcwashoe.com)
|
|
83
84
|
- [Santa Barbara Metropolitan Transit District](https://sbmtd.gov)
|
|
84
85
|
- [Sonoma County Transit](http://sctransit.com)
|
package/dist/app/index.js
CHANGED
|
@@ -376,7 +376,7 @@ function getAgencyGeoJSON(config2) {
|
|
|
376
376
|
}
|
|
377
377
|
|
|
378
378
|
// package.json
|
|
379
|
-
var version = "2.9.
|
|
379
|
+
var version = "2.9.10";
|
|
380
380
|
|
|
381
381
|
// src/lib/utils.ts
|
|
382
382
|
var isTimepoint = (stoptime) => {
|
|
@@ -1354,8 +1354,11 @@ function setDefaultConfig(initialConfig) {
|
|
|
1354
1354
|
config2.noHead = false;
|
|
1355
1355
|
config2.menuType = "none";
|
|
1356
1356
|
}
|
|
1357
|
-
config2.
|
|
1358
|
-
(agency) => agency.
|
|
1357
|
+
config2.hasGtfsRealtimeVehiclePositions = config2.agencies.some(
|
|
1358
|
+
(agency) => agency.realtimeVehiclePositions?.url
|
|
1359
|
+
);
|
|
1360
|
+
config2.hasGtfsRealtimeTripUpdates = config2.agencies.some(
|
|
1361
|
+
(agency) => agency.realtimeTripUpdates?.url
|
|
1359
1362
|
);
|
|
1360
1363
|
config2.hasGtfsRealtimeAlerts = config2.agencies.some(
|
|
1361
1364
|
(agency) => agency.realtimeAlerts?.url
|
|
@@ -1893,6 +1896,15 @@ app.use(
|
|
|
1893
1896
|
dirname2(fileURLToPath2(import.meta.resolve("gtfs-realtime-pbf-js-module")))
|
|
1894
1897
|
)
|
|
1895
1898
|
);
|
|
1899
|
+
app.use(
|
|
1900
|
+
"/js",
|
|
1901
|
+
express.static(
|
|
1902
|
+
join2(
|
|
1903
|
+
dirname2(fileURLToPath2(import.meta.resolve("anchorme"))),
|
|
1904
|
+
"../../dist/browser"
|
|
1905
|
+
)
|
|
1906
|
+
)
|
|
1907
|
+
);
|
|
1896
1908
|
app.use("/", router);
|
|
1897
1909
|
app.set("port", process.env.PORT || 3e3);
|
|
1898
1910
|
var server = app.listen(app.get("port"), () => {
|