|
@@ -13,13 +13,19 @@
|
|
|
<meta name="author" content="AE86">
|
|
|
<title>dbsyncer</title>
|
|
|
<link type="image/x-icon" rel="icon" th:href="@{/img/logo.ico}"/>
|
|
|
- <link type="text/css" rel="stylesheet" th:href="@{/plugins/css/font-awesome.min.css}"/>
|
|
|
- <link type="text/css" rel="stylesheet" th:href="@{/plugins/css/bootstrap/bootstrap.min.css}"/>
|
|
|
+ <link type="text/css" rel="stylesheet" th:if="${enableCDN}" href="https://cdn.staticfile.org/font-awesome/4.7.0/css/font-awesome.css"/>
|
|
|
+ <link type="text/css" rel="stylesheet" th:if="${!enableCDN}" th:href="@{/plugins/css/font-awesome.min.css}"/>
|
|
|
+ <link type="text/css" rel="stylesheet" th:if="${enableCDN}" href="http://cdn.bootcss.com/bootstrap/3.3.4/css/bootstrap.min.css"/>
|
|
|
+ <link type="text/css" rel="stylesheet" th:if="${!enableCDN}" th:href="@{/plugins/css/bootstrap/bootstrap.min.css}"/>
|
|
|
<link type="text/css" rel="stylesheet" th:href="@{/plugins/css/bootstrap-dialog/bootstrap-dialog.min.css}"/>
|
|
|
- <link type="text/css" rel="stylesheet" th:href="@{/plugins/css/bootstrap-select/bootstrap-select.min.css}"/>
|
|
|
- <link type="text/css" rel="stylesheet" th:href="@{/plugins/css/bootstrap-switch/bootstrap-switch.min.css}"/>
|
|
|
- <link type="text/css" rel="stylesheet" th:href="@{/plugins/css/bootstrap-tagsinput/bootstrap-tagsinput.min.css}"/>
|
|
|
- <link type="text/css" rel="stylesheet" th:href="@{/plugins/css/bootstrap-fileinput/fileinput.min.css}"/>
|
|
|
+ <link type="text/css" rel="stylesheet" th:if="${enableCDN}" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.13.17/css/bootstrap-select.min.css"/>
|
|
|
+ <link type="text/css" rel="stylesheet" th:if="${!enableCDN}" th:href="@{/plugins/css/bootstrap-select/bootstrap-select.min.css}"/>
|
|
|
+ <link type="text/css" rel="stylesheet" th:if="${enableCDN}" href="https://cdn.bootcdn.net/ajax/libs/bootstrap-switch/3.3.4/css/bootstrap3/bootstrap-switch.min.css"/>
|
|
|
+ <link type="text/css" rel="stylesheet" th:if="${!enableCDN}" th:href="@{/plugins/css/bootstrap-switch/bootstrap-switch.min.css}"/>
|
|
|
+ <link type="text/css" rel="stylesheet" th:if="${enableCDN}" href="https://cdn.bootcss.com/bootstrap-tagsinput/0.8.0/bootstrap-tagsinput.css"/>
|
|
|
+ <link type="text/css" rel="stylesheet" th:if="${!enableCDN}" th:href="@{/plugins/css/bootstrap-tagsinput/bootstrap-tagsinput.min.css}"/>
|
|
|
+ <link type="text/css" rel="stylesheet" th:if="${enableCDN}" href="https://cdn.bootcdn.net/ajax/libs/bootstrap-fileinput/5.1.5/css/fileinput.min.css"/>
|
|
|
+ <link type="text/css" rel="stylesheet" th:if="${!enableCDN}" th:href="@{/plugins/css/bootstrap-fileinput/fileinput.min.css}"/>
|
|
|
<link type="text/css" rel="stylesheet" th:href="@{/plugins/css/icheck/all.css}"/>
|
|
|
<link type="text/css" rel="stylesheet" th:href="@{/plugins/css/loading-plus/loading-plus.css}"/>
|
|
|
<link type="text/css" rel="stylesheet" th:href="@{/css/common.css}">
|
|
@@ -37,26 +43,37 @@
|
|
|
<div th:replace="footer :: copy"></div>
|
|
|
|
|
|
</body>
|
|
|
-<script th:src="@{/plugins/js/bootstrap/respond.min.js}"></script>
|
|
|
-<script th:src="@{/plugins/js/bootstrap/html5shiv.min.js}"></script>
|
|
|
+<script th:if="${enableCDN}" src="https://cdn.bootcdn.net/ajax/libs/respond.js/1.4.2/respond.min.js"></script>
|
|
|
+<script th:if="${!enableCDN}" th:src="@{/plugins/js/bootstrap/respond.min.js}"></script>
|
|
|
+<script th:if="${enableCDN}" src="http://cdn.bootcss.com/html5shiv/3.7.3/html5shiv.min.js"></script>
|
|
|
+<script th:if="${!enableCDN}" th:src="@{/plugins/js/bootstrap/html5shiv.min.js}"></script>
|
|
|
<!-- 上述2个js文件解决IE8以上bootstrap的兼容性问题 -->
|
|
|
-<script th:src="@{/plugins/js/jquery/jquery-1.11.3.min.js}"></script>
|
|
|
-<script th:src="@{/plugins/js/bootstrap/bootstrap.min.js}"></script>
|
|
|
-<script th:src="@{/plugins/js/tablednd/jquery.tablednd.js}"></script>
|
|
|
-<script th:src="@{/plugins/js/bootstrap-dialog/bootstrap-dialog.min.js}"></script>
|
|
|
+<script th:if="${enableCDN}" src="http://code.jquery.com/jquery-1.11.3.min.js"></script>
|
|
|
+<script th:if="${!enableCDN}" th:src="@{/plugins/js/jquery/jquery-1.11.3.min.js}"></script>
|
|
|
+<script th:if="${enableCDN}" src="http://cdn.bootcss.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>
|
|
|
+<script th:if="${!enableCDN}" th:src="@{/plugins/js/bootstrap/bootstrap.min.js}"></script>
|
|
|
+<script th:if="${enableCDN}" src="https://cdn.bootcdn.net/ajax/libs/TableDnD/1.0.5/jquery.tablednd.min.js"></script>
|
|
|
+<script th:if="${!enableCDN}" th:src="@{/plugins/js/tablednd/jquery.tablednd.js}"></script>
|
|
|
+<script th:if="${!enableCDN}" th:src="@{/plugins/js/bootstrap-dialog/bootstrap-dialog.min.js}"></script>
|
|
|
<script th:src="@{/plugins/js/bootstrap-growl/jquery.bootstrap-growl.min.js}"></script>
|
|
|
-<script th:src="@{/plugins/js/bootstrap-select/bootstrap-select.min.js}"></script>
|
|
|
-<script th:src="@{/plugins/js/bootstrap-switch/bootstrap-switch.min.js}"></script>
|
|
|
-<script th:src="@{/plugins/js/bootstrap-tagsinput/bootstrap-tagsinput.min.js}"></script>
|
|
|
-<script th:src="@{/plugins/js/bootstrap-fileinput/fileinput.min.js}"></script>
|
|
|
+<script th:if="${enableCDN}" src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.13.17/js/bootstrap-select.min.js"></script>
|
|
|
+<script th:if="${!enableCDN}" th:src="@{/plugins/js/bootstrap-select/bootstrap-select.min.js}"></script>
|
|
|
+<script th:if="${enableCDN}" src="https://cdn.bootcdn.net/ajax/libs/bootstrap-switch/3.3.4/js/bootstrap-switch.min.js"></script>
|
|
|
+<script th:if="${!enableCDN}" th:src="@{/plugins/js/bootstrap-switch/bootstrap-switch.min.js}"></script>
|
|
|
+<script th:if="${enableCDN}" src="https://cdn.bootcss.com/bootstrap-tagsinput/0.8.0/bootstrap-tagsinput.min.js"></script>
|
|
|
+<script th:if="${!enableCDN}" th:src="@{/plugins/js/bootstrap-tagsinput/bootstrap-tagsinput.min.js}"></script>
|
|
|
+<script th:if="${enableCDN}" src="https://cdn.bootcdn.net/ajax/libs/bootstrap-fileinput/5.1.5/js/fileinput.min.js"></script>
|
|
|
+<script th:if="${!enableCDN}" th:src="@{/plugins/js/bootstrap-fileinput/fileinput.min.js}"></script>
|
|
|
<script th:src="@{/plugins/js/bootstrap-fileinput/theme.min.js}"></script>
|
|
|
<script th:src="@{/plugins/js/bootstrap-fileinput/zh.js}"></script>
|
|
|
<script th:src="@{/plugins/js/icheck/icheck.min.js}"></script>
|
|
|
<script th:src="@{/plugins/js/loading-plus/loading-plus.js}"></script>
|
|
|
<script th:src="@{/plugins/js/placeholder/jquery.placeholder.js}"></script>
|
|
|
<script th:src="@{/plugins/js/formValidate/formValidate.js}"></script>
|
|
|
-<script th:src="@{/plugins/js/sql-formatter/sql-formatter.min.js}"></script>
|
|
|
-<script th:src="@{/plugins/js/echarts/echarts.min.js}"></script>
|
|
|
+<script th:if="${enableCDN}" src="https://cdn.bootcdn.net/ajax/libs/sql-formatter/13.0.0/sql-formatter.min.js"></script>
|
|
|
+<script th:if="${!enableCDN}" th:src="@{/plugins/js/sql-formatter/sql-formatter.min.js}"></script>
|
|
|
+<script th:if="${enableCDN}" src="https://cdn.bootcdn.net/ajax/libs/echarts/5.3.3/echarts.min.js"></script>
|
|
|
+<script th:if="${!enableCDN}" th:src="@{/plugins/js/echarts/echarts.min.js}"></script>
|
|
|
<script th:src="@{/js/common.js}"></script>
|
|
|
<script th:src="@{/js/index.js}"></script>
|
|
|
</html>
|