From da5db8bc280deab0e2081f39d2f32aabb2372afe Mon Sep 17 00:00:00 2001 From: Evgeny Sorokin Date: Tue, 16 Jan 2024 02:05:00 +0300 Subject: wip --- localwebsite/templates-web/modem_data.twig | 14 -------------- localwebsite/templates-web/modem_status_page.twig | 19 ------------------- localwebsite/templates-web/modem_verbose_page.twig | 15 --------------- localwebsite/templates-web/signal_level.twig | 5 ----- localwebsite/templates-web/spinner.twig | 14 -------------- 5 files changed, 67 deletions(-) delete mode 100644 localwebsite/templates-web/modem_data.twig delete mode 100644 localwebsite/templates-web/modem_status_page.twig delete mode 100644 localwebsite/templates-web/modem_verbose_page.twig delete mode 100644 localwebsite/templates-web/signal_level.twig delete mode 100644 localwebsite/templates-web/spinner.twig (limited to 'localwebsite/templates-web') diff --git a/localwebsite/templates-web/modem_data.twig b/localwebsite/templates-web/modem_data.twig deleted file mode 100644 index a2c00e5..0000000 --- a/localwebsite/templates-web/modem_data.twig +++ /dev/null @@ -1,14 +0,0 @@ -{% if not loading %} - Сигнал: {% include 'signal_level.twig' with {'level': modem_data.level} %}
- Тип сети: {{ modem_data.type }}
- RSSI: {{ modem_data.rssi }}
- {% if modem_data.sinr %} - SINR: {{ modem_data.sinr }}
- {% endif %} - Время соединения: {{ modem_data.connected_time }}
- Принято/передано: {{ modem_data.downloaded }} / {{ modem_data.uploaded }} -
- Подробная информация -{% else %} - {% include 'spinner.twig' %} -{% endif %} \ No newline at end of file diff --git a/localwebsite/templates-web/modem_status_page.twig b/localwebsite/templates-web/modem_status_page.twig deleted file mode 100644 index 3f20b86..0000000 --- a/localwebsite/templates-web/modem_status_page.twig +++ /dev/null @@ -1,19 +0,0 @@ -{% include 'bc.twig' with { - history: [ - {text: "Модемы" } - ] -} %} - -{% for modem_key, modem in modems %} -
{{ modem.label }}
-
- {% include 'modem_data.twig' with { - loading: true, - modem: modem_key - } %} -
-{% endfor %} - -{% js %} -ModemStatus.init({{ js_modems|json_encode|raw }}); -{% endjs %} diff --git a/localwebsite/templates-web/modem_verbose_page.twig b/localwebsite/templates-web/modem_verbose_page.twig deleted file mode 100644 index 3b4c25e..0000000 --- a/localwebsite/templates-web/modem_verbose_page.twig +++ /dev/null @@ -1,15 +0,0 @@ -{% include 'bc.twig' with { - history: [ - {link: '/modem/', text: "Модемы" }, - {text: modem_name} - ] -} %} - -{% for item in data %} - {% set item_name = item[0] %} - {% set item_data = item[1] %} -
{{ item_name }}
- {% for k, v in item_data %} - {{ k }} = {{ v }}
- {% endfor %} -{% endfor %} \ No newline at end of file diff --git a/localwebsite/templates-web/signal_level.twig b/localwebsite/templates-web/signal_level.twig deleted file mode 100644 index 9498482..0000000 --- a/localwebsite/templates-web/signal_level.twig +++ /dev/null @@ -1,5 +0,0 @@ -
- {% for i in 0..4 %} -
- {% endfor %} - \ No newline at end of file diff --git a/localwebsite/templates-web/spinner.twig b/localwebsite/templates-web/spinner.twig deleted file mode 100644 index 2d629ea..0000000 --- a/localwebsite/templates-web/spinner.twig +++ /dev/null @@ -1,14 +0,0 @@ -
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file -- cgit v1.2.3 From 8a89dd77be03ca8eb9cdc378ba8e912292494fa9 Mon Sep 17 00:00:00 2001 From: Evgeny Sorokin Date: Tue, 16 Jan 2024 03:31:55 +0300 Subject: inverter page --- localwebsite/templates-web/inverter_page.twig | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 localwebsite/templates-web/inverter_page.twig (limited to 'localwebsite/templates-web') diff --git a/localwebsite/templates-web/inverter_page.twig b/localwebsite/templates-web/inverter_page.twig deleted file mode 100644 index c51e1bf..0000000 --- a/localwebsite/templates-web/inverter_page.twig +++ /dev/null @@ -1,20 +0,0 @@ -{% include 'bc.twig' with { - history: [ - {text: "Инвертор" } - ] -} %} - -
Статус
-
- {{ html|raw }} -
- - - -{% js %} -Inverter.poll(); -{% endjs %} \ No newline at end of file -- cgit v1.2.3 From a9a241ad19449c29b68cd4a5b539bcbec816e341 Mon Sep 17 00:00:00 2001 From: Evgeny Sorokin Date: Wed, 17 Jan 2024 03:35:59 +0300 Subject: lws: pump page rewritten to python --- localwebsite/templates-web/pump.twig | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 localwebsite/templates-web/pump.twig (limited to 'localwebsite/templates-web') diff --git a/localwebsite/templates-web/pump.twig b/localwebsite/templates-web/pump.twig deleted file mode 100644 index 3bce0e2..0000000 --- a/localwebsite/templates-web/pump.twig +++ /dev/null @@ -1,17 +0,0 @@ -{% include 'bc.twig' with { - history: [ - {text: "Насос" } - ] -} %} - -
- - Сейчас насос - {% if status == 'on' %} - включен.

- - {% else %} - выключен.

- - {% endif %} -
\ No newline at end of file -- cgit v1.2.3 From d237e81873a9e043f579e7f6a979f00510ddce08 Mon Sep 17 00:00:00 2001 From: Evgeny Sorokin Date: Thu, 18 Jan 2024 04:14:38 +0300 Subject: lws: sms page rewrite --- localwebsite/templates-web/sms_page.twig | 62 -------------------------------- 1 file changed, 62 deletions(-) delete mode 100644 localwebsite/templates-web/sms_page.twig (limited to 'localwebsite/templates-web') diff --git a/localwebsite/templates-web/sms_page.twig b/localwebsite/templates-web/sms_page.twig deleted file mode 100644 index 112fa64..0000000 --- a/localwebsite/templates-web/sms_page.twig +++ /dev/null @@ -1,62 +0,0 @@ -{% include 'bc.twig' with { - history: [ - {text: "SMS-сообщения" } - ] -} %} - - - -
Отправить SMS
- -{% if is_sent %} - -{% elseif error %} - -{% endif %} - -
-
- -
- - -
-
- - -
-
- -
-
-
- -
- Последние - {% if not is_outbox %} - входящие | исходящие - {% else %} - входящие | исходящие - {% endif %} -
- -{% for m in messages %} -
- {{ m.phone }} ({{ m.date }})
- {{ m.content }} -
-{% else %} - Сообщений нет. -{% endfor %} \ No newline at end of file -- cgit v1.2.3