mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-04 18:34:02 +00:00
Format civil-flight components
This commit is contained in:
1 parent
7c7e83c9e3
commit
e18aeb8565
16 files changed
+6435
-5086
No files matched your search
@@ -7,6 +7,9 @@ export function readLayerSource(file) {
|
||||
const path = file instanceof URL ? fileURLToPath(file) : file;
|
||||
if (basename(path) !== 'flights.js') return readFileSync(path, 'utf8');
|
||||
const directory = join(dirname(path), '../layers/flights');
|
||||
return readdirSync(directory).filter((name) => name.endsWith('.js'))
|
||||
.sort().map((name) => readFileSync(join(directory, name), 'utf8')).join('\n');
|
||||
return readdirSync(directory)
|
||||
.filter((name) => name.endsWith('.js'))
|
||||
.sort()
|
||||
.map((name) => readFileSync(join(directory, name), 'utf8'))
|
||||
.join('\n');
|
||||
}
|
||||
Reference in new issue
Block a user