Skip to content

Commit ec9c970

Browse files
committed
Merge branch 'dev' into main, symbolizing MEP 20220630_1
2 parents 41a1ad4 + 85ea263 commit ec9c970

4 files changed

+52
-31
lines changed

src/components/vmd-commune-or-departement-selector.component.scss

+2-1
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ label,
9090
-webkit-appearance: none;
9191
appearance: none;
9292
outline: none;
93+
background-color: -webkit-control-background;
9394

9495
&:focus {
9596
box-shadow: 0 0 0 $form-select-focus-width $input-btn-focus-color;
@@ -181,4 +182,4 @@ label,
181182

182183
.label-for-search {
183184
cursor: pointer;
184-
}
185+
}

src/utils/Departements.spec.ts

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import {DEPARTEMENTS_LIMITROPHES} from "./Departements";
2+
3+
describe('Departements', () => {
4+
Object.keys(DEPARTEMENTS_LIMITROPHES).forEach(startingDep => {
5+
DEPARTEMENTS_LIMITROPHES[startingDep].forEach(endingDep => {
6+
it(`${startingDep} => ${endingDep} should have bijective adjacent departments`, () => {
7+
// Given
8+
9+
// When
10+
const endingDepAdjacentDepartments = DEPARTEMENTS_LIMITROPHES[endingDep];
11+
12+
// Then
13+
expect(endingDepAdjacentDepartments).toBeDefined()
14+
try {
15+
expect(endingDepAdjacentDepartments.includes(startingDep)).toBeTrue()
16+
}catch(e){ throw new Error(`Missing "${startingDep}" in DEPARTEMENTS_LIMITROPHES["${endingDep}"]`); }
17+
});
18+
})
19+
})
20+
});

src/utils/Departements.ts

+28-28
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,18 @@ export const DEPARTEMENTS_LIMITROPHES: Record<CodeDepartement, CodeDepartement[]
88
"04": ["83","06","05","26","84","13",],
99
"05": ["04","26","38","73",],
1010
"06": ["83","04",],
11-
"07": ["48","30","84","26","38","69","43",],
12-
"08": ["55","51","02","59",],
11+
"07": ["48","30","84","26","38","43","42",],
12+
"08": ["55","51","02",],
1313
"09": ["31","11","66",],
1414
"10": ["89","21","52","51","77",],
15-
"11": ["09","31","81","34",],
15+
"11": ["09","31","81","34","66",],
1616
"12": ["34","30","48","15","46","82","81",],
17-
"13": ["30","84","83",],
18-
"14": ["27","61","50",],
17+
"13": ["30","84","83","04",],
18+
"14": ["27","61","50","76",],
1919
"15": ["48","43","63","19","46","12",],
2020
"16": ["17","79","86","87","24",],
21-
"17": ["85","79","16","33",],
22-
"18": ["36","41","45","89","58","03","23",],
21+
"17": ["85","79","16","33","24",],
22+
"18": ["36","41","45","58","03","23",],
2323
"19": ["23","87","24","46","15","63",],
2424
"2A": ["2B",],
2525
"2B": ["2A",],
@@ -28,76 +28,76 @@ export const DEPARTEMENTS_LIMITROPHES: Record<CodeDepartement, CodeDepartement[]
2828
"23": ["87","19","63","03","18","36",],
2929
"24": ["17","16","87","19","46","47","33",],
3030
"25": ["39","70","90",],
31-
"26": ["84","04","05","38","69","07",],
31+
"26": ["84","04","05","38","07",],
3232
"27": ["76","60","95","78","28","61","14",],
3333
"28": ["27","78","91","45","41","72","61",],
3434
"29": ["22","56",],
35-
"30": ["34","12","48","07","26","84","13",],
35+
"30": ["34","12","48","07","84","13",],
3636
"31": ["65","32","82","81","11","09",],
3737
"32": ["31","65","64","40","47","82",],
3838
"33": ["17","24","47","40",],
3939
"34": ["11","81","12","30",],
4040
"35": ["50","53","49","44","56","22",],
4141
"36": ["37","41","18","23","87","86",],
4242
"37": ["41","36","86","49","72",],
43-
"38": ["05","73","01","69","07","26","05",],
43+
"38": ["05","73","01","69","07","26","42",],
4444
"39": ["01","71","21","70","25",],
4545
"40": ["33","47","32","64",],
4646
"41": ["72","37","36","18","45","28",],
47-
"42": ["43","69","71","03","63",],
48-
"43": ["48","07","69","42","63","15",],
49-
"44": ["56","35","53","49","85",],
47+
"42": ["43","69","71","03","63","07","38",],
48+
"43": ["48","07","42","63","15",],
49+
"44": ["56","35","49","85",],
5050
"45": ["91","77","28","41","18","58","89",],
5151
"46": ["15","19","24","47","82","12",],
5252
"47": ["33","40","32","82","46","24",],
5353
"48": ["12","30","07","43","15",],
54-
"49": ["44","53","72","37","86","79","85",],
54+
"49": ["44","53","72","37","86","79","85","35",],
5555
"50": ["14","61","53","35",],
5656
"51": ["02","77","10","52","55","08",],
5757
"52": ["21","70","88","55","51","10",],
58-
"53": ["49","72","61","50","35","44",],
58+
"53": ["49","72","61","50","35",],
5959
"54": ["57","67","88","55",],
6060
"55": ["54","88","52","51","08",],
6161
"56": ["29","22","35","44",],
62-
"57": ["67","88","54",],
62+
"57": ["67","54",],
6363
"58": ["03","71","21","89","45","18",],
64-
"59": ["02","80","62","08",],
64+
"59": ["02","80","62",],
6565
"60": ["02","80","76","27","95","77",],
6666
"61": ["14","27","28","72","53","50",],
67-
"62": ["80","59","02",],
67+
"62": ["80","59",],
6868
"63": ["15","43","42","03","23","19",],
6969
"64": ["40","32","65",],
7070
"65": ["64","32","31",],
7171
"66": ["09","11",],
7272
"67": ["68","88","54","57",],
73-
"68": ["90","70","88","67",],
74-
"69": ["01","71","42","43","07","26","38",],
73+
"68": ["90","88","67",],
74+
"69": ["01","71","42","38",],
7575
"70": ["21","39","25","90","88","52",],
7676
"71": ["03","42","69","01","39","21","58",],
7777
"72": ["28","61","53","49","37","41",],
7878
"73": ["74","01","38","05",],
7979
"74": ["73","01",],
8080
"75": ["92","93","94",],
81-
"76": ["80","60","27",],
82-
"77": ["89","10","51","02","60","93","91","45",],
81+
"76": ["80","60","27","14",],
82+
"77": ["89","10","51","02","60","93","91","45","94","95",],
8383
"78": ["95","27","28","91","92",],
8484
"79": ["17","85","49","86","16",],
8585
"80": ["62","59","02","60","76",],
8686
"81": ["11","34","12","82","31",],
8787
"82": ["32","31","81","12","46","47",],
8888
"83": ["13","84","04","06",],
89-
"84": ["13","04","26","07","30",],
89+
"84": ["13","04","26","07","30","83",],
9090
"85": ["44","49","79","17",],
9191
"86": ["36","37","49","79","16","87",],
92-
"87": ["23","19","24","16","86",],
93-
"88": ["70","90","68","67","57","54","55","52",],
92+
"87": ["23","19","24","16","86","36",],
93+
"88": ["70","90","68","67","54","55","52",],
9494
"89": ["58","21","10","77","45",],
9595
"90": ["25","70","88","68",],
9696
"91": ["45","28","77","78","92","94",],
97-
"92": ["75","95","78","93",],
98-
"93": ["92","95","94","77",],
97+
"92": ["75","95","78","93","94","91",],
98+
"93": ["92","95","94","77","75",],
9999
"94": ["77","75","92","93","91",],
100-
"95": ["78","27","60","93","92",],
100+
"95": ["78","27","60","93","92","77",],
101101
"971": [],
102102
"972": [],
103103
"973": [],

src/vmd-app.component.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ export class VmdAppComponent extends LitElement {
2626

2727
smoothscroll.polyfill();
2828

29+
RemoteConfig.INSTANCE.sync();
30+
2931
Router.installRoutes((viewTemplateResult) => {
3032
this.viewTemplateResult = viewTemplateResult;
3133
})
3234

33-
RemoteConfig.INSTANCE.sync();
34-
3535
ServiceWorkers.INSTANCE.startup();
3636
}
3737

0 commit comments

Comments
 (0)