ok
This commit is contained in:
@@ -0,0 +1,157 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>王者插件功能</title>
|
||||
<style>
|
||||
body {
|
||||
margin: 0;
|
||||
padding: 40px 20px;
|
||||
background: linear-gradient(180deg, #f5f7fb 0%, #eef1f7 100%);
|
||||
color: #2c2c33;
|
||||
font-family: "Microsoft YaHei", Arial, sans-serif;
|
||||
}
|
||||
|
||||
/* 页面主体宽度控制 */
|
||||
.container {
|
||||
max-width: 980px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
/* 顶部标题 */
|
||||
.header {
|
||||
margin-bottom: 36px;
|
||||
}
|
||||
|
||||
.header h1 {
|
||||
font-size: 42px;
|
||||
margin: 0 0 10px;
|
||||
color: #1f2a44;
|
||||
}
|
||||
|
||||
.header p {
|
||||
font-size: 20px;
|
||||
color: #5a627a;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* 分组 */
|
||||
.group {
|
||||
margin-bottom: 42px;
|
||||
}
|
||||
|
||||
.group-title {
|
||||
font-size: 30px;
|
||||
font-weight: bold;
|
||||
margin-bottom: 18px;
|
||||
padding-left: 14px;
|
||||
border-left: 6px solid #4f7cff;
|
||||
color: #1f2a44;
|
||||
}
|
||||
|
||||
/* 单列 */
|
||||
.command-grid {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr;
|
||||
gap: 14px;
|
||||
}
|
||||
|
||||
/* 指令行 */
|
||||
.command {
|
||||
background: #ffffff;
|
||||
border-radius: 12px;
|
||||
padding: 14px 18px;
|
||||
box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 18px;
|
||||
}
|
||||
|
||||
.command::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
width: 4px;
|
||||
height: 100%;
|
||||
background: #4f7cff;
|
||||
}
|
||||
|
||||
.cmd-name {
|
||||
font-size: 24px;
|
||||
font-weight: bold;
|
||||
color: #2b3a67;
|
||||
white-space: nowrap;
|
||||
min-width: 140px;
|
||||
}
|
||||
|
||||
.cmd-usage {
|
||||
font-size: 22px;
|
||||
color: #1f2a44;
|
||||
background: #f0f3ff;
|
||||
padding: 6px 12px;
|
||||
border-radius: 6px;
|
||||
font-family: Consolas, "Courier New", monospace;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
/* 提示 */
|
||||
.tip {
|
||||
margin-top: 40px;
|
||||
font-size: 16px;
|
||||
color: #5a5f73;
|
||||
background: #fffbe6;
|
||||
padding: 16px 20px;
|
||||
border-left: 6px solid #ffcc00;
|
||||
border-radius: 10px;
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
/* 小屏适配 */
|
||||
@media (max-width: 640px) {
|
||||
.cmd-name {
|
||||
min-width: auto;
|
||||
}
|
||||
|
||||
.command {
|
||||
flex-wrap: wrap;
|
||||
gap: 10px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div class="container">
|
||||
|
||||
<div class="header">
|
||||
<h1>王者插件功能</h1>
|
||||
<p>astrbot_plugin_gok 指令说明与使用示例</p>
|
||||
</div>
|
||||
|
||||
<div class="group">
|
||||
<div class="group-title">基础功能</div>
|
||||
<div class="command-grid">
|
||||
<div class="command"><div class="cmd-name">王者功能</div><div class="cmd-usage">王者功能</div></div>
|
||||
<div class="command"><div class="cmd-name">王者战绩</div><div class="cmd-usage">王者战绩 角色/营地ID</div></div>
|
||||
<div class="command"><div class="cmd-name">王者资料</div><div class="cmd-usage">王者资料 角色/营地ID</div></div>
|
||||
<div class="command"><div class="cmd-name">角色查看</div><div class="cmd-usage">角色查看</div></div>
|
||||
<div class="command"><div class="cmd-name">角色添加</div><div class="cmd-usage">角色添加 营地ID 角色</div></div>
|
||||
<div class="command"><div class="cmd-name">角色修改</div><div class="cmd-usage">角色修改 营地ID 角色</div></div>
|
||||
<div class="command"><div class="cmd-name">角色删除</div><div class="cmd-usage">角色删除 营地ID</div></div>
|
||||
<div class="command"><div class="cmd-name">角色查询</div><div class="cmd-usage">角色查询 营地ID/角色</div></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="tip">
|
||||
<strong>使用提示:</strong><br>
|
||||
1. 指令里面的角色指的是自定义的查询名称<br>
|
||||
2. 战绩和资料的指令必须 token 可以使用<br>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -2,7 +2,7 @@
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>王者荣耀 — 仇人列表</title>
|
||||
<title>角色查看</title>
|
||||
|
||||
<style>
|
||||
body {
|
||||
@@ -19,7 +19,7 @@
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 32px;
|
||||
font-size: 48px;
|
||||
margin-bottom: 25px;
|
||||
color: #222;
|
||||
font-weight: 800;
|
||||
@@ -27,26 +27,27 @@
|
||||
}
|
||||
|
||||
table {
|
||||
width: 100%;
|
||||
width: 66%;
|
||||
border-collapse: collapse;
|
||||
background: white;
|
||||
border-radius: 12px;
|
||||
overflow: hidden;
|
||||
box-shadow: 0 4px 16px rgba(0,0,0,0.08);
|
||||
margin-top: 10px;
|
||||
text-align: left; /* 不影响表格内容 */
|
||||
text-align: left;
|
||||
margin: 10px auto;
|
||||
}
|
||||
|
||||
thead {
|
||||
background: #d93939;
|
||||
color: white;
|
||||
font-size: 18px;
|
||||
font-size: 27px;
|
||||
}
|
||||
|
||||
th, td {
|
||||
padding: 14px 12px;
|
||||
border-bottom: 1px solid #eee;
|
||||
font-size: 16px;
|
||||
font-size: 24px;
|
||||
}
|
||||
|
||||
tbody tr:hover {
|
||||
@@ -65,27 +66,21 @@
|
||||
<body>
|
||||
|
||||
<div class="container">
|
||||
<h1>仇人列表</h1>
|
||||
<h1>角色查看</h1>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>ID</th>
|
||||
<th>名称</th>
|
||||
<th>描述</th>
|
||||
<th>时间</th>
|
||||
<th>记录者</th>
|
||||
<th>王者营地ID</th>
|
||||
<th>角色名称</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
{% for m in lists %}
|
||||
<tr>
|
||||
<td>{{ m.id }}</td>
|
||||
<td>{{ m.gokid }}</td>
|
||||
<td>{{ m.name }}</td>
|
||||
<td class="text-col">{{ m.text }}</td>
|
||||
<td>{{ m.time }}</td>
|
||||
<td>{{ m.user }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
@@ -94,4 +89,4 @@
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
@@ -1,97 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>王者荣耀 — 仇人列表</title>
|
||||
|
||||
<style>
|
||||
body {
|
||||
font-family: 'Microsoft YaHei', Arial, sans-serif;
|
||||
background: #f1f2f6;
|
||||
margin: 0;
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
.container {
|
||||
max-width: 1000px;
|
||||
margin: 0 auto;
|
||||
text-align: center; /* ★ 让容器内标题更自然居中 */
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 32px;
|
||||
margin-bottom: 25px;
|
||||
color: #222;
|
||||
font-weight: 800;
|
||||
text-align: center; /* ★ 强制居中 */
|
||||
}
|
||||
|
||||
table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
background: white;
|
||||
border-radius: 12px;
|
||||
overflow: hidden;
|
||||
box-shadow: 0 4px 16px rgba(0,0,0,0.08);
|
||||
margin-top: 10px;
|
||||
text-align: left; /* 不影响表格内容 */
|
||||
}
|
||||
|
||||
thead {
|
||||
background: #d93939;
|
||||
color: white;
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
th, td {
|
||||
padding: 14px 12px;
|
||||
border-bottom: 1px solid #eee;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
tbody tr:hover {
|
||||
background: #fff2f2;
|
||||
}
|
||||
|
||||
.text-col {
|
||||
max-width: 360px;
|
||||
line-height: 1.5em;
|
||||
word-break: break-word;
|
||||
font-weight: 600;
|
||||
color: #333;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div class="container">
|
||||
<h1>仇人列表</h1>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>ID</th>
|
||||
<th>名称</th>
|
||||
<th>描述</th>
|
||||
<th>时间</th>
|
||||
<th>记录者</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
{% for m in lists %}
|
||||
<tr>
|
||||
<td>{{ m.id }}</td>
|
||||
<td>{{ m.name }}</td>
|
||||
<td class="text-col">{{ m.text }}</td>
|
||||
<td>{{ m.time }}</td>
|
||||
<td>{{ m.user }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user