feat: scaffold mvp shell and content runtime

This commit is contained in:
manpengan
2026-03-29 00:36:28 +08:00
parent 25a38cbf05
commit c118e24bd1
25 changed files with 2903 additions and 7 deletions

View File

@@ -0,0 +1,24 @@
export function createBundleResolver(cityRegistry) {
return {
resolveCityBundle(cityId) {
const city = cityRegistry.getCity(cityId)
return city ? city.bundle : null
},
ensureCityBundle(cityId) {
const bundle = this.resolveCityBundle(cityId)
if (!bundle) {
return null
}
return {
cityId,
...bundle,
status: 'ready',
}
},
}
}
export default createBundleResolver