-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.js
150 lines (140 loc) · 4.71 KB
/
variables.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
/**
* @typedef LanguageSpecificObject
* Object containing language specific paths.
*
* Example shows FI object for varaamo
* @example
* FI: {
* // path to final product
* DEST: 'build/varaamo/fi/',
* // base path
* ROOT: '/pages/varaamo/fi/',
* },
*/
/**
* @typedef ServiceSpecificObject
* Contains language specific objects + additional keys
* @see {@link LanguageSpecificObject} example of a language specific object
* @example
* FI:{},
* SV:{},
* EN:{}
* PAYMENT:{}
*/
/**
* @typedef MainObject
* Contains service specific objects
* @see {@link ServiceSpecificObject} example of service specific object.
* @see {@link LanguageSpecificObject} example of language specific object.
* @example
* VARAAMO:{},
* MONITORI:{}
*/
/**
* @typedef PlaceholderStringReplacement
* Contains placeholder string SRC that is replaced by a language specific url.
*
* Example uses FEEDBACK_URLS
* @example
* SRC: "<--feedback-->",
* FI: "https://opaskartta.turku.fi/eFeedback/fi/....",
* SV: "https://opaskartta.turku.fi/eFeedback/sv/...",
* EN: "https://opaskartta.turku.fi/eFeedback/en/...",
*/
export default {
/** @type {MainObject} **/
FILE_PATH: {
/** @see {@link ServiceSpecificObject} **/
VARAAMO: {
/** @type {LanguageSpecificObject} **/
FI: {
DEST: 'build/varaamo/fi/',
ROOT: '/pages/varaamo/fi/',
},
/** @type {LanguageSpecificObject} **/
SV: {
DEST: 'build/varaamo/sv/',
ROOT: '/pages/varaamo/sv/'
},
/** @type {LanguageSpecificObject} **/
EN: {
DEST: 'build/varaamo/en/',
ROOT: '/pages/varaamo/en/'
},
PAYMENT: {
ROOT: './pages/varaamo/payment/',
}
},
/** @see {@link ServiceSpecificObject} **/
MONITORI: {
/** @type {LanguageSpecificObject} **/
FI: {
DEST: 'build/monitori/fi/',
ROOT: '/pages/monitori/fi/'
},
/** @type {LanguageSpecificObject} **/
SV: {
DEST: 'build/monitori/sv/',
ROOT: '/pages/monitori/sv/',
},
/** @type {LanguageSpecificObject} **/
EN: {
DEST: 'build/monitori/en/',
ROOT: '/pages/monitori/en/',
}
},
/** @see {@link ServiceSpecificObject} **/
DIGINEUVOJA: {
/** @type {LanguageSpecificObject} **/
FI: {
DEST: 'build/digineuvoja/fi/',
ROOT: '/pages/digineuvoja/fi/'
},
/** @type {LanguageSpecificObject} **/
SV: {
DEST: 'build/digineuvoja/sv/',
ROOT: '/pages/digineuvoja/sv/',
},
/** @type {LanguageSpecificObject} **/
EN: {
DEST: 'build/digineuvoja/en/',
ROOT: '/pages/digineuvoja/en/',
}
}
},
/** @type {PlaceholderStringReplacement} **/
FEEDBACK_URLS: {
//this placeholder string is replaced by the correct one according to language
SRC: "<--feedback-->",
FI: "https://opaskartta.turku.fi/eFeedback/fi/Feedback/30-S%C3%A4hk%C3%B6iset%20asiointipalvelut",
SV: "https://opaskartta.turku.fi/eFeedback/sv/Feedback/30-S%C3%A4hk%C3%B6iset%20asiointipalvelut",
EN: "https://opaskartta.turku.fi/eFeedback/en/Feedback/30-S%C3%A4hk%C3%B6iset%20asiointipalvelut"
},
MAP_URLS: {
/** @type {PlaceholderStringReplacement} **/
SERVICE_MAP: {
//placeholder string that is replaced according to language specific value
SRC: "<--map_url-->",
FI: "https://palvelukartta.turku.fi/unit/",
SV: "https://servicekarta.turku.fi/unit/",
EN: "https://servicemap.turku.fi/",
}
},
LOGO_URLS: {
/** @type {PlaceholderStringReplacement} **/
TURKU: {
SRC: "<--turku_logo-->",
FI: "http://www.turku.fi/sites/default/files/styles/site_logo/public/sites/all/themes/custom/driveturku/images/sprites/logo.png",
SV: "http://www.turku.fi/sites/default/files/styles/site_logo/public/sites/all/themes/custom/driveturku/images/sprites/logo_sv.png",
EN: "http://www.turku.fi/sites/default/files/styles/site_logo/public/sites/all/themes/custom/driveturku/images/sprites/logo.png",
}
},
LOGO_ALTS: {
TURKU: {
SRC: "<--turku_logo_alt-->",
FI: "Turun vaakuna",
SV: "Åbo stadsvapen",
EN: "A picture of the coat of arms of the city of Turku."
}
}
};