homebridge-config-ui-x 5.0.0-beta.35 → 5.0.0-beta.36

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.
Files changed (179) hide show
  1. package/CHANGELOG.md +46 -15
  2. package/config.schema.json +2 -2
  3. package/dist/bin/hb-service.js +1 -1
  4. package/dist/bin/hb-service.js.map +1 -1
  5. package/dist/core/auth/jwt.strategy.d.ts +3 -1
  6. package/dist/core/config/config.service.js +1 -1
  7. package/dist/modules/accessories/accessories.controller.js +1 -1
  8. package/dist/modules/accessories/accessories.controller.js.map +1 -1
  9. package/dist/modules/config-editor/config-editor.controller.js +1 -1
  10. package/dist/modules/config-editor/config-editor.controller.js.map +1 -1
  11. package/dist/modules/platform-tools/hb-service/hb-service.controller.js +1 -1
  12. package/dist/modules/platform-tools/hb-service/hb-service.controller.js.map +1 -1
  13. package/dist/modules/plugins/plugins.service.d.ts +2 -1
  14. package/dist/modules/plugins/plugins.service.js +46 -29
  15. package/dist/modules/plugins/plugins.service.js.map +1 -1
  16. package/dist/modules/server/server.controller.d.ts +3 -0
  17. package/dist/modules/server/server.controller.js +12 -0
  18. package/dist/modules/server/server.controller.js.map +1 -1
  19. package/dist/modules/server/server.service.d.ts +1 -0
  20. package/dist/modules/server/server.service.js +10 -3
  21. package/dist/modules/server/server.service.js.map +1 -1
  22. package/dist/modules/status/status.gateway.d.ts +1 -0
  23. package/dist/modules/status/status.service.d.ts +1 -0
  24. package/dist/modules/status/status.service.js +1 -0
  25. package/dist/modules/status/status.service.js.map +1 -1
  26. package/dist/modules/users/users.controller.js +6 -6
  27. package/dist/modules/users/users.controller.js.map +1 -1
  28. package/package.json +29 -33
  29. package/public/3rdpartylicenses.txt +78 -8
  30. package/public/{chunk-QBQBIGHH.js → chunk-2BNYOQCW.js} +1 -1
  31. package/public/chunk-2IB7U7CP.js +1 -0
  32. package/public/{chunk-XQNHUDX7.js → chunk-2UAJRTNP.js} +1 -1
  33. package/public/{chunk-OVFRRCBZ.js → chunk-37342H56.js} +8 -8
  34. package/public/{chunk-YTJNIFE4.js → chunk-5RNQ5G6T.js} +1 -1
  35. package/public/{chunk-7BCHGXO4.js → chunk-6LUEJV3C.js} +1 -1
  36. package/public/{chunk-NEL5H4ZP.js → chunk-6VQUZTBR.js} +16 -16
  37. package/public/chunk-76YMQE3M.js +1 -0
  38. package/public/chunk-7A25PAM7.js +1 -0
  39. package/public/chunk-7HPEGK3R.js +1 -0
  40. package/public/chunk-7P7JUG4X.js +5 -0
  41. package/public/chunk-A6ASL2RK.js +1 -0
  42. package/public/chunk-AGJQ475L.js +1 -0
  43. package/public/{chunk-TFXCOLWH.js → chunk-AHGEAOPV.js} +1 -1
  44. package/public/chunk-AQX2C7OY.js +1 -0
  45. package/public/chunk-B32E2WRF.js +1 -0
  46. package/public/chunk-B44UNYWQ.js +1 -0
  47. package/public/{chunk-5KLZWFYX.js → chunk-BN42B6ZN.js} +1 -1
  48. package/public/{chunk-NSCP3SOQ.js → chunk-C2UJXFYZ.js} +1 -1
  49. package/public/{chunk-YUIH2PS7.js → chunk-CIIXSFUN.js} +2 -2
  50. package/public/chunk-D7EYNOYB.js +1 -0
  51. package/public/chunk-EJKY7TUH.js +1 -0
  52. package/public/chunk-ELVGIIRZ.js +7 -0
  53. package/public/chunk-F6WFMKYJ.js +1 -0
  54. package/public/{chunk-WJQ5NIPP.js → chunk-FAPE5Q5F.js} +1 -1
  55. package/public/chunk-G67F4LRX.js +1 -0
  56. package/public/chunk-GLU4GX3I.js +1 -0
  57. package/public/{chunk-23M23WV2.js → chunk-HIDFXEU7.js} +1 -1
  58. package/public/chunk-HXJQ7BOK.js +1 -0
  59. package/public/chunk-HYA4DWUG.js +1 -0
  60. package/public/{chunk-FN5IQFDD.js → chunk-I2F2MP74.js} +1 -1
  61. package/public/chunk-INVOJS3B.js +1 -0
  62. package/public/chunk-JNL225HQ.js +1 -0
  63. package/public/chunk-JNO6VU35.js +6 -0
  64. package/public/{chunk-474BOAR2.js → chunk-KBQ7X43U.js} +1 -1
  65. package/public/{chunk-422KDBY6.js → chunk-KGZIU3W2.js} +1 -1
  66. package/public/chunk-KJKMLPII.js +1 -0
  67. package/public/chunk-KYPCX2ID.js +1 -0
  68. package/public/chunk-LCZPCRGZ.js +1 -0
  69. package/public/chunk-LEPNWGOY.js +1 -0
  70. package/public/chunk-NCHGQZ5H.js +1 -0
  71. package/public/{chunk-XP7D2PRA.js → chunk-NDNNBXT7.js} +1 -1
  72. package/public/chunk-NTBDPWDW.js +20 -0
  73. package/public/chunk-OY5LBRVA.js +1 -0
  74. package/public/{chunk-BOT4S75X.js → chunk-PGFH5ESW.js} +1 -1
  75. package/public/chunk-PKJVQL6N.js +1 -0
  76. package/public/chunk-POAKVVF2.js +1 -0
  77. package/public/chunk-POVXCDK5.js +1 -0
  78. package/public/chunk-PZ44YARR.js +1 -0
  79. package/public/{chunk-MVXWO6QY.js → chunk-QQK6ZXND.js} +1 -1
  80. package/public/{chunk-C2XBPNOQ.js → chunk-QZ7FBUFJ.js} +1 -1
  81. package/public/chunk-RP7A23KE.js +1 -0
  82. package/public/{chunk-SQJXCJMZ.js → chunk-RRUCC4UM.js} +1 -1
  83. package/public/{chunk-IZGH4P6X.js → chunk-RYZ4IXCN.js} +1 -1
  84. package/public/{chunk-K5KJYFWM.js → chunk-SBMAYKUX.js} +1 -1
  85. package/public/chunk-SLHI7QNB.js +1 -0
  86. package/public/chunk-T3PFHQEF.js +1 -0
  87. package/public/chunk-T3Y7RYJZ.js +2 -0
  88. package/public/chunk-T4PURZCK.js +14 -0
  89. package/public/{chunk-RP5TYXWG.js → chunk-TAQCEDBC.js} +1 -1
  90. package/public/{chunk-W4HHTKG5.js → chunk-TI5JTR4M.js} +1 -1
  91. package/public/{chunk-4SJ5YXGK.js → chunk-TROWBWOI.js} +1 -1
  92. package/public/chunk-UVFODSI2.js +1 -0
  93. package/public/{chunk-QNMOJRFY.js → chunk-UVFTNUVW.js} +1 -1
  94. package/public/chunk-UWFYNH6W.js +1 -0
  95. package/public/{chunk-CLZ6XK3S.js → chunk-VCLNKK3Y.js} +1 -1
  96. package/public/chunk-VDFXVBQ3.js +1 -0
  97. package/public/{chunk-XFK2EZ3K.js → chunk-VGMRIFZA.js} +1 -1
  98. package/public/{chunk-JF5AT3NK.js → chunk-VOG67KUU.js} +1 -1
  99. package/public/chunk-W6PBFS4D.js +1 -0
  100. package/public/{chunk-Y63TC2BD.js → chunk-WHBCTF2I.js} +1 -1
  101. package/public/chunk-WN6H7IUU.js +1 -0
  102. package/public/{chunk-MW5FLUTC.js → chunk-XAUZKAOZ.js} +1 -1
  103. package/public/chunk-XLPWMFXX.js +1 -0
  104. package/public/chunk-Y2Z3IZ4S.js +1 -0
  105. package/public/{chunk-DUJ3BGGS.js → chunk-Y34W3CUD.js} +1 -1
  106. package/public/chunk-YKNAHNGY.js +1 -0
  107. package/public/chunk-Z3RTHBQZ.js +1 -0
  108. package/public/{chunk-NFG4Y4PX.js → chunk-Z4JLHDGQ.js} +1 -1
  109. package/public/chunk-ZQ4RT7G3.js +1 -0
  110. package/public/chunk-ZQGDYLQU.js +1 -0
  111. package/public/chunk-ZUT7DDEG.js +1 -0
  112. package/public/{chunk-H6I47YZL.js → chunk-ZW6RVKYH.js} +1 -1
  113. package/public/index.html +2 -2
  114. package/public/main-MI73XX7G.js +1 -0
  115. package/public/styles-IBQHST5Z.css +1 -0
  116. package/scripts/upgrade-install-plugin.sh +1 -1
  117. package/public/chunk-3ANQRJ75.js +0 -14
  118. package/public/chunk-3NBOT4LS.js +0 -1
  119. package/public/chunk-3NUILNOV.js +0 -1
  120. package/public/chunk-4K52REGI.js +0 -1
  121. package/public/chunk-675OFXLW.js +0 -1
  122. package/public/chunk-6PASDO7Z.js +0 -1
  123. package/public/chunk-6ZBSMLTF.js +0 -1
  124. package/public/chunk-7QIBCP7M.js +0 -1
  125. package/public/chunk-A4EWGMID.js +0 -1
  126. package/public/chunk-BMWLHPL2.js +0 -1
  127. package/public/chunk-C5KFW74N.js +0 -1
  128. package/public/chunk-CKNHTRCL.js +0 -7
  129. package/public/chunk-CLRNWSOV.js +0 -1
  130. package/public/chunk-CYTZT7JJ.js +0 -1
  131. package/public/chunk-CZFALVDS.js +0 -1
  132. package/public/chunk-DQ74FZ3Y.js +0 -1
  133. package/public/chunk-E5E5IQT6.js +0 -1
  134. package/public/chunk-EEDUUZ6J.js +0 -1
  135. package/public/chunk-FAJ5V6VJ.js +0 -1
  136. package/public/chunk-FOI6EIET.js +0 -1
  137. package/public/chunk-FTQGTOHC.js +0 -1
  138. package/public/chunk-GPDMT3AA.js +0 -1
  139. package/public/chunk-GQSQBG3U.js +0 -1
  140. package/public/chunk-GUVLPN3O.js +0 -1
  141. package/public/chunk-HA6CO5NZ.js +0 -2
  142. package/public/chunk-I54VWEMF.js +0 -1
  143. package/public/chunk-JAFIYTUM.js +0 -1
  144. package/public/chunk-KJN5AUI6.js +0 -1
  145. package/public/chunk-KQPBNPKN.js +0 -1
  146. package/public/chunk-N4F42HDL.js +0 -5
  147. package/public/chunk-N722B4ER.js +0 -1
  148. package/public/chunk-NRZYSY7C.js +0 -1
  149. package/public/chunk-O7VQF4E3.js +0 -1
  150. package/public/chunk-OKMMSTW4.js +0 -1
  151. package/public/chunk-OLNAFRAE.js +0 -1
  152. package/public/chunk-PLBUFQSF.js +0 -1
  153. package/public/chunk-PZ2IXNJQ.js +0 -1
  154. package/public/chunk-RXB7TYLO.js +0 -1
  155. package/public/chunk-SQYMES5W.js +0 -1
  156. package/public/chunk-STQ2AZLE.js +0 -20
  157. package/public/chunk-T3GI7KUT.js +0 -1
  158. package/public/chunk-UF46IMIV.js +0 -1
  159. package/public/chunk-WBSQUODA.js +0 -6
  160. package/public/chunk-WJ3IINUA.js +0 -1
  161. package/public/chunk-WONZP2FV.js +0 -1
  162. package/public/chunk-X5YRTZFZ.js +0 -1
  163. package/public/chunk-XGP6D3NB.js +0 -1
  164. package/public/chunk-XZM6BEAM.js +0 -1
  165. package/public/chunk-YLEC7AUG.js +0 -1
  166. package/public/main-P2CDEM4R.js +0 -1
  167. package/public/media/01-RQ3S2L53.png +0 -0
  168. package/public/media/02-VNCG2I2A.png +0 -0
  169. package/public/media/03-HI42L4ZG.png +0 -0
  170. package/public/media/04-FJLL55LZ.png +0 -0
  171. package/public/media/05-V3EO6SPT.png +0 -0
  172. package/public/media/06-EOJZCQZN.png +0 -0
  173. package/public/media/07-KMKB5PBD.png +0 -0
  174. package/public/media/08-UQJRF6B2.png +0 -0
  175. package/public/media/09-2DJQFRHH.png +0 -0
  176. package/public/media/arrow_left-CQT7FZM7.svg +0 -4
  177. package/public/media/arrow_right-SBUDRR2G.svg +0 -4
  178. package/public/scripts-6GVLYD7F.js +0 -62
  179. package/public/styles-EZS52PWT.css +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"users.controller.js","sourceRoot":"","sources":["../../../src/modules/users/users.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAWuB;AACvB,+CAA4C;AAC5C,6CAOwB;AAExB,+DAA0D;AAC1D,oEAA+D;AAC/D,2CAAsG;AAM/F,IAAM,eAAe,GAArB,MAAM,eAAe;IAC1B,YACU,WAAwB;QAAxB,gBAAW,GAAX,WAAW,CAAa;IAC/B,CAAC;IAMJ,QAAQ;QACN,OAAO,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAA;IACxC,CAAC;IAMD,OAAO,CAAS,IAAa;QAC3B,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,IAAI,CAAC,CAAA;IACvC,CAAC;IAOD,UAAU,CAAgC,MAAc,EAAU,IAAa;QAC7E,OAAO,IAAI,CAAC,WAAW,CAAC,UAAU,CAAC,MAAM,EAAE,IAAI,CAAC,CAAA;IAClD,CAAC;IAMD,UAAU,CAAgC,MAAc;QACtD,OAAO,IAAI,CAAC,WAAW,CAAC,UAAU,CAAC,MAAM,CAAC,CAAA;IAC5C,CAAC;IAKD,iBAAiB,CAAQ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AClE,IAAA,aAAI,EAAC,YAAY,CAAC;IACT,WAAA,IAAA,gBAAO,GAAE,CAAA;;;;+CAElB;AAKD;IAHC,IAAA,sBAAY,EAAC,EAAE,OAAO,EAAE,0CAA0C,EAAE,CAAC;IACrE,IAAA,iBAAO,EAAC,EAAE,IAAI,EAAE,8BAAkB,EAAE,CAAC;IACrC,IAAA,aAAI,EAAC,eAAe,CAAC;IACT,WAAA,IAAA,gBAAO,GAAE,CAAA;IAAO,WAAA,IAAA,aAAI,GAAE,CAAA;;6CAAO,8BAAkB;;kDAE3D;AAKD;IAHC,IAAA,sBAAY,EAAC,EAAE,OAAO,EAAE,4CAA4C,EAAE,CAAC;IACvE,IAAA,iBAAO,EAAC,EAAE,IAAI,EAAE,gCAAoB,EAAE,CAAC;IACvC,IAAA,aAAI,EAAC,iBAAiB,CAAC;IACT,WAAA,IAAA,gBAAO,GAAE,CAAA;IAAO,WAAA,IAAA,aAAI,GAAE,CAAA;;6CAAO,gCAAoB;;oDAE/D;0BA/DU,eAAe;IAJ3B,IAAA,iBAAO,EAAC,iBAAiB,CAAC;IAC1B,IAAA,uBAAa,GAAE;IACf,IAAA,kBAAS,EAAC,IAAA,oBAAS,GAAE,CAAC;IACtB,IAAA,mBAAU,EAAC,OAAO,CAAC;qCAGK,0BAAW;GAFvB,eAAe,CAgE3B"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "homebridge-config-ui-x",
3
3
  "displayName": "Homebridge UI",
4
- "version": "5.0.0-beta.35",
4
+ "version": "5.0.0-beta.36",
5
5
  "description": "A web based management, configuration and control platform for Homebridge.",
6
6
  "author": "oznu <dev@oz.nu>",
7
7
  "license": "MIT",
@@ -56,7 +56,7 @@
56
56
  "hb-service": "dist/bin/hb-service.js"
57
57
  },
58
58
  "engines": {
59
- "node": "^18 || ^20 || ^22",
59
+ "node": "^20 || ^22",
60
60
  "homebridge": "^1.8.0 || ^2.0.0-beta.0"
61
61
  },
62
62
  "scripts": {
@@ -79,29 +79,28 @@
79
79
  "watch:ui": "npm run start --prefix ui"
80
80
  },
81
81
  "dependencies": {
82
- "@fastify/helmet": "11.1.1",
83
- "@fastify/multipart": "8.3.0",
84
- "@fastify/static": "7.0.4",
82
+ "@fastify/helmet": "13.0.1",
83
+ "@fastify/multipart": "9.0.2",
84
+ "@fastify/static": "8.0.4",
85
85
  "@homebridge/hap-client": "2.0.5",
86
86
  "@homebridge/node-pty-prebuilt-multiarch": "0.12.0-beta.5",
87
- "@nestjs/axios": "3.1.3",
88
- "@nestjs/common": "10.4.15",
89
- "@nestjs/core": "10.4.15",
90
- "@nestjs/jwt": "10.2.0",
91
- "@nestjs/passport": "10.0.3",
92
- "@nestjs/platform-fastify": "10.4.15",
93
- "@nestjs/platform-socket.io": "10.4.15",
94
- "@nestjs/swagger": "8.1.0",
95
- "@nestjs/websockets": "10.4.15",
87
+ "@nestjs/axios": "4.0.0",
88
+ "@nestjs/common": "11.0.3",
89
+ "@nestjs/core": "11.0.3",
90
+ "@nestjs/jwt": "11.0.0",
91
+ "@nestjs/passport": "11.0.3",
92
+ "@nestjs/platform-fastify": "11.0.3",
93
+ "@nestjs/platform-socket.io": "11.0.3",
94
+ "@nestjs/swagger": "11.0.2",
95
+ "@nestjs/websockets": "11.0.3",
96
96
  "axios": "1.7.9",
97
97
  "bash-color": "0.0.4",
98
- "buffer-shims": "1.0.0",
99
98
  "class-transformer": "0.5.1",
100
99
  "class-validator": "0.14.1",
101
- "commander": "13.0.0",
100
+ "commander": "13.1.0",
102
101
  "dayjs": "1.11.13",
103
- "fastify": "4.29.0",
104
- "fs-extra": "11.2.0",
102
+ "fastify": "5.2.1",
103
+ "fs-extra": "11.3.0",
105
104
  "jsonwebtoken": "9.0.2",
106
105
  "lodash": "4.17.21",
107
106
  "node-cache": "5.1.2",
@@ -111,45 +110,39 @@
111
110
  "p-limit": "3.1.0",
112
111
  "passport": "0.7.0",
113
112
  "passport-jwt": "4.0.1",
114
- "reflect-metadata": "0.2.2",
115
113
  "rxjs": "7.8.1",
116
114
  "semver": "7.6.3",
117
- "systeminformation": "5.25.5",
115
+ "systeminformation": "5.25.11",
118
116
  "tail": "2.2.6",
119
117
  "tar": "7.4.3",
120
118
  "tcp-port-used": "1.0.2",
121
119
  "unzipper": "0.12.3"
122
120
  },
123
121
  "devDependencies": {
124
- "@antfu/eslint-config": "^3.12.2",
125
- "@nestjs/testing": "^10.4.15",
122
+ "@antfu/eslint-config": "^3.14.0",
123
+ "@nestjs/testing": "^11.0.1",
126
124
  "@prettier/plugin-xml": "^3.4.1",
127
125
  "@types/fs-extra": "^11.0.4",
128
126
  "@types/lodash": "^4.17.14",
129
- "@types/node": "^22.10.5",
127
+ "@types/node": "^22.10.7",
130
128
  "@types/node-schedule": "^2.1.7",
131
129
  "@types/passport-jwt": "^4.0.1",
132
130
  "@types/semver": "^7.5.8",
133
131
  "@types/tail": "^2.2.3",
134
132
  "@types/tcp-port-used": "^1.0.4",
135
133
  "@types/unzipper": "^0.10.10",
136
- "@vitest/coverage-v8": "^2.1.8",
134
+ "@vitest/coverage-v8": "^3.0.2",
137
135
  "concurrently": "^9.1.2",
138
136
  "eslint-plugin-format": "^1.0.1",
139
137
  "form-data": "^4.0.1",
140
138
  "nodemon": "^3.1.9",
141
139
  "rimraf": "^6.0.1",
142
- "ts-loader": "^9.5.1",
140
+ "ts-loader": "^9.5.2",
143
141
  "ts-node": "^10.9.2",
144
142
  "tsconfig-paths": "^4.2.0",
145
- "typescript": "^5.7.2",
143
+ "typescript": "^5.7.3",
146
144
  "unplugin-swc": "^1.5.1",
147
- "vitest": "^2.1.8"
148
- },
149
- "overrides": {
150
- "@nestjs/platform-fastify": {
151
- "fastify": "4.29.0"
152
- }
145
+ "vitest": "^3.0.2"
153
146
  },
154
147
  "maintainers": [
155
148
  {
@@ -188,5 +181,8 @@
188
181
  "email": "nfarina@gmail.com",
189
182
  "name": "nfarina"
190
183
  }
191
- ]
184
+ ],
185
+ "scarfSettings": {
186
+ "enabled": false
187
+ }
192
188
  }
@@ -5,7 +5,7 @@ License: "MIT"
5
5
 
6
6
  The MIT License
7
7
 
8
- Copyright (c) 2010-2024 Google LLC. https://angular.dev/license
8
+ Copyright (c) 2010-2025 Google LLC. https://angular.dev/license
9
9
 
10
10
  Permission is hereby granted, free of charge, to any person obtaining a copy
11
11
  of this software and associated documentation files (the "Software"), to deal
@@ -31,7 +31,7 @@ License: "MIT"
31
31
 
32
32
  The MIT License
33
33
 
34
- Copyright (c) 2010-2024 Google LLC. https://angular.dev/license
34
+ Copyright (c) 2010-2025 Google LLC. https://angular.dev/license
35
35
 
36
36
  Permission is hereby granted, free of charge, to any person obtaining a copy
37
37
  of this software and associated documentation files (the "Software"), to deal
@@ -57,7 +57,7 @@ License: "MIT"
57
57
 
58
58
  The MIT License
59
59
 
60
- Copyright (c) 2010-2024 Google LLC. https://angular.dev/license
60
+ Copyright (c) 2010-2025 Google LLC. https://angular.dev/license
61
61
 
62
62
  Permission is hereby granted, free of charge, to any person obtaining a copy
63
63
  of this software and associated documentation files (the "Software"), to deal
@@ -156,7 +156,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
156
156
  SOFTWARE.
157
157
 
158
158
  --------------------------------------------------------------------------------
159
- Package: @ng-formworks/bootstrap4
159
+ Package: @ng-formworks/bootstrap5
160
160
  License: "MIT"
161
161
 
162
162
  MIT License
@@ -293,11 +293,51 @@ SOFTWARE.
293
293
  Package: atoa
294
294
  License: "MIT"
295
295
 
296
+ The MIT License (MIT)
297
+
298
+ Copyright © 2015 Nicolas Bevacqua
299
+
300
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
301
+ this software and associated documentation files (the "Software"), to deal in
302
+ the Software without restriction, including without limitation the rights to
303
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
304
+ the Software, and to permit persons to whom the Software is furnished to do so,
305
+ subject to the following conditions:
306
+
307
+ The above copyright notice and this permission notice shall be included in all
308
+ copies or substantial portions of the Software.
309
+
310
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
311
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
312
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
313
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
314
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
315
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
296
316
 
297
317
  --------------------------------------------------------------------------------
298
318
  Package: ticky
299
319
  License: "MIT"
300
320
 
321
+ The MIT License (MIT)
322
+
323
+ Copyright © 2015 Nicolas Bevacqua
324
+
325
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
326
+ this software and associated documentation files (the "Software"), to deal in
327
+ the Software without restriction, including without limitation the rights to
328
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
329
+ the Software, and to permit persons to whom the Software is furnished to do so,
330
+ subject to the following conditions:
331
+
332
+ The above copyright notice and this permission notice shall be included in all
333
+ copies or substantial portions of the Software.
334
+
335
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
336
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
337
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
338
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
339
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
340
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
301
341
 
302
342
  --------------------------------------------------------------------------------
303
343
  Package: contra
@@ -377,6 +417,26 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
377
417
  Package: dragula
378
418
  License: "MIT"
379
419
 
420
+ The MIT License (MIT)
421
+
422
+ Copyright © 2015-2016 Nicolas Bevacqua
423
+
424
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
425
+ this software and associated documentation files (the "Software"), to deal in
426
+ the Software without restriction, including without limitation the rights to
427
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
428
+ the Software, and to permit persons to whom the Software is furnished to do so,
429
+ subject to the following conditions:
430
+
431
+ The above copyright notice and this permission notice shall be included in all
432
+ copies or substantial portions of the Software.
433
+
434
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
435
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
436
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
437
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
438
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
439
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
380
440
 
381
441
  --------------------------------------------------------------------------------
382
442
  Package: ng2-dragula
@@ -863,6 +923,16 @@ THE SOFTWARE.
863
923
  Package: qrcode
864
924
  License: "MIT"
865
925
 
926
+ The MIT License (MIT)
927
+
928
+ Copyright (c) 2012 Ryan Day
929
+
930
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
931
+
932
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
933
+
934
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
935
+
866
936
 
867
937
  --------------------------------------------------------------------------------
868
938
  Package: dijkstrajs
@@ -980,7 +1050,7 @@ License: "MIT"
980
1050
 
981
1051
  The MIT License
982
1052
 
983
- Copyright (c) 2010-2024 Google LLC. https://angular.dev/license
1053
+ Copyright (c) 2010-2025 Google LLC. https://angular.dev/license
984
1054
 
985
1055
  Permission is hereby granted, free of charge, to any person obtaining a copy
986
1056
  of this software and associated documentation files (the "Software"), to deal
@@ -1057,7 +1127,7 @@ License: "MIT"
1057
1127
 
1058
1128
  The MIT License
1059
1129
 
1060
- Copyright (c) 2010-2024 Google LLC. https://angular.dev/license
1130
+ Copyright (c) 2010-2025 Google LLC. https://angular.dev/license
1061
1131
 
1062
1132
  Permission is hereby granted, free of charge, to any person obtaining a copy
1063
1133
  of this software and associated documentation files (the "Software"), to deal
@@ -1215,7 +1285,7 @@ License: "MIT"
1215
1285
 
1216
1286
  The MIT License
1217
1287
 
1218
- Copyright (c) 2010-2024 Google LLC. https://angular.dev/license
1288
+ Copyright (c) 2010-2025 Google LLC. https://angular.dev/license
1219
1289
 
1220
1290
  Permission is hereby granted, free of charge, to any person obtaining a copy
1221
1291
  of this software and associated documentation files (the "Software"), to deal
@@ -1581,7 +1651,7 @@ License: "MIT"
1581
1651
 
1582
1652
  The MIT License
1583
1653
 
1584
- Copyright (c) 2010-2024 Google LLC. https://angular.dev/license
1654
+ Copyright (c) 2010-2025 Google LLC. https://angular.dev/license
1585
1655
 
1586
1656
  Permission is hereby granted, free of charge, to any person obtaining a copy
1587
1657
  of this software and associated documentation files (the "Software"), to deal
@@ -1 +1 @@
1
- import{a as w}from"./chunk-TFXCOLWH.js";import{d as y}from"./chunk-T3GI7KUT.js";import{b as T}from"./chunk-YTJNIFE4.js";import{h as $,k as S}from"./chunk-3NBOT4LS.js";import{a as _,b as g}from"./chunk-675OFXLW.js";import{Bb as h,Cc as m,Dc as p,Rb as l,Wb as r,Xb as n,Yb as f,ec as v,ib as i,na as a,oc as s,pc as o,ub as x}from"./chunk-CKNHTRCL.js";function C(t,u){t&1&&(r(0,"p",7),s(1),m(2,"translate"),n()),t&2&&(i(),o(p(2,1,"restart.please_wait_while_server_restarts")))}function k(t,u){if(t&1&&(r(0,"div",8),s(1),n()),t&2){let e=v();i(),o(e.error)}}function b(t,u){t&1&&(r(0,"div",9)(1,"div",11),f(2,"i",12),n()())}function E(t,u){t&1&&(r(0,"div",10),s(1),m(2,"translate"),n()),t&2&&(i(),o(p(2,1,"platform.linux.long_time")))}var A=(()=>{class t{$api=a(S);$router=a(y);$settings=a(T);$toastr=a($);$translate=a(_);$ws=a(w);checkTimeout;checkDelay;resp={};timeout=!1;error=!1;io;constructor(){}ngOnInit(){this.io=this.$ws.connectToNamespace("status"),this.io.connected.subscribe(()=>{this.io.socket.emit("monitor-server-status"),this.$settings.getAppSettings().catch(()=>{})}),this.$api.put("/platform-tools/linux/restart-host",{}).subscribe({next:e=>{this.resp=e,this.checkIfServerUp()},error:e=>{console.error(e),this.error=this.$translate.instant("platform.linux.server_restart_error"),this.$toastr.error(this.$translate.instant("platform.linux.server_restart_error"),this.$translate.instant("toast.title_error"))}})}checkIfServerUp(){this.checkDelay=setTimeout(()=>{this.io.socket.on("homebridge-status",e=>{(e.status==="up"||e.status==="pending")&&(this.$toastr.success(this.$translate.instant("platform.linux.server_restarted"),this.$translate.instant("toast.title_success")),this.$router.navigate(["/"]))})},3e4),this.checkTimeout=setTimeout(()=>{this.$toastr.warning(this.$translate.instant("platform.linux.server_taking_long_time"),this.$translate.instant("toast.title_warning"),{timeOut:1e4}),this.timeout=!0},12e4)}ngOnDestroy(){this.io.end(),clearTimeout(this.checkDelay),clearTimeout(this.checkTimeout)}static \u0275fac=function(c){return new(c||t)};static \u0275cmp=x({type:t,selectors:[["ng-component"]],decls:15,vars:10,consts:[[1,"d-flex","justify-content-between"],[1,"primary-text","m-0"],[1,"my-4","align-items-center",2,"max-width","1000px","margin","auto"],[1,"w-100","text-center","primary-text","mb-5"],[1,"fas","fa-fw","fa-power-off",2,"font-size","75px"],[1,"text-center"],[1,"primary-text","mb-4"],[1,"grey-text"],[1,"alert","alert-error","my-4"],[1,"justify-content-center","my-4"],[1,"alert","alert-warning","my-4"],[1,"restart-progress-box","primary-text"],[1,"fas","fa-fw","fa-spinner","fa-spin"]],template:function(c,d){c&1&&(r(0,"div",0)(1,"h3",1),s(2),m(3,"translate"),n()(),r(4,"div",2)(5,"div",3),f(6,"i",4),n(),r(7,"div",5)(8,"h4",6),s(9),m(10,"translate"),n(),h(11,C,3,3,"p",7)(12,k,2,1,"div",8)(13,b,3,0,"div",9)(14,E,3,3,"div",10),n()()),c&2&&(i(2),o(p(3,6,"menu.restart.title")),i(7),o(p(10,8,"platform.linux.restarting_server")),i(2),l(d.error?-1:11),i(),l(d.error?12:-1),i(),l(d.error?-1:13),i(),l(d.timeout?14:-1))},dependencies:[g],styles:[".restart-progress-box[_ngcontent-%COMP%]{font-size:22px;margin-top:15px}"]})}return t})();export{A as a};
1
+ import{a as w}from"./chunk-AHGEAOPV.js";import{d as y}from"./chunk-7HPEGK3R.js";import{b as T}from"./chunk-5RNQ5G6T.js";import{h as $,k as S}from"./chunk-AQX2C7OY.js";import{a as _,b as g}from"./chunk-G67F4LRX.js";import{Ac as m,Bc as p,Pb as l,Ub as r,Vb as n,Wb as f,cc as v,gb as i,ma as a,mc as s,nc as o,sb as x,zb as h}from"./chunk-ELVGIIRZ.js";function C(t,u){t&1&&(r(0,"p",7),s(1),m(2,"translate"),n()),t&2&&(i(),o(p(2,1,"restart.please_wait_while_server_restarts")))}function k(t,u){if(t&1&&(r(0,"div",8),s(1),n()),t&2){let e=v();i(),o(e.error)}}function b(t,u){t&1&&(r(0,"div",9)(1,"div",11),f(2,"i",12),n()())}function E(t,u){t&1&&(r(0,"div",10),s(1),m(2,"translate"),n()),t&2&&(i(),o(p(2,1,"platform.linux.long_time")))}var A=(()=>{class t{$api=a(S);$router=a(y);$settings=a(T);$toastr=a($);$translate=a(_);$ws=a(w);checkTimeout;checkDelay;resp={};timeout=!1;error=!1;io;constructor(){}ngOnInit(){this.io=this.$ws.connectToNamespace("status"),this.io.connected.subscribe(()=>{this.io.socket.emit("monitor-server-status"),this.$settings.getAppSettings().catch(()=>{})}),this.$api.put("/platform-tools/linux/restart-host",{}).subscribe({next:e=>{this.resp=e,this.checkIfServerUp()},error:e=>{console.error(e),this.error=this.$translate.instant("platform.linux.server_restart_error"),this.$toastr.error(this.$translate.instant("platform.linux.server_restart_error"),this.$translate.instant("toast.title_error"))}})}checkIfServerUp(){this.checkDelay=setTimeout(()=>{this.io.socket.on("homebridge-status",e=>{(e.status==="up"||e.status==="pending")&&(this.$toastr.success(this.$translate.instant("platform.linux.server_restarted"),this.$translate.instant("toast.title_success")),this.$router.navigate(["/"]))})},3e4),this.checkTimeout=setTimeout(()=>{this.$toastr.warning(this.$translate.instant("platform.linux.server_taking_long_time"),this.$translate.instant("toast.title_warning"),{timeOut:1e4}),this.timeout=!0},12e4)}ngOnDestroy(){this.io.end(),clearTimeout(this.checkDelay),clearTimeout(this.checkTimeout)}static \u0275fac=function(c){return new(c||t)};static \u0275cmp=x({type:t,selectors:[["ng-component"]],decls:15,vars:10,consts:[[1,"d-flex","justify-content-between"],[1,"primary-text","m-0"],[1,"my-4","align-items-center",2,"max-width","1000px","margin","auto"],[1,"w-100","text-center","primary-text","mb-5"],[1,"fas","fa-fw","fa-power-off",2,"font-size","75px"],[1,"text-center"],[1,"primary-text","mb-4"],[1,"grey-text"],[1,"alert","alert-error","my-4"],[1,"justify-content-center","my-4"],[1,"alert","alert-warning","my-4"],[1,"restart-progress-box","primary-text"],[1,"fas","fa-fw","fa-spinner","fa-spin"]],template:function(c,d){c&1&&(r(0,"div",0)(1,"h3",1),s(2),m(3,"translate"),n()(),r(4,"div",2)(5,"div",3),f(6,"i",4),n(),r(7,"div",5)(8,"h4",6),s(9),m(10,"translate"),n(),h(11,C,3,3,"p",7)(12,k,2,1,"div",8)(13,b,3,0,"div",9)(14,E,3,3,"div",10),n()()),c&2&&(i(2),o(p(3,6,"menu.restart.title")),i(7),o(p(10,8,"platform.linux.restarting_server")),i(2),l(d.error?-1:11),i(),l(d.error?12:-1),i(),l(d.error?-1:13),i(),l(d.timeout?14:-1))},dependencies:[g],styles:[".restart-progress-box[_ngcontent-%COMP%]{font-size:22px;font-weight:300;margin-top:15px}"]})}return t})();export{A as a};
@@ -0,0 +1 @@
1
+ import"./chunk-RRUCC4UM.js";import"./chunk-I2F2MP74.js";import"./chunk-QZ7FBUFJ.js";import"./chunk-6LUEJV3C.js";import"./chunk-AHGEAOPV.js";import{g as i}from"./chunk-7HPEGK3R.js";import"./chunk-XAUZKAOZ.js";import"./chunk-5RNQ5G6T.js";import"./chunk-AQX2C7OY.js";import"./chunk-T3Y7RYJZ.js";import{c as m}from"./chunk-G67F4LRX.js";import{ha as t,id as n,tb as r}from"./chunk-ELVGIIRZ.js";var u=[{path:"",loadComponent:()=>import("./chunk-D7EYNOYB.js").then(o=>o.TerminalComponent)}],a=(()=>{class o{static \u0275fac=function(e){return new(e||o)};static \u0275mod=r({type:o});static \u0275inj=t({imports:[i.forChild(u),i]})}return o})();var T=(()=>{class o{static \u0275fac=function(e){return new(e||o)};static \u0275mod=r({type:o});static \u0275inj=t({imports:[n,a,m.forChild()]})}return o})();export{T as TerminalModule};
@@ -1 +1 @@
1
- import{ha as e,n as r}from"./chunk-CKNHTRCL.js";var n=(()=>{class t{raspberryPiThrottled=new r;static \u0275fac=function(o){return new(o||t)};static \u0275prov=e({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();export{n as a};
1
+ import{ga as e,n as r}from"./chunk-ELVGIIRZ.js";var n=(()=>{class t{raspberryPiThrottled=new r;static \u0275fac=function(o){return new(o||t)};static \u0275prov=e({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();export{n as a};