mirror of
https://github.com/HSLdevcom/digitransit-ui
synced 2026-02-01 04:30:37 +01:00
Configuration exposed a limited set of theme colors prefixes with 'mode-' to component libraries. Many parts of UI used either a hard coded color or incorrectly HSL theme color. Now all relevant colors can put into a general use color map and component can access them. First use case is near you mode icon row's expand arrow.
173 lines
4.3 KiB
JavaScript
173 lines
4.3 KiB
JavaScript
import configMerger from '../util/configMerger';
|
|
import { BIKEAVL_WITHMAX } from '../util/vehicleRentalUtils';
|
|
import walttiConfig from './config.waltti';
|
|
|
|
const CONFIG = 'kouvola';
|
|
const APP_TITLE = 'Kouvolan reittiopas';
|
|
const APP_DESCRIPTION = 'Kouvolan reittiopas';
|
|
|
|
const minLat = 60.574886232976134;
|
|
const maxLat = 61.2909051236272;
|
|
const minLon = 26.230533247455586;
|
|
const maxLon = 27.424811201273982;
|
|
|
|
export default configMerger(walttiConfig, {
|
|
CONFIG,
|
|
|
|
appBarLink: {
|
|
name: 'Kouvolan joukkoliikenne',
|
|
href: 'http://www.kouvolanbussit.fi',
|
|
},
|
|
|
|
colors: {
|
|
primary: '#000000',
|
|
bus: '#000000',
|
|
},
|
|
transportModes: {
|
|
bus: {
|
|
availableForSelection: true,
|
|
defaultValue: true,
|
|
},
|
|
citybike: {
|
|
availableForSelection: true,
|
|
},
|
|
},
|
|
|
|
nearYouModes: ['bus', 'citybike'],
|
|
|
|
vehicleRental: {
|
|
networks: {
|
|
donkey_kouvola: {
|
|
enabled: true,
|
|
season: {
|
|
start: '10.4',
|
|
end: '21.11',
|
|
},
|
|
capacity: BIKEAVL_WITHMAX,
|
|
icon: 'citybike',
|
|
name: {
|
|
fi: 'Kouvola',
|
|
sv: 'Kouvola',
|
|
en: 'Kouvola',
|
|
},
|
|
type: 'citybike',
|
|
url: {
|
|
fi: 'https://kaakau.fi/kouvola/',
|
|
sv: 'https://kaakau.fi/kouvola/?lang=sv',
|
|
en: 'https://kaakau.fi/kouvola/?lang=en',
|
|
},
|
|
returnInstructions: {
|
|
fi: 'https://kaakau.fi/ohjeet/pyoran-palauttaminen/',
|
|
sv: 'https://kaakau.fi/ohjeet/pyoran-palauttaminen/',
|
|
en: 'https://kaakau.fi/ohjeet/pyoran-palauttaminen/',
|
|
},
|
|
},
|
|
},
|
|
},
|
|
|
|
socialMedia: {
|
|
title: APP_TITLE,
|
|
description: APP_DESCRIPTION,
|
|
twitter: {
|
|
site: '@kouvolakaupunki',
|
|
},
|
|
image: {
|
|
url: 'img/social-share-kouvola.png',
|
|
width: 134,
|
|
height: 134,
|
|
},
|
|
},
|
|
|
|
title: APP_TITLE,
|
|
|
|
// Navbar logo
|
|
logo: 'kouvola/logo.png',
|
|
secondaryLogo: 'kouvola/secondary-logo.png',
|
|
|
|
favicon: './app/configurations/images/kouvola/kouvola-favicon.png',
|
|
|
|
feedIds: ['Kouvola'],
|
|
|
|
searchParams: {
|
|
'boundary.rect.min_lat': minLat,
|
|
'boundary.rect.max_lat': maxLat,
|
|
'boundary.rect.min_lon': minLon,
|
|
'boundary.rect.max_lon': maxLon,
|
|
},
|
|
|
|
areaPolygon: [
|
|
[minLon, minLat],
|
|
[minLon, maxLat],
|
|
[maxLon, maxLat],
|
|
[maxLon, minLat],
|
|
],
|
|
|
|
defaultEndpoint: {
|
|
address: 'Matkakeskus, Kouvola',
|
|
lat: 60.86625189966643,
|
|
lon: 26.705328946745546,
|
|
},
|
|
|
|
menu: {
|
|
copyright: { label: `© Kouvola ${walttiConfig.YEAR}` },
|
|
content: [
|
|
{
|
|
name: 'menu-feedback',
|
|
href: {
|
|
fi: 'https://kartta.kouvola.fi/eFeedback/fi/Feedback/34-Joukkoliikenne',
|
|
sv: 'https://kartta.kouvola.fi/eFeedback/fi/Feedback/34-Joukkoliikenne',
|
|
en: 'https://kartta.kouvola.fi/eFeedback/en/Feedback/34-Joukkoliikenne',
|
|
},
|
|
},
|
|
{
|
|
name: 'about-this-service',
|
|
route: '/tietoja-palvelusta',
|
|
},
|
|
{
|
|
name: 'accessibility-statement',
|
|
href: {
|
|
fi: 'https://www.digitransit.fi/accessibility',
|
|
sv: 'https://www.digitransit.fi/accessibility',
|
|
en: 'https://www.digitransit.fi/en/accessibility',
|
|
},
|
|
},
|
|
],
|
|
},
|
|
|
|
aboutThisService: {
|
|
fi: [
|
|
{
|
|
header: 'Tietoja palvelusta',
|
|
paragraphs: [
|
|
'Tämän palvelun tarjoaa Kouvolan kaupungin joukkoliikenne reittisuunnittelua varten Kouvolan alueella. Palvelu kattaa joukkoliikenteen, kävelyn, pyöräilyn ja yksityisautoilun rajatuilta osin. Palvelu perustuu Digitransit-palvelualustaan.',
|
|
],
|
|
},
|
|
],
|
|
|
|
sv: [
|
|
{
|
|
header: 'Om tjänsten',
|
|
paragraphs: [
|
|
'Den här tjänsten erbjuds av Kouvola för reseplanering inom Kouvola region. Reseplaneraren täcker med vissa begränsningar kollektivtrafik, promenad, cykling samt privatbilism. Tjänsten baserar sig på Digitransit-plattformen.',
|
|
],
|
|
},
|
|
],
|
|
|
|
en: [
|
|
{
|
|
header: 'About this service',
|
|
paragraphs: [
|
|
'This service is provided by Kouvola city for local route planning in Kouvola region. The service covers public transport, walking, cycling, and some private car use. Service is built on Digitransit platform.',
|
|
],
|
|
},
|
|
],
|
|
},
|
|
zoneIdMapping: {
|
|
1: 'A',
|
|
2: 'B',
|
|
},
|
|
zones: {
|
|
stops: true,
|
|
itinerary: true,
|
|
},
|
|
});
|