mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-04 10:24:02 +00:00
refactor: separate installation and proximity context components
This commit is contained in:
1 parent
287493dfb7
commit
3b77277883
39 files changed
+4151
-2632
No files matched your search
@@ -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'))
|
||||
|
||||
Reference in new issue
Block a user