From 2eaeb1891df9ba61584d72c6e9bec2ec1bd569d0 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Wed, 24 Apr 2024 16:13:14 -0500 Subject: [PATCH] Add initial support for Vue 3 + Oruga, via "butterball" theme just a savepoint, still have lots to do and test before this really works --- tailbone/forms/core.py | 26 +- tailbone/subscribers.py | 33 +- tailbone/templates/appinfo/configure.mako | 38 +- tailbone/templates/appinfo/index.mako | 22 +- tailbone/templates/datasync/configure.mako | 105 +- tailbone/templates/datasync/status.mako | 64 +- tailbone/templates/forms/deform.mako | 2 + tailbone/templates/generate_feature.mako | 57 +- tailbone/templates/grids/b-table.mako | 18 +- tailbone/templates/grids/complete.mako | 46 +- .../templates/grids/filter-components.mako | 22 +- tailbone/templates/importing/configure.mako | 36 +- tailbone/templates/luigi/configure.mako | 80 +- tailbone/templates/luigi/index.mako | 48 +- tailbone/templates/master/merge.mako | 2 + tailbone/templates/master/view.mako | 34 +- tailbone/templates/page.mako | 1 + tailbone/templates/page_help.mako | 174 ++- .../templates/principal/find_by_perm.mako | 2 + tailbone/templates/settings/email/view.mako | 2 + .../templates/themes/butterball/base.mako | 1141 +++++++++++++++++ .../themes/butterball/buefy-components.mako | 679 ++++++++++ .../themes/butterball/buefy-plugin.mako | 32 + .../themes/butterball/field-components.mako | 382 ++++++ .../themes/butterball/http-plugin.mako | 100 ++ .../templates/themes/butterball/progress.mako | 244 ++++ tailbone/templates/upgrades/configure.mako | 32 +- tailbone/util.py | 63 +- tailbone/views/settings.py | 42 + 29 files changed, 3212 insertions(+), 315 deletions(-) create mode 100644 tailbone/templates/themes/butterball/base.mako create mode 100644 tailbone/templates/themes/butterball/buefy-components.mako create mode 100644 tailbone/templates/themes/butterball/buefy-plugin.mako create mode 100644 tailbone/templates/themes/butterball/field-components.mako create mode 100644 tailbone/templates/themes/butterball/http-plugin.mako create mode 100644 tailbone/templates/themes/butterball/progress.mako diff --git a/tailbone/forms/core.py b/tailbone/forms/core.py index beae42a4..857bfccf 100644 --- a/tailbone/forms/core.py +++ b/tailbone/forms/core.py @@ -1103,18 +1103,22 @@ class Form(object): # only declare label template if it's complex html = [html] - if len(label_contents) > 1: - - # nb. must apply hack to get