auto-sync: 2026-05-20 20:44:21
This commit is contained in:
@@ -564,6 +564,35 @@ export default function EdictBoard() {
|
||||
</div>
|
||||
|
||||
{archiveFiltered.length === 0 && <EmptyState hasProject={true} />}
|
||||
|
||||
{/* 项目操作确认框 */}
|
||||
{showProjectConfirm && (
|
||||
<div style={{ position: 'fixed', inset: 0, background: 'rgba(0,0,0,0.5)', display: 'flex', alignItems: 'center', justifyContent: 'center', zIndex: 1000 }} onClick={() => setShowProjectConfirm(null)}>
|
||||
<div style={{ background: '#1a2236', border: '1px solid var(--line)', borderRadius: 12, padding: 24, minWidth: 320 }} onClick={e => e.stopPropagation()}>
|
||||
<div style={{ fontSize: 14, fontWeight: 600, marginBottom: 12 }}>
|
||||
{showProjectConfirm.action === 'archive' ? '📦 归档项目' : '🗑️ 删除项目'}
|
||||
</div>
|
||||
<div style={{ fontSize: 13, color: 'var(--muted)', marginBottom: 16 }}>
|
||||
确定要{showProjectConfirm.action === 'archive' ? '归档' : '删除'}「{showProjectConfirm.name}」吗?
|
||||
{showProjectConfirm.action === 'delete' && '\n此操作为逻辑删除,不会物理删除数据。'}
|
||||
</div>
|
||||
<div style={{ display: 'flex', gap: 8, justifyContent: 'flex-end' }}>
|
||||
<button onClick={() => setShowProjectConfirm(null)} style={{ padding: '6px 16px', borderRadius: 6, fontSize: 12, border: '1px solid var(--line)', background: 'var(--panel)', color: 'var(--fg)', cursor: 'pointer' }}>取消</button>
|
||||
<button onClick={confirmProjectAction} style={{ padding: '6px 16px', borderRadius: 6, fontSize: 12, border: 'none', background: showProjectConfirm.action === 'delete' ? '#ff4757' : 'var(--acc)', color: '#fff', cursor: 'pointer' }}>
|
||||
{showProjectConfirm.action === 'archive' ? '归档' : '删除'}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
|
||||
{/* 新建项目对话框 */}
|
||||
{showNewProject && (
|
||||
<NewProjectDialog
|
||||
onSubmit={handleCreateProject}
|
||||
onClose={() => setShowNewProject(false)}
|
||||
/>
|
||||
)}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user