@attraccess/plugin-shelly 0.1.0-alpha.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/dist/index.js +952 -0
- package/dist/migrations.js +57 -0
- package/frontend/__federation_expose_Plugin-Dd1Vs4iR.js +1627 -0
- package/frontend/__federation_fn_import-DAGm_xmC.js +2 -0
- package/frontend/_virtual___federation_fn_import-BXODRNto.js +261 -0
- package/frontend/index.html +13 -0
- package/frontend/jsx-runtime-B9Qmn8k7.js +42 -0
- package/frontend/preload-helper-DxWiKyOd.js +68 -0
- package/frontend/react-D5kF5LxZ.js +383 -0
- package/frontend/remoteEntry.js +74 -0
- package/frontend/rolldown-runtime-EAsCxrDo.js +14 -0
- package/frontend/style.css +442 -0
- package/package.json +44 -0
|
@@ -0,0 +1,442 @@
|
|
|
1
|
+
/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
|
|
2
|
+
@layer properties {
|
|
3
|
+
@supports (((-webkit-hyphens: none)) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color: rgb(from red r g b)))) {
|
|
4
|
+
*, :before, :after, ::backdrop {
|
|
5
|
+
--tw-border-style: solid;
|
|
6
|
+
--tw-font-weight: initial;
|
|
7
|
+
--tw-tracking: initial;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
:root, :host {
|
|
13
|
+
--sh-spacing: .25rem;
|
|
14
|
+
--sh-container-2xl: 42rem;
|
|
15
|
+
--sh-container-5xl: 64rem;
|
|
16
|
+
--sh-text-xs: .75rem;
|
|
17
|
+
--sh-text-xs--line-height: calc(1 / .75);
|
|
18
|
+
--sh-text-sm: .875rem;
|
|
19
|
+
--sh-text-sm--line-height: calc(1.25 / .875);
|
|
20
|
+
--sh-text-lg: 1.125rem;
|
|
21
|
+
--sh-text-lg--line-height: calc(1.75 / 1.125);
|
|
22
|
+
--sh-text-2xl: 1.5rem;
|
|
23
|
+
--sh-text-2xl--line-height: calc(2 / 1.5);
|
|
24
|
+
--sh-font-weight-medium: 500;
|
|
25
|
+
--sh-font-weight-semibold: 600;
|
|
26
|
+
--sh-font-weight-bold: 700;
|
|
27
|
+
--sh-tracking-wide: .025em;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.sh\:absolute {
|
|
31
|
+
position: absolute;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.sh\:relative {
|
|
35
|
+
position: relative;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.sh\:top-6 {
|
|
39
|
+
top: calc(var(--sh-spacing) * 6);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.sh\:right-1 {
|
|
43
|
+
right: var(--sh-spacing);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.sh\:mx-auto {
|
|
47
|
+
margin-inline: auto;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.sh\:mt-1 {
|
|
51
|
+
margin-top: var(--sh-spacing);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.sh\:mr-2 {
|
|
55
|
+
margin-right: calc(var(--sh-spacing) * 2);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.sh\:block {
|
|
59
|
+
display: block;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.sh\:flex {
|
|
63
|
+
display: flex;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.sh\:grid {
|
|
67
|
+
display: grid;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.sh\:hidden {
|
|
71
|
+
display: none;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.sh\:inline {
|
|
75
|
+
display: inline;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.sh\:h-4 {
|
|
79
|
+
height: calc(var(--sh-spacing) * 4);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.sh\:h-5 {
|
|
83
|
+
height: calc(var(--sh-spacing) * 5);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.sh\:h-6 {
|
|
87
|
+
height: calc(var(--sh-spacing) * 6);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.sh\:h-32 {
|
|
91
|
+
height: calc(var(--sh-spacing) * 32);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.sh\:w-4 {
|
|
95
|
+
width: calc(var(--sh-spacing) * 4);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.sh\:w-5 {
|
|
99
|
+
width: calc(var(--sh-spacing) * 5);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.sh\:w-6 {
|
|
103
|
+
width: calc(var(--sh-spacing) * 6);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.sh\:w-full {
|
|
107
|
+
width: 100%;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.sh\:max-w-5xl {
|
|
111
|
+
max-width: var(--sh-container-5xl);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.sh\:max-w-36 {
|
|
115
|
+
max-width: calc(var(--sh-spacing) * 36);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.sh\:max-w-40 {
|
|
119
|
+
max-width: calc(var(--sh-spacing) * 40);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.sh\:min-w-0 {
|
|
123
|
+
min-width: 0;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.sh\:min-w-6 {
|
|
127
|
+
min-width: calc(var(--sh-spacing) * 6);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.sh\:shrink-0 {
|
|
131
|
+
flex-shrink: 0;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.sh\:grid-cols-1 {
|
|
135
|
+
grid-template-columns: repeat(1, minmax(0, 1fr));
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.sh\:flex-col {
|
|
139
|
+
flex-direction: column;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.sh\:flex-row {
|
|
143
|
+
flex-direction: row;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.sh\:flex-wrap {
|
|
147
|
+
flex-wrap: wrap;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.sh\:items-baseline {
|
|
151
|
+
align-items: baseline;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.sh\:items-center {
|
|
155
|
+
align-items: center;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.sh\:items-start {
|
|
159
|
+
align-items: flex-start;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.sh\:justify-between {
|
|
163
|
+
justify-content: space-between;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.sh\:justify-center {
|
|
167
|
+
justify-content: center;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.sh\:justify-end {
|
|
171
|
+
justify-content: flex-end;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.sh\:gap-1 {
|
|
175
|
+
gap: var(--sh-spacing);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.sh\:gap-1\.5 {
|
|
179
|
+
gap: calc(var(--sh-spacing) * 1.5);
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.sh\:gap-2 {
|
|
183
|
+
gap: calc(var(--sh-spacing) * 2);
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.sh\:gap-3 {
|
|
187
|
+
gap: calc(var(--sh-spacing) * 3);
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.sh\:gap-4 {
|
|
191
|
+
gap: calc(var(--sh-spacing) * 4);
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
.sh\:gap-6 {
|
|
195
|
+
gap: calc(var(--sh-spacing) * 6);
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
.sh\:gap-y-4 {
|
|
199
|
+
row-gap: calc(var(--sh-spacing) * 4);
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
.sh\:truncate {
|
|
203
|
+
text-overflow: ellipsis;
|
|
204
|
+
white-space: nowrap;
|
|
205
|
+
overflow: hidden;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
.sh\:rounded-lg {
|
|
209
|
+
border-radius: calc(var(--radius) * 1);
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
.sh\:rounded-md {
|
|
213
|
+
border-radius: calc(var(--radius) * .75);
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
.sh\:rounded-xl {
|
|
217
|
+
border-radius: calc(var(--radius) * 1.5);
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
.sh\:border {
|
|
221
|
+
border-style: var(--tw-border-style);
|
|
222
|
+
border-width: 1px;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
.sh\:border-b {
|
|
226
|
+
border-bottom-style: var(--tw-border-style);
|
|
227
|
+
border-bottom-width: 1px;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
.sh\:border-l-4 {
|
|
231
|
+
border-left-style: var(--tw-border-style);
|
|
232
|
+
border-left-width: 4px;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
.sh\:border-dashed {
|
|
236
|
+
--tw-border-style: dashed;
|
|
237
|
+
border-style: dashed;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
.sh\:border-l-warning {
|
|
241
|
+
border-left-color: var(--warning);
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
.sh\:bg-surface {
|
|
245
|
+
background-color: var(--surface);
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
.sh\:bg-surface-secondary {
|
|
249
|
+
background-color: var(--surface-secondary);
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
.sh\:bg-warning\/5 {
|
|
253
|
+
background-color: var(--warning);
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
257
|
+
.sh\:bg-warning\/5 {
|
|
258
|
+
background-color: color-mix(in oklab, var(--warning) 5%, transparent);
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
.sh\:p-4 {
|
|
263
|
+
padding: calc(var(--sh-spacing) * 4);
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
.sh\:p-6 {
|
|
267
|
+
padding: calc(var(--sh-spacing) * 6);
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
.sh\:px-3 {
|
|
271
|
+
padding-inline: calc(var(--sh-spacing) * 3);
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
.sh\:px-4 {
|
|
275
|
+
padding-inline: calc(var(--sh-spacing) * 4);
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
.sh\:py-2 {
|
|
279
|
+
padding-block: calc(var(--sh-spacing) * 2);
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
.sh\:py-12 {
|
|
283
|
+
padding-block: calc(var(--sh-spacing) * 12);
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
.sh\:pt-2 {
|
|
287
|
+
padding-top: calc(var(--sh-spacing) * 2);
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
.sh\:pb-0 {
|
|
291
|
+
padding-bottom: 0;
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
.sh\:text-end {
|
|
295
|
+
text-align: end;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
.sh\:text-2xl {
|
|
299
|
+
font-size: var(--sh-text-2xl);
|
|
300
|
+
line-height: var(--tw-leading, var(--sh-text-2xl--line-height));
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
.sh\:text-lg {
|
|
304
|
+
font-size: var(--sh-text-lg);
|
|
305
|
+
line-height: var(--tw-leading, var(--sh-text-lg--line-height));
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
.sh\:text-sm {
|
|
309
|
+
font-size: var(--sh-text-sm);
|
|
310
|
+
line-height: var(--tw-leading, var(--sh-text-sm--line-height));
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
.sh\:text-xs {
|
|
314
|
+
font-size: var(--sh-text-xs);
|
|
315
|
+
line-height: var(--tw-leading, var(--sh-text-xs--line-height));
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
.sh\:font-bold {
|
|
319
|
+
--tw-font-weight: var(--sh-font-weight-bold);
|
|
320
|
+
font-weight: var(--sh-font-weight-bold);
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
.sh\:font-medium {
|
|
324
|
+
--tw-font-weight: var(--sh-font-weight-medium);
|
|
325
|
+
font-weight: var(--sh-font-weight-medium);
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
.sh\:font-semibold {
|
|
329
|
+
--tw-font-weight: var(--sh-font-weight-semibold);
|
|
330
|
+
font-weight: var(--sh-font-weight-semibold);
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
.sh\:tracking-wide {
|
|
334
|
+
--tw-tracking: var(--sh-tracking-wide);
|
|
335
|
+
letter-spacing: var(--sh-tracking-wide);
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
.sh\:whitespace-nowrap {
|
|
339
|
+
white-space: nowrap;
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
.sh\:text-accent-soft-foreground {
|
|
343
|
+
color: var(--accent-soft-foreground);
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
.sh\:text-danger {
|
|
347
|
+
color: var(--danger);
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
.sh\:text-foreground {
|
|
351
|
+
color: var(--foreground);
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
.sh\:text-muted {
|
|
355
|
+
color: var(--muted);
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
.sh\:text-warning {
|
|
359
|
+
color: var(--warning);
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
.sh\:uppercase {
|
|
363
|
+
text-transform: uppercase;
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
.sh\:last\:border-b-0:last-child {
|
|
367
|
+
border-bottom-style: var(--tw-border-style);
|
|
368
|
+
border-bottom-width: 0;
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
@media (min-width: 40rem) {
|
|
372
|
+
.sh\:sm\:hidden {
|
|
373
|
+
display: none;
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
.sh\:sm\:table-cell {
|
|
377
|
+
display: table-cell;
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
.sh\:sm\:max-w-48 {
|
|
381
|
+
max-width: calc(var(--sh-spacing) * 48);
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
.sh\:sm\:grid-cols-2 {
|
|
385
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
@media (min-width: 48rem) {
|
|
390
|
+
.sh\:md\:mx-auto {
|
|
391
|
+
margin-inline: auto;
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
.sh\:md\:block {
|
|
395
|
+
display: block;
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
.sh\:md\:hidden {
|
|
399
|
+
display: none;
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
.sh\:md\:max-w-2xl {
|
|
403
|
+
max-width: var(--sh-container-2xl);
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
.sh\:md\:p-6 {
|
|
407
|
+
padding: calc(var(--sh-spacing) * 6);
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
@media (min-width: 64rem) {
|
|
412
|
+
.sh\:lg\:hidden {
|
|
413
|
+
display: none;
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
.sh\:lg\:table-cell {
|
|
417
|
+
display: table-cell;
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
@media (min-width: 80rem) {
|
|
422
|
+
.sh\:xl\:table-cell {
|
|
423
|
+
display: table-cell;
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
@property --tw-border-style {
|
|
428
|
+
syntax: "*";
|
|
429
|
+
inherits: false;
|
|
430
|
+
initial-value: solid;
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
@property --tw-font-weight {
|
|
434
|
+
syntax: "*";
|
|
435
|
+
inherits: false
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
@property --tw-tracking {
|
|
439
|
+
syntax: "*";
|
|
440
|
+
inherits: false
|
|
441
|
+
}
|
|
442
|
+
/*$vite$:1*/
|
package/package.json
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@attraccess/plugin-shelly",
|
|
3
|
+
"version": "0.1.0-alpha.0",
|
|
4
|
+
"description": "Official Attraccess integration for Shelly devices.",
|
|
5
|
+
"license": "AGPL-3.0-only",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/Attraccess/Attraccess.git",
|
|
9
|
+
"directory": "apps/plugins/shelly"
|
|
10
|
+
},
|
|
11
|
+
"homepage": "https://attraccess.org",
|
|
12
|
+
"keywords": [
|
|
13
|
+
"attraccess-plugin",
|
|
14
|
+
"attraccess",
|
|
15
|
+
"shelly"
|
|
16
|
+
],
|
|
17
|
+
"files": [
|
|
18
|
+
"dist",
|
|
19
|
+
"frontend"
|
|
20
|
+
],
|
|
21
|
+
"publishConfig": {
|
|
22
|
+
"access": "public"
|
|
23
|
+
},
|
|
24
|
+
"peerDependencies": {
|
|
25
|
+
"@attraccess/plugins-backend-sdk": "^1.9.0",
|
|
26
|
+
"@attraccess/plugins-frontend-sdk": "^1.9.0"
|
|
27
|
+
},
|
|
28
|
+
"attraccess": {
|
|
29
|
+
"displayName": "Shelly",
|
|
30
|
+
"description": "Control and monitor Shelly devices from Attraccess.",
|
|
31
|
+
"host": "^1.9.0",
|
|
32
|
+
"backend": "dist/index.js",
|
|
33
|
+
"frontend": "frontend/remoteEntry.js",
|
|
34
|
+
"migrations": "dist/migrations.js",
|
|
35
|
+
"styles": "frontend/style.css",
|
|
36
|
+
"permissions": [
|
|
37
|
+
"DATABASE_ACCESS"
|
|
38
|
+
],
|
|
39
|
+
"sdk": {
|
|
40
|
+
"backend": "^1.9.0",
|
|
41
|
+
"frontend": "^1.9.0"
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|