homebridge-config-ui-x 5.6.1-beta.12 → 5.6.1-beta.14
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 +1 -10
- package/dist/core/auth/auth.controller.d.ts +0 -5
- package/dist/core/auth/auth.controller.js +0 -13
- package/dist/core/auth/auth.controller.js.map +1 -1
- package/dist/core/auth/auth.service.d.ts +0 -1
- package/dist/core/auth/auth.service.js +0 -24
- package/dist/core/auth/auth.service.js.map +1 -1
- package/dist/core/config/config.service.d.ts +74 -8
- package/dist/core/config/config.service.js +0 -6
- package/dist/core/config/config.service.js.map +1 -1
- package/dist/core/config/config.startup.d.ts +12 -2
- package/dist/core/config/config.startup.js +0 -12
- package/dist/core/config/config.startup.js.map +1 -1
- package/dist/core/spa/spa.filter.d.ts +0 -3
- package/dist/core/spa/spa.filter.js +2 -22
- package/dist/core/spa/spa.filter.js.map +1 -1
- package/dist/globalDefaults.js +0 -3
- package/dist/globalDefaults.js.map +1 -1
- package/dist/main.js +3 -62
- package/dist/main.js.map +1 -1
- package/dist/modules/backup/backup.service.js +1 -4
- package/dist/modules/backup/backup.service.js.map +1 -1
- package/dist/modules/config-editor/config-editor.controller.d.ts +3 -3
- package/dist/modules/config-editor/config-editor.service.d.ts +2 -3
- package/dist/modules/config-editor/config-editor.service.js +13 -36
- package/dist/modules/config-editor/config-editor.service.js.map +1 -1
- package/dist/modules/custom-plugins/plugins-settings-ui/plugins-settings-ui.service.d.ts +1 -1
- package/dist/modules/custom-plugins/plugins-settings-ui/plugins-settings-ui.service.js +1 -2
- package/dist/modules/custom-plugins/plugins-settings-ui/plugins-settings-ui.service.js.map +1 -1
- package/dist/modules/log/log.gateway.d.ts +1 -1
- package/dist/modules/log/log.service.d.ts +4 -1
- package/dist/modules/log/log.service.js.map +1 -1
- package/dist/modules/platform-tools/terminal/terminal.gateway.d.ts +1 -1
- package/dist/modules/platform-tools/terminal/terminal.service.d.ts +8 -1
- package/dist/modules/platform-tools/terminal/terminal.service.js.map +1 -1
- package/dist/modules/plugins/plugins.controller.d.ts +5 -5
- package/dist/modules/plugins/plugins.service.d.ts +1 -1
- package/dist/modules/plugins/plugins.service.js +0 -6
- package/dist/modules/plugins/plugins.service.js.map +1 -1
- package/dist/modules/server/server.controller.d.ts +0 -3
- package/dist/modules/server/server.controller.js +0 -13
- package/dist/modules/server/server.controller.js.map +1 -1
- package/dist/modules/server/server.service.js +3 -5
- package/dist/modules/server/server.service.js.map +1 -1
- package/dist/modules/status/status.controller.d.ts +2 -2
- package/dist/modules/status/status.gateway.d.ts +5 -5
- package/dist/modules/status/status.service.d.ts +29 -2
- package/dist/modules/status/status.service.js +9 -4
- package/dist/modules/status/status.service.js.map +1 -1
- package/package.json +2 -3
- package/public/3rdpartylicenses.txt +13 -13
- package/public/{chunk-Y276Q4AC.js → chunk-2SMLTKN6.js} +1 -1
- package/public/chunk-2WHHAFYA.js +1 -0
- package/public/chunk-2YLQS2DL.js +1 -0
- package/public/chunk-34M674SY.js +1 -0
- package/public/chunk-3D7RRLPR.js +1 -0
- package/public/chunk-4MPGPOPP.js +1 -0
- package/public/chunk-4WBD4A62.js +1 -0
- package/public/chunk-5556TO6L.js +1 -0
- package/public/chunk-5T6DD7IV.js +40 -0
- package/public/chunk-5YG3JMTO.js +1 -0
- package/public/chunk-5YU4RFMD.js +1 -0
- package/public/chunk-6ILU2CLF.js +1 -0
- package/public/chunk-6QP27UHV.js +1 -0
- package/public/chunk-7URPBWRU.js +1 -0
- package/public/{chunk-7CNAISDX.js → chunk-AD7SNE53.js} +1 -1
- package/public/{chunk-UVHFLMOY.js → chunk-B2X3Q7TH.js} +1 -1
- package/public/chunk-BR6USPEJ.js +1 -0
- package/public/chunk-BWK3GOHM.js +19 -0
- package/public/chunk-BZMR4XHP.js +1 -0
- package/public/{chunk-NBY4ULRZ.js → chunk-D5RIMAWO.js} +1 -1
- package/public/chunk-DIPNFK3U.js +1 -0
- package/public/chunk-F3HOYAFH.js +1 -0
- package/public/{chunk-MCPFJTIS.js → chunk-GGZZFW2G.js} +1 -1
- package/public/chunk-GKCOPKC4.js +1 -0
- package/public/chunk-H4EYWGGC.js +1 -0
- package/public/{chunk-SCOJK4RP.js → chunk-HDIODAFZ.js} +1 -1
- package/public/chunk-HXTQJGWK.js +1 -0
- package/public/{chunk-BU6Y5VTM.js → chunk-J6L2XE5U.js} +1 -1
- package/public/{chunk-MJIH4FQP.js → chunk-JKQEXZUI.js} +1 -1
- package/public/chunk-M2HWRB6L.js +1 -0
- package/public/{chunk-WO2FS67T.js → chunk-MSSNDMBK.js} +1 -1
- package/public/{chunk-2H5LPMAQ.js → chunk-MUHTDQ4J.js} +1 -1
- package/public/{chunk-NR4KD4TZ.js → chunk-MXQEKDB7.js} +1 -1
- package/public/chunk-MXTAHASV.js +1 -0
- package/public/chunk-N3NPEHCD.js +1 -0
- package/public/chunk-NNHGWF7K.js +1 -0
- package/public/chunk-NYJ5JVUS.js +1 -0
- package/public/chunk-OAAZLUNN.js +1 -0
- package/public/chunk-OMPHX32Y.js +2 -0
- package/public/{chunk-QLP4ZA63.js → chunk-OPUBCSUA.js} +1 -1
- package/public/{chunk-45YVT27L.js → chunk-PB3L5HHQ.js} +1 -1
- package/public/chunk-PDBBXRN3.js +1 -0
- package/public/chunk-Q2DNHZT4.js +1 -0
- package/public/{chunk-3ZU7ZAMP.js → chunk-Q5UJ7RBG.js} +1 -1
- package/public/{chunk-WIZAF6OS.js → chunk-Q6UH4DEV.js} +1 -1
- package/public/{chunk-ZUJUIJ4M.js → chunk-QEG3OQ7B.js} +1 -1
- package/public/{chunk-CEMUTHS3.js → chunk-QJ445K5M.js} +1 -1
- package/public/{chunk-MO7W4MOJ.js → chunk-QVKCJ4SR.js} +1 -1
- package/public/chunk-QYXVENKH.js +1 -0
- package/public/{chunk-ST2OG2C6.js → chunk-RJUV23IZ.js} +1 -1
- package/public/chunk-SH7JZ7PA.js +49 -0
- package/public/{chunk-GEHW3BWU.js → chunk-SP5IPQP6.js} +1 -1
- package/public/{chunk-K6GG4LNE.js → chunk-T5B6OVIH.js} +2 -2
- package/public/{chunk-RUQ2H5EQ.js → chunk-TDH7HYAU.js} +1 -1
- package/public/chunk-TFFUSSEA.js +2 -0
- package/public/{chunk-2XYBM4MH.js → chunk-TLGNUWU6.js} +1 -1
- package/public/chunk-TTLX53WB.js +1 -0
- package/public/chunk-UGI34NWT.js +1 -0
- package/public/chunk-UMW5IGSH.js +1 -0
- package/public/{chunk-XOZXV7OE.js → chunk-UUXVPC6B.js} +1 -1
- package/public/{chunk-ZGICJQ2X.js → chunk-UV4UNUVO.js} +1 -1
- package/public/chunk-V2MV6MJL.js +4 -0
- package/public/chunk-VYTDBITY.js +1 -0
- package/public/{chunk-N4N4XXRV.js → chunk-WDWDHEI2.js} +1 -1
- package/public/{chunk-R2QGD4ZP.js → chunk-WIJDDKLW.js} +1 -1
- package/public/chunk-WTWQSU5J.js +1 -0
- package/public/chunk-X5GSN6SK.js +1 -0
- package/public/chunk-Y7KVPAMR.js +1 -0
- package/public/chunk-Z3IOKVH5.js +1 -0
- package/public/index.html +2 -2
- package/public/main-D5FOFUEC.js +1 -0
- package/public/{styles-IKV7T7ID.css → styles-KAER7B5R.css} +1 -1
- package/dist/core/config/config.interfaces.d.ts +0 -120
- package/dist/core/config/config.interfaces.js +0 -3
- package/dist/core/config/config.interfaces.js.map +0 -1
- package/dist/core/spa/spa-html.service.d.ts +0 -5
- package/dist/core/spa/spa-html.service.js +0 -38
- package/dist/core/spa/spa-html.service.js.map +0 -1
- package/dist/modules/log/log.interfaces.d.ts +0 -4
- package/dist/modules/log/log.interfaces.js +0 -3
- package/dist/modules/log/log.interfaces.js.map +0 -1
- package/dist/modules/platform-tools/terminal/terminal.interfaces.d.ts +0 -8
- package/dist/modules/platform-tools/terminal/terminal.interfaces.js +0 -3
- package/dist/modules/platform-tools/terminal/terminal.interfaces.js.map +0 -1
- package/dist/modules/plugins/plugins.interfaces.d.ts +0 -211
- package/dist/modules/plugins/plugins.interfaces.js +0 -3
- package/dist/modules/plugins/plugins.interfaces.js.map +0 -1
- package/dist/modules/status/status.interfaces.d.ts +0 -27
- package/dist/modules/status/status.interfaces.js +0 -10
- package/dist/modules/status/status.interfaces.js.map +0 -1
- package/public/chunk-3E6HFTEE.js +0 -1
- package/public/chunk-3VNRVJER.js +0 -1
- package/public/chunk-44BZ7YDX.js +0 -1
- package/public/chunk-4QGDXKG4.js +0 -1
- package/public/chunk-5SLRMSXI.js +0 -1
- package/public/chunk-6D2TL7XK.js +0 -1
- package/public/chunk-6LB7WDKS.js +0 -1
- package/public/chunk-A6NPKCAZ.js +0 -1
- package/public/chunk-CFA4X2RT.js +0 -1
- package/public/chunk-CTUR7IPX.js +0 -2
- package/public/chunk-CXCOAQYV.js +0 -1
- package/public/chunk-DENJUFJU.js +0 -1
- package/public/chunk-DFSTMWQK.js +0 -1
- package/public/chunk-EGTGLYKN.js +0 -1
- package/public/chunk-EPPCEON6.js +0 -1
- package/public/chunk-HG6ZV37T.js +0 -1
- package/public/chunk-HPMUQAQK.js +0 -1
- package/public/chunk-J53UFDU4.js +0 -1
- package/public/chunk-J5EXF527.js +0 -1
- package/public/chunk-KPLHMJRD.js +0 -49
- package/public/chunk-KQOVIFFF.js +0 -1
- package/public/chunk-L25JLTTA.js +0 -1
- package/public/chunk-L2JVSSUJ.js +0 -1
- package/public/chunk-LEFHO2HZ.js +0 -1
- package/public/chunk-LMB6N24O.js +0 -1
- package/public/chunk-LVDFEJBW.js +0 -1
- package/public/chunk-NCXJYVJD.js +0 -1
- package/public/chunk-ODLZQF34.js +0 -1
- package/public/chunk-OTONUZSU.js +0 -40
- package/public/chunk-OTUS5Q47.js +0 -1
- package/public/chunk-RJGRIWSM.js +0 -1
- package/public/chunk-SDEIPOS7.js +0 -1
- package/public/chunk-SZ4D5LHY.js +0 -1
- package/public/chunk-T57F6WC5.js +0 -1
- package/public/chunk-TUN7H57E.js +0 -1
- package/public/chunk-VNLC4C5I.js +0 -1
- package/public/chunk-WVNEV3VQ.js +0 -1
- package/public/chunk-WWMJUVLA.js +0 -5
- package/public/chunk-XYUHMXRD.js +0 -1
- package/public/chunk-YGV2JGHO.js +0 -19
- package/public/chunk-YHUHGXBO.js +0 -1
- package/public/main-QDBLWEZK.js +0 -1
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
import type { Buffer } from 'node:buffer';
|
|
2
|
-
export interface StartupConfig {
|
|
3
|
-
host?: '::' | '0.0.0.0' | string;
|
|
4
|
-
httpsOptions?: {
|
|
5
|
-
key?: Buffer;
|
|
6
|
-
cert?: Buffer;
|
|
7
|
-
pfx?: Buffer;
|
|
8
|
-
passphrase?: string;
|
|
9
|
-
};
|
|
10
|
-
cspWsOverride?: string;
|
|
11
|
-
debug?: boolean;
|
|
12
|
-
webroot?: string;
|
|
13
|
-
}
|
|
14
|
-
interface PluginChildBridge {
|
|
15
|
-
username: string;
|
|
16
|
-
port?: number;
|
|
17
|
-
pin?: string;
|
|
18
|
-
name?: string;
|
|
19
|
-
manufacturer?: string;
|
|
20
|
-
model?: string;
|
|
21
|
-
firmwareRevision?: string;
|
|
22
|
-
env?: {
|
|
23
|
-
DEBUG?: string;
|
|
24
|
-
NODE_OPTIONS?: string;
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
export interface PlatformConfig {
|
|
28
|
-
platform: string;
|
|
29
|
-
name?: string;
|
|
30
|
-
_bridge?: PluginChildBridge;
|
|
31
|
-
[key: string]: any;
|
|
32
|
-
}
|
|
33
|
-
export interface AccessoryConfig {
|
|
34
|
-
accessory: string;
|
|
35
|
-
name: string;
|
|
36
|
-
_bridge?: PluginChildBridge;
|
|
37
|
-
[key: string]: any;
|
|
38
|
-
}
|
|
39
|
-
export interface HomebridgeConfig {
|
|
40
|
-
bridge: {
|
|
41
|
-
username: string;
|
|
42
|
-
pin: string;
|
|
43
|
-
name: string;
|
|
44
|
-
port: number;
|
|
45
|
-
advertiser?: 'avahi' | 'resolved' | 'ciao' | 'bonjour-hap';
|
|
46
|
-
bind?: string | string[];
|
|
47
|
-
manufacturer?: string;
|
|
48
|
-
model?: string;
|
|
49
|
-
firmwareRevision?: string;
|
|
50
|
-
};
|
|
51
|
-
mdns?: {
|
|
52
|
-
interface?: string | string[];
|
|
53
|
-
legacyAdvertiser?: boolean;
|
|
54
|
-
};
|
|
55
|
-
ports?: {
|
|
56
|
-
start?: number;
|
|
57
|
-
end?: number;
|
|
58
|
-
};
|
|
59
|
-
platforms?: PlatformConfig[];
|
|
60
|
-
accessories?: AccessoryConfig[];
|
|
61
|
-
plugins?: string[];
|
|
62
|
-
disabledPlugins?: string[];
|
|
63
|
-
}
|
|
64
|
-
export interface HomebridgeUiConfig {
|
|
65
|
-
name: string;
|
|
66
|
-
port: number;
|
|
67
|
-
host?: '::' | '0.0.0.0' | string;
|
|
68
|
-
webroot?: string;
|
|
69
|
-
proxyHost?: string;
|
|
70
|
-
auth: 'form' | 'none';
|
|
71
|
-
theme: string;
|
|
72
|
-
lightingMode: 'auto' | 'light' | 'dark';
|
|
73
|
-
menuMode?: 'default' | 'freeze';
|
|
74
|
-
sudo?: boolean;
|
|
75
|
-
restart?: string;
|
|
76
|
-
lang?: string;
|
|
77
|
-
log?: {
|
|
78
|
-
method?: 'file' | 'custom' | 'systemd' | 'native';
|
|
79
|
-
command?: string;
|
|
80
|
-
path?: string;
|
|
81
|
-
service?: string;
|
|
82
|
-
maxSize?: number;
|
|
83
|
-
truncateSize?: number;
|
|
84
|
-
};
|
|
85
|
-
ssl?: {
|
|
86
|
-
key?: string;
|
|
87
|
-
cert?: string;
|
|
88
|
-
pfx?: string;
|
|
89
|
-
passphrase?: string;
|
|
90
|
-
};
|
|
91
|
-
accessoryControl?: {
|
|
92
|
-
debug?: boolean;
|
|
93
|
-
instanceBlacklist?: string[];
|
|
94
|
-
};
|
|
95
|
-
plugins?: {
|
|
96
|
-
hideUpdatesFor?: string[];
|
|
97
|
-
alwaysShowBetas?: boolean;
|
|
98
|
-
};
|
|
99
|
-
temp?: string;
|
|
100
|
-
tempUnits?: string;
|
|
101
|
-
wallpaper?: string;
|
|
102
|
-
linux?: {
|
|
103
|
-
shutdown?: string;
|
|
104
|
-
restart?: string;
|
|
105
|
-
};
|
|
106
|
-
debug?: boolean;
|
|
107
|
-
sessionTimeout?: number;
|
|
108
|
-
sessionTimeoutInactivityBased?: boolean;
|
|
109
|
-
homebridgePackagePath?: string;
|
|
110
|
-
scheduledBackupPath?: string;
|
|
111
|
-
scheduledBackupDisable?: boolean;
|
|
112
|
-
disableServerMetricsMonitoring?: boolean;
|
|
113
|
-
enableMdnsAdvertise?: boolean;
|
|
114
|
-
terminal?: {
|
|
115
|
-
persistence?: boolean;
|
|
116
|
-
hideWarning?: boolean;
|
|
117
|
-
bufferSize?: number;
|
|
118
|
-
};
|
|
119
|
-
}
|
|
120
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"config.interfaces.js","sourceRoot":"","sources":["../../../src/core/config/config.interfaces.ts"],"names":[],"mappings":""}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.SpaHtmlService = void 0;
|
|
7
|
-
const node_path_1 = require("node:path");
|
|
8
|
-
const node_process_1 = __importDefault(require("node:process"));
|
|
9
|
-
const fs_extra_1 = require("fs-extra");
|
|
10
|
-
class SpaHtmlService {
|
|
11
|
-
static async updateIndexHtml(webroot) {
|
|
12
|
-
const indexPath = (0, node_path_1.resolve)(node_process_1.default.env.UIX_BASE_PATH, 'public/index.html');
|
|
13
|
-
if (!(await (0, fs_extra_1.exists)(indexPath))) {
|
|
14
|
-
return;
|
|
15
|
-
}
|
|
16
|
-
const originalHtml = await (0, fs_extra_1.readFile)(indexPath, 'utf-8');
|
|
17
|
-
const normalizedWebroot = this.normalizeWebroot(webroot);
|
|
18
|
-
const modifiedHtml = this.transformHtmlForWebroot(originalHtml, normalizedWebroot);
|
|
19
|
-
await (0, fs_extra_1.writeFile)(indexPath, modifiedHtml);
|
|
20
|
-
}
|
|
21
|
-
static normalizeWebroot(webroot) {
|
|
22
|
-
if (!webroot || webroot === '/') {
|
|
23
|
-
return '';
|
|
24
|
-
}
|
|
25
|
-
return webroot.replace(/\/+/g, '/').replace(/^\/+|\/+$/g, '');
|
|
26
|
-
}
|
|
27
|
-
static transformHtmlForWebroot(html, webroot) {
|
|
28
|
-
const baseHref = webroot ? `/${webroot}/` : '/';
|
|
29
|
-
return html
|
|
30
|
-
.replace(/<base href="[^"]*"(\s*)\/?>/g, `<base href="${baseHref}"$1/>`)
|
|
31
|
-
.replace(/href="\/(?:.*?\/)?assets\//g, 'href="assets/')
|
|
32
|
-
.replace(/href="\/(?:.*?\/)?favicon\.ico"/g, 'href="favicon.ico"')
|
|
33
|
-
.replace(/href="\/(?:.*?\/)?([^"/]+\.(png|svg|webmanifest))"/g, 'href="$1"')
|
|
34
|
-
.replace(/src="\/(?:.*?\/)?assets\//g, 'src="assets/');
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
exports.SpaHtmlService = SpaHtmlService;
|
|
38
|
-
//# sourceMappingURL=spa-html.service.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"spa-html.service.js","sourceRoot":"","sources":["../../../src/core/spa/spa-html.service.ts"],"names":[],"mappings":";;;;;;AAAA,yCAAmC;AACnC,gEAAkC;AAElC,uCAAsD;AAEtD,MAAa,cAAc;IAKzB,MAAM,CAAC,KAAK,CAAC,eAAe,CAAC,OAAe;QAC1C,MAAM,SAAS,GAAG,IAAA,mBAAO,EAAC,sBAAO,CAAC,GAAG,CAAC,aAAa,EAAE,mBAAmB,CAAC,CAAA;QACzE,IAAI,CAAC,CAAC,MAAM,IAAA,iBAAM,EAAC,SAAS,CAAC,CAAC,EAAE,CAAC;YAC/B,OAAM;QACR,CAAC;QACD,MAAM,YAAY,GAAG,MAAM,IAAA,mBAAQ,EAAC,SAAS,EAAE,OAAO,CAAC,CAAA;QACvD,MAAM,iBAAiB,GAAG,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAA;QACxD,MAAM,YAAY,GAAG,IAAI,CAAC,uBAAuB,CAAC,YAAY,EAAE,iBAAiB,CAAC,CAAA;QAClF,MAAM,IAAA,oBAAS,EAAC,SAAS,EAAE,YAAY,CAAC,CAAA;IAC1C,CAAC;IAOO,MAAM,CAAC,gBAAgB,CAAC,OAAe;QAC7C,IAAI,CAAC,OAAO,IAAI,OAAO,KAAK,GAAG,EAAE,CAAC;YAChC,OAAO,EAAE,CAAA;QACX,CAAC;QAED,OAAO,OAAO,CAAC,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,OAAO,CAAC,YAAY,EAAE,EAAE,CAAC,CAAA;IAC/D,CAAC;IAQO,MAAM,CAAC,uBAAuB,CAAC,IAAY,EAAE,OAAe;QAClE,MAAM,QAAQ,GAAG,OAAO,CAAC,CAAC,CAAC,IAAI,OAAO,GAAG,CAAC,CAAC,CAAC,GAAG,CAAA;QAE/C,OAAO,IAAI;aACR,OAAO,CAAC,8BAA8B,EAAE,eAAe,QAAQ,OAAO,CAAC;aACvE,OAAO,CAAC,6BAA6B,EAAE,eAAe,CAAC;aACvD,OAAO,CAAC,kCAAkC,EAAE,oBAAoB,CAAC;aACjE,OAAO,CAAC,qDAAqD,EAAE,WAAW,CAAC;aAC3E,OAAO,CAAC,4BAA4B,EAAE,cAAc,CAAC,CAAA;IAC1D,CAAC;CACF;AA7CD,wCA6CC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"log.interfaces.js","sourceRoot":"","sources":["../../../src/modules/log/log.interfaces.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"terminal.interfaces.js","sourceRoot":"","sources":["../../../../src/modules/platform-tools/terminal/terminal.interfaces.ts"],"names":[],"mappings":""}
|
|
@@ -1,211 +0,0 @@
|
|
|
1
|
-
export interface HomebridgePlugin {
|
|
2
|
-
name: string;
|
|
3
|
-
private: boolean;
|
|
4
|
-
displayName?: string;
|
|
5
|
-
description?: string;
|
|
6
|
-
keywords?: string[];
|
|
7
|
-
verifiedPlugin?: boolean;
|
|
8
|
-
verifiedPlusPlugin?: boolean;
|
|
9
|
-
icon?: string;
|
|
10
|
-
publicPackage?: boolean;
|
|
11
|
-
installedVersion?: string;
|
|
12
|
-
latestVersion?: string;
|
|
13
|
-
lastUpdated?: string;
|
|
14
|
-
updateAvailable?: boolean;
|
|
15
|
-
updateEngines?: {
|
|
16
|
-
homebridge?: string;
|
|
17
|
-
node?: string;
|
|
18
|
-
};
|
|
19
|
-
updateTag?: string;
|
|
20
|
-
installPath?: string;
|
|
21
|
-
globalInstall?: boolean;
|
|
22
|
-
settingsSchema?: boolean;
|
|
23
|
-
disabled?: boolean;
|
|
24
|
-
links?: {
|
|
25
|
-
npm?: string;
|
|
26
|
-
homepage?: string;
|
|
27
|
-
bugs?: string;
|
|
28
|
-
};
|
|
29
|
-
author?: string;
|
|
30
|
-
engines?: {
|
|
31
|
-
homebridge?: string;
|
|
32
|
-
node?: string;
|
|
33
|
-
};
|
|
34
|
-
funding?: NpmFunding;
|
|
35
|
-
isHbScoped?: boolean;
|
|
36
|
-
isHbMaintained?: boolean;
|
|
37
|
-
newHbScope?: {
|
|
38
|
-
from: string;
|
|
39
|
-
to: string;
|
|
40
|
-
switch: string;
|
|
41
|
-
};
|
|
42
|
-
}
|
|
43
|
-
export interface HomebridgePluginUiMetadata {
|
|
44
|
-
devServer: null | string;
|
|
45
|
-
publicPath: string;
|
|
46
|
-
serverPath: string;
|
|
47
|
-
plugin: HomebridgePlugin;
|
|
48
|
-
}
|
|
49
|
-
export interface HomebridgePluginVersions {
|
|
50
|
-
tags: Record<string, string>;
|
|
51
|
-
versions: {
|
|
52
|
-
[key: string]: IPackageJson;
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
export interface INpmPerson {
|
|
56
|
-
name?: string;
|
|
57
|
-
email?: string;
|
|
58
|
-
homepage?: string;
|
|
59
|
-
username?: string;
|
|
60
|
-
url?: string;
|
|
61
|
-
}
|
|
62
|
-
export interface INpmRegistryModule {
|
|
63
|
-
'_id': string;
|
|
64
|
-
'_rev': string;
|
|
65
|
-
'name': string;
|
|
66
|
-
'dist-tags': {
|
|
67
|
-
latest: string;
|
|
68
|
-
[key: string]: string;
|
|
69
|
-
};
|
|
70
|
-
'versions': {
|
|
71
|
-
[key: string]: IPackageJson;
|
|
72
|
-
};
|
|
73
|
-
'time': {
|
|
74
|
-
created: string;
|
|
75
|
-
modified: string;
|
|
76
|
-
[key: string]: string;
|
|
77
|
-
};
|
|
78
|
-
'maintainers': INpmPerson[];
|
|
79
|
-
'description': string;
|
|
80
|
-
'homepage': string;
|
|
81
|
-
'keywords': string[];
|
|
82
|
-
'repository': {
|
|
83
|
-
type: string;
|
|
84
|
-
url: string;
|
|
85
|
-
};
|
|
86
|
-
'author': INpmPerson;
|
|
87
|
-
'bugs': {
|
|
88
|
-
email?: string;
|
|
89
|
-
url?: string;
|
|
90
|
-
};
|
|
91
|
-
'license': string;
|
|
92
|
-
'readme': string;
|
|
93
|
-
'readmeFilename': string;
|
|
94
|
-
}
|
|
95
|
-
export interface INpmSearchResultItem {
|
|
96
|
-
package: {
|
|
97
|
-
name: string;
|
|
98
|
-
scope: string;
|
|
99
|
-
version: string;
|
|
100
|
-
description: string;
|
|
101
|
-
keywords: string[];
|
|
102
|
-
date: string;
|
|
103
|
-
links: {
|
|
104
|
-
npm: string;
|
|
105
|
-
homebridge?: string;
|
|
106
|
-
repository?: string;
|
|
107
|
-
bugs?: string;
|
|
108
|
-
};
|
|
109
|
-
author: INpmPerson;
|
|
110
|
-
publisher: INpmPerson;
|
|
111
|
-
maintainers: INpmPerson[];
|
|
112
|
-
};
|
|
113
|
-
flags: {
|
|
114
|
-
unstable: boolean;
|
|
115
|
-
};
|
|
116
|
-
score: {
|
|
117
|
-
final: number;
|
|
118
|
-
detail: {
|
|
119
|
-
quality: number;
|
|
120
|
-
popularity: number;
|
|
121
|
-
maintenance: number;
|
|
122
|
-
};
|
|
123
|
-
};
|
|
124
|
-
searchScore: number;
|
|
125
|
-
}
|
|
126
|
-
export interface INpmSearchResults {
|
|
127
|
-
objects: INpmSearchResultItem[];
|
|
128
|
-
}
|
|
129
|
-
export interface IPackageJson {
|
|
130
|
-
name: string;
|
|
131
|
-
displayName?: string;
|
|
132
|
-
version?: string;
|
|
133
|
-
description?: string;
|
|
134
|
-
keywords?: string[];
|
|
135
|
-
homepage?: string;
|
|
136
|
-
bugs?: string | {
|
|
137
|
-
email?: string;
|
|
138
|
-
url?: string;
|
|
139
|
-
};
|
|
140
|
-
license?: string;
|
|
141
|
-
author?: string | INpmPerson;
|
|
142
|
-
maintainers?: INpmPerson[];
|
|
143
|
-
contributors?: string[] | INpmPerson[];
|
|
144
|
-
funding?: NpmFunding;
|
|
145
|
-
files?: string[];
|
|
146
|
-
main?: string;
|
|
147
|
-
bin?: string | {
|
|
148
|
-
[key: string]: string;
|
|
149
|
-
};
|
|
150
|
-
repository?: string | {
|
|
151
|
-
type: string;
|
|
152
|
-
url: string;
|
|
153
|
-
};
|
|
154
|
-
scripts?: {
|
|
155
|
-
[key: string]: string;
|
|
156
|
-
};
|
|
157
|
-
dependencies?: {
|
|
158
|
-
[key: string]: string;
|
|
159
|
-
};
|
|
160
|
-
devDependencies?: {
|
|
161
|
-
[key: string]: string;
|
|
162
|
-
};
|
|
163
|
-
peerDependencies?: {
|
|
164
|
-
[key: string]: string;
|
|
165
|
-
};
|
|
166
|
-
optionalDependencies?: {
|
|
167
|
-
[key: string]: string;
|
|
168
|
-
};
|
|
169
|
-
bundledDependencies?: string[];
|
|
170
|
-
engines?: {
|
|
171
|
-
[key: string]: string;
|
|
172
|
-
};
|
|
173
|
-
os?: string[];
|
|
174
|
-
cpu?: string[];
|
|
175
|
-
preferGlobal?: boolean;
|
|
176
|
-
private?: boolean;
|
|
177
|
-
publishConfig?: {
|
|
178
|
-
registry?: string;
|
|
179
|
-
};
|
|
180
|
-
deprecated?: string;
|
|
181
|
-
}
|
|
182
|
-
export type NpmFunding = {
|
|
183
|
-
type: string;
|
|
184
|
-
url: string;
|
|
185
|
-
} | string | Array<{
|
|
186
|
-
type: string;
|
|
187
|
-
url: string;
|
|
188
|
-
} | string>;
|
|
189
|
-
export interface PluginAlias {
|
|
190
|
-
pluginAlias: null | string;
|
|
191
|
-
pluginType: null | 'platform' | 'accessory';
|
|
192
|
-
}
|
|
193
|
-
export interface PluginListNewScopeItem {
|
|
194
|
-
from: string;
|
|
195
|
-
to: string;
|
|
196
|
-
switch: string;
|
|
197
|
-
}
|
|
198
|
-
export interface PluginListItem {
|
|
199
|
-
c?: string;
|
|
200
|
-
h?: 1;
|
|
201
|
-
i?: string;
|
|
202
|
-
m?: 1;
|
|
203
|
-
a?: string;
|
|
204
|
-
n?: string;
|
|
205
|
-
s?: PluginListNewScopeItem;
|
|
206
|
-
v?: 1;
|
|
207
|
-
p?: 1;
|
|
208
|
-
}
|
|
209
|
-
export interface PluginListData {
|
|
210
|
-
data: Record<string, PluginListItem>;
|
|
211
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"plugins.interfaces.js","sourceRoot":"","sources":["../../../src/modules/plugins/plugins.interfaces.ts"],"names":[],"mappings":""}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
export declare enum HomebridgeStatus {
|
|
2
|
-
OK = "ok",
|
|
3
|
-
UP = "up",
|
|
4
|
-
DOWN = "down"
|
|
5
|
-
}
|
|
6
|
-
export interface HomebridgeStatusUpdate {
|
|
7
|
-
status: HomebridgeStatus;
|
|
8
|
-
paired?: null | boolean;
|
|
9
|
-
setupUri?: null | string;
|
|
10
|
-
name?: string;
|
|
11
|
-
username?: string;
|
|
12
|
-
pin?: string;
|
|
13
|
-
}
|
|
14
|
-
export interface DockerRelease {
|
|
15
|
-
tag_name: string;
|
|
16
|
-
published_at: string;
|
|
17
|
-
prerelease: boolean;
|
|
18
|
-
body: string;
|
|
19
|
-
}
|
|
20
|
-
export interface DockerReleaseInfo {
|
|
21
|
-
version: string;
|
|
22
|
-
publishedAt: string;
|
|
23
|
-
isPrerelease: boolean;
|
|
24
|
-
isTest: boolean;
|
|
25
|
-
testTag: 'beta' | 'test' | null;
|
|
26
|
-
isLatestStable: boolean;
|
|
27
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.HomebridgeStatus = void 0;
|
|
4
|
-
var HomebridgeStatus;
|
|
5
|
-
(function (HomebridgeStatus) {
|
|
6
|
-
HomebridgeStatus["OK"] = "ok";
|
|
7
|
-
HomebridgeStatus["UP"] = "up";
|
|
8
|
-
HomebridgeStatus["DOWN"] = "down";
|
|
9
|
-
})(HomebridgeStatus || (exports.HomebridgeStatus = HomebridgeStatus = {}));
|
|
10
|
-
//# sourceMappingURL=status.interfaces.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"status.interfaces.js","sourceRoot":"","sources":["../../../src/modules/status/status.interfaces.ts"],"names":[],"mappings":";;;AAAA,IAAY,gBAIX;AAJD,WAAY,gBAAgB;IAC1B,6BAAS,CAAA;IACT,6BAAS,CAAA;IACT,iCAAa,CAAA;AACf,CAAC,EAJW,gBAAgB,gCAAhB,gBAAgB,QAI3B"}
|
package/public/chunk-3E6HFTEE.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as M}from"./chunk-ZUJUIJ4M.js";import"./chunk-MO7W4MOJ.js";import{a as O}from"./chunk-BU6Y5VTM.js";import{a as _}from"./chunk-SCOJK4RP.js";import{n as z,t as D}from"./chunk-3ZU7ZAMP.js";import"./chunk-MCPFJTIS.js";import"./chunk-RUQ2H5EQ.js";import{b as H}from"./chunk-RJGRIWSM.js";import"./chunk-EPPCEON6.js";import{k as E,l as A,n as F,q as V}from"./chunk-CXCOAQYV.js";import{Db as T,Gb as p,Ib as b,Ka as y,La as l,Pb as L,Qb as S,Vb as I,Wa as $,Wb as B,g as q,h as v,ja as i,kb as u,lb as x,mb as C,mc as a,n as w,nc as s,oa as d,pa as g,rb as f,sb as c,tb as r,ub as m,xc as k}from"./chunk-WWMJUVLA.js";var N=q(O(),1);var Q=["logoutput"];function W(o,P){if(o&1){let t=T();c(0,"div",4)(1,"button",7),a(2,"translate"),a(3,"translate"),p("click",function(){d(t);let n=b();return g(n.downloadLogFile())}),m(4,"i",8),r(),c(5,"button",9),a(6,"translate"),a(7,"translate"),p("click",function(){d(t);let n=b();return g(n.truncateLogFile())}),m(8,"i",10),r()()}o&2&&(l(),f("openDelay",150)("ngbTooltip",s(2,6,"form.button_download")),u("aria-label",s(3,8,"form.button_download")),l(4),f("openDelay",150)("ngbTooltip",s(6,10,"form.button_delete")),u("aria-label",s(7,12,"form.button_delete")))}var it=(()=>{class o{$api=i(V);$auth=i(H);$log=i(M);$modal=i(z);$toastr=i(F);$translate=i(E);termTarget=k("logoutput");resizeEvent=new w;isAdmin=this.$auth.user.admin;onWindowResize(){this.resizeEvent.next(void 0)}ngOnInit(){window.document.querySelector("body").classList.add("bg-black"),this.$log.startTerminal(this.termTarget(),{allowProposedApi:!0},this.resizeEvent)}ngOnDestroy(){window.document.querySelector("body").classList.remove("bg-black"),this.$log.destroyTerminal()}downloadLogFile(){let t=this.$modal.open(_,{size:"lg",backdrop:"static"});t.componentInstance.title=this.$translate.instant("logs.title_download_log_file"),t.componentInstance.message=this.$translate.instant("logs.download_warning"),t.componentInstance.confirmButtonLabel=this.$translate.instant("form.button_download"),t.componentInstance.faIconClass="fas fa-user-secret primary-text",t.result.then(()=>{this.$api.get("/platform-tools/hb-service/log/download",{observe:"response",responseType:"blob"}).subscribe({next:e=>{(0,N.saveAs)(e.body,"homebridge.log.txt")},error:e=>v(this,null,function*(){let n;try{n=JSON.parse(yield e.error.text()).message}catch(h){console.error(h)}this.$toastr.error(n||this.$translate.instant("logs.download.error"),this.$translate.instant("toast.title_error"))})})}).catch(()=>{})}truncateLogFile(){let t=this.$modal.open(_,{size:"lg",backdrop:"static"});t.componentInstance.title=this.$translate.instant("logs.title_truncate_log_file"),t.componentInstance.message=this.$translate.instant("logs.truncate_log_warning"),t.componentInstance.confirmButtonLabel=this.$translate.instant("form.button_delete"),t.componentInstance.confirmButtonClass="btn-danger",t.componentInstance.faIconClass="fas fa-circle-exclamation primary-text",t.result.then(()=>{this.$api.put("/platform-tools/hb-service/log/truncate",{}).subscribe({next:()=>{this.$toastr.success(this.$translate.instant("logs.log_file_truncated"),this.$translate.instant("toast.title_success")),this.$log.term.clear()},error:e=>{console.error(e),this.$toastr.error(e.error?.message||this.$translate.instant("logs.truncate.error"),this.$translate.instant("toast.title_error"))}})}).catch(()=>{})}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=$({type:o,selectors:[["ng-component"]],viewQuery:function(e,n){e&1&&L(n.termTarget,Q,5),e&2&&S()},hostBindings:function(e,n){e&1&&p("resize",function(j){return n.onWindowResize(j)},y)},decls:9,vars:4,consts:[["logoutput",""],[1,"row","mb-3"],[1,"col-6"],[1,"primary-text","m-0"],[1,"col-6","text-end"],[1,"flex-column","d-flex","align-items-stretch","adjust-for-mobile"],["id","log-output",1,"align-self-end","w-100","h-100","mb-1"],["container","body","placement","bottom","triggers","hover",1,"btn","btn-elegant","my-0","me-2",3,"click","openDelay","ngbTooltip"],[1,"fas","fa-download"],["container","body","placement","bottom","triggers","hover",1,"btn","btn-elegant","my-0","me-0",3,"click","openDelay","ngbTooltip"],[1,"fas","fa-trash-alt"]],template:function(e,n){e&1&&(c(0,"div",1)(1,"div",2)(2,"h3",3),I(3),a(4,"translate"),r()(),x(5,W,9,14,"div",4),r(),c(6,"div",5),m(7,"div",6,0),r()),e&2&&(l(3),B(s(4,2,"menu.linux.label_logs")),l(2),C(n.isAdmin?5:-1))},dependencies:[D,A],encapsulation:2})}return o})();export{it as LogsComponent};
|
package/public/chunk-3VNRVJER.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{d as f,g as s}from"./chunk-6LB7WDKS.js";import{k as l,n as u,q as d}from"./chunk-CXCOAQYV.js";import{Xa as a,ea as m,fa as i,h as p,ja as e,w as c}from"./chunk-WWMJUVLA.js";var n=(()=>{class t{$api=e(d);$router=e(f);$toastr=e(u);$translate=e(l);resolve(){return p(this,null,function*(){try{return yield c(this.$api.get("/platform-tools/docker/startup-script"))}catch(r){console.error(r),this.$toastr.error(r.message,this.$translate.instant("toast.title_error")),this.$router.navigate(["/"])}})}static \u0275fac=function(o){return new(o||t)};static \u0275prov=m({token:t,factory:t.\u0275fac})}return t})();var S=[{path:"",redirectTo:"/",pathMatch:"full"},{path:"startup-script",loadComponent:()=>import("./chunk-UVHFLMOY.js").then(t=>t.StartupScriptComponent),resolve:{startupScript:n}},{path:"restart-container",loadComponent:()=>import("./chunk-YHUHGXBO.js").then(t=>t.ContainerRestartComponent)}],v=(()=>{class t{static \u0275fac=function(o){return new(o||t)};static \u0275mod=a({type:t});static \u0275inj=i({imports:[s.forChild(S),s]})}return t})();var T=(()=>{class t{static \u0275fac=function(o){return new(o||t)};static \u0275mod=a({type:t});static \u0275inj=i({providers:[n],imports:[v]})}return t})();export{T as DockerModule};
|
package/public/chunk-44BZ7YDX.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as n}from"./chunk-DENJUFJU.js";import"./chunk-RJGRIWSM.js";import{g as r}from"./chunk-6LB7WDKS.js";import"./chunk-EPPCEON6.js";import"./chunk-CXCOAQYV.js";import{Xa as e,fa as o}from"./chunk-WWMJUVLA.js";var c=[{path:"",loadComponent:()=>import("./chunk-A6NPKCAZ.js").then(t=>t.SettingsComponent),canActivate:[n]}],m=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=e({type:t});static \u0275inj=o({imports:[r.forChild(c),r]})}return t})();var l=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=e({type:t});static \u0275inj=o({imports:[m]})}return t})();export{l as SettingsModule};
|
package/public/chunk-4QGDXKG4.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{g as r}from"./chunk-6LB7WDKS.js";import{Xa as e,fa as t}from"./chunk-WWMJUVLA.js";var u=[{path:"",loadComponent:()=>import("./chunk-3E6HFTEE.js").then(o=>o.LogsComponent)}],n=(()=>{class o{static \u0275fac=function(i){return new(i||o)};static \u0275mod=e({type:o});static \u0275inj=t({imports:[r.forChild(u),r]})}return o})();var p=(()=>{class o{static \u0275fac=function(i){return new(i||o)};static \u0275mod=e({type:o});static \u0275inj=t({imports:[n]})}return o})();export{p as LogsModule};
|
package/public/chunk-5SLRMSXI.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as H}from"./chunk-TUN7H57E.js";import{a as X}from"./chunk-2H5LPMAQ.js";import{a as G}from"./chunk-WO2FS67T.js";import{a as Z}from"./chunk-Y276Q4AC.js";import"./chunk-2XYBM4MH.js";import{a as R}from"./chunk-SCOJK4RP.js";import{n as E}from"./chunk-3ZU7ZAMP.js";import"./chunk-MCPFJTIS.js";import{a as j}from"./chunk-RUQ2H5EQ.js";import{b as A}from"./chunk-RJGRIWSM.js";import{a as q,c as N,d as V,e as W,f as D}from"./chunk-6LB7WDKS.js";import{b as T}from"./chunk-EPPCEON6.js";import{k as L,l as U,p as $}from"./chunk-CXCOAQYV.js";import{Db as S,Gb as _,Ib as x,Kc as O,La as i,Pa as F,Vb as g,Wa as P,Wb as v,Xc as K,fc as h,g as Y,gc as M,h as I,ja as u,kb as m,lb as w,mb as y,mc as s,nc as d,oa as b,pa as C,rb as c,sb as n,tb as a,ub as p,w as z}from"./chunk-WWMJUVLA.js";var Q=Y(Z(),1);var B=()=>["/"],te=o=>({"hamburger-icon-cross":o}),ne=o=>({expanded:o}),ie=()=>({exact:!0}),oe=()=>["/plugins"],re=()=>["/accessories"],ae=()=>["/logs"],se=()=>["/support"],de=()=>["/platform-tools/terminal"],le=()=>["/config"],pe=()=>["/settings"],ce=()=>["/power-options"];function me(o,k){if(o&1){let e=S();n(0,"div",10)(1,"div",20),s(2,"translate"),s(3,"translate"),_("click",function(){b(e);let t=x();return C(t.openUnderVoltageModal())})("keydown",function(t){b(e);let r=x();return C(r.handleKeydown(t))}),n(4,"div",12),p(5,"i",21),a(),n(6,"div",14),g(7),s(8,"translate"),a()()()}o&2&&(i(),m("aria-label",d(2,2,"rpi.throttled.undervoltage_title")+" - "+d(3,4,"rpi.throttled.undervoltage_description")),i(6),v(d(8,6,"rpi.throttled.undervoltage_title")))}function ue(o,k){if(o&1){let e=S();n(0,"div",10)(1,"div",15),s(2,"translate"),_("keydown",function(t){b(e);let r=x();return C(r.handleKeydown(t))}),n(3,"div",12),p(4,"i",22),a(),n(5,"div",14),g(6),s(7,"translate"),a()()()}o&2&&(i(),c("routerLink",h(8,de))("routerLinkActive","active"),m("aria-label",d(2,4,"menu.linux.label_terminal")),i(5),v(d(7,6,"menu.linux.label_terminal")))}function _e(o,k){if(o&1){let e=S();n(0,"div",10)(1,"div",15),s(2,"translate"),_("keydown",function(t){b(e);let r=x();return C(r.handleKeydown(t))}),n(3,"div",12),p(4,"i",23),a(),n(5,"div",14),g(6),s(7,"translate"),a()()()}o&2&&(i(),c("routerLink",h(8,le))("routerLinkActive","active"),m("aria-label",d(2,4,"menu.config_json_editor")),i(5),v(d(7,6,"menu.config_json_editor")))}function ge(o,k){if(o&1){let e=S();n(0,"div",10)(1,"div",15),s(2,"translate"),_("keydown",function(t){b(e);let r=x();return C(r.handleKeydown(t))}),n(3,"div",12),p(4,"i",24),a(),n(5,"div",14),g(6),s(7,"translate"),a()()()}o&2&&(i(),c("routerLink",h(8,pe))("routerLinkActive","active"),m("aria-label",d(2,4,"menu.label_settings")),i(5),v(d(7,6,"menu.label_settings")))}function fe(o,k){if(o&1){let e=S();n(0,"div",10)(1,"div",15),s(2,"translate"),_("keydown",function(t){b(e);let r=x();return C(r.handleKeydown(t))}),n(3,"div",12),p(4,"i",25),a(),n(5,"div",14),g(6),s(7,"translate"),a()()()}o&2&&(i(),c("routerLink",h(8,ce))("routerLinkActive","active"),m("aria-label",d(2,4,"menu.restart.title")),i(5),v(d(7,6,"menu.restart.title")))}function ve(o,k){if(o&1){let e=S();n(0,"div",10)(1,"div",20),s(2,"translate"),_("click",function(){b(e);let t=x();return C(t.reloadPage())})("keydown",function(t){b(e);let r=x();return C(r.handleKeydown(t))}),n(3,"div",12),p(4,"i",26),a(),n(5,"div",14),g(6),s(7,"translate"),a()()()}o&2&&(i(),m("aria-label",d(2,2,"menu.reload")),i(5),v(d(7,4,"menu.reload")))}function he(o,k){if(o&1){let e=S();n(0,"div",10)(1,"div",20),s(2,"translate"),_("click",function(){b(e);let t=x();return C(t.logout())})("keydown",function(t){b(e);let r=x();return C(r.handleKeydown(t))}),n(3,"div",12),p(4,"i",27),a(),n(5,"div",14),g(6),s(7,"translate"),a()()()}o&2&&(i(),m("aria-label",d(2,2,"menu.tooltip_logout")),i(5),v(d(7,4,"menu.tooltip_logout")))}var J=(()=>{class o{$auth=u(A);$settings=u(T);$modal=u(E);$notification=u(G);$renderer=u(F);$router=u(V);$translate=u(L);isExpanded=!1;formAuth=this.$settings.formAuth;isAdmin=this.$auth.user.admin;enableTerminalAccess=this.$settings.env.enableTerminalAccess;rPiCurrentlyUnderVoltage=!1;rPiWasUnderVoltage=!1;isMobile=!1;freezeMenu=!1;isPwa=H();constructor(){this.isMobile=window.innerWidth<768;let e;window.addEventListener("resize",()=>{clearTimeout(e),e=setTimeout(()=>{this.updateListeners()},500)}),this.$router.events.subscribe(l=>{l instanceof q&&(this.closeSidebar(),this.freezeMenu=!0,setTimeout(()=>{this.freezeMenu=!1},750))})}ngOnInit(){this.$notification.raspberryPiThrottled.subscribe(r=>{r["Under Voltage"]&&(this.rPiCurrentlyUnderVoltage=!0),r["Under-voltage has occurred"]&&(this.rPiWasUnderVoltage=!0)}),this.$notification.formAuthEnabled.subscribe(r=>{this.formAuth=r});let e=document.querySelector(".sidebar"),l=document.querySelector(".m-header"),t=document.querySelector(".content");this.isMobile?document.addEventListener("touchstart",r=>{if(t.contains(r.target)&&this.isExpanded){r.preventDefault(),this.toggleSidebar();return}!e.contains(r.target)&&!l.contains(r.target)&&this.isExpanded&&(r.preventDefault(),this.closeSidebar())},{passive:!1}):(this.updateListeners(),l.addEventListener("mouseenter",()=>this.openSidebar(),{passive:!1}),l.addEventListener("mouseleave",()=>this.closeSidebar(),{passive:!1}),document.addEventListener("click",r=>{e.contains(r.target)&&r.clientX>60&&this.closeSidebar()},{passive:!1})),this.updateContentStyles()}toggleSidebar(){this.freezeMenu||(this.isExpanded=!this.isExpanded,this.updateContentStyles())}openUnderVoltageModal(){let e=this.$modal.open(X,{size:"lg",backdrop:"static"});e.componentInstance.title=this.$translate.instant("rpi.throttled.undervoltage_title"),e.componentInstance.message=this.$translate.instant(this.rPiCurrentlyUnderVoltage?"rpi.throttled.currently_message":"rpi.throttled.previously_message"),e.componentInstance.ctaButtonLabel=this.$translate.instant("form.button_more_info"),e.componentInstance.faIconClass="fas fa-bolt yellow-text",e.componentInstance.ctaButtonLink="https://pimylifeup.com/raspberry-pi-low-voltage-warning"}handleKeydown(e){if(e.key==="Enter"){let l=e.target;["menuitem","button"].includes(l.getAttribute("role"))&&l.click()}}reloadPage(){window.location.reload()}ngOnDestroy(){document.removeEventListener("touchstart",()=>{}),document.removeEventListener("click",()=>{})}logout(){this.$auth.logout()}openSidebar(){this.freezeMenu||(this.isExpanded=!0,this.updateContentStyles())}closeSidebar(){this.freezeMenu||(this.isExpanded=!1,this.updateContentStyles())}updateContentStyles(){let e=document.querySelector(".content");this.isExpanded?(this.$renderer.setStyle(e,"opacity","20%"),this.$renderer.setStyle(e,"pointer-events","none"),this.$renderer.setStyle(e,"overflow","hidden")):(this.$renderer.removeStyle(e,"opacity"),this.$renderer.removeStyle(e,"pointer-events"),this.$renderer.removeStyle(e,"overflow"))}updateListeners(){this.isMobile=window.innerWidth<768;let e=document.querySelector(".sidebar");e.removeAllListeners(),(this.isMobile||!this.isMobile&&this.$settings.menuMode!=="freeze")&&(e.addEventListener("mouseenter",()=>this.openSidebar(),{passive:!1}),e.addEventListener("mouseleave",()=>this.closeSidebar(),{passive:!1}))}static \u0275fac=function(l){return new(l||o)};static \u0275cmp=P({type:o,selectors:[["app-sidebar"]],inputs:{isExpanded:"isExpanded"},decls:68,vars:75,consts:[["tabindex","0","role","button",1,"m-header","text-end",3,"click","keydown"],[1,"me-2","d-block","d-lg-none",2,"font-size","0.9rem","color","#dddddd"],[3,"routerLink"],["ngSrc","assets/homebridge-logo.svg","alt","HB Logo","height","35","width","35",2,"height","35px","width","35px"],[1,"hb-logo-text-mobile"],[1,"hamburger-icon",3,"ngClass"],["role","navigation","id","sidebar",1,"sidebar",3,"ngClass"],["tabindex","0","role","button",1,"header",3,"click","keydown"],[1,"hb-logo-text"],[1,"link-wrapper"],[1,"link"],["role","menuitem","tabindex","0",1,"link-row",3,"keydown","routerLink","routerLinkActive","routerLinkActiveOptions"],[1,"icon"],[1,"fa","fa-house"],[1,"title"],["role","menuitem","tabindex","0",1,"link-row",3,"keydown","routerLink","routerLinkActive"],[1,"fa","fa-plug"],[1,"fa","fa-lightbulb"],[1,"fa","fa-wave-square"],[1,"fa","fa-question-circle-o"],["role","menuitem","tabindex","0",1,"link-row",3,"click","keydown"],[1,"fas","fa-bolt","fa-beat","yellow-text",2,"--fa-beat-scale","1.5"],[1,"fa","fa-terminal"],[1,"fa","fa-code"],[1,"fa","fa-cog"],[1,"fa","fa-power-off"],[1,"fa","fa-refresh"],[1,"fa","fa-right-from-bracket"]],template:function(l,t){l&1&&(n(0,"div",0),s(1,"translate"),_("click",function(){return t.toggleSidebar()})("keydown",function(f){return t.handleKeydown(f)}),p(2,"span",1),n(3,"a",2),s(4,"translate"),p(5,"img",3),n(6,"div",4),g(7,"Homebridge"),a()(),n(8,"div",5),p(9,"span")(10,"span")(11,"span")(12,"span"),a()(),n(13,"div",6)(14,"div",7),_("click",function(){return t.toggleSidebar()})("keydown",function(f){return t.handleKeydown(f)}),n(15,"a",2),s(16,"translate"),p(17,"img",3),n(18,"div",8),g(19,"Homebridge"),a()()(),n(20,"div",9)(21,"div",10)(22,"div",11),s(23,"translate"),_("keydown",function(f){return t.handleKeydown(f)}),n(24,"div",12),p(25,"i",13),a(),n(26,"div",14),g(27),s(28,"translate"),a()()(),w(29,me,9,8,"div",10),n(30,"div",10)(31,"div",15),s(32,"translate"),_("keydown",function(f){return t.handleKeydown(f)}),n(33,"div",12),p(34,"i",16),a(),n(35,"div",14),g(36),s(37,"translate"),a()()(),n(38,"div",10)(39,"div",15),s(40,"translate"),_("keydown",function(f){return t.handleKeydown(f)}),n(41,"div",12),p(42,"i",17),a(),n(43,"div",14),g(44),s(45,"translate"),a()()(),n(46,"div",10)(47,"div",15),s(48,"translate"),_("keydown",function(f){return t.handleKeydown(f)}),n(49,"div",12),p(50,"i",18),a(),n(51,"div",14),g(52),s(53,"translate"),a()()(),w(54,ue,8,9,"div",10),w(55,_e,8,9,"div",10),w(56,ge,8,9,"div",10),n(57,"div",10)(58,"div",15),s(59,"translate"),_("keydown",function(f){return t.handleKeydown(f)}),n(60,"div",12),p(61,"i",19),a(),n(62,"div",14),g(63),s(64,"translate"),a()()(),w(65,fe,8,9,"div",10),w(66,ve,8,6,"div",10),w(67,he,8,6,"div",10),a()()),l&2&&(m("aria-expanded",t.isExpanded?"true":"false")("aria-controls","sidebar")("aria-label",d(1,37,"menu.sidebar.aria_menu")),i(3),c("routerLink",h(63,B)),m("aria-label",d(4,39,"menu.label_status")),i(5),c("ngClass",M(64,te,t.isExpanded)),i(5),c("ngClass",M(66,ne,t.isExpanded)),i(2),c("routerLink",h(68,B)),m("aria-label",d(16,41,"menu.label_status")),i(7),c("routerLink",h(69,B))("routerLinkActive","active")("routerLinkActiveOptions",h(70,ie)),m("aria-label",d(23,43,"menu.label_status")),i(5),v(d(28,45,"menu.label_status")),i(2),y(t.rPiWasUnderVoltage||t.rPiCurrentlyUnderVoltage?29:-1),i(2),c("routerLink",h(71,oe))("routerLinkActive","active"),m("aria-label",d(32,47,"menu.label_plugins")),i(5),v(d(37,49,"menu.label_plugins")),i(3),c("routerLink",h(72,re))("routerLinkActive","active"),m("aria-label",d(40,51,"menu.label_accessories")),i(5),v(d(45,53,"menu.label_accessories")),i(3),c("routerLink",h(73,ae))("routerLinkActive","active"),m("aria-label",d(48,55,"menu.linux.label_logs")),i(5),v(d(53,57,"menu.linux.label_logs")),i(2),y(t.enableTerminalAccess&&t.isAdmin?54:-1),i(),y(t.isAdmin?55:-1),i(),y(t.isAdmin?56:-1),i(2),c("routerLink",h(74,se))("routerLinkActive","active"),m("aria-label",d(59,59,"support.title")),i(5),v(d(64,61,"support.title")),i(2),y(t.isAdmin?65:-1),i(),y(t.isPwa?66:-1),i(),y(t.formAuth?67:-1))},dependencies:[W,K,O,D,U],styles:[".m-header[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:100%;height:65px;z-index:510;display:flex;align-items:center;padding-left:3px;padding-right:3px}.m-header[_ngcontent-%COMP%]:hover{cursor:pointer}@media (min-width: 768px){.m-header[_ngcontent-%COMP%]{display:none}}.sidebar[_ngcontent-%COMP%]{position:fixed;left:0;top:0;height:100vh;transition:.3s;width:60px;z-index:500}.sidebar[_ngcontent-%COMP%] .header[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;padding:15px 10px 15px 11px;font-size:.85rem}.sidebar[_ngcontent-%COMP%] .header[_ngcontent-%COMP%]:hover{cursor:pointer}.sidebar[_ngcontent-%COMP%] .link-wrapper[_ngcontent-%COMP%]{overflow-y:auto;max-height:calc(100vh - 80px)!important}@media (max-width: 767px){.sidebar[_ngcontent-%COMP%] .link-wrapper[_ngcontent-%COMP%]{padding-bottom:60px}}.sidebar[_ngcontent-%COMP%] .link-wrapper[_ngcontent-%COMP%] .link[_ngcontent-%COMP%] .link-row[_ngcontent-%COMP%]{display:flex;align-items:center;padding:15px 10px;cursor:pointer;transition:.2s;font-size:17px}.sidebar[_ngcontent-%COMP%] .link-wrapper[_ngcontent-%COMP%] .link[_ngcontent-%COMP%] .link-row[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{flex:0 0 38px;display:flex;align-items:center;justify-content:center}.sidebar[_ngcontent-%COMP%] .link-wrapper[_ngcontent-%COMP%] .link[_ngcontent-%COMP%] .link-row[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{flex:1;transition:.3s;max-width:0;overflow:hidden;white-space:nowrap}@media (max-width: 767px){.sidebar[_ngcontent-%COMP%]{width:0}.sidebar[_ngcontent-%COMP%] .link-wrapper[_ngcontent-%COMP%]{display:none}}.sidebar.expanded[_ngcontent-%COMP%]{width:210px}@media (max-width: 767px){.sidebar.expanded[_ngcontent-%COMP%]{width:210px}.sidebar.expanded[_ngcontent-%COMP%] .link-wrapper[_ngcontent-%COMP%]{display:block}}.sidebar.expanded[_ngcontent-%COMP%] .link-wrapper[_ngcontent-%COMP%] .link[_ngcontent-%COMP%] .link-row[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{max-width:150px;padding-left:10px}.hamburger-icon[_ngcontent-%COMP%]{margin:-7px 0 0 25px}@media (min-width: 768px){.hb-logo-text[_ngcontent-%COMP%]{color:#fff;position:absolute;top:17px;font-size:22px;padding-left:3px}.sidebar.expanded[_ngcontent-%COMP%] .hb-logo-text[_ngcontent-%COMP%]{opacity:1;left:55px;transition:.3s}.sidebar[_ngcontent-%COMP%]:not(.expanded) .hb-logo-text[_ngcontent-%COMP%]{opacity:0;left:40px;transition:.3s}.hb-logo-text-mobile[_ngcontent-%COMP%], .hamburger-icon[_ngcontent-%COMP%]{display:none!important}}@media (max-width: 767px){.hb-logo-text[_ngcontent-%COMP%]{display:none!important}.hb-logo-text-mobile[_ngcontent-%COMP%]{color:#fff;position:absolute;top:17px;font-size:22px;padding-left:3px;opacity:1;left:55px}.hamburger-icon[_ngcontent-%COMP%]{position:absolute;right:10px;top:28px;width:30px;transform:rotate(0);transition:.5s ease-in-out;cursor:pointer}.hamburger-icon[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:block;position:absolute;height:2px;width:100%;background-color:#fff;border-radius:9px;opacity:1;left:0;transform:rotate(0);transition:.25s ease-in-out}.hamburger-icon[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(1){top:0}.hamburger-icon[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(2), .hamburger-icon[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(3){top:10px}.hamburger-icon[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(4){top:20px}.hamburger-icon-cross[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(1){top:10px;width:0;left:50%}.hamburger-icon-cross[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(2){transform:rotate(45deg)}.hamburger-icon-cross[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(3){transform:rotate(-45deg)}.hamburger-icon-cross[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(4){top:10px;width:0;left:50%}}"]})}return o})();var be=o=>({sidebarExpanded:o}),Re=(()=>{class o{$auth=u(A);$modal=u(E);$router=u(V);$settings=u(T);$translate=u(L);$ws=u(j);io;sidebarExpanded=!1;ngOnInit(){this.io=this.$ws.connectToNamespace("app"),this.io.socket.on("reconnect",()=>{this.$auth.checkToken()}),this.compareServerUiVersion()}compareServerUiVersion(){return I(this,null,function*(){if(this.$settings.settingsLoaded||(yield z(this.$settings.onSettingsLoaded)),!this.$router.url.endsWith("/restart")&&(0,Q.lt)(this.$settings.uiVersion,$.serverTarget)){console.log(`Server restart required. UI Version: ${$.serverTarget} - Server Version: ${this.$settings.uiVersion} `);let e=this.$modal.open(R,{size:"lg",backdrop:"static"});e.componentInstance.title=this.$translate.instant("platform.version.service_restart_required"),e.componentInstance.message=this.$translate.instant("platform.version.restart_required",{serverVersion:this.$settings.uiVersion,uiVersion:$.serverTarget}),e.componentInstance.confirmButtonLabel=this.$translate.instant("menu.tooltip_restart"),e.componentInstance.faIconClass="fas fa-power-off orange-text",e.result.then(()=>this.$router.navigate(["/restart"])).catch(()=>{})}})}static \u0275fac=function(l){return new(l||o)};static \u0275cmp=P({type:o,selectors:[["app-layout"]],decls:3,vars:4,consts:[[3,"isExpanded"],[1,"content","px-3","p-md-4",3,"ngClass"]],template:function(l,t){l&1&&(p(0,"app-sidebar",0),n(1,"div",1),p(2,"router-outlet"),a()),l&2&&(c("isExpanded",t.sidebarExpanded),i(),c("ngClass",M(2,be,t.sidebarExpanded)))},dependencies:[J,O,N],styles:[".content[_ngcontent-%COMP%]{margin-left:60px;transition:.3s;height:100%}@media (max-width: 767px){.content[_ngcontent-%COMP%]{margin-left:0;padding-top:85px!important}}@media (min-width: 768px){.content[_ngcontent-%COMP%]{height:100%}}a[_ngcontent-%COMP%]:hover{text-decoration:none!important}"]})}return o})();export{Re as LayoutComponent};
|
package/public/chunk-6D2TL7XK.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{B as G,C as Q,c as $,d as C,e as B,f as O,g as T,j as w,m as q,q as z,r as D,y as H,z as A}from"./chunk-MCPFJTIS.js";import{b as K}from"./chunk-RJGRIWSM.js";import{d as U}from"./chunk-6LB7WDKS.js";import{b as J}from"./chunk-EPPCEON6.js";import{l as j,p as W}from"./chunk-CXCOAQYV.js";import{Ac as L,Ga as x,Gb as E,Ib as M,Kc as N,La as i,M as I,Nc as V,Pb as v,Qb as F,Vb as g,Wa as k,Wb as h,Xb as R,Xc as P,gc as f,h as y,ja as p,lb as u,mb as c,mc as l,nc as d,rb as m,sb as r,tb as a,ub as s,w as S,xc as b}from"./chunk-WWMJUVLA.js";var Y=["password"],Z=["username"],ee=["otp"],te=e=>({background:e}),ie=e=>({anim:e}),X=e=>({"is-invalid":e});function ne(e,_){if(e&1&&(r(0,"div",8)(1,"span",12),s(2,"i",13),a(),s(3,"input",14,0),l(5,"translate"),a(),r(6,"div",8)(7,"span",12),s(8,"i",15),a(),s(9,"input",16,1),l(11,"translate"),a()),e&2){let n=M();i(3),m("placeholder",d(5,4,"users.label_username"))("ngClass",f(8,X,n.form.controls.username.dirty&&n.form.controls.username.errors)),i(6),m("placeholder",d(11,6,"users.label_password"))("ngClass",f(10,X,n.form.controls.password.dirty&&n.form.controls.password.errors))}}function oe(e,_){e&1&&(r(0,"div",8)(1,"span",12),s(2,"i",17),a(),s(3,"input",18,2),l(5,"translate"),a()),e&2&&(i(3),m("placeholder",d(5,1,"login.label_2fa_code")))}function ae(e,_){e&1&&(r(0,"div",9)(1,"div",12),s(2,"i",19),a(),r(3,"div",20)(4,"div",21),g(5),l(6,"translate"),a(),s(7,"div",22),l(8,"translate"),a()()),e&2&&(i(5),h(d(6,2,"login.invalid_credentials")),i(2),m("innerHTML",d(8,4,"login.invalid_credentials_2"),x))}function re(e,_){e&1&&(r(0,"div",9)(1,"div",12),s(2,"i",19),a(),r(3,"div",20)(4,"div",21),g(5),l(6,"translate"),a(),s(7,"div",22),l(8,"translate"),a()()),e&2&&(i(5),h(d(6,2,"login.invalid_code")),i(2),m("innerHTML",d(8,4,"login.invalid_credentials_2"),x))}var _e=(()=>{class e{$auth=p(K);$cdr=p(L);$router=p(U);$settings=p(J);targetRoute;validNonAdminRoutes=["/accessories","/plugins","/logs","/support"];passwordInput=b("password");usernameInput=b("username");otpInput=b("otp");backgroundStyle;invalidCredentials=!1;invalid2faCode=!1;twoFactorCodeRequired=!1;inProgress=!1;form;ngOnInit(){this.form=new T({username:new w(""),password:new w("")}),this.form.valueChanges.pipe(I(500)).subscribe(n=>{let o=this.passwordInput()?.nativeElement.value;o&&o!==n.password&&this.form.controls.password.setValue(o)}),this.targetRoute=window.sessionStorage.getItem("target_route")||"",this.setBackground()}ngAfterViewChecked(){this.$cdr.detectChanges()}onSubmit(){return y(this,null,function*(){this.invalidCredentials=!1,this.invalid2faCode=!1,this.inProgress=!0,document.getElementById("submit-button")?.blur();let n=this.passwordInput()?.nativeElement.value;n&&n!==this.form.get("password").value&&this.form.controls.password.setValue(n);let o=this.usernameInput()?.nativeElement.value;if(o&&o!==this.form.get("username").value&&this.form.controls.username.setValue(o),this.twoFactorCodeRequired){let t=this.otpInput()?.nativeElement.value;t&&t!==this.form.get("otp").value&&this.form.controls.username.setValue(t)}try{yield this.$auth.login(this.form.getRawValue()),!this.$auth.user.admin&&!this.validNonAdminRoutes.includes(this.targetRoute)&&(this.targetRoute="/"),this.$router.navigateByUrl(this.targetRoute),window.sessionStorage.removeItem("target_route")}catch(t){t.status===412?(this.form.controls.otp?(this.form.controls.otp.setErrors(["Invalid Code"]),this.invalid2faCode=!0):this.form.addControl("otp",new w("",[C.required,C.minLength(6),C.maxLength(6)])),this.twoFactorCodeRequired=!0,setTimeout(()=>{document.getElementById("form-ota").focus()},100)):this.invalidCredentials=!0}this.inProgress=!1})}setBackground(){return y(this,null,function*(){if(this.$settings.settingsLoaded||(yield S(this.$settings.onSettingsLoaded)),this.$settings.env.customWallpaperHash){let n=`${W.api.base}/auth/wallpaper/${this.$settings.env.customWallpaperHash}`;this.backgroundStyle=`url('${n}') center/cover`}})}static \u0275fac=function(o){return new(o||e)};static \u0275cmp=k({type:e,selectors:[["ng-component"]],viewQuery:function(o,t){o&1&&(v(t.passwordInput,Y,5),v(t.usernameInput,Z,5),v(t.otpInput,ee,5)),o&2&&F(3)},decls:15,vars:18,consts:[["username",""],["password",""],["otp",""],[1,"login-container","gradient","d-flex","align-items-start","justify-content-center",3,"ngStyle","ngClass"],[1,"w-100","login-card","d-flex","py-4","flex-column"],["ngSrc","assets/homebridge-color-round.svg","alt","Homebridge Logo","height","100","width","100","priority","true",1,"homebridge-logo","mx-auto","my-3"],["novalidate","",3,"ngSubmit","formGroup"],[1,"mb-4","text-center"],[1,"input-group","mb-4"],[1,"input-group","no-border","mb-4"],[1,"text-center"],["tabindex","3","id","submit-button","type","submit",1,"btn","btn-primary","mb-2",3,"disabled"],[1,"input-group-text","custom-input"],[1,"fas","fa-user","primary-text","fa-lg"],["formControlName","username","type","text","id","form-username","autofocus","","autocomplete","username","autocapitalize","none","tabindex","1","required","",1,"form-control","custom-input",3,"placeholder","ngClass"],[1,"fas","fa-lock","primary-text","fa-lg"],["formControlName","password","type","password","id","form-pass","autocomplete","current-password","tabindex","2","required","",1,"form-control","custom-input",3,"placeholder","ngClass"],[1,"fas","fa-key","primary-text","fa-lg"],["formControlName","otp","type","text","id","form-ota","autofocus","","autocomplete","one-time-code","autocapitalize","none","inputmode","numeric","pattern","[0-9]*","tabindex","1",1,"form-control","custom-input",3,"placeholder"],[1,"fas","fa-exclamation-triangle","pink-text","fa-lg"],[1,"form-control","custom-input"],[1,"small","grey-text","fw-semibold"],[1,"small","grey-text",3,"innerHTML"]],template:function(o,t){o&1&&(r(0,"div",3)(1,"div",4),s(2,"img",5),r(3,"form",6),E("ngSubmit",function(){return t.onSubmit()}),r(4,"h4",7),g(5),l(6,"translate"),a(),u(7,ne,12,12),u(8,oe,6,3,"div",8),u(9,ae,9,6,"div",9),u(10,re,9,6,"div",9),r(11,"div",10)(12,"button",11),g(13),l(14,"translate"),a()()()()()),o&2&&(m("ngStyle",f(14,te,t.backgroundStyle))("ngClass",f(16,ie,!t.backgroundStyle)),i(3),m("formGroup",t.form),i(2),h(d(6,10,"setup.welcome_to_homebridge")),i(2),c(t.twoFactorCodeRequired?-1:7),i(),c(t.twoFactorCodeRequired?8:-1),i(),c(t.invalidCredentials?9:-1),i(),c(t.invalid2faCode?10:-1),i(2),m("disabled",t.form.invalid),i(),R(" ",d(14,12,"form.button_continue")," "))},dependencies:[V,G,q,$,B,O,H,A,Q,z,D,N,P,j],styles:["body{overflow:scroll!important} body.dark-mode .login-card{background-color:#2b2b2b;color:#fff}.login-container[_ngcontent-%COMP%]{z-index:-1;padding-top:2em;padding-bottom:2em;min-height:100%;background-size:300% 300%}.anim[_ngcontent-%COMP%]{-webkit-animation:_ngcontent-%COMP%_gradient 20s ease infinite;-moz-animation:gradient 20s ease infinite;-o-animation:gradient 20s ease infinite;animation:_ngcontent-%COMP%_gradient 20s ease infinite}@keyframes _ngcontent-%COMP%_gradient{0%{background-position:0 50%}50%{background-position:100% 50%}to{background-position:0 50%}}.login-card[_ngcontent-%COMP%]{max-width:550px;border-radius:1rem;padding-right:25px;padding-left:25px;background-color:#ffffffe6}.login-card[_ngcontent-%COMP%] .form-control[_ngcontent-%COMP%]:focus{background-color:inherit!important}@media screen and (max-width: 575px){.login-card[_ngcontent-%COMP%]{margin-left:1em;margin-right:1em}}.homebridge-logo[_ngcontent-%COMP%]{margin-bottom:10px}"]})}return e})();export{_e as LoginComponent};
|