feat: homework multi-image upload and crop
这个提交包含在:
91
backend/admin.html
普通文件
91
backend/admin.html
普通文件
@@ -0,0 +1,91 @@
|
||||
<!doctype html>
|
||||
<html lang="zh">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>作业后台</title>
|
||||
<style>
|
||||
:root {
|
||||
color-scheme: light;
|
||||
--ink: #1f2328;
|
||||
--paper: #fff7e6;
|
||||
--accent: #f05a28;
|
||||
--muted: #6b6b6b;
|
||||
}
|
||||
* { box-sizing: border-box; }
|
||||
body {
|
||||
margin: 0;
|
||||
font-family: "Noto Serif SC", "Songti SC", serif;
|
||||
background: var(--paper);
|
||||
color: var(--ink);
|
||||
}
|
||||
header {
|
||||
padding: 32px 40px 16px;
|
||||
border-bottom: 1px solid rgba(0,0,0,0.1);
|
||||
}
|
||||
h1 {
|
||||
margin: 0 0 6px;
|
||||
font-size: 28px;
|
||||
}
|
||||
p { margin: 0; color: var(--muted); }
|
||||
main { padding: 24px 40px 48px; }
|
||||
table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
background: #fff;
|
||||
border-radius: 16px;
|
||||
overflow: hidden;
|
||||
box-shadow: 0 12px 30px rgba(0,0,0,0.08);
|
||||
}
|
||||
th, td {
|
||||
padding: 14px 16px;
|
||||
text-align: left;
|
||||
border-bottom: 1px solid rgba(0,0,0,0.06);
|
||||
font-size: 14px;
|
||||
}
|
||||
th {
|
||||
background: #fff1d6;
|
||||
font-weight: 600;
|
||||
}
|
||||
tr:last-child td { border-bottom: none; }
|
||||
.badge {
|
||||
display: inline-block;
|
||||
padding: 4px 10px;
|
||||
border-radius: 999px;
|
||||
background: rgba(240,90,40,0.12);
|
||||
color: var(--accent);
|
||||
font-weight: 600;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<h1>作业管理后台</h1>
|
||||
<p>基础账号: admin / whoami139</p>
|
||||
</header>
|
||||
<main>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>ID</th>
|
||||
<th>用户名</th>
|
||||
<th>标题</th>
|
||||
<th>评分</th>
|
||||
<th>创建时间</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{{range .Assignments}}
|
||||
<tr>
|
||||
<td>{{.ID}}</td>
|
||||
<td>{{.Username}}</td>
|
||||
<td>{{.Title}}</td>
|
||||
<td><span class="badge">{{.Score}}</span></td>
|
||||
<td>{{.CreatedAt.Format "2006-01-02 15:04"}}</td>
|
||||
</tr>
|
||||
{{end}}
|
||||
</tbody>
|
||||
</table>
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
||||
在新工单中引用
屏蔽一个用户