@homebridge-plugins/homebridge-govee 11.32.0-beta.3 → 11.32.0-beta.5
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/CHANGELOG.md +0 -3
- package/lib/homebridge-ui/public/index.html +26 -8
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,10 +7,7 @@ All notable changes to `@homebridge-plugins/homebridge-govee` will be documented
|
|
|
7
7
|
### Changed
|
|
8
8
|
|
|
9
9
|
- chore(github): use the shared homebridge action to deprecate past pre-releases
|
|
10
|
-
- feat(ui): add and remove devices from the config via the my devices tab (#1323)
|
|
11
10
|
- feat(ui): hide or show a device in homekit from the my devices tab
|
|
12
|
-
- style(ui): present the device config actions as a settings-style list
|
|
13
|
-
- style(ui): polish the action list - consistent spacing, arrow buttons, bold emphasis
|
|
14
11
|
|
|
15
12
|
## v11.31.0 (2026-07-24)
|
|
16
13
|
|
|
@@ -23,10 +23,17 @@
|
|
|
23
23
|
border-color: #444444;
|
|
24
24
|
color: #eeeeee;
|
|
25
25
|
}
|
|
26
|
+
|
|
27
|
+
.text-muted {
|
|
28
|
+
color: #aaaaaa !important;
|
|
29
|
+
}
|
|
26
30
|
}
|
|
27
31
|
.min-w-50 {
|
|
28
32
|
min-width: 50px;
|
|
29
33
|
}
|
|
34
|
+
.action-desc {
|
|
35
|
+
font-size: 0.85rem;
|
|
36
|
+
}
|
|
30
37
|
select {
|
|
31
38
|
background-image:
|
|
32
39
|
linear-gradient(45deg, transparent 50%, gray 50%),
|
|
@@ -89,7 +96,10 @@
|
|
|
89
96
|
<ul class="list-group mt-4 mb-4 mx-0" id="configActionList" style="display: none;">
|
|
90
97
|
<li class="list-group-item">
|
|
91
98
|
<div class="d-flex justify-content-between align-items-center">
|
|
92
|
-
<
|
|
99
|
+
<div class="pr-2">
|
|
100
|
+
<div>Add All Devices</div>
|
|
101
|
+
<div class="text-muted action-desc">Add all devices to the config that are not already in the config.</div>
|
|
102
|
+
</div>
|
|
93
103
|
<button type="button" class="btn btn-primary m-0 ml-3 py-1 min-w-50" id="addAllBtn" aria-label="Add all devices to the config">
|
|
94
104
|
<i aria-hidden="true" class="fas fa-arrow-right"></i>
|
|
95
105
|
</button>
|
|
@@ -97,7 +107,10 @@
|
|
|
97
107
|
</li>
|
|
98
108
|
<li class="list-group-item">
|
|
99
109
|
<div class="d-flex justify-content-between align-items-center">
|
|
100
|
-
<
|
|
110
|
+
<div class="pr-2">
|
|
111
|
+
<div id="deviceConfigTitle">Add This Device</div>
|
|
112
|
+
<div class="text-muted action-desc" id="deviceConfigText">Add this device to the plugin config.</div>
|
|
113
|
+
</div>
|
|
101
114
|
<button type="button" class="btn btn-primary m-0 ml-3 py-1 min-w-50" id="deviceConfigBtn" aria-label="Add this device to the config">
|
|
102
115
|
<i aria-hidden="true" class="fas fa-arrow-right"></i>
|
|
103
116
|
</button>
|
|
@@ -105,7 +118,10 @@
|
|
|
105
118
|
</li>
|
|
106
119
|
<li class="list-group-item">
|
|
107
120
|
<div class="d-flex justify-content-between align-items-center">
|
|
108
|
-
<
|
|
121
|
+
<div class="pr-2">
|
|
122
|
+
<div id="hideDeviceTitle">Hide This Device</div>
|
|
123
|
+
<div class="text-muted action-desc" id="hideDeviceText">Hide this device from HomeKit. This adds the device to the config if needed.</div>
|
|
124
|
+
</div>
|
|
109
125
|
<button type="button" class="btn btn-primary m-0 ml-3 py-1 min-w-50" id="hideDeviceBtn" aria-label="Hide this device from HomeKit">
|
|
110
126
|
<i aria-hidden="true" class="fas fa-arrow-right"></i>
|
|
111
127
|
</button>
|
|
@@ -396,9 +412,10 @@
|
|
|
396
412
|
btn.dataset.hidden = hidden ? 'yes' : 'no'
|
|
397
413
|
btn.innerHTML = actionArrow
|
|
398
414
|
btn.setAttribute('aria-label', hidden ? 'Show this device in HomeKit' : 'Hide this device from HomeKit')
|
|
415
|
+
document.getElementById('hideDeviceTitle').innerHTML = hidden ? 'Show This Device' : 'Hide This Device'
|
|
399
416
|
document.getElementById('hideDeviceText').innerHTML = hidden
|
|
400
|
-
? 'Show
|
|
401
|
-
: 'Hide
|
|
417
|
+
? 'Show this device in HomeKit again. The config entry is kept.'
|
|
418
|
+
: 'Hide this device from HomeKit. This adds the device to the config if needed.'
|
|
402
419
|
}
|
|
403
420
|
|
|
404
421
|
const setConfigButton = inConfig => {
|
|
@@ -410,9 +427,10 @@
|
|
|
410
427
|
btn.classList.add('btn-primary')
|
|
411
428
|
btn.innerHTML = actionArrow
|
|
412
429
|
btn.setAttribute('aria-label', inConfig ? 'Remove this device from the config' : 'Add this device to the config')
|
|
430
|
+
document.getElementById('deviceConfigTitle').innerHTML = inConfig ? 'Remove This Device' : 'Add This Device'
|
|
413
431
|
document.getElementById('deviceConfigText').innerHTML = inConfig
|
|
414
|
-
? '
|
|
415
|
-
: '
|
|
432
|
+
? 'Remove this device from the plugin config.'
|
|
433
|
+
: 'Add this device to the plugin config.'
|
|
416
434
|
}
|
|
417
435
|
|
|
418
436
|
const addDeviceToConfig = (config, acc) => {
|
|
@@ -467,7 +485,7 @@
|
|
|
467
485
|
btn.classList.add('btn-danger')
|
|
468
486
|
btn.innerHTML = actionArrow
|
|
469
487
|
btn.setAttribute('aria-label', 'Confirm removing this device from the config')
|
|
470
|
-
document.getElementById('deviceConfigText').innerHTML = 'This entry has extra settings which will be lost
|
|
488
|
+
document.getElementById('deviceConfigText').innerHTML = 'This entry has extra settings which will be lost. Click again to remove it.'
|
|
471
489
|
removeConfirmTimer = setTimeout(() => setConfigButton(true), 5000)
|
|
472
490
|
return
|
|
473
491
|
}
|
package/package.json
CHANGED