This repository has been archived by the owner on Feb 21, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathconstants.js
215 lines (196 loc) · 4.47 KB
/
constants.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
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
export let FOREGROUND_COLOR = '#01AE97';
export let COLOR_1 = '#017a6a';
export let COLOR_2 = '#01574c';
export let COLOR_3 = '#00342d';
export let COLOR_4 = '#80d7cb';
export let COLOR_5 = '#AD1413';
export let COLOR_6 = '#0A6CAD';
export let COLOR_7 = '#AD6E13';
// Tints
export let TINT_70 = '#b3e7e0';
export let TINT_50 = '#80d7cb';
export let TINT_30 = '#4dc6b6';
export let COLOR = '#01AE97';
// Shades
export let SHADE_30 = '#017a6a';
export let SHADE_50 = '#01574c';
export let SHADE_70 = '#00342d';
// Square Complement
export let COMPLEMENT_1 = '#0A9DD1';
export let COMPLEMENT_2 = '#D11541';
export let COMPLEMENT_3 = '#D17615';
export let RESIZE_TRESHOLD = 1040;
export let lineChartCommon = {
fill: true,
lineTension: 0.5,
lineBorder: 1,
borderWidth: 3,
borderJoinStyle: 'miter',
pointBorderWidth: 1,
pointHoverRadius: 3,
pointHoverBorderWidth: 2,
pointRadius: 1,
pointHitRadius: 10,
};
export let lineChartCommon2 = {
fill: false,
lineTension: 0.5,
lineBorder: 1,
borderWidth: 3,
borderJoinStyle: 'miter',
pointBorderWidth: 0,
pointHoverRadius: 0,
pointHoverBorderWidth: 0,
pointRadius: 0,
pointHitRadius: 0,
};
export const REGIOES = {
MADEIRA: 'madeira',
PORTUGAL: 'portugal',
ACORES: 'ACORES',
};
export const ECDC_MAPPING = {
alentejo: 'PTCSR01',
algarve: 'PTCSR02',
acores: 'PTCSR03',
centro: 'PTCSR04',
lisboa: 'PTCSR05',
madeira: 'PTCSR06',
norte: 'PTCSR07',
portugal: 'PT',
PTCSR01: 'alentejo',
PTCSR02: 'algarve',
PTCSR03: 'acores',
PTCSR04: 'centro',
PTCSR05: 'lisboa',
PTCSR06: 'madeira',
PTCSR07: 'norte',
PT: 'portugal',
};
export const MADEIRA_DICOS = {
3101: 'calheta',
3102: 'camara_lobos',
3108: 'santa_cruz',
3201: 'porto_santo',
3106: 'porto_moniz',
3110: 'svincente',
3109: 'santana',
3105: 'ponta_sol',
3103: 'funchal',
3104: 'machico',
3107: 'ribeira_brava',
calheta: '3101',
camara_lobos: '3102',
santa_cruz: '3108',
porto_santo: '3201',
porto_moniz: '3106',
svincente: '3110',
santana: '3109',
ponta_sol: '3105',
funchal: '3103',
machico: '3104',
ribeira_brava: '3107',
};
export const ACORES_DICOS = {
49: 'corvo',
48: 'flores',
47: 'faial',
46: 'pico',
45: 'sao_jorge',
44: 'graciosa',
43: 'terceira',
42: 'sao_miguel',
41: 'santa_maria',
corvo: 49,
flores: 48,
faial: 47,
pico: 46,
sao_jorge: 45,
graciosa: 44,
terceira: 43,
sao_miguel: 42,
santa_maria: 41,
};
export const ACORES_DICOS_CONCELHOS = {
4901: 'corvo',
4802: 'flores',
4801: 'flores',
4701: 'faial',
4602: 'pico',
4603: 'pico',
4601: 'pico',
4501: 'sao_jorge',
4502: 'sao_jorge',
4401: 'graciosa',
4301: 'terceira',
4302: 'terceira',
4201: 'sao_miguel',
4202: 'sao_miguel',
4203: 'sao_miguel',
4204: 'sao_miguel',
4205: 'sao_miguel',
4206: 'sao_miguel',
4101: 'santa_maria',
};
export const ARS_MAPPING = {
alentejo: 'ARS Alentejo',
algarve: 'ARS Algarve',
lvt: 'ARS Lisboa e Vale do Tejo',
norte: 'ARS Norte',
centro: 'ARS Centro',
'ARS Alentejo': 'alentejo',
'ARS Algarve': 'algarve',
'ARS Lisboa e Vale do Tejo': 'lvt',
'ARS Norte': 'norte',
'ARS Centro': 'centro',
};
export const grades = [0, 20, 40, 60, 80];
export const grades_pretty = {
0: '0% a 19%',
20: '20% a 39%',
40: '40% a 59%',
60: '60% a 89%',
80: '80% a 100%',
};
export const SNS_WEEKS = {
'04-01-2021': '27/12 a 10/01',
'11-01-2021': '11/12 a 17/01',
'18-01-2021': '18/01 a 24/01',
'25-01-2021': '25/01 a 31/01',
'01-02-2021': '01/02 a 07/02',
'08-02-2021': '08/02 a 14/02',
'15-02-2021': '15/02 a 21/02',
'22-02-2021': '22/02 a 28/02',
'01-03-2021': '01/03 a 07/03',
'08-03-2021': '08/03 a 14/03',
'15-03-2021': '15/03 a 21/03',
'22-03-2021': '22/03 a 28/03',
'29-03-2021': '29/03 a 04/04',
'05-04-2021': '05/04 a 11/04',
'12-04-2021': '12/04 a 18/04',
'19-04-2021': '19/04 a 25/04',
'26-04-2021': '26/04 a 02/05',
'03-05-2021': '03/05 a 09/05',
'10-05-2021': '10/05 a 16/05',
'17-05-2021': '17/05 a 23/05',
'24-05-2021': '24/05 a 28/05',
'31-05-2021': '31/05 a 06/06',
'07-06-2021': '07/06 a 13/06',
'07-06-2021': '07/06 a 13/06',
'14-06-2021': '14/06 a 20/06',
'21-06-2021': '21/06 a 27/06',
'28-06-2021': '28/06 a 04/07',
'05-07-2021': '05/07 a 11/07',
'12-07-2021': '12/07 a 16/07',
'19-07-2021': '19/07 a 25/07',
'26-07-2021': '26/07 a 01/08',
'02-08-2021': '02/08 a 08/08',
'09-08-2021': '09/08 a 15/08',
'16-08-2021': '16/08 a 22/08',
'23-08-2021': '23/08 a 29/08',
'30-08-2021': '30/08 a 05/09',
'06-09-2021': '06/09 a 12/09',
'13-09-2021': '13/09 a 19/09',
'20-09-2021': '20/09 a 26/09',
'27-09-2021': '27/09 a 03/10',
};