homebridge-unifi-protect 6.9.1 → 6.10.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.
@@ -1 +1 @@
1
- {"version":3,"file":"settings.js","sourceRoot":"","sources":["../src/settings.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,0BAA0B;AAC1B,MAAM,CAAC,MAAM,WAAW,GAAG,0BAA0B,CAAC;AAEtD,mCAAmC;AACnC,MAAM,CAAC,MAAM,aAAa,GAAG,eAAe,CAAC;AAE7C,oGAAoG;AACpG,MAAM,CAAC,MAAM,uBAAuB,GAAG,EAAE,CAAC;AAE1C,4HAA4H;AAC5H,MAAM,CAAC,MAAM,0BAA0B,GAAG,GAAG,CAAC;AAE9C,yFAAyF;AACzF,MAAM,CAAC,MAAM,mBAAmB,GAAG,GAAG,CAAC;AAEvC,yFAAyF;AACzF,MAAM,CAAC,MAAM,mCAAmC,GAAG,GAAG,CAAC;AAEvD,0GAA0G;AAC1G,MAAM,CAAC,MAAM,iCAAiC,GAAG,EAAE,CAAC;AAEpD,mIAAmI;AACnI,MAAM,CAAC,MAAM,iCAAiC,GAAG,EAAE,CAAC;AAEpD,4GAA4G;AAC5G,MAAM,CAAC,MAAM,oCAAoC,GAAG,GAAG,CAAC;AAExD,2GAA2G;AAC3G,MAAM,CAAC,MAAM,mCAAmC,GAAG,IAAI,CAAC;AAExD,+DAA+D;AAC/D,MAAM,CAAC,MAAM,sBAAsB,GAAG,EAAE,CAAC;AAEzC,oGAAoG;AACpG,MAAM,CAAC,MAAM,2BAA2B,GAAG,IAAI,CAAC;AAEhD,mJAAmJ;AACnJ,MAAM,CAAC,MAAM,uCAAuC,GAAG,2BAA2B,GAAG,CAAC,CAAC;AAEvF,kKAAkK;AAClK,MAAM,CAAC,MAAM,+BAA+B,GAAG,GAAG,CAAC;AAEnD,+IAA+I;AAC/I,MAAM,CAAC,MAAM,kCAAkC,GAAG,EAAE,CAAC;AAErD,mEAAmE;A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CAAC"}
@@ -1,5 +1,5 @@
1
1
  <p class="text-center">
2
- <img src="https://raw.githubusercontent.com/hjdhjd/homebridge-unifi-protect/main/homebridge-protect.svg"
2
+ <img src="https://raw.githubusercontent.com/hjdhjd/homebridge-unifi-protect/main/images/homebridge-unifi-protect.svg"
3
3
  alt="homebridge-unifi-protect logo" style="width: 60%;" />
4
4
  </p>
5
5
  <div id="pageIntro" style="display: none;">
@@ -101,8 +101,8 @@
101
101
  : best practices for getting the most of your HomeKit setup and UniFi Protect.
102
102
  </li>
103
103
  <li>
104
- <a target="_blank" href="https://github.com/hjdhjd/homebridge-unifi-protect/blob/main/docs/Troubleshooting.md">Troubleshooting</a>
105
- : run into login problems or streaming problems? Give this a read.
104
+ <b><a target="_blank" href="https://github.com/hjdhjd/homebridge-unifi-protect/blob/main/docs/Troubleshooting.md">Troubleshooting</a>
105
+ : run into login problems or streaming problems? Give this a read before looking anywhere else.</b>
106
106
  </li>
107
107
  </ul>
108
108
  </li>
@@ -743,6 +743,9 @@
743
743
  // Finally, add the table head to the table.
744
744
  optionTable.appendChild(thead);
745
745
 
746
+ // Keep track of the number of options we have made available in a given category.
747
+ let optionsVisibleCount = 0;
748
+
746
749
  // Now enumerate all the feature options for a given device.
747
750
  for(const option of optionsDevice[category.name]) {
748
751
 
@@ -1032,6 +1035,10 @@
1032
1035
  if((option.group !== undefined) && !isOptionEnabled(category.name + (option.group.length ? ("." + option.group): ""), ufpDevice?.mac)) {
1033
1036
 
1034
1037
  trX.style.display = "none";
1038
+ } else {
1039
+
1040
+ // Increment the visible option count.
1041
+ optionsVisibleCount++;
1035
1042
  }
1036
1043
 
1037
1044
  // Add the table row to the table body.
@@ -1041,6 +1048,12 @@
1041
1048
  // Add the table body to the table.
1042
1049
  optionTable.appendChild(tbody);
1043
1050
 
1051
+ // If we have no options visible in a given category, then hide the entire category.
1052
+ if(!optionsVisibleCount) {
1053
+
1054
+ optionTable.style.display = "none";
1055
+ }
1056
+
1044
1057
  // Add the table to the page.
1045
1058
  configTable.appendChild(optionTable);
1046
1059
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "homebridge-unifi-protect",
3
- "version": "6.9.1",
3
+ "version": "6.10.0",
4
4
  "displayName": "Homebridge UniFi Protect",
5
5
  "description": "Homebridge UniFi Protect plugin providing complete HomeKit integration for the UniFi Protect ecosystem with full support for most features including autoconfiguration, motion detection, multiple controllers, and realtime updates.",
6
6
  "author": {
@@ -72,14 +72,14 @@
72
72
  "ws": "^8.13.0"
73
73
  },
74
74
  "devDependencies": {
75
- "@types/node": "^20.3.1",
75
+ "@types/node": "^20.4.1",
76
76
  "@types/ws": "^8.5.5",
77
- "@typescript-eslint/eslint-plugin": "^5.60.0",
78
- "@typescript-eslint/parser": "^5.60.0",
79
- "eslint": "^8.43.0",
77
+ "@typescript-eslint/eslint-plugin": "^5.61.0",
78
+ "@typescript-eslint/parser": "^5.61.0",
79
+ "eslint": "^8.44.0",
80
80
  "homebridge": "=1.6.1",
81
- "nodemon": "^2.0.22",
81
+ "nodemon": "^3.0.0",
82
82
  "rimraf": "^5.0.1",
83
- "typescript": "^5.1.3"
83
+ "typescript": "^5.1.6"
84
84
  }
85
85
  }