Add member registry web application
This commit is contained in:
commit
2fc3568484
12 files changed
+379
No files matched your search
@@ -0,0 +1,3 @@
|
||||
@import url('');
|
||||
:root{color-scheme:dark;--ink:#e7edf5;--muted:#8996a7;--line:#273241;--bg:#10151d;--blue:#69a7ff;--navy:#143b70;--green:#61c795;--radius:15px;--surface:#171e28;--surface-2:#1c2531;--stroke:#2b3746}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.45 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}button,input,select,textarea{font:inherit}button,a,select{touch-action:manipulation}.shell{min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:252px;background:#fff;border-right:1px solid var(--line);padding:26px 18px;display:flex;flex-direction:column;z-index:2}.brand{display:flex;align-items:center;gap:11px;text-decoration:none;color:inherit;padding:0 3px 31px}.brand-mark{width:40px;height:40px;border-radius:12px;background:#e9f2ff;color:var(--blue);font-weight:800;font-size:25px;display:grid;place-items:center}.brand b{font-size:13px;letter-spacing:.02em}.brand small{display:block;font-size:11px;color:var(--muted);margin-top:4px}.nav-label,.eyebrow{font-size:10px;font-weight:750;letter-spacing:.11em;color:#8994a0}.nav-label{margin:4px 8px 10px}.nav-item{height:42px;border-radius:9px;padding:0 12px;display:flex;align-items:center;gap:11px;text-decoration:none;color:#566270;font-weight:600}.nav-item span{font-size:17px}.nav-item.active{color:var(--blue);background:#edf4ff}.side-note{margin-top:auto;margin-bottom:22px;padding:16px;background:#f7f9fb;border:1px solid #edf0f3;border-radius:12px}.note-icon{color:#c18735}.side-note strong{display:block;font-size:12px;margin-top:8px}.side-note p{font-size:11px;line-height:1.5;color:var(--muted);margin:5px 0 0}.side-bottom{font-size:11px;color:#74808c;padding:0 5px}.dot,.live-dot{display:inline-block;width:7px;height:7px;background:#2d9b68;border-radius:50%;margin-right:6px}.main{margin-left:252px;padding:38px clamp(22px,4vw,58px) 22px;max-width:1700px}.topbar{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:27px}.topbar h1{font-size:28px;letter-spacing:-.04em;margin:5px 0 0}.top-actions{display:flex;gap:9px}.btn{height:40px;border-radius:9px;padding:0 14px;border:1px solid transparent;display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none;cursor:pointer;font-size:12px;font-weight:650;transition:background .16s,transform .16s}.btn:hover{transform:translateY(-1px)}.btn-primary{color:#fff;background:var(--blue);box-shadow:0 3px 8px #1769d226}.btn-primary:hover{background:#105bb9}.btn-light{background:#fff;border-color:#e1e6eb;color:#394653}.btn-light:hover{background:#f7f9fb}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:22px}.stat-card{padding:17px 19px;background:#fff;border:1px solid var(--line);border-radius:var(--radius);min-width:0}.stat-top{display:flex;justify-content:space-between;align-items:center;color:#687582;font-size:12px}.stat-icon{width:29px;height:29px;border-radius:9px;display:grid;place-items:center;font-size:15px}.blue{background:#edf4ff;color:#2471cc}.green{background:#edf8f2;color:#25845c}.amber{background:#fff7e8;color:#b47a20}.violet{background:#f4efff;color:#7658be}.stat-card>strong{display:block;font-size:27px;letter-spacing:-.04em;margin:12px 0 2px}.stat-card>small{font-size:11px;color:#929ca6}.panel{background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}.panel-head{display:flex;align-items:center;justify-content:space-between;padding:20px 22px 16px}.panel-head h2{font-size:16px;margin:0;letter-spacing:-.02em}.panel-head p{font-size:11px;color:var(--muted);margin:4px 0 0}.head-meta{color:#72808c;font-size:11px}.toolbar{display:flex;gap:10px;padding:0 22px 16px}.search{height:39px;display:flex;align-items:center;gap:9px;flex:1;max-width:530px;border:1px solid #e4e8ed;border-radius:8px;padding:0 11px;color:#8994a0}.search>span{font-size:20px}.search input{border:0;outline:0;min-width:0;width:100%;background:transparent;font-size:12px;color:var(--ink)}.filter{height:39px;border:1px solid #e4e8ed;border-radius:8px;padding:0 10px;display:flex;align-items:center;gap:7px;color:#7c8792;font-size:11px}.filter select{border:0;background:transparent;outline:0;color:#354352;max-width:145px;font-size:11px}.table-wrap{overflow:auto;border-top:1px solid var(--line)}table{width:100%;min-width:820px;border-collapse:collapse;text-align:left}thead{background:#fafbfc}th{font-size:9px;font-weight:750;color:#909aa4;letter-spacing:.07em;padding:12px 15px;border-bottom:1px solid var(--line);white-space:nowrap}th:first-child,td:first-child{padding-left:22px}td{padding:12px 15px;border-bottom:1px solid #eff1f4;font-size:12px;color:#55616e}tbody tr:hover{background:#fbfcfe}.person{display:flex;align-items:center;gap:10px;min-width:200px}.avatar{width:33px;height:33px;flex:0 0 auto;border-radius:10px;background:#edf3fa;color:#395c83;font-size:11px;font-weight:750;display:grid;place-items:center}.person-name{display:block;font-weight:650;color:#293542}.person-sub{diLine truncated
|
||||
@media(max-width:1050px){.sidebar{width:215px}.main{margin-left:215px;padding-left:25px;padding-right:25px}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:700px){.sidebar{position:static;width:auto;height:auto;padding:12px 16px;border-right:0;border-bottom:1px solid var(--line);display:block}.brand{padding:0}.brand-mark{width:35px;height:35px}.nav-label,.nav-item,.side-note,.side-bottom{display:none}.main{margin:0;padding:22px 14px}.topbar{align-items:flex-start;margin-bottom:17px}.topbar h1{font-size:24px}.eyebrow{font-size:8px}.top-actions{gap:6px}.btn{height:38px;padding:0 10px;font-size:11px}.top-actions .btn-light span{display:none}.stats{gap:9px;margin-bottom:14px}.stat-card{padding:13px}.stat-top{font-size:10px;gap:4px}.stat-icon{width:25px;height:25px}.stat-card>strong{font-size:23px;margin-top:9px}.stat-card>small{font-size:9px}.panel-head{padding:16px 14px 12px}.panel-head h2{font-size:14px}.panel-head p{font-size:10px}.head-meta{font-size:9px}.toolbar{padding:0 12px 12px;flex-direction:column}.search{max-width:none;width:100%}.filter{width:max-content}.table-wrap{overflow:visible}table{min-width:0}thead{display:none}tbody tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px 5px;padding:12px 13px;border-bottom:1px solid var(--line)}td{padding:0;border:0}.person{min-width:0}.person-name{font-size:11px}.person-sub{font-size:9px}.contact-cell{grid-column:1;grid-row:2;padding-left:43px}.district-cell{grid-column:1;grid-row:3;padding-left:43px;font-size:10px}.status-cell{grid-column:2;grid-row:1;align-self:center}.consent-cell{grid-column:2;grid-row:2;justify-self:end}.actions-cell{grid-column:2;grid-row:3;justify-self:end}.table-foot{padding:11px 13px;font-size:9px;align-items:flex-start}.table-foot span:first-child{max-width:58%}.footer-note{text-align:left;font-size:9px}.form-grid{grid-template-columns:1fr;gap:11px}.form-grid .wide{grid-column:auto}dialog form{padding:19px}.dialog-head h2{font-size:18px}.dialog-foot{flex-wrap:wrap}.dialog-foot .btn{font-size:10px}}
|
||||
@@ -0,0 +1,16 @@
|
||||
const $=s=>document.querySelector(s), rows=$('#rows'), dlg=$('#memberDialog'), form=$('#memberForm');
|
||||
let timer,toastTimer,pendingPhoto=null;
|
||||
const esc=s=>String(s??'').replace(/[&<>"']/g,c=>({'&':'&','<':'<','>':'>','"':'"',"'":'''}[c]));
|
||||
const initials=name=>String(name||'').trim().split(/\s+/).slice(0,2).map(x=>x[0]||'').join('').toUpperCase();
|
||||
function toast(msg){const t=$('#toast');t.textContent=msg;t.classList.add('show');clearTimeout(toastTimer);toastTimer=setTimeout(()=>t.classList.remove('show'),2600)}
|
||||
async function api(url,opts={}){const h={'Content-Type':'application/json',...(opts.headers||{})};if(window.authCsrf)h['X-CSRF-Token']=window.authCsrf;const r=await fetch(url,{...opts,headers:h});const data=await r.json().catch(()=>({}));if(!r.ok)throw Error(data.error||'Не удалось выполнить запрос');return data}
|
||||
function badgeStatus(s){const cls=s==='Действующий'?'active':s==='Кандидат'?'candidate':s==='Приостановил участие'?'paused':s==='Выбыл'?'left':'';return `<span class="badge ${cls}">${esc(s||'Не уточнён')}</span>`}
|
||||
async function load(){try{const params=new URLSearchParams({q:$('#search').value,status:$('#status').value});const [list,stats]=await Promise.all([api('/api/members?'+params),api('/api/stats')]);$('#total').textContent=stats.total;$('#active').textContent=stats.active;$('#unknown').textContent=stats.unknown;$('#phoneCount').textContent=stats.phone;$('#resultCount').textContent=`Показано ${list.length} из ${stats.total}`;$('#footCount').textContent=stats.total;$('#empty').hidden=list.length!==0;rows.innerHTML=list.map(x=>`<tr><td><div class="person"><span class="avatar">${x.photo?`<img src="${esc(x.photo)}" alt="Фото ${esc(x.name)}">`:esc(initials(x.name))}</span><span><span class="person-name">${esc(x.name)}</span><span class="person-sub">Участник реестра</span></span></div></td><td class="contact-cell">${window.currentRole?`<div class="contact-main">${esc(x.phone||'Телефон не указан')}</div><div class="contact-sub">${esc(x.email||'')}</div>`:'<div class="contact-main muted">Войдите, чтобы увидеть контакт</div>'}</td><td class="district-cell">${esc(x.district||'—')}</td><td class="status-cell">${badgeStatus(x.status)}</td><td class="consent-cell"><span class="badge ${x.consent==='Есть'?'consent':''}">${esc(x.consent||'Не уточнено')}</span></td><td class="actions-cell">${['moderator','admin'].includes(window.currentRole)?`<button class="edit-btn" aria-label="Редактировать ${esc(x.name)}" data-edit="${x.id}">···</button>`:''}</td></tr>`).join('')}catch(e){toast(e.message)}}
|
||||
$('#memberPhoto').addEventListener('change',e=>{pendingPhoto=e.target.files[0]||null;const img=$('#photoPreview');if(pendingPhoto){if(pendingPhoto.size>3000000){toast('Файл должен быть не больше 3 МБ');e.target.value='';pendingPhoto=null;img.hidden=true;return}img.src=URL.createObjectURL(pendingPhoto);img.hidden=false}else img.hidden=true});
|
||||
async function uploadPhoto(id){if(!pendingPhoto)return;const fd=new FormData();fd.append('photo',pendingPhoto);const r=await fetch('/api/members/photo',{method:'POST',headers:{'X-Member-Id':String(id),'X-CSRF-Token':window.authCsrf},body:fd});const d=await r.json();if(!r.ok)throw Error(d.error||'Не удалось загрузить фото');pendingPhoto=null}
|
||||
function openForm(data={}){form.reset();pendingPhoto=null;$('#photoPreview').hidden=true;if(data.photo){$('#photoPreview').src=data.photo;$('#photoPreview').hidden=false}form.elements.id.value=data.id||'';for(const k of ['name','phone','email','joined_on','status','district','role','last_contact','consent','notes'])if(data[k]!=null)form.elements[k].value=data[k];$('#dialogTitle').textContent=data.id?'Изменить участника':'Новый участник';$('#deleteBtn').hidden=!data.id||window.currentRole!=='admin';dlg.showModal();form.elements.name.focus()}
|
||||
$('#addBtn').addEventListener('click',()=>openForm());$('#closeDialog').addEventListener('click',()=>dlg.close());$('#cancelBtn').addEventListener('click',()=>dlg.close());dlg.addEventListener('click',e=>{if(e.target===dlg)dlg.close()});
|
||||
rows.addEventListener('click',async e=>{const b=e.target.closest('[data-edit]');if(!b)return;try{openForm(await api('/api/members/'+b.dataset.edit))}catch(err){toast(err.message)}});
|
||||
form.addEventListener('submit',async e=>{e.preventDefault();const d=Object.fromEntries(new FormData(form));const id=d.id;delete d.id;try{const saved=await api(id?'/api/members/'+id:'/api/members',{method:id?'PUT':'POST',body:JSON.stringify(d)});if(pendingPhoto)await uploadPhoto(saved.id);dlg.close();toast(id?'Изменения сохранены':'Участник добавлен');load()}catch(err){toast(err.message)}});
|
||||
$('#deleteBtn').addEventListener('click',async()=>{const id=form.elements.id.value;if(!id||!confirm('Удалить запись участника? Это действие нельзя отменить.'))return;try{await api('/api/members/'+id,{method:'DELETE'});dlg.close();toast('Запись удалена');load()}catch(e){toast(e.message)}});
|
||||
$('#search').addEventListener('input',()=>{clearTimeout(timer);timer=setTimeout(load,180)});$('#status').addEventListener('change',load);window.loadMembers=load;
|
||||
@@ -0,0 +1 @@
|
||||
[hidden]{display:none!important}body:not(.signed-in){background:radial-gradient(ellipse at 50% 20%,#1c2b40 0,#111720 48%,#0b1016 100%)}.auth-shell{min-height:100vh;display:grid;place-items:center;padding:22px}.auth-card{width:min(430px,100%);padding:34px;background:#171e28;border:1px solid #2b3746;border-radius:18px;box-shadow:0 24px 80px #0006}.auth-brand{padding:0 0 32px}.auth-card h1{font-size:25px;margin:8px 0 3px}.auth-card>p{color:#93a0af;margin:0 0 20px;font-size:13px}.auth-card form{display:grid;gap:14px}.auth-card label{display:grid;gap:6px;color:#aab6c4;font-size:12px}.auth-card input,.user-add input,.user-add select,.users-panel td select{width:100%;min-width:0;background:#111821;border:1px solid #354253;border-radius:8px;padding:11px;color:#e5edf6;outline:0}.auth-card input:focus,.user-add input:focus,.user-add select:focus{border-color:#5c9feb;box-shadow:0 0 0 3px #367fc022}.auth-submit{width:100%;margin-top:3px}.auth-message{padding:10px 12px;border-radius:8px;background:#452c2c;color:#ffc1bb;font-size:12px;margin-bottom:14px}.auth-hint{color:#8fa0b3;font-size:11px;line-height:1.5;margin:0}.user-pill{display:flex;align-items:center;gap:8px;padding:0 8px}.user-avatar{width:28px;height:28px;display:grid;place-items:center;border-radius:50%;color:#76d6a7;background:#1d382e;font-size:10px}.user-pill b,.user-pill small{display:block}.user-pill b{font-size:11px}.user-pill small{font-size:9px;color:#8e9bac;margin-top:2px}.user-add{display:grid;grid-template-columns:1.1fr .8fr 1fr .9fr auto;gap:8px;padding:0 18px 16px;align-items:center}.user-add input,.user-add select{font-size:11px;padding:10px}.users-panel td select{padding:7px;width:auto}.users-panel td input[type=checkbox]{accent-color:#3982dd}.badge.candidate{background:#24354a;color:#9fc9ff}.users-panel .table-wrap{margin-top:3px}.auth-card [hidden],.users-panel[hidden],#authView[hidden],#appView[hidden]{display:none!important}@media(max-width:850px){.user-add{grid-template-columns:1fr 1fr}.user-add button{grid-column:1/-1}.user-pill{display:none}}@media(max-width:550px){.auth-card{padding:24px}.user-add{grid-template-columns:1fr}.user-add button{grid-column:auto}.top-actions{flex-wrap:wrap;justify-content:flex-end}.user-pill{display:none}}
|
||||
@@ -0,0 +1,16 @@
|
||||
const aq=s=>document.querySelector(s);let csrf='';let currentUser=null;
|
||||
const roleNames={user:'Пользователь',moderator:'Модератор',admin:'Администратор'};
|
||||
async function request(url,options={}){const h={'Content-Type':'application/json',...(options.headers||{})};if(csrf)h['X-CSRF-Token']=csrf;const r=await fetch(url,{...options,headers:h});const d=await r.json().catch(()=>({}));if(!r.ok)throw Error(d.error||'Ошибка запроса');return d}
|
||||
function notify(msg){const e=aq('#authMessage');e.textContent=msg;e.hidden=false}
|
||||
function showAuth(setup){aq('#authView').hidden=false;aq('#appView').hidden=true;aq('#setupFields').hidden=!setup;aq('#authNameWrap').hidden=!setup;aq('#authHeading').textContent=setup?'Первичная настройка':'Вход в реестр';aq('#authLead').textContent=setup?'Создайте учётную запись администратора':'Войдите, чтобы продолжить';aq('#authSubmit').textContent=setup?'Создать администратора':'Войти';aq('#authPass').autocomplete=setup?'new-password':'current-password'}
|
||||
async function boot(){try{const [s,m]=await Promise.all([request('/api/setup/status'),request('/api/me')]);if(s.required){showAuth(true);return}if(!m.user){currentUser=null;window.currentRole='';showApp();return}currentUser=m.user;csrf=m.csrf;window.authCsrf=csrf;window.currentRole=currentUser.role;showApp()}catch(e){currentUser=null;window.currentRole='';showApp();toast('Сервер недоступен: '+e.message)}}
|
||||
aq('#authForm').addEventListener('submit',async e=>{e.preventDefault();aq('#authMessage').hidden=true;const d={username:aq('#authLogin').value,password:aq('#authPass').value};if(!aq('#setupFields').hidden)d.display_name=aq('#authName').value;try{const r=await request(aq('#setupFields').hidden?'/api/login':'/api/setup',{method:'POST',body:JSON.stringify(d)});currentUser=r.user;csrf=r.csrf;window.authCsrf=csrf;window.currentRole=currentUser.role;aq('#authPass').value='';showApp()}catch(err){notify(err.message)}});
|
||||
function showApp(){document.body.classList.add('signed-in');aq('#authView').hidden=true;aq('#appView').hidden=false;const role=currentUser?.role||'';aq('#loginLink').hidden=!!currentUser;aq('#logoutBtn').hidden=!currentUser;aq('#userName').textContent=currentUser?.display_name||'Гостевой просмотр';aq('#userRole').textContent=currentUser?roleNames[role]:'Только просмотр';aq('#userPill').hidden=!currentUser;aq('#adminNav').hidden=role!=='admin';aq('#addBtn').hidden=!['moderator','admin'].includes(role);aq('#exportLink').hidden=!['moderator','admin'].includes(role);if(role==='admin')loadUsers();window.loadMembers?.()}
|
||||
aq('#guestBtn').addEventListener('click',()=>{currentUser=null;window.currentRole='';showApp()});
|
||||
aq('#logoutBtn').addEventListener('click',async()=>{try{await request('/api/logout',{method:'POST',body:'{}'})}catch{}currentUser=null;csrf='';showAuth(false)});
|
||||
async function loadUsers(){try{const users=await request('/api/users');aq('#userRows').innerHTML=users.map(u=>`<tr><td>${esc(u.display_name)}</td><td>${esc(u.username)}</td><td><select data-role="${u.id}"><option value="user" ${u.role==='user'?'selected':''}>Пользователь</option><option value="moderator" ${u.role==='moderator'?'selected':''}>Модератор</option><option value="admin" ${u.role==='admin'?'selected':''}>Администратор</option></select></td><td><input type="checkbox" data-active="${u.id}" ${u.active?'checked':''} aria-label="Учётная запись активна"></td><td><button class="edit-btn" data-remove="${u.id}" aria-label="Удалить учётную запись">×</button></td></tr>`).join('')}catch(e){notify(e.message)}}
|
||||
aq('#userRows').addEventListener('change',async e=>{const id=e.target.dataset.role||e.target.dataset.active;if(!id)return;const sel=document.querySelector(`[data-role="${id}"]`),active=document.querySelector(`[data-active="${id}"]`);try{await request('/api/users/'+id,{method:'PATCH',body:JSON.stringify({role:sel.value,active:active.checked})});toast('Права пользователя обновлены')}catch(err){toast(err.message);loadUsers()}});
|
||||
aq('#userRows').addEventListener('click',async e=>{const b=e.target.closest('[data-remove]');if(!b||!confirm('Удалить учётную запись?'))return;try{await request('/api/users/'+b.dataset.remove,{method:'DELETE',body:'{}'});loadUsers();toast('Учётная запись удалена')}catch(err){toast(err.message)}});
|
||||
aq('#userAddForm').addEventListener('submit',async e=>{e.preventDefault();const d=Object.fromEntries(new FormData(e.currentTarget));try{await request('/api/users',{method:'POST',body:JSON.stringify(d)});e.currentTarget.reset();loadUsers();toast('Пользователь создан')}catch(err){toast(err.message)}});
|
||||
aq('#adminNav').addEventListener('click',()=>{aq('#usersPanel').hidden=!aq('#usersPanel').hidden;aq('#members').hidden=!aq('#usersPanel').hidden});
|
||||
boot();
|
||||
@@ -0,0 +1 @@
|
||||
body{background:var(--bg);color:var(--ink)}.sidebar,.stat-card,.panel,dialog{background:var(--surface);border-color:var(--stroke)}.sidebar{border-right-color:var(--stroke)}.brand-mark,.nav-item.active{background:#1d3552;color:#8dbdff}.nav-item{color:#b1bdca}.nav-item:hover,.edit-btn:hover{background:#202c3a;color:#9ac4ff}.nav-label,.eyebrow{color:#8392a5}.side-note{background:#1b2430;border-color:var(--stroke)}.side-note p,.side-bottom{color:#8d9aac}.dot,.live-dot{background:#55c58b}.stat-top,.panel-head p,.head-meta{color:#a0adbc}.stat-icon.blue{background:#1f3550;color:#8dbdff}.stat-icon.green{background:#1d382e;color:#75d0a3}.stat-icon.amber{background:#3b3020;color:#ecc170}.stat-icon.violet{background:#302747;color:#bb9cff}.stat-card>small,.person-sub,.contact-sub{color:#8492a2}.toolbar{background:var(--surface)}.search,.filter,.btn-light{background:#1b2430;border-color:var(--stroke);color:#c5cfdb}.search input,.filter select{color:var(--ink)}.search input::placeholder{color:#7e8a99}.btn-light:hover{background:#243142}.btn-primary{background:#286fc8;color:#fff;box-shadow:0 3px 12px #0c3c7580}.btn-primary:hover{background:#357ed8}thead{background:#1b2430}th{color:#8492a2;border-color:var(--stroke)}td{color:#b0bdca;border-color:#232e3b}tbody tr:hover{background:#1c2632}.person-name,.contact-main{color:#e0e8f1}.avatar{background:#25364a;color:#a6cbff}.badge{background:#29333f;color:#bac5d1}.badge.active{background:#203b30;color:#81d6a9}.badge.paused{background:#3a3021;color:#edc77e}.badge.left{background:#402b2a;color:#e79a91}.badge.consent{background:#223752;color:#9ac4ff}.edit-btn{color:#9aa8b7}.table-wrap,.table-foot{border-color:var(--stroke)}.table-foot,.footer-note{color:#8592a2}.table-foot b{color:#bdc8d4}.empty{color:#97a4b4}.empty strong{color:#e0e8f1}.toast{background:#e4edf7;color:#192330}.dialog-head h2{color:#edf3fa}.icon-btn{background:#26313e;color:#d0d9e4}.form-grid label{color:#aab6c4}.form-grid label input,.form-grid label select,.form-grid label textarea{background:#111821;border-color:#354253;color:#e1e9f2}.form-grid input:focus,.form-grid select:focus,.form-grid textarea:focus{border-color:#5c9feb;box-shadow:0 0 0 3px #367fc022}.dialog-foot{border-color:var(--stroke)}.danger{color:#f19a91}.danger:hover{background:#3c2829}dialog::backdrop{background:#05080dc9}.filter select option,.form-grid select option{background:#1b2430;color:#e7edf5}::selection{background:#3976b7;color:#fff}
|
||||
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><rect width="64" height="64" rx="16" fill="#e9f2ff"/><path d="M33 11c-12 0-20 8-20 21s8 21 20 21c8 0 14-4 17-11h-9c-2 3-4 4-8 4-7 0-11-5-11-14s4-14 11-14c4 0 7 2 8 5h9c-3-8-9-12-17-12z" fill="#1769d2"/><circle cx="47" cy="46" r="5" fill="#1769d2"/></svg>
|
||||
|
After Width: | Height: | Size: 314 B |
@@ -0,0 +1 @@
|
||||
.avatar img{width:100%;height:100%;object-fit:cover;border-radius:inherit;display:block}.photo-field input[type=file]{display:block;margin-top:7px;width:100%;font-size:11px;color:#b9c7d6}.photo-help{display:block;color:#8492a2;font-size:10px;margin-top:4px}.photo-field img{display:block;margin-top:10px;width:86px;height:86px;object-fit:cover;border-radius:14px;border:1px solid #3c4c5f}.user-pill[hidden]{display:none!important}#loginLink[hidden],#logoutBtn[hidden],#addBtn[hidden],#exportLink[hidden]{display:none!important}.muted{color:#8796a8}.guest-banner{color:#9ba9b8;font-size:11px}.user-add{background:var(--surface)}
|
||||
Reference in new issue
Block a user