From bc005e5e227dd93414f03eda821c70794c01402a Mon Sep 17 00:00:00 2001 From: Dmitry Borisenko <49808844+DmitryBorisenko33@users.noreply.github.com> Date: Mon, 27 Dec 2021 22:46:16 +0100 Subject: [PATCH] =?UTF-8?q?=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D0=BB=20?= =?UTF-8?q?=D0=BF=D0=BE=D0=BB=D0=BD=D0=BE=D1=81=D1=82=D1=8C=D1=8E=20=D0=B0?= =?UTF-8?q?=D0=B2=D1=82=D0=BE=D0=BC=D0=B0=D1=82=D0=B8=D1=87=D0=B5=D1=81?= =?UTF-8?q?=D0=BA=D1=83=D1=8E=20=D1=82=D0=B0=D0=B1=D0=BB=D0=B8=D1=86=D1=83?= =?UTF-8?q?=20=D1=8D=D0=BB=D0=B5=D0=BC=D0=B5=D0=BD=D1=82=D0=BE=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/.prettierrc | 2 +- src/App.svelte | 88 +++++++++++++++---------- src/{widgets => components}/Card.svelte | 0 3 files changed, 56 insertions(+), 34 deletions(-) rename src/{widgets => components}/Card.svelte (100%) diff --git a/src/.prettierrc b/src/.prettierrc index c391ff1..95fe477 100644 --- a/src/.prettierrc +++ b/src/.prettierrc @@ -4,7 +4,7 @@ "svelteBracketNewLine": false, "svelteAllowShorthand": false, "svelteIndentScriptAndStyle": true, - "printWidth": 600, + "printWidth": 1000, "sxBracketSameLine": true, "overrides": [ { diff --git a/src/App.svelte b/src/App.svelte index 9181929..90940ef 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -6,7 +6,7 @@ //router.mode.memory(); // enables in-memory navigation method import Chart from "svelte-frappe-charts"; - import Card from "./widgets/Card.svelte"; + import Card from "./components/Card.svelte"; import Modal from "./components/Modal.svelte"; import Input from "./widgets/Input.svelte"; import Toggle from "./widgets/Toggle.svelte"; @@ -176,13 +176,13 @@ { name: "Устройство 1", id: "987654321", - ip: "192.168.88.233", + ip: "192.168.88.235", status: false, }, { name: "Устройство 2", id: "987654321", - ip: "192.168.88.235", + ip: "192.168.88.233", status: false, }, ]; @@ -623,33 +623,49 @@
| Подтип | -Id | -Виджет | -Вкладка | -Название | -- | + | Тип | +Id | +Виджет | +Вкладка | +Название | ++ | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {element.subtype} | -- | ||||||||||||
| + | + | + |
+ {key} + |
+ + + | +
| Название устройства | -IP адрес | -Идентификатор | -Состояние | +Название устройства | +IP адрес | +Идентификатор | +Состояние |
|---|---|---|---|---|---|---|---|
| {device.name} | -{device.ip} | -{device.id} | -{device.status ? "online" : "offline"} | +{device.name} | +{device.ip} | +{device.id} | +{device.status ? "online" : "offline"} |
| - | - | - | + | + | + | + |