Files
gpt-image-panel/backend/app/api/contract_app.py
T
Z1rconium 49b8d4ed8a feat: enhance Lightbox component with loading states and error handling for original images
- Added loading and error handling for original images in the Lightbox component.
- Introduced thumbnail previews while the original image loads.
- Updated translations for loading and error messages in English and Chinese.
- Added an end-to-end test to verify Lightbox behavior during image loading.
- Created a design system configuration file for consistent UI components.
- Documented design principles and product overview in new markdown files.
2026-07-18 10:06:54 +08:00

15 lines
490 B
Python

from .app_state import FRONTEND_BUILD_DIR, app
from .body_limit import BodyLimitMiddleware
from .middleware import TextOnlyGZipMiddleware, register_exception_handlers, register_middleware
from .routers import routers
from ..integrations.upstream import generation as proxy
register_middleware(app)
register_exception_handlers(app)
app.add_middleware(TextOnlyGZipMiddleware, minimum_size=1024)
app.add_middleware(BodyLimitMiddleware)
for router in routers:
app.include_router(router)