diff --git a/www/2757.508e833600e6e474.js b/www/2757.508e833600e6e474.js deleted file mode 100644 index 6f658a2..0000000 --- a/www/2757.508e833600e6e474.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[2757],{5553:(v,g,o)=>{o.d(g,{h:()=>s});var c=o(177),r=o(7863),m=o(4438);let s=(()=>{var i;class t{}return(i=t).\u0275fac=function(p){return new(p||i)},i.\u0275mod=m.$C({type:i}),i.\u0275inj=m.G2t({imports:[c.MD,r.bv]}),t})()},8453:(v,g,o)=>{o.d(g,{W:()=>m});var c=o(4438),r=o(7863);let m=(()=>{var s;class i{constructor(){this.title="Title"}ngOnInit(){}}return(s=i).\u0275fac=function(d){return new(d||s)},s.\u0275cmp=c.VBU({type:s,selectors:[["app-title"]],inputs:{title:"title"},decls:4,vars:1,consts:[[1,"lg:m-10"],["size","12","size-md","6","size-lg","6"],[1,"text-4xl","lg:text-6xl","font-bold"]],template:function(d,p){1&d&&(c.j41(0,"ion-row",0)(1,"ion-col",1)(2,"h1",2),c.EFF(3),c.k0s()()()),2&d&&(c.R7$(3),c.JRh(p.title))},dependencies:[r.hU,r.ln]}),i})()},2757:(v,g,o)=>{o.r(g),o.d(g,{HomePageModule:()=>x});var c=o(177),r=o(7863),m=o(4341),s=o(7650),i=o(467),t=o(4438),d=o(4796),p=o(6241),P=o(385),M=o(8453);function C(n,a){if(1&n){const u=t.RV6();t.j41(0,"ion-col",6)(1,"ion-card",7),t.bIt("click",function(){const l=t.eBV(u).$implicit,f=t.XpG();return t.Njj(f.goToProduct(l.productObjective))}),t.j41(2,"h1",8),t.EFF(3),t.k0s()()()}if(2&n){const u=a.$implicit;t.R7$(3),t.JRh(u.productObjective)}}const y=[{path:"",component:(()=>{var n;class a{constructor(e,l,f,h){this.authService=e,this.router=l,this.productService=f,this.loadingCtrl=h,this.products=[]}ionViewWillEnter(){var e=this;return(0,i.A)(function*(){try{yield e.showLoading();const l=localStorage.getItem("user");if(!l)return;const h=JSON.parse(l).orgName;e.products=yield e.productService.getProducts(h),0===e.products.length&&e.products.push({productObjective:"No products found"}),console.log(e.products),yield e.hideLoading()}catch(l){console.log(l)}})()}logout(){var e=this;return(0,i.A)(function*(){yield e.authService.logoutUser(),yield e.router.navigate(["/login"])})()}showLoading(){var e=this;return(0,i.A)(function*(){yield(yield e.loadingCtrl.create({})).present()})()}hideLoading(){var e=this;return(0,i.A)(function*(){yield e.loadingCtrl.dismiss()})()}goToProduct(e){this.router.navigate(["/graph-data-for"],{queryParams:{product:e}})}subscribe(){webpushr("fetch_id",function(e){console.log("webpushr subscriber id: "+e)})}}return(n=a).\u0275fac=function(e){return new(e||n)(t.rXU(d.u),t.rXU(s.Ix),t.rXU(p.b),t.rXU(r.Xi))},n.\u0275cmp=t.VBU({type:n,selectors:[["app-home"]],decls:10,vars:4,consts:[[3,"title"],[3,"fullscreen"],[1,"lg:m-10","md:m-10"],["size","12","size-md","4","size-lg","4","class","flex flex-row justify-center",4,"ngFor","ngForOf"],["size","12","size-md","12","size-lg","12",1,"flex","flex-row","justify-center"],[1,"w-full",3,"click"],["size","12","size-md","4","size-lg","4",1,"flex","flex-row","justify-center"],[1,"w-full","h-60","p-6","flex","flex-col","justify-center","items-center",3,"click"],[1,"text-6xl","font-bold","text-blue-500"]],template:function(e,l){1&e&&(t.nrm(0,"app-header",0),t.j41(1,"ion-content",1)(2,"ion-grid"),t.nrm(3,"app-title",0),t.j41(4,"ion-row",2),t.DNE(5,C,4,1,"ion-col",3),t.k0s(),t.j41(6,"ion-row",2)(7,"ion-col",4)(8,"ion-button",5),t.bIt("click",function(){return l.subscribe()}),t.EFF(9,"Subscribe"),t.k0s()()()()()),2&e&&(t.Y8G("title","Home"),t.R7$(),t.Y8G("fullscreen",!0),t.R7$(2),t.Y8G("title","View Analytics Of Product ..."),t.R7$(2),t.Y8G("ngForOf",l.products))},dependencies:[c.Sq,r.Jm,r.b_,r.hU,r.W9,r.lO,r.ln,P.l,M.W],styles:["#container[_ngcontent-%COMP%]{text-align:center;position:absolute;left:0;right:0;top:50%;transform:translateY(-50%)}#container[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{font-size:20px;line-height:26px}#container[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:16px;line-height:22px;color:#8c8c8c;margin:0}#container[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-decoration:none}"]}),a})()}];let O=(()=>{var n;class a{}return(n=a).\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.$C({type:n}),n.\u0275inj=t.G2t({imports:[s.iI.forChild(y),s.iI]}),a})();var _=o(5553);let x=(()=>{var n;class a{}return(n=a).\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.$C({type:n}),n.\u0275inj=t.G2t({imports:[c.MD,m.YN,r.bv,O,_.h]}),a})()}}]); \ No newline at end of file diff --git a/www/2757.89e28904ff3cf268.js b/www/2757.89e28904ff3cf268.js new file mode 100644 index 0000000..4481068 --- /dev/null +++ b/www/2757.89e28904ff3cf268.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[2757],{5553:(v,g,e)=>{e.d(g,{h:()=>c});var l=e(177),r=e(7863),m=e(4438);let c=(()=>{var i;class t{}return(i=t).\u0275fac=function(p){return new(p||i)},i.\u0275mod=m.$C({type:i}),i.\u0275inj=m.G2t({imports:[l.MD,r.bv]}),t})()},8453:(v,g,e)=>{e.d(g,{W:()=>m});var l=e(4438),r=e(7863);let m=(()=>{var c;class i{constructor(){this.title="Title"}ngOnInit(){}}return(c=i).\u0275fac=function(d){return new(d||c)},c.\u0275cmp=l.VBU({type:c,selectors:[["app-title"]],inputs:{title:"title"},decls:4,vars:1,consts:[[1,"lg:m-10"],["size","12","size-md","6","size-lg","6"],[1,"text-4xl","lg:text-6xl","font-bold"]],template:function(d,p){1&d&&(l.j41(0,"ion-row",0)(1,"ion-col",1)(2,"h1",2),l.EFF(3),l.k0s()()()),2&d&&(l.R7$(3),l.JRh(p.title))},dependencies:[r.hU,r.ln]}),i})()},2757:(v,g,e)=>{e.r(g),e.d(g,{HomePageModule:()=>E});var l=e(177),r=e(7863),m=e(4341),c=e(7650),i=e(467),t=e(4438),d=e(4796),p=e(6241),P=e(385),M=e(8453);function C(n,a){if(1&n){const u=t.RV6();t.j41(0,"ion-col",4)(1,"ion-card",5),t.bIt("click",function(){const s=t.eBV(u).$implicit,f=t.XpG();return t.Njj(f.goToProduct(s.productObjective))}),t.j41(2,"h1",6),t.EFF(3),t.k0s()()()}if(2&n){const u=a.$implicit;t.R7$(3),t.JRh(u.productObjective)}}const y=[{path:"",component:(()=>{var n;class a{constructor(o,s,f,h){this.authService=o,this.router=s,this.productService=f,this.loadingCtrl=h,this.products=[]}ionViewWillEnter(){var o=this;return(0,i.A)(function*(){try{yield o.showLoading();const s=localStorage.getItem("user");if(!s)return;const h=JSON.parse(s).orgName;o.products=yield o.productService.getProducts(h),0===o.products.length&&o.products.push({productObjective:"No products found"}),console.log(o.products),yield o.hideLoading()}catch(s){console.log(s)}})()}logout(){var o=this;return(0,i.A)(function*(){yield o.authService.logoutUser(),yield o.router.navigate(["/login"])})()}showLoading(){var o=this;return(0,i.A)(function*(){yield(yield o.loadingCtrl.create({})).present()})()}hideLoading(){var o=this;return(0,i.A)(function*(){yield o.loadingCtrl.dismiss()})()}goToProduct(o){this.router.navigate(["/graph-data-for"],{queryParams:{product:o}})}}return(n=a).\u0275fac=function(o){return new(o||n)(t.rXU(d.u),t.rXU(c.Ix),t.rXU(p.b),t.rXU(r.Xi))},n.\u0275cmp=t.VBU({type:n,selectors:[["app-home"]],decls:6,vars:4,consts:[[3,"title"],[3,"fullscreen"],[1,"lg:m-10","md:m-10"],["size","12","size-md","4","size-lg","4","class","flex flex-row justify-center",4,"ngFor","ngForOf"],["size","12","size-md","4","size-lg","4",1,"flex","flex-row","justify-center"],[1,"w-full","h-60","p-6","flex","flex-col","justify-center","items-center",3,"click"],[1,"text-6xl","font-bold","text-blue-500"]],template:function(o,s){1&o&&(t.nrm(0,"app-header",0),t.j41(1,"ion-content",1)(2,"ion-grid"),t.nrm(3,"app-title",0),t.j41(4,"ion-row",2),t.DNE(5,C,4,1,"ion-col",3),t.k0s()()()),2&o&&(t.Y8G("title","Home"),t.R7$(),t.Y8G("fullscreen",!0),t.R7$(2),t.Y8G("title","View Analytics Of Product ..."),t.R7$(2),t.Y8G("ngForOf",s.products))},dependencies:[l.Sq,r.b_,r.hU,r.W9,r.lO,r.ln,P.l,M.W],styles:["#container[_ngcontent-%COMP%]{text-align:center;position:absolute;left:0;right:0;top:50%;transform:translateY(-50%)}#container[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{font-size:20px;line-height:26px}#container[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:16px;line-height:22px;color:#8c8c8c;margin:0}#container[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-decoration:none}"]}),a})()}];let O=(()=>{var n;class a{}return(n=a).\u0275fac=function(o){return new(o||n)},n.\u0275mod=t.$C({type:n}),n.\u0275inj=t.G2t({imports:[c.iI.forChild(y),c.iI]}),a})();var x=e(5553);let E=(()=>{var n;class a{}return(n=a).\u0275fac=function(o){return new(o||n)},n.\u0275mod=t.$C({type:n}),n.\u0275inj=t.G2t({imports:[l.MD,m.YN,r.bv,O,x.h]}),a})()}}]); \ No newline at end of file diff --git a/www/5371.6ea8dd7ee408088a.js b/www/5371.6ea8dd7ee408088a.js deleted file mode 100644 index a9f4008..0000000 --- a/www/5371.6ea8dd7ee408088a.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[5371],{5553:(f,m,o)=>{o.d(m,{h:()=>s});var g=o(177),d=o(7863),i=o(4438);let s=(()=>{var l;class e{}return(l=e).\u0275fac=function(y){return new(y||l)},l.\u0275mod=i.$C({type:l}),l.\u0275inj=i.G2t({imports:[g.MD,d.bv]}),e})()},8453:(f,m,o)=>{o.d(m,{W:()=>i});var g=o(4438),d=o(7863);let i=(()=>{var s;class l{constructor(){this.title="Title"}ngOnInit(){}}return(s=l).\u0275fac=function(u){return new(u||s)},s.\u0275cmp=g.VBU({type:s,selectors:[["app-title"]],inputs:{title:"title"},decls:4,vars:1,consts:[[1,"lg:m-10"],["size","12","size-md","6","size-lg","6"],[1,"text-4xl","lg:text-6xl","font-bold"]],template:function(u,y){1&u&&(g.j41(0,"ion-row",0)(1,"ion-col",1)(2,"h1",2),g.EFF(3),g.k0s()()()),2&u&&(g.R7$(3),g.JRh(y.title))},dependencies:[d.hU,d.ln]}),l})()},5371:(f,m,o)=>{o.r(m),o.d(m,{SettingsPageModule:()=>E});var g=o(177),d=o(4341),i=o(7863),s=o(7650),l=o(467),e=o(4438),u=o(4796),y=o(201),M=o(385),v=o(8453);const F=[{path:"",component:(()=>{var r;class h{constructor(t,n,c,a,C){this.authService=t,this.router=n,this.alertCtrl=c,this.githubService=a,this.loadingCtrl=C,this.gitKey="",this.repoName="",this.branchName="",this.owner="",this.user={},this.orgname="",this.version="1.10.200"}ngOnInit(){}ionViewWillEnter(){var t=this;return(0,l.A)(function*(){t.user=localStorage.getItem("user")?JSON.parse(localStorage.getItem("user")||"{}"):null,t.user?(t.orgname=t.user.orgName||"",yield t.getSyncRepo()):yield t.showAlert("No user found","Error")})()}logout(){var t=this;return(0,l.A)(function*(){yield t.authService.logoutUser(),yield t.router.navigate(["/login"])})()}getSyncRepo(){var t=this;return(0,l.A)(function*(){yield t.showLoading();const n=yield t.githubService.getSyncRepo(t.orgname);n&&(t.gitKey=n.key,t.repoName=n.repo,t.branchName=n.branch,t.owner=n.owner),yield t.hideLoading()})()}syncRepo(){var t=this;return(0,l.A)(function*(){yield t.showLoading(),t.gitKey&&t.repoName&&t.branchName&&t.owner&&""!==t.gitKey&&""!==t.repoName&&""!==t.branchName&&""!==t.owner?(yield t.githubService.syncRepo(t.orgname,t.gitKey,t.repoName,t.branchName,t.owner),yield t.hideLoading()):yield t.showAlert("Please fill in all fields","Error")})()}showAlert(t,n){var c=this;return(0,l.A)(function*(){yield(yield c.alertCtrl.create({header:n,message:t,buttons:["OK"]})).present()})()}showLoading(){var t=this;return(0,l.A)(function*(){yield(yield t.loadingCtrl.create({})).present()})()}hideLoading(){var t=this;return(0,l.A)(function*(){yield t.loadingCtrl.dismiss()})()}notify(){Notification.requestPermission().then(function(t){console.log("granted"===t?"Permission granted for notifications":"Permission denied for notifications")})}}return(r=h).\u0275fac=function(t){return new(t||r)(e.rXU(u.u),e.rXU(s.Ix),e.rXU(i.hG),e.rXU(y.p),e.rXU(i.Xi))},r.\u0275cmp=e.VBU({type:r,selectors:[["app-settings"]],decls:64,vars:9,consts:[[3,"title"],[3,"fullscreen"],[1,"lg:m-10","md:m-10"],["size","12","size-md","12","size-lg","12",1,"flex","flex-row","justify-center"],["color","danger",1,"min-w-full",3,"click"],["size","12","size-md","12","size-lg","12",1,""],[1,"p-5"],[1,"text-2xl"],[1,"text-white"],["href","https://github.com/settings/tokens",1,"text-blue-500"],["placeholder","Enter your key here...",1,"text-white",3,"ngModelChange","ngModel"],["placeholder","Enter your repo name here...",1,"text-white",3,"ngModelChange","ngModel"],["placeholder","Enter your branch name here...",1,"text-white",3,"ngModelChange","ngModel"],["color","primary",1,"min-w-full",3,"click"],["size","12",1,"flex","flex-row","justify-end","items-center"],[1,"text-sm"]],template:function(t,n){1&t&&(e.nrm(0,"app-header",0),e.j41(1,"ion-content",1)(2,"ion-grid"),e.nrm(3,"app-title",0),e.j41(4,"ion-row",2)(5,"ion-col",3)(6,"ion-button",4),e.bIt("click",function(){return n.logout()}),e.EFF(7,"Logout"),e.k0s()()(),e.nrm(8,"app-title",0),e.j41(9,"ion-row",2)(10,"ion-col",5)(11,"ion-card",6)(12,"ion-card",6)(13,"ion-card-title",7),e.EFF(14,"1. Add a GitHub Key"),e.k0s(),e.j41(15,"ion-card-content")(16,"p",8),e.EFF(17," Add a GitHub key to sync with your GitHub repo. You will be able to create tests with DevProbeAI. "),e.j41(18,"a",9),e.EFF(19,"Get A GitHub Key Here !!!"),e.k0s()()(),e.j41(20,"ion-card")(21,"ion-card-content")(22,"ion-label"),e.EFF(23,"GitHub Key"),e.k0s(),e.j41(24,"ion-input",10),e.mxI("ngModelChange",function(a){return e.DH7(n.gitKey,a)||(n.gitKey=a),a}),e.k0s()()()(),e.j41(25,"ion-card",6)(26,"ion-card-title",7),e.EFF(27,"2. Repo Name"),e.k0s(),e.j41(28,"ion-card-content")(29,"p",8),e.EFF(30," Add the name of the repo you want to sync with DevProbeAI. "),e.k0s()(),e.j41(31,"ion-card")(32,"ion-card-content")(33,"ion-label"),e.EFF(34,"Repo Name"),e.k0s(),e.j41(35,"ion-input",11),e.mxI("ngModelChange",function(a){return e.DH7(n.repoName,a)||(n.repoName=a),a}),e.k0s()()()(),e.j41(36,"ion-card",6)(37,"ion-card-title",7),e.EFF(38,"3. Branch Name"),e.k0s(),e.j41(39,"ion-card-content")(40,"p",8),e.EFF(41," Add the name of the branch you want to sync with DevProbeAI. "),e.k0s()(),e.j41(42,"ion-card")(43,"ion-card-content")(44,"ion-label"),e.EFF(45,"Branch Name"),e.k0s(),e.j41(46,"ion-input",12),e.mxI("ngModelChange",function(a){return e.DH7(n.branchName,a)||(n.branchName=a),a}),e.k0s()()()(),e.j41(47,"ion-card",6)(48,"ion-card-title",7),e.EFF(49,"4. Owner Name"),e.k0s(),e.j41(50,"ion-card-content")(51,"p",8),e.EFF(52," Add the name of the owner of the repo you want to sync with DevProbeAI. "),e.k0s()(),e.j41(53,"ion-card")(54,"ion-card-content")(55,"ion-label"),e.EFF(56,"Owner Name"),e.k0s(),e.j41(57,"ion-input",12),e.mxI("ngModelChange",function(a){return e.DH7(n.owner,a)||(n.owner=a),a}),e.k0s()()()(),e.j41(58,"ion-button",13),e.bIt("click",function(){return n.syncRepo()}),e.EFF(59,"Sync Repo"),e.k0s()()()(),e.j41(60,"ion-row")(61,"ion-col",14)(62,"h1",15),e.EFF(63),e.k0s()()()()()),2&t&&(e.Y8G("title","Settings"),e.R7$(),e.Y8G("fullscreen",!0),e.R7$(2),e.Y8G("title","Account SingOut"),e.R7$(5),e.Y8G("title","Sync GitHub Repo"),e.R7$(16),e.R50("ngModel",n.gitKey),e.R7$(11),e.R50("ngModel",n.repoName),e.R7$(11),e.R50("ngModel",n.branchName),e.R7$(11),e.R50("ngModel",n.owner),e.R7$(6),e.SpI("Version: ",n.version,""))},dependencies:[d.BC,d.vS,i.Jm,i.b_,i.I9,i.tN,i.hU,i.W9,i.lO,i.$w,i.he,i.ln,i.Gw,M.l,v.W]}),h})()}];let P=(()=>{var r;class h{}return(r=h).\u0275fac=function(t){return new(t||r)},r.\u0275mod=e.$C({type:r}),r.\u0275inj=e.G2t({imports:[s.iI.forChild(F),s.iI]}),h})();var S=o(5553);let E=(()=>{var r;class h{}return(r=h).\u0275fac=function(t){return new(t||r)},r.\u0275mod=e.$C({type:r}),r.\u0275inj=e.G2t({imports:[g.MD,d.YN,i.bv,P,S.h]}),h})()}}]); \ No newline at end of file diff --git a/www/628.8d5c8e57e2a37c54.js b/www/628.8d5c8e57e2a37c54.js new file mode 100644 index 0000000..318ab47 --- /dev/null +++ b/www/628.8d5c8e57e2a37c54.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[628],{5553:(b,p,i)=>{i.d(p,{h:()=>c});var g=i(177),d=i(7863),s=i(4438);let c=(()=>{var a;class e{}return(a=e).\u0275fac=function(f){return new(f||a)},a.\u0275mod=s.$C({type:a}),a.\u0275inj=s.G2t({imports:[g.MD,d.bv]}),e})()},8453:(b,p,i)=>{i.d(p,{W:()=>s});var g=i(4438),d=i(7863);let s=(()=>{var c;class a{constructor(){this.title="Title"}ngOnInit(){}}return(c=a).\u0275fac=function(h){return new(h||c)},c.\u0275cmp=g.VBU({type:c,selectors:[["app-title"]],inputs:{title:"title"},decls:4,vars:1,consts:[[1,"lg:m-10"],["size","12","size-md","6","size-lg","6"],[1,"text-4xl","lg:text-6xl","font-bold"]],template:function(h,f){1&h&&(g.j41(0,"ion-row",0)(1,"ion-col",1)(2,"h1",2),g.EFF(3),g.k0s()()()),2&h&&(g.R7$(3),g.JRh(f.title))},dependencies:[d.hU,d.ln]}),a})()},628:(b,p,i)=>{i.r(p),i.d(p,{SettingsPageModule:()=>C});var g=i(177),d=i(4341),s=i(7863),c=i(7650),a=i(467),e=i(4438),h=i(4796),f=i(201),y=i(4262);let F=(()=>{var o;class u{constructor(t){this.firestore=t}saveNotificationID(t,n){var l=this;return(0,a.A)(function*(){const r=(0,y.H9)(l.firestore,"users",t.uid),v=yield(0,y.x7)(r);if(v.exists()){const S=v.data();return S.notificationID=n,yield(0,y.BN)(r,S),!0}return console.log("No such document!"),!1})()}}return(o=u).\u0275fac=function(t){return new(t||o)(e.KVO(y._7))},o.\u0275prov=e.jDH({token:o,factory:o.\u0275fac,providedIn:"root"}),u})();var M=i(385),w=i(8453);const P=[{path:"",component:(()=>{var o;class u{constructor(t,n,l,r,v,S){this.authService=t,this.router=n,this.alertCtrl=l,this.githubService=r,this.loadingCtrl=v,this.notificationService=S,this.gitKey="",this.repoName="",this.branchName="",this.owner="",this.user={},this.orgname="",this.version="1.10.200"}ngOnInit(){}ionViewWillEnter(){var t=this;return(0,a.A)(function*(){t.user=localStorage.getItem("user")?JSON.parse(localStorage.getItem("user")||"{}"):null,t.user?(t.orgname=t.user.orgName||"",yield t.getSyncRepo()):yield t.showAlert("No user found","Error")})()}logout(){var t=this;return(0,a.A)(function*(){yield t.authService.logoutUser(),yield t.router.navigate(["/login"])})()}getSyncRepo(){var t=this;return(0,a.A)(function*(){yield t.showLoading();const n=yield t.githubService.getSyncRepo(t.orgname);n&&(t.gitKey=n.key,t.repoName=n.repo,t.branchName=n.branch,t.owner=n.owner),yield t.hideLoading()})()}syncRepo(){var t=this;return(0,a.A)(function*(){yield t.showLoading(),t.gitKey&&t.repoName&&t.branchName&&t.owner&&""!==t.gitKey&&""!==t.repoName&&""!==t.branchName&&""!==t.owner?(yield t.githubService.syncRepo(t.orgname,t.gitKey,t.repoName,t.branchName,t.owner),yield t.hideLoading()):yield t.showAlert("Please fill in all fields","Error")})()}showAlert(t,n){var l=this;return(0,a.A)(function*(){yield(yield l.alertCtrl.create({header:n,message:t,buttons:["OK"]})).present()})()}showLoading(){var t=this;return(0,a.A)(function*(){yield(yield t.loadingCtrl.create({})).present()})()}hideLoading(){var t=this;return(0,a.A)(function*(){yield t.loadingCtrl.dismiss()})()}notify(){Notification.requestPermission().then(function(t){console.log("granted"===t?"Permission granted for notifications":"Permission denied for notifications")})}subscribe(){var t=this;return(0,a.A)(function*(){webpushr("fetch_id",function(){var n=(0,a.A)(function*(l){console.log("webpushr subscriber id: "+l),yield t.notificationService.saveNotificationID(t.user,l)});return function(l){return n.apply(this,arguments)}}())})()}}return(o=u).\u0275fac=function(t){return new(t||o)(e.rXU(h.u),e.rXU(c.Ix),e.rXU(s.hG),e.rXU(f.p),e.rXU(s.Xi),e.rXU(F))},o.\u0275cmp=e.VBU({type:o,selectors:[["app-settings"]],decls:72,vars:10,consts:[[3,"title"],[3,"fullscreen"],[1,"lg:m-10","md:m-10"],["size","12","size-md","12","size-lg","12",1,"flex","flex-row","justify-center"],["color","danger",1,"min-w-full",3,"click"],["size","12","size-md","12","size-lg","12",1,""],[1,"p-5"],[1,"text-2xl"],[1,"text-white"],["href","https://github.com/settings/tokens",1,"text-blue-500"],["placeholder","Enter your key here...",1,"text-white",3,"ngModelChange","ngModel"],["placeholder","Enter your repo name here...",1,"text-white",3,"ngModelChange","ngModel"],["placeholder","Enter your branch name here...",1,"text-white",3,"ngModelChange","ngModel"],["color","primary",1,"min-w-full",3,"click"],[1,"w-full",3,"click"],["size","12",1,"flex","flex-row","justify-end","items-center"],[1,"text-sm"]],template:function(t,n){1&t&&(e.nrm(0,"app-header",0),e.j41(1,"ion-content",1)(2,"ion-grid"),e.nrm(3,"app-title",0),e.j41(4,"ion-row",2)(5,"ion-col",3)(6,"ion-button",4),e.bIt("click",function(){return n.logout()}),e.EFF(7,"Logout"),e.k0s()()(),e.nrm(8,"app-title",0),e.j41(9,"ion-row",2)(10,"ion-col",5)(11,"ion-card",6)(12,"ion-card",6)(13,"ion-card-title",7),e.EFF(14,"1. Add a GitHub Key"),e.k0s(),e.j41(15,"ion-card-content")(16,"p",8),e.EFF(17," Add a GitHub key to sync with your GitHub repo. You will be able to create tests with DevProbeAI. "),e.j41(18,"a",9),e.EFF(19,"Get A GitHub Key Here !!!"),e.k0s()()(),e.j41(20,"ion-card")(21,"ion-card-content")(22,"ion-label"),e.EFF(23,"GitHub Key"),e.k0s(),e.j41(24,"ion-input",10),e.mxI("ngModelChange",function(r){return e.DH7(n.gitKey,r)||(n.gitKey=r),r}),e.k0s()()()(),e.j41(25,"ion-card",6)(26,"ion-card-title",7),e.EFF(27,"2. Repo Name"),e.k0s(),e.j41(28,"ion-card-content")(29,"p",8),e.EFF(30," Add the name of the repo you want to sync with DevProbeAI. "),e.k0s()(),e.j41(31,"ion-card")(32,"ion-card-content")(33,"ion-label"),e.EFF(34,"Repo Name"),e.k0s(),e.j41(35,"ion-input",11),e.mxI("ngModelChange",function(r){return e.DH7(n.repoName,r)||(n.repoName=r),r}),e.k0s()()()(),e.j41(36,"ion-card",6)(37,"ion-card-title",7),e.EFF(38,"3. Branch Name"),e.k0s(),e.j41(39,"ion-card-content")(40,"p",8),e.EFF(41," Add the name of the branch you want to sync with DevProbeAI. "),e.k0s()(),e.j41(42,"ion-card")(43,"ion-card-content")(44,"ion-label"),e.EFF(45,"Branch Name"),e.k0s(),e.j41(46,"ion-input",12),e.mxI("ngModelChange",function(r){return e.DH7(n.branchName,r)||(n.branchName=r),r}),e.k0s()()()(),e.j41(47,"ion-card",6)(48,"ion-card-title",7),e.EFF(49,"4. Owner Name"),e.k0s(),e.j41(50,"ion-card-content")(51,"p",8),e.EFF(52," Add the name of the owner of the repo you want to sync with DevProbeAI. "),e.k0s()(),e.j41(53,"ion-card")(54,"ion-card-content")(55,"ion-label"),e.EFF(56,"Owner Name"),e.k0s(),e.j41(57,"ion-input",12),e.mxI("ngModelChange",function(r){return e.DH7(n.owner,r)||(n.owner=r),r}),e.k0s()()()(),e.j41(58,"ion-button",13),e.bIt("click",function(){return n.syncRepo()}),e.EFF(59,"Sync Repo"),e.k0s()()()(),e.nrm(60,"app-title",0),e.j41(61,"ion-row",2)(62,"ion-col",5)(63,"p"),e.EFF(64,"Receive push notifications when new data is available. Like new tests, incidents, etc."),e.k0s()(),e.j41(65,"ion-col",3)(66,"ion-button",14),e.bIt("click",function(){return n.subscribe()}),e.EFF(67,"Subscribe"),e.k0s()()(),e.j41(68,"ion-row")(69,"ion-col",15)(70,"h1",16),e.EFF(71),e.k0s()()()()()),2&t&&(e.Y8G("title","Settings"),e.R7$(),e.Y8G("fullscreen",!0),e.R7$(2),e.Y8G("title","Account SingOut"),e.R7$(5),e.Y8G("title","Sync GitHub Repo"),e.R7$(16),e.R50("ngModel",n.gitKey),e.R7$(11),e.R50("ngModel",n.repoName),e.R7$(11),e.R50("ngModel",n.branchName),e.R7$(11),e.R50("ngModel",n.owner),e.R7$(3),e.Y8G("title","Receive Push Notifications"),e.R7$(11),e.SpI("Version: ",n.version,""))},dependencies:[d.BC,d.vS,s.Jm,s.b_,s.I9,s.tN,s.hU,s.W9,s.lO,s.$w,s.he,s.ln,s.Gw,M.l,w.W]}),u})()}];let _=(()=>{var o;class u{}return(o=u).\u0275fac=function(t){return new(t||o)},o.\u0275mod=e.$C({type:o}),o.\u0275inj=e.G2t({imports:[c.iI.forChild(P),c.iI]}),u})();var E=i(5553);let C=(()=>{var o;class u{}return(o=u).\u0275fac=function(t){return new(t||o)},o.\u0275mod=e.$C({type:o}),o.\u0275inj=e.G2t({imports:[g.MD,d.YN,s.bv,_,E.h]}),u})()}}]); \ No newline at end of file diff --git a/www/index.html b/www/index.html index 6730c99..7ba6dec 100644 --- a/www/index.html +++ b/www/index.html @@ -42,6 +42,6 @@