Do not fuck with the file names

This commit is contained in:
2025-06-14 02:44:21 +02:00
parent 7d6cdf5b76
commit abe8de0566
29 changed files with 1 additions and 64 deletions

View File

@@ -15,8 +15,7 @@ for (const item of data) {
}
for (const region in dataPerRegion) {
const sanitizedRegion = region.replaceAll(" ", "_").replaceAll("-", "_")
const regionFile = `../public/${sanitizedRegion}.json`
const regionFile = `../public/${region}.json`
console.log("Writing to", regionFile)
fs.writeFileSync(regionFile, JSON.stringify(dataPerRegion[region], null, 2))
}

View File

@@ -1,62 +0,0 @@
[
{
"solarSystemName": "Zarzakh",
"x": "505",
"y": "288",
"security": -1,
"connectedSystems": [
"Turnur",
"Alsavoinon",
"H-PA29",
"G-0Q86"
]
},
{
"solarSystemName": "Alsavoinon",
"x": "321",
"y": "136",
"security": 0.266366286154,
"connectedSystems": [
"Vlillirier",
"F7C-H0",
"Zarzakh"
]
},
{
"solarSystemName": "Turnur",
"x": "323",
"y": "333",
"security": 0.387434219905,
"connectedSystems": [
"Uisper",
"Aset",
"Isbrabata",
"Zarzakh"
]
},
{
"solarSystemName": "H-PA29",
"x": "509",
"y": "140",
"security": -0.241053552113,
"connectedSystems": [
"P-FSQE",
"1-Y6KI",
"9-266Q",
"Zarzakh"
]
},
{
"solarSystemName": "G-0Q86",
"x": "513",
"y": "382",
"security": -0.0173427293383,
"connectedSystems": [
"G-R4W1",
"LJ-YSW",
"Y-K50G",
"KLMT-W",
"Zarzakh"
]
}
]