Restructure ORA editor into modular blueprints with browse dialog
- Split app.py into route blueprints (files, layers, images, polygon, mask, krita) - Create services layer (polygon_storage, comfyui, file_browser) - Extract config constants to config.py - Split templates into Jinja partials (base, components, modals) - Add browse dialog for visual file navigation - Add /api/browse endpoint for directory listing
This commit is contained in:
12
tools/ora_editor/config.py
Normal file
12
tools/ora_editor/config.py
Normal file
@@ -0,0 +1,12 @@
|
||||
"""Configuration for ORA Editor application."""
|
||||
|
||||
import os
|
||||
from pathlib import Path
|
||||
|
||||
APP_DIR = Path(__file__).parent
|
||||
PROJECT_ROOT = Path("/home/noti/dev/ai-game-2")
|
||||
TEMP_DIR = APP_DIR / "temp"
|
||||
|
||||
COMFYUI_BASE_URL = os.environ.get('COMFYUI_BASE_URL', '127.0.0.1:8188')
|
||||
|
||||
TEMP_DIR.mkdir(exist_ok=True)
|
||||
Reference in New Issue
Block a user