homebridge-ratgdo 2.7.1 → 2.7.2
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/LICENSE.md +1 -1
- package/dist/index.js +1 -1
- package/dist/ratgdo-types.js +1 -1
- package/dist/settings.js +1 -1
- package/homebridge-ui/public/index.html +4 -4
- package/homebridge-ui/public/lib/webUi-featureoptions.mjs +10 -6
- package/homebridge-ui/public/lib/webUi.mjs +1 -1
- package/homebridge-ui/public/ui.mjs +1 -1
- package/homebridge-ui/server.js +1 -1
- package/package.json +11 -11
package/LICENSE.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Internet Systems Consortium license
|
|
2
2
|
===================================
|
|
3
3
|
|
|
4
|
-
Copyright (c) `2017-
|
|
4
|
+
Copyright (c) `2017-2025`, `HJD https://github.com/hjdhjd`
|
|
5
5
|
|
|
6
6
|
Permission to use, copy, modify, and/or distribute this software for any purpose
|
|
7
7
|
with or without fee is hereby granted, provided that the above copyright notice
|
package/dist/index.js
CHANGED
package/dist/ratgdo-types.js
CHANGED
package/dist/settings.js
CHANGED
|
@@ -45,9 +45,9 @@
|
|
|
45
45
|
<td id="deviceStatsTable" class="w-75">
|
|
46
46
|
<table class="table table-sm table-borderless border-bottom m-0 p-0">
|
|
47
47
|
<tr id="deviceStatsHeader">
|
|
48
|
-
<th class="m-0 p-0 w-25"
|
|
49
|
-
<th class="m-0 p-0 w-25"
|
|
50
|
-
<th class="m-0 p-0 w-25"
|
|
48
|
+
<th class="m-0 p-0 w-25" style="font-weight: bold;">Model</th>
|
|
49
|
+
<th class="m-0 p-0 w-25" style="font-weight: bold;">MAC Address</th>
|
|
50
|
+
<th class="m-0 p-0 w-25" style="font-weight: bold;">Firmware</th>
|
|
51
51
|
</tr>
|
|
52
52
|
<tr>
|
|
53
53
|
<td id="device_model" class="m-0 p-0"></td>
|
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
</ul>
|
|
117
117
|
</div>
|
|
118
118
|
<script type="module">
|
|
119
|
-
/* Copyright(C) 2017-
|
|
119
|
+
/* Copyright(C) 2017-2025, HJD (https://github.com/hjdhjd). All rights reserved.
|
|
120
120
|
*
|
|
121
121
|
* Plugin webUI script loader.
|
|
122
122
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* Copyright(C) 2017-
|
|
1
|
+
/* Copyright(C) 2017-2025, HJD (https://github.com/hjdhjd). All rights reserved.
|
|
2
2
|
*
|
|
3
3
|
* webUi-featureoptions.mjs: Device feature option webUI.
|
|
4
4
|
*/
|
|
@@ -150,14 +150,17 @@ export class webUiFeatureOptions {
|
|
|
150
150
|
this.#configTable.innerHTML = "";
|
|
151
151
|
this.webUiDeviceList = [];
|
|
152
152
|
|
|
153
|
-
// Create our
|
|
154
|
-
const
|
|
153
|
+
// Create our override styles for things like hover for our sidebar and workarounds for Homebridge UI quirks.
|
|
154
|
+
const overrideStyles = document.createElement("style");
|
|
155
|
+
|
|
156
|
+
// We want to override the default colors that Homebridge UI might apply for table cells.
|
|
157
|
+
overrideStyles.innerHTML = "td { color: unset !important }";
|
|
155
158
|
|
|
156
159
|
// We emulate the styles that Bootstrap uses when hovering over a table, accounting for both light and dark modes.
|
|
157
|
-
|
|
160
|
+
overrideStyles.innerHTML += "@media (prefers-color-scheme: dark) { .hbup-hover td:hover { background-color: #212121; color: #FFA000 !important } }" +
|
|
158
161
|
"@media (prefers-color-scheme: light) { .hbup-hover td:hover { background-color: #ECECEC; } }";
|
|
159
162
|
|
|
160
|
-
document.head.appendChild(
|
|
163
|
+
document.head.appendChild(overrideStyles);
|
|
161
164
|
|
|
162
165
|
// Add our hover styles to the controllers and devices tables.
|
|
163
166
|
controllersTable.classList.add("hbup-hover");
|
|
@@ -179,6 +182,7 @@ export class webUiFeatureOptions {
|
|
|
179
182
|
}
|
|
180
183
|
|
|
181
184
|
// Initialize our informational header.
|
|
185
|
+
document.getElementById("headerInfo").style.fontWeight = "bold";
|
|
182
186
|
document.getElementById("headerInfo").innerHTML = "Feature options are applied in prioritized order, from global to device-specific options:" +
|
|
183
187
|
"<br><i class=\"text-warning\">Global options</i> (lowest priority) → " +
|
|
184
188
|
(this.#hasControllers ? "<i class=\"text-success\">Controller options</i> → " : "") +
|
|
@@ -382,7 +386,7 @@ export class webUiFeatureOptions {
|
|
|
382
386
|
th.classList.add("p-0");
|
|
383
387
|
th.style.fontWeight = "bold";
|
|
384
388
|
th.colSpan = 3;
|
|
385
|
-
tbody.classList.add("
|
|
389
|
+
tbody.classList.add("border");
|
|
386
390
|
|
|
387
391
|
// Add the feature option category description.
|
|
388
392
|
th.appendChild(document.createTextNode(category.description + (!currentDevice ? " (Global)" :
|
package/homebridge-ui/server.js
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "homebridge-ratgdo",
|
|
3
3
|
"displayName": "Homebridge Ratgdo",
|
|
4
|
-
"version": "2.7.
|
|
4
|
+
"version": "2.7.2",
|
|
5
5
|
"description": "HomeKit integration using Ratgdo and Konnected devices for LiftMaster and Chamberlain garage door openers, without requiring myQ.",
|
|
6
6
|
"license": "ISC",
|
|
7
7
|
"repository": {
|
|
@@ -41,19 +41,19 @@
|
|
|
41
41
|
"ratgdo"
|
|
42
42
|
],
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@stylistic/eslint-plugin": "^2.
|
|
44
|
+
"@stylistic/eslint-plugin": "^4.2.0",
|
|
45
45
|
"@types/eventsource": "^1.1.15",
|
|
46
|
-
"@types/node": "^22.
|
|
47
|
-
"eslint": "9.
|
|
48
|
-
"homebridge": "^1.
|
|
49
|
-
"shx": "^0.
|
|
50
|
-
"typescript": "^5.
|
|
51
|
-
"typescript-eslint": "^8.
|
|
46
|
+
"@types/node": "^22.13.11",
|
|
47
|
+
"eslint": "9.23.0",
|
|
48
|
+
"homebridge": "^1.9.0",
|
|
49
|
+
"shx": "^0.4.0",
|
|
50
|
+
"typescript": "^5.8.2",
|
|
51
|
+
"typescript-eslint": "^8.27.0"
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@homebridge/plugin-ui-utils": "^2.0.
|
|
54
|
+
"@homebridge/plugin-ui-utils": "^2.0.1",
|
|
55
55
|
"bonjour-service": "^1.3.0",
|
|
56
|
-
"eventsource": "
|
|
57
|
-
"homebridge-plugin-utils": "^1.
|
|
56
|
+
"eventsource": "=2.0.2",
|
|
57
|
+
"homebridge-plugin-utils": "^1.15.3"
|
|
58
58
|
}
|
|
59
59
|
}
|