Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add dashboard user guide #167

Draft
wants to merge 9 commits into
base: master
Choose a base branch
from
26 changes: 26 additions & 0 deletions _includes/toc-dashboard.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<ul class="toc">
<li class="toc-expander"><div>V</div></li>
<li class="tocheader">
<ul>
<li class="toctitle active"><a href="/docs/dashboard/">Dashboard user guide</a></li>
<li {% if page.url == "/docs/dashboard/introduction" %}class="active"{% endif %}><a href="/docs/dashboard/introduction">Introduction</a></li>
<li {% if page.url == "/docs/dashboard/installation" %}class="active"{% endif %}><a href="/docs/dashboard/installation">Installation of dashboard</a></li>
<li {% if page.url == "/docs/dashboard/configuration" %}class="active"{% endif %}><a href="/docs/dashboard/configuration">Dashboard configuration</a></li>
<li {% if page.url == "/docs/dashboard/usage" %}class="active"{% endif %}><a href="/docs/dashboard/usage">Dashboard usage</a></li>
<li {% if page.url == "/docs/dashboard/firststep" %}class="active"{% endif %}><a href="/docs/dashboard/firststep">The first step of dashboard</a></li>
<li {% if page.url == "/docs/dashboard/widget" %}class="active"{% endif %}><a href="/docs/dashboard/widget">Widget</a></li>
<li {% if page.url == "/docs/dashboard/layout"
%}class="active"{% endif%}><a href="/docs/dashboard/layout">Laying out Dashboard</a></li>
<li {% if page.url == "/docs/dashboard/nodes" %}class="active"{% endif %}><a href="/docs/dashboard/nodes">node-red-dashboard nodes</a></li>
<li {% if page.url == "/docs/dashboard/extranodes" %}class="active"{% endif %}><a href="/docs/dashboard/extranodes">Dashboard extra nodes</a></li>
</ul>
</li>
</ul>
<script>
$(function() {
var pageToc = $("<ul></ul>").appendTo(".toc li.active:not(.toctitle)");
$(".docs-content h3,.docs-content h4").each(function() {
$('<li id="toc-item-'+$(this).attr('id')+'"><a style="font-size: 0.9em; padding-left: 50px;" href="#'+$(this).attr('id')+'">'+$(this).text()+'</a></li>').appendTo(pageToc)
})
})
</script>
3 changes: 3 additions & 0 deletions _layouts/docs-dashboard.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{% assign parent_url = '/docs/dashboard' %}
{% assign parent_slug = 'dashboard' %}
{% include docs-content.html %}
14 changes: 14 additions & 0 deletions docs/dashboard/configuration-ja.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
layout: docs-dashboard
toc: toc-dashboard.html
title: Dashbord configuration (ダッシュボードを設定する)
---

### Changing URL for dashboard (ダッシュボードのURL変更)
text

### Authentication of dashboard (ダッシュボード表示前に認証を行う)
text

### Readonly setting for dashboard (ダッシュボードをreadonlyに設定する)
text
14 changes: 14 additions & 0 deletions docs/dashboard/configuration.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
layout: docs-dashboard
toc: toc-dashboard.html
title: Dashboard configuration
---

### Changing URL for dashboard
text

### Authentication of dashboard
text

### Readonly setting for dashboard
text
15 changes: 15 additions & 0 deletions docs/dashboard/extranodes-ja.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
layout: docs-dashboard
toc: toc-dashboard.html
title: Dashboard extra nodes
---

### Show richer table (リッチなテーブルを表示する)
text

### Show list (リストを表示する)
text

### Plot data on the map (地図上にデータを重ねて表示する)
text

15 changes: 15 additions & 0 deletions docs/dashboard/extranodes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
layout: docs-dashboard
toc: toc-dashboard.html
title: Dashboard extra nodes
---

### Show richer table
text

### Show list
text

### Plot data on the map
text

26 changes: 26 additions & 0 deletions docs/dashboard/firststep-ja.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
layout: docs-dashboard
toc: toc-dashboard.html
title: The first step of dashboard (はじめてのダッシュボード)
---

### Overview (Creating dashboard to monitor temperature data) (概要(気温データを監視するdashboadを作成する))
text

### Description of flow handling (フローの処理概要)
text

### Adding UI nodes to the workspace (UIノードをワークスペースに追加する)
text

### Layouting UI nodes by the dashboard layout editor (UIノードをダッシュボードレイアウトエディタで配置する)
text

### Configuration of the UI node properties (UIノードのプロパティを設定する)
text

### Source of the flow (ソース)
text

### References (関連するドキュメント)
text
26 changes: 26 additions & 0 deletions docs/dashboard/firststep.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
layout: docs-dashboard
toc: toc-dashboard.html
title: The first step of dashboard
---

### Overview (Creating dashboard to monitor temperature data)
text

### Description of flow handling
text

### Adding UI nodes to the workspace
text

### Layouting UI nodes by the dashboard layout editor
text

### Configuration of the UI node properties
text

### Source of the flow
text

### References
text
Binary file added docs/dashboard/images/layout/ElementSizerNum.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/dashboard/images/layout/ElementSizert.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/dashboard/images/layout/Group-Properties.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/dashboard/images/layout/Layout.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/dashboard/images/layout/LayoutButton.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/dashboard/images/layout/LayoutEditor.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/dashboard/images/layout/Link.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/dashboard/images/layout/OLD/Layout.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/dashboard/images/layout/OLD/Link.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/dashboard/images/layout/OLD/Site.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/dashboard/images/layout/OLD/Spacer.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/dashboard/images/layout/Site.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/dashboard/images/layout/Spacer.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/dashboard/images/layout/Tab-Group-button.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions docs/dashboard/index-ja.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
layout: docs-dashboard
toc: toc-dashboard.html
title: Dashboard user guide
---

6 changes: 6 additions & 0 deletions docs/dashboard/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
layout: docs-dashboard
toc: toc-dashboard.html
title: Dashboard user guide
---

8 changes: 8 additions & 0 deletions docs/dashboard/installation-ja.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
layout: docs-dashboard
toc: toc-dashboard.html
title: Installation of dashboard (ダッシュボードをインストールする)
---

### Installing node-red-dashboard (node-red-dashboadのインストール)
text
8 changes: 8 additions & 0 deletions docs/dashboard/installation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
layout: docs-dashboard
toc: toc-dashboard.html
title: Installation of dashboard
---

### Installing node-red-dashboard
text
8 changes: 8 additions & 0 deletions docs/dashboard/introduction-ja.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
layout: docs-dashboard
toc: toc-dashboard.html
title: Introduction (はじめに)
---

### What is dashboard? (ダッシュボードとは)
text
8 changes: 8 additions & 0 deletions docs/dashboard/introduction.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
layout: docs-dashboard
toc: toc-dashboard.html
title: Introduction
---

### What is dashboard?
text
183 changes: 183 additions & 0 deletions docs/dashboard/layout.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,183 @@
---
layout: docs-dashboard
toc: toc-dashboard.html
title: Laying out Dashboard
---

<!-- This document contains original Japanese description in comments -->

### Basic UI Elements of Dashboard

<!-- ### Dashboard画面の基本部品 -->

<!-- Node-RED Dashboardは`Widget`、`Group`、および、`Tab`から構成されます。WidgetはButton、ChartなどGUI部品です。Groupは複数のWidgetを配置する領域を定義するために使用します。TabはWebブラウザ上に表示するダッシュボード画面全体を表します。Tabは複数定義でき、サイドメニューからの選択、もしくは、ui_controlノードで切り替えて一つのタブを表示できます。GroupおよびTabはConfigノードです。-->

The Node-RED Dashboard consists of `Widget`,`Group`, and `Tab`. Widget is a GUI element such as button or chart. Group is used to define the area where multiple widgets will be placed. Tab may contain multiple groups and represents the entire dashboard screen displayed on the Web browser. Multiple Tabs can be defined, and one tab can be displayed by selecting from the side menu or switched with the `ui_control` node. Group and Tab are defined as configuration nodes.

### Laying out Dashboard Elements

<!-- ### 画面要素のレイアウト -->

<img src="images/layout/Site.png" style="float: right; margin-left: 20px"/>

<!-- ダッシュボードは一定の大きさのグリッドを基本要素とし、Widgetは高さと幅、Groupは幅をグリッド数を単位として定義します。グリッドの単位要素の大きさはdashboardサイドバーのSiteタブで設定できます。-->

The dashboard layout is defined using a grid with fixed size element. The widget has the height and width, and the group has the width in units of the number of grid elements. The size in pixels of the grid's unit element can be set by '*1x1 Widget Size*' of the `Site` tab of the dashboard sidebar.

<!-- SIteタブでは、Widget間の間隔およびおよびグループ間の間隔と余白も設定できます。 -->

On the `Site` tab, the spacing between widgets and the spacing and paddings between groups can also be specified.

<br style="clear:both"/>

<img src="images/layout/Layout.png" style="float:left; margin-right: 20px"/>

<!-- WidgetはGroup内に、GroupはTab内に、それぞれの幅に収まるよう配置を調整します。これら要素の階層関係は、dashboardサイドバーのLayoutタブで確認できます。-->

The widgets are arranged in the group and the group in the tab so that they fit within their respective widths. The hierarchical relationship of these elements can be managed in the `Layout` tab of the dashboard sidebar.

<!-- Dashboardのレイアウト処理では、次のように画面のレイアウトを行います。

1. 各グループのWidgetについて、上から下、左から右にGroupに配置する。

2. 各グループについて、上から下、左から右にTabに配置する。-->

While laying out the dashboard screen, the placements of screen element is determined as follows:

1. place widgets in each group from left to right then top to bottom,

2. place groups in each tab from left to right then top to bottom.

<!-- GroupへのWidgetの配置、および、TabへのGroupの配置は、上から下、左から右に配置可能な空き領域を探し、最初に見つかった領域に配置します。Dashboardの表示を行うブラウザのサイズを変更すると、TabへのGroupの配置が自動的に調整されます。

 GroupへのWidgetの配置、および、TabへのGroupの配置は、上から下、左から右に配置可能な空き領域を探し、最初に見つかった領域に配置します。Dashboardの表示を行うブラウザのサイズを変更すると、TabへのGroupの配置が自動的に調整されます。

 Layoutタブ上のUI部品の順序と所属関係はdrag&dropで変更可能です。-->

To place the widgets on the belonging group and the groups on the belonging tab, free space that can place the element is searched from left to right then top to bottom, and the first found area is used to place it. If the browser that is displaying the dashboard is resized, the placement of the groups within the displayed tab will be adjusted automatically.

The order and belonging relation of UI elements on the `Layout` tab can be changed by drag & drop of an element.

<br style="clear:both"/>

### Adding a Widget to Dashboard

<!-- ### DashboardへのWidgetの追加 -->

<!-- Widgetに対応するUIノードの*Properties*の*Group*項目にwidgetを配置するgroupを設定します。*Size*項目はwidgetのサイズの設定です。-->

The group to place a widget can be set by the *Group* item of *Properties* of the UI node corresponding to the widget. The *Size* item is used for setting the widget size.

![Widget-Properties.png](images/layout/Widget-Properties.png)

<!-- Group設定では、同様に配置先のtabとgroupの幅を指定します。-->

The *Group* setting specify the belonging tab and the width of the group in the same way.

![Group-Properties.png](images/layout/Group-Properties.png)

<img src="images/layout/Tab-Group-button.png" style="float: right; margin-left: 20px"/>

<!-- dashboardサイドバーのLayoutタブの *+tab* ボタンから新規tab、tab上にマウスオーバを行うと表示される *+group* ボタンから新規groupの追加を行うことも可能です。-->

A new tab can be added by pressing the `+tab` button on the `Layout` tab of the dashboard sidebar, and a new group can be added by pressing the `+group` button that appears while mouse over the group element.

<br style="clear:both"/>

### Setting UI Element Size

<!-- ### UI部品サイズの指定 -->

<img src="images/layout/ElementSizert.png" style="float: right; margin-left: 20px"/>

<!-- Widgetおよびtabのサイズは、*Size*項目により設定します。Size項目を選択すると、サイズ洗濯のためのポップアップインターフェイスが表示されます。サイズをグリッド領域で指定します。-->

The size of widget and tab is set by the *Size* item. Selecting the *Size* item will display a popup interface for specifying UI element size. The size of the UI element can be specified by the grid area of this popup UI.

<!-- autoボタンを押すと、widgetのサイズを自動設定します。その動作はノードによりますが、一般的に、auto設定ではwidgetの幅は所属するgroupの幅と同じ、widget毎に高さは適切な大きさが選択されます。-->

Pressing the `auto` button indicate to set the widget size automatically. Its behavior depends on implementation of each UI widgets. Typically, the width of the widget is set to the same width of the belonging group, and the height is set to appropriate value.

<br style="clear:both"/>

<!-- ポップアップ上部の*W x H*をクリックすると、以下の数値入力ポップアップに変化します。大きな固定数値のサイズを指定する場合はこちらが便利です。-->

Clicking *6 x 4* , the size of widget, at the top left of the UI will display the following interface for changing the widget size using digits input. This UI is useful to specify the size for large widget.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't see the wxh text that you need to click in the image ?

<img title="" src="images/layout/ElementSizerNum.png" alt="ElementSizerNum.png" data-align="inline">

### Adjusting Layout using Spacer

<!-- ### Spacerによるレイアウト調整 -->

<img src="images/layout/Spacer.png" style="float: left; margin-right: 20px"/>

<!-- Group内のwidgetの細かな配置調整のためにSpacerノードを利用できます。Spacerノードは指定したサイズの領域の穴埋めをするためのwidgetです。

 GroupへのSpacerの追加は、Layoutタブのグループ上のマウスオーバで表示される+spacerボタンで行います。-->

The `Spacer` node can be used for fine-tuning the placement of widgets in a group. The Spacer node is a special widget for filling in the area with the specified size.

To add a `Spacer` to a group, use the `+spacer` button displayed while mouse over the group on the `Layout` tab.

<br style="clear:both"/>

### Layout Editor

<img src="images/layout/LayoutButton.png" style="float:right; margin-left: 20px"/>

<!-- 複雑なダッシュボード画面を構成する場合、Layout Editorを用いることで、GUIによってWidgetの配置を行うことができます。Layout EditorはLayoutタブのTab上のマウス    オーバで表示される*layout*ボタンを押すことで起動します。-->

While laying out a complicated dashboard screen, GUI-based `Layout Editor` can be used. The layout editor can be opened by pressing the `layout` button displayed while mouse over on a tab on the `Layout` tab.

<br style="clear:both"/>

<!-- Layout Editorでは、Tabを構成するグループのグリッドレイアウトが表示されます。

 各グループの幅は右上のWidth項目によって変更できます。-->

The `Layout Editor` displays the grid layout of the groups that make up the specified tab.

The width of each group can be changed by the *Width* item displayed on the top right.

<!-- グループ内のWidgetについて、drag&dropによってgroup内の配置を変更できます。Widget右上の鍵マークはWidgetのサイズがautoか否かを表します。鍵のロックが外れている場合は、右下の矢印をdragすることでサイズを変更できます。

 Layout Editorでレイアウトを行うと、必要な位置にSpacerノードを自動的に挿入します。-->

The placement of widgets in a group can be changed by drag & dropping a widget. The lock mark on the upper right of the widget indicates whether the widget size is *auto* or not. If the key is locked, the widget size can be changed by dragging the arrow at the bottom right.

After finishing layout with the `Layout Editor`, `Spacer` nodes are automatically inserted at appropriate positions.

![LayoutEditor.png](images/layout/LayoutEditor.png)

<br style="clear:both"/>

### Link to Web Page

<!-- Layoutタブでは+linkボタンによりWebページへのリンクをサイドメニューに設定することができます。指定したリンクは、サイドメニューもしくはui_controlノードにより選択肢し、ブラウザの別ページや、iframeでdashboardに埋め込むことができます。-->

A link to a web page instead of tab can be added to side menu using `+Link` button of the `Layout` tab. The specified link can be selected from the side menu of dashboard or the `ui_control` node and can redirect to the page or can embed it in the dashboard using iframe.

### Configuring Group Title

<!-- ### グループタイトルの設定 -->

<!-- Dashboard上でgroupの上部にはグループ名がデフォルトで表示されます。グループ設定パネルの'Display group name'チェックボックスを選択しないと表示しないように変更可能です。-->

The group name is displayed at the top of the group on the dashboard by default. It can be disabled by unselecting the'*Display group name*' check box of the group settings panel.

### Configuring Title Bar & Side Menu

<!-- ### タイトルバーとサイドメニューの設定 -->

<!-- ダッシュボード画面の上部に、サイドメニューなどを表示するタイトルバーがデフォルトで表示されます。これは、`Site`メニューの設定で非表示に変更できます。また、サイドメニューも`Site`メニューの設定で常時表示、もしくは、アイコンのみ表示とすることができます。-->

At the top of the dashboard screen, a title bar that displays side menus etc. is shown by default. This can be hidden by the `Site` tab settings. Also, the side menu can be configured to be always shown or shown in icon only from the `Site` tab settings.

<!-- 各タブの設定から、タブの名称とアイコン、メニューへのタブの表示するか否かを設定できます。-->

The title and icon of each tab and whether to display the tab on the side menu can be set from the settings panel of each tab.

<!-- タブのアイコンとしてMaterial Design icon(e.g. 'check', 'close'), Font Awesome icon(e.g. 'fa-fire'), Weather Icon(e.g. 'wi-wu-sunny'), Google Material Icon(e.g. 'mi-videogame_asset')を指定できます。-->

[Material Design icon](https://klarsys.github.io/angular-material-icons/) *(e.g. 'check', 'close')*, a [Font Awesome icon](https://fontawesome.com/v4.7.0/icons/) *(e.g. 'fa-fire')*, a [Weather icon](https://github.com/Paul-Reed/weather-icons-lite/blob/master/css_mappings.md) *(e.g. 'wi-wu-sunny')*, or a [Google material icon](https://fonts.google.com/icons) *(e.g. 'mi-videogame_asset')* can be used as an icon for a tab.
Loading