File tree 5 files changed +9
-9
lines changed
5 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 4
4
if TYPE_CHECKING :
5
5
import asyncio
6
6
7
- from reactpy_django .pyscript .layout_manager import ReactPyLayoutManager
7
+ from reactpy_django .pyscript .layout_handler import ReactPyLayoutHandler
8
8
9
9
10
10
# User component is inserted below by regex replacement
@@ -25,4 +25,4 @@ def root(): ...
25
25
26
26
# PyScript allows top-level await, which allows us to not throw errors on components
27
27
# that terminate early (such as hook-less components)
28
- task_UUID = asyncio .create_task (ReactPyLayoutManager ("UUID" ).run (user_workspace_UUID ))
28
+ task_UUID = asyncio .create_task (ReactPyLayoutHandler ("UUID" ).run (user_workspace_UUID ))
Original file line number Diff line number Diff line change 7
7
from reactpy .core .layout import Layout
8
8
9
9
10
- class ReactPyLayoutManager :
11
- """Encapsulate the entire layout manager with a class to prevent overlapping
10
+ class ReactPyLayoutHandler :
11
+ """Encapsulate the entire layout handler with a class to prevent overlapping
12
12
variable names between user code.
13
13
14
14
This code is designed to be run directly by PyScript, and is not intended to be run
Original file line number Diff line number Diff line change 5
5
< link rel ="stylesheet " href ="{% static 'reactpy_django/pyscript-hide-debug.css' %} " />
6
6
{% endif %}
7
7
< script type ="module " async src ="{% static 'reactpy_django/pyscript/core.js' %} "> </ script >
8
- < py-script async config ='{{pyscript_config}} '> {{pyscript_layout_manager }}</ py-script >
8
+ < py-script async config ='{{pyscript_config}} '> {{pyscript_layout_handler }}</ py-script >
Original file line number Diff line number Diff line change 20
20
)
21
21
from reactpy_django .types import ComponentParams
22
22
from reactpy_django .utils import (
23
- PYSCRIPT_LAYOUT_MANAGER ,
23
+ PYSCRIPT_LAYOUT_HANDLER ,
24
24
extend_pyscript_config ,
25
25
prerender_component ,
26
26
render_pyscript_template ,
@@ -234,6 +234,6 @@ def pyscript_setup(
234
234
print (reactpy_config .REACTPY_DEBUG_MODE )
235
235
return {
236
236
"pyscript_config" : extend_pyscript_config (config , extra_packages ),
237
- "pyscript_layout_manager " : PYSCRIPT_LAYOUT_MANAGER ,
237
+ "pyscript_layout_handler " : PYSCRIPT_LAYOUT_HANDLER ,
238
238
"reactpy_debug_mode" : reactpy_config .REACTPY_DEBUG_MODE ,
239
239
}
Original file line number Diff line number Diff line change 57
57
PYSCRIPT_COMPONENT_TEMPLATE = (
58
58
Path (__file__ ).parent / "pyscript" / "component_template.py"
59
59
).read_text (encoding = "utf-8" )
60
- PYSCRIPT_LAYOUT_MANAGER = (
61
- Path (__file__ ).parent / "pyscript" / "layout_manager .py"
60
+ PYSCRIPT_LAYOUT_HANDLER = (
61
+ Path (__file__ ).parent / "pyscript" / "layout_handler .py"
62
62
).read_text (encoding = "utf-8" )
63
63
PYSCRIPT_DEFAULT_CONFIG = {
64
64
"packages" : [
You can’t perform that action at this time.
0 commit comments