homebridge-config-ui-x 5.9.1-beta.1 → 5.9.1-beta.3
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 +7 -3
- 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 +40 -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 +3 -3
- 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.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 +2 -2
- package/dist/core/config/config.service.js +88 -82
- 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 +7 -10
- package/dist/core/scheduler/scheduler.module.js.map +1 -1
- package/dist/core/scheduler/scheduler.service.js +9 -14
- 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 +13 -3
- package/dist/modules/accessories/accessories.controller.js +47 -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 +25 -5
- package/dist/modules/accessories/accessories.service.js +331 -52
- 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 +7 -7
- package/dist/modules/config-editor/config-editor.controller.js +94 -95
- package/dist/modules/config-editor/config-editor.controller.js.map +1 -1
- 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 +6 -6
- package/dist/modules/config-editor/config-editor.service.js +65 -57
- 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 +7 -7
- package/dist/modules/plugins/plugins.controller.js +51 -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 +23 -26
- package/dist/modules/plugins/plugins.module.js.map +1 -1
- package/dist/modules/plugins/plugins.service.d.ts +13 -11
- package/dist/modules/plugins/plugins.service.js +230 -202
- 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 +10 -11
- package/public/{chunk-Q2IS3QQY.js → chunk-2GNLGHLF.js} +1 -1
- package/public/{chunk-73TX7DHV.js → chunk-2HB77JUL.js} +1 -1
- package/public/{chunk-EVND2DL5.js → chunk-2KS3Z2IQ.js} +1 -1
- package/public/{chunk-NKNWXFAK.js → chunk-3MJTL7SQ.js} +1 -1
- package/public/chunk-3P242I3M.js +1 -0
- package/public/{chunk-WWSLIQVD.js → chunk-46GAMPZC.js} +1 -1
- package/public/{chunk-AI6E5JVH.js → chunk-46IO6OQW.js} +1 -1
- package/public/{chunk-EAGKQ5OJ.js → chunk-4A2GGTS4.js} +1 -1
- package/public/{chunk-2LXNPXT5.js → chunk-4YBRFABH.js} +1 -1
- package/public/{chunk-ZEI3HZ6P.js → chunk-5SJKGEVE.js} +1 -1
- package/public/{chunk-CYBDQV2B.js → chunk-5WBNDRQY.js} +1 -1
- package/public/{chunk-W3SNJ7TC.js → chunk-66WFX4Q7.js} +1 -1
- package/public/{chunk-5ETJWAIW.js → chunk-6EINUQIR.js} +1 -1
- package/public/chunk-6UJ7GY5J.js +1 -0
- package/public/{chunk-VYC5JLE6.js → chunk-77FE4N6E.js} +1 -1
- package/public/{chunk-4QXLJX7D.js → chunk-ALZYHHJS.js} +1 -1
- package/public/{chunk-SY4VNLXW.js → chunk-AYCYJZ5K.js} +1 -1
- package/public/chunk-BB37SSD3.js +50 -0
- package/public/chunk-BCEDAADS.js +1 -0
- package/public/{chunk-ONTEIYY3.js → chunk-BDNVTHRF.js} +1 -1
- package/public/{chunk-ADW6BF5G.js → chunk-CCHNU62C.js} +1 -1
- package/public/{chunk-BLT2YCDN.js → chunk-CWBKN6DK.js} +1 -1
- package/public/{chunk-3IJXQMYZ.js → chunk-DE3FEETC.js} +1 -1
- package/public/{chunk-TSFGO3MA.js → chunk-EGCKVLUA.js} +1 -1
- package/public/{chunk-L43N56JA.js → chunk-EGWCQPNN.js} +1 -1
- package/public/{chunk-OK5EJ7US.js → chunk-EKECA5VY.js} +1 -1
- package/public/{chunk-JJ7TVAIH.js → chunk-EQP5UP7Q.js} +4 -4
- package/public/{chunk-3XDYZNNE.js → chunk-FE2HKRWO.js} +1 -1
- package/public/chunk-FQFDF7NL.js +52 -0
- package/public/{chunk-2UOYBCTN.js → chunk-GXXBQUDX.js} +1 -1
- package/public/{chunk-3IZSIVEA.js → chunk-HADRZRRW.js} +1 -1
- package/public/{chunk-LZOHFRHN.js → chunk-HL3SPLOS.js} +1 -1
- package/public/{chunk-732XLY23.js → chunk-HYNETRJU.js} +1 -1
- package/public/{chunk-BTBGWLKK.js → chunk-IUQ7ORI6.js} +1 -1
- package/public/chunk-JAJWHRVE.js +1 -0
- package/public/{chunk-UF2IM5BE.js → chunk-JEJRRXX6.js} +1 -1
- package/public/chunk-KSPJ7LBC.js +1 -0
- package/public/{chunk-OAHDGV32.js → chunk-KWPPPGZJ.js} +1 -1
- package/public/{chunk-TOYVIOBH.js → chunk-M2ITW35G.js} +1 -1
- package/public/{chunk-5T4JHJYL.js → chunk-M4SSS7AE.js} +1 -1
- package/public/{chunk-Y5FP6C55.js → chunk-M5QYCMMI.js} +1 -1
- package/public/{chunk-ASKB5DLO.js → chunk-MR4KWEYX.js} +1 -1
- package/public/{chunk-YH6MRXGX.js → chunk-MYPS3TAE.js} +1 -1
- package/public/{chunk-LH2LMHIZ.js → chunk-OIVQXH76.js} +1 -1
- package/public/{chunk-RMZRXORR.js → chunk-P6WEUVOG.js} +1 -1
- package/public/{chunk-2KEG7SYT.js → chunk-PHWOE6AS.js} +1 -1
- package/public/{chunk-N2TWGDNX.js → chunk-PJNMYOLO.js} +1 -1
- package/public/{chunk-YNONXMOG.js → chunk-Q2JNFJIW.js} +1 -1
- package/public/{chunk-WLGXJQPD.js → chunk-QQ44GPGJ.js} +1 -1
- package/public/{chunk-LWAL5JUG.js → chunk-QUV4XDKI.js} +1 -1
- package/public/{chunk-3E2NZ5JW.js → chunk-QXD3PZRU.js} +1 -1
- package/public/{chunk-7IYTG6GP.js → chunk-REL5VGL4.js} +1 -1
- package/public/{chunk-U5JF2ZOK.js → chunk-SKPO4EWV.js} +1 -1
- package/public/{chunk-QK4V5DVW.js → chunk-TLUCE4J6.js} +1 -1
- package/public/{chunk-325LPX6W.js → chunk-UAQZWGFR.js} +1 -1
- package/public/{chunk-UNGEHXRN.js → chunk-UGGLMYE3.js} +1 -1
- package/public/{chunk-FM6ZYPKR.js → chunk-US2WKTPG.js} +4 -4
- package/public/{chunk-YYJG2ENF.js → chunk-VIZSJCWC.js} +1 -1
- package/public/{chunk-7UDDRMZZ.js → chunk-VOHBPEFW.js} +1 -1
- package/public/{chunk-6KT3BYU6.js → chunk-WTOIGZHP.js} +1 -1
- package/public/{chunk-57DUDNZJ.js → chunk-WZKMLQSX.js} +1 -1
- package/public/{chunk-2FNQEOXF.js → chunk-X5AVMTQO.js} +1 -1
- package/public/{chunk-D5RKKI2A.js → chunk-XFAARHWA.js} +1 -1
- package/public/{chunk-ZJJ3EOBP.js → chunk-YKEI23UT.js} +1 -1
- package/public/chunk-YNS6PU44.js +1 -0
- package/public/{chunk-OS2SEJZU.js → chunk-YSLCQT67.js} +1 -1
- package/public/{chunk-X5AKILHJ.js → chunk-YTHSUAFP.js} +1 -1
- package/public/{chunk-2CNQY2E7.js → chunk-ZCINSOSK.js} +1 -1
- package/public/index.html +2 -2
- package/public/{main-27RPBS22.js → main-RHTU6HFP.js} +1 -1
- package/public/{styles-CSF457UW.css → styles-WNHDEKE4.css} +1 -1
- package/scripts/extract-plugin-alias.js +8 -4
- package/public/chunk-L5I3DZ23.js +0 -1
- package/public/chunk-O4SS7KVP.js +0 -40
- package/public/chunk-P7TZIGJS.js +0 -50
- 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-VEGMNMLG.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);
|
|
@@ -11,15 +10,14 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
10
|
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
11
|
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
12
|
};
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
const admin_guard_1 = require("../../core/auth/guards/admin.guard");
|
|
21
|
-
const users_dto_1 = require("./users.dto");
|
|
13
|
+
import { Body, Controller, Delete, Get, Inject, Param, ParseIntPipe, Patch, Post, Request, UseGuards, } from '@nestjs/common';
|
|
14
|
+
import { AuthGuard } from '@nestjs/passport';
|
|
15
|
+
import { ApiBearerAuth, ApiBody, ApiOperation, ApiParam, ApiResponse, ApiTags, } from '@nestjs/swagger';
|
|
16
|
+
import { AuthService } from '../../core/auth/auth.service.js';
|
|
17
|
+
import { AdminGuard } from '../../core/auth/guards/admin.guard.js';
|
|
18
|
+
import { UserActivateOtpDto, UserDeactivateOtpDto, UserDto, UserUpdatePasswordDto } from './users.dto.js';
|
|
22
19
|
let UsersController = class UsersController {
|
|
20
|
+
authService;
|
|
23
21
|
constructor(authService) {
|
|
24
22
|
this.authService = authService;
|
|
25
23
|
}
|
|
@@ -48,91 +46,92 @@ let UsersController = class UsersController {
|
|
|
48
46
|
return this.authService.deactivateOtp(req.user.username, body.password);
|
|
49
47
|
}
|
|
50
48
|
};
|
|
51
|
-
exports.UsersController = UsersController;
|
|
52
49
|
__decorate([
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
50
|
+
UseGuards(AdminGuard),
|
|
51
|
+
ApiResponse({ type: UserDto, isArray: true, status: 200 }),
|
|
52
|
+
ApiOperation({ summary: 'Get a list of existing users.' }),
|
|
53
|
+
Get(),
|
|
57
54
|
__metadata("design:type", Function),
|
|
58
55
|
__metadata("design:paramtypes", []),
|
|
59
56
|
__metadata("design:returntype", void 0)
|
|
60
57
|
], UsersController.prototype, "getUsers", null);
|
|
61
58
|
__decorate([
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
__param(0,
|
|
59
|
+
UseGuards(AdminGuard),
|
|
60
|
+
ApiResponse({ type: UserDto, status: 201 }),
|
|
61
|
+
ApiOperation({ summary: 'Create a new user.' }),
|
|
62
|
+
Post(),
|
|
63
|
+
__param(0, Body()),
|
|
67
64
|
__metadata("design:type", Function),
|
|
68
|
-
__metadata("design:paramtypes", [
|
|
65
|
+
__metadata("design:paramtypes", [UserDto]),
|
|
69
66
|
__metadata("design:returntype", void 0)
|
|
70
67
|
], UsersController.prototype, "addUser", null);
|
|
71
68
|
__decorate([
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
__param(0,
|
|
78
|
-
__param(1,
|
|
69
|
+
UseGuards(AdminGuard),
|
|
70
|
+
ApiResponse({ type: UserDto, status: 200 }),
|
|
71
|
+
ApiOperation({ summary: 'Update a user.' }),
|
|
72
|
+
ApiParam({ name: 'userId', type: 'number' }),
|
|
73
|
+
Patch('/:userId'),
|
|
74
|
+
__param(0, Param('userId', ParseIntPipe)),
|
|
75
|
+
__param(1, Body()),
|
|
79
76
|
__metadata("design:type", Function),
|
|
80
|
-
__metadata("design:paramtypes", [Number,
|
|
77
|
+
__metadata("design:paramtypes", [Number, UserDto]),
|
|
81
78
|
__metadata("design:returntype", void 0)
|
|
82
79
|
], UsersController.prototype, "updateUser", null);
|
|
83
80
|
__decorate([
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
__param(0,
|
|
81
|
+
UseGuards(AdminGuard),
|
|
82
|
+
ApiOperation({ summary: 'Delete a user.' }),
|
|
83
|
+
ApiParam({ name: 'userId', type: 'number' }),
|
|
84
|
+
Delete('/:userId'),
|
|
85
|
+
__param(0, Param('userId', ParseIntPipe)),
|
|
89
86
|
__metadata("design:type", Function),
|
|
90
87
|
__metadata("design:paramtypes", [Number]),
|
|
91
88
|
__metadata("design:returntype", void 0)
|
|
92
89
|
], UsersController.prototype, "deleteUser", null);
|
|
93
90
|
__decorate([
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
__param(0,
|
|
98
|
-
__param(1,
|
|
91
|
+
ApiOperation({ summary: 'Update the password for the current user.' }),
|
|
92
|
+
ApiBody({ type: UserUpdatePasswordDto }),
|
|
93
|
+
Post('/change-password'),
|
|
94
|
+
__param(0, Request()),
|
|
95
|
+
__param(1, Body()),
|
|
99
96
|
__metadata("design:type", Function),
|
|
100
|
-
__metadata("design:paramtypes", [Object,
|
|
97
|
+
__metadata("design:paramtypes", [Object, UserUpdatePasswordDto]),
|
|
101
98
|
__metadata("design:returntype", void 0)
|
|
102
99
|
], UsersController.prototype, "updateOwnPassword", null);
|
|
103
100
|
__decorate([
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
__param(0,
|
|
101
|
+
ApiOperation({ summary: 'Start 2FA setup for the current user.' }),
|
|
102
|
+
Post('/otp/setup'),
|
|
103
|
+
__param(0, Request()),
|
|
107
104
|
__metadata("design:type", Function),
|
|
108
105
|
__metadata("design:paramtypes", [Object]),
|
|
109
106
|
__metadata("design:returntype", void 0)
|
|
110
107
|
], UsersController.prototype, "setupOtp", null);
|
|
111
108
|
__decorate([
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
__param(0,
|
|
116
|
-
__param(1,
|
|
109
|
+
ApiOperation({ summary: 'Activate 2FA setup for the current user.' }),
|
|
110
|
+
ApiBody({ type: UserActivateOtpDto }),
|
|
111
|
+
Post('/otp/activate'),
|
|
112
|
+
__param(0, Request()),
|
|
113
|
+
__param(1, Body()),
|
|
117
114
|
__metadata("design:type", Function),
|
|
118
|
-
__metadata("design:paramtypes", [Object,
|
|
115
|
+
__metadata("design:paramtypes", [Object, UserActivateOtpDto]),
|
|
119
116
|
__metadata("design:returntype", void 0)
|
|
120
117
|
], UsersController.prototype, "activateOtp", null);
|
|
121
118
|
__decorate([
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
__param(0,
|
|
126
|
-
__param(1,
|
|
119
|
+
ApiOperation({ summary: 'Deactivate 2FA setup for the current user.' }),
|
|
120
|
+
ApiBody({ type: UserDeactivateOtpDto }),
|
|
121
|
+
Post('/otp/deactivate'),
|
|
122
|
+
__param(0, Request()),
|
|
123
|
+
__param(1, Body()),
|
|
127
124
|
__metadata("design:type", Function),
|
|
128
|
-
__metadata("design:paramtypes", [Object,
|
|
125
|
+
__metadata("design:paramtypes", [Object, UserDeactivateOtpDto]),
|
|
129
126
|
__metadata("design:returntype", void 0)
|
|
130
127
|
], UsersController.prototype, "deactivateOtp", null);
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
128
|
+
UsersController = __decorate([
|
|
129
|
+
ApiTags('User Management'),
|
|
130
|
+
ApiBearerAuth(),
|
|
131
|
+
UseGuards(AuthGuard()),
|
|
132
|
+
Controller('users'),
|
|
133
|
+
__param(0, Inject(AuthService)),
|
|
134
|
+
__metadata("design:paramtypes", [AuthService])
|
|
137
135
|
], UsersController);
|
|
136
|
+
export { UsersController };
|
|
138
137
|
//# sourceMappingURL=users.controller.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"users.controller.js","sourceRoot":"","sources":["../../../src/modules/users/users.controller.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"users.controller.js","sourceRoot":"","sources":["../../../src/modules/users/users.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EACL,IAAI,EACJ,UAAU,EACV,MAAM,EACN,GAAG,EACH,MAAM,EACN,KAAK,EACL,YAAY,EACZ,KAAK,EACL,IAAI,EACJ,OAAO,EACP,SAAS,GACV,MAAM,gBAAgB,CAAA;AACvB,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AAC5C,OAAO,EACL,aAAa,EACb,OAAO,EACP,YAAY,EACZ,QAAQ,EACR,WAAW,EACX,OAAO,GACR,MAAM,iBAAiB,CAAA;AAExB,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAA;AAC7D,OAAO,EAAE,UAAU,EAAE,MAAM,uCAAuC,CAAA;AAClE,OAAO,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,OAAO,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAA;AAMlG,IAAM,eAAe,GAArB,MAAM,eAAe;IAEc;IADxC,YACwC,WAAwB;QAAxB,gBAAW,GAAX,WAAW,CAAa;IAC7D,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,CAAY,GAAG,EAAU,IAA2B;QACnE,OAAO,IAA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,CAAC;IACvC,IAAI,CAAC,iBAAiB,CAAC;IACT,WAAA,OAAO,EAAE,CAAA;IAAO,WAAA,IAAI,EAAE,CAAA;;6CAAO,oBAAoB;;oDAE/D;AA/DU,eAAe;IAJ3B,OAAO,CAAC,iBAAiB,CAAC;IAC1B,aAAa,EAAE;IACf,SAAS,CAAC,SAAS,EAAE,CAAC;IACtB,UAAU,CAAC,OAAO,CAAC;IAGf,WAAA,MAAM,CAAC,WAAW,CAAC,CAAA;qCAA+B,WAAW;GAFrD,eAAe,CAgE3B"}
|
|
@@ -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,91 +7,98 @@ 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
|
-
class UserActivateOtpDto {
|
|
10
|
+
import { ApiProperty } from '@nestjs/swagger';
|
|
11
|
+
import { Equals, IsBoolean, IsDefined, IsNotEmpty, IsNumber, IsOptional, IsString, } from 'class-validator';
|
|
12
|
+
export class UserActivateOtpDto {
|
|
13
|
+
code;
|
|
16
14
|
}
|
|
17
|
-
exports.UserActivateOtpDto = UserActivateOtpDto;
|
|
18
15
|
__decorate([
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
(
|
|
16
|
+
IsString(),
|
|
17
|
+
IsNotEmpty(),
|
|
18
|
+
ApiProperty({ type: String }),
|
|
22
19
|
__metadata("design:type", String)
|
|
23
20
|
], UserActivateOtpDto.prototype, "code", void 0);
|
|
24
|
-
class UserDeactivateOtpDto {
|
|
21
|
+
export class UserDeactivateOtpDto {
|
|
22
|
+
password;
|
|
25
23
|
}
|
|
26
|
-
exports.UserDeactivateOtpDto = UserDeactivateOtpDto;
|
|
27
24
|
__decorate([
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
(
|
|
25
|
+
IsString(),
|
|
26
|
+
IsNotEmpty(),
|
|
27
|
+
ApiProperty({ type: String }),
|
|
31
28
|
__metadata("design:type", String)
|
|
32
29
|
], UserDeactivateOtpDto.prototype, "password", void 0);
|
|
33
|
-
class UserDto {
|
|
30
|
+
export class UserDto {
|
|
31
|
+
id;
|
|
32
|
+
name;
|
|
33
|
+
username;
|
|
34
|
+
admin;
|
|
35
|
+
password;
|
|
36
|
+
hashedPassword;
|
|
37
|
+
salt;
|
|
38
|
+
otpSecret;
|
|
39
|
+
otpActive;
|
|
34
40
|
}
|
|
35
|
-
exports.UserDto = UserDto;
|
|
36
41
|
__decorate([
|
|
37
|
-
|
|
38
|
-
|
|
42
|
+
IsNumber(),
|
|
43
|
+
ApiProperty({ readOnly: true, type: Number }),
|
|
39
44
|
__metadata("design:type", Number)
|
|
40
45
|
], UserDto.prototype, "id", void 0);
|
|
41
46
|
__decorate([
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
(
|
|
47
|
+
IsString(),
|
|
48
|
+
IsNotEmpty(),
|
|
49
|
+
IsDefined(),
|
|
50
|
+
ApiProperty({ type: String }),
|
|
46
51
|
__metadata("design:type", String)
|
|
47
52
|
], UserDto.prototype, "name", void 0);
|
|
48
53
|
__decorate([
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
(
|
|
54
|
+
IsString(),
|
|
55
|
+
IsNotEmpty(),
|
|
56
|
+
IsDefined(),
|
|
57
|
+
ApiProperty({ type: String }),
|
|
53
58
|
__metadata("design:type", String)
|
|
54
59
|
], UserDto.prototype, "username", void 0);
|
|
55
60
|
__decorate([
|
|
56
|
-
(
|
|
57
|
-
|
|
61
|
+
ApiProperty({ type: Boolean }),
|
|
62
|
+
IsBoolean(),
|
|
58
63
|
__metadata("design:type", Boolean)
|
|
59
64
|
], UserDto.prototype, "admin", void 0);
|
|
60
65
|
__decorate([
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
66
|
+
IsString(),
|
|
67
|
+
IsOptional(),
|
|
68
|
+
ApiProperty({ writeOnly: true, type: String }),
|
|
64
69
|
__metadata("design:type", String)
|
|
65
70
|
], UserDto.prototype, "password", void 0);
|
|
66
71
|
__decorate([
|
|
67
|
-
|
|
72
|
+
Equals(undefined),
|
|
68
73
|
__metadata("design:type", String)
|
|
69
74
|
], UserDto.prototype, "hashedPassword", void 0);
|
|
70
75
|
__decorate([
|
|
71
|
-
|
|
76
|
+
Equals(undefined),
|
|
72
77
|
__metadata("design:type", String)
|
|
73
78
|
], UserDto.prototype, "salt", void 0);
|
|
74
79
|
__decorate([
|
|
75
|
-
|
|
80
|
+
Equals(undefined),
|
|
76
81
|
__metadata("design:type", String)
|
|
77
82
|
], UserDto.prototype, "otpSecret", void 0);
|
|
78
83
|
__decorate([
|
|
79
|
-
|
|
80
|
-
|
|
84
|
+
Equals(undefined),
|
|
85
|
+
ApiProperty({ readOnly: true, type: Boolean }),
|
|
81
86
|
__metadata("design:type", Boolean)
|
|
82
87
|
], UserDto.prototype, "otpActive", void 0);
|
|
83
|
-
class UserUpdatePasswordDto {
|
|
88
|
+
export class UserUpdatePasswordDto {
|
|
89
|
+
currentPassword;
|
|
90
|
+
newPassword;
|
|
84
91
|
}
|
|
85
|
-
exports.UserUpdatePasswordDto = UserUpdatePasswordDto;
|
|
86
92
|
__decorate([
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
(
|
|
93
|
+
IsString(),
|
|
94
|
+
IsNotEmpty(),
|
|
95
|
+
ApiProperty({ type: String }),
|
|
90
96
|
__metadata("design:type", String)
|
|
91
97
|
], UserUpdatePasswordDto.prototype, "currentPassword", void 0);
|
|
92
98
|
__decorate([
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
(
|
|
99
|
+
IsString(),
|
|
100
|
+
IsNotEmpty(),
|
|
101
|
+
ApiProperty({ type: String }),
|
|
96
102
|
__metadata("design:type", String)
|
|
97
103
|
], UserUpdatePasswordDto.prototype, "newPassword", void 0);
|
|
98
104
|
//# sourceMappingURL=users.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"users.dto.js","sourceRoot":"","sources":["../../../src/modules/users/users.dto.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"users.dto.js","sourceRoot":"","sources":["../../../src/modules/users/users.dto.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAA;AAC7C,OAAO,EACL,MAAM,EACN,SAAS,EACT,SAAS,EACT,UAAU,EACV,QAAQ,EACR,UAAU,EACV,QAAQ,GACT,MAAM,iBAAiB,CAAA;AAExB,MAAM,OAAO,kBAAkB;IAI7B,IAAI,CAAQ;CACb;AADC;IAHC,QAAQ,EAAE;IACV,UAAU,EAAE;IACZ,WAAW,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;gDAClB;AAGd,MAAM,OAAO,oBAAoB;IAI/B,QAAQ,CAAQ;CACjB;AADC;IAHC,QAAQ,EAAE;IACV,UAAU,EAAE;IACZ,WAAW,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;sDACd;AAGlB,MAAM,OAAO,OAAO;IAGlB,EAAE,CAAS;IAMX,IAAI,CAAQ;IAMZ,QAAQ,CAAQ;IAIhB,KAAK,CAAS;IAKd,QAAQ,CAAS;IAGjB,cAAc,CAAS;IAGvB,IAAI,CAAS;IAGb,SAAS,CAAS;IAIlB,SAAS,CAAU;CACpB;AAnCC;IAFC,QAAQ,EAAE;IACV,WAAW,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;mCACnC;AAMX;IAJC,QAAQ,EAAE;IACV,UAAU,EAAE;IACZ,SAAS,EAAE;IACX,WAAW,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;qCAClB;AAMZ;IAJC,QAAQ,EAAE;IACV,UAAU,EAAE;IACZ,SAAS,EAAE;IACX,WAAW,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;yCACd;AAIhB;IAFC,WAAW,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;IAC9B,SAAS,EAAE;;sCACE;AAKd;IAHC,QAAQ,EAAE;IACV,UAAU,EAAE;IACZ,WAAW,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;yCAC9B;AAGjB;IADC,MAAM,CAAC,SAAS,CAAC;;+CACK;AAGvB;IADC,MAAM,CAAC,SAAS,CAAC;;qCACL;AAGb;IADC,MAAM,CAAC,SAAS,CAAC;;0CACA;AAIlB;IAFC,MAAM,CAAC,SAAS,CAAC;IACjB,WAAW,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;;0CAC5B;AAGrB,MAAM,OAAO,qBAAqB;IAIhC,eAAe,CAAQ;IAKvB,WAAW,CAAQ;CACpB;AANC;IAHC,QAAQ,EAAE;IACV,UAAU,EAAE;IACZ,WAAW,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;8DACP;AAKvB;IAHC,QAAQ,EAAE;IACV,UAAU,EAAE;IACZ,WAAW,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;0DACX"}
|
|
@@ -1,30 +1,27 @@
|
|
|
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
|
-
const logger_module_1 = require("../../core/logger/logger.module");
|
|
15
|
-
const users_controller_1 = require("./users.controller");
|
|
7
|
+
import { Module } from '@nestjs/common';
|
|
8
|
+
import { PassportModule } from '@nestjs/passport';
|
|
9
|
+
import { AuthModule } from '../../core/auth/auth.module.js';
|
|
10
|
+
import { ConfigModule } from '../../core/config/config.module.js';
|
|
11
|
+
import { LoggerModule } from '../../core/logger/logger.module.js';
|
|
12
|
+
import { UsersController } from './users.controller.js';
|
|
16
13
|
let UsersModule = class UsersModule {
|
|
17
14
|
};
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
(0, common_1.Module)({
|
|
15
|
+
UsersModule = __decorate([
|
|
16
|
+
Module({
|
|
21
17
|
imports: [
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
18
|
+
PassportModule.register({ defaultStrategy: 'jwt' }),
|
|
19
|
+
ConfigModule,
|
|
20
|
+
LoggerModule,
|
|
21
|
+
AuthModule,
|
|
26
22
|
],
|
|
27
|
-
controllers: [
|
|
23
|
+
controllers: [UsersController],
|
|
28
24
|
})
|
|
29
25
|
], UsersModule);
|
|
26
|
+
export { UsersModule };
|
|
30
27
|
//# sourceMappingURL=users.module.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"users.module.js","sourceRoot":"","sources":["../../../src/modules/users/users.module.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"users.module.js","sourceRoot":"","sources":["../../../src/modules/users/users.module.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAA;AACvC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAEjD,OAAO,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAA;AAC3D,OAAO,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAA;AACjE,OAAO,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAA;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAWhD,IAAM,WAAW,GAAjB,MAAM,WAAW;CAAG,CAAA;AAAd,WAAW;IATvB,MAAM,CAAC;QACN,OAAO,EAAE;YACP,cAAc,CAAC,QAAQ,CAAC,EAAE,eAAe,EAAE,KAAK,EAAE,CAAC;YACnD,YAAY;YACZ,YAAY;YACZ,UAAU;SACX;QACD,WAAW,EAAE,CAAC,eAAe,CAAC;KAC/B,CAAC;GACW,WAAW,CAAG"}
|
package/dist/self-check.js
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
};
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const logger = new
|
|
1
|
+
import { execSync } from 'node:child_process';
|
|
2
|
+
import { createRequire } from 'node:module';
|
|
3
|
+
import { platform } from 'node:os';
|
|
4
|
+
import { dirname } from 'node:path';
|
|
5
|
+
import process from 'node:process';
|
|
6
|
+
import { fileURLToPath } from 'node:url';
|
|
7
|
+
import { Logger } from './core/logger/logger.service.js';
|
|
8
|
+
const require = createRequire(import.meta.url);
|
|
9
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
10
|
+
const __dirname = dirname(__filename);
|
|
11
|
+
const logger = new Logger();
|
|
12
12
|
function tryRebuildNodePtyModule() {
|
|
13
|
-
const modulePath =
|
|
13
|
+
const modulePath = dirname(dirname(require.resolve('@homebridge/node-pty-prebuilt-multiarch')));
|
|
14
14
|
logger.warn('[node-pty] Trying to rebuild automatically...');
|
|
15
15
|
logger.warn(`[node-pty] Path: ${modulePath}.`);
|
|
16
16
|
try {
|
|
17
|
-
|
|
17
|
+
execSync('npm run install --unsafe-perm', {
|
|
18
18
|
cwd: modulePath,
|
|
19
19
|
stdio: 'ignore',
|
|
20
20
|
});
|
|
21
21
|
}
|
|
22
22
|
catch (e) {
|
|
23
|
-
if (
|
|
24
|
-
|
|
23
|
+
if (platform() !== 'win32') {
|
|
24
|
+
execSync('sudo -E -n run install --unsafe-perm', {
|
|
25
25
|
cwd: modulePath,
|
|
26
26
|
stdio: 'ignore',
|
|
27
27
|
});
|
|
@@ -37,7 +37,7 @@ function main() {
|
|
|
37
37
|
}
|
|
38
38
|
catch (e) {
|
|
39
39
|
logger.error(e);
|
|
40
|
-
logger.error(`[node-pty] Node.js ${
|
|
40
|
+
logger.error(`[node-pty] Node.js ${process.version}.`);
|
|
41
41
|
logger.error('[node-pty] Failed to load node-pty module.');
|
|
42
42
|
logger.error('[node-pty] This could be because the installation of this plugin did not complete successfully '
|
|
43
43
|
+ 'or you may have recently upgraded Node.js to a new major version.');
|
|
@@ -49,9 +49,9 @@ function main() {
|
|
|
49
49
|
catch (rebuildError) {
|
|
50
50
|
logger.error('[node-pty] Failed to rebuild npm modules automatically. Manual operation is now required.');
|
|
51
51
|
}
|
|
52
|
-
const modulePath =
|
|
53
|
-
if ((
|
|
54
|
-
if (
|
|
52
|
+
const modulePath = dirname(__dirname);
|
|
53
|
+
if ((process.env.UIX_SERVICE_MODE === '1')) {
|
|
54
|
+
if (platform() === 'win32') {
|
|
55
55
|
logger.warn('[node-pty] From the Node.js command prompt (run as Administrator) run this command to rebuild npm modules:\n');
|
|
56
56
|
logger.warn('hb-service rebuild\n');
|
|
57
57
|
}
|
|
@@ -62,12 +62,12 @@ function main() {
|
|
|
62
62
|
throw new Error('Node.js global modules rebuild required. See log errors above.');
|
|
63
63
|
}
|
|
64
64
|
else {
|
|
65
|
-
if (
|
|
65
|
+
if (platform() === 'win32') {
|
|
66
66
|
logger.warn('[node-pty] From the Node.js command prompt (run as Administrator) run these commands (exact commands may vary):\n');
|
|
67
67
|
logger.warn('npm uninstall -g homebridge-config-ui-x');
|
|
68
68
|
logger.warn('npm install -g homebridge-config-ui-x\n');
|
|
69
69
|
}
|
|
70
|
-
else if (
|
|
70
|
+
else if (platform() === 'darwin') {
|
|
71
71
|
logger.warn('[node-pty] From the terminal run these commands (exact commands may vary):\n');
|
|
72
72
|
logger.warn(`cd ${modulePath}`);
|
|
73
73
|
logger.warn('sudo npm rebuild --unsafe-perm\n');
|
|
@@ -78,23 +78,23 @@ function main() {
|
|
|
78
78
|
logger.warn('sudo npm rebuild --unsafe-perm\n');
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
|
-
|
|
81
|
+
process.exit(1);
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
84
|
main();
|
|
85
|
-
|
|
85
|
+
process.on('unhandledRejection', (err) => {
|
|
86
86
|
logger.error(err.toString());
|
|
87
87
|
if (err.code === 'EADDRINUSE') {
|
|
88
88
|
logger.error(`Another process or service on this host is using port ${err.port}.`);
|
|
89
89
|
logger.error('Please stop the other service or change the port you have assigned to Homebridge UI.');
|
|
90
90
|
logger.error('Ending process now.');
|
|
91
|
-
setTimeout(() =>
|
|
91
|
+
setTimeout(() => process.exit(0));
|
|
92
92
|
}
|
|
93
93
|
else if (err.code === 'EACCES') {
|
|
94
94
|
logger.error(`The process owner does not have permission to run services on port ${err.port}.`);
|
|
95
95
|
logger.error('Please change the Homebridge UI port to something above 1024.');
|
|
96
96
|
logger.error('Ending process now.');
|
|
97
|
-
setTimeout(() =>
|
|
97
|
+
setTimeout(() => process.exit(0));
|
|
98
98
|
}
|
|
99
99
|
else {
|
|
100
100
|
logger.error('Caught unhandled rejection error - details below:');
|
package/dist/self-check.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"self-check.js","sourceRoot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AQ,EAAE,CAAC;QACjC,MAAM,CAAC,KAAK,CAAC,sEAAsE,GAAG,CAAC,IAAI,GAAG,CAAC,CAAA;QAC/F,MAAM,CAAC,KAAK,CAAC,+DAA+D,CAAC,CAAA;QAC7E,MAAM,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAAA;QACnC,UAAU,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAA;IACnC,CAAC;SAAM,CAAC;QACN,MAAM,CAAC,KAAK,CAAC,mDAAmD,CAAC,CAAA;QACjE,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAA;IACpB,CAAC;AACH,CAAC,CAAC,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "homebridge-config-ui-x",
|
|
3
3
|
"displayName": "Homebridge UI",
|
|
4
|
-
"
|
|
4
|
+
"type": "module",
|
|
5
|
+
"version": "5.9.1-beta.3",
|
|
5
6
|
"description": "A web based management, configuration and control platform for Homebridge.",
|
|
6
7
|
"author": "oznu <dev@oz.nu>",
|
|
7
8
|
"license": "MIT",
|
|
@@ -65,11 +66,11 @@
|
|
|
65
66
|
"check": "npm run check:server && npm run check:ui",
|
|
66
67
|
"check:server": "npm install && npm outdated",
|
|
67
68
|
"check:ui": "npm install --prefix ui && npm outdated --prefix ui",
|
|
68
|
-
"lang-sync": "
|
|
69
|
+
"lang-sync": "tsx scripts/lang-sync.ts",
|
|
69
70
|
"lint": "eslint . --max-warnings=0",
|
|
70
71
|
"lint:fix": "npm run lint -- --fix",
|
|
71
72
|
"prepublishOnly": "npm i --package-lock-only && npm run lint && npm run build",
|
|
72
|
-
"start": "
|
|
73
|
+
"start": "tsx src/main.ts",
|
|
73
74
|
"test": "vitest run",
|
|
74
75
|
"test-coverage": "npm run test -- --coverage",
|
|
75
76
|
"upgrade-install": "./scripts/upgrade-install.sh",
|
|
@@ -92,7 +93,7 @@
|
|
|
92
93
|
"@nestjs/platform-socket.io": "11.1.8",
|
|
93
94
|
"@nestjs/swagger": "11.2.1",
|
|
94
95
|
"@nestjs/websockets": "11.1.8",
|
|
95
|
-
"axios": "1.13.
|
|
96
|
+
"axios": "1.13.2",
|
|
96
97
|
"bash-color": "0.0.4",
|
|
97
98
|
"bonjour-service": "1.3.0",
|
|
98
99
|
"class-transformer": "0.5.1",
|
|
@@ -126,7 +127,7 @@
|
|
|
126
127
|
"@prettier/plugin-xml": "^3.4.2",
|
|
127
128
|
"@types/fs-extra": "^11.0.4",
|
|
128
129
|
"@types/lodash": "^4.17.20",
|
|
129
|
-
"@types/node": "^24.
|
|
130
|
+
"@types/node": "^24.10.0",
|
|
130
131
|
"@types/node-forge": "^1.3.11",
|
|
131
132
|
"@types/node-schedule": "^2.1.8",
|
|
132
133
|
"@types/passport-jwt": "^4.0.1",
|
|
@@ -134,22 +135,20 @@
|
|
|
134
135
|
"@types/tail": "^2.2.3",
|
|
135
136
|
"@types/tcp-port-used": "^1.0.4",
|
|
136
137
|
"@types/unzipper": "^0.10.11",
|
|
137
|
-
"@vitest/coverage-v8": "^4.0.
|
|
138
|
+
"@vitest/coverage-v8": "^4.0.7",
|
|
138
139
|
"concurrently": "^9.2.1",
|
|
139
140
|
"eslint-plugin-format": "^1.0.2",
|
|
140
141
|
"form-data": "^4.0.4",
|
|
141
142
|
"nodemon": "^3.1.10",
|
|
142
143
|
"rimraf": "^6.1.0",
|
|
143
|
-
"
|
|
144
|
-
"ts-node": "^10.9.2",
|
|
145
|
-
"tsconfig-paths": "^4.2.0",
|
|
144
|
+
"tsx": "^4.20.6",
|
|
146
145
|
"typescript": "^5.9.3",
|
|
147
146
|
"unplugin-swc": "^1.5.8",
|
|
148
|
-
"vitest": "^4.0.
|
|
147
|
+
"vitest": "^4.0.7"
|
|
149
148
|
},
|
|
150
149
|
"overrides": {
|
|
151
150
|
"@homebridge/hap-client": {
|
|
152
|
-
"axios": "1.13.
|
|
151
|
+
"axios": "1.13.2"
|
|
153
152
|
}
|
|
154
153
|
},
|
|
155
154
|
"maintainers": [
|