diff --git a/ops/work/web/app.py b/ops/work/web/app.py index 36668b4..ea6b43e 100644 --- a/ops/work/web/app.py +++ b/ops/work/web/app.py @@ -1369,7 +1369,13 @@ def product_info(key): "deployment": d.get("deployment"), "components": d.get("components") or [], "features": _features(d), "archived": is_archived(d), "specs": specs(d), - "attributes": D.attrs.get(norm(_dev_name(d)), {})}, + "attributes": D.attrs.get(norm(_dev_name(d)), {}), + "compatibility": [{"to": e.get("to"), "kind": e.get("kind"), + "supported": e.get("supported"), + "max_qty": e.get("max_qty"), + "condition": e.get("condition"), + "source": e.get("source")} + for e in D.edges.get(norm(_dev_name(d)), [])]}, "analogs": analog_search(_dev_name(d), d.get("domain") or "vcs")} diff --git a/ops/work/web/studio.html b/ops/work/web/studio.html index b460b88..55dd563 100644 --- a/ops/work/web/studio.html +++ b/ops/work/web/studio.html @@ -299,12 +299,14 @@ async function openProduct(key){ const fmt=v=>v===null||v===undefined||v===''?'—':(typeof v==='boolean'?(v?'да':'нет'):v); const kv = [['Вендор',p.vendor],['Тип оборудования',dl(p.domain)],['Рынок',p.market_label||p.market||'—'],['Класс',cl(p.solution_class)],['Роль',rl(p.role)],['Форм-фактор',p.form_factor],['Протоколы',(p.protocols||[]).join(', ')||'нет данных'],['Scope',p.sales_scope],['Deployment',p.deployment||'—']]; const skv = [['4K',fmt(sp['4k'])],['SIP',fmt(sp['sip'])],['H.323',fmt(sp['h323'])],['Оптический зум',fmt(sp['zoom_optical'])],['FOV',fmt(sp['fov_h'])],['Захват, м',fmt(sp['pickup_m'])],['Микрофоны',fmt(sp['mic_count'])],['Комната',fmt(sp['room_size'])]]; + const comp = p.compatibility||[]; $('#detailbox').innerHTML = `
| С устройством | Тип | Макс. | Условие |
|---|---|---|---|
| ${e.supported===false?'×':'✓'} ${esc(e.to)} | ${esc(e.kind||'')} | ${esc(e.max_qty??'')} | ${esc(e.condition||'')} |