mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-23 07:50:15 +00:00
Wires all UI modules together in renderer.ts with mountApp/render, adds keyboard shortcuts (M, Escape, 1-9, A-C), and replaces the placeholder main.ts with full bootstrap (load save, mount, subscribe, enter room). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
27 lines
664 B
TypeScript
27 lines
664 B
TypeScript
import './style/theme.css'
|
|
import './style/layout.css'
|
|
import './style/hud.css'
|
|
import './style/room.css'
|
|
import './style/challenge.css'
|
|
import './style/sidebar.css'
|
|
import './style/map.css'
|
|
import './style/animations.css'
|
|
|
|
import { isV1Save, loadSave } from '@/state/gameState'
|
|
import { enterRoom, initGameState, subscribe } from '@/engine/stateMachine'
|
|
import { mountApp, render } from '@/ui/renderer'
|
|
|
|
function main(): void {
|
|
if (isV1Save()) {
|
|
console.warn('Codebase Caverns v1 save detected. Starting fresh for v2.')
|
|
}
|
|
|
|
const save = loadSave()
|
|
mountApp()
|
|
initGameState(save)
|
|
subscribe(render)
|
|
enterRoom(save.currentRun.currentRoom)
|
|
}
|
|
|
|
main()
|