书栖网修改为书单网;用户反馈页面内容修改;修改nginx 5xx报错信息;删除前端console输出的法律信息
10
README.md
@@ -1,5 +1,5 @@
|
||||
<div align="center">
|
||||
<h1>书栖网 网站开源项目</h1>
|
||||
<h1>书单网 网站开源项目</h1>
|
||||
<p>一个完全免费无门槛的计算机类电子书下载网站</p>
|
||||
</div>
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
|
||||
## 简介
|
||||
|
||||
前项目为书栖网官网开源项目,你也可以通过这个项目搭建一个属于自己的电子书分享与管理平台。
|
||||
当前项目为书单网官网开源项目,你也可以通过这个项目搭建一个属于自己的电子书分享与管理平台。
|
||||
|
||||
> 目前项目已上线,网址:https://bookshelf.plus/
|
||||
>
|
||||
@@ -556,7 +556,7 @@ WARNING: All illegal access operations will be denied in a future release
|
||||
# ps -A | grep java
|
||||
ubuntu@xxxxxx:~$ ps -A | grep java
|
||||
558861 ? 00:00:13 java
|
||||
|
||||
|
||||
# 结束在后台运行的 Java 进程
|
||||
# sudo kill -9 [端口号]
|
||||
ubuntu@xxxxxx:~$ sudo kill -9 558861
|
||||
@@ -610,7 +610,7 @@ ubuntu@xxxxxx:~$ sudo kill -9 558861
|
||||
>
|
||||
> 解决方法:可以尝试调大云函数的超时时间(函数管理→函数配置→右上角**编辑**→环境配置分类下面执行超时时间适当调大一点)。如果调大超时时间后仍然不行,那么说明云函数无法访问到后端服务,请检查后端服务是否已经部署并启动,云函数中的域名是否配置正确。
|
||||
>
|
||||
>
|
||||
>
|
||||
>
|
||||
> **未创建 COS 触发器**:`JSON解析出错!`
|
||||
>
|
||||
@@ -626,7 +626,7 @@ ubuntu@xxxxxx:~$ sudo kill -9 558861
|
||||
>
|
||||
> 
|
||||
>
|
||||
>
|
||||
>
|
||||
>
|
||||
> 如果您还遇到了其他返回结果,请参考错误提示进行处理。
|
||||
|
||||
|
@@ -13,7 +13,6 @@ dotenv.config('./env');
|
||||
// 引入路由文件
|
||||
var indexRoute = require('./routes/index');
|
||||
var fontminRoute = require('./routes/fontmin');
|
||||
const { copyFileSync } = require('fs');
|
||||
|
||||
// 创建应用
|
||||
var app = express();
|
||||
|
@@ -10,7 +10,7 @@
|
||||
"prod-stop": "pm2 stop bookshelfplus-frontend",
|
||||
"clean": "node cleanup.js"
|
||||
},
|
||||
"description": "书栖网",
|
||||
"description": "书单网",
|
||||
"dependencies": {
|
||||
"body-parser": "^1.20.0",
|
||||
"compression": "^1.7.4",
|
||||
|
@@ -6,10 +6,7 @@ function getPageTitle(title) {
|
||||
return `${title} | ${site.title}`
|
||||
}
|
||||
router.get('/', function (req, res) {
|
||||
res.render('index', {
|
||||
title: site.title,
|
||||
headText: "书栖网",
|
||||
});
|
||||
res.render('index', {});
|
||||
});
|
||||
|
||||
router.get('/search', function (req, res) {
|
||||
|
@@ -4,5 +4,6 @@
|
||||
"_prefix": "http://bookshelf.plus/api",
|
||||
"prefix": "/api"
|
||||
},
|
||||
"title": "书栖网 (内测中)"
|
||||
"title": "书单网 (内测中)",
|
||||
"short_title": "书单网"
|
||||
}
|
@@ -1,7 +1,7 @@
|
||||
<div class="footer" style="margin-top: 10vh;">
|
||||
<hr>
|
||||
<p>
|
||||
书栖网 • 2021-2022
|
||||
<%= site.title %> • 2021-2022
|
||||
<br>
|
||||
<small>
|
||||
<br>
|
||||
@@ -77,7 +77,4 @@
|
||||
setTimeout(finishFontLoading, 1000);
|
||||
}
|
||||
});
|
||||
</script>
|
||||
<script>
|
||||
console.error(`%c请注意,未经允许获取网站数据属于【非法获取计算机信息系统数据】,需要承担响应法律责任。\n%c以下是《刑法》第二百八十五条节选。\n\n非法获取计算机信息系统数据、非法控制计算机信息系统罪\n根据《中华人民共和国刑法》第二百八十五条规定,非法获取计算机信息系统数据、非法控制计算机信息系统罪,是指违反国家规定,侵入国家事务、国防建设、尖端科学技术领域以外的计算机信息系统或者采用其他技术手段,获取该计算机信息系统中存储、处理或者传输的数据,情节严重的行为。\n刑法第285条第2款明确规定,犯本罪的,处三年以下有期徒刑或者拘役,并处或者单处罚金;情节特别严重的,处三年以上七年以下有期徒刑,并处罚金。\n\n提供侵入、非法控制计算机信息系统程序、工具罪\n根据《中华人民共和国刑法》第二百八十五条规定,刑法第285条第1款保护的是国家事务、国防建设、尖端科学技术领域的计算机信息系统。《刑法修正案(七)》第9条第1款在刑法第285条中增加1款作为第2款,扩大了对计算机信息系统的保护范围,将违反国家规定,侵入第1款规定以外的计算机信息系统或者采用其他技术手段,获取该计算机信息系统中存储、处理或者传输的数据,或者对该计算机信息系统实施非法控制,情节严重的行为规定为犯罪。`, "color: red; font-weight: bold;", "color: red; line-height: 1.8em;");
|
||||
</script>
|
@@ -2,7 +2,7 @@
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
||||
|
||||
<title><%= typeof title !=='undefined' ? title : "前端服务出现异常"; %></title>
|
||||
<title><%= site.title %></title>
|
||||
|
||||
<link rel="stylesheet" href="/assets/stylesheets/style.css">
|
||||
<script src="/assets/lib/jquery/3.6.0/jquery.min.js"></script>
|
||||
|
@@ -3,7 +3,7 @@
|
||||
<div class="grid-item"></div>
|
||||
<div class="grid-item">
|
||||
<nobr>
|
||||
<h1 onclick="location.href='/'" style="cursor: pointer; display: inline;">书栖网</h1>
|
||||
<h1 onclick="location.href='/'" style="cursor: pointer; display: inline;"><%= site.short_title %></h1>
|
||||
</nobr>
|
||||
</div>
|
||||
<div class="grid-item exnarrowHide" style="text-align: right; color: white;">
|
||||
|
@@ -9,6 +9,6 @@
|
||||
<%} else {%>
|
||||
<div class="footer" style="margin-top: 10vh;">
|
||||
<hr>
|
||||
<p>书栖网</p>
|
||||
<p><%= site.title %></p>
|
||||
</div>
|
||||
<%}%>
|
@@ -3,54 +3,17 @@
|
||||
<head>
|
||||
<%- include("./component/header.html"); %>
|
||||
<style>
|
||||
.wrap {
|
||||
margin: 20px auto;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
label {
|
||||
height: 25%;
|
||||
text-align: center;
|
||||
line-height: 30px;
|
||||
|
||||
margin-right: 20px;
|
||||
}
|
||||
|
||||
label:last-child {
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
label>div {
|
||||
width: 100%;
|
||||
height: 400px;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 31px;
|
||||
background: #eeeeee;
|
||||
display: none;
|
||||
}
|
||||
|
||||
input:checked+div {
|
||||
display: block;
|
||||
}
|
||||
|
||||
|
||||
.main {
|
||||
min-height: max-content;
|
||||
}
|
||||
|
||||
.footer {
|
||||
margin-top: calc(400px + 10vh) !important;
|
||||
}
|
||||
|
||||
.click2copy {
|
||||
cursor: pointer;
|
||||
user-select: all;
|
||||
}
|
||||
|
||||
.main p {
|
||||
font-size: 14px !important;
|
||||
font-family: initial !important;
|
||||
transition: all 0.2s;
|
||||
}
|
||||
.click2copy:hover {
|
||||
background-color: grey;
|
||||
color: white;
|
||||
padding: 0 3px;
|
||||
border-radius: 5px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
@@ -60,78 +23,8 @@
|
||||
<h1><%= headText %></h1>
|
||||
<div id="container">
|
||||
<p>
|
||||
反馈前请选择正确的分类,否则反馈经过二次转接,响应时间将会变长。
|
||||
反馈功能正在开发中,在此期间,相关反馈请发送邮件至 <span class="click2copy">admin@only4.work</span> ,并在邮件主题前标注 <span class="click2copy">【书单网|反馈】</span>。
|
||||
</p>
|
||||
<div class="wrap">
|
||||
<label>
|
||||
<input type="radio" name="tab">版权投诉
|
||||
<div>
|
||||
<p>
|
||||
<br>
|
||||
</p>
|
||||
<p>
|
||||
版权问题请发送邮件至 <span class="click2copy">2291200076@qq.com</span>,并请在标题前注明<b class="click2copy">【加急丨书栖网丨版权投诉】</b>
|
||||
</p>
|
||||
<p>
|
||||
(版权投诉与其他反馈邮箱不同,请注意)
|
||||
</p>
|
||||
<p>
|
||||
<br>
|
||||
</p>
|
||||
<p>
|
||||
实在抱歉对您造成了困扰,版权投诉我们将会优先加急处理,最迟会在3个工作日内以邮件形式回复至您的发件邮箱中,届时若您未收到相关邮件,烦请检查下是否被归垃圾邮件。
|
||||
</p>
|
||||
</div>
|
||||
</label>
|
||||
<label>
|
||||
<input type="radio" name="tab" checked>下载链接失效
|
||||
<div>
|
||||
<p>
|
||||
<br>
|
||||
</p>
|
||||
<p>
|
||||
请前往下载页面,点击链接旁的 <img src="/assets/image/svg/feedback.svg" style="width: 1em; height: 1em;"/> 按钮进行反馈。
|
||||
</p>
|
||||
</div>
|
||||
</label>
|
||||
<label>
|
||||
<input type="radio" name="tab">合作
|
||||
<div>
|
||||
<p>
|
||||
<br>
|
||||
</p>
|
||||
<p>
|
||||
如需合作,请发送邮件至 <span class="click2copy">admin@only4.work</span>,并在标题前注明<b class="click2copy">【书栖网丨合作】</b>
|
||||
</p>
|
||||
<p>
|
||||
<br>
|
||||
</p>
|
||||
<p>
|
||||
ps: 本站谢绝一切形式的商业合作,所有的合作都是建立在免费、无偿的基础上,望理解。
|
||||
</p>
|
||||
</div>
|
||||
</label>
|
||||
<label>
|
||||
<input type="radio" name="tab">意见建议、其他
|
||||
<!-- <div>
|
||||
<p>
|
||||
此处仅支持纯文字反馈,如果需要添加图片或其他附件,请发送邮件至 <span class="click2copy">admin@only4.work</span>
|
||||
</p>
|
||||
<textarea style="width: 100%; height: 87.5%;">请输入...</textarea>
|
||||
<div style="width: 100%; display: grid; place-items: center;">
|
||||
<input type="button" value="提交" style="width: 100px; height: 30px;">
|
||||
</div>
|
||||
</div> -->
|
||||
<div>
|
||||
<p>
|
||||
<br>
|
||||
</p>
|
||||
<p>
|
||||
请发送邮件至 <span class="click2copy">admin@only4.work</span>,并在标题前注明<b class="click2copy">【书栖网丨意见建议】</b>
|
||||
</p>
|
||||
</div>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
<%- include("./component/footer.html"); %>
|
||||
|
@@ -7,7 +7,7 @@
|
||||
<%- include("./component/navbar.html"); %>
|
||||
<div class="main">
|
||||
<div class="siteTitle">
|
||||
<h1><%=headText%></h1>
|
||||
<h1><%= site.short_title %></h1>
|
||||
</div>
|
||||
<%- include("./component/searchbox.html"); %>
|
||||
<div class="sloganBox">
|
||||
|
@@ -163,7 +163,7 @@ public class QCloudCosUtils {
|
||||
|
||||
// 填写本次请求的参数,需与实际请求相同,能够防止用户篡改此签名的 HTTP 请求的参数
|
||||
Map<String, String> params = new HashMap<>();
|
||||
params.put("by", "书栖网 bookshelf.plus");
|
||||
params.put("by", "书单网 bookshelf.plus");
|
||||
params.put("userId", String.valueOf(userId));
|
||||
params.put("guid", urlGUID);
|
||||
|
||||
@@ -226,7 +226,7 @@ public class QCloudCosUtils {
|
||||
|
||||
// 填写本次请求的参数,需与实际请求相同,能够防止用户篡改此签名的 HTTP 请求的参数
|
||||
Map<String, String> params = new HashMap<>();
|
||||
req.addRequestParameter("by", "书栖网 bookshelf.plus");
|
||||
req.addRequestParameter("by", "书单网 bookshelf.plus");
|
||||
req.addRequestParameter("userId", String.valueOf(userId));
|
||||
req.addRequestParameter("guid", urlGUID);
|
||||
// 填写本次请求的头部
|
||||
|
@@ -24,7 +24,7 @@ public class SwaggerConfig {
|
||||
|
||||
private ApiInfo apiInfo() {
|
||||
return new ApiInfoBuilder()
|
||||
.title("书栖网 服务端接口文档")
|
||||
.title("书单网 服务端接口文档")
|
||||
.description("RESTful API | bookshelf.plus")
|
||||
// .license("MIT")
|
||||
// .contact(new Contact("程序员小墨", "only4.work", "admin@only4.work"))
|
||||
|
@@ -14,9 +14,11 @@
|
||||
<body>
|
||||
<h1>Oh No! 服务器要炸啦!</h1>
|
||||
<p>对不起,当前网站访问量过大,已超出服务器的最大处理能力,已触发自动保护机制。也请您不要频繁刷新,让服务器喝口水、喘口气儿吧~</p>
|
||||
<p>我们还是一如既往完全免费的书栖网,在网站不可用期间,大家可以前往Git仓库下载电子书。</p>
|
||||
<p>本站由程序员小墨开发并开源,不接受打赏。如果您想支持本站,可以去开源仓库或<a href="https://space.bilibili.com/457109942">去B站</a>为我点个Star,如果您有能力的话,也欢迎前往项目开源仓库为项目提交Pr。</p>
|
||||
<p>本站由程序员小墨开发并开源,不接受打赏。如果您想支持本站,可以去B站或开源仓库为我点个Star,如果您有能力的话,也欢迎前往项目开源仓库为项目提交Pr。</p>
|
||||
<p>感谢大家的支持。</p>
|
||||
<p>B站: <a href="https://space.bilibili.com/457109942">https://space.bilibili.com/457109942</a></p>
|
||||
<p>Gitee: <a href="https://gitee.com/bookshelfplus/bookshelfplus">https://gitee.com/bookshelfplus/bookshelfplus</a></p>
|
||||
<p>Github: <a href="https://github.com/bookshelfplus/bookshelfplus">https://github.com/bookshelfplus/bookshelfplus</a></p>
|
||||
<p style="text-align: center;"><em>书栖网</em><br><em><span id="date"></span></em></p>
|
||||
<script>
|
||||
var d = new Date();
|
||||
|
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 19 KiB |
Before Width: | Height: | Size: 31 KiB After Width: | Height: | Size: 31 KiB |
Before Width: | Height: | Size: 38 KiB After Width: | Height: | Size: 38 KiB |
Before Width: | Height: | Size: 5.8 KiB After Width: | Height: | Size: 5.8 KiB |
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 3.2 KiB |
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 19 KiB |
Before Width: | Height: | Size: 32 KiB After Width: | Height: | Size: 32 KiB |
Before Width: | Height: | Size: 39 KiB After Width: | Height: | Size: 39 KiB |
Before Width: | Height: | Size: 5.8 KiB After Width: | Height: | Size: 5.8 KiB |
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 2.8 KiB |
Before Width: | Height: | Size: 3.9 KiB After Width: | Height: | Size: 3.9 KiB |
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 2.9 KiB |
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 4.2 KiB |
Before Width: | Height: | Size: 487 B After Width: | Height: | Size: 487 B |
Before Width: | Height: | Size: 767 B After Width: | Height: | Size: 767 B |
Before Width: | Height: | Size: 465 B After Width: | Height: | Size: 465 B |
Before Width: | Height: | Size: 519 B After Width: | Height: | Size: 519 B |
Before Width: | Height: | Size: 815 B After Width: | Height: | Size: 815 B |
Before Width: | Height: | Size: 504 B After Width: | Height: | Size: 504 B |
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 19 KiB |
Before Width: | Height: | Size: 91 KiB After Width: | Height: | Size: 91 KiB |
Before Width: | Height: | Size: 113 KiB After Width: | Height: | Size: 113 KiB |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 891 B After Width: | Height: | Size: 891 B |
Before Width: | Height: | Size: 690 B After Width: | Height: | Size: 690 B |
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 19 KiB |
Before Width: | Height: | Size: 5.7 KiB After Width: | Height: | Size: 5.7 KiB |
Before Width: | Height: | Size: 8.5 KiB After Width: | Height: | Size: 8.5 KiB |
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 968 B After Width: | Height: | Size: 968 B |
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 19 KiB |
Before Width: | Height: | Size: 9.3 KiB After Width: | Height: | Size: 9.3 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 3.7 KiB After Width: | Height: | Size: 3.7 KiB |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 19 KiB |
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 5.9 KiB After Width: | Height: | Size: 5.9 KiB |
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 6.0 KiB After Width: | Height: | Size: 6.0 KiB |
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 2.6 KiB |
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 46 KiB After Width: | Height: | Size: 46 KiB |
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 5.4 KiB After Width: | Height: | Size: 5.4 KiB |