Skip to content

Commit a0c0172

Browse files
committed
DT-6579 walttitest theme
1 parent cd37cfe commit a0c0172

5 files changed

Lines changed: 37 additions & 1 deletion

File tree

server/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ app.use('/api/graphql', (req, res, next) => {
7272
});
7373

7474
app.get('/api/geocoding/:endpoint', (req, res, next) => {
75-
const endpoint = `/geocoding/v1/${req.params.endpoint}`;
75+
const endpoint = `geocoding/v1/${req.params.endpoint}`;
7676
const url = `${baseurl}/${endpoint}?${req._parsedUrl.query}&${apiSubscriptionParameter}`;
7777

7878
axiosPoolForApi

src/monitorConfig.js

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,4 +218,32 @@ export default {
218218
inUse: true,
219219
},
220220
},
221+
walttitest: {
222+
name: 'walttitest',
223+
uri: 'routing/v2/waltti-alt/gtfs/v1',
224+
feedIds: ['WalttiTest'],
225+
colors: {
226+
primary: '#E10669',
227+
monitorBackground: '#E10669',
228+
},
229+
modeIcons: {
230+
colors: {
231+
'mode-bus': '#E10669',
232+
'mode-bus-express': '#E10669',
233+
'mode-bus-local': '#E10669',
234+
'mode-rail': '#E10669',
235+
'mode-tram': '#E10669',
236+
'mode-ferry': '#E10669',
237+
'mode-subway': '#E10669',
238+
},
239+
},
240+
login: {
241+
inUse: true,
242+
frontPageContent: 'front-page-paragraph-waltti',
243+
favourites: false,
244+
},
245+
map: {
246+
inUse: true,
247+
},
248+
},
221249
};

src/ui/logo/Logo.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ const Logo: FC<ICommonProps> = props => {
4242
case 'oulu':
4343
logo = <OuluLogo />;
4444
break;
45+
case 'walttitest':
46+
logo = <OuluLogo />;
47+
break;
4548
default:
4649
break;
4750
}

src/util/getConfig.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ export const getConfig = () => {
1818
'jyvaskyla',
1919
'vaasa',
2020
'oulu',
21+
'walttitest',
2122
];
2223
if (env && allowedThemes.indexOf(env) > -1) {
2324
return mergeWith(defaultConfig, config[env], merger);
@@ -39,6 +40,8 @@ export const getConfig = () => {
3940
theme = 'oulu';
4041
} else if (domain.indexOf('osl') >= 0) {
4142
theme = 'oulu';
43+
} else if (domain.indexOf('waltti-test') >= 0) {
44+
theme = 'walttitest';
4245
} else {
4346
theme = 'hsl';
4447
}
@@ -52,4 +55,5 @@ export const getDomainIdentifierForTheme = {
5255
jyvaskyla: 'jyvaskyla',
5356
vaasa: 'vaasa',
5457
oulu: 'oulu',
58+
walttitest: 'waltti-test',
5559
};

src/util/getResources.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,7 @@ export function getLoginUri(configName) {
192192
case 'jyvaskyla':
193193
case 'vaasa':
194194
case 'oulu':
195+
case 'walttitest':
195196
return 'waltti-login';
196197
case 'hsl':
197198
return 'hsl-login?url=/&';

0 commit comments

Comments
 (0)