Skip to content

Commit

Permalink
fix(vue3): new default for tools/docker
Browse files Browse the repository at this point in the history
  • Loading branch information
jourdain committed Jan 10, 2024
1 parent 6ae3434 commit 0e77b63
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docker/scripts/generate_www.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
2 changes: 1 addition & 1 deletion trame/tools/widgets/generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions trame/tools/www.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -87,7 +87,7 @@ def main():

parser.add_argument(
"--client-type",
default="vue2",
default="vue3",
help="Type of client to use [vue2, vue3]",
)

Expand Down

0 comments on commit 0e77b63

Please sign in to comment.