students: эталоны лиц из всех фото профиля и привязка похожих лиц из карточки
- POST /api/students/:id/face-refs/from-profile берёт все фото профиля
(students.photo_path + student_photos) с дедупликацией и возвращает
{ refs, added, skipped }, фото без лица пропускаются
- «Похожие лица» в #studentFacesModal: селект ученика (по умолчанию
владелец) и кнопка «Привязать» через PUT /api/photo-faces/:id/assign
- face_id в GET /api/students/:id/face-photos для привязки
- миниатюры эталонов через faceRefThumbSrc(); PAGE_SIZE файлов/фото -> 28
- AGENTS.md: описание эталонов из всех фото профиля
This commit is contained in:
@@ -272,6 +272,18 @@ body{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;b
|
||||
.face-shot{position:relative;width:104px;height:78px;border-radius:8px;overflow:hidden;border:1px solid var(--border);flex:0 0 auto}
|
||||
.face-shot img{width:100%;height:100%;object-fit:cover;display:block;cursor:zoom-in}
|
||||
.face-shot a.face-src{position:absolute;left:4px;bottom:4px;background:rgba(0,0,0,.6);color:#fff;font-size:.6rem;font-weight:600;padding:1px 5px;border-radius:5px;text-decoration:none}
|
||||
.face-shot .face-score.manual{background:rgba(71,85,105,.9);color:#fff}
|
||||
.face-similar-row{display:flex;gap:12px;align-items:center;flex-wrap:wrap;padding:8px 0;border-bottom:1px solid var(--border)}
|
||||
.face-similar-row:last-child{border-bottom:none}
|
||||
.face-similar-row .face-shot{flex:0 0 104px;height:78px}
|
||||
.face-assign-wrap{flex:1 1 240px;display:flex;gap:8px;align-items:center;flex-wrap:wrap}
|
||||
.face-assign-select{flex:1 1 160px;min-width:120px;padding:4px 8px;border:1px solid var(--border);border-radius:6px;background:#fff;font-size:.85rem;cursor:pointer}
|
||||
.face-assign-btn{min-width:96px;height:34px;padding:0 14px;border-radius:6px;font-size:.85rem;font-weight:600;cursor:pointer}
|
||||
.face-assign-label{flex:1 1 120px;min-width:80px;font-size:.78rem;color:var(--muted)}
|
||||
.face-similar-row .face-shot.is-similar{border-color:var(--amber-500);background:linear-gradient(180deg,#fff7ed,var(--border))}
|
||||
.face-similar-row .face-shot.is-similar .face-src{color:#92400e}
|
||||
.face-similar-row .face-shot.is-similar .face-score{color:#b45309}
|
||||
|
||||
.face-shot.is-similar a.face-src{background:rgba(180,83,9,.92)}
|
||||
.face-shot .face-score{position:absolute;right:4px;top:4px;background:rgba(15,23,42,.78);color:#e2e8f0;font-size:.62rem;font-weight:700;padding:1px 5px;border-radius:5px}
|
||||
.face-shot .face-score.auto{background:rgba(37,99,235,.9);color:#fff}
|
||||
|
||||
Reference in New Issue
Block a user