create-caspian-app 0.2.0-beta.2 → 0.2.0-beta.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.github/copilot-instructions.md +88 -0
- package/dist/AGENTS.md +105 -0
- package/dist/CLAUDE.md +1 -0
- package/dist/index.js +1 -2
- package/dist/main.py +6 -0
- package/dist/public/js/pp-reactive-v2.js +1 -1
- package/dist/pyproject.toml +1 -1
- package/dist/settings/files-list.ts +8 -0
- package/dist/src/app/error.html +66 -85
- package/package.json +1 -1
package/dist/main.py
CHANGED
|
@@ -428,6 +428,8 @@ def register_single_route(url_pattern: str, file_path: str):
|
|
|
428
428
|
page_metadata=page_metadata,
|
|
429
429
|
page_layout_props=page_layout_props,
|
|
430
430
|
context_data=full_context,
|
|
431
|
+
page_component_source=file_path,
|
|
432
|
+
control_mode=True,
|
|
431
433
|
component_compiler=transform_components
|
|
432
434
|
)
|
|
433
435
|
|
|
@@ -481,6 +483,8 @@ async def custom_404_handler(request: Request, exc: StarletteHTTPException):
|
|
|
481
483
|
},
|
|
482
484
|
page_layout_props=None,
|
|
483
485
|
context_data={'request': request},
|
|
486
|
+
page_component_source=not_found_path,
|
|
487
|
+
control_mode=True,
|
|
484
488
|
transform_fn=transform_scripts
|
|
485
489
|
)
|
|
486
490
|
resp = HTMLResponse(content=html_output, status_code=404)
|
|
@@ -512,6 +516,8 @@ async def custom_general_exception_handler(request: Request, exc: Exception):
|
|
|
512
516
|
},
|
|
513
517
|
page_layout_props=None,
|
|
514
518
|
context_data=context_data,
|
|
519
|
+
page_component_source=error_page_path,
|
|
520
|
+
control_mode=True,
|
|
515
521
|
transform_fn=transform_scripts
|
|
516
522
|
)
|
|
517
523
|
resp = HTMLResponse(content=html_output, status_code=500)
|