iobroker.telegram-menu 2.1.9 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -2
- package/admin/build/index.js +68 -68
- package/admin/build/index.js.map +4 -4
- package/admin/css/button.css +1 -1
- package/admin/css/custom_classes.css +116 -0
- package/admin/css/description.css +29 -0
- package/admin/css/style.css +85 -36
- package/admin/css/textarea.css +22 -20
- package/admin/i18n/de/translations.json +10 -3
- package/admin/i18n/en/translations.json +122 -115
- package/admin/i18n/es/translations.json +8 -1
- package/admin/i18n/fr/translations.json +8 -1
- package/admin/i18n/it/translations.json +8 -1
- package/admin/i18n/nl/translations.json +8 -1
- package/admin/i18n/pl/translations.json +8 -1
- package/admin/i18n/pt/translations.json +8 -1
- package/admin/i18n/ru/translations.json +8 -1
- package/admin/i18n/uk/translations.json +8 -1
- package/admin/i18n/zh-cn/translations.json +8 -1
- package/admin/words.js +6 -5
- package/build/lib/action.js +1 -1
- package/build/lib/action.js.map +1 -1
- package/build/lib/echarts.js +8 -4
- package/build/lib/echarts.js.map +2 -2
- package/build/lib/global.js +32 -2
- package/build/lib/global.js.map +3 -3
- package/build/lib/httpRequest.js +10 -5
- package/build/lib/httpRequest.js.map +2 -2
- package/build/lib/processData.js +1 -1
- package/build/lib/processData.js.map +2 -2
- package/build/lib/sendNav.js +1 -1
- package/build/lib/sendNav.js.map +1 -1
- package/build/lib/sendpic.js +6 -2
- package/build/lib/sendpic.js.map +2 -2
- package/build/lib/telegram.js +3 -1
- package/build/lib/telegram.js.map +2 -2
- package/build/main.js +31 -14
- package/build/main.js.map +2 -2
- package/io-package.json +28 -28
- package/package.json +1 -1
package/admin/css/button.css
CHANGED
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
.flex {
|
|
2
|
+
display: flex;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.flex-wrap {
|
|
6
|
+
flex-wrap: wrap;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.justify-between {
|
|
10
|
+
justify-content: space-between;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.justify-center {
|
|
14
|
+
justify-content: center;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.items-center {
|
|
18
|
+
align-items: center;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.text-white {
|
|
22
|
+
color: #fff;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.font-bold {
|
|
26
|
+
font-weight: 700
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.inline-block {
|
|
30
|
+
display: inline-block;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.cursor-default {
|
|
34
|
+
cursor: default;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.cursor-pointer {
|
|
38
|
+
cursor: pointer;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.text-xs {
|
|
42
|
+
font-size: 0.75rem; /* 12px */
|
|
43
|
+
line-height: 1rem; /* 16px */
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.text-sm {
|
|
47
|
+
font-size: 0.875rem; /* 14px */
|
|
48
|
+
line-height: 1.25rem; /* 20px */
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.text-base {
|
|
52
|
+
font-size: 1rem; /* 16px */
|
|
53
|
+
line-height: 1.5rem; /* 24px */
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.text-lg {
|
|
57
|
+
font-size: 1.125rem; /* 18px */
|
|
58
|
+
line-height: 1.75rem; /* 28px */
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.text-xl {
|
|
62
|
+
font-size: 1.25rem; /* 20px */
|
|
63
|
+
line-height: 1.75rem; /* 28px */
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.text-2xl {
|
|
67
|
+
font-size: 1.5rem; /* 24px */
|
|
68
|
+
line-height: 2rem; /* 32px */
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.text-3xl {
|
|
72
|
+
font-size: 1.875rem; /* 30px */
|
|
73
|
+
line-height: 2.25rem; /* 36px */
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.text-4xl {
|
|
77
|
+
font-size: 2.25rem; /* 36px */
|
|
78
|
+
line-height: 2.5rem; /* 40px */
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.text-5xl {
|
|
82
|
+
font-size: 3rem; /* 48px */
|
|
83
|
+
line-height: 1;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.text-left {
|
|
87
|
+
text-align: left;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.text-center {
|
|
91
|
+
text-align: center;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.text-right {
|
|
95
|
+
text-align: right;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.text-justify {
|
|
99
|
+
text-align: justify;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.text-start {
|
|
103
|
+
text-align: start;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.text-end {
|
|
107
|
+
text-align: end;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.w-full {
|
|
111
|
+
width: 100%;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.h-full {
|
|
115
|
+
height: 100%;
|
|
116
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
.table__container_description td p {
|
|
2
|
+
display: none;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.table__container_description td label {
|
|
6
|
+
width: 100% !important;
|
|
7
|
+
display: inline-block;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.table__container_description td input {
|
|
11
|
+
height: 30px;
|
|
12
|
+
color: #4caaf4 !important;
|
|
13
|
+
width: calc(100% - 0.5rem) !important;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.popup__description_header {
|
|
17
|
+
font-weight: bold;
|
|
18
|
+
font-size: 20px;
|
|
19
|
+
margin-bottom: 0.5rem;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.popup__description {
|
|
23
|
+
border: 1px solid black;
|
|
24
|
+
padding: 10px;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.dark .tab__description_text {
|
|
28
|
+
color: white
|
|
29
|
+
}
|
package/admin/css/style.css
CHANGED
|
@@ -8,6 +8,8 @@
|
|
|
8
8
|
@import "./row-editor.css";
|
|
9
9
|
@import "./header.css";
|
|
10
10
|
@import "./tab-action.css";
|
|
11
|
+
@import "./custom_classes.css";
|
|
12
|
+
@import "./description.css";
|
|
11
13
|
|
|
12
14
|
body {
|
|
13
15
|
height: 100vh;
|
|
@@ -15,48 +17,46 @@ body {
|
|
|
15
17
|
}
|
|
16
18
|
|
|
17
19
|
/* Tab-Navigation */
|
|
18
|
-
.App-TabList
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
margin: 5px 5px 5px 5px;
|
|
22
|
-
border-color: #aaa !important;
|
|
20
|
+
.App-TabList {
|
|
21
|
+
background-color: #3399cc;
|
|
22
|
+
padding-bottom: 5px;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
.App-TabList
|
|
26
|
-
|
|
25
|
+
.dark .App-TabList {
|
|
26
|
+
background-color: rgb(59, 59, 59);
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
.
|
|
30
|
-
|
|
29
|
+
.App-TabList button {
|
|
30
|
+
border-radius: 6px;
|
|
31
|
+
border: 3px solid #aaa !important;
|
|
32
|
+
margin: 5px 0 0 5px;
|
|
33
|
+
width: 110px;
|
|
34
|
+
height: 30px;
|
|
31
35
|
background-color: #ddd !important;
|
|
32
36
|
}
|
|
33
37
|
|
|
34
|
-
.
|
|
35
|
-
|
|
38
|
+
.App-TabList button.active {
|
|
39
|
+
border: 3px solid #333 !important;
|
|
36
40
|
}
|
|
37
41
|
|
|
38
|
-
.light .App-TabList > div > div,
|
|
39
|
-
.colored .App-TabList > div > div {
|
|
40
|
-
background-color: #3399cc;
|
|
41
|
-
}
|
|
42
42
|
|
|
43
|
-
.
|
|
44
|
-
|
|
45
|
-
background-color: white;
|
|
43
|
+
.App-TabList button:last-child {
|
|
44
|
+
margin-right: 5px;
|
|
46
45
|
}
|
|
47
46
|
|
|
48
|
-
.
|
|
49
|
-
|
|
47
|
+
.App-TabList button.icon {
|
|
48
|
+
width: 30px;
|
|
49
|
+
padding: 0;
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
-
|
|
53
|
-
|
|
52
|
+
|
|
53
|
+
.dark .App-TabList button {
|
|
54
|
+
background-color: rgba(255, 255, 255, 0.1);
|
|
54
55
|
}
|
|
55
56
|
|
|
56
57
|
/* Hover */
|
|
57
58
|
.light .App-TabList button:hover,
|
|
58
|
-
.light .MenuPopupCard-Popup button:hover .colored .App-TabList button:hover
|
|
59
|
-
.colored .MenuPopupCard-Popup button:hover {
|
|
59
|
+
.light .MenuPopupCard-Popup button:hover .colored .App-TabList button:hover {
|
|
60
60
|
background-color: #eee !important;
|
|
61
61
|
border-color: #888 !important;
|
|
62
62
|
}
|
|
@@ -79,7 +79,7 @@ body {
|
|
|
79
79
|
width: 160px;
|
|
80
80
|
position: absolute;
|
|
81
81
|
z-index: 1500;
|
|
82
|
-
top:
|
|
82
|
+
top: 138px;
|
|
83
83
|
left: 5px;
|
|
84
84
|
border: 2px solid #333;
|
|
85
85
|
border-radius: 4px;
|
|
@@ -202,7 +202,7 @@ div.MuiTabPanel-root {
|
|
|
202
202
|
/* NavigationMenu */
|
|
203
203
|
/* Table ist in Allgemein */
|
|
204
204
|
|
|
205
|
-
.MenuNavigation-Container .startSideActive {
|
|
205
|
+
.MenuNavigation-Container .startSideActive:not(.row__active) {
|
|
206
206
|
background-color: #96d15a !important;
|
|
207
207
|
}
|
|
208
208
|
|
|
@@ -339,10 +339,9 @@ div.MuiTabPanel-root {
|
|
|
339
339
|
}
|
|
340
340
|
|
|
341
341
|
.dialogContainer__body {
|
|
342
|
-
padding: 0 0 0 0.5rem;
|
|
342
|
+
padding: 0 0.5rem 0 0.5rem;
|
|
343
343
|
}
|
|
344
344
|
|
|
345
|
-
|
|
346
345
|
.DialogContainer select {
|
|
347
346
|
color: #3399cc;
|
|
348
347
|
width: 200px;
|
|
@@ -623,7 +622,16 @@ p.inUse {
|
|
|
623
622
|
border: 1px solid #000000;
|
|
624
623
|
width: auto;
|
|
625
624
|
display: inline-block;
|
|
625
|
+
margin-right: 0.5rem !important;
|
|
626
|
+
}
|
|
626
627
|
|
|
628
|
+
.dark .telegramm__userCard-content {
|
|
629
|
+
border: 1px solid white;
|
|
630
|
+
color: white
|
|
631
|
+
}
|
|
632
|
+
|
|
633
|
+
.dark label.checkbox {
|
|
634
|
+
color: white;
|
|
627
635
|
}
|
|
628
636
|
|
|
629
637
|
.telegramm__userCard-content p {
|
|
@@ -819,14 +827,6 @@ span[title],
|
|
|
819
827
|
font-weight: 500;
|
|
820
828
|
}
|
|
821
829
|
|
|
822
|
-
.cursorDefault {
|
|
823
|
-
cursor: default;
|
|
824
|
-
}
|
|
825
|
-
|
|
826
|
-
.cursorPointer {
|
|
827
|
-
cursor: pointer;
|
|
828
|
-
}
|
|
829
|
-
|
|
830
830
|
.PopupContainer__copy .DialogContainer {
|
|
831
831
|
width: 100% !important;
|
|
832
832
|
height: 100% !important;
|
|
@@ -848,3 +848,52 @@ span[title],
|
|
|
848
848
|
margin-left: 0.25rem;
|
|
849
849
|
margin-right: 0.25rem;
|
|
850
850
|
}
|
|
851
|
+
|
|
852
|
+
.row__container:has(.row__button) {
|
|
853
|
+
margin: 0.5rem 0 0.5rem 0;
|
|
854
|
+
border: 1px solid black;
|
|
855
|
+
background: #84b9ec !important;
|
|
856
|
+
}
|
|
857
|
+
|
|
858
|
+
.nav__row {
|
|
859
|
+
margin: 0;
|
|
860
|
+
padding: 1px 1px !important;
|
|
861
|
+
font-size: 0.7rem;
|
|
862
|
+
display: flex;
|
|
863
|
+
justify-content: stretch;
|
|
864
|
+
}
|
|
865
|
+
|
|
866
|
+
.row__button {
|
|
867
|
+
margin: 1px 0.1rem 1px 0.1rem !important;
|
|
868
|
+
padding: 0.1rem 0.5rem;
|
|
869
|
+
font-size: 0.7rem !important;
|
|
870
|
+
border: 2px solid #aaa;
|
|
871
|
+
border-radius: 5px;
|
|
872
|
+
display: inline-block !important;
|
|
873
|
+
flex: 1;
|
|
874
|
+
text-align: center;
|
|
875
|
+
background: #f1e4b0;
|
|
876
|
+
}
|
|
877
|
+
|
|
878
|
+
.dark .row__button {
|
|
879
|
+
background: #777;
|
|
880
|
+
color: white;
|
|
881
|
+
}
|
|
882
|
+
|
|
883
|
+
.row__submenu {
|
|
884
|
+
background: peachpuff !important;
|
|
885
|
+
}
|
|
886
|
+
|
|
887
|
+
.dark .row__submenu {
|
|
888
|
+
color: black
|
|
889
|
+
}
|
|
890
|
+
|
|
891
|
+
.nav__trigger_list {
|
|
892
|
+
margin: 1rem 0 1rem 0;
|
|
893
|
+
display: flex;
|
|
894
|
+
justify-content: start;
|
|
895
|
+
}
|
|
896
|
+
|
|
897
|
+
.row__active {
|
|
898
|
+
background: #ffb8b1 !important;
|
|
899
|
+
}
|
package/admin/css/textarea.css
CHANGED
|
@@ -1,28 +1,30 @@
|
|
|
1
1
|
.textarea__container {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
2
|
+
box-sizing: border-box;
|
|
3
|
+
margin-top: 20px !important;
|
|
4
|
+
background-color: #eee;
|
|
5
|
+
padding: 10px !important;
|
|
6
|
+
margin-bottom: 10px !important;
|
|
7
|
+
width: calc(100% - 10px) !important;
|
|
8
|
+
margin-left: 5px;
|
|
9
|
+
display: inline-block;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
.textarea__content {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
13
|
+
width: calc(100% - 10px);
|
|
14
|
+
padding: 8px 2px;
|
|
15
|
+
margin: 3rem 5px 5px 5px;
|
|
16
|
+
font-size: 16px;
|
|
17
|
+
border: none;
|
|
18
|
+
border-bottom: 1px solid #ccc;
|
|
19
|
+
height: 100px !important;
|
|
20
20
|
}
|
|
21
|
+
|
|
21
22
|
.textarea__children {
|
|
22
|
-
|
|
23
|
-
|
|
23
|
+
display: inline;
|
|
24
|
+
vertical-align: bottom;
|
|
24
25
|
}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
|
|
27
|
+
button.HelperCard-BtnSearch {
|
|
28
|
+
margin-top: 2rem !important;
|
|
29
|
+
margin-left: 1.2rem !important;
|
|
28
30
|
}
|
|
@@ -8,10 +8,11 @@
|
|
|
8
8
|
"activeMenu": "Aktives Menü:",
|
|
9
9
|
"add": "Hinzufügen",
|
|
10
10
|
"addAction": "Neue Aktion hinzufügen",
|
|
11
|
+
"addCreatedMenus": "Füge bereits erstellte Menüs als Schaltflächen hinzu",
|
|
11
12
|
"addMenu": "Neuen Menünamen hinzufügen",
|
|
12
13
|
"binding": "Bindungen: Zuerst Var mit ID, dann die Bedingung und der Text.",
|
|
13
14
|
"breakpointNewline": "Haltepunkt für eine neue Zeile. Fügen Sie diesen nur in den Text ein",
|
|
14
|
-
"call": "
|
|
15
|
+
"call": "Aufruf",
|
|
15
16
|
"cancel": "Stornieren",
|
|
16
17
|
"changeFunction": "Ändert den Wert im Rückgabetext, in diesem Fall von „true“ auf „on“ und von „false“ auf „off“.",
|
|
17
18
|
"chooseAction": "Wählen Sie eine Aktion",
|
|
@@ -102,7 +103,7 @@
|
|
|
102
103
|
"text": "Text",
|
|
103
104
|
"textNoEntry": "Text wird gesendet, wenn kein Eintrag gefunden wurde!",
|
|
104
105
|
"toggle": "Umschalten",
|
|
105
|
-
"trigger": "
|
|
106
|
+
"trigger": "Auslöser",
|
|
106
107
|
"tsTimestamp": "Zeitstempel. Konvertiert einen Unix-Zeitstempel in eine lokale Zeit. Das Format kann geändert werden, beispielsweise in TT.MM.JJJJ JJ hh:mm:ss:sss",
|
|
107
108
|
"unusedTrigger": "Unbenutzter Auslöser",
|
|
108
109
|
"url": "URL",
|
|
@@ -113,5 +114,11 @@
|
|
|
113
114
|
"value": "Wert",
|
|
114
115
|
"valueRound": "Rundet den Wert beispielsweise auf 2 Dezimalstellen",
|
|
115
116
|
"values": "Werte",
|
|
116
|
-
"yes": "Ja"
|
|
117
|
+
"yes": "Ja",
|
|
118
|
+
"info": "Info",
|
|
119
|
+
"menuCannotBeFound": "Das angeklickte Menü kann nicht gefunden werden!",
|
|
120
|
+
"contactDeveloperForExistingMenu": "Wenn das Menü existiert, aber nicht gefunden wurde, erstellen Sie bitte ein Issue auf Github!",
|
|
121
|
+
"description": "Beschreibung",
|
|
122
|
+
"descriptions": "Beschreibungen",
|
|
123
|
+
"descriptionInfo": "Hier können Sie Informationen zu Anrufen eingeben. Diese werden angezeigt, wenn Sie in der Navigation auf einen Navigationsbutton klicken und keinen direkten Link haben, sondern über ein eigenes Skript abgefangen werden. So behalten Sie einen besseren Überblick."
|
|
117
124
|
}
|