From 7a3d26531245b182cf42cb78e34cb4fe84dfb799 Mon Sep 17 00:00:00 2001 From: sharhio Date: Wed, 2 Aug 2023 15:22:23 +0300 Subject: [PATCH 1/3] feat: dt-5924 Lahti city bikes --- app/configurations/config.lahti.js | 33 ++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/app/configurations/config.lahti.js b/app/configurations/config.lahti.js index 2079fd41ef..b66d03dfbc 100644 --- a/app/configurations/config.lahti.js +++ b/app/configurations/config.lahti.js @@ -1,5 +1,6 @@ /* eslint-disable prefer-template */ import configMerger from '../util/configMerger'; +import { BIKEAVL_WITHMAX } from '../util/citybikes'; const CONFIG = 'lahti'; const APP_TITLE = 'LSL reittiopas'; @@ -144,4 +145,36 @@ export default configMerger(walttiConfig, { vehicles: true, showVehiclesOnStopPage: true, showVehiclesOnSummaryPage: true, + + transportModes: { + citybike: { + availableForSelection: true, + }, + }, + + cityBike: { + networks: { + freebike_lahti: { + enabled: true, + season: { + // 24.4. - 17.11. + start: new Date(new Date().getFullYear(), 3, 24), + end: new Date(new Date().getFullYear(), 10, 18), + }, + capacity: BIKEAVL_WITHMAX, + icon: 'citybike', + name: { + fi: 'Mankeli', + sv: 'Mankeli', + en: 'Mankeli', + }, + type: 'citybike', + url: { + fi: 'https://kaupunkipyorat.lahti.fi/', + sv: 'https://kaupunkipyorat.lahti.fi/?lang=2', + en: 'https://kaupunkipyorat.lahti.fi/?lang=19', + }, + }, + }, + }, }); From ec2690964678828ce9bff801b5f664bc98188731 Mon Sep 17 00:00:00 2001 From: sharhio Date: Wed, 2 Aug 2023 16:39:51 +0300 Subject: [PATCH 2/3] feat: dt-5924 lahti city bike icon color --- app/configurations/config.lahti.js | 1 + 1 file changed, 1 insertion(+) diff --git a/app/configurations/config.lahti.js b/app/configurations/config.lahti.js index b66d03dfbc..9b3a2765be 100644 --- a/app/configurations/config.lahti.js +++ b/app/configurations/config.lahti.js @@ -21,6 +21,7 @@ export default configMerger(walttiConfig, { primary: '#0066B3', iconColors: { 'mode-bus': '#0066B3', + 'mode-citybike': '#f2b62d', }, }, From 6758377a74e9453dc134db9dc830a4a3eb2d29fb Mon Sep 17 00:00:00 2001 From: sharhio Date: Thu, 3 Aug 2023 11:23:00 +0300 Subject: [PATCH 3/3] feat: dt-5924 show available bikes only --- app/configurations/config.lahti.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/configurations/config.lahti.js b/app/configurations/config.lahti.js index 9b3a2765be..86f841fc59 100644 --- a/app/configurations/config.lahti.js +++ b/app/configurations/config.lahti.js @@ -1,6 +1,6 @@ /* eslint-disable prefer-template */ import configMerger from '../util/configMerger'; -import { BIKEAVL_WITHMAX } from '../util/citybikes'; +import { BIKEAVL_BIKES } from '../util/citybikes'; const CONFIG = 'lahti'; const APP_TITLE = 'LSL reittiopas'; @@ -162,7 +162,7 @@ export default configMerger(walttiConfig, { start: new Date(new Date().getFullYear(), 3, 24), end: new Date(new Date().getFullYear(), 10, 18), }, - capacity: BIKEAVL_WITHMAX, + capacity: BIKEAVL_BIKES, icon: 'citybike', name: { fi: 'Mankeli',