From b81fe5e83ac2c4d633104455d69be997eed58046 Mon Sep 17 00:00:00 2001 From: wasrusgen Date: Thu, 4 Jun 2026 00:33:25 +0300 Subject: [PATCH] =?UTF-8?q?cabinet:=20=C2=AB=D0=9F=D1=80=D0=B5=D0=B4=D0=BB?= =?UTF-8?q?=D0=BE=D0=B6=D0=B8=D1=82=D1=8C=20=D0=B8=D0=B4=D0=B5=D1=8E=C2=BB?= =?UTF-8?q?=20=D1=81=D0=BB=D0=B5=D0=B2=D0=B0=20=D0=BE=D1=82=20=D1=87=D0=B8?= =?UTF-8?q?=D0=BF=D0=B0=20=D0=95=D0=BB=D0=B5=D0=BD=D0=B0=20+=20=D0=BC?= =?UTF-8?q?=D0=B8=D0=BA=D1=80=D0=BE=D1=84=D0=BE=D0=BD=20=D0=B4=D0=BB=D1=8F?= =?UTF-8?q?=20=D0=BD=D0=B0=D0=B4=D0=B8=D0=BA=D1=82=D0=BE=D0=B2=D0=BA=D0=B8?= =?UTF-8?q?=20=D0=B2=20=D0=BE=D0=BA=D0=BD=D0=B5=20=D0=B8=D0=B4=D0=B5=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.8 (1M context) --- Mokap/cabinet.html | 14 ++++++++++---- docs/cabinet.html | 14 ++++++++++---- 2 files changed, 20 insertions(+), 8 deletions(-) diff --git a/Mokap/cabinet.html b/Mokap/cabinet.html index c7c7b4a..a064b75 100644 --- a/Mokap/cabinet.html +++ b/Mokap/cabinet.html @@ -19,7 +19,9 @@ body{font-family:'Inter',sans-serif;background:var(--bg);color:var(--text);displ .hdr-sep{width:1.5px;height:15px;background:rgba(255,255,255,.25);flex-shrink:0} .hdr-t b{font-weight:800;color:#fff} .hdr-client{font-size:13px;color:rgba(255,255,255,.6);margin-left:6px} -.hdr-r{margin-left:auto} +.hdr-r{margin-left:auto;display:flex;align-items:center;gap:10px} +#ideaMic{transition:background .15s,color .15s} +#ideaMic.rec{background:#FEE2E2;color:#DC2626} .elena-chip{display:flex;align-items:center;gap:7px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12);border-radius:100px;padding:5px 13px 5px 6px} .elena-av{width:24px;height:24px;border-radius:50%;background:var(--primary);display:flex;align-items:center;justify-content:center;font-family:'Montserrat';font-weight:800;font-size:11px;color:#fff} .elena-nm{font-size:12px;font-weight:600;color:rgba(255,255,255,.85)} @@ -517,17 +519,21 @@ const SUG_ST={new:[ic('dot',12)+' Новое','#EFF6FF','#2563EB'],discussion:[i function openIdeas(){ const sgs=state.suggestions||[]; const list=sgs.length?sgs.map(s=>{const st=SUG_ST[s.status]||SUG_ST.new;return `
${esc(s.text)}
${st[0]}${s.decision?`— ${esc(s.decision)}`:''}
`}).join(''):'
Пока нет. Предложите первую идею — мы рассмотрим её.
'; - const m=document.createElement('div');m.id='ideaModal';m.style.cssText='position:fixed;inset:0;background:rgba(15,15,26,.5);z-index:260;display:flex;align-items:center;justify-content:center;padding:18px';m.onclick=()=>m.remove(); + const m=document.createElement('div');m.id='ideaModal';m.style.cssText='position:fixed;inset:0;background:rgba(15,15,26,.5);z-index:260;display:flex;align-items:center;justify-content:center;padding:18px';m.onclick=()=>{stopMic();m.remove();}; m.innerHTML=`
${ic('idea',20)} Мои предложения
Ваши идеи по проекту. Консультант рассмотрит каждую и ответит решением.
${list}
- -
+
+ + +
+
`; document.body.appendChild(m);setTimeout(()=>{const e=document.getElementById('ideaInp');if(e)e.focus();},40); } async function submitIdea(){ + stopMic(); const t=(document.getElementById('ideaInp').value||'').trim();if(!t)return; const b=document.getElementById('ideaOk');b.disabled=true;b.textContent='Отправляю…'; try{const r=await fetch(`${API}/api/suggestion`,{method:'POST',headers:{'Content-Type':'application/json'},body:JSON.stringify({token,text:t})});const d=await r.json(); diff --git a/docs/cabinet.html b/docs/cabinet.html index c7c7b4a..a064b75 100644 --- a/docs/cabinet.html +++ b/docs/cabinet.html @@ -19,7 +19,9 @@ body{font-family:'Inter',sans-serif;background:var(--bg);color:var(--text);displ .hdr-sep{width:1.5px;height:15px;background:rgba(255,255,255,.25);flex-shrink:0} .hdr-t b{font-weight:800;color:#fff} .hdr-client{font-size:13px;color:rgba(255,255,255,.6);margin-left:6px} -.hdr-r{margin-left:auto} +.hdr-r{margin-left:auto;display:flex;align-items:center;gap:10px} +#ideaMic{transition:background .15s,color .15s} +#ideaMic.rec{background:#FEE2E2;color:#DC2626} .elena-chip{display:flex;align-items:center;gap:7px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12);border-radius:100px;padding:5px 13px 5px 6px} .elena-av{width:24px;height:24px;border-radius:50%;background:var(--primary);display:flex;align-items:center;justify-content:center;font-family:'Montserrat';font-weight:800;font-size:11px;color:#fff} .elena-nm{font-size:12px;font-weight:600;color:rgba(255,255,255,.85)} @@ -517,17 +519,21 @@ const SUG_ST={new:[ic('dot',12)+' Новое','#EFF6FF','#2563EB'],discussion:[i function openIdeas(){ const sgs=state.suggestions||[]; const list=sgs.length?sgs.map(s=>{const st=SUG_ST[s.status]||SUG_ST.new;return `
${esc(s.text)}
${st[0]}${s.decision?`— ${esc(s.decision)}`:''}
`}).join(''):'
Пока нет. Предложите первую идею — мы рассмотрим её.
'; - const m=document.createElement('div');m.id='ideaModal';m.style.cssText='position:fixed;inset:0;background:rgba(15,15,26,.5);z-index:260;display:flex;align-items:center;justify-content:center;padding:18px';m.onclick=()=>m.remove(); + const m=document.createElement('div');m.id='ideaModal';m.style.cssText='position:fixed;inset:0;background:rgba(15,15,26,.5);z-index:260;display:flex;align-items:center;justify-content:center;padding:18px';m.onclick=()=>{stopMic();m.remove();}; m.innerHTML=`
${ic('idea',20)} Мои предложения
Ваши идеи по проекту. Консультант рассмотрит каждую и ответит решением.
${list}
- -
+
+ + +
+
`; document.body.appendChild(m);setTimeout(()=>{const e=document.getElementById('ideaInp');if(e)e.focus();},40); } async function submitIdea(){ + stopMic(); const t=(document.getElementById('ideaInp').value||'').trim();if(!t)return; const b=document.getElementById('ideaOk');b.disabled=true;b.textContent='Отправляю…'; try{const r=await fetch(`${API}/api/suggestion`,{method:'POST',headers:{'Content-Type':'application/json'},body:JSON.stringify({token,text:t})});const d=await r.json();