加入美图网提取功能
This commit is contained in:
85
templates/group_auto_invite_ui.html
Normal file
85
templates/group_auto_invite_ui.html
Normal file
@@ -0,0 +1,85 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>群组管理</title>
|
||||
<style>
|
||||
body {
|
||||
font-family: Arial, sans-serif;
|
||||
background-color: #f4f4f4;
|
||||
margin: 0;
|
||||
padding: 20px;
|
||||
}
|
||||
h1 {
|
||||
text-align: center;
|
||||
color: #333;
|
||||
}
|
||||
.container {
|
||||
max-width: 800px;
|
||||
margin: 0 auto;
|
||||
padding: 20px;
|
||||
background-color: white;
|
||||
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
.form-group {
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
input[type="text"], input[type="submit"], select {
|
||||
padding: 10px;
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
input[type="submit"] {
|
||||
background-color: #007bff;
|
||||
color: white;
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
font-size: 16px;
|
||||
}
|
||||
input[type="submit"]:hover {
|
||||
background-color: #0056b3;
|
||||
}
|
||||
.result {
|
||||
margin-top: 20px;
|
||||
padding: 10px;
|
||||
background-color: #e7f4e7;
|
||||
border: 1px solid #d3f8d3;
|
||||
border-radius: 5px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<h1>群组管理</h1>
|
||||
|
||||
<div class="container">
|
||||
<form method="POST">
|
||||
<div class="form-group">
|
||||
<label for="key">Key:</label>
|
||||
<input type="text" id="key" name="key" >
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="group_id">Group ID:</label>
|
||||
<input type="text" id="group_id" name="group_id" >
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="action">Action:</label>
|
||||
<select id="action" name="action">
|
||||
<option value="add">添加群组ID</option>
|
||||
<option value="del">删除群组ID</option>
|
||||
<option value="get">获取所有群组ID</option>
|
||||
<option value="get_first">获取第一个群组ID</option>
|
||||
<option value="get_instructions">获取群组指令</option>
|
||||
</select>
|
||||
</div>
|
||||
<input type="submit" value="提交">
|
||||
</form>
|
||||
|
||||
{% if result %}
|
||||
<div class="result">{{ result }}</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
50
templates/index.html
Normal file
50
templates/index.html
Normal file
@@ -0,0 +1,50 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>系统菜单</title>
|
||||
<style>
|
||||
body {
|
||||
font-family: Arial, sans-serif;
|
||||
background-color: #f4f4f4;
|
||||
margin: 0;
|
||||
padding: 20px;
|
||||
}
|
||||
h1 {
|
||||
text-align: center;
|
||||
color: #333;
|
||||
}
|
||||
.container {
|
||||
max-width: 800px;
|
||||
margin: 0 auto;
|
||||
padding: 20px;
|
||||
background-color: white;
|
||||
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
button {
|
||||
padding: 10px 20px;
|
||||
margin: 10px;
|
||||
background-color: #007bff;
|
||||
color: white;
|
||||
border: none;
|
||||
border-radius: 5px;
|
||||
cursor: pointer;
|
||||
font-size: 16px;
|
||||
}
|
||||
button:hover {
|
||||
background-color: #0056b3;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<h1>欢迎进入系统</h1>
|
||||
|
||||
<div class="container">
|
||||
<button onclick="window.location.href='/redis_operations'">群组管理</button>
|
||||
<button onclick="window.location.href='/messages'">查看消息列表</button>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
110
templates/message_list.html
Normal file
110
templates/message_list.html
Normal file
@@ -0,0 +1,110 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>消息列表</title>
|
||||
<style>
|
||||
body {
|
||||
font-family: Arial, sans-serif;
|
||||
background-color: #f4f4f4;
|
||||
margin: 0;
|
||||
padding: 20px;
|
||||
}
|
||||
h1 {
|
||||
text-align: center;
|
||||
color: #333;
|
||||
}
|
||||
.container {
|
||||
max-width: 800px;
|
||||
margin: 0 auto;
|
||||
padding: 20px;
|
||||
background-color: white;
|
||||
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
table th, table td {
|
||||
padding: 10px;
|
||||
text-align: left;
|
||||
border: 1px solid #ddd;
|
||||
}
|
||||
table th {
|
||||
background-color: #f4f4f4;
|
||||
}
|
||||
.table-container {
|
||||
max-height: 400px; /* 设置表格的最大高度 */
|
||||
overflow-y: auto; /* 启用垂直滚动条 */
|
||||
}
|
||||
.pagination {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
margin-top: 20px;
|
||||
}
|
||||
.pagination a {
|
||||
padding: 8px 16px;
|
||||
margin: 0 5px;
|
||||
text-decoration: none;
|
||||
color: #007bff;
|
||||
border: 1px solid #ddd;
|
||||
border-radius: 5px;
|
||||
}
|
||||
.pagination a:hover {
|
||||
background-color: #f1f1f1;
|
||||
}
|
||||
.pagination span {
|
||||
padding: 8px 16px;
|
||||
margin: 0 5px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<h1>消息列表</h1>
|
||||
|
||||
<div class="container">
|
||||
<div class="table-container">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>ID</th>
|
||||
<th>群ID</th>
|
||||
<th>时间戳</th>
|
||||
<th>发送者</th>
|
||||
<th>内容</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for message in messages %}
|
||||
<tr>
|
||||
<td>{{ message[0] }}</td>
|
||||
<td>{{ message[1] }}</td>
|
||||
<td>{{ message[2] }}</td>
|
||||
<td>{{ message[3] }}</td>
|
||||
<td>{{ message[4] }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="pagination">
|
||||
{% if page > 1 %}
|
||||
<a href="/messages?page=1">首页</a>
|
||||
<a href="/messages?page={{ page - 1 }}">上一页</a>
|
||||
{% endif %}
|
||||
|
||||
<span>第 {{ page }} 页 / {{ total_pages }} 页</span>
|
||||
|
||||
{% if page < total_pages %}
|
||||
<a href="/messages?page={{ page + 1 }}">下一页</a>
|
||||
<a href="/messages?page={{ total_pages }}">末页</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user