From b67df1328b28a7ae29a11f97e5dd6338de41c835 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Fri, 3 Feb 2023 17:32:39 -0600 Subject: [PATCH] Remove liburl logic, config for jquery --- tailbone/util.py | 12 ------------ tailbone/views/settings.py | 10 ---------- 2 files changed, 22 deletions(-) diff --git a/tailbone/util.py b/tailbone/util.py index 7414a4c4..7015ad49 100644 --- a/tailbone/util.py +++ b/tailbone/util.py @@ -151,12 +151,6 @@ def get_libver(request, key, fallback=True, default_only=False): elif key == 'fontawesome': return '5.3.1' - elif key == 'jquery': - return '1.12.4' - - elif key == 'jquery_ui': - return '1.11.4' - def get_liburl(request, key, fallback=True): """ @@ -188,12 +182,6 @@ def get_liburl(request, key, fallback=True): elif key == 'fontawesome': return 'https://use.fontawesome.com/releases/v{}/js/all.js'.format(version) - elif key == 'jquery': - return 'https://code.jquery.com/jquery-{}.min.js'.format(version) - - elif key == 'jquery_ui': - return 'https://code.jquery.com/ui/{}/themes/dark-hive/jquery-ui.css'.format(version) - def pretty_datetime(config, value): """ diff --git a/tailbone/views/settings.py b/tailbone/views/settings.py index f1d26846..3d05f0a9 100644 --- a/tailbone/views/settings.py +++ b/tailbone/views/settings.py @@ -106,8 +106,6 @@ class AppInfoView(MasterView): ('buefy', "Buefy"), ('buefy.css', "Buefy CSS"), ('fontawesome', "FontAwesome"), - ('jquery', "jQuery"), - ('jquery_ui', "jQuery UI"), ]) for key in weblibs: @@ -181,14 +179,6 @@ class AppInfoView(MasterView): 'option': 'libver.fontawesome'}, {'section': 'tailbone', 'option': 'liburl.fontawesome'}, - {'section': 'tailbone', - 'option': 'libver.jquery'}, - {'section': 'tailbone', - 'option': 'liburl.jquery'}, - {'section': 'tailbone', - 'option': 'libver.jquery_ui'}, - {'section': 'tailbone', - 'option': 'liburl.jquery_ui'}, # nb. these are no longer used (deprecated), but we keep # them defined here so the tool auto-deletes them