|
@@ -11,7 +11,6 @@ from uvicorn.supervisors import ChangeReload, Multiprocess
|
|
|
|
|
|
from . import air, core, helpers
|
|
from . import air, core, helpers
|
|
from . import native as native_module
|
|
from . import native as native_module
|
|
-from . import welcome
|
|
|
|
from .client import Client
|
|
from .client import Client
|
|
from .language import Language
|
|
from .language import Language
|
|
from .logging import log
|
|
from .logging import log
|
|
@@ -45,6 +44,7 @@ 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,
|
|
|
|
+ show_welcome_message: bool = True,
|
|
**kwargs: Any,
|
|
**kwargs: Any,
|
|
) -> None:
|
|
) -> None:
|
|
"""ui.run
|
|
"""ui.run
|
|
@@ -76,6 +76,7 @@ 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 show_welcome_message: whether to show the welcome message (default: `True`)
|
|
:param kwargs: additional keyword arguments are passed to `uvicorn.run`
|
|
:param kwargs: additional keyword arguments are passed to `uvicorn.run`
|
|
"""
|
|
"""
|
|
core.app.config.add_run_config(
|
|
core.app.config.add_run_config(
|
|
@@ -89,6 +90,7 @@ def run(*,
|
|
reconnect_timeout=reconnect_timeout,
|
|
reconnect_timeout=reconnect_timeout,
|
|
tailwind=tailwind,
|
|
tailwind=tailwind,
|
|
prod_js=prod_js,
|
|
prod_js=prod_js,
|
|
|
|
+ show_welcome_message=show_welcome_message,
|
|
)
|
|
)
|
|
core.app.config.endpoint_documentation = endpoint_documentation
|
|
core.app.config.endpoint_documentation = endpoint_documentation
|
|
|
|
|
|
@@ -103,8 +105,6 @@ def run(*,
|
|
if on_air:
|
|
if on_air:
|
|
air.instance = air.Air('' if on_air is True else on_air)
|
|
air.instance = air.Air('' if on_air is True else on_air)
|
|
|
|
|
|
- core.app.on_startup(welcome.print_message)
|
|
|
|
-
|
|
|
|
if multiprocessing.current_process().name != 'MainProcess':
|
|
if multiprocessing.current_process().name != 'MainProcess':
|
|
return
|
|
return
|
|
|
|
|