Browse Source

Add sponsored access and remove unused codes

kl 2 years ago
parent
commit
99bdeef754

+ 2 - 0
server/src/main/java/cn/keking/config/WebConfig.java

@@ -67,6 +67,7 @@ public class WebConfig implements WebMvcConfigurer {
     public FilterRegistrationBean<BaseUrlFilter> getBaseUrlFilter() {
         Set<String> filterUri = new HashSet<>();
         filterUri.add("/index");
+        filterUri.add("/");
         filterUri.add("/onlinePreview");
         filterUri.add("/picturesPreview");
         BaseUrlFilter filter = new BaseUrlFilter();
@@ -80,6 +81,7 @@ public class WebConfig implements WebMvcConfigurer {
     public FilterRegistrationBean<AttributeSetFilter> getWatermarkConfigFilter() {
         Set<String> filterUri = new HashSet<>();
         filterUri.add("/index");
+        filterUri.add("/");
         filterUri.add("/onlinePreview");
         filterUri.add("/picturesPreview");
         AttributeSetFilter filter = new AttributeSetFilter();

+ 6 - 1
server/src/main/java/cn/keking/web/controller/IndexController.java

@@ -21,6 +21,11 @@ public class IndexController {
         return "/main/record";
     }
 
+    @GetMapping( "/sponsor")
+    public String go2Sponsor(){
+        return "/main/sponsor";
+    }
+
     @GetMapping( "/integrated")
     public String go2Integrated(){
         return "/main/integrated";
@@ -28,7 +33,7 @@ public class IndexController {
 
     @GetMapping( "/")
     public String root() {
-        return "redirect:/main/index";
+        return "/main/index";
     }
 
 

File diff suppressed because it is too large
+ 0 - 10486
server/src/main/resources/static/gitalk/gitalk-component.js


File diff suppressed because it is too large
+ 0 - 1
server/src/main/resources/static/gitalk/gitalk-component.js.map


File diff suppressed because it is too large
+ 0 - 1250
server/src/main/resources/static/gitalk/gitalk.css


+ 0 - 1
server/src/main/resources/static/gitalk/gitalk.css.map

@@ -1 +0,0 @@
-{"version":3,"sources":[],"names":[],"mappings":"","file":"gitalk.css","sourceRoot":""}

File diff suppressed because it is too large
+ 0 - 14001
server/src/main/resources/static/gitalk/gitalk.js


File diff suppressed because it is too large
+ 0 - 1
server/src/main/resources/static/gitalk/gitalk.js.map


File diff suppressed because it is too large
+ 0 - 35
server/src/main/resources/static/gitalk/gitalk.min.js


File diff suppressed because it is too large
+ 0 - 1
server/src/main/resources/static/gitalk/gitalk.min.js.map


BIN
server/src/main/resources/static/images/alipay.jpeg


BIN
server/src/main/resources/static/images/wxpay.jpeg


+ 1 - 0
server/src/main/resources/web/main/index.ftl

@@ -44,6 +44,7 @@
                 <li class="active"><a href="./index">首页</a></li>
                 <li><a href="./integrated">接入说明</a></li>
                 <li><a href="./record">版本发布记录</a></li>
+                <li><a href="./sponsor">赞助开源</a></li>
             </ul>
         </div>
     </div>

+ 1 - 0
server/src/main/resources/web/main/integrated.ftl

@@ -44,6 +44,7 @@
                 <li><a href="./index">首页</a></li>
                 <li class="active"><a href="./integrated">接入说明</a></li>
                 <li><a href="./record">版本发布记录</a></li>
+                <li><a href="./sponsor">赞助开源</a></li>
             </ul>
         </div>
     </div>

+ 1 - 0
server/src/main/resources/web/main/record.ftl

@@ -35,6 +35,7 @@
                 <li><a href="./index">首页</a></li>
                 <li><a href="./integrated">接入说明</a></li>
                 <li class="active"><a href="./record">版本发布记录</a></li>
+                <li><a href="./sponsor">赞助开源</a></li>
             </ul>
         </div>
     </div>

+ 90 - 0
server/src/main/resources/web/main/sponsor.ftl

@@ -0,0 +1,90 @@
+<!DOCTYPE html>
+
+<html lang="en" xmlns="http://www.w3.org/1999/html">
+<head>
+    <meta charset="utf-8"/>
+    <meta name="viewport" content="width=device-width, user-scalable=yes, initial-scale=1.0"/>
+    <title>赞助开源</title>
+    <link rel="icon" href="./favicon.ico" type="image/x-icon">
+    <link rel="stylesheet" href="css/viewer.min.css"/>
+    <link rel="stylesheet" href="css/loading.css"/>
+    <link rel="stylesheet" href="bootstrap/css/bootstrap.min.css"/>
+    <link rel="stylesheet" href="bootstrap/css/bootstrap-theme.min.css"/>
+    <link rel="stylesheet" href="bootstrap-table/bootstrap-table.min.css"/>
+    <link rel="stylesheet" href="css/theme.css"/>
+    <script type="text/javascript" src="js/jquery-3.6.1.min.js"></script>
+    <script type="text/javascript" src="js/jquery.form.min.js"></script>
+    <script type="text/javascript" src="bootstrap/js/bootstrap.min.js"></script>
+    <script type="text/javascript" src="bootstrap-table/bootstrap-table.min.js"></script>
+    <script type="text/javascript" src="js/base64.min.js"></script>
+    <style>
+        .alert {
+            width: 50%;
+        }
+    </style>
+</head>
+
+<body>
+
+<!-- Fixed navbar -->
+<nav class="navbar navbar-inverse navbar-fixed-top">
+    <div class="container">
+        <div class="navbar-header">
+            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar"
+                    aria-expanded="false" aria-controls="navbar">
+                <span class="sr-only">Toggle navigation</span>
+                <span class="icon-bar"></span>
+                <span class="icon-bar"></span>
+                <span class="icon-bar"></span>
+            </button>
+            <a class="navbar-brand" href="https://kkview.cn" target='_blank'>kkFileView</a>
+        </div>
+        <div id="navbar" class="navbar-collapse collapse">
+            <ul class="nav navbar-nav">
+                <li><a href="./index">首页</a></li>
+                <li><a href="./integrated">接入说明</a></li>
+                <li><a href="./record">版本发布记录</a></li>
+                <li class="active"><a href="./sponsor">赞助开源</a></li>
+            </ul>
+        </div>
+    </div>
+</nav>
+
+<div class="container theme-showcase" role="main">
+    <#--  接入说明  -->
+    <div class="page-header">
+        <h1>赞助开源</h1>
+        <ur style="font-size: 16px;">
+            <li>kkFileView 开源至今已 6 个年头,积累 <a target="_blank" href="https://gitee.com/kekingcn/file-online-preview">Gitee(16.9K)</a>、<a target="_blank" href="https://github.com/kekingcn/kkFileView">GitHub(8k)</a> 多的 star</li>
+            <li>kkFileView 被广泛应用于金融、教育、银行、政务、计算机等行业, 不完全统计有 200+ 企业在使用</li>
+            <li>kkFileView 每年的文档站点、演示站点的服务器、CDN 资源, 至少在 1000元以上</li>
+            <li>kkFileView 是一款完全开源的在线预览项目,如果你觉得 kkFileView 对你有帮助,可以通过下面的方式来赞助我们,谢谢!</li>
+        </ur>
+    </div>
+    <div>
+        <div style="font-size: 16px;">
+            <img width="400px" height="550px" src="/images/alipay.jpeg"/> &nbsp;&nbsp;&nbsp;<img width="400px" height="550px" src="/images/wxpay.jpeg"/>
+        </div>
+    </div>
+    <div>
+        <h3>赞助记录</h3>
+        2023-03-14 开启赞助通道,赞助记录为手动录入的,存在周级别延迟,如有遗漏,请联系作者补充
+        <br/>
+        <table class="table table-striped table-bordered">
+            <tr>
+                <th>赞助人</th>
+                <th>赞助金额</th>
+                <th>赞助时间</th>
+            </tr>
+
+            <tr>
+                <td>陈**</td>
+                <td>99</td>
+                <td>2023-03-14</td>
+            </tr>
+        </table>
+    </div>
+</div>
+
+</body>
+</html>