Jelajahi Sumber

remove obsolete exclude parameter for ui.run

Falko Schindler 1 tahun lalu
induk
melakukan
4b7413b59c
3 mengubah file dengan 0 tambahan dan 7 penghapusan
  1. 0 1
      nicegui/globals.py
  2. 0 4
      nicegui/run.py
  3. 0 2
      nicegui/run_with.py

+ 0 - 1
nicegui/globals.py

@@ -40,7 +40,6 @@ favicon: Optional[Union[str, Path]]
 dark: Optional[bool]
 language: Language
 binding_refresh_interval: float
-excludes: List[str]
 tailwind: bool
 socket_io_js_extra_headers: Dict = {}
 

+ 0 - 4
nicegui/run.py

@@ -50,7 +50,6 @@ def run(*,
         uvicorn_reload_dirs: str = '.',
         uvicorn_reload_includes: str = '*.py',
         uvicorn_reload_excludes: str = '.*, .py[cod], .sw.*, ~*',
-        exclude: str = '',
         tailwind: bool = True,
         storage_secret: Optional[str] = None,
         **kwargs: Any,
@@ -76,8 +75,6 @@ def run(*,
     :param uvicorn_reload_dirs: string with comma-separated list for directories to be monitored (default is current working directory only)
     :param uvicorn_reload_includes: string with comma-separated list of glob-patterns which trigger reload on modification (default: `'.py'`)
     :param uvicorn_reload_excludes: string with comma-separated list of glob-patterns which should be ignored for reload (default: `'.*, .py[cod], .sw.*, ~*'`)
-    :param exclude: comma-separated string to exclude elements (with corresponding JavaScript libraries) to save bandwidth
-      (possible entries: aggrid, audio, chart, colors, interactive_image, joystick, keyboard, log, markdown, mermaid, plotly, scene, video)
     :param tailwind: whether to use Tailwind (experimental, default: `True`)
     :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 kwargs: additional keyword arguments are passed to `uvicorn.run`    
@@ -90,7 +87,6 @@ def run(*,
     globals.dark = dark
     globals.language = language
     globals.binding_refresh_interval = binding_refresh_interval
-    globals.excludes = [e.strip() for e in exclude.split(',')]
     globals.tailwind = tailwind
 
     if multiprocessing.current_process().name != 'MainProcess':

+ 0 - 2
nicegui/run_with.py

@@ -17,7 +17,6 @@ def run_with(
     dark: Optional[bool] = False,
     language: Language = 'en-US',
     binding_refresh_interval: float = 0.1,
-    exclude: str = '',
     mount_path: str = '/',
     storage_secret: Optional[str] = None,
 ) -> None:
@@ -28,7 +27,6 @@ def run_with(
     globals.dark = dark
     globals.language = language
     globals.binding_refresh_interval = binding_refresh_interval
-    globals.excludes = [e.strip() for e in exclude.split(',')]
     globals.tailwind = True
 
     set_storage_secret(storage_secret)