auto-sync: 2026-05-20 23:41:01

This commit is contained in:
cfdaily
2026-05-20 23:41:01 +08:00
parent b613b58a2f
commit dcfa64db77
+17 -6
View File
@@ -471,12 +471,23 @@ export default function EdictBoard() {
color: 'var(--fg)', cursor: 'pointer', minWidth: 120,
}}
>
<option value="">📋 </option>
<option value="_general">📝 </option>
<option disabled style={{ color: '#555' }}> </option>
{Object.entries(projects).filter(([pid]) => !pid.startsWith('_') && pid !== '__general__').map(([pid, info]: [string, any]) => (
<option key={pid} value={pid}>📁 {info.name || pid}</option>
))}
<option value="">📋 ({v2tasks.length})</option>
{(() => {
const counts: Record<string, number> = {};
(v2tasks || []).forEach((t: any) => {
const p = t._projectId || '_general';
counts[p] = (counts[p] || 0) + 1;
});
return (
<>
<option value="_general">📝 ({counts['_general'] || 0})</option>
<option disabled style={{ color: '#555' }}> </option>
{Object.entries(projects).filter(([pid]) => !pid.startsWith('_') && pid !== '__general__').map(([pid, info]: [string, any]) => (
<option key={pid} value={pid}>📁 {info.name || pid} ({counts[pid] || 0})</option>
))}
</>
);
})()}
</select>
{selectedProjectId && !selectedProjectId.startsWith('_') && selectedProjectId !== '__general__' && (() => {
const pInfo = projects[selectedProjectId] as any;