@mxtommy/kip 4.0.1 → 4.0.2
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 +11 -2
- package/package.json +1 -1
- package/public/chunk-B4SMHL7P.js +1 -0
- package/public/{chunk-TCZ5ZAXQ.js → chunk-BEFXDBJY.js} +1 -1
- package/public/{chunk-B3P2F52Y.js → chunk-CA2BN4YV.js} +7 -7
- package/public/chunk-D2CYLQZF.js +1 -0
- package/public/{chunk-5FWE6Y4K.js → chunk-DKOFT6NI.js} +12 -12
- package/public/{chunk-75QTGQOO.js → chunk-E7MNINLP.js} +1 -1
- package/public/{chunk-AYVYZ27A.js → chunk-F75BVJPY.js} +2 -2
- package/public/{chunk-SVP7ZRWY.js → chunk-H3EFQCTE.js} +1 -1
- package/public/{chunk-P3OU5V2Y.js → chunk-KI5CZR7P.js} +1 -1
- package/public/{chunk-KHL7FGID.js → chunk-NBMGYSW2.js} +1 -1
- package/public/{chunk-V7PWLOQ2.js → chunk-OA5PBKO5.js} +2 -2
- package/public/{chunk-CTZYGIOB.js → chunk-PPT35KWJ.js} +1 -1
- package/public/chunk-TIWUK3AU.js +1 -0
- package/public/{chunk-ACTDISHE.js → chunk-UIO7WC72.js} +1 -1
- package/public/{chunk-CVTWABMM.js → chunk-V2FKRRBL.js} +1 -1
- package/public/{chunk-JCW5H5WP.js → chunk-WYPJEP5R.js} +1 -1
- package/public/index.html +1 -1
- package/public/{main-3LAUI5JW.js → main-7RENLC7I.js} +1 -1
- package/public/chunk-4HLTLR5F.js +0 -1
- package/public/chunk-CZJ7AC6N.js +0 -1
- package/public/chunk-IPSRX374.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as c}from"./chunk-
|
|
1
|
+
import{a as c}from"./chunk-UIO7WC72.js";import{b as g}from"./chunk-WYPJEP5R.js";import"./chunk-OQULS6SV.js";import{k as l}from"./chunk-H3EFQCTE.js";import{k as a,m as r}from"./chunk-F75BVJPY.js";import"./chunk-SZ2GUIT5.js";import{Oa as s,ga as t}from"./chunk-OB3QLUH6.js";var v=(()=>{class o{dialog=t(l);auth=t(a);appService=t(g);appSettingsService=t(r);connectionConfig=null;ngOnInit(){this.connectionConfig=this.appSettingsService.getConnectionConfig(),this.openUserCredentialModal("Sign in failed: Incorrect user/password. Enter valide credentials or access the Confifuration/Settings menu, validate the server URL or/and disable the user Sign in option")}openUserCredentialModal(e){this.dialog.open(c,{disableClose:!0,data:{user:this.connectionConfig.loginName,password:this.connectionConfig.loginPassword,error:e}}).afterClosed().subscribe(i=>{i===void 0||!i||(this.connectionConfig.loginName=i.user,this.connectionConfig.loginPassword=i.password,this.appSettingsService.setConnectionConfig(this.connectionConfig),this.serverLogin())})}serverLogin(e){this.auth.login({usr:this.connectionConfig.loginName,pwd:this.connectionConfig.loginPassword,newUrl:e}).then(()=>{this.appSettingsService.reloadApp()}).catch(n=>{n.status==401?(this.openUserCredentialModal("Sign in failed: Invalide user/password. Enter valide credentials"),console.log("[Setting-SignalK Component] Sign in failed: "+n.error.message)):n.status==404?(this.appService.sendSnackbarNotification("Sign in failed: Login API not found at URL. See connection detail status in Configuration/Settings",5e3,!1),console.log("[Setting-SignalK Component] Sign in failed: "+n.error.message)):n.status==0?(this.appService.sendSnackbarNotification("Sign in failed: Cannot reach server at Signal K URL. See connection detail status in Configuration/Settings",5e3,!1),console.log("[Setting-SignalK Component] Sign in failed: Cannot reach server at Signal K URL:"+n.message)):(this.appService.sendSnackbarNotification("Unknown authentication failure: "+JSON.stringify(n),5e3,!1),console.log("[Setting-SignalK Component] Unknown login error response: "+JSON.stringify(n)))})}static \u0275fac=function(n){return new(n||o)};static \u0275cmp=s({type:o,selectors:[["app-widget-login"]],decls:0,vars:0,template:function(n,i){},encapsulation:2})}return o})();export{v as WidgetLoginComponent};
|