diff --git a/examples/test/print.py b/examples/test/print.py index 86c1281..41ea9d8 100644 --- a/examples/test/print.py +++ b/examples/test/print.py @@ -2,7 +2,7 @@ from trame.ui.html import DivLayout from trame.widgets import html -server = get_server() +server = get_server(client_type="vue3") # Test to dynamically add a fake directive html.Div.register_directive("v_seb_directive") diff --git a/examples/test/reactivity.py b/examples/test/reactivity.py index 6fcddab..160d696 100644 --- a/examples/test/reactivity.py +++ b/examples/test/reactivity.py @@ -1,7 +1,7 @@ from trame.app import get_server from trame_client.utils.testing import enable_testing -server = get_server() +server = get_server(client_type="vue3") server.state.count = 1 server.state.trame__template_main = """
diff --git a/examples/vue2/client_components.py b/examples/vue2/client_components.py index 33cc22f..140279c 100644 --- a/examples/vue2/client_components.py +++ b/examples/vue2/client_components.py @@ -2,8 +2,7 @@ from trame.widgets import html, client from trame.ui.html import DivLayout -server = get_server() -server.client_type = "vue2" +server = get_server(client_type="vue2") state, ctrl = server.state, server.controller dyna_var_count = 1 diff --git a/examples/vue2/core_reactive_state.py b/examples/vue2/core_reactive_state.py index 0979dff..a23c260 100644 --- a/examples/vue2/core_reactive_state.py +++ b/examples/vue2/core_reactive_state.py @@ -1,7 +1,6 @@ from trame.app import get_server -server = get_server() -server.client_type = "vue2" # default until trame>=3.x +server = get_server(client_type="vue2") state, ctrl = server.state, server.controller state.count = 2 diff --git a/examples/vue2/dynamic_template.py b/examples/vue2/dynamic_template.py index acd8a65..1a43ff6 100644 --- a/examples/vue2/dynamic_template.py +++ b/examples/vue2/dynamic_template.py @@ -3,8 +3,7 @@ from trame.ui.html import DivLayout from trame_client.utils.testing import enable_testing -server = enable_testing(get_server(), "count") -server.client_type = "vue2" +server = enable_testing(get_server(client_type="vue2"), "count") state, ctrl = server.state, server.controller state.count = 1 diff --git a/examples/vue2/getter.py b/examples/vue2/getter.py index 5b1d2d3..f8abe4d 100644 --- a/examples/vue2/getter.py +++ b/examples/vue2/getter.py @@ -6,8 +6,7 @@ # Trame setup # ----------------------------------------------------------------------------- -server = get_server() -server.client_type = "vue2" +server = get_server(client_type="vue2") state, ctrl = server.state, server.controller state.message_1 = "Hello 1" diff --git a/examples/vue2/js_call.py b/examples/vue2/js_call.py index a515e12..f4bcecd 100644 --- a/examples/vue2/js_call.py +++ b/examples/vue2/js_call.py @@ -3,8 +3,7 @@ from trame.ui.html import DivLayout from trame_client.utils.testing import enable_testing -server = enable_testing(get_server(), "message") -server.client_type = "vue2" +server = enable_testing(get_server(client_type="vue2"), "message") state, ctrl = server.state, server.controller diff --git a/examples/vue2/life_cycle.py b/examples/vue2/life_cycle.py index 118a7cf..b85a85e 100644 --- a/examples/vue2/life_cycle.py +++ b/examples/vue2/life_cycle.py @@ -1,7 +1,6 @@ from trame.app import get_server -server = get_server() -server.client_type = "vue2" +server = get_server(client_type="vue2") ctrl = server.controller server.state.trame__template_main = "Life Cycle App" diff --git a/examples/vue3/client_components.py b/examples/vue3/client_components.py index 39aea40..1f9f9c2 100644 --- a/examples/vue3/client_components.py +++ b/examples/vue3/client_components.py @@ -2,8 +2,7 @@ from trame.widgets import html, client from trame.ui.html import DivLayout -server = get_server() -server.client_type = "vue3" +server = get_server(client_type="vue3") state, ctrl = server.state, server.controller dyna_var_count = 1 diff --git a/examples/vue3/core_reactive_state.py b/examples/vue3/core_reactive_state.py index cbceb4f..8c99fbe 100644 --- a/examples/vue3/core_reactive_state.py +++ b/examples/vue3/core_reactive_state.py @@ -1,7 +1,6 @@ from trame.app import get_server -server = get_server() -server.client_type = "vue3" +server = get_server(client_type="vue3") state, ctrl = server.state, server.controller state.count = 2 diff --git a/examples/vue3/dynamic_template.py b/examples/vue3/dynamic_template.py index 123c00b..f970a22 100644 --- a/examples/vue3/dynamic_template.py +++ b/examples/vue3/dynamic_template.py @@ -3,8 +3,7 @@ from trame.ui.html import DivLayout from trame_client.utils.testing import enable_testing -server = get_server() -server.client_type = "vue3" +server = get_server(client_type="vue3") state, ctrl = server.state, server.controller state.count = 1 diff --git a/examples/vue3/getter.py b/examples/vue3/getter.py index b572d76..d46944f 100644 --- a/examples/vue3/getter.py +++ b/examples/vue3/getter.py @@ -6,8 +6,7 @@ # Trame setup # ----------------------------------------------------------------------------- -server = get_server() -server.client_type = "vue3" +server = get_server(client_type="vue3") state, ctrl = server.state, server.controller state.message_1 = "Hello 1" diff --git a/examples/vue3/js_call.py b/examples/vue3/js_call.py index c2a476c..ae08116 100644 --- a/examples/vue3/js_call.py +++ b/examples/vue3/js_call.py @@ -3,8 +3,7 @@ from trame.ui.html import DivLayout from trame_client.utils.testing import enable_testing -server = enable_testing(get_server(), "message") -server.client_type = "vue3" +server = enable_testing(get_server(client_type="vue3"), "message") state, ctrl = server.state, server.controller diff --git a/examples/vue3/life_cycle.py b/examples/vue3/life_cycle.py index 5d3ec3f..051a778 100644 --- a/examples/vue3/life_cycle.py +++ b/examples/vue3/life_cycle.py @@ -1,7 +1,6 @@ from trame.app import get_server -server = get_server() -server.client_type = "vue3" +server = get_server(client_type="vue3") ctrl = server.controller server.state.trame__template_main = "Life Cycle App" diff --git a/tests/requirements.txt b/tests/requirements.txt index 129b5bb..23b18e5 100644 --- a/tests/requirements.txt +++ b/tests/requirements.txt @@ -4,4 +4,4 @@ pixelmatch Pillow pytest-xprocess trame -trame-server>=2.13.0 \ No newline at end of file +trame-server>=2.13.1 \ No newline at end of file