Add world settings viewing with legacy fallback

- Store map generation settings in DB when creating new worlds
- Add info button to view settings for each saved world
- Show legacy warning for worlds created before this feature

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Alexander Zielonka
2026-01-05 15:51:35 +01:00
parent ff6adb093b
commit be3e915980
2 changed files with 159 additions and 0 deletions

View File

@@ -179,3 +179,9 @@ export async function getFactorioCurrentSave(token) {
headers: { Authorization: `Bearer ${token}` },
})
}
export async function getFactorioWorldSettings(token, saveName) {
return fetchAPI(`/servers/factorio/saves/${encodeURIComponent(saveName)}/settings`, {
headers: { Authorization: `Bearer ${token}` },
})
}