Kaynağa Gözat

Fix missing lazy imports (#2187)

Nikhil Rao 1 yıl önce
ebeveyn
işleme
f1005e774e
2 değiştirilmiş dosya ile 9 ekleme ve 0 silme
  1. 6 0
      reflex/__init__.py
  2. 3 0
      reflex/utils/build.py

+ 6 - 0
reflex/__init__.py

@@ -62,6 +62,9 @@ _ALL_COMPONENTS = [
     "Container",
     "DataTable",
     "DataEditor",
+    "DataEditorTheme",
+    "DatePicker",
+    "DateTimePicker",
     "DebounceInput",
     "Divider",
     "Drawer",
@@ -227,6 +230,7 @@ _ALL_COMPONENTS = [
 _ALL_COMPONENTS += [to_snake_case(component) for component in _ALL_COMPONENTS]
 _ALL_COMPONENTS += [
     "components",
+    "color_mode_cond",
     "desktop_only",
     "mobile_only",
     "tablet_only",
@@ -234,7 +238,9 @@ _ALL_COMPONENTS += [
     "tablet_and_desktop",
     "selected_files",
     "clear_selected_files",
+    "EditorButtonList",
     "EditorOptions",
+    "NoSSRComponent",
 ]
 
 _MAPPING = {

+ 3 - 0
reflex/utils/build.py

@@ -214,6 +214,9 @@ def setup_frontend(
         root: The root path of the project.
         disable_telemetry: Whether to disable the Next telemetry.
     """
+    # Create the assets dir if it doesn't exist.
+    path_ops.mkdir(constants.Dirs.APP_ASSETS)
+
     # Copy asset files to public folder.
     path_ops.cp(
         src=str(root / constants.Dirs.APP_ASSETS),