Browse Source

commonHeader移除bootstrap依赖

pull/29/MERGE
陈精华 2 years ago
parent
commit
0a1fb6d983
No known key found for this signature in database
GPG Key ID: 30BDC970902B755D
  1. 2
      server/src/main/resources/web/code.ftl
  2. 2
      server/src/main/resources/web/commonHeader.ftl
  3. 2
      server/src/main/resources/web/markdown.ftl
  4. 2
      server/src/main/resources/web/picture.ftl
  5. 2
      server/src/main/resources/web/txt.ftl

2
server/src/main/resources/web/code.ftl

@ -5,6 +5,8 @@
<meta name="viewport" content="width=device-width, user-scalable=yes, initial-scale=1.0">
<title>代码预览</title>
<#include "*/commonHeader.ftl">
<link rel="stylesheet" href="bootstrap/css/bootstrap.min.css"/>
<script src="bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.6.0/styles/default.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.6.0/highlight.min.js"></script>
<script>hljs.highlightAll()</script>

2
server/src/main/resources/web/commonHeader.ftl

@ -1,9 +1,7 @@
<#setting classic_compatible=true>
<link rel="icon" href="./favicon.ico" type="image/x-icon">
<link rel="stylesheet" href="bootstrap/css/bootstrap.min.css"/>
<script src="js/jquery-3.0.0.min.js" type="text/javascript"></script>
<script src="js/jquery.form.min.js" type="text/javascript"></script>
<script src="bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
<script src="js/bootbox.min.js" type="text/javascript"></script>
<script src="js/watermark.js" type="text/javascript"></script>
<script src="js/base64.min.js" type="text/javascript"></script>

2
server/src/main/resources/web/markdown.ftl

@ -4,6 +4,8 @@
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, user-scalable=yes, initial-scale=1.0">
<title>markdown文本预览</title>
<link rel="stylesheet" href="bootstrap/css/bootstrap.min.css"/>
<script src="bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
<script src="js/marked.min.js" type="text/javascript"></script>
<#include "*/commonHeader.ftl">
</head>

2
server/src/main/resources/web/picture.ftl

@ -24,7 +24,7 @@
<#else>
<#assign img="${baseUrl}${img}">
</#if>
<li><img id="${img}" url="${img}" src="${img}" width="1px" height="1px"></li>
<li><img id="${img}" url="${img}" src="${img}" style="display: none"></li>
</#list>
</ul>

2
server/src/main/resources/web/txt.ftl

@ -4,6 +4,8 @@
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, user-scalable=yes, initial-scale=1.0">
<title>${file.name}普通文本预览</title>
<link rel="stylesheet" href="bootstrap/css/bootstrap.min.css"/>
<script src="bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
<#include "*/commonHeader.ftl">
</head>
<body>

Loading…
Cancel
Save