[HOME] Панели: ресурсы переведены на type=module (устранён конфликт const между картами), константы планшета переименованы
lint / hygiene (push) Failing after 18s
lint / hygiene (push) Failing after 18s
This commit is contained in:
1 parent
f956d611c6
commit
f50617ec15
1 file changed
+3
-3
@@ -18,7 +18,7 @@ const ZONES = {
|
||||
spalnia: [[633,348],[787,348],[787,524],[633,524]],
|
||||
kryltso: [[441,524],[441,593],[516,593],[516,524]],
|
||||
};
|
||||
const ROOM_NAMES = {
|
||||
const TC_ROOM_NAMES = {
|
||||
terrasa: "Терраса",
|
||||
kitchen: "Кухня-гостиная",
|
||||
postirochnaia: "Тех.пом.",
|
||||
@@ -109,7 +109,7 @@ class TabletCard extends HTMLElement {
|
||||
if (!p) return "";
|
||||
const cx = p.reduce((s, q) => s + q[0], 0) / p.length;
|
||||
const cy = p.reduce((s, q) => s + q[1], 0) / p.length;
|
||||
return `<text x="${cx}" y="${cy}" text-anchor="middle">${ROOM_NAMES[id].split(" ")[0]}</text>`;
|
||||
return `<text x="${cx}" y="${cy}" text-anchor="middle">${TC_ROOM_NAMES[id].split(" ")[0]}</text>`;
|
||||
}).join("")}
|
||||
</svg>`;
|
||||
}
|
||||
@@ -255,7 +255,7 @@ class TabletCard extends HTMLElement {
|
||||
<div class="main">
|
||||
<div class="plan-wrap">${this._plan()}</div>
|
||||
<div class="panel">
|
||||
<div class="phead"><span class="pname">${ROOM_NAMES[area] || area}</span></div>
|
||||
<div class="phead"><span class="pname">${TC_ROOM_NAMES[area] || area}</span></div>
|
||||
<div class="tiles">${this._tiles(area)}</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user