instaui 0.1.10__py3-none-any.whl → 0.1.12__py3-none-any.whl

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.
@@ -17,7 +17,7 @@ class Radio(Element):
17
17
  ):
18
18
  super().__init__("a-radio")
19
19
 
20
- try_setup_vmodel(self, value)
20
+ self.props({"value": value})
21
21
  self.props(handle_props(kwargs)) # type: ignore
22
22
 
23
23
  def on_change(
@@ -0,0 +1,3 @@
1
+ __all__ = ["echarts"]
2
+
3
+ from instaui_echarts import echarts # type: ignore
@@ -0,0 +1,9 @@
1
+ def show_error(msg: str):
2
+ def error_handler(error: Exception):
3
+ from instaui.components.html.paragraph import Paragraph
4
+
5
+ Paragraph(msg).style(
6
+ "border: 1px dashed red;padding: 1em;font-weight: bold;font-size: medium;"
7
+ )
8
+
9
+ return error_handler
@@ -0,0 +1,3 @@
1
+ __all__ = ["mermaid"]
2
+
3
+ from instaui_mermaid import Mermaid as mermaid # type: ignore
@@ -0,0 +1,3 @@
1
+ __all__ = ["code"]
2
+
3
+ from instaui_shiki import shiki as code # type: ignore
@@ -14,7 +14,13 @@ def create_router(app: FastAPI):
14
14
  def _dependency_handler(app: FastAPI):
15
15
  @app.get(URL)
16
16
  def _(hash_part: str, file_name: str) -> FileResponse:
17
+ hash_part_with_extend_paths = hash_part.split("/", maxsplit=1)
18
+ hash_part = hash_part_with_extend_paths[0]
19
+ extend_path = None if len(hash_part_with_extend_paths) == 1 else hash_part_with_extend_paths[1]
20
+
17
21
  folder = resource.get_folder_path(hash_part)
22
+ if extend_path:
23
+ folder = folder.joinpath(extend_path)
18
24
  local_file = folder / file_name
19
25
 
20
26
  return FileResponse(