|
@@ -65,7 +65,6 @@ def run(*,
|
|
prod_js: bool = True,
|
|
prod_js: bool = True,
|
|
endpoint_documentation: Literal['none', 'internal', 'page', 'all'] = 'none',
|
|
endpoint_documentation: Literal['none', 'internal', 'page', 'all'] = 'none',
|
|
storage_secret: Optional[str] = None,
|
|
storage_secret: Optional[str] = None,
|
|
- storage_path: Union[str, Path] = Path('.nicegui'),
|
|
|
|
**kwargs: Any,
|
|
**kwargs: Any,
|
|
) -> None:
|
|
) -> None:
|
|
'''ui.run
|
|
'''ui.run
|
|
@@ -95,7 +94,6 @@ def run(*,
|
|
:param prod_js: whether to use the production version of Vue and Quasar dependencies (default: `True`)
|
|
:param prod_js: whether to use the production version of Vue and Quasar dependencies (default: `True`)
|
|
:param endpoint_documentation: control what endpoints appear in the autogenerated OpenAPI docs (default: 'none', options: 'none', 'internal', 'page', 'all')
|
|
:param endpoint_documentation: control what endpoints appear in the autogenerated OpenAPI docs (default: 'none', options: 'none', 'internal', 'page', 'all')
|
|
:param storage_secret: secret key for browser-based storage (default: `None`, a value is required to enable ui.storage.individual and ui.storage.browser)
|
|
:param storage_secret: secret key for browser-based storage (default: `None`, a value is required to enable ui.storage.individual and ui.storage.browser)
|
|
- :param storage_path: directory for local storage (default: `.nicegui` in the current working directory)
|
|
|
|
:param kwargs: additional keyword arguments are passed to `uvicorn.run`
|
|
:param kwargs: additional keyword arguments are passed to `uvicorn.run`
|
|
'''
|
|
'''
|
|
globals.ui_run_has_been_called = True
|
|
globals.ui_run_has_been_called = True
|
|
@@ -109,7 +107,6 @@ def run(*,
|
|
globals.tailwind = tailwind
|
|
globals.tailwind = tailwind
|
|
globals.prod_js = prod_js
|
|
globals.prod_js = prod_js
|
|
globals.endpoint_documentation = endpoint_documentation
|
|
globals.endpoint_documentation = endpoint_documentation
|
|
- globals.storage_path = Path(storage_path)
|
|
|
|
|
|
|
|
for route in globals.app.routes:
|
|
for route in globals.app.routes:
|
|
if not isinstance(route, Route):
|
|
if not isinstance(route, Route):
|