项目静态资源请求地址增加版本号信息,便于网页升级更新

This commit is contained in:
azhengzz 2021-04-15 20:51:16 +08:00
parent dbb04b70de
commit cb2626e5f8
15 changed files with 135 additions and 112 deletions

View File

@ -14,7 +14,7 @@ from app.extensions import (db, migrate, login_manager, mail, csrf, bootstrap, s
from app import models
from app.template_global import (render_to_json, sort_by_order_in_module, sort_by_order_in_logic_controller,
can_show, is_forbidden, get_latest_reports, get_case_from_id, get_tool_from_id,
calc_percent)
calc_percent, url_for_static)
from app.cores.ws import register_all_user_socket
@ -27,6 +27,7 @@ def create_app(config_class=Config):
register_blueprints(app)
register_shell_context(app)
register_template_global(app)
register_template_context_processor(app)
register_before_first_request_funcs(app)
register_cli(app)
@ -173,6 +174,16 @@ def register_template_global(app: Flask):
app.add_template_global(get_case_from_id, 'get_case_from_id')
app.add_template_global(get_tool_from_id, 'get_tool_from_id')
app.add_template_global(calc_percent, 'calc_percent')
app.add_template_global(url_for_static, 'url_for_static')
def register_template_context_processor(app: Flask):
# 注册jinja模板上下文
@app.context_processor
def context_processor():
return {
'version': app.config['AAT_VERSION'],
}
def register_before_first_request_funcs(app: Flask):

View File

@ -9,6 +9,9 @@ attachment_dir = os.path.join(proj_dir, 'attachment')
class Config:
# 版本编号
AAT_VERSION = '0.3.0' # 'AAT' is 'ApiAutomationTest'
# SERVER_NAME = 'WebUiAutoTest:5000' # enable subdomain support
# SERVER_NAME = '0.0.0.0:5000' # enable subdomain support

View File

@ -10,6 +10,7 @@ LOG:
"""
import json
from typing import Iterable
from flask import url_for, current_app
from app.cores.dictionaries import STATUS
from app.models import Report, SubElementInLogicController, Case, Tool
@ -120,5 +121,13 @@ def calc_percent(a, b):
return None
def url_for_static(endpoint: str, **values):
"""为静态资源加上版本号"""
if endpoint.strip().lower() != 'static':
raise ValueError("endpoint expects a 'static' value")
values['version'] = current_app.config['AAT_VERSION']
return url_for(endpoint=endpoint, **values)
if __name__ == '__main__':
print(render_to_json)

View File

@ -3,7 +3,7 @@
{% block styles %}
{{ super() }}
<link href="{{ url_for('static', filename='css/auth/auth.css') }}" rel="stylesheet">
<link href="{{ url_for_static('static', filename='css/auth/auth.css') }}" rel="stylesheet">
{% endblock styles %}
{% block body_attribs %}

View File

@ -3,7 +3,7 @@
{% block styles %}
{{ super() }}
<link href="{{ url_for('static', filename='css/auth/auth.css') }}" rel="stylesheet">
<link href="{{ url_for_static('static', filename='css/auth/auth.css') }}" rel="stylesheet">
{% endblock styles %}
{% block body_attribs %}

View File

@ -3,7 +3,7 @@
{% block styles %}
{{ super() }}
<link href="{{ url_for('static', filename='css/auth/auth.css') }}" rel="stylesheet">
<link href="{{ url_for_static('static', filename='css/auth/auth.css') }}" rel="stylesheet">
{% endblock styles %}
{% block body_attribs %}

View File

@ -3,7 +3,7 @@
{% block styles %}
{{ super() }}
<link href="{{ url_for('static', filename='css/auth/auth.css') }}" rel="stylesheet">
<link href="{{ url_for_static('static', filename='css/auth/auth.css') }}" rel="stylesheet">
{% endblock styles %}
{% block body_attribs %}

View File

@ -9,20 +9,20 @@
{%- block metas %}
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" href="{{ url_for('static', filename='icon/favicon.ico') }}">
<link rel="icon" href="{{ url_for_static('static', filename='icon/favicon.ico') }}">
{%- endblock metas %}
{%- block styles %}
<link href="{{ url_for('static', filename='css/bootstrap.min.css') }}" rel="stylesheet">
<link href="{{ url_for('static', filename='plugins/fontawesome/css/all.min.css') }}" rel="stylesheet">
<link href="{{ url_for('static', filename='plugins/toastr/toastr.min.css') }}" rel="stylesheet">
<link href="{{ url_for('static', filename='plugins/sweetalert2/sweetalert2.min.css') }}" rel="stylesheet">
<link href="{{ url_for_static('static', filename='css/bootstrap.min.css') }}" rel="stylesheet">
<link href="{{ url_for_static('static', filename='plugins/fontawesome/css/all.min.css') }}" rel="stylesheet">
<link href="{{ url_for_static('static', filename='plugins/toastr/toastr.min.css') }}" rel="stylesheet">
<link href="{{ url_for_static('static', filename='plugins/sweetalert2/sweetalert2.min.css') }}" rel="stylesheet">
{# <link href="{{ url_for('static', filename='plugins/sweetalert2/themes/bootstrap-4/bootstrap-4.min.css') }}" rel="stylesheet">#}
<link href="{{ url_for('static', filename='plugins/tippyjs/tippy.js/themes/light.css') }}" rel="stylesheet">
<link href="{{ url_for('static', filename='plugins/tippyjs/tippy.js/themes/light-border.css') }}" rel="stylesheet">
<link href="{{ url_for('static', filename='plugins/tippyjs/tippy.js/themes/material.css') }}" rel="stylesheet">
<link href="{{ url_for('static', filename='plugins/tippyjs/tippy.js/themes/translucent.css') }}" rel="stylesheet">
<link href="{{ url_for('static', filename='css/base.css') }}" rel="stylesheet">
<link href="{{ url_for_static('static', filename='plugins/tippyjs/tippy.js/themes/light.css') }}" rel="stylesheet">
<link href="{{ url_for_static('static', filename='plugins/tippyjs/tippy.js/themes/light-border.css') }}" rel="stylesheet">
<link href="{{ url_for_static('static', filename='plugins/tippyjs/tippy.js/themes/material.css') }}" rel="stylesheet">
<link href="{{ url_for_static('static', filename='plugins/tippyjs/tippy.js/themes/translucent.css') }}" rel="stylesheet">
<link href="{{ url_for_static('static', filename='css/base.css') }}" rel="stylesheet">
{%- endblock styles %}
{%- endblock head %}
</head>
@ -73,7 +73,7 @@
</a>
</li>
<li class="list-group-item">
<div style="color: rgba(55, 53, 47, 0.4);"><small>ApiAutomationTest: Version 0.2.0</small></div>
<div style="color: rgba(55, 53, 47, 0.4);"><small>ApiAutomationTest: Version {{ version }}</small></div>
</li>
</ul>
</div>
@ -82,15 +82,15 @@
{%- endblock content %}
{% block scripts %}
<script src="{{ url_for('static', filename='js/jquery.min.js') }}"></script>
<script src="{{ url_for_static('static', filename='js/jquery.min.js') }}"></script>
{# <script src="{{ url_for('static', filename='js/bootstrap.min.js') }}"></script>#}
<script src="{{ url_for('static', filename='js/bootstrap.bundle.min.js') }}"></script>
<script src="{{ url_for('static', filename='plugins/socket.io/socket.io.js') }}"></script>
<script src="{{ url_for('static', filename='plugins/toastr/toastr.min.js') }}"></script>
<script src="{{ url_for('static', filename='plugins/sweetalert2/sweetalert2.all.min.js') }}"></script>
<script src="{{ url_for('static', filename='plugins/tippyjs/@popperjs/core/dist/umd/popper.min.js') }}"></script>
<script src="{{ url_for('static', filename='plugins/tippyjs/tippy.js/dist/tippy-bundle.umd.min.js') }}"></script>
<script src="{{ url_for('static', filename='js/base.js') }}"></script>
<script src="{{ url_for_static('static', filename='js/bootstrap.bundle.min.js') }}"></script>
<script src="{{ url_for_static('static', filename='plugins/socket.io/socket.io.js') }}"></script>
<script src="{{ url_for_static('static', filename='plugins/toastr/toastr.min.js') }}"></script>
<script src="{{ url_for_static('static', filename='plugins/sweetalert2/sweetalert2.all.min.js') }}"></script>
<script src="{{ url_for_static('static', filename='plugins/tippyjs/@popperjs/core/dist/umd/popper.min.js') }}"></script>
<script src="{{ url_for_static('static', filename='plugins/tippyjs/tippy.js/dist/tippy-bundle.umd.min.js') }}"></script>
<script src="{{ url_for_static('static', filename='js/base.js') }}"></script>
<script type="text/javascript">
var csrf_token="{{ csrf_token() }}";
{% if current_user.is_authenticated %}

View File

@ -2,11 +2,11 @@
{% block styles %}
{{ super() }}
<link href="{{ url_for('static', filename='css/main/index.css') }}" rel="stylesheet">
<link href="{{ url_for('static', filename='plugins/tippyjs/tippy.js/themes/light.css') }}" rel="stylesheet">
<link href="{{ url_for('static', filename='plugins/tippyjs/tippy.js/themes/light-border.css') }}" rel="stylesheet">
<link href="{{ url_for('static', filename='plugins/tippyjs/tippy.js/themes/material.css') }}" rel="stylesheet">
<link href="{{ url_for('static', filename='plugins/tippyjs/tippy.js/themes/translucent.css') }}" rel="stylesheet">
<link href="{{ url_for_static('static', filename='css/main/index.css') }}" rel="stylesheet">
<link href="{{ url_for_static('static', filename='plugins/tippyjs/tippy.js/themes/light.css') }}" rel="stylesheet">
<link href="{{ url_for_static('static', filename='plugins/tippyjs/tippy.js/themes/light-border.css') }}" rel="stylesheet">
<link href="{{ url_for_static('static', filename='plugins/tippyjs/tippy.js/themes/material.css') }}" rel="stylesheet">
<link href="{{ url_for_static('static', filename='plugins/tippyjs/tippy.js/themes/translucent.css') }}" rel="stylesheet">
{% endblock styles %}
{% block body_attribs %}
@ -139,10 +139,10 @@ class="bg-gradient-grey"
{% block scripts %}
{{ super() }}
<script src="{{ url_for('static', filename='plugins/echarts/echarts.min.js') }}"></script>
<script src="{{ url_for('static', filename='plugins/tippyjs/@popperjs/core/dist/umd/popper.min.js') }}"></script>
<script src="{{ url_for('static', filename='plugins/tippyjs/tippy.js/dist/tippy-bundle.umd.min.js') }}"></script>
<script src="{{ url_for('static', filename='js/main/index.js') }}"></script>
<script src="{{ url_for_static('static', filename='plugins/echarts/echarts.min.js') }}"></script>
<script src="{{ url_for_static('static', filename='plugins/tippyjs/@popperjs/core/dist/umd/popper.min.js') }}"></script>
<script src="{{ url_for_static('static', filename='plugins/tippyjs/tippy.js/dist/tippy-bundle.umd.min.js') }}"></script>
<script src="{{ url_for_static('static', filename='js/main/index.js') }}"></script>
<script>
var echart_line_last_dispatch_dataset_source = {{ echart_line_last_dispatch_dataset_source|safe }};
var echart_line_last_dispatch_current_user_dataset_source = {{ echart_line_last_dispatch_current_user_dataset_source|safe }};

View File

@ -2,9 +2,9 @@
{% block styles %}
{{ super() }}
<link href="{{ url_for('static', filename='plugins/bootstrap-table/bootstrap-table.min.css') }}" rel="stylesheet">
<link href="{{ url_for('static', filename='plugins/bootstrap-table/extensions/reorder-rows/bootstrap-table-reorder-rows.min.css') }}" rel="stylesheet">
<link href="{{ url_for('static', filename='css/module/module.css') }}" rel="stylesheet">
<link href="{{ url_for_static('static', filename='plugins/bootstrap-table/bootstrap-table.min.css') }}" rel="stylesheet">
<link href="{{ url_for_static('static', filename='plugins/bootstrap-table/extensions/reorder-rows/bootstrap-table-reorder-rows.min.css') }}" rel="stylesheet">
<link href="{{ url_for_static('static', filename='css/module/module.css') }}" rel="stylesheet">
{% endblock styles %}
{% block body_attribs %}
@ -92,9 +92,9 @@ class="bg-gradient-grey"
{% block scripts %}
{{ super() }}
<script src="{{url_for('static', filename='plugins/bootstrap-table/bootstrap-table.min.js')}}"></script>
<script src="{{url_for('static', filename='plugins/TableDnD/jquery.tablednd.min.js')}}"></script>
<script src="{{url_for('static', filename='plugins/bootstrap-table/extensions/reorder-rows/bootstrap-table-reorder-rows.min.js')}}"></script>
<script src="{{url_for('static', filename='plugins/bootstrap-table/locale/bootstrap-table-zh-CN.js')}}"></script>
<script src="{{ url_for('static', filename='js/module/module.js') }}"></script>
<script src="{{ url_for_static('static', filename='plugins/bootstrap-table/bootstrap-table.min.js') }}"></script>
<script src="{{ url_for_static('static', filename='plugins/TableDnD/jquery.tablednd.min.js') }}"></script>
<script src="{{ url_for_static('static', filename='plugins/bootstrap-table/extensions/reorder-rows/bootstrap-table-reorder-rows.min.js') }}"></script>
<script src="{{ url_for_static('static', filename='plugins/bootstrap-table/locale/bootstrap-table-zh-CN.js') }}"></script>
<script src="{{ url_for_static('static', filename='js/module/module.js') }}"></script>
{% endblock %}

View File

@ -2,8 +2,8 @@
{% block styles %}
{{ super() }}
<link href="{{ url_for('static', filename='plugins/bootstrap-table/bootstrap-table.min.css') }}" rel="stylesheet">
<link href="{{ url_for('static', filename='css/project/project.css') }}" rel="stylesheet">
<link href="{{ url_for_static('static', filename='plugins/bootstrap-table/bootstrap-table.min.css') }}" rel="stylesheet">
<link href="{{ url_for_static('static', filename='css/project/project.css') }}" rel="stylesheet">
{% endblock styles %}
{% block body_attribs %}
@ -168,7 +168,7 @@ class="bg-gradient-grey"
{% block scripts %}
{{ super() }}
<script src="{{url_for('static', filename='plugins/bootstrap-table/bootstrap-table.min.js')}}"></script>
<script src="{{url_for('static', filename='plugins/bootstrap-table/locale/bootstrap-table-zh-CN.js')}}"></script>
<script src="{{ url_for('static', filename='js/project/project.js') }}"></script>
<script src="{{ url_for_static('static', filename='plugins/bootstrap-table/bootstrap-table.min.js') }}"></script>
<script src="{{ url_for_static('static', filename='plugins/bootstrap-table/locale/bootstrap-table-zh-CN.js') }}"></script>
<script src="{{ url_for_static('static', filename='js/project/project.js') }}"></script>
{% endblock %}

View File

@ -2,8 +2,8 @@
{% block styles %}
{{ super() }}
<link href="{{ url_for('static', filename='plugins/bootstrap-table/bootstrap-table.min.css') }}" rel="stylesheet">
<link href="{{ url_for('static', filename='css/report/report.css') }}" rel="stylesheet">
<link href="{{ url_for_static('static', filename='plugins/bootstrap-table/bootstrap-table.min.css') }}" rel="stylesheet">
<link href="{{ url_for_static('static', filename='css/report/report.css') }}" rel="stylesheet">
{% endblock styles %}
{% block body_attribs %}
@ -23,7 +23,7 @@ class="bg-gradient-grey"
{% block scripts %}
{{ super() }}
<script src="{{url_for('static', filename='plugins/bootstrap-table/bootstrap-table.min.js')}}"></script>
<script src="{{url_for('static', filename='plugins/bootstrap-table/locale/bootstrap-table-zh-CN.js')}}"></script>
<script src="{{ url_for('static', filename='js/report/report.js') }}"></script>
<script src="{{ url_for_static('static', filename='plugins/bootstrap-table/bootstrap-table.min.js') }}"></script>
<script src="{{ url_for_static('static', filename='plugins/bootstrap-table/locale/bootstrap-table-zh-CN.js') }}"></script>
<script src="{{ url_for_static('static', filename='js/report/report.js') }}"></script>
{% endblock %}

View File

@ -2,10 +2,10 @@
{% block styles %}
{{ super() }}
<link href="{{ url_for('static', filename='plugins/handsontable/handsontable.full.min.css') }}" rel="stylesheet">
<link href="{{ url_for('static', filename='plugins/bootstrap-table/bootstrap-table.min.css') }}" rel="stylesheet">
<link href="{{ url_for('static', filename='plugins/jquery.fancytree/skin-win8/ui.fancytree.min.css') }}" rel="stylesheet">
<link href="{{ url_for('static', filename='css/report/report_detail.css') }}" rel="stylesheet">
<link href="{{ url_for_static('static', filename='plugins/handsontable/handsontable.full.min.css') }}" rel="stylesheet">
<link href="{{ url_for_static('static', filename='plugins/bootstrap-table/bootstrap-table.min.css') }}" rel="stylesheet">
<link href="{{ url_for_static('static', filename='plugins/jquery.fancytree/skin-win8/ui.fancytree.min.css') }}" rel="stylesheet">
<link href="{{ url_for_static('static', filename='css/report/report_detail.css') }}" rel="stylesheet">
{% endblock styles %}
{% block body_attribs %}
@ -88,17 +88,17 @@ class="bg-gradient-grey"
{% block scripts %}
{{ super() }}
<script src="{{ url_for('static', filename='plugins/handsontable/handsontable.full.min.js') }}"></script>
<script src="{{ url_for('static', filename='plugins/handsontable/languages/all.js') }}"></script>
<script src="{{ url_for('static', filename='plugins/jquery.fancytree/jquery.fancytree-all-deps.min.js') }}"></script>
<script src="{{ url_for('static', filename='plugins/jquery.fancytree/modules/jquery.fancytree.filter.js') }}"></script>
<script src="{{ url_for('static', filename='plugins/split.js/split.min.js') }}"></script>
<script src="{{ url_for('static', filename='plugins/ace/ace.js') }}"></script>
<script src="{{ url_for('static', filename='plugins/js-beautify/beautify.js') }}"></script>
<script src="{{ url_for('static', filename='plugins/js-beautify/beautify-css.js') }}"></script>
<script src="{{ url_for('static', filename='plugins/js-beautify/beautify-html.js') }}"></script>
<script src="{{ url_for('static', filename='plugins/echarts/echarts.min.js') }}"></script>
<script src="{{ url_for('static', filename='js/report/report_detail.js') }}"></script>
<script src="{{ url_for_static('static', filename='plugins/handsontable/handsontable.full.min.js') }}"></script>
<script src="{{ url_for_static('static', filename='plugins/handsontable/languages/all.js') }}"></script>
<script src="{{ url_for_static('static', filename='plugins/jquery.fancytree/jquery.fancytree-all-deps.min.js') }}"></script>
<script src="{{ url_for_static('static', filename='plugins/jquery.fancytree/modules/jquery.fancytree.filter.js') }}"></script>
<script src="{{ url_for_static('static', filename='plugins/split.js/split.min.js') }}"></script>
<script src="{{ url_for_static('static', filename='plugins/ace/ace.js') }}"></script>
<script src="{{ url_for_static('static', filename='plugins/js-beautify/beautify.js') }}"></script>
<script src="{{ url_for_static('static', filename='plugins/js-beautify/beautify-css.js') }}"></script>
<script src="{{ url_for_static('static', filename='plugins/js-beautify/beautify-html.js') }}"></script>
<script src="{{ url_for_static('static', filename='plugins/echarts/echarts.min.js') }}"></script>
<script src="{{ url_for_static('static', filename='js/report/report_detail.js') }}"></script>
<script>
var dispatcher_id = {{ dispatcher.id }};
var echart_pie_result_data = {{ echart_pie_result_data|safe }};

View File

@ -2,14 +2,14 @@
{% block styles %}
{{ super() }}
<link href="{{ url_for('static', filename='plugins/jquery.fancytree/skin-win8/ui.fancytree.min.css') }}" rel="stylesheet">
<link href="{{ url_for('static', filename='plugins/handsontable/handsontable.full.min.css') }}" rel="stylesheet">
<link href="{{ url_for('static', filename='css/scene/scene.css') }}" rel="stylesheet">
<link href="{{ url_for('static', filename='css/case/base.css') }}" rel="stylesheet">
<link href="{{ url_for('static', filename='css/case/ssh.css') }}" rel="stylesheet">
<link href="{{ url_for('static', filename='css/case/sql.css') }}" rel="stylesheet">
<link href="{{ url_for('static', filename='css/case/http.css') }}" rel="stylesheet">
<link href="{{ url_for('static', filename='css/tool/script.css') }}" rel="stylesheet">
<link href="{{ url_for_static('static', filename='plugins/jquery.fancytree/skin-win8/ui.fancytree.min.css') }}" rel="stylesheet">
<link href="{{ url_for_static('static', filename='plugins/handsontable/handsontable.full.min.css') }}" rel="stylesheet">
<link href="{{ url_for_static('static', filename='css/scene/scene.css') }}" rel="stylesheet">
<link href="{{ url_for_static('static', filename='css/case/base.css') }}" rel="stylesheet">
<link href="{{ url_for_static('static', filename='css/case/ssh.css') }}" rel="stylesheet">
<link href="{{ url_for_static('static', filename='css/case/sql.css') }}" rel="stylesheet">
<link href="{{ url_for_static('static', filename='css/case/http.css') }}" rel="stylesheet">
<link href="{{ url_for_static('static', filename='css/tool/script.css') }}" rel="stylesheet">
{% endblock styles %}
{% block body_attribs %}
@ -116,37 +116,37 @@ class="bg-gradient-grey"
{% block scripts %}
{{ super() }}
<script src="{{ url_for('static', filename='plugins/Sortable/Sortable.js') }}"></script>
<script src="{{ url_for('static', filename='plugins/split.js/split.min.js') }}"></script>
<script src="{{ url_for('static', filename='plugins/jquery.fancytree/jquery.fancytree-all-deps.min.js') }}"></script>
<script src="{{ url_for('static', filename='plugins/jquery.fancytree/modules/jquery.fancytree.filter.js') }}"></script>
<script src="{{ url_for('static', filename='plugins/Inputmask/jquery.inputmask.min.js') }}"></script>
<script src="{{ url_for('static', filename='plugins/jQuery-Mask-Plugin/jquery.mask.min.js') }}"></script>
<script src="{{ url_for('static', filename='plugins/handsontable/handsontable.full.min.js') }}"></script>
<script src="{{ url_for('static', filename='plugins/handsontable/languages/all.js') }}"></script>
<script src="{{ url_for('static', filename='plugins/ace/ace.js') }}"></script>
<script src="{{ url_for('static', filename='plugins/js-beautify/beautify.js') }}"></script>
<script src="{{ url_for('static', filename='plugins/js-beautify/beautify-css.js') }}"></script>
<script src="{{ url_for('static', filename='plugins/js-beautify/beautify-html.js') }}"></script>
<script src="{{ url_for('static', filename='plugins/download/download.min.js') }}"></script>
<script src="{{ url_for('static', filename='plugins/mark.js/jquery.mark.min.js') }}"></script>
<script src="{{ url_for('static', filename='js/scene/scene.js') }}"></script>
<script src="{{ url_for('static', filename='js/scene/scene_setting.js') }}"></script>
<script src="{{ url_for('static', filename='js/logic_controller/if.js') }}"></script>
<script src="{{ url_for('static', filename='js/logic_controller/loop.js') }}"></script>
<script src="{{ url_for('static', filename='js/logic_controller/simple.js') }}"></script>
<script src="{{ url_for('static', filename='js/logic_controller/while.js') }}"></script>
<script src="{{ url_for('static', filename='js/case/base.js') }}"></script>
<script src="{{ url_for('static', filename='js/case/ssh.js') }}"></script>
<script src="{{ url_for('static', filename='js/case/sql.js') }}"></script>
<script src="{{ url_for('static', filename='js/case/http/http.js') }}"></script>
<script src="{{ url_for('static', filename='js/case/http/_cookies_manager.js') }}"></script>
<script src="{{ url_for('static', filename='js/case/debug.js') }}"></script>
<script src="{{ url_for('static', filename='js/tool/timer.js') }}"></script>
<script src="{{ url_for('static', filename='js/tool/script.js') }}"></script>
<script src="{{ url_for('static', filename='js/tool/variable_definition.js') }}"></script>
<script src="{{ url_for('static', filename='js/tool/http_header_manager.js') }}"></script>
<script src="{{ url_for('static', filename='js/tool/http_cookie_manager.js') }}"></script>
<script src="{{ url_for_static('static', filename='plugins/Sortable/Sortable.js') }}"></script>
<script src="{{ url_for_static('static', filename='plugins/split.js/split.min.js') }}"></script>
<script src="{{ url_for_static('static', filename='plugins/jquery.fancytree/jquery.fancytree-all-deps.min.js') }}"></script>
<script src="{{ url_for_static('static', filename='plugins/jquery.fancytree/modules/jquery.fancytree.filter.js') }}"></script>
<script src="{{ url_for_static('static', filename='plugins/Inputmask/jquery.inputmask.min.js') }}"></script>
<script src="{{ url_for_static('static', filename='plugins/jQuery-Mask-Plugin/jquery.mask.min.js') }}"></script>
<script src="{{ url_for_static('static', filename='plugins/handsontable/handsontable.full.min.js') }}"></script>
<script src="{{ url_for_static('static', filename='plugins/handsontable/languages/all.js') }}"></script>
<script src="{{ url_for_static('static', filename='plugins/ace/ace.js') }}"></script>
<script src="{{ url_for_static('static', filename='plugins/js-beautify/beautify.js') }}"></script>
<script src="{{ url_for_static('static', filename='plugins/js-beautify/beautify-css.js') }}"></script>
<script src="{{ url_for_static('static', filename='plugins/js-beautify/beautify-html.js') }}"></script>
<script src="{{ url_for_static('static', filename='plugins/download/download.min.js') }}"></script>
<script src="{{ url_for_static('static', filename='plugins/mark.js/jquery.mark.min.js') }}"></script>
<script src="{{ url_for_static('static', filename='js/scene/scene.js') }}"></script>
<script src="{{ url_for_static('static', filename='js/scene/scene_setting.js') }}"></script>
<script src="{{ url_for_static('static', filename='js/logic_controller/if.js') }}"></script>
<script src="{{ url_for_static('static', filename='js/logic_controller/loop.js') }}"></script>
<script src="{{ url_for_static('static', filename='js/logic_controller/simple.js') }}"></script>
<script src="{{ url_for_static('static', filename='js/logic_controller/while.js') }}"></script>
<script src="{{ url_for_static('static', filename='js/case/base.js') }}"></script>
<script src="{{ url_for_static('static', filename='js/case/ssh.js') }}"></script>
<script src="{{ url_for_static('static', filename='js/case/sql.js') }}"></script>
<script src="{{ url_for_static('static', filename='js/case/http/http.js') }}"></script>
<script src="{{ url_for_static('static', filename='js/case/http/_cookies_manager.js') }}"></script>
<script src="{{ url_for_static('static', filename='js/case/debug.js') }}"></script>
<script src="{{ url_for_static('static', filename='js/tool/timer.js') }}"></script>
<script src="{{ url_for_static('static', filename='js/tool/script.js') }}"></script>
<script src="{{ url_for_static('static', filename='js/tool/variable_definition.js') }}"></script>
<script src="{{ url_for_static('static', filename='js/tool/http_header_manager.js') }}"></script>
<script src="{{ url_for_static('static', filename='js/tool/http_cookie_manager.js') }}"></script>
<script>
let project_id = {{ project.id }};
</script>

View File

@ -3,9 +3,9 @@
{% block styles %}
{{ super() }}
<link href="{{ url_for('static', filename='plugins/bootstrap-table/bootstrap-table.min.css') }}" rel="stylesheet">
<link href="{{ url_for('static', filename='plugins/bootstrap-select/css/bootstrap-select.min.css') }}" rel="stylesheet">
<link href="{{ url_for('static', filename='css/setting/basic_setting.css') }}" rel="stylesheet">
<link href="{{ url_for_static('static', filename='plugins/bootstrap-table/bootstrap-table.min.css') }}" rel="stylesheet">
<link href="{{ url_for_static('static', filename='plugins/bootstrap-select/css/bootstrap-select.min.css') }}" rel="stylesheet">
<link href="{{ url_for_static('static', filename='css/setting/basic_setting.css') }}" rel="stylesheet">
{% endblock styles %}
{% block body_attribs %}
@ -278,8 +278,8 @@ data-spy="scroll" data-target="#navbar-basic-setting" style="position: relative"
{% block scripts %}
{{ super() }}
<script src="{{url_for('static', filename='plugins/bootstrap-table/bootstrap-table.min.js')}}"></script>
<script src="{{url_for('static', filename='plugins/bootstrap-table/locale/bootstrap-table-zh-CN.js')}}"></script>
<script src="{{url_for('static', filename='plugins/bootstrap-select/js/bootstrap-select.min.js')}}"></script>
<script src="{{ url_for('static', filename='js/setting/basic_setting.js') }}"></script>
<script src="{{ url_for_static('static', filename='plugins/bootstrap-table/bootstrap-table.min.js') }}"></script>
<script src="{{ url_for_static('static', filename='plugins/bootstrap-table/locale/bootstrap-table-zh-CN.js') }}"></script>
<script src="{{ url_for_static('static', filename='plugins/bootstrap-select/js/bootstrap-select.min.js') }}"></script>
<script src="{{ url_for_static('static', filename='js/setting/basic_setting.js') }}"></script>
{% endblock %}