feat: record who created join codes and who added each node [CI]
This commit is contained in:
1 parent
6385c1b9a3
commit
359313a57b
19 files changed
+95
-37
No files matched your search
@@ -264,6 +264,12 @@ export function AgentDetail() {
|
||||
<dd>{a.public_visible ? '是' : '否'}</dd>
|
||||
<dt>注册时间</dt>
|
||||
<dd>{fmtTime(a.created_at)}</dd>
|
||||
{a.added_by ? (
|
||||
<>
|
||||
<dt>添加者</dt>
|
||||
<dd>{a.added_by}</dd>
|
||||
</>
|
||||
) : null}
|
||||
<dt>最后在线</dt>
|
||||
<dd>{fmtTime(a.last_seen_at)}</dd>
|
||||
<dt>标签</dt>
|
||||
|
||||
@@ -195,6 +195,7 @@ export function Agents() {
|
||||
<thead>
|
||||
<tr>
|
||||
<th>备注</th>
|
||||
<th>创建者</th>
|
||||
<th>使用</th>
|
||||
<th>注册后</th>
|
||||
<th>过期</th>
|
||||
@@ -209,6 +210,7 @@ export function Agents() {
|
||||
return (
|
||||
<tr key={t.id}>
|
||||
<td>{t.note || <span className="faint">—</span>}</td>
|
||||
<td className="muted">{t.created_by ?? '—'}</td>
|
||||
<td className="num">
|
||||
{t.uses} / {t.max_uses}
|
||||
</td>
|
||||
|
||||
@@ -256,6 +256,7 @@ export function Probes() {
|
||||
</div>
|
||||
<p className="faint" style={{ marginTop: 4 }}>
|
||||
创建于 {fmtTime(p.created_at)}
|
||||
{p.added_by ? `,由 ${p.added_by} 添加` : ''}
|
||||
{p.revoked_at ? `,吊销于 ${fmtTime(p.revoked_at)}` : ''}
|
||||
</p>
|
||||
{p.connections.length > 0 ? (
|
||||
|
||||
@@ -1153,6 +1153,7 @@ export interface components {
|
||||
public_host_auto: boolean;
|
||||
/** @default true */
|
||||
ipv6_host_auto: boolean;
|
||||
added_by?: null | string;
|
||||
};
|
||||
AgentIpv6Dto: {
|
||||
agent_id: string;
|
||||
@@ -1466,6 +1467,7 @@ export interface components {
|
||||
created_at: unknown;
|
||||
/** @default agent */
|
||||
role: string;
|
||||
created_by?: null | string;
|
||||
};
|
||||
JsonElement: unknown;
|
||||
KindDto: {
|
||||
@@ -1792,6 +1794,7 @@ export interface components {
|
||||
online: boolean;
|
||||
connections: components["schemas"]["ProbeConnectionDto"][];
|
||||
ipv6?: null | components["schemas"]["Ipv6DiagnosticDto"];
|
||||
added_by?: null | string;
|
||||
};
|
||||
ProblemDto: {
|
||||
type: string;
|
||||
|
||||
Reference in new issue
Block a user