Skip to content

Commit

Permalink
Работа с разделом UI
Browse files Browse the repository at this point in the history
  • Loading branch information
sergejey committed Dec 9, 2023
1 parent 6cb791b commit 1d6f8eb
Show file tree
Hide file tree
Showing 31 changed files with 144 additions and 4 deletions.
12 changes: 11 additions & 1 deletion content/ru/docs/Configuration/UI/config-dashboards.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
---
title: Дашборды
weight: 60
---
---

https://mjdm.ru/forum/viewtopic.php?f=7&t=3607

![](../ui-dashboard-preview.png)

![](../ui-dashboard-edit.png)

![](../ui-dashboard-widget-add.png)

![](../ui-dashboard-widget-edit.png)
8 changes: 7 additions & 1 deletion content/ru/docs/Configuration/UI/config-homepages.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
---
title: Домашние страницы
weight: 50
---
---

![](../ui-homepages-preview.png)

![](../ui-homepages-admin.png)

![](../ui-homepages-edit.png)
114 changes: 113 additions & 1 deletion content/ru/docs/Configuration/UI/config-menu.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,116 @@
---
title: Меню управления
weight: 40
---
---

Меню управления -- один из вариантов организации пользовательского интерфейса по работе с системой. Исторически это был
первый вариант пользовательского интерфейса системы MajorDoMo, сохранившийся как один из возможных на данный момент.

По-умолчанию меню располагается в левой секции [стартового экрана](../config-index/), но может быть открыто напрямую по ссылке:
```
http://IP_адрес_сервера/menu.html
```

Также отдельный элемент (или ветка) доступен по прямой ссылке вида:
```
http://IP_адрес_сервера/menu.html?parent={ID}
```
{ID} -- идентификатор элемента

Пример внешнего вида меню:
![](../ui-menu-user.png)

Настройка меню осуществляется в разделе **Панель управления → Объекты → Меню управления**.

![](../ui-menu-admin.png)

Структурно меню является деревом элементов различных типов. Детали каждого типа элементов представлены ниже.

## Основные параметры элемента меню

![](../ui-menu-element.png)

Доступность отдельных параметров зависит от типа используемого элемента.

- **ID** -- ???
- **Родительский пункт меню** -- ???
- **Название** -- ???
- **Приоритет** -- ???
- **Тип** -- ???
- **Иконка** -- ???
- **Период автообновления**-- определяет частоту, с которой интерфейс будет обращаться к серверу для обновления собственного состояния. Актуально в случае недоступности протокола веб-сокетов, иначе обновление элемента происходит в реальном времени, независимо от установленного значения.
- **Использовать элемент** -- позволяет повторно использовать уже созданный ранее элемент со всеми его настройками на месте данного
- **Только чтение** -- при включении данной опции, элемент отражает значение привязанного свойства, но не изменяет его. При этом связанный метод и сценарий будут вызваны (если они заданы).
- **Авто-повтор** -- позволяет автоматически дублировать элемент меню, используя все доступные объекты класса, к которому принадлежит Связанный объект данного пункта меню.
- **Связанный объект** -- ???
- **Свойство** -- ???
- **Метод** -- ???
- **Сценарий** -- ???
- **Код** -- ???
- **Задержка при ротации** -- определяет период времени, в течении которого будет виден данный элмент перед тем, как будет заменён другим, у которого так же установлено значение данного поля. Ротируемые элементы должны находиться на одном уровне и идти друг за другом. Ротация элементов позволяет автоматически менять выводимые данные, не расширяя размер физической области, занимаемой элементами.
- **Загружать дочерние элементы в раскрывающуюся область** -- ???
- **Контроль доступа** -- ???

## Типы элементов меню

### Подпись

![](../ui-menu-element-label.png)

### Объект

![](../ui-menu-element-object.png)

### Ссылка (+новое окно)

![](../ui-menu-element-link.png)

### Новое окно

### Javascript-команда

![](../ui-menu-element-js-command.png)

### Клавиша

![](../ui-menu-element-button.png)

### Выключатель

![](../ui-menu-element-switch.png)

### Поле выбора (select)

![](../ui-menu-element-select.png)

### Поле выбора (radio)

![](../ui-menu-element-radio.png)

### Слайдер

![](../ui-menu-element-slider.png)

### Плюс-минус

![](../ui-menu-element-plusminus.png)

### Выбор времени

![](../ui-menu-element-time.png)

### Дата

![](../ui-menu-element-date.png)

### Текстовое поле

![](../ui-menu-element-input.png)

### Выбор цвета

![](../ui-menu-element-color.png)

### HTML-блок

![](../ui-menu-element-html.png)
6 changes: 5 additions & 1 deletion content/ru/docs/Configuration/UI/config-plans.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
---
title: Планы
weight: 70
---
---

https://kb.mjdm.ru/plans_help/

https://mjdm.ru/forum/viewtopic.php?f=7&t=6178
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added content/ru/docs/Configuration/UI/ui-menu-user.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions content/ru/docs/Configuration/config-general.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
title: Общие настройки
weight: 38
---
4 changes: 4 additions & 0 deletions content/ru/docs/Configuration/config-modes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
title: Режимы работы
weight: 42
---

0 comments on commit 1d6f8eb

Please sign in to comment.