refactor: separate installation and proximity context components

This commit is contained in:
Sameh Khamis committed 2026-09-13 13:36:32 -07:00
1 parent 287493dfb7
commit 3b77277883
39 files changed
+4151 -2632

No files matched your search

+7 -1
View File
@@ -13,6 +13,8 @@ export function readLayerSource(file) {
'firmsHeatmap.js',
'satellites.js',
'rocketLaunches.js',
'militaryInstallations.js',
'militaryAwareness.js',
].includes(basename(path))
)
return readFileSync(path, 'utf8');
@@ -28,7 +30,11 @@ export function readLayerSource(file) {
? '../layers/satellites'
: basename(path) === 'rocketLaunches.js'
? '../layers/launches'
: '../layers/vessels',
: basename(path) === 'militaryInstallations.js'
? '../layers/installations'
: basename(path) === 'militaryAwareness.js'
? '../layers/awareness'
: '../layers/vessels',
);
return readdirSync(directory)
.filter((name) => name.endsWith('.js'))