iobroker.agent-dvr 0.6.0 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.de.md +27 -3
- package/README.md +29 -9
- package/admin/assets/{index-DyH6BvVs.js → index-CUI5sWkp.js} +1 -1
- package/admin/i18n/de.json +3 -0
- package/admin/i18n/en.json +3 -0
- package/admin/i18n/es.json +3 -0
- package/admin/i18n/fr.json +3 -0
- package/admin/i18n/it.json +3 -0
- package/admin/i18n/nl.json +3 -0
- package/admin/i18n/pl.json +3 -0
- package/admin/i18n/pt.json +3 -0
- package/admin/i18n/ru.json +3 -0
- package/admin/i18n/uk.json +3 -0
- package/admin/i18n/zh-cn.json +3 -0
- package/admin/index_m.html +1 -1
- package/admin/webcomponents/agent-dvr-live.js +36 -0
- package/admin/webcomponents/agent-dvr-live.json +209 -0
- package/admin/webcomponents/agent-dvr-overview.js +36 -0
- package/admin/webcomponents/agent-dvr-overview.json +244 -0
- package/admin/webcomponents/agent-dvr-recordings.js +36 -0
- package/admin/webcomponents/agent-dvr-recordings.json +399 -0
- package/build/main.js +243 -39
- package/build/main.js.map +3 -3
- package/io-package.json +34 -28
- package/package.json +4 -3
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
var Ie=Object.defineProperty;var fe=n=>{throw TypeError(n)};var Re=(n,t,e)=>t in n?Ie(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e;var Q=(n,t,e)=>Re(n,typeof t!="symbol"?t+"":t,e),ee=(n,t,e)=>t.has(n)||fe("Cannot "+e);var c=(n,t,e)=>(ee(n,t,"read from private field"),e?e.call(n):t.get(n)),y=(n,t,e)=>t.has(n)?fe("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(n):t.set(n,e),v=(n,t,e,i)=>(ee(n,t,"write to private field"),i?i.call(n,e):t.set(n,e),e),f=(n,t,e)=>(ee(n,t,"access private method"),e);var he="iob-dialog-close";var ge="iob-change";function U(n){return!!n.form}var me=["header","staticText","divider"];function w(n,t){return n==null?"":typeof n=="object"?n[t]||n.en||Object.values(n).find(e=>!!e)||"":String(n)}function K(n){let t={};for(let[e,i]of Object.entries(n.items||{}))i&&!me.includes(i.type)&&(t[e]=i.type);return t}function be(n){return typeof n=="string"?n:typeof n=="number"||typeof n=="boolean"?n.toString():JSON.stringify(n)}function De(n,t){if(t!=null)switch(n){case"number":case"slider":{if(typeof t=="number")return Number.isFinite(t)?t:void 0;let e=be(t).trim().replace(",",".");if(!e)return;let i=Number(e);return Number.isFinite(i)?i:void 0}case"checkbox":return t===!0||t==="true"||t===1||t==="1";default:return be(t)}}function q(n,t){let e={};for(let[i,r]of Object.entries(n)){let o=De(r,t[i]);o!==void 0&&(e[i]=o)}return e}var ve='"Roboto", "Helvetica", "Arial", sans-serif',Be=Object.freeze({type:"light",primary:"#3399CC",primaryContrast:"#FFFFFF",secondary:"#164477",secondaryContrast:"#FFFFFF",background:"#FFFFFF",paper:"#FFFFFF",text:"rgba(0, 0, 0, 0.87)",textSecondary:"rgba(0, 0, 0, 0.6)",divider:"rgba(0, 0, 0, 0.12)",error:"#D32F2F",warning:"#ED6C02",info:"#0288D1",success:"#2E7D32",fontFamily:ve,fontSize:14,borderRadius:4}),Pe=Object.freeze({type:"dark",primary:"#4DABF5",primaryContrast:"rgba(0, 0, 0, 0.87)",secondary:"#436A93",secondaryContrast:"#FFFFFF",background:"#121212",paper:"#121212",text:"#FFFFFF",textSecondary:"rgba(255, 255, 255, 0.7)",divider:"rgba(255, 255, 255, 0.12)",error:"#F44336",warning:"#FFA726",info:"#29B6F6",success:"#66BB6A",fontFamily:ve,fontSize:14,borderRadius:4}),te=["primary","primaryContrast","secondary","secondaryContrast","background","paper","text","textSecondary","divider","error","warning","info","success","fontFamily"],ne=["fontSize","borderRadius"];function xe(n){return{...n==="dark"?Pe:Be}}function R(n){if(!n||typeof n!="object")return xe(typeof n=="string"?n:"light");let t=n,e=xe(typeof t.type=="string"?t.type:"light");for(let i of te){let r=t[i];typeof r=="string"&&r.trim()&&(e[i]=r.trim())}for(let i of ne){let r=t[i],o=typeof r=="string"?parseFloat(r):r;typeof o=="number"&&Number.isFinite(o)&&o>=0&&(e[i]=o)}return e}function we(n,t){return n.type===t.type&&te.every(e=>n[e]===t[e])&&ne.every(e=>n[e]===t[e])}function ye(n){return`--iob-${n.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}`}function J(n){let t={};for(let e of te)t[ye(e)]=n[e];for(let e of ne)t[ye(e)]=`${n[e]}px`;return t["color-scheme"]=n.type,t}var Se={ok:{en:"OK","zh-cn":"\u786E\u5B9A"},cancel:{en:"Cancel",de:"Abbrechen",ru:"\u041E\u0442\u043C\u0435\u043D\u0430",pt:"Cancelar",nl:"Annuleren",fr:"Annuler",it:"Annulla",es:"Cancelar",pl:"Anuluj",uk:"\u0421\u043A\u0430\u0441\u0443\u0432\u0430\u0442\u0438","zh-cn":"\u53D6\u6D88"},close:{en:"Close",de:"Schlie\xDFen",ru:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C",pt:"Fechar",nl:"Sluiten",fr:"Fermer",it:"Chiudi",es:"Cerrar",pl:"Zamknij",uk:"\u0417\u0430\u043A\u0440\u0438\u0442\u0438","zh-cn":"\u5173\u95ED"}},Ve=`
|
|
2
|
+
dialog {
|
|
3
|
+
box-sizing: border-box;
|
|
4
|
+
width: 480px;
|
|
5
|
+
max-width: calc(100vw - 32px);
|
|
6
|
+
max-height: calc(100vh - 32px);
|
|
7
|
+
padding: 0;
|
|
8
|
+
border: 0;
|
|
9
|
+
border-radius: calc(var(--iob-border-radius) * 2);
|
|
10
|
+
background: var(--iob-paper);
|
|
11
|
+
color: var(--iob-text);
|
|
12
|
+
font-family: var(--iob-font-family);
|
|
13
|
+
font-size: var(--iob-font-size);
|
|
14
|
+
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
|
|
15
|
+
}
|
|
16
|
+
/* as the dialogs of MUI: a dark paper gets lighter the higher it lies */
|
|
17
|
+
dialog.dark { background-image: linear-gradient(rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.16)); }
|
|
18
|
+
dialog::backdrop { background: rgba(0, 0, 0, 0.5); }
|
|
19
|
+
dialog:focus { outline: none; }
|
|
20
|
+
form { display: flex; flex-direction: column; height: 100%; max-height: inherit; margin: 0; }
|
|
21
|
+
header { display: flex; align-items: center; gap: 8px; padding: 12px 8px 12px 16px; font-size: 1.15em; font-weight: 500; }
|
|
22
|
+
header span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
23
|
+
.body { flex: 1; min-height: 0; padding: 0 16px 16px; overflow: auto; display: flex; flex-direction: column; gap: 12px; }
|
|
24
|
+
footer { display: flex; justify-content: flex-end; gap: 8px; padding: 0 16px 16px; }
|
|
25
|
+
button { font: inherit; padding: 6px 16px; border-radius: var(--iob-border-radius); border: 1px solid var(--iob-primary); background: transparent; color: var(--iob-primary); cursor: pointer; }
|
|
26
|
+
button.primary { background: var(--iob-primary); color: var(--iob-primary-contrast); }
|
|
27
|
+
button.close { border: 0; padding: 2px 8px; font-size: 1.4em; line-height: 1; color: var(--iob-text-secondary); }
|
|
28
|
+
label { display: flex; flex-direction: column; gap: 4px; }
|
|
29
|
+
label.check { flex-direction: row; align-items: center; gap: 8px; }
|
|
30
|
+
input, select, textarea { font: inherit; accent-color: var(--iob-primary); }
|
|
31
|
+
.help { color: var(--iob-text-secondary); font-size: 0.85em; }
|
|
32
|
+
h3 { margin: 4px 0 0; font-size: 1em; }
|
|
33
|
+
p { margin: 0; }
|
|
34
|
+
hr { width: 100%; border: 0; border-top: 1px solid var(--iob-divider); margin: 0; }
|
|
35
|
+
[hidden] { display: none !important; }
|
|
36
|
+
`;function Ee(n){if(!n)return null;try{let t=new Function("data",`return (${n});`);return e=>{try{return!!t(e)}catch{return!1}}}catch{return null}}function ie(n){return typeof n=="string"?n:typeof n=="number"||typeof n=="boolean"?String(n):""}function He(n){let{input:t,setting:e}=n;if(t)return t instanceof HTMLInputElement&&t.type==="checkbox"?t.checked:t instanceof HTMLSelectElement?e.options?.[t.selectedIndex]?.value:t.value}function We(n,t,e,i,r){let o={name:t,setting:e,box:n.createElement("div"),hidden:Ee(e.hidden),disabled:Ee(e.disabled)},h=w(e.label,r);switch(e.type){case"header":return o.box=n.createElement("h3"),o.box.textContent=w(e.text,r)||h,o;case"staticText":return o.box=n.createElement("p"),o.box.textContent=w(e.text,r)||h,o;case"divider":return o.box=n.createElement("hr"),o;default:break}let p=n.createElement("label");o.box=p;let l=n.createElement("span");if(l.textContent=h||t,e.type==="checkbox"){let s=n.createElement("input");s.type="checkbox",s.checked=i===!0||i==="true",p.className="check",p.append(s,l),o.input=s}else if(e.type==="select"){let s=n.createElement("select");for(let a of e.options||[]){let b=n.createElement("option");b.textContent=w(a.label,r),s.append(b)}let u=(e.options||[]).findIndex(a=>String(a.value)===ie(i));s.selectedIndex=u===-1?0:u,p.append(l,s),o.input=s}else if(e.type==="text"&&(e.minRows||1)>1){let s=n.createElement("textarea");s.rows=e.minRows||2,s.value=ie(i),p.append(l,s),o.input=s}else{let s=n.createElement("input"),u=ie(i);switch(e.type){case"number":case"slider":s.type=e.type==="slider"?"range":"number",e.min!==void 0&&(s.min=String(e.min)),e.max!==void 0&&(s.max=String(e.max)),s.step=e.step!==void 0?String(e.step):"any";break;case"password":s.type="password";break;case"color":s.type=!u||/^#[0-9a-f]{6}$/i.test(u)?"color":"text";break;default:s.type="text";break}if(s.value=u,s.type==="range"){let a=n.createElement("output");a.textContent=s.value,s.addEventListener("input",()=>a.textContent=s.value),l.append(": ",a)}p.append(l,s),o.input=s}if(e.help){let s=n.createElement("span");s.className="help",s.textContent=w(e.help,r),p.append(s)}return o}function $e(n,t={}){let e=t.lang||"en",i=document,r=F=>Se[F][e]||Se[F].en||F,o=i.createElement("div");o.setAttribute("data-iob-dialog","");let h=o.attachShadow({mode:"open"}),p=i.createElement("style");p.textContent=Ve;let l=i.createElement("dialog"),s=R(t.theme);l.className=s.type==="dark"?"dark":"";for(let[F,V]of Object.entries(J(s)))l.style.setProperty(F,V);n.width&&(l.style.width=`${n.width}px`),n.height&&(l.style.height=`${n.height}px`);let u=i.createElement("form"),a=i.createElement("header"),b=i.createElement("span");b.textContent=w(n.title,e);let S=i.createElement("button");S.type="button",S.className="close",S.title=r("close"),S.setAttribute("aria-label",r("close")),S.textContent="\xD7",a.append(b,S);let P=i.createElement("div");return P.className="body",u.append(a,P),l.append(u),h.append(p,l),new Promise(F=>{let V=!1,I=C=>{V||(V=!0,l.open&&l.close(),o.remove(),F(C))};if(S.addEventListener("click",()=>I(null)),l.addEventListener("close",()=>I(null)),u.addEventListener("submit",C=>C.preventDefault()),U(n)){let C={},H=[];for(let[x,E]of Object.entries(n.form.items||{})){let Me=n.data?.[x]??E.default,ue=We(i,x,E,Me,e);H.push(ue),P.append(ue.box)}let le=()=>{for(let x of H)x.input&&(C[x.name]=He(x));return C},Z=()=>{let x=le();for(let E of H)E.box.hidden=E.hidden?E.hidden(x):!1,E.input&&(E.input.disabled=E.disabled?E.disabled(x):!1)};u.addEventListener("input",Z),u.addEventListener("change",Z),Z();let de=H.find(x=>x.input&&!x.box.hidden&&!x.input.disabled);de?.input&&(de.input.autofocus=!0);let pe=i.createElement("footer"),W=i.createElement("button");W.type="button",W.textContent=w(n.cancel,e)||r("cancel"),W.addEventListener("click",()=>I(null));let G=i.createElement("button");G.type="submit",G.className="primary",G.textContent=w(n.ok,e)||r("ok"),pe.append(W,G),u.append(pe),u.addEventListener("submit",()=>I(q(K(n.form),le())))}else P.append(n.element),l.addEventListener(he,C=>I(C.detail??null));i.body.append(o),l.showModal(),(!h.activeElement||h.activeElement===S)&&(l.tabIndex=-1,l.focus())})}function ke(n){return[...new Set(n.filter(t=>typeof t=="string"&&!!t))]}var Ge=["socket","dialogs","theme","editMode","settings","value"],$,j,T,k,L,z,m,N,M,B,d,re,A,D,Ce,_e,oe,se,_,X=class extends HTMLElement{constructor(){super(...arguments);y(this,d);Q(this,"states",{});Q(this,"objects",{});y(this,$,null);y(this,j,{});y(this,T,R("light"));y(this,k,!1);y(this,L,null);y(this,z);y(this,m,null);y(this,N,!1);y(this,M,(e,i)=>{c(this,m)?.states.includes(e)&&(this.states[e]=i||null,f(this,d,_).call(this))});y(this,B,(e,i)=>{c(this,m)?.objects.includes(e)&&(this.objects[e]=i||null,f(this,d,A).call(this))})}get socket(){return c(this,$)}set socket(e){v(this,$,e||null),f(this,d,A).call(this)}get settings(){return c(this,j)}set settings(e){v(this,j,e||{}),f(this,d,A).call(this)}get theme(){return c(this,T)}set theme(e){let i=R(e);we(i,c(this,T))||(v(this,T,i),f(this,d,re).call(this),f(this,d,_).call(this))}get editMode(){return c(this,k)}set editMode(e){let i=!!e;i!==c(this,k)&&(v(this,k,i),f(this,d,_).call(this))}get dialogs(){return c(this,L)}set dialogs(e){v(this,L,e||null)}get value(){return c(this,z)}set value(e){e!==c(this,z)&&(v(this,z,e),f(this,d,_).call(this))}connectedCallback(){for(let e of Ge)if(Object.prototype.hasOwnProperty.call(this,e)){let i=this[e];delete this[e],this[e]=i}f(this,d,re).call(this),f(this,d,A).call(this)}disconnectedCallback(){f(this,d,se).call(this)}getStateIds(e){return[]}getObjectIds(e){return[]}get systemLang(){return c(this,$)?.systemLang||"en"}text(e){return w(e,this.systemLang)}setState(e,i){return c(this,$)&&!c(this,k)?c(this,$).setState(e,i):Promise.resolve()}changeValue(e){return c(this,k)||this.emit(ge,e)?!1:(this.value=e,!0)}emit(e,i){return this.dispatchEvent(new CustomEvent(e,{detail:i,bubbles:!0,composed:!0,cancelable:!0}))}async openDialog(e){if(c(this,k))return null;let i=c(this,L)?await c(this,L).open(e):await $e(e,{lang:this.systemLang,theme:c(this,T)});return U(e)?i&&typeof i=="object"?q(K(e.form),i):null:i??null}};$=new WeakMap,j=new WeakMap,T=new WeakMap,k=new WeakMap,L=new WeakMap,z=new WeakMap,m=new WeakMap,N=new WeakMap,M=new WeakMap,B=new WeakMap,d=new WeakSet,re=function(){for(let[e,i]of Object.entries(J(c(this,T))))this.style.setProperty(e,i)},A=function(){if(!this.isConnected)return;let e=c(this,$),i=e?ke(this.getStateIds(c(this,j))):[],r=e?ke(this.getObjectIds(c(this,j))):[];c(this,m)&&c(this,m).socket!==e&&f(this,d,se).call(this);let o=c(this,m)?.states||[],h=c(this,m)?.objects||[],p=o.filter(a=>!i.includes(a)),l=h.filter(a=>!r.includes(a)),s=i.filter(a=>!o.includes(a)),u=r.filter(a=>!h.includes(a));e&&p.length&&e.unsubscribeState(p,c(this,M)),e&&l.length&&f(this,d,oe).call(this,e,l);for(let a of p)delete this.states[a];for(let a of[...p,...l])!i.includes(a)&&!r.includes(a)&&delete this.objects[a];v(this,m,e&&(i.length||r.length)?{socket:e,states:i,objects:r}:null),e&&s.length&&f(this,d,Ce).call(this,e,s),e&&u.length&&f(this,d,_e).call(this,e,u),f(this,d,_).call(this)},D=function(e,i,r){return c(this,m)?.socket===e&&c(this,m)[i].includes(r)},Ce=function(e,i){e.subscribeState(i,c(this,M)).catch(r=>console.warn(`<${this.localName}>: cannot subscribe ${i.join(", ")}: ${r}`));for(let r of i)e.getState(r).then(o=>{f(this,d,D).call(this,e,"states",r)&&this.states[r]===void 0&&(this.states[r]=o||null,f(this,d,_).call(this))}).catch(()=>{}),e.getObject(r).then(o=>{f(this,d,D).call(this,e,"states",r)&&!f(this,d,D).call(this,e,"objects",r)&&(this.objects[r]=o||null,f(this,d,_).call(this))}).catch(()=>{})},_e=function(e,i){e.subscribeObject(i,c(this,B)).catch(r=>console.warn(`<${this.localName}>: cannot subscribe the objects ${i.join(", ")}: ${r}`));for(let r of i)e.getObject(r).then(o=>{f(this,d,D).call(this,e,"objects",r)&&(this.objects[r]=o||null,f(this,d,A).call(this))}).catch(()=>{})},oe=function(e,i){e.unsubscribeObject(i,c(this,B)).catch(()=>{})},se=function(){if(c(this,m)){let{socket:e,states:i,objects:r}=c(this,m);i.length&&e.unsubscribeState(i,c(this,M)),r.length&&f(this,d,oe).call(this,e,r),v(this,m,null)}this.states={},this.objects={}},_=function(){c(this,N)||(v(this,N,!0),queueMicrotask(()=>{v(this,N,!1),this.isConnected&&this.render()}))};function Te(n,t){let e=typeof n=="string"?n:n.tag;customElements.get(e)||customElements.define(e,t)}var O={widgetMode:"nojs",count:50,thumbSize:"medium",minCol:150,maxModalWidth:900,showTags:!0,tagPosition:"bottom-left",sortNewest:!0,showSearch:!0,defaultTag:"",compact:!1,playerUrl:"",liveAspect:"",liveRefreshSec:0,colorCardBg:"rgba(127,127,127,0.15)",colorTagBg:"rgba(0,0,0,0.55)",colorTagText:"#ffffff",colorAccent:"#8ab4f8",colorModalBg:"#1c1c1e",borderRadius:8},Ue={small:120,medium:180,large:240},Y={pickWidget:{en:"Please choose a widget in the settings.",de:"Bitte in den Einstellungen ein Widget ausw\xE4hlen."},pickCamera:{en:"Please choose a camera in the settings.",de:"Bitte in den Einstellungen eine Kamera ausw\xE4hlen."},pickInstance:{en:"Please choose an agent-dvr instance in the settings.",de:"Bitte in den Einstellungen eine agent-dvr-Instanz ausw\xE4hlen."},waiting:{en:"Waiting for data of the adapter \u2026",de:"Warte auf Daten des Adapters \u2026"},noCamera:{en:"Camera not found",de:"Kamera nicht gefunden"},noCameras:{en:"No cameras",de:"Keine Kameras"}},Fe={en:{noRecordings:"No recordings",search:"Search \u2026",all:"All",download:"Download",live:"LIVE"},de:{noRecordings:"Keine Aufnahmen",search:"Suche \u2026",all:"Alle",download:"Herunterladen",live:"LIVE"}};function g(n){return String(n??"").replace(/[&<>"]/g,t=>({"&":"&","<":"<",">":">",'"':"""})[t])}function je(n){let t=String(n||"").replace(/^system\.adapter\./,"").split(".");return{instance:t.length>=2?`${t[0]}.${t[1]}`:"",camera:t.length>=3&&/^cam_/.test(t[2])?t[2]:""}}function ae(n){let t=n&&n.val;if(typeof t!="string"||!t)return null;try{return JSON.parse(t)}catch{return null}}function Le(n,t){if(n.mode==="custom"){let e={...O};for(let[i,r]of Object.entries(n))r!=null&&(e[i]=r);return e.minCol=Ue[e.thumbSize]||Number(e.minCol)||150,e}return!t||!t.settings?null:{...O,...t.settings}}function Oe(n,t){return{...Fe[t]||Fe.en,...n&&n.labels||{}}}function Ae(n,t,e){let i=n.compact?6:12,r=`${Math.max(0,Number(n.borderRadius)||0)}px`,o=t?{card:"color-mix(in srgb, var(--iob-text, currentColor) 10%, transparent)",tagBg:"var(--iob-primary)",tagText:"var(--iob-primary-contrast)",accent:"var(--iob-primary)",modal:"var(--iob-paper)",info:"var(--iob-text)"}:{card:n.colorCardBg||O.colorCardBg,tagBg:n.colorTagBg||O.colorTagBg,tagText:n.colorTagText||O.colorTagText,accent:n.colorAccent||O.colorAccent,modal:n.colorModalBg||O.colorModalBg,info:"#fff"};return`:host{display:block;width:100%;height:100%;overflow:hidden;color:inherit;font:inherit}.root{--adv-card-bg:${o.card};--adv-tag-bg:${o.tagBg};--adv-tag-color:${o.tagText};--adv-accent:${o.accent};--adv-radius:${r};width:100%;height:100%;box-sizing:border-box;overflow:auto;${e?"pointer-events:none;":""}}.bar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:10px}.search{flex:1 1 160px;min-width:120px;padding:6px 10px;border-radius:8px;border:1px solid rgba(127,127,127,.4);background:rgba(127,127,127,.08);color:inherit;font:inherit}.tags{display:flex;flex-wrap:wrap;gap:6px}.tagbtn{padding:4px 10px;border-radius:999px;border:1px solid rgba(127,127,127,.4);background:transparent;color:inherit;cursor:pointer;font:inherit;font-size:.8rem}.tagbtn.on{background:var(--adv-accent);color:${t?"var(--iob-primary-contrast)":"#fff"};border-color:var(--adv-accent)}.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(${Number(n.minCol)||150}px,1fr));gap:${i}px}.cell{display:flex;flex-direction:column;cursor:pointer;min-width:0}.img{position:relative;display:block;border-radius:var(--adv-radius);overflow:hidden;background:var(--adv-card-bg)}.img img{width:100%;height:auto;display:block}.img.fix img{height:100%;object-fit:cover}.tag{position:absolute;background:var(--adv-tag-bg);color:var(--adv-tag-color);font-size:.6rem;padding:2px 4px;border-radius:3px;line-height:1;max-width:85%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.play{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;opacity:0;transition:opacity .15s;background:rgba(0,0,0,.2)}.play::before{content:"";border-style:solid;border-width:11px 0 11px 18px;border-color:transparent transparent transparent #fff;filter:drop-shadow(0 1px 2px rgba(0,0,0,.6))}.cell:hover .play{opacity:1}.cap{font-size:${n.compact?".65rem":".72rem"};margin-top:${n.compact?2:4}px;line-height:1.25;opacity:.85;overflow:hidden;text-overflow:ellipsis}.empty,.msg{padding:24px;text-align:center;opacity:.7}.single{height:100%;display:flex;flex-direction:column}.single .cell{flex:1 1 auto;min-height:0}.single .img{flex:1 1 auto;min-height:0}.single .img img{width:100%;height:100%;object-fit:contain}dialog{border:0;padding:12px;border-radius:14px;background:${o.modal};max-width:min(92vw,${Number(n.maxModalWidth)||900}px);width:min(92vw,${Number(n.maxModalWidth)||900}px);box-sizing:border-box;box-shadow:0 16px 48px rgba(0,0,0,.55),0 0 0 1px rgba(255,255,255,.08);overflow:visible}dialog::backdrop{background:rgba(0,0,0,.35)}.box{position:relative;display:flex;flex-direction:column;gap:8px}video{width:100%;max-height:80vh;border-radius:8px;background:#000;display:block;object-fit:contain}.close{position:absolute;top:6px;right:6px;width:32px;height:32px;border-radius:50%;background:rgba(0,0,0,.65);color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;font-size:15px;z-index:2;border:2px solid rgba(255,255,255,.35)}.info{color:${o.info};font-size:.8rem;text-align:center}.info a{color:var(--adv-accent)}`}function ze(n){let t=document.createElement("dialog");t.innerHTML='<div class="box"><span class="close" role="button" aria-label="close">✕</span><video controls preload="none" playsinline></video><div class="info"></div></div>';let e=t.querySelector("video"),i=t.querySelector(".info"),r=()=>t.open&&t.close();return t.querySelector(".close").addEventListener("click",r),t.addEventListener("click",o=>o.target===t&&r()),t.addEventListener("close",()=>{try{e.pause()}catch{}e.removeAttribute("src"),e.removeAttribute("style");try{e.load()}catch{}}),n.appendChild(t),{el:t,open(o,h,p){p&&(e.style.aspectRatio=p.replace("/"," / "),e.style.objectFit="fill"),e.setAttribute("src",o),i.innerHTML=h,t.open||t.showModal(),e.play&&e.play().catch(()=>{})}}}function Ne(n,t){let e=encodeURIComponent,i=n.replace(/{video}/g,e(t.video)).replace(/{videoRaw}/g,t.video).replace(/{fn}/g,e(t.fn||"")).replace(/{date}/g,e(t.date)).replace(/{time}/g,e(t.time)).replace(/{duration}/g,e(t.dur)).replace(/{size}/g,e(String(t.size))).replace(/{tags}/g,e(t.tag||""));window.open(i,"_blank","noopener")}var ce=class extends X{constructor(){super(),this.attachShadow({mode:"open"}),this.shadowRoot.innerHTML='<style></style><div class="root"></div>',this._player=ze(this.shadowRoot),this._view={q:"",tag:null},this._key="",this._items=[],this._cfg=null,this._labels={}}_target(t){return je(t.mode==="custom"?t.camera:t.widget)}getStateIds(t){let e=this._target(t);return e.instance&&e.camera?[`${e.instance}.widget_config`,`${e.instance}.${e.camera}.widget_data`]:[]}render(){let t=this.settings||{},e=this._target(t),i=this.shadowRoot.querySelector(".root"),r=e.instance?ae(this.states[`${e.instance}.widget_config`]):null,o=Le(t,r),h=this.shadowRoot.querySelector("style"),p=Ae(o||{},!!t.follow,this.editMode);if(h.textContent!==p&&(h.textContent=p),!e.instance||!e.camera)return this._key="",this._msg(i,this.text(t.mode==="custom"?Y.pickCamera:Y.pickWidget));let l=ae(this.states[`${e.instance}.${e.camera}.widget_data`]);if(!o||!l)return this._key="",this._msg(i,this.text(Y.waiting));let s=JSON.stringify([o,this.states[`${e.instance}.${e.camera}.widget_data`]?.ts,this.systemLang]);if(s===this._key)return;let u=!this._cfg||JSON.stringify(this._cfg)!==JSON.stringify(o);this._key=s,this._cfg=o,this._labels=Oe(r,this.systemLang);let a=(Array.isArray(l.recordings)?l.recordings:[]).slice(0,Math.max(1,Number(o.count)||50));o.sortNewest===!1&&(a=a.reverse()),this._items=a,u&&(this._view={q:"",tag:null}),this._draw(i)}_msg(t,e){t.innerHTML=`<div class="msg">${g(e)}</div>`}_draw(t){let e=this._cfg,i=this._labels,r=e.widgetMode==="js",o="";if(r){this._view.tag===null&&(this._view.tag=String(e.defaultTag||"").trim());let p=new Set;for(let a of this._items)String(a.tag||"").split(/[,\s]+/).forEach(b=>b&&p.add(b));let l=(a,b)=>`<button class="tagbtn${this._view.tag===b?" on":""}" data-tag="${g(b)}">${g(a)}</button>`,s=e.showTags&&p.size?l(i.all,"")+[...p].map(a=>l(a,a)).join(""):"",u=e.showSearch!==!1?`<input class="search" type="text" placeholder="${g(i.search)}" value="${g(this._view.q)}">`:"";(u||s)&&(o=`<div class="bar">${u}<div class="tags">${s}</div></div>`)}t.innerHTML=`${o}<div class="grid"></div>`;let h=t.querySelector(".search");h&&h.addEventListener("input",()=>{this._view.q=h.value,this._drawGrid(t)});for(let p of t.querySelectorAll(".tagbtn"))p.addEventListener("click",()=>{let l=p.getAttribute("data-tag")||"";this._view.tag=this._view.tag===l?"":l;for(let s of t.querySelectorAll(".tagbtn"))s.classList.toggle("on",(s.getAttribute("data-tag")||"")===this._view.tag);this._drawGrid(t)});this._drawGrid(t)}_drawGrid(t){let e=this._cfg,i=this._labels,r=e.widgetMode==="js",o=r?this._view.q.toLowerCase():"",h=r?String(this._view.tag||"").toLowerCase():"",p=String(e.tagPosition||"bottom-left").split("-"),l="";this._items.forEach((a,b)=>{if(h&&String(a.tag||"").toLowerCase().indexOf(h)<0||o&&`${a.date||""} ${a.time||""} ${a.tag||""}`.toLowerCase().indexOf(o)<0)return;let S=e.showTags&&a.tag?`<span class="tag" style="${p[0]}:5px;${p[1]}:5px">${g(a.tag)}</span>`:"";l+=`<div class="cell" data-i="${b}"><span class="img"><img loading="lazy" alt="" src="${g(a.thumb)}">${S}<span class="play"></span></span><span class="cap">${g(a.date)} ${g(a.time)}<br>${g(a.dur)}s · ${g(a.size)} MB</span></div>`});let s=t.querySelector(".grid");if(!l){s.outerHTML=`<div class="grid"></div><div class="empty">${g(i.noRecordings)}</div>`;return}let u=t.querySelector(".empty");u&&u.remove(),s.innerHTML=l;for(let a of s.querySelectorAll(".cell"))a.addEventListener("click",()=>this._open(this._items[Number(a.getAttribute("data-i"))]))}_open(t){if(!t||this.editMode)return;let e=this._cfg;if(e.playerUrl)return Ne(String(e.playerUrl),t);let i=`${g(t.date)} ${g(t.time)}${t.dur?` · ${g(t.dur)}s`:""}${t.size!=null?` · ${g(t.size)} MB`:""}${t.tag?` · ${g(t.tag)}`:""} · <a href="${g(t.video)}" download target="_blank" rel="noopener">${g(this._labels.download)}</a>`;this._player.open(t.video,i)}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback(),this._player.el.open&&this._player.el.close()}};Te("iob-agent-dvr-recordings",ce);
|
|
@@ -0,0 +1,399 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://raw.githubusercontent.com/ioBroker/web-components/main/schemas/manifest.json",
|
|
3
|
+
"manifestVersion": 1,
|
|
4
|
+
"tag": "iob-agent-dvr-recordings",
|
|
5
|
+
"name": {
|
|
6
|
+
"en": "Agent DVR recordings",
|
|
7
|
+
"de": "Agent DVR Aufnahmen"
|
|
8
|
+
},
|
|
9
|
+
"description": {
|
|
10
|
+
"en": "Recordings gallery of a camera: from the adapter settings or set up here",
|
|
11
|
+
"de": "Aufnahmen-Galerie einer Kamera: aus den Adapter-Einstellungen oder hier eingestellt"
|
|
12
|
+
},
|
|
13
|
+
"icon": "../agent-dvr.png",
|
|
14
|
+
"module": "agent-dvr-recordings.js",
|
|
15
|
+
"size": {
|
|
16
|
+
"width": 520,
|
|
17
|
+
"height": 420
|
|
18
|
+
},
|
|
19
|
+
"settings": {
|
|
20
|
+
"type": "panel",
|
|
21
|
+
"items": {
|
|
22
|
+
"mode": {
|
|
23
|
+
"type": "select",
|
|
24
|
+
"label": {
|
|
25
|
+
"en": "Source",
|
|
26
|
+
"de": "Quelle"
|
|
27
|
+
},
|
|
28
|
+
"default": "adapter",
|
|
29
|
+
"options": [
|
|
30
|
+
{
|
|
31
|
+
"value": "adapter",
|
|
32
|
+
"label": {
|
|
33
|
+
"en": "Widget from the adapter settings",
|
|
34
|
+
"de": "Widget aus den Adapter-Einstellungen"
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"value": "custom",
|
|
39
|
+
"label": {
|
|
40
|
+
"en": "Own settings here",
|
|
41
|
+
"de": "Eigene Einstellungen hier"
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
]
|
|
45
|
+
},
|
|
46
|
+
"widget": {
|
|
47
|
+
"type": "objectId",
|
|
48
|
+
"types": "state",
|
|
49
|
+
"root": "agent-dvr",
|
|
50
|
+
"label": {
|
|
51
|
+
"en": "Widget",
|
|
52
|
+
"de": "Widget"
|
|
53
|
+
},
|
|
54
|
+
"help": {
|
|
55
|
+
"en": "The recordings widget of a camera, e.g. agent-dvr.0.cam_8_Garden.widget_recordings",
|
|
56
|
+
"de": "Aufnahmen-Widget einer Kamera, z. B. agent-dvr.0.cam_8_Garten.widget_recordings"
|
|
57
|
+
},
|
|
58
|
+
"hidden": "data.mode === 'custom'"
|
|
59
|
+
},
|
|
60
|
+
"camera": {
|
|
61
|
+
"type": "objectId",
|
|
62
|
+
"types": "device",
|
|
63
|
+
"root": "agent-dvr",
|
|
64
|
+
"label": {
|
|
65
|
+
"en": "Camera",
|
|
66
|
+
"de": "Kamera"
|
|
67
|
+
},
|
|
68
|
+
"help": {
|
|
69
|
+
"en": "Choose the camera, e.g. agent-dvr.0.cam_8_Garden",
|
|
70
|
+
"de": "Kamera wählen, z. B. agent-dvr.0.cam_8_Garten"
|
|
71
|
+
},
|
|
72
|
+
"hidden": "data.mode !== 'custom'"
|
|
73
|
+
},
|
|
74
|
+
"follow": {
|
|
75
|
+
"type": "checkbox",
|
|
76
|
+
"label": {
|
|
77
|
+
"en": "Use the colors of the visualization",
|
|
78
|
+
"de": "Farben der Visualisierung übernehmen"
|
|
79
|
+
},
|
|
80
|
+
"default": false,
|
|
81
|
+
"help": {
|
|
82
|
+
"en": "Tiles, badges, player and accent in the colors of the theme instead of the widget colors",
|
|
83
|
+
"de": "Kacheln, Badges, Player und Akzent in den Farben des Themes statt der Widget-Farben"
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
"hRec": {
|
|
87
|
+
"type": "header",
|
|
88
|
+
"text": {
|
|
89
|
+
"en": "Recordings Widget",
|
|
90
|
+
"de": "Aufnahmen-Widget"
|
|
91
|
+
},
|
|
92
|
+
"size": 5,
|
|
93
|
+
"hidden": "data.mode !== 'custom'"
|
|
94
|
+
},
|
|
95
|
+
"widgetMode": {
|
|
96
|
+
"type": "select",
|
|
97
|
+
"label": {
|
|
98
|
+
"en": "Widget mode",
|
|
99
|
+
"de": "Widget-Modus"
|
|
100
|
+
},
|
|
101
|
+
"default": "nojs",
|
|
102
|
+
"hidden": "data.mode !== 'custom'",
|
|
103
|
+
"options": [
|
|
104
|
+
{
|
|
105
|
+
"value": "nojs",
|
|
106
|
+
"label": {
|
|
107
|
+
"en": "Gallery only (like 'Pure HTML/CSS')",
|
|
108
|
+
"de": "Nur Galerie (wie „Reines HTML/CSS“)"
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"value": "js",
|
|
113
|
+
"label": {
|
|
114
|
+
"en": "With search and tag filter (like 'Full JS')",
|
|
115
|
+
"de": "Mit Suche und Tag-Filter (wie „Vollständiges JS“)"
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
]
|
|
119
|
+
},
|
|
120
|
+
"count": {
|
|
121
|
+
"type": "number",
|
|
122
|
+
"label": {
|
|
123
|
+
"en": "Max. recordings in gallery",
|
|
124
|
+
"de": "Max. Aufnahmen in der Galerie"
|
|
125
|
+
},
|
|
126
|
+
"min": 1,
|
|
127
|
+
"max": 500,
|
|
128
|
+
"default": 50,
|
|
129
|
+
"hidden": "data.mode !== 'custom'"
|
|
130
|
+
},
|
|
131
|
+
"thumbSize": {
|
|
132
|
+
"type": "select",
|
|
133
|
+
"label": {
|
|
134
|
+
"en": "Thumbnail size",
|
|
135
|
+
"de": "Thumbnail-Größe"
|
|
136
|
+
},
|
|
137
|
+
"default": "medium",
|
|
138
|
+
"hidden": "data.mode !== 'custom'",
|
|
139
|
+
"help": {
|
|
140
|
+
"en": "Width of preview images (overrides min. column width)",
|
|
141
|
+
"de": "Breite der Vorschaubilder (überschreibt Min. Spaltenbreite)"
|
|
142
|
+
},
|
|
143
|
+
"options": [
|
|
144
|
+
{
|
|
145
|
+
"value": "small",
|
|
146
|
+
"label": {
|
|
147
|
+
"en": "Small (120 px)",
|
|
148
|
+
"de": "Klein (120 px)"
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"value": "medium",
|
|
153
|
+
"label": {
|
|
154
|
+
"en": "Medium (180 px)",
|
|
155
|
+
"de": "Mittel (180 px)"
|
|
156
|
+
}
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
"value": "large",
|
|
160
|
+
"label": {
|
|
161
|
+
"en": "Large (240 px)",
|
|
162
|
+
"de": "Groß (240 px)"
|
|
163
|
+
}
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"value": "custom",
|
|
167
|
+
"label": {
|
|
168
|
+
"en": "Min. column width below",
|
|
169
|
+
"de": "Min. Spaltenbreite unten"
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
]
|
|
173
|
+
},
|
|
174
|
+
"minCol": {
|
|
175
|
+
"type": "number",
|
|
176
|
+
"label": {
|
|
177
|
+
"en": "Min. column width (px)",
|
|
178
|
+
"de": "Min. Spaltenbreite (px)"
|
|
179
|
+
},
|
|
180
|
+
"min": 80,
|
|
181
|
+
"max": 600,
|
|
182
|
+
"default": 150,
|
|
183
|
+
"hidden": "data.mode !== 'custom' || data.thumbSize !== 'custom'"
|
|
184
|
+
},
|
|
185
|
+
"compact": {
|
|
186
|
+
"type": "checkbox",
|
|
187
|
+
"label": {
|
|
188
|
+
"en": "Compact layout",
|
|
189
|
+
"de": "Kompaktes Layout"
|
|
190
|
+
},
|
|
191
|
+
"default": false,
|
|
192
|
+
"hidden": "data.mode !== 'custom'",
|
|
193
|
+
"help": {
|
|
194
|
+
"en": "Smaller spacing and font – more entries at a glance",
|
|
195
|
+
"de": "Kleinere Abstände und Schrift – mehr Einträge auf einen Blick"
|
|
196
|
+
}
|
|
197
|
+
},
|
|
198
|
+
"maxModalWidth": {
|
|
199
|
+
"type": "number",
|
|
200
|
+
"label": {
|
|
201
|
+
"en": "Max. player width (px)",
|
|
202
|
+
"de": "Max. Player-Breite (px)"
|
|
203
|
+
},
|
|
204
|
+
"min": 300,
|
|
205
|
+
"max": 2000,
|
|
206
|
+
"default": 900,
|
|
207
|
+
"hidden": "data.mode !== 'custom'"
|
|
208
|
+
},
|
|
209
|
+
"hTags": {
|
|
210
|
+
"type": "header",
|
|
211
|
+
"text": {
|
|
212
|
+
"en": "Tags",
|
|
213
|
+
"de": "Tags"
|
|
214
|
+
},
|
|
215
|
+
"size": 5,
|
|
216
|
+
"hidden": "data.mode !== 'custom'"
|
|
217
|
+
},
|
|
218
|
+
"showTags": {
|
|
219
|
+
"type": "checkbox",
|
|
220
|
+
"label": {
|
|
221
|
+
"en": "Show event tags",
|
|
222
|
+
"de": "Ereignis-Tags anzeigen"
|
|
223
|
+
},
|
|
224
|
+
"default": true,
|
|
225
|
+
"hidden": "data.mode !== 'custom'"
|
|
226
|
+
},
|
|
227
|
+
"tagPosition": {
|
|
228
|
+
"type": "select",
|
|
229
|
+
"label": {
|
|
230
|
+
"en": "Tag badge position",
|
|
231
|
+
"de": "Tag-Badge-Position"
|
|
232
|
+
},
|
|
233
|
+
"default": "bottom-left",
|
|
234
|
+
"hidden": "data.mode !== 'custom' || !data.showTags",
|
|
235
|
+
"options": [
|
|
236
|
+
{
|
|
237
|
+
"value": "top-left",
|
|
238
|
+
"label": {
|
|
239
|
+
"en": "Top left",
|
|
240
|
+
"de": "Oben links"
|
|
241
|
+
}
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
"value": "top-right",
|
|
245
|
+
"label": {
|
|
246
|
+
"en": "Top right",
|
|
247
|
+
"de": "Oben rechts"
|
|
248
|
+
}
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
"value": "bottom-left",
|
|
252
|
+
"label": {
|
|
253
|
+
"en": "Bottom left",
|
|
254
|
+
"de": "Unten links"
|
|
255
|
+
}
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
"value": "bottom-right",
|
|
259
|
+
"label": {
|
|
260
|
+
"en": "Bottom right",
|
|
261
|
+
"de": "Unten rechts"
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
]
|
|
265
|
+
},
|
|
266
|
+
"hFilter": {
|
|
267
|
+
"type": "header",
|
|
268
|
+
"text": {
|
|
269
|
+
"en": "Filter & Sort",
|
|
270
|
+
"de": "Filter & Sortierung"
|
|
271
|
+
},
|
|
272
|
+
"size": 5,
|
|
273
|
+
"hidden": "data.mode !== 'custom'"
|
|
274
|
+
},
|
|
275
|
+
"sortNewest": {
|
|
276
|
+
"type": "checkbox",
|
|
277
|
+
"label": {
|
|
278
|
+
"en": "Newest first",
|
|
279
|
+
"de": "Neueste zuerst"
|
|
280
|
+
},
|
|
281
|
+
"default": true,
|
|
282
|
+
"hidden": "data.mode !== 'custom'"
|
|
283
|
+
},
|
|
284
|
+
"showSearch": {
|
|
285
|
+
"type": "checkbox",
|
|
286
|
+
"label": {
|
|
287
|
+
"en": "Show search field",
|
|
288
|
+
"de": "Suchfeld anzeigen"
|
|
289
|
+
},
|
|
290
|
+
"default": true,
|
|
291
|
+
"hidden": "data.mode !== 'custom' || data.widgetMode !== 'js'"
|
|
292
|
+
},
|
|
293
|
+
"defaultTag": {
|
|
294
|
+
"type": "text",
|
|
295
|
+
"label": {
|
|
296
|
+
"en": "Default tag filter (empty = all)",
|
|
297
|
+
"de": "Standard-Tag-Filter (leer = alle)"
|
|
298
|
+
},
|
|
299
|
+
"default": "",
|
|
300
|
+
"hidden": "data.mode !== 'custom' || data.widgetMode !== 'js'"
|
|
301
|
+
},
|
|
302
|
+
"hPlayer": {
|
|
303
|
+
"type": "header",
|
|
304
|
+
"text": {
|
|
305
|
+
"en": "Player",
|
|
306
|
+
"de": "Player"
|
|
307
|
+
},
|
|
308
|
+
"size": 5,
|
|
309
|
+
"hidden": "data.mode !== 'custom'"
|
|
310
|
+
},
|
|
311
|
+
"playerUrl": {
|
|
312
|
+
"type": "text",
|
|
313
|
+
"label": {
|
|
314
|
+
"en": "External player URL (empty = built-in player)",
|
|
315
|
+
"de": "Externer Player-URL (leer = eingebauter Player)"
|
|
316
|
+
},
|
|
317
|
+
"default": "",
|
|
318
|
+
"hidden": "data.mode !== 'custom'",
|
|
319
|
+
"help": {
|
|
320
|
+
"en": "Placeholders: {video} {videoRaw} {fn} {date} {time} {duration} {size} {tags}",
|
|
321
|
+
"de": "Platzhalter: {video} {videoRaw} {fn} {date} {time} {duration} {size} {tags}"
|
|
322
|
+
}
|
|
323
|
+
},
|
|
324
|
+
"hColors": {
|
|
325
|
+
"type": "header",
|
|
326
|
+
"text": {
|
|
327
|
+
"en": "Colors & Design",
|
|
328
|
+
"de": "Farben & Design"
|
|
329
|
+
},
|
|
330
|
+
"size": 5,
|
|
331
|
+
"hidden": "data.mode !== 'custom'"
|
|
332
|
+
},
|
|
333
|
+
"colorCardBg": {
|
|
334
|
+
"type": "color",
|
|
335
|
+
"label": {
|
|
336
|
+
"en": "Tile background",
|
|
337
|
+
"de": "Kachel-Hintergrund"
|
|
338
|
+
},
|
|
339
|
+
"default": "rgba(127,127,127,0.15)",
|
|
340
|
+
"hidden": "data.mode !== 'custom' || data.follow"
|
|
341
|
+
},
|
|
342
|
+
"colorTagBg": {
|
|
343
|
+
"type": "color",
|
|
344
|
+
"label": {
|
|
345
|
+
"en": "Tag badge background",
|
|
346
|
+
"de": "Tag-Badge-Hintergrund"
|
|
347
|
+
},
|
|
348
|
+
"default": "rgba(0,0,0,0.55)",
|
|
349
|
+
"hidden": "data.mode !== 'custom' || data.follow"
|
|
350
|
+
},
|
|
351
|
+
"colorTagText": {
|
|
352
|
+
"type": "color",
|
|
353
|
+
"label": {
|
|
354
|
+
"en": "Tag badge text color",
|
|
355
|
+
"de": "Tag-Badge-Textfarbe"
|
|
356
|
+
},
|
|
357
|
+
"default": "#ffffff",
|
|
358
|
+
"hidden": "data.mode !== 'custom' || data.follow"
|
|
359
|
+
},
|
|
360
|
+
"colorAccent": {
|
|
361
|
+
"type": "color",
|
|
362
|
+
"label": {
|
|
363
|
+
"en": "Accent color",
|
|
364
|
+
"de": "Akzentfarbe"
|
|
365
|
+
},
|
|
366
|
+
"default": "#8ab4f8",
|
|
367
|
+
"hidden": "data.mode !== 'custom' || data.follow",
|
|
368
|
+
"help": {
|
|
369
|
+
"en": "Links and active tag filter",
|
|
370
|
+
"de": "Links und aktiver Tag-Filter"
|
|
371
|
+
}
|
|
372
|
+
},
|
|
373
|
+
"colorModalBg": {
|
|
374
|
+
"type": "color",
|
|
375
|
+
"label": {
|
|
376
|
+
"en": "Modal background",
|
|
377
|
+
"de": "Modal-Hintergrund"
|
|
378
|
+
},
|
|
379
|
+
"default": "#1c1c1e",
|
|
380
|
+
"hidden": "data.mode !== 'custom' || data.follow"
|
|
381
|
+
},
|
|
382
|
+
"borderRadius": {
|
|
383
|
+
"type": "number",
|
|
384
|
+
"label": {
|
|
385
|
+
"en": "Border radius (px)",
|
|
386
|
+
"de": "Eckenradius (px)"
|
|
387
|
+
},
|
|
388
|
+
"min": 0,
|
|
389
|
+
"max": 32,
|
|
390
|
+
"default": 8,
|
|
391
|
+
"hidden": "data.mode !== 'custom'",
|
|
392
|
+
"help": {
|
|
393
|
+
"en": "Corner radius of the tiles (0 = square)",
|
|
394
|
+
"de": "Abrundungsradius der Kacheln (0 = eckig)"
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
}
|