- 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.
15 lines
490 B
Python
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)
|