diff --git a/docker/scripts/generate_www.py b/docker/scripts/generate_www.py index 5cb55b6a..b1d5afe1 100755 --- a/docker/scripts/generate_www.py +++ b/docker/scripts/generate_www.py @@ -4,7 +4,7 @@ import json import subprocess -CLIENT_TYPE = os.environ.get("TRAME_CLIENT_TYPE", "vue2") +CLIENT_TYPE = os.environ.get("TRAME_CLIENT_TYPE", "vue3") def run(apps_path, out_path): diff --git a/trame/tools/widgets/generator.py b/trame/tools/widgets/generator.py index d3418a39..cc6c6ee0 100644 --- a/trame/tools/widgets/generator.py +++ b/trame/tools/widgets/generator.py @@ -157,7 +157,7 @@ def create_module_init(init_path, init_conf): with init_path.open("w") as file: file.write("def setup(server, **kargs):\n") - file.write(' client_type = "vue2"\n') + file.write(' client_type = "vue3"\n') file.write(' if hasattr(server, "client_type"):\n') file.write(" client_type = server.client_type\n") if "vue2" in init_conf: diff --git a/trame/tools/www.py b/trame/tools/www.py index df0bbb4e..7fcd3588 100644 --- a/trame/tools/www.py +++ b/trame/tools/www.py @@ -12,7 +12,7 @@ class StaticContentGenerator: def __init__(self): self.www = None self.serve = {} - self.client_type = "vue2" + self.client_type = "vue3" def enable_all(self): import pkgutil @@ -87,7 +87,7 @@ def main(): parser.add_argument( "--client-type", - default="vue2", + default="vue3", help="Type of client to use [vue2, vue3]", )