Skip to content

Commit 93d33d7

Browse files
ticakiticaki
and
ticaki
authored
Prealpha (#13)
* in mid of nothing * some more * update * screensaver lowlevel code done * add trigger/statesdb readonly * code working so far * add source map * fix parseFomat(null) * running init of panel * one more * Add mainicon to template * add bottom icon rotation * Add Admin for 6 options * add cardMedia and alot other low level stuff * clean up * more clean up * some redo * a very bad admin --------- Co-authored-by: ticaki <ticaki@renopoint.de>
1 parent 17555e3 commit 93d33d7

File tree

100 files changed

+24880
-2201
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

100 files changed

+24880
-2201
lines changed

.eslintignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
build/
22
.prettierrc.js
33
**/.eslintrc.js
4-
admin/words.js
4+
admin/words.js
5+
dev-data/

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,5 @@ coverage
1717

1818
# i18n intermediate files
1919
admin/i18n/flat.txt
20-
admin/i18n/*/flat.txt
20+
admin/i18n/*/flat.txt
21+
src/lib/password.ts

.prettierignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
package.json
22
package-lock.json
3-
build/
3+
build/
4+
dev-data/

.vscode/launch.json

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"configurations": [
3+
{
4+
"name": "Attach to remote",
5+
"port": 9229,
6+
"request": "attach",
7+
"resolveSourceMapLocations": [
8+
"${workspaceFolder}/.dev-server/default/node_modules/**/*.js"
9+
],
10+
"restart": true,
11+
"type": "node"
12+
},
13+
],
14+
"version": "0.2.0"
15+
}

.vscode/settings.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"typescript.tsdk": "node_modules/typescript/lib",
33
"eslint.enable": true,
4-
"editor.formatOnSave": false,
5-
/*"editor.defaultFormatter": "esbenp.prettier-vscode",
4+
/*"editor.formatOnSave": true,
5+
"editor.defaultFormatter": "esbenp.prettier-vscode",
66
"[typescript]": {
77
"editor.codeActionsOnSave": {
8-
"source.organizeImports": "explicit"
8+
"source.organizeImports": "explicit",
99
}
1010
},*/
1111
"json.schemas": [

admin/i18n/de/translations.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"nspanel-lovelace-ui adapter settings": "Adaptereinstellungen für nspanel-lovelace-ui",
3-
"option1": "Option 1",
3+
"Sun": "Sonne",
44
"option2": "Option 2"
55
}

admin/i18n/en/translations.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"nspanel-lovelace-ui adapter settings": "Adapter settings for nspanel-lovelace-ui",
3-
"option1": "option1",
3+
"Sun": "Sun",
44
"option2": "option2"
55
}

admin/jsonConfig.json

+205-6
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,210 @@
11
{
22
"i18n": true,
3-
"type": "panel",
3+
"type": "tabs",
44
"items": {
5-
"option1": {
6-
"type": "jsonEditor",
7-
"label": "option1",
8-
"newLine": true
5+
"general": {
6+
"type": "panel",
7+
"label": "general",
8+
"items": {
9+
"mqttIp": {
10+
"type": "text",
11+
"label": "mqttIp",
12+
"newLine": true
13+
},
14+
"mqttPort": {
15+
"type": "text",
16+
"label": "mqttPort",
17+
"newLine": false
18+
},
19+
"mqttUsername": {
20+
"type": "text",
21+
"label": "mqttUsername",
22+
"newLine": true
23+
},
24+
"mqttPassword": {
25+
"type": "text",
26+
"label": "mqttPassword",
27+
"newLine": false
28+
},
29+
"topic": {
30+
"type": "text",
31+
"label": "topic",
32+
"newLine": true
33+
},
34+
"name": {
35+
"type": "text",
36+
"label": "name",
37+
"newLine": false
38+
}
39+
}
40+
},
41+
"screensaver": {
42+
"type": "panel",
43+
"label": "screensaver",
44+
"items": {
45+
"isAlive": {
46+
"type": "alive",
47+
"textAlive": "alive",
48+
"textNotAlive": "alive",
49+
"hidden": "true"
50+
},
51+
"scstype": {
52+
"type": "select",
53+
"label": "mode",
54+
"default": "standard",
55+
"options": [
56+
{
57+
"label": "Standard",
58+
"value": "standard"
59+
},
60+
{
61+
"label": "Alternative",
62+
"value": "alternate"
63+
},
64+
{
65+
"label": "Erweitert",
66+
"value": "advanced"
67+
}
68+
],
69+
"lg": 3,
70+
"md": 6
71+
},
72+
"scsentry": {
73+
"type": "selectSendTo",
74+
"label": "mode",
75+
"command": "scs-field",
76+
"jsonData": "{\"type\": \"${data.scstype}\", \"entry\": \"${data.scsentry}\"}",
77+
"alsoDependsOn": ["scstype"],
78+
"newLine": true,
79+
"lg": 3,
80+
"md": 6
81+
},
82+
"currentfield": {
83+
"type": "text",
84+
"hidden": "false",
85+
"default": ""
86+
},
87+
"scsfield": {
88+
"type": "select",
89+
"label": "field",
90+
"default": "value",
91+
"options": [
92+
{
93+
"label": "value",
94+
"value": "value"
95+
},
96+
{
97+
"label": "decimal",
98+
"value": "decimal"
99+
},
100+
{
101+
"label": "factor",
102+
"value": "factor"
103+
},
104+
{
105+
"label": "unit",
106+
"value": "unit"
107+
},
108+
{
109+
"label": "date",
110+
"value": "date"
111+
},
112+
{
113+
"label": "iconon",
114+
"value": "iconon"
115+
},
116+
{
117+
"label": "icononcolor",
118+
"value": "icononcolor"
119+
},
120+
{
121+
"label": "iconoff",
122+
"value": "iconoff"
123+
},
124+
{
125+
"label": "iconoffcolor",
126+
"value": "iconoffcolor"
127+
},
128+
{
129+
"label": "iconscale",
130+
"value": "iconscale"
131+
},
132+
{
133+
"label": "texton",
134+
"value": "texton"
135+
},
136+
{
137+
"label": "textoff",
138+
"value": "textoff"
139+
}
140+
],
141+
"lg": 3,
142+
"md": 6,
143+
"newLine": true
144+
},
145+
"reload": {
146+
"type": "sendTo",
147+
"command": "reload",
148+
"useNative": true,
149+
"jsonData": "{\"type\": \"${data.scstype}\", \"entry\": \"${data.scsentry}\", \"field\": \"${data.scsfield}\"}",
150+
"label":"Load Entry",
151+
"newLine": true
152+
},
153+
154+
"entity_value_type": {
155+
"type": "select",
156+
"default": "const",
157+
"options": [
158+
{
159+
"label": "Konstanter Wert",
160+
"value": "const"
161+
},
162+
{
163+
"label": "Datenpunkt",
164+
"value": "state"
165+
},
166+
{
167+
"label": "Überwachter Datenpunkt",
168+
"value": "triggered"
169+
}
170+
],
171+
"label": "Datenmodus",
172+
"hidden": "data.currentfield !== data.scsentry +'#'+ data.scsfield",
173+
"lg": 3,
174+
"md": 6,
175+
"newLine": true
176+
},
177+
"entity_value_constVal": {
178+
"type": "text",
179+
"label": "Konstanter Wert",
180+
"default": "",
181+
"hidden": "data.currentfield !== data.scsentry +'#'+ data.scsfield || data.entity_value_type !== 'const' "
182+
},
183+
"entity_value_dp": {
184+
"type": "text",
185+
"label": "Datenpunkt",
186+
"default": "",
187+
"lg": 3,
188+
"md": 6,
189+
"hidden": "data.currentfield !== data.scsentry +'#'+ data.scsfield || (data.entity_value_type !== 'state' && data.entity_value_type !== 'triggered')"
190+
},
191+
"entity_value_forcetyp": {
192+
"type": "text",
193+
"label": "Forciere Datentyp",
194+
"hidden": "data.currentfield !== data.scsentry +'#'+ data.scsfield",
195+
"default": "",
196+
"newLine": true
197+
},
198+
"entity_value_read": {
199+
"type": "text",
200+
"minRows": 5,
201+
"label": "Umwandlungsfunktion",
202+
"default": "",
203+
"hidden": "data.currentfield !== data.scsentry +'#'+ data.scsfield || (data.entity_value_type !== 'state' && data.entity_value_type !== 'triggered')",
204+
"lg": 6,
205+
"md": 6
206+
}
207+
}
9208
}
10209
}
11-
}
210+
}

0 commit comments

Comments
 (0)