homebridge-config-ui-x 4.56.2-beta.2 → 4.56.2-beta.4
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 +2 -0
- package/package.json +1 -1
- package/public/256.34365b62223e929a.js +1 -0
- package/public/index.html +3 -3
- package/public/main.046ee8498dc48cc7.js +1 -0
- package/public/{runtime.0549e309ba4e2c8f.js → runtime.31a4fdaf5068860f.js} +1 -1
- package/public/{styles.b8d33d622ae30a19.css → styles.148a9bdfa8ba58c7.css} +1 -1
- package/public/256.0cf962af23b2045e.js +0 -1
- package/public/main.845ff9f749152cba.js +0 -1
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "homebridge-config-ui-x",
|
|
3
3
|
"displayName": "Homebridge UI",
|
|
4
|
-
"version": "4.56.2-beta.
|
|
4
|
+
"version": "4.56.2-beta.4",
|
|
5
5
|
"description": "A web based management, configuration and control platform for Homebridge.",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "oznu <dev@oz.nu>",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkui=self.webpackChunkui||[]).push([[256],{4256:(O,g,a)=>{a.r(g),a.d(g,{SetupWizardModule:()=>P});var d=a(6895),s=a(4006),f=a(8304),l=a(4463),_=a(294),p=a(7750),c=a(5861),b=a(3650),h=a(2340),t=a(4650),v=a(7185),x=a(1481),w=a(9274),C=a(8951),Z=a(2503);function y(o,i){if(1&o){const e=t.EpF();t.TgZ(0,"div",3),t._UZ(1,"img",4)(2,"h3",5),t.TgZ(3,"button",6),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.onClickGettingStarted())}),t.qZA(),t.TgZ(4,"small",7)(5,"a",8),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.onClickRestoreBackup())}),t._uU(6,"Restore From Backup"),t.qZA()()()}}const u=function(o,i){return{"is-valid":o,"is-invalid":i}},U=function(o){return{"button-loading":o}};function T(o,i){if(1&o){const e=t.EpF();t.TgZ(0,"div",3),t._UZ(1,"img",9)(2,"h3",10),t.TgZ(3,"div",11),t._UZ(4,"p",12),t.TgZ(5,"form",13),t.NdJ("ngSubmit",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.createFirstUser())}),t.TgZ(6,"div",14),t._UZ(7,"i",15)(8,"input",16),t.TgZ(9,"label",17),t._uU(10,"Username"),t.qZA()(),t.TgZ(11,"div",14),t._UZ(12,"i",18)(13,"input",19),t.TgZ(14,"label",20),t._uU(15,"Password"),t.qZA()(),t.TgZ(16,"div",14),t._UZ(17,"i",18)(18,"input",21)(19,"label",22),t.qZA(),t.TgZ(20,"div",23)(21,"button",24),t._uU(22),t.ALo(23,"translate"),t._UZ(24,"i",25),t.qZA()()()()()}if(2&o){const e=t.oxw();t.xp6(5),t.Q6J("formGroup",e.createUserForm),t.xp6(3),t.Q6J("readonly",e.loading)("ngClass",t.WLB(15,u,e.createUserForm.controls.username.dirty&&e.createUserForm.controls.username.valid,e.createUserForm.controls.username.dirty&&e.createUserForm.controls.username.invalid)),t.xp6(1),t.Q6J("translate","users.label_username"),t.xp6(4),t.Q6J("readonly",e.loading)("ngClass",t.WLB(18,u,e.createUserForm.controls.password.dirty&&e.createUserForm.controls.password.valid,e.createUserForm.controls.password.dirty&&e.createUserForm.controls.password.errors)),t.xp6(1),t.Q6J("translate","users.label_password"),t.xp6(4),t.Q6J("readonly",e.loading)("ngClass",t.WLB(21,u,e.createUserForm.controls.passwordConfirm.dirty&&e.createUserForm.controls.passwordConfirm.valid,e.createUserForm.controls.passwordConfirm.dirty&&e.createUserForm.controls.passwordConfirm.errors)),t.xp6(1),t.Q6J("translate","users.label_confirm_password"),t.xp6(2),t.Q6J("disabled",e.createUserForm.invalid||e.loading)("ngClass",t.VKq(24,U,e.loading)),t.xp6(1),t.hij(" ",t.lcZ(23,13,"setup_wizard.label_create_account")," ")}}function k(o,i){1&o&&(t.TgZ(0,"span"),t._UZ(1,"i",36),t._uU(2),t.ALo(3,"translate"),t.qZA()),2&o&&(t.xp6(2),t.hij(" ",t.lcZ(3,1,"backup.label_uploading")," "))}function z(o,i){1&o&&t._UZ(0,"span",27),2&o&&t.Q6J("translate","backup.button_restore_backup")}function F(o,i){if(1&o){const e=t.EpF();t.TgZ(0,"div",3),t._UZ(1,"img",9)(2,"h3",26)(3,"p",27),t.TgZ(4,"div",28)(5,"input",29),t.NdJ("change",function(n){t.CHM(e);const m=t.oxw();return t.KtG(m.handleRestoreFileInput(n.target.files))}),t.qZA(),t.TgZ(6,"label",30),t._uU(7),t.ALo(8,"translate"),t.qZA()(),t.TgZ(9,"div",31)(10,"button",32),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.onClickCancelRestore())}),t.qZA(),t.TgZ(11,"button",33),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.onRestoreBackupClick())}),t.YNc(12,k,4,3,"span",34),t.YNc(13,z,1,1,"span",35),t.qZA()()()}if(2&o){const e=t.oxw();t.xp6(3),t.Q6J("translate","backup.message_restore_help_one"),t.xp6(4),t.Oqu(t.lcZ(8,6,(null==e.selectedFile?null:e.selectedFile.name)||"backup.label_choose_backup_file_to_restore")),t.xp6(3),t.Q6J("disabled",e.restoreUploadStarted),t.xp6(1),t.Q6J("disabled",e.restoreUploading||!e.selectedFile),t.xp6(1),t.Q6J("ngIf",e.restoreUploading),t.xp6(1),t.Q6J("ngIf",!e.restoreUploading)}}function $(o,i){1&o&&(t.TgZ(0,"div",3),t._UZ(1,"img",9)(2,"h3",37),t.TgZ(3,"h1"),t._UZ(4,"i",36),t.qZA()())}function J(o,i){1&o&&(t.TgZ(0,"div",3),t._UZ(1,"img",9)(2,"h3",38)(3,"p",39)(4,"a",40),t.qZA())}const S=[{path:"",component:(()=>{class o{$modal;$translate;$toastr;$title;$api;$auth;$settings;previousTitle;step="welcome";createUserForm=new s.cw({username:new s.NI("",[s.kI.required]),password:new s.NI("",[s.kI.compose([s.kI.required,s.kI.minLength(4)])]),passwordConfirm:new s.NI("",[s.kI.required])},this.matchPassword);loading=!1;selectedFile;restoreUploading=!1;constructor(e,r,n,m,W,N,A){this.$modal=e,this.$translate=r,this.$toastr=n,this.$title=m,this.$api=W,this.$auth=N,this.$settings=A}ngOnInit(){this.previousTitle=this.$title.getTitle(),this.$title.setTitle("Setup Homebridge")}matchPassword(e){if(e.get("password").value===e.get("passwordConfirm").value)return null;e.get("passwordConfirm").setErrors({matchPassword:!0})}ngOnDestroy(){this.$title.setTitle(this.previousTitle)}onClickGettingStarted(){this.step="create-account"}onClickRestoreBackup(){this.step="restore-backup"}onClickCancelRestore(){this.selectedFile=null,this.step="welcome"}createFirstUser(){var e=this;this.loading=!0;const r=this.createUserForm.getRawValue();r.name=r.username,this.$api.post("/setup-wizard/create-first-user",r).subscribe((0,c.Z)(function*(){e.$settings.env.setupWizardComplete=!0,yield e.$auth.login({username:r.username,password:r.password}),e.step="setup-complete"}),n=>{this.loading=!1,this.$toastr.error(n.error.message||this.$translate.instant("users.toast_failed_to_add_user"),this.$translate.instant("toast.title_error"))})}handleRestoreFileInput(e){e.length?this.selectedFile=e[0]:delete this.selectedFile}onRestoreBackupClick(){this.restoreUploading=!0,this.uploadHomebridgeArchive()}uploadHomebridgeArchive(){var e=this;return(0,c.Z)(function*(){try{const r=yield e.$api.get("/setup-wizard/get-setup-wizard-token").toPromise();window.localStorage.setItem(h.N.jwt.tokenKey,r.access_token),e.$auth.token=r.access_token;const n=new FormData;n.append("restoreArchive",e.selectedFile,e.selectedFile.name),yield e.$api.post("/backup/restore",n).toPromise(),e.openRestoreModal(),e.restoreUploading=!1}catch(r){e.restoreUploading=!1,e.$toastr.error(r.error.message||e.$translate.instant("users.toast_failed_to_add_user"),e.$translate.instant("toast.title_error"))}})()}openRestoreModal(){const e=this.$modal.open(b.S,{size:"lg",backdrop:"static"});e.componentInstance.setupWizardRestore=!0,e.result.then(r=>{!0===r&&this.waitForHomebridgeToRestart()})}waitForHomebridgeToRestart(){var e=this;return(0,c.Z)(function*(){e.step="restarting",window.localStorage.removeItem(h.N.jwt.tokenKey),e.$auth.token=null,yield new Promise(n=>setTimeout(n,15e3));const r=setInterval((0,c.Z)(function*(){try{yield e.$api.get("/auth/settings").toPromise(),clearInterval(r),location.reload()}catch{}}),1e3)})()}static \u0275fac=function(r){return new(r||o)(t.Y36(f.FF),t.Y36(l.sK),t.Y36(v._W),t.Y36(x.Dx),t.Y36(w.s),t.Y36(C.e),t.Y36(Z.g))};static \u0275cmp=t.Xpm({type:o,selectors:[["app-setup-wizard"]],decls:7,vars:5,consts:[[1,"setup-container","d-flex","align-items-center","justify-content-center"],[1,"w-100","setup-card","d-flex","pb-5","pt-5"],["class","w-100 d-flex flex-column align-items-center",4,"ngIf"],[1,"w-100","d-flex","flex-column","align-items-center"],["src","/assets/homebridge-color-round.svg",1,"homebridge-logo","mr-auto","ml-auto"],["translate","setup_wizard.message_welcome_to_homebridge",1,"pt-4","pb-3","text-center"],["type","button","translate","setup_wizard.button_get_started",1,"btn","btn-lg","btn-primary",3,"click"],[1,"mt-3"],["href","javascript:void(0)",1,"grey-text",3,"click"],["src","/assets/homebridge-color-round.svg",1,"homebridge-logo","homebridge-logo-small","mr-auto","ml-auto"],["translate","setup_wizard.label_create_account",1,"pt-4","pb-3","text-center"],[1,"w-100"],["translate","setup_wizard.message_create_account_reason"],["novalidate","",3,"formGroup","ngSubmit"],[1,"md-form"],[1,"fas","fa-fw","fa-user","prefix","grey-text"],["formControlName","username","type","text","id","form-username","autocomplete","username","autocapitalize","none","tabindex","1",1,"form-control","pl-0","pr-0",3,"readonly","ngClass"],["for","form-username",3,"translate"],[1,"fas","fa-fw","fa-lock","prefix","grey-text"],["formControlName","password","type","password","id","form-pass","autocomplete","new-password","tabindex","2",1,"form-control","pl-0","pr-0",3,"readonly","ngClass"],["for","form-pass",3,"translate"],["formControlName","passwordConfirm","type","password","id","form-pass-confirm","autocomplete","new-password","tabindex","2",1,"form-control","pl-0","pr-0",3,"readonly","ngClass"],["for","form-pass-confirm",3,"translate"],[1,"w-100","text-center"],["type","submit",1,"btn","btn-primary",3,"disabled","ngClass"],[1,"button-loading-overlay","fas","fa-fw","fa-spinner","fa-pulse"],["translate","backup.title_restore",1,"pt-4","pb-3","text-center"],[3,"translate"],[1,"custom-file"],["type","file","id","restoreFileUpload","accept","application/gzip, .gz",1,"custom-file-input",3,"change"],["for","restoreFileUpload",1,"custom-file-label"],[1,"mt-3","w-100","d-flex","justify-content-between"],["type","button","translate","form.button_cancel",1,"btn","btn-elegant","ml-0",3,"disabled","click"],["type","button",1,"btn","btn-primary","mr-0",3,"disabled","click"],[4,"ngIf"],[3,"translate",4,"ngIf"],[1,"fas","fa-fw","fa-spinner","fa-pulse"],["translate","restart.title_restart",1,"pt-4","pb-3","text-center"],["translate","setup_wizard_message_complete_title",1,"pt-4","pb-3"],["translate","setup_wizard_message_complete_message",1,"text-center"],["routerLink","/","translate","setup_wizard.label_open_dashboard",1,"btn","btn-lg","btn-primary","mt-3"]],template:function(r,n){1&r&&(t.TgZ(0,"div",0)(1,"div",1),t.YNc(2,y,7,0,"div",2),t.YNc(3,T,25,26,"div",2),t.YNc(4,F,14,8,"div",2),t.YNc(5,$,5,0,"div",2),t.YNc(6,J,5,0,"div",2),t.qZA()()),2&r&&(t.xp6(2),t.Q6J("ngIf","welcome"===n.step),t.xp6(1),t.Q6J("ngIf","create-account"===n.step),t.xp6(1),t.Q6J("ngIf","restore-backup"===n.step),t.xp6(1),t.Q6J("ngIf","restarting"===n.step),t.xp6(1),t.Q6J("ngIf","setup-complete"===n.step))},dependencies:[d.mk,d.O5,s._Y,s.Fj,s.JJ,s.JL,s.sg,s.u,l.Pi,p.rH,l.X$],styles:[".setup-container[_ngcontent-%COMP%]{background-size:cover;z-index:-1;padding-top:1em;padding-bottom:1em}@media screen and (min-height: 500px) and (min-width: 600px){.setup-container[_ngcontent-%COMP%]{padding-top:4em}}.setup-card[_ngcontent-%COMP%]{max-width:600px;border-radius:15px;background-color:#fff;padding-right:25px;padding-left:25px}.setup-card[_ngcontent-%COMP%] .form-control[_ngcontent-%COMP%]:focus{background-color:inherit!important}@media screen and (max-width: 600px){.setup-card[_ngcontent-%COMP%]{margin-left:1em;margin-right:1em}} body.dark-mode .setup-card{background-color:#2b2b2b;color:#fff}.homebridge-logo[_ngcontent-%COMP%]{margin-right:10px;height:200px}@media screen and (max-height: 500px){.homebridge-logo[_ngcontent-%COMP%]{height:100px}}@media screen and (max-width: 600px){.homebridge-logo[_ngcontent-%COMP%]{height:100px}}.homebridge-logo-small[_ngcontent-%COMP%]{height:50px}.button-loading[_ngcontent-%COMP%]{position:relative;color:#0000}.button-loading[_ngcontent-%COMP%] .button-loading-overlay[_ngcontent-%COMP%]{display:block;color:#fff}.button-loading-overlay[_ngcontent-%COMP%]{display:none;position:absolute;top:9px;left:0;right:0}small[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:underline}"]})}return o})()}];let I=(()=>{class o{static \u0275fac=function(r){return new(r||o)};static \u0275mod=t.oAB({type:o});static \u0275inj=t.cJS({imports:[p.Bz.forChild(S),p.Bz]})}return o})();var M=a(7289);let P=(()=>{class o{static \u0275fac=function(r){return new(r||o)};static \u0275mod=t.oAB({type:o});static \u0275inj=t.cJS({providers:[M.m],imports:[d.ez,s.u5,s.UX,l.aw,f.IJ,_.I,I]})}return o})()}}]);
|
package/public/index.html
CHANGED
|
@@ -15,11 +15,11 @@
|
|
|
15
15
|
<meta name="theme-color" content="#140a33" media="(prefers-color-scheme: light)">
|
|
16
16
|
<meta name="theme-color" content="#0f0f0f" media="(prefers-color-scheme: dark)">
|
|
17
17
|
|
|
18
|
-
<style>@charset "UTF-8";:root{--fa-style-family-classic:"Font Awesome 6 Free";--fa-font-solid:normal 900 1em/1 "Font Awesome 6 Free"}@font-face{font-family:"Font Awesome 6 Free";font-style:normal;font-weight:900;font-display:block;src:url(fa-solid-900.0b0cc8a6df2a4fc7.woff2) format("woff2"),url(fa-solid-900.69d3141ae4b2f721.ttf) format("truetype")}:root{--fa-style-family-classic:"Font Awesome 6 Free";--fa-font-regular:normal 400 1em/1 "Font Awesome 6 Free"}@font-face{font-family:"Font Awesome 6 Free";font-style:normal;font-weight:400;font-display:block;src:url(fa-regular-400.3ccdbd3d093918cb.woff2) format("woff2"),url(fa-regular-400.81482cd4d93fbfd4.ttf) format("truetype")}:root{--fa-style-family-brands:"Font Awesome 6 Brands";--fa-font-brands:normal 400 1em/1 "Font Awesome 6 Brands"}@font-face{font-family:"Font Awesome 6 Brands";font-style:normal;font-weight:400;font-display:block;src:url(fa-brands-400.87587a681474fe69.woff2) format("woff2"),url(fa-brands-400.5d18d427c08f12c3.ttf) format("truetype")}:root{--blue:#007bff;--indigo:#6610f2;--purple:#6f42c1;--pink:#e83e8c;--red:#dc3545;--orange:#fd7e14;--yellow:#ffc107;--green:#28a745;--teal:#20c997;--cyan:#17a2b8;--white:#fff;--gray:#6c757d;--gray-dark:#343a40;--primary:#007bff;--secondary:#6c757d;--success:#28a745;--info:#17a2b8;--warning:#ffc107;--danger:#dc3545;--light:#f8f9fa;--dark:#343a40;--breakpoint-xs:0;--breakpoint-sm:576px;--breakpoint-md:768px;--breakpoint-lg:992px;--breakpoint-xl:1200px;--font-family-sans-serif:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-family-monospace:SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace}*,*:before,*:after{box-sizing:border-box}html{font-family:sans-serif;line-height:1.15;-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:rgba(0,0,0,0)}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,Liberation Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-size:1rem;font-weight:400;line-height:1.5;color:#212529;text-align:left;background-color:#fff}@media print{*,*:before,*:after{text-shadow:none!important;box-shadow:none!important}@page{size:a3}body{min-width:992px!important}}body{font-family:Roboto,sans-serif;font-weight:300}html,body{height:100%;-webkit-font-smoothing:subpixel-antialiased}body{background-color:#f4f4f4}
|
|
18
|
+
<style>@charset "UTF-8";:root{--fa-style-family-classic:"Font Awesome 6 Free";--fa-font-solid:normal 900 1em/1 "Font Awesome 6 Free"}@font-face{font-family:"Font Awesome 6 Free";font-style:normal;font-weight:900;font-display:block;src:url(fa-solid-900.0b0cc8a6df2a4fc7.woff2) format("woff2"),url(fa-solid-900.69d3141ae4b2f721.ttf) format("truetype")}:root{--fa-style-family-classic:"Font Awesome 6 Free";--fa-font-regular:normal 400 1em/1 "Font Awesome 6 Free"}@font-face{font-family:"Font Awesome 6 Free";font-style:normal;font-weight:400;font-display:block;src:url(fa-regular-400.3ccdbd3d093918cb.woff2) format("woff2"),url(fa-regular-400.81482cd4d93fbfd4.ttf) format("truetype")}:root{--fa-style-family-brands:"Font Awesome 6 Brands";--fa-font-brands:normal 400 1em/1 "Font Awesome 6 Brands"}@font-face{font-family:"Font Awesome 6 Brands";font-style:normal;font-weight:400;font-display:block;src:url(fa-brands-400.87587a681474fe69.woff2) format("woff2"),url(fa-brands-400.5d18d427c08f12c3.ttf) format("truetype")}:root{--blue:#007bff;--indigo:#6610f2;--purple:#6f42c1;--pink:#e83e8c;--red:#dc3545;--orange:#fd7e14;--yellow:#ffc107;--green:#28a745;--teal:#20c997;--cyan:#17a2b8;--white:#fff;--gray:#6c757d;--gray-dark:#343a40;--primary:#007bff;--secondary:#6c757d;--success:#28a745;--info:#17a2b8;--warning:#ffc107;--danger:#dc3545;--light:#f8f9fa;--dark:#343a40;--breakpoint-xs:0;--breakpoint-sm:576px;--breakpoint-md:768px;--breakpoint-lg:992px;--breakpoint-xl:1200px;--font-family-sans-serif:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-family-monospace:SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace}*,*:before,*:after{box-sizing:border-box}html{font-family:sans-serif;line-height:1.15;-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:rgba(0,0,0,0)}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,Liberation Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-size:1rem;font-weight:400;line-height:1.5;color:#212529;text-align:left;background-color:#fff}@media print{*,*:before,*:after{text-shadow:none!important;box-shadow:none!important}@page{size:a3}body{min-width:992px!important}}body{font-family:Roboto,sans-serif;font-weight:300}html,body{height:100%;-webkit-font-smoothing:subpixel-antialiased}body{background-color:#f4f4f4}</style><link rel="stylesheet" href="styles.148a9bdfa8ba58c7.css" crossorigin="use-credentials" media="print" onload="this.media='all'"><noscript><link rel="stylesheet" href="styles.148a9bdfa8ba58c7.css"></noscript></head>
|
|
19
19
|
|
|
20
|
-
<body
|
|
20
|
+
<body>
|
|
21
21
|
<app-root></app-root>
|
|
22
|
-
<script src="runtime.
|
|
22
|
+
<script src="runtime.31a4fdaf5068860f.js" type="module" crossorigin="use-credentials"></script><script src="polyfills.985044b7a7399140.js" type="module" crossorigin="use-credentials"></script><script src="scripts.a3c9ccae4e478a7d.js" defer crossorigin="use-credentials"></script><script src="main.046ee8498dc48cc7.js" type="module" crossorigin="use-credentials"></script>
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
</body></html>
|