homebridge-config-ui-x 5.3.1-beta.20 → 5.3.1-beta.21
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 -1
- package/package.json +1 -1
- package/public/assets/accessory-icons/door.svg +14 -5
- package/public/{chunk-C2TNDL3B.js → chunk-266W2IXX.js} +1 -1
- package/public/{chunk-ZCOYZWUY.js → chunk-4VJBOLKN.js} +1 -1
- package/public/{chunk-E7BLRMQY.js → chunk-5LZZ7QL3.js} +1 -1
- package/public/{chunk-GQE2KVOS.js → chunk-5NFFYPKF.js} +1 -1
- package/public/{chunk-RTW4YEWU.js → chunk-65YEFWKG.js} +1 -1
- package/public/{chunk-NT5IAROO.js → chunk-765D7VYU.js} +1 -1
- package/public/{chunk-7LNLUHEV.js → chunk-7FGHR4MI.js} +1 -1
- package/public/{chunk-FEQFCAQ5.js → chunk-7I6N5VRM.js} +1 -1
- package/public/{chunk-AWNG3CHC.js → chunk-ANMMY5CI.js} +1 -1
- package/public/{chunk-DLFPPPPD.js → chunk-BIK2UD4M.js} +1 -1
- package/public/{chunk-IFON5AOK.js → chunk-BZMJIEWN.js} +1 -1
- package/public/{chunk-VZDC4XTQ.js → chunk-C2YY224G.js} +1 -1
- package/public/{chunk-ZXFEG37Q.js → chunk-D3REX5AX.js} +1 -1
- package/public/{chunk-S2RP5CJM.js → chunk-E6O3ARSU.js} +1 -1
- package/public/{chunk-7GWCI33Y.js → chunk-EY6WW3AK.js} +1 -1
- package/public/{chunk-AVELNQBK.js → chunk-EYEQ6NN4.js} +1 -1
- package/public/{chunk-XSSAYOLN.js → chunk-F3BKNHYI.js} +1 -1
- package/public/{chunk-OFM3XULU.js → chunk-FPC6DQKK.js} +1 -1
- package/public/{chunk-KEHQCRWZ.js → chunk-GLRIWBOZ.js} +1 -1
- package/public/{chunk-HQGUFLAY.js → chunk-HG72TAZA.js} +1 -1
- package/public/{chunk-YZ5NAIVZ.js → chunk-HLJ7HDRH.js} +1 -1
- package/public/{chunk-BFP3RPV4.js → chunk-HPH2XH5T.js} +1 -1
- package/public/{chunk-H3BG3UZY.js → chunk-J4YU65LZ.js} +1 -1
- package/public/{chunk-P4G46RWS.js → chunk-JHYSVQC3.js} +1 -1
- package/public/{chunk-HCLHEYPQ.js → chunk-K55VCLYN.js} +1 -1
- package/public/{chunk-BSLZOVTN.js → chunk-KLP4CBZ4.js} +1 -1
- package/public/{chunk-LDBQWDXC.js → chunk-KW2EE34I.js} +1 -1
- package/public/{chunk-F5AO4IWG.js → chunk-L2MRC6AR.js} +1 -1
- package/public/{chunk-3LNJCKEN.js → chunk-L34HBBHI.js} +1 -1
- package/public/{chunk-FFSGHWYW.js → chunk-LCTW2GII.js} +1 -1
- package/public/{chunk-MRV2VTYG.js → chunk-LURKJXHA.js} +1 -1
- package/public/{chunk-PVUGDVRC.js → chunk-MF2XI7O3.js} +1 -1
- package/public/{chunk-YVOHR5N3.js → chunk-MV2TAERN.js} +1 -1
- package/public/{chunk-YEME2IXJ.js → chunk-NNXSRPDM.js} +1 -1
- package/public/{chunk-XIJTPJMM.js → chunk-OQMXN2HP.js} +1 -1
- package/public/{chunk-ZZR5CTYB.js → chunk-OYUCEKDP.js} +1 -1
- package/public/{chunk-SIGAFS6T.js → chunk-PDDLHA2Z.js} +1 -1
- package/public/{chunk-PMWRVMAT.js → chunk-QKVY4ZEN.js} +2 -2
- package/public/{chunk-PE65B7FB.js → chunk-RHVXSVTG.js} +1 -1
- package/public/{chunk-T5HBYN2U.js → chunk-SS2MPODH.js} +1 -1
- package/public/{chunk-P2PVDSHV.js → chunk-UPEVR422.js} +1 -1
- package/public/{chunk-TWUYWWCM.js → chunk-VLDEJRYU.js} +1 -1
- package/public/{chunk-7JROTH25.js → chunk-VQ6CMHDR.js} +1 -1
- package/public/{chunk-BG3FXOGQ.js → chunk-VQFV46GS.js} +1 -1
- package/public/{chunk-V4BSI5SZ.js → chunk-W2DFSRPJ.js} +1 -1
- package/public/{chunk-ZQU4VQLT.js → chunk-XEWNX5CX.js} +1 -1
- package/public/{chunk-EYHAIMUF.js → chunk-ZWLJYFRW.js} +1 -1
- package/public/index.html +2 -2
- package/public/{main-6BEBIUYZ.js → main-BXMYH6PX.js} +1 -1
- package/public/{styles-LBFCTVXE.css → styles-COBBPQJD.css} +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -29,7 +29,7 @@ All notable changes to `homebridge-config-ui-x` will be documented in this file.
|
|
|
29
29
|
- updated icons: co, co2, smoke + context sensors
|
|
30
30
|
- improvements to garage door icon
|
|
31
31
|
- thermostat accessory: show target slider when available
|
|
32
|
-
-
|
|
32
|
+
- updated icon for door services
|
|
33
33
|
|
|
34
34
|
### Other Changes
|
|
35
35
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "homebridge-config-ui-x",
|
|
3
3
|
"displayName": "Homebridge UI",
|
|
4
|
-
"version": "5.3.1-beta.
|
|
4
|
+
"version": "5.3.1-beta.21",
|
|
5
5
|
"description": "A web based management, configuration and control platform for Homebridge.",
|
|
6
6
|
"author": "oznu <dev@oz.nu>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -3,17 +3,26 @@
|
|
|
3
3
|
<rect x="7.8" y="0.8" width="16.4" height="30.2" rx="0.5" stroke="#7f7f7f" fill="none" stroke-width="1.5" />
|
|
4
4
|
|
|
5
5
|
<!-- door outline -->
|
|
6
|
-
<rect x="9.6" y="2.6" width="12.8" height="26.6" stroke="#7f7f7f" fill="none" stroke-width="1" />
|
|
6
|
+
<rect class="outline" x="9.6" y="2.6" width="12.8" height="26.6" stroke="#7f7f7f" fill="none" stroke-width="1" />
|
|
7
7
|
|
|
8
8
|
<!-- top panel -->
|
|
9
|
-
<rect x="11.2" y="4.2" width="9.6" height="10.8" stroke="#7f7f7f" fill-opacity="0" stroke-width="0.5" />
|
|
9
|
+
<rect class="panel" x="11.2" y="4.2" width="9.6" height="10.8" stroke="#7f7f7f" fill-opacity="0" stroke-width="0.5" />
|
|
10
10
|
|
|
11
11
|
<!-- bottom panel -->
|
|
12
|
-
<rect
|
|
12
|
+
<rect
|
|
13
|
+
class="panel"
|
|
14
|
+
x="11.2"
|
|
15
|
+
y="16.8"
|
|
16
|
+
width="9.6"
|
|
17
|
+
height="10.8"
|
|
18
|
+
stroke="#7f7f7f"
|
|
19
|
+
fill-opacity="0"
|
|
20
|
+
stroke-width="0.5"
|
|
21
|
+
/>
|
|
13
22
|
|
|
14
23
|
<!-- wider floor -->
|
|
15
24
|
<line x1="0" y1="31" x2="32" y2="31" stroke="#7f7f7f" stroke-width="1.5" />
|
|
16
25
|
|
|
17
|
-
<!-- door
|
|
18
|
-
<line x1="19" y1="15.9" x2="21" y2="15.9" stroke="#7f7f7f" stroke-width="0.5" />
|
|
26
|
+
<!-- door handles -->
|
|
27
|
+
<line class="handle" x1="19" y1="15.9" x2="21" y2="15.9" stroke="#7f7f7f" stroke-width="0.5" />
|
|
19
28
|
</svg>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as r}from"./chunk-QIW6M5VR.js";import"./chunk-WBXDUV2S.js";import{ha as t,nb as e}from"./chunk-TIL3AXXZ.js";var u=[{path:"",loadComponent:()=>import("./chunk-
|
|
1
|
+
import{g as r}from"./chunk-QIW6M5VR.js";import"./chunk-WBXDUV2S.js";import{ha as t,nb as e}from"./chunk-TIL3AXXZ.js";var u=[{path:"",loadComponent:()=>import("./chunk-JHYSVQC3.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};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{A as Q,c as $,d as C,e as B,f as O,g as T,j as w,m as q,p as z,q as D,w as H,x as A,z as G}from"./chunk-5SOYD2TJ.js";import{b as K}from"./chunk-
|
|
1
|
+
import{A as Q,c as $,d as C,e as B,f as O,g as T,j as w,m as q,p as z,q as D,w as H,x as A,z as G}from"./chunk-5SOYD2TJ.js";import{b as K}from"./chunk-SS2MPODH.js";import{d as U}from"./chunk-QIW6M5VR.js";import{b as J}from"./chunk-HLJ7HDRH.js";import{m as W}from"./chunk-KLP4CBZ4.js";import{b as j}from"./chunk-HCP4JDTX.js";import"./chunk-WBXDUV2S.js";import{Ad as P,Dc as f,Ib as u,Ic as l,Jb as c,Jc as d,M as I,Ob as m,Pb as r,Qb as a,Rb as s,Tc as b,Vc as L,Xa as x,ab as i,bc as E,dc as M,h as y,jd as N,kc as v,la as p,lc as F,mb as k,md as V,qc as g,rc as h,sc as R,w as S}from"./chunk-TIL3AXXZ.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};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as n}from"./chunk-QIW6M5VR.js";import{b as s}from"./chunk-
|
|
1
|
+
import{d as n}from"./chunk-QIW6M5VR.js";import{b as s}from"./chunk-HLJ7HDRH.js";import{ga as o,h as r,la as e,w as i}from"./chunk-TIL3AXXZ.js";var l=(()=>{class t{$router=e(n);$settings=e(s);canActivate(){return r(this,null,function*(){return this.$settings.settingsLoaded||(yield i(this.$settings.onSettingsLoaded)),this.$settings.env.setupWizardComplete===!1||this.$router.navigate(["/"]),!0})}static \u0275fac=function(a){return new(a||t)};static \u0275prov=o({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();export{l as a};
|