feat: 卡片编辑/删除按钮 + dnfs 管理员豁免

- dnfs.js: 卡片底部新增编辑/删除按钮,复用下方表单支持编辑模式
  (startEdit/cancelEdit/updateNode/deleteChild),stopPropagation 防误触
- theme.css: 新增 card-actions/act-btn 按钮样式,编辑橙色/删除红色软底
- dnfs.py: ADMIN_USERS 统一管理豁免名单(admin, admin@qsont.me),
  update_note 新增管理员豁免,delete_note 同步改用名单
- dnfs/README.md: 同步更新所有权豁免说明
This commit is contained in:
qing committed 2026-07-29 11:22:30 +08:00
1 parent a0f6a14b5d
commit ace98caff6
4 files changed
+193 -7

No files matched your search

+26
View File
@@ -302,6 +302,32 @@ input[type="button"]:disabled {
font-variant-numeric: tabular-nums;
}
/* ===== Card Actions (dnfs 编辑/删除按钮) ===== */
.card-actions {
display: flex;
justify-content: flex-end;
gap: 0.5rem;
margin-top: 0.6rem;
}
.act-btn {
display: inline-flex;
align-items: center;
gap: 0.25rem;
padding: 0.25rem 0.7rem;
font-size: 0.75rem;
font-weight: 600;
border-radius: var(--radius-sm);
border: 1px solid transparent;
background: var(--accent-soft);
color: var(--accent-dark);
cursor: pointer;
transition: border-color 0.15s, opacity 0.15s, transform 0.1s;
}
.act-btn svg { width: 12px; height: 12px; flex-shrink: 0; }
.act-btn:hover { border-color: var(--accent); }
.act-del { background: var(--error-bg); color: var(--error); }
.act-del:hover { border-color: var(--error); }
/* ===== Minimap (dnfs) ===== */
.minimap {
position: fixed;