From cbcfb67c443732952bd67078a6296c573b5fcb2b Mon Sep 17 00:00:00 2001 From: hjdhnx Date: Sun, 9 Jul 2023 19:43:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=9C=A8=E7=BA=BF=E7=BC=96?= =?UTF-8?q?=E8=BE=91=E5=8A=9F=E8=83=BD=E6=B2=A1=E5=B8=A6=E7=8E=AF=E5=A2=83?= =?UTF-8?q?=E5=8F=98=E9=87=8F=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- controllers/home.py | 4 ++++ js/version.txt | 2 +- templates/edit_rule.html | 10 +++++++--- templates/edit_rule_mobile.html | 14 +++++++++----- 4 files changed, 21 insertions(+), 9 deletions(-) diff --git a/controllers/home.py b/controllers/home.py index ec3ae16..362f89b 100644 --- a/controllers/home.py +++ b/controllers/home.py @@ -150,6 +150,10 @@ def custom_static_js(name): # print(name) return js_render(name) +@home.route('/raw/js/') +def custom_raw_js(filename): + return send_from_directory('js', filename) + # @home.route('/txt/') # def get_txt_files(name): # base_path = 'txt' diff --git a/js/version.txt b/js/version.txt index b18018e..44943ee 100644 --- a/js/version.txt +++ b/js/version.txt @@ -1 +1 @@ -3.9.46beta10 \ No newline at end of file +3.9.46beta11 \ No newline at end of file diff --git a/templates/edit_rule.html b/templates/edit_rule.html index 621d5de..955735d 100644 --- a/templates/edit_rule.html +++ b/templates/edit_rule.html @@ -140,19 +140,21 @@ function f(){