Skip to content

Commit 63b838e

Browse files
committed
refactor(wip): svelte4 => svelte5
1 parent ef89b4d commit 63b838e

305 files changed

Lines changed: 4709 additions & 26703 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.vscode/settings.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,5 @@
5151
"editor.defaultFormatter": "esbenp.prettier-vscode"
5252
},
5353
"python-envs.defaultEnvManager": "ms-python.python:conda",
54-
"python-envs.defaultPackageManager": "ms-python.python:conda",
55-
"python-envs.pythonProjects": []
54+
"python-envs.defaultPackageManager": "ms-python.python:conda"
5655
}
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
from .components import *
2-
from .external import load
32
from .version import __version__
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
from .antd.components import *
22
from .antdx.components import *
33
from .base import *
4-
from .legacy.components import *
54
from .pro.components import *

backend/modelscope_studio/components/base/div/__init__.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class ModelScopeDiv(ModelScopeLayoutComponent):
4444
def __init__(
4545
self,
4646
value: str | None = None,
47-
props: dict | None = None,
47+
additional_props: dict | None = None,
4848
*,
4949
as_item: str | None = None,
5050
_internal: None = None,
@@ -62,9 +62,8 @@ def __init__(
6262
as_item=as_item,
6363
elem_style=elem_style,
6464
**kwargs)
65-
6665
self.value = value
67-
self.props = props
66+
self.additional_props = additional_props
6867

6968
FRONTEND_DIR = resolve_frontend_dir("div", type="base")
7069

backend/modelscope_studio/components/base/slot/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ def __init__(self,
1414
value: str = '',
1515
params_mapping: str | None = None,
1616
*,
17-
skip_context_value: bool = True,
1817
as_item: str | None = None,
1918
_internal: None = None,
2019
visible: bool = True,
@@ -25,7 +24,6 @@ def __init__(self,
2524
as_item=as_item,
2625
**kwargs)
2726
self.params_mapping = params_mapping
28-
self.skip_context_value = skip_context_value
2927
if isinstance(self.parent, ModelScopeSlot):
3028
self.value = f"{self.parent.value}.{value}"
3129
else:

backend/modelscope_studio/components/legacy/Chatbot/__init__.py

Lines changed: 0 additions & 372 deletions
This file was deleted.

backend/modelscope_studio/components/legacy/Chatbot/llm_thinking_presets.py

Lines changed: 0 additions & 9 deletions
This file was deleted.

backend/modelscope_studio/components/legacy/Flow/__init__.py

Lines changed: 0 additions & 146 deletions
This file was deleted.

backend/modelscope_studio/components/legacy/Flow/edge.py

Lines changed: 0 additions & 17 deletions
This file was deleted.

backend/modelscope_studio/components/legacy/Flow/node.py

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)