homebridge-config-ui-x 5.9.1-beta.1 → 5.9.1-beta.11
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 +23 -3
- package/TODO-MATTER.md +15 -0
- package/dist/app.controller.d.ts +1 -1
- package/dist/app.controller.js +14 -12
- package/dist/app.controller.js.map +1 -1
- package/dist/app.gateway.js +7 -10
- package/dist/app.gateway.js.map +1 -1
- package/dist/app.module.js +42 -43
- package/dist/app.module.js.map +1 -1
- package/dist/app.service.js +4 -7
- package/dist/app.service.js.map +1 -1
- package/dist/bin/base-platform.d.ts +1 -1
- package/dist/bin/base-platform.js +11 -17
- package/dist/bin/base-platform.js.map +1 -1
- package/dist/bin/fork.js +7 -45
- package/dist/bin/fork.js.map +1 -1
- package/dist/bin/hb-service.js +224 -243
- package/dist/bin/hb-service.js.map +1 -1
- package/dist/bin/platforms/darwin.d.ts +1 -1
- package/dist/bin/platforms/darwin.js +61 -65
- package/dist/bin/platforms/darwin.js.map +1 -1
- package/dist/bin/platforms/freebsd.d.ts +1 -1
- package/dist/bin/platforms/freebsd.js +42 -47
- package/dist/bin/platforms/freebsd.js.map +1 -1
- package/dist/bin/platforms/linux.d.ts +1 -1
- package/dist/bin/platforms/linux.js +127 -132
- package/dist/bin/platforms/linux.js.map +1 -1
- package/dist/bin/platforms/win32.d.ts +1 -1
- package/dist/bin/platforms/win32.js +30 -36
- package/dist/bin/platforms/win32.js.map +1 -1
- package/dist/bin/standalone.js +15 -53
- package/dist/bin/standalone.js.map +1 -1
- package/dist/core/auth/auth.controller.d.ts +5 -4
- package/dist/core/auth/auth.controller.js +40 -39
- package/dist/core/auth/auth.controller.js.map +1 -1
- package/dist/core/auth/auth.dto.js +17 -18
- package/dist/core/auth/auth.dto.js.map +1 -1
- package/dist/core/auth/auth.module.js +28 -31
- package/dist/core/auth/auth.module.js.map +1 -1
- package/dist/core/auth/auth.service.d.ts +3 -3
- package/dist/core/auth/auth.service.js +65 -62
- package/dist/core/auth/auth.service.js.map +1 -1
- package/dist/core/auth/guards/admin.guard.js +4 -7
- package/dist/core/auth/guards/admin.guard.js.map +1 -1
- package/dist/core/auth/guards/custom.guard.js +6 -9
- package/dist/core/auth/guards/custom.guard.js.map +1 -1
- package/dist/core/auth/guards/ws-admin-guard.d.ts +2 -2
- package/dist/core/auth/guards/ws-admin-guard.js +13 -11
- package/dist/core/auth/guards/ws-admin-guard.js.map +1 -1
- package/dist/core/auth/guards/ws.guard.d.ts +2 -2
- package/dist/core/auth/guards/ws.guard.js +13 -11
- package/dist/core/auth/guards/ws.guard.js.map +1 -1
- package/dist/core/auth/jwt.strategy.d.ts +3 -2
- package/dist/core/auth/jwt.strategy.js +21 -16
- package/dist/core/auth/jwt.strategy.js.map +1 -1
- package/dist/core/config/config.interfaces.d.ts +8 -1
- package/dist/core/config/config.interfaces.js +1 -2
- package/dist/core/config/config.module.js +8 -10
- package/dist/core/config/config.module.js.map +1 -1
- package/dist/core/config/config.service.d.ts +4 -3
- package/dist/core/config/config.service.js +90 -83
- package/dist/core/config/config.service.js.map +1 -1
- package/dist/core/config/config.startup.d.ts +1 -1
- package/dist/core/config/config.startup.js +23 -28
- package/dist/core/config/config.startup.js.map +1 -1
- package/dist/core/feature-flags/feature-flags.registry.js +2 -5
- package/dist/core/feature-flags/feature-flags.registry.js.map +1 -1
- package/dist/core/homebridge-ipc/homebridge-ipc.module.js +11 -14
- package/dist/core/homebridge-ipc/homebridge-ipc.module.js.map +1 -1
- package/dist/core/homebridge-ipc/homebridge-ipc.service.d.ts +4 -4
- package/dist/core/homebridge-ipc/homebridge-ipc.service.js +25 -19
- package/dist/core/homebridge-ipc/homebridge-ipc.service.js.map +1 -1
- package/dist/core/logger/logger.module.js +8 -10
- package/dist/core/logger/logger.module.js.map +1 -1
- package/dist/core/logger/logger.service.js +13 -23
- package/dist/core/logger/logger.service.js.map +1 -1
- package/dist/core/node-pty/node-pty.module.js +7 -10
- package/dist/core/node-pty/node-pty.module.js.map +1 -1
- package/dist/core/node-pty/node-pty.service.js +6 -11
- package/dist/core/node-pty/node-pty.service.js.map +1 -1
- package/dist/core/node-version.constants.js +4 -11
- package/dist/core/node-version.constants.js.map +1 -1
- package/dist/core/scheduler/scheduler.module.js +15 -10
- package/dist/core/scheduler/scheduler.module.js.map +1 -1
- package/dist/core/scheduler/scheduler.service.d.ts +12 -1
- package/dist/core/scheduler/scheduler.service.js +101 -13
- package/dist/core/scheduler/scheduler.service.js.map +1 -1
- package/dist/core/spa/spa-html.service.js +9 -15
- package/dist/core/spa/spa-html.service.js.map +1 -1
- package/dist/core/spa/spa.filter.d.ts +1 -1
- package/dist/core/spa/spa.filter.js +11 -16
- package/dist/core/spa/spa.filter.js.map +1 -1
- package/dist/core/ssl/ssl-cert-generator.service.js +34 -36
- package/dist/core/ssl/ssl-cert-generator.service.js.map +1 -1
- package/dist/env-setup.d.ts +1 -0
- package/dist/env-setup.js +7 -0
- package/dist/env-setup.js.map +1 -0
- package/dist/globalDefaults.d.ts +1 -0
- package/dist/globalDefaults.js +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +16 -19
- package/dist/index.js.map +1 -1
- package/dist/main.d.ts +5 -3
- package/dist/main.js +44 -51
- package/dist/main.js.map +1 -1
- package/dist/modules/accessories/accessories.controller.d.ts +3 -3
- package/dist/modules/accessories/accessories.controller.js +28 -29
- package/dist/modules/accessories/accessories.controller.js.map +1 -1
- package/dist/modules/accessories/accessories.dto.js +11 -13
- package/dist/modules/accessories/accessories.dto.js.map +1 -1
- package/dist/modules/accessories/accessories.gateway.d.ts +2 -2
- package/dist/modules/accessories/accessories.gateway.js +18 -16
- package/dist/modules/accessories/accessories.gateway.js.map +1 -1
- package/dist/modules/accessories/accessories.interfaces.d.ts +94 -0
- package/dist/modules/accessories/accessories.interfaces.js +2 -0
- package/dist/modules/accessories/accessories.interfaces.js.map +1 -0
- package/dist/modules/accessories/accessories.module.js +19 -20
- package/dist/modules/accessories/accessories.module.js.map +1 -1
- package/dist/modules/accessories/accessories.service.d.ts +23 -5
- package/dist/modules/accessories/accessories.service.js +316 -51
- package/dist/modules/accessories/accessories.service.js.map +1 -1
- package/dist/modules/backup/backup.controller.d.ts +4 -4
- package/dist/modules/backup/backup.controller.js +68 -67
- package/dist/modules/backup/backup.controller.js.map +1 -1
- package/dist/modules/backup/backup.gateway.d.ts +4 -4
- package/dist/modules/backup/backup.gateway.js +25 -21
- package/dist/modules/backup/backup.gateway.js.map +1 -1
- package/dist/modules/backup/backup.module.js +22 -25
- package/dist/modules/backup/backup.module.js.map +1 -1
- package/dist/modules/backup/backup.service.d.ts +5 -5
- package/dist/modules/backup/backup.service.js +143 -133
- package/dist/modules/backup/backup.service.js.map +1 -1
- package/dist/modules/child-bridges/child-bridges.gateway.d.ts +3 -3
- package/dist/modules/child-bridges/child-bridges.gateway.js +23 -21
- package/dist/modules/child-bridges/child-bridges.gateway.js.map +1 -1
- package/dist/modules/child-bridges/child-bridges.interfaces.js +1 -2
- package/dist/modules/child-bridges/child-bridges.module.js +19 -22
- package/dist/modules/child-bridges/child-bridges.module.js.map +1 -1
- package/dist/modules/child-bridges/child-bridges.service.d.ts +3 -3
- package/dist/modules/child-bridges/child-bridges.service.js +15 -11
- package/dist/modules/child-bridges/child-bridges.service.js.map +1 -1
- package/dist/modules/config-editor/config-editor.controller.d.ts +13 -11
- package/dist/modules/config-editor/config-editor.controller.js +168 -103
- package/dist/modules/config-editor/config-editor.controller.js.map +1 -1
- package/dist/modules/config-editor/config-editor.dto.d.ts +6 -0
- package/dist/modules/config-editor/config-editor.dto.js +40 -0
- package/dist/modules/config-editor/config-editor.dto.js.map +1 -0
- package/dist/modules/config-editor/config-editor.module.js +21 -24
- package/dist/modules/config-editor/config-editor.module.js.map +1 -1
- package/dist/modules/config-editor/config-editor.service.d.ts +11 -8
- package/dist/modules/config-editor/config-editor.service.js +123 -66
- package/dist/modules/config-editor/config-editor.service.js.map +1 -1
- package/dist/modules/custom-plugins/custom-plugins.module.js +10 -13
- package/dist/modules/custom-plugins/custom-plugins.module.js.map +1 -1
- package/dist/modules/custom-plugins/homebridge-deconz/homebridge-deconz.controller.d.ts +2 -2
- package/dist/modules/custom-plugins/homebridge-deconz/homebridge-deconz.controller.js +21 -19
- package/dist/modules/custom-plugins/homebridge-deconz/homebridge-deconz.controller.js.map +1 -1
- package/dist/modules/custom-plugins/homebridge-deconz/homebridge-deconz.module.js +14 -17
- package/dist/modules/custom-plugins/homebridge-deconz/homebridge-deconz.module.js.map +1 -1
- package/dist/modules/custom-plugins/homebridge-deconz/homebridge-deconz.service.d.ts +2 -2
- package/dist/modules/custom-plugins/homebridge-deconz/homebridge-deconz.service.js +18 -15
- package/dist/modules/custom-plugins/homebridge-deconz/homebridge-deconz.service.js.map +1 -1
- package/dist/modules/custom-plugins/homebridge-hue/homebridge-hue.controller.d.ts +2 -2
- package/dist/modules/custom-plugins/homebridge-hue/homebridge-hue.controller.js +21 -19
- package/dist/modules/custom-plugins/homebridge-hue/homebridge-hue.controller.js.map +1 -1
- package/dist/modules/custom-plugins/homebridge-hue/homebridge-hue.module.js +14 -17
- package/dist/modules/custom-plugins/homebridge-hue/homebridge-hue.module.js.map +1 -1
- package/dist/modules/custom-plugins/homebridge-hue/homebridge-hue.service.d.ts +2 -2
- package/dist/modules/custom-plugins/homebridge-hue/homebridge-hue.service.js +18 -15
- package/dist/modules/custom-plugins/homebridge-hue/homebridge-hue.service.js.map +1 -1
- package/dist/modules/custom-plugins/plugins-settings-ui/plugins-settings-ui.controller.d.ts +2 -2
- package/dist/modules/custom-plugins/plugins-settings-ui/plugins-settings-ui.controller.js +18 -19
- package/dist/modules/custom-plugins/plugins-settings-ui/plugins-settings-ui.controller.js.map +1 -1
- package/dist/modules/custom-plugins/plugins-settings-ui/plugins-settings-ui.gateway.d.ts +2 -2
- package/dist/modules/custom-plugins/plugins-settings-ui/plugins-settings-ui.gateway.js +15 -13
- package/dist/modules/custom-plugins/plugins-settings-ui/plugins-settings-ui.gateway.js.map +1 -1
- package/dist/modules/custom-plugins/plugins-settings-ui/plugins-settings-ui.module.js +18 -21
- package/dist/modules/custom-plugins/plugins-settings-ui/plugins-settings-ui.module.js.map +1 -1
- package/dist/modules/custom-plugins/plugins-settings-ui/plugins-settings-ui.service.d.ts +8 -8
- package/dist/modules/custom-plugins/plugins-settings-ui/plugins-settings-ui.service.js +47 -41
- package/dist/modules/custom-plugins/plugins-settings-ui/plugins-settings-ui.service.js.map +1 -1
- package/dist/modules/log/log.gateway.d.ts +3 -3
- package/dist/modules/log/log.gateway.js +15 -13
- package/dist/modules/log/log.gateway.js.map +1 -1
- package/dist/modules/log/log.interfaces.js +1 -2
- package/dist/modules/log/log.module.js +14 -17
- package/dist/modules/log/log.module.js.map +1 -1
- package/dist/modules/log/log.service.d.ts +5 -5
- package/dist/modules/log/log.service.js +47 -43
- package/dist/modules/log/log.service.js.map +1 -1
- package/dist/modules/platform-tools/docker/docker.controller.d.ts +1 -1
- package/dist/modules/platform-tools/docker/docker.controller.js +24 -25
- package/dist/modules/platform-tools/docker/docker.controller.js.map +1 -1
- package/dist/modules/platform-tools/docker/docker.module.js +14 -17
- package/dist/modules/platform-tools/docker/docker.module.js.map +1 -1
- package/dist/modules/platform-tools/docker/docker.service.d.ts +2 -2
- package/dist/modules/platform-tools/docker/docker.service.js +20 -16
- package/dist/modules/platform-tools/docker/docker.service.js.map +1 -1
- package/dist/modules/platform-tools/hb-service/hb-service.controller.d.ts +2 -2
- package/dist/modules/platform-tools/hb-service/hb-service.controller.js +35 -36
- package/dist/modules/platform-tools/hb-service/hb-service.controller.js.map +1 -1
- package/dist/modules/platform-tools/hb-service/hb-service.dto.js +20 -19
- package/dist/modules/platform-tools/hb-service/hb-service.dto.js.map +1 -1
- package/dist/modules/platform-tools/hb-service/hb-service.module.js +14 -17
- package/dist/modules/platform-tools/hb-service/hb-service.module.js.map +1 -1
- package/dist/modules/platform-tools/hb-service/hb-service.service.d.ts +3 -3
- package/dist/modules/platform-tools/hb-service/hb-service.service.js +37 -30
- package/dist/modules/platform-tools/hb-service/hb-service.service.js.map +1 -1
- package/dist/modules/platform-tools/linux/linux.controller.d.ts +1 -1
- package/dist/modules/platform-tools/linux/linux.controller.js +23 -21
- package/dist/modules/platform-tools/linux/linux.controller.js.map +1 -1
- package/dist/modules/platform-tools/linux/linux.module.js +14 -17
- package/dist/modules/platform-tools/linux/linux.module.js.map +1 -1
- package/dist/modules/platform-tools/linux/linux.service.d.ts +2 -2
- package/dist/modules/platform-tools/linux/linux.service.js +18 -14
- package/dist/modules/platform-tools/linux/linux.service.js.map +1 -1
- package/dist/modules/platform-tools/platform-tools.module.js +12 -15
- package/dist/modules/platform-tools/platform-tools.module.js.map +1 -1
- package/dist/modules/platform-tools/terminal/terminal.controller.d.ts +1 -1
- package/dist/modules/platform-tools/terminal/terminal.controller.js +15 -13
- package/dist/modules/platform-tools/terminal/terminal.controller.js.map +1 -1
- package/dist/modules/platform-tools/terminal/terminal.gateway.d.ts +2 -2
- package/dist/modules/platform-tools/terminal/terminal.gateway.js +17 -15
- package/dist/modules/platform-tools/terminal/terminal.gateway.js.map +1 -1
- package/dist/modules/platform-tools/terminal/terminal.interfaces.js +1 -2
- package/dist/modules/platform-tools/terminal/terminal.module.js +18 -21
- package/dist/modules/platform-tools/terminal/terminal.module.js.map +1 -1
- package/dist/modules/platform-tools/terminal/terminal.service.d.ts +7 -7
- package/dist/modules/platform-tools/terminal/terminal.service.js +33 -28
- package/dist/modules/platform-tools/terminal/terminal.service.js.map +1 -1
- package/dist/modules/plugins/plugins.controller.d.ts +12 -7
- package/dist/modules/plugins/plugins.controller.js +100 -52
- package/dist/modules/plugins/plugins.controller.js.map +1 -1
- package/dist/modules/plugins/plugins.dto.js +26 -24
- package/dist/modules/plugins/plugins.dto.js.map +1 -1
- package/dist/modules/plugins/plugins.gateway.d.ts +5 -5
- package/dist/modules/plugins/plugins.gateway.js +38 -34
- package/dist/modules/plugins/plugins.gateway.js.map +1 -1
- package/dist/modules/plugins/plugins.interfaces.js +1 -2
- package/dist/modules/plugins/plugins.module.js +27 -26
- package/dist/modules/plugins/plugins.module.js.map +1 -1
- package/dist/modules/plugins/plugins.service.d.ts +26 -13
- package/dist/modules/plugins/plugins.service.js +365 -203
- package/dist/modules/plugins/plugins.service.js.map +1 -1
- package/dist/modules/server/server.controller.d.ts +7 -7
- package/dist/modules/server/server.controller.js +208 -205
- package/dist/modules/server/server.controller.js.map +1 -1
- package/dist/modules/server/server.dto.js +13 -16
- package/dist/modules/server/server.dto.js.map +1 -1
- package/dist/modules/server/server.module.js +23 -26
- package/dist/modules/server/server.module.js.map +1 -1
- package/dist/modules/server/server.service.d.ts +6 -6
- package/dist/modules/server/server.service.js +202 -224
- package/dist/modules/server/server.service.js.map +1 -1
- package/dist/modules/setup-wizard/setup-wizard.controller.d.ts +3 -3
- package/dist/modules/setup-wizard/setup-wizard.controller.js +19 -20
- package/dist/modules/setup-wizard/setup-wizard.controller.js.map +1 -1
- package/dist/modules/setup-wizard/setup-wizard.gateway.d.ts +4 -4
- package/dist/modules/setup-wizard/setup-wizard.gateway.js +25 -21
- package/dist/modules/setup-wizard/setup-wizard.gateway.js.map +1 -1
- package/dist/modules/setup-wizard/setup-wizard.guard.d.ts +2 -2
- package/dist/modules/setup-wizard/setup-wizard.guard.js +11 -9
- package/dist/modules/setup-wizard/setup-wizard.guard.js.map +1 -1
- package/dist/modules/setup-wizard/setup-wizard.module.js +12 -15
- package/dist/modules/setup-wizard/setup-wizard.module.js.map +1 -1
- package/dist/modules/status/status.controller.d.ts +5 -5
- package/dist/modules/status/status.controller.js +40 -36
- package/dist/modules/status/status.controller.js.map +1 -1
- package/dist/modules/status/status.gateway.d.ts +11 -11
- package/dist/modules/status/status.gateway.js +51 -47
- package/dist/modules/status/status.gateway.js.map +1 -1
- package/dist/modules/status/status.interfaces.js +2 -5
- package/dist/modules/status/status.interfaces.js.map +1 -1
- package/dist/modules/status/status.module.js +26 -29
- package/dist/modules/status/status.module.js.map +1 -1
- package/dist/modules/status/status.service.d.ts +13 -13
- package/dist/modules/status/status.service.js +100 -88
- package/dist/modules/status/status.service.js.map +1 -1
- package/dist/modules/users/users.controller.d.ts +3 -3
- package/dist/modules/users/users.controller.js +59 -60
- package/dist/modules/users/users.controller.js.map +1 -1
- package/dist/modules/users/users.dto.js +51 -45
- package/dist/modules/users/users.dto.js.map +1 -1
- package/dist/modules/users/users.module.js +14 -17
- package/dist/modules/users/users.module.js.map +1 -1
- package/dist/self-check.js +25 -25
- package/dist/self-check.js.map +1 -1
- package/package.json +14 -12
- package/public/3rdpartylicenses.txt +26 -26
- package/public/{chunk-AI6E5JVH.js → chunk-24KMNOUL.js} +1 -1
- package/public/{chunk-RMZRXORR.js → chunk-2JKVDOVH.js} +1 -1
- package/public/chunk-2NCYMI5G.js +1 -0
- package/public/{chunk-TOYVIOBH.js → chunk-53XRPANC.js} +1 -1
- package/public/{chunk-5ETJWAIW.js → chunk-57Y3L52Q.js} +1 -1
- package/public/{chunk-3E2NZ5JW.js → chunk-5WXUZ3UB.js} +1 -1
- package/public/chunk-6JOKZWRV.js +1 -0
- package/public/{chunk-W3SNJ7TC.js → chunk-6KOTOEN7.js} +1 -1
- package/public/{chunk-WLGXJQPD.js → chunk-6RX377TT.js} +1 -1
- package/public/chunk-6WKO2T4Z.js +1 -0
- package/public/chunk-757LRGXE.js +68 -0
- package/public/{chunk-EAGKQ5OJ.js → chunk-7K67C3PU.js} +1 -1
- package/public/chunk-A2XCOYWA.js +1 -0
- package/public/{chunk-2KEG7SYT.js → chunk-A6QZW5FF.js} +1 -1
- package/public/chunk-ACO7OQZJ.js +1 -0
- package/public/{chunk-LWAL5JUG.js → chunk-AFJZVBKJ.js} +1 -1
- package/public/{chunk-325LPX6W.js → chunk-AFRZCXEB.js} +1 -1
- package/public/{chunk-6KT3BYU6.js → chunk-B65DT3FC.js} +1 -1
- package/public/{chunk-ADW6BF5G.js → chunk-BELFJ2SD.js} +1 -1
- package/public/chunk-DG6RGETW.js +1 -0
- package/public/{chunk-D5RKKI2A.js → chunk-DWAKEAKY.js} +1 -1
- package/public/chunk-EACHMWEA.js +50 -0
- package/public/{chunk-X5AKILHJ.js → chunk-ESOTGGKX.js} +1 -1
- package/public/chunk-F7DXQT5T.js +1 -0
- package/public/chunk-FS5QC22S.js +1 -0
- package/public/{chunk-4QXLJX7D.js → chunk-FSSORWXC.js} +1 -1
- package/public/chunk-GCSYCY2Y.js +1 -0
- package/public/{chunk-7UDDRMZZ.js → chunk-H22EEHWT.js} +1 -1
- package/public/{chunk-UF2IM5BE.js → chunk-HHHD7NH4.js} +1 -1
- package/public/{chunk-2FNQEOXF.js → chunk-HZFYCQBZ.js} +1 -1
- package/public/{chunk-OS2SEJZU.js → chunk-I24Z7SXB.js} +1 -1
- package/public/{chunk-TSFGO3MA.js → chunk-IJNJ3FHH.js} +1 -1
- package/public/{chunk-NKNWXFAK.js → chunk-JXJXX7ID.js} +1 -1
- package/public/chunk-KGXF4YD5.js +1 -0
- package/public/{chunk-YH6MRXGX.js → chunk-KLZ3D7WG.js} +1 -1
- package/public/{chunk-732XLY23.js → chunk-KVEQ2HM3.js} +3 -3
- package/public/{chunk-73TX7DHV.js → chunk-LGJ37P4E.js} +1 -1
- package/public/chunk-LMQCEFY5.js +19 -0
- package/public/{chunk-2CNQY2E7.js → chunk-LYPHF4BI.js} +1 -1
- package/public/{chunk-CYBDQV2B.js → chunk-MNT5ZGV3.js} +1 -1
- package/public/{chunk-SY4VNLXW.js → chunk-NPZDFVKF.js} +1 -1
- package/public/{chunk-EVND2DL5.js → chunk-NQ3EUNKR.js} +1 -1
- package/public/chunk-O63KCVSC.js +1 -0
- package/public/{chunk-2UOYBCTN.js → chunk-P7VMCG7G.js} +1 -1
- package/public/{chunk-OAHDGV32.js → chunk-PE5T5OTD.js} +1 -1
- package/public/{chunk-LZOHFRHN.js → chunk-QIB6F6O5.js} +1 -1
- package/public/{chunk-OK5EJ7US.js → chunk-QWSS6CWX.js} +1 -1
- package/public/{chunk-YNONXMOG.js → chunk-R6KWC4OQ.js} +1 -1
- package/public/chunk-RERUZJD4.js +5 -0
- package/public/{chunk-7IYTG6GP.js → chunk-S6M53YYQ.js} +1 -1
- package/public/{chunk-3IZSIVEA.js → chunk-TAYBEUKS.js} +1 -1
- package/public/{chunk-ASKB5DLO.js → chunk-UOYGACIL.js} +1 -1
- package/public/chunk-UUBGHMJO.js +1 -0
- package/public/chunk-VN4YJ4DW.js +1 -0
- package/public/chunk-VTCNWWXF.js +1 -0
- package/public/chunk-VWYLCYWH.js +1 -0
- package/public/chunk-VYNFC5TY.js +1 -0
- package/public/{chunk-WWSLIQVD.js → chunk-W6VJMRO6.js} +1 -1
- package/public/{chunk-3IJXQMYZ.js → chunk-WFVVY4KI.js} +1 -1
- package/public/chunk-WJVSACF7.js +4 -0
- package/public/{chunk-BLT2YCDN.js → chunk-WUEH3CVV.js} +1 -1
- package/public/chunk-WXDPCDNZ.js +2 -0
- package/public/{chunk-BTBGWLKK.js → chunk-XJ7EHBZC.js} +1 -1
- package/public/{chunk-ZEI3HZ6P.js → chunk-XQCLQKCG.js} +2 -2
- package/public/{chunk-ZJJ3EOBP.js → chunk-XUHWQHKX.js} +1 -1
- package/public/{chunk-VYC5JLE6.js → chunk-YFMEPI62.js} +1 -1
- package/public/{chunk-5T4JHJYL.js → chunk-YHIIRNVF.js} +1 -1
- package/public/{chunk-QK4V5DVW.js → chunk-YT7L7BBI.js} +1 -1
- package/public/index.html +2 -2
- package/public/{main-27RPBS22.js → main-WBUEOYPF.js} +1 -1
- package/public/{styles-CSF457UW.css → styles-WNHDEKE4.css} +1 -1
- package/scripts/extract-plugin-alias.js +8 -4
- package/public/chunk-2LXNPXT5.js +0 -1
- package/public/chunk-3XDYZNNE.js +0 -1
- package/public/chunk-57DUDNZJ.js +0 -1
- package/public/chunk-FM6ZYPKR.js +0 -4
- package/public/chunk-JJ7TVAIH.js +0 -5
- package/public/chunk-L43N56JA.js +0 -1
- package/public/chunk-L5I3DZ23.js +0 -1
- package/public/chunk-LH2LMHIZ.js +0 -1
- package/public/chunk-N2TWGDNX.js +0 -1
- package/public/chunk-O4SS7KVP.js +0 -40
- package/public/chunk-ONTEIYY3.js +0 -19
- package/public/chunk-P7TZIGJS.js +0 -50
- package/public/chunk-Q2IS3QQY.js +0 -1
- package/public/chunk-QQ5VZZQG.js +0 -1
- package/public/chunk-RYTGW6B7.js +0 -1
- package/public/chunk-SOT54YHI.js +0 -1
- package/public/chunk-TGZNYEGN.js +0 -1
- package/public/chunk-U5JF2ZOK.js +0 -1
- package/public/chunk-UNGEHXRN.js +0 -1
- package/public/chunk-VEGMNMLG.js +0 -1
- package/public/chunk-Y5FP6C55.js +0 -2
- package/public/chunk-YYJG2ENF.js +0 -1
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
2
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
3
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -8,16 +7,19 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
7
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
9
|
};
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
10
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
11
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
12
|
+
};
|
|
13
|
+
import { Inject, UseGuards, UsePipes, ValidationPipe } from '@nestjs/common';
|
|
14
|
+
import { SubscribeMessage, WebSocketGateway, WsException } from '@nestjs/websockets';
|
|
15
|
+
import { red } from 'bash-color';
|
|
16
|
+
import { WsAdminGuard } from '../../core/auth/guards/ws-admin-guard.js';
|
|
17
|
+
import { Logger } from '../../core/logger/logger.service.js';
|
|
18
|
+
import { HomebridgeUpdateActionDto, PluginActionDto } from './plugins.dto.js';
|
|
19
|
+
import { PluginsService } from './plugins.service.js';
|
|
20
20
|
let PluginsGateway = class PluginsGateway {
|
|
21
|
+
pluginsService;
|
|
22
|
+
logger;
|
|
21
23
|
constructor(pluginsService, logger) {
|
|
22
24
|
this.pluginsService = pluginsService;
|
|
23
25
|
this.logger = logger;
|
|
@@ -28,8 +30,8 @@ let PluginsGateway = class PluginsGateway {
|
|
|
28
30
|
}
|
|
29
31
|
catch (e) {
|
|
30
32
|
this.logger.error(e);
|
|
31
|
-
client.emit('stdout', `\n\r${
|
|
32
|
-
return new
|
|
33
|
+
client.emit('stdout', `\n\r${red(e.toString())}\n\r`);
|
|
34
|
+
return new WsException(e);
|
|
33
35
|
}
|
|
34
36
|
}
|
|
35
37
|
async uninstallPlugin(client, pluginAction) {
|
|
@@ -38,8 +40,8 @@ let PluginsGateway = class PluginsGateway {
|
|
|
38
40
|
}
|
|
39
41
|
catch (e) {
|
|
40
42
|
this.logger.error(e);
|
|
41
|
-
client.emit('stdout', `\n\r${
|
|
42
|
-
return new
|
|
43
|
+
client.emit('stdout', `\n\r${red(e.toString())}\n\r`);
|
|
44
|
+
return new WsException(e);
|
|
43
45
|
}
|
|
44
46
|
}
|
|
45
47
|
async updatePlugin(client, pluginAction) {
|
|
@@ -48,8 +50,8 @@ let PluginsGateway = class PluginsGateway {
|
|
|
48
50
|
}
|
|
49
51
|
catch (e) {
|
|
50
52
|
this.logger.error(e);
|
|
51
|
-
client.emit('stdout', `\n\r${
|
|
52
|
-
return new
|
|
53
|
+
client.emit('stdout', `\n\r${red(e.toString())}\n\r`);
|
|
54
|
+
return new WsException(e);
|
|
53
55
|
}
|
|
54
56
|
}
|
|
55
57
|
async homebridgeUpdate(client, homebridgeUpdateAction) {
|
|
@@ -58,39 +60,38 @@ let PluginsGateway = class PluginsGateway {
|
|
|
58
60
|
}
|
|
59
61
|
catch (e) {
|
|
60
62
|
this.logger.error(e);
|
|
61
|
-
client.emit('stdout', `\n\r${
|
|
62
|
-
return new
|
|
63
|
+
client.emit('stdout', `\n\r${red(e.toString())}\n\r`);
|
|
64
|
+
return new WsException(e);
|
|
63
65
|
}
|
|
64
66
|
}
|
|
65
67
|
};
|
|
66
|
-
exports.PluginsGateway = PluginsGateway;
|
|
67
68
|
__decorate([
|
|
68
|
-
|
|
69
|
+
SubscribeMessage('install'),
|
|
69
70
|
__metadata("design:type", Function),
|
|
70
|
-
__metadata("design:paramtypes", [Function,
|
|
71
|
+
__metadata("design:paramtypes", [Function, PluginActionDto]),
|
|
71
72
|
__metadata("design:returntype", Promise)
|
|
72
73
|
], PluginsGateway.prototype, "installPlugin", null);
|
|
73
74
|
__decorate([
|
|
74
|
-
|
|
75
|
+
SubscribeMessage('uninstall'),
|
|
75
76
|
__metadata("design:type", Function),
|
|
76
|
-
__metadata("design:paramtypes", [Function,
|
|
77
|
+
__metadata("design:paramtypes", [Function, PluginActionDto]),
|
|
77
78
|
__metadata("design:returntype", Promise)
|
|
78
79
|
], PluginsGateway.prototype, "uninstallPlugin", null);
|
|
79
80
|
__decorate([
|
|
80
|
-
|
|
81
|
+
SubscribeMessage('update'),
|
|
81
82
|
__metadata("design:type", Function),
|
|
82
|
-
__metadata("design:paramtypes", [Function,
|
|
83
|
+
__metadata("design:paramtypes", [Function, PluginActionDto]),
|
|
83
84
|
__metadata("design:returntype", Promise)
|
|
84
85
|
], PluginsGateway.prototype, "updatePlugin", null);
|
|
85
86
|
__decorate([
|
|
86
|
-
|
|
87
|
+
SubscribeMessage('homebridge-update'),
|
|
87
88
|
__metadata("design:type", Function),
|
|
88
|
-
__metadata("design:paramtypes", [Function,
|
|
89
|
+
__metadata("design:paramtypes", [Function, HomebridgeUpdateActionDto]),
|
|
89
90
|
__metadata("design:returntype", Promise)
|
|
90
91
|
], PluginsGateway.prototype, "homebridgeUpdate", null);
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
92
|
+
PluginsGateway = __decorate([
|
|
93
|
+
UseGuards(WsAdminGuard),
|
|
94
|
+
WebSocketGateway({
|
|
94
95
|
namespace: '/plugins',
|
|
95
96
|
allowEIO3: true,
|
|
96
97
|
cors: {
|
|
@@ -98,14 +99,17 @@ exports.PluginsGateway = PluginsGateway = __decorate([
|
|
|
98
99
|
credentials: true,
|
|
99
100
|
},
|
|
100
101
|
}),
|
|
101
|
-
|
|
102
|
+
UsePipes(new ValidationPipe({
|
|
102
103
|
whitelist: true,
|
|
103
104
|
exceptionFactory: (err) => {
|
|
104
105
|
console.error(err);
|
|
105
|
-
return new
|
|
106
|
+
return new WsException(err);
|
|
106
107
|
},
|
|
107
108
|
})),
|
|
108
|
-
|
|
109
|
-
|
|
109
|
+
__param(0, Inject(PluginsService)),
|
|
110
|
+
__param(1, Inject(Logger)),
|
|
111
|
+
__metadata("design:paramtypes", [PluginsService,
|
|
112
|
+
Logger])
|
|
110
113
|
], PluginsGateway);
|
|
114
|
+
export { PluginsGateway };
|
|
111
115
|
//# sourceMappingURL=plugins.gateway.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugins.gateway.js","sourceRoot":"","sources":["../../../src/modules/plugins/plugins.gateway.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,
|
|
1
|
+
{"version":3,"file":"plugins.gateway.js","sourceRoot":"","sources":["../../../src/modules/plugins/plugins.gateway.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,50 +1,51 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
2
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
3
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
4
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
6
|
};
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
7
|
+
import { Agent } from 'node:https';
|
|
8
|
+
import { HttpModule } from '@nestjs/axios';
|
|
9
|
+
import { Module } from '@nestjs/common';
|
|
10
|
+
import { PassportModule } from '@nestjs/passport';
|
|
11
|
+
import { ConfigModule } from '../../core/config/config.module.js';
|
|
12
|
+
import { HomebridgeIpcModule } from '../../core/homebridge-ipc/homebridge-ipc.module.js';
|
|
13
|
+
import { LoggerModule } from '../../core/logger/logger.module.js';
|
|
14
|
+
import { NodePtyModule } from '../../core/node-pty/node-pty.module.js';
|
|
15
|
+
import { ChildBridgesModule } from '../child-bridges/child-bridges.module.js';
|
|
16
|
+
import { PluginsController } from './plugins.controller.js';
|
|
17
|
+
import { PluginsGateway } from './plugins.gateway.js';
|
|
18
|
+
import { PluginsService } from './plugins.service.js';
|
|
20
19
|
let PluginsModule = class PluginsModule {
|
|
21
20
|
};
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
(0, common_1.Module)({
|
|
21
|
+
PluginsModule = __decorate([
|
|
22
|
+
Module({
|
|
25
23
|
imports: [
|
|
26
|
-
|
|
27
|
-
|
|
24
|
+
PassportModule.register({ defaultStrategy: 'jwt' }),
|
|
25
|
+
HttpModule.register({
|
|
28
26
|
headers: {
|
|
29
27
|
'User-Agent': 'homebridge-config-ui-x',
|
|
30
28
|
},
|
|
31
29
|
timeout: 10000,
|
|
32
|
-
httpsAgent: new
|
|
30
|
+
httpsAgent: new Agent({ keepAlive: true }),
|
|
33
31
|
}),
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
32
|
+
NodePtyModule,
|
|
33
|
+
ConfigModule,
|
|
34
|
+
LoggerModule,
|
|
35
|
+
HomebridgeIpcModule,
|
|
36
|
+
ChildBridgesModule,
|
|
37
37
|
],
|
|
38
38
|
providers: [
|
|
39
|
-
|
|
40
|
-
|
|
39
|
+
PluginsService,
|
|
40
|
+
PluginsGateway,
|
|
41
41
|
],
|
|
42
42
|
exports: [
|
|
43
|
-
|
|
43
|
+
PluginsService,
|
|
44
44
|
],
|
|
45
45
|
controllers: [
|
|
46
|
-
|
|
46
|
+
PluginsController,
|
|
47
47
|
],
|
|
48
48
|
})
|
|
49
49
|
], PluginsModule);
|
|
50
|
+
export { PluginsModule };
|
|
50
51
|
//# sourceMappingURL=plugins.module.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugins.module.js","sourceRoot":"","sources":["../../../src/modules/plugins/plugins.module.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"plugins.module.js","sourceRoot":"","sources":["../../../src/modules/plugins/plugins.module.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAA;AAElC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAC1C,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAA;AACvC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAEjD,OAAO,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAA;AACjE,OAAO,EAAE,mBAAmB,EAAE,MAAM,oDAAoD,CAAA;AACxF,OAAO,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAA;AACjE,OAAO,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAA;AACtE,OAAO,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAA;AAC7E,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AAC3D,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AA6B9C,IAAM,aAAa,GAAnB,MAAM,aAAa;CAAG,CAAA;AAAhB,aAAa;IA3BzB,MAAM,CAAC;QACN,OAAO,EAAE;YACP,cAAc,CAAC,QAAQ,CAAC,EAAE,eAAe,EAAE,KAAK,EAAE,CAAC;YACnD,UAAU,CAAC,QAAQ,CAAC;gBAClB,OAAO,EAAE;oBACP,YAAY,EAAE,wBAAwB;iBACvC;gBACD,OAAO,EAAE,KAAK;gBACd,UAAU,EAAE,IAAI,KAAK,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;aAC3C,CAAC;YACF,aAAa;YACb,YAAY;YACZ,YAAY;YACZ,mBAAmB;YACnB,kBAAkB;SACnB;QACD,SAAS,EAAE;YACT,cAAc;YACd,cAAc;SACf;QACD,OAAO,EAAE;YACP,cAAc;SACf;QACD,WAAW,EAAE;YACX,iBAAiB;SAClB;KACF,CAAC;GACW,aAAa,CAAG"}
|
|
@@ -1,18 +1,25 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import
|
|
1
|
+
import type { HomebridgePlugin, HomebridgePluginUiMetadata, HomebridgePluginVersions, PluginAlias } from './plugins.interfaces.js';
|
|
2
|
+
import { EventEmitter } from 'node:events';
|
|
3
3
|
import { HttpService } from '@nestjs/axios';
|
|
4
|
-
import { ConfigService } from '../../core/config/config.service';
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
4
|
+
import { ConfigService } from '../../core/config/config.service.js';
|
|
5
|
+
import { HomebridgeIpcService } from '../../core/homebridge-ipc/homebridge-ipc.service.js';
|
|
6
|
+
import { Logger } from '../../core/logger/logger.service.js';
|
|
7
|
+
import { NodePtyService } from '../../core/node-pty/node-pty.service.js';
|
|
8
|
+
import { ChildBridgesService } from '../child-bridges/child-bridges.service.js';
|
|
9
|
+
import { HomebridgeUpdateActionDto, PluginActionDto } from './plugins.dto.js';
|
|
8
10
|
export declare class PluginsService {
|
|
9
|
-
private httpService;
|
|
10
|
-
private nodePtyService;
|
|
11
|
-
private logger;
|
|
12
|
-
private configService;
|
|
11
|
+
private readonly httpService;
|
|
12
|
+
private readonly nodePtyService;
|
|
13
|
+
private readonly logger;
|
|
14
|
+
private readonly configService;
|
|
15
|
+
private readonly homebridgeIpcService;
|
|
16
|
+
private readonly childBridgesService;
|
|
13
17
|
private static readonly PLUGIN_IDENTIFIER_PATTERN;
|
|
14
|
-
private
|
|
15
|
-
private
|
|
18
|
+
private _npm;
|
|
19
|
+
private _paths;
|
|
20
|
+
private get npm();
|
|
21
|
+
private get paths();
|
|
22
|
+
private static readonly UI_RESTART_DELAY_MS;
|
|
16
23
|
private installedPlugins;
|
|
17
24
|
private npmPackage;
|
|
18
25
|
private pluginListUrl;
|
|
@@ -31,7 +38,7 @@ export declare class PluginsService {
|
|
|
31
38
|
private pluginAliasCache;
|
|
32
39
|
private installedPluginsCache;
|
|
33
40
|
private pluginAliasHints;
|
|
34
|
-
constructor(httpService: HttpService, nodePtyService: NodePtyService, logger: Logger, configService: ConfigService);
|
|
41
|
+
constructor(httpService: HttpService, nodePtyService: NodePtyService, logger: Logger, configService: ConfigService, homebridgeIpcService: HomebridgeIpcService, childBridgesService: ChildBridgesService);
|
|
35
42
|
private fixDisplayName;
|
|
36
43
|
getInstalledPlugins(): Promise<HomebridgePlugin[]>;
|
|
37
44
|
getOutOfDatePlugins(): Promise<HomebridgePlugin[]>;
|
|
@@ -46,6 +53,11 @@ export declare class PluginsService {
|
|
|
46
53
|
managePlugin(action: 'install' | 'uninstall', pluginAction: PluginActionDto, client: EventEmitter): Promise<boolean>;
|
|
47
54
|
getHomebridgePackage(): Promise<HomebridgePlugin>;
|
|
48
55
|
updateHomebridgePackage(homebridgeUpdateAction: HomebridgeUpdateActionDto, client: EventEmitter): Promise<boolean>;
|
|
56
|
+
triggerUpdate(name: string, version?: string): Promise<{
|
|
57
|
+
ok: boolean;
|
|
58
|
+
name: string;
|
|
59
|
+
version: string;
|
|
60
|
+
}>;
|
|
49
61
|
getHomebridgeUiPackage(): Promise<HomebridgePlugin>;
|
|
50
62
|
getNpmPackage(): Promise<HomebridgePlugin>;
|
|
51
63
|
isPluginBundleAvailable(pluginAction: PluginActionDto): Promise<boolean>;
|
|
@@ -64,6 +76,7 @@ export declare class PluginsService {
|
|
|
64
76
|
latestVersion: string;
|
|
65
77
|
}>;
|
|
66
78
|
getPluginAlias(pluginName: string): Promise<PluginAlias>;
|
|
79
|
+
getPluginChildBridgeUsernames(pluginName: string): Promise<string[]>;
|
|
67
80
|
getPluginUiMetadata(pluginName: string): Promise<HomebridgePluginUiMetadata>;
|
|
68
81
|
private getDisabledPlugins;
|
|
69
82
|
private getInstalledScopedModules;
|