Skip to content

Commit a211bfa

Browse files
committed
feat(web): add website completeness check feature
- Add "website completeness check" button to site list page - Implement getPageListData function to handle data loading and pagination - Update site list HTML structure and styling - Add Chinese language support for bootstrap-fileinput plugin
1 parent c1d47cf commit a211bfa

File tree

5 files changed

+37
-12
lines changed

5 files changed

+37
-12
lines changed

web/static/plugin/bootstrap-fileinput/css/fileinput.min.css

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

web/static/plugin/bootstrap-fileinput/js/fileinput.min.js

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

web/static/plugin/bootstrap-fileinput/js/zh.min.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

web/templates/site/site_add.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,13 @@
3131
</div>
3232
<div class="form-group">
3333
<label>网站地址</label>
34+
<small class="help-block">(支持多 URL 添加)</small>
3435
<textarea type="text" class="form-control" id="url"
35-
placeholder="URL 必须包含 http:// 或 https://且至少含有1个路径 例如: http://www.test.com/test.html,一行一个"></textarea>
36+
placeholder="必须包含 http:// 或 https://且至少含有1个路径例如: http://www.test.com/test.html 一行一个呦!"></textarea>
3637
</div>
3738
<div class="form-group">
3839
<label>网站启用</label>
39-
<small class="help-block">网站关闭后将不能展示!</small>
40+
<small class="help-block">(网站关闭后将不能展示!)</small>
4041
<div class="clearfix">
4142
<div class="custom-control custom-radio custom-control-inline">
4243
<input type="radio" id="statusOne" name="customRadioInline" class="custom-control-input" value="0"

web/templates/site/site_list.html

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,17 @@
44
<meta charset="utf-8">
55
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"/>
66
<link rel="stylesheet" type="text/css" href="/assets/static/admin/css/bootstrap.min.css">
7-
<link rel="stylesheet" href="https://cdn.lineicons.com/4.0/lineicons.css"/>
8-
<link href="/assets/static/plugin/bootstrap-multitabs/multitabs.min.css" rel="stylesheet" type="text/css">
7+
<link rel="stylesheet" type="text/css" href="/assets/static/plugin/bootstrap-multitabs/multitabs.min.css">
98
<link rel="stylesheet" type="text/css" href="/assets/static/plugin/bootstrap-select/bootstrap-select.css">
109
<link rel="stylesheet" type="text/css" href="/assets/static/plugin/jquery-confirm/jquery-confirm.min.css">
1110
<link rel="stylesheet" type="text/css" href="/assets/static/admin/css/style.min.css">
1211
<!-- 引入 bootstrap-fileinput CSS-->
13-
<link href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-fileinput/5.1.5/css/fileinput.min.css" rel="stylesheet">
12+
<link rel="stylesheet" type="text/css" href="/assets/static/plugin/bootstrap-fileinput/css/fileinput.min.css">
1413
</head>
1514

1615
<body>
1716
<div class="container-fluid p-t-15">
1817
<div class="row">
19-
2018
<div class="col-lg-12">
2119
<div class="card">
2220
<div class="card-toolbar d-flex flex-column flex-md-row">
@@ -27,7 +25,7 @@
2725
<input class="form-control" type="text" id="search-keyword" name="search-keyword" placeholder="请输入网址标题...">
2826
</div>
2927
<div class="form-group">
30-
<button class="btn btn-default btn-search" type="submit">搜索</button>
28+
<button class="btn btn-outline-success my-2 my-sm-0 btn-search" type="submit">搜索</button>
3129
</div>
3230

3331
</div>
@@ -74,8 +72,8 @@
7472
<script type="text/javascript" src="/assets/static/admin/js/httpclient.js"></script>
7573
<script type="text/javascript" src="/assets/static/admin/js/jquery.pagination.js"></script>
7674
<!-- 引入 bootstrap-fileinput JS 和 引入语言包-->
77-
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-fileinput/5.1.5/js/fileinput.min.js"></script>
78-
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-fileinput/5.1.5/js/locales/zh.min.js"></script>
75+
<script src="/assets/static/plugin/bootstrap-fileinput/js/fileinput.min.js"></script>
76+
<script src="/assets/static/plugin/bootstrap-fileinput/js/locales/zh.min.js"></script>
7977
<script type="text/javascript" src="/assets/static/admin/js/utils.js"></script>
8078

8179

@@ -194,7 +192,7 @@
194192
const business_title = $(this).attr('data-title');
195193
$.confirm({
196194
title: '谨慎操作',
197-
content: '确认要 <strong style="color: red">一键同步 </strong>:'+ business_title + ' 吗?',
195+
content: '确认要 <strong style="color: red">一键同步 </strong>:' + business_title + ' 吗?',
198196
icon: 'mdi mdi-alert',
199197
animation: 'scale',
200198
closeAnimation: 'zoom',
@@ -262,11 +260,11 @@
262260

263261
var tipMessage = "";
264262
var wantUsed = false;
265-
if (isUsed === "true" ) { // true=当前为启用状态,需要改成禁用
263+
if (isUsed === "true") { // true=当前为启用状态,需要改成禁用
266264
tipMessage = "禁用";
267265
wantUsed = false;
268266
}
269-
if (isUsed === "false" ) {
267+
if (isUsed === "false") {
270268
tipMessage = "启用";
271269
wantUsed = true;
272270
}

0 commit comments

Comments
 (0)