Fix missing lazy imports (#2187)

This commit is contained in:
Nikhil Rao 2023-11-16 13:20:48 -08:00 committed by GitHub
parent ddb1f8133b
commit f1005e774e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 0 deletions

View File

@ -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 = {

View File

@ -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),