PageSourceSearch

https://gui.dockstore.org/2.17.0-9fcf03e/728.44972302a59b294c.js

js dockstore.org collected 2026-09-24 09:10:27 UTC 10,641 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkdockstore_ui2=self.webpackChunkdockstore_ui2||[]).push([[728],{3728:(q,d,n)=>{n.r(d),n.d(d,{UserPageRouting:()=>Z});var c=n(59110),F=n(60475),R=n(25080),m=n(7605),k=n(63294),G=n(17907),f=n(20951),I=n(63567),L=n(45),E=n(69669),u=n(96850),p=n(14823),v=n(88834),h=n(1975),j=n(86600),i=n(25596),b=n(60177),x=n(4816),P=n(51958),l=n(15848),y=n(42152),U=n(71997),t=n(54438),A=n(75351),C=n(6898),$=n(25787);function H(a,s){if(1&a&&(t.j41(0,"span"),t.EFF(1),t.k0s()),2&a){const e=t.XpG(2);t.R7$(),t.SpI(" ",e.gitHubProfile.bio," ")}}function O(a,s){if(1&a&&(t.j41(0,"a",17),t.EFF(1),t.k0s()),2&a){const e=t.XpG(2);t.FS9("href",null==e.gitHubProfile?null:e.gitHubProfile.link,t.B4B),t.R7$(),t.SpI(" ",e.gitHubProfile.link," ")}}function S(a,s){if(1&a&&(t.j41(0,"mat-card",11),t.nrm(1,"img",12),t.j41(2,"mat-card-content",13)(3,"mat-card-title",14),t.EFF(4),t.k0s(),t.j41(5,"mat-card-subtitle",15),t.DNE(6,H,2,1,"span",10)(7,O,2,2,"a",16),t.k0s()()()),2&a){const e=t.XpG();t.R7$(),t.Y8G("src",null==e.user?null:e.user.avatarUrl,t.B4B),t.R7$(3),t.JRh(null==e.user?null:e.user.username),t.R7$(2),t.Y8G("ngIf",null==e.gitHubProfile?null:e.gitHubProfile.bio),t.R7$(),t.Y8G("ngIf",null==e.gitHubProfile?null:e.gitHubProfile.link)}}function T(a,s){if(1&a&&(t.j41(0,"span"),t.EFF(1,"Account Name: "),t.j41(2,"span"),t.EFF(3),t.k0s()()),2&a){const e=t.XpG(2);t.R7$(3),t.JRh(e.gitHubProfile.name)}}function B(a,s){if(1&a){const e=t.RV6();t.j41(0,"span")(1,"button",29),t.bIt("click",function(){t.eBV(e);const r=t.XpG(2);return t.Njj(r.openGitHubAppsLogs(r.user.id))}),t.EFF(2," Apps Logs "),t.k0s()()}}function Y(a,s){1&a&&t.nrm(0,"mat-divider",30)}function X(a,s){if(1&a&&(t.j41(0,"mat-card-actions",31)(1,"a",25)(2,"button",32)(3,"mat-icon",33),t.EFF(4,"open_in_new"),t.k0s(),t.EFF(5," View "),t.k0s()()()),2&a){const e=t.XpG(2);t.Y8G("align","end"),t.R7$(),t.Mz_("href","https://github.com/",null==e.gitHubProfile?null:e.gitHubProfile.username,"",t.B4B)}}function D(a,s){if(1&a&&(t.j41(0,"mat-card",18)(1,"mat-card-content",19)(2,"div",20),t.nrm(3,"img",21),t.k0s(),t.j41(4,"mat-card-title-group",22)(5,"mat-card-title",23),t.EFF(6,"GitHub Account"),t.k0s(),t.j41(7,"mat-card-subtitle",24),t.DNE(8,T,4,1,"span",10),t.j41(9,"span"),t.EFF(10," Username: "),t.j41(11,"a",25)(12,"span"),t.EFF(13),t.k0s()()(),t.DNE(14,B,3,0,"span",10),t.k0s(),t.nrm(15,"img",26),t.k0s()(),t.DNE(16,Y,1,0,"mat-divider",27)(17,X,6,3,"mat-card-actions",28),t.k0s()),2&a){const e=t.XpG();t.R7$(8),t.Y8G("ngIf",e.gitHubProfile.name),t.R7$(3),t.Mz_("href","https://github.com/",e.gitHubProfile.username,"",t.B4B),t.R7$(2),t.JRh(e.gitHubProfile.username),t.R7$(),t.Y8G("ngIf",e.loggedInUserIsAdminOrCurator),t.R7$(),t.Y8G("src",e.gitHubProfile.avatarURL,t.B4B),t.R7$(),t.Y8G("ngIf",!(null!=e.user&&e.user.orcid||e.googleProfile)),t.R7$(),t.Y8G("ngIf",!(null!=e.user&&e.user.orcid||e.googleProfile))}}function N(a,s){if(1&a&&(t.j41(0,"mat-card",18)(1,"mat-card-content",19)(2,"div",20),t.nrm(3,"img",34),t.k0s(),t.j41(4,"mat-card-title-group")(5,"mat-card-title",23),t.EFF(6,"ORCID Account"),t.k0s(),t.j41(7,"mat-card-subtitle",15)(8,"a",25)(9,"span",35),t.EFF(10),t.k0s()()()()()()),2&a){const e=t.XpG();t.R7$(8),t.Mz_("href","https://orcid.org/",e.user.orcid,"",t.B4B),t.R7$(2),t.SpI("https://orcid.org/",null==e.user?null:e.user.orcid,"")}}function M(a,s){if(1&a&&(t.j41(0,"mat-card",18)(1,"mat-card-content",19)(2,"div",20),t.nrm(3,"img",36),t.k0s(),t.j41(4,"mat-card-title-group",37)(5,"mat-card-title",23),t.EFF(6,"Google Account"),t.k0s(),t.j41(7,"mat-card-subtitle",15)(8,"span"),t.EFF(9),t.k0s()(),t.nrm(10,"img",38),t.k0s()()()),2&a){const e=t.XpG();t.R7$(9),t.SpI("Account Name: ",e.googleProfile.name,""),t.R7$(),t.Y8G("src",e.googleProfile.avatarURL,t.B4B)}}function _(a,s){1&a&&(t.j41(0,"div",39)(1,"mat-icon"),t.EFF(2,"restore"),t.k0s(),t.j41(3,"span"),t.EFF(4,"Activity"),t.k0s()())}function Q(a,s){1&a&&(t.j41(0,"div",39)(1,"span"),t.EFF(2,"Other Linked Accounts"),t.k0s()())}function z(a,s){1&a&&(t.j41(0,"div")(1,"mat-card",42)(2,"mat-card-content"),t.EFF(3," This user has no other linked accounts. "),t.k0s()()())}function V(a,s){if(1&a&&(t.j41(0,"div",43)(1,"mat-card")(2,"mat-card-content",19)(3,"div",20),t.nrm(4,"img",44),t.k0s(),t.j41(5,"mat-card-title-group")(6,"mat-card-title",23),t.EFF(7),t.k0s(),t.j41(8,"mat-card-subtitle",15)(9,"span"),t.EFF(10),t.k0s()()()()()()),2&a){const e=s.$implicit;t.R7$(),t.BMQ("data-cy","other-linked-accounts-"+e.name),t.R7$(3),t.Mz_("src","https://gui.dockstore.org/2.17.0-9fcf03e/assets/images/account-logos/",e.logo,"",t.B4B),t.Mz_("alt","",e.name," logo"),t.R7$(3),t.SpI("",e.name," Account"),t.R7$(),t.BMQ("data-cy",e.name+"-username"),t.R7$(2),t.SpI("Username: ",e.username,"")}}function J(a,s){if(1&a&&(t.j41(0,"mat-tab"),t.DNE(1,Q,3,0,"ng-template",8),t.j41(2,"div",40),t.DNE(3,z,4,0,"div",10)(4,V,11,8,"div",41),t.k0s()()),2&a){const e=t.XpG();t.R7$(3),t.Y8G("ngIf",0===e.otherLinkedAccountsInfo.length),t.R7$(),t.Y8G("ngForOf",e.otherLinkedAccountsInfo)}}const Z=[{path:":username",component:(()=>{class a extends L.C{constructor(e,o,r,g,K,W,w){super(),this.dialog=e,this.userService=o,this.usersService=r,this.activatedRoute=g,this.alertService=K,this.userQuery=W,this.urlResolverService=w,this.TokenSource=c.x,this.otherLinkedAccountsInfo=[],this.accountsInfo=f.wx,this.publicAccountsSource=[c.x.GITHUB,c.x.GOOGLE,c.x.ORCID]}getUserInfo(e){this.usersService.listUser(e,"userProfiles").subscribe(o=>{if(this.user=o,o){this.user.avatarUrl||(this.user.avatarUrl=this.userService.gravatarUrl(null));const r=o.userProfiles;r&&(this.googleProfile=r[c.x.GOOGLE],this.googleProfile&&!this.googleProfile.avatarURL&&(this.googleProfile.avatarURL=this.userService.gravatarUrl(this.googleProfile.avatarURL)),this.gitHubProfile=r[c.x.GITHUB],this.gitHubProfile&&!this.gitHubProfile.avatarURL&&(this.gitHubProfile.avatarURL=this.userService.gravatarUrl(this.gitHubProfile.avatarURL))),this.getOtherLinkedAccounts()}},o=>{this.alertService.detailedError(o),this.urlResolverService.showPageNotFound()})}openGitHubAppsLogs(e){this.dialog.open(G.I,{width:f.S9,data:{userId:e}})}getOtherLinkedAccounts(){this.otherLinkedAccountsInfo=[],this.usersService.getUserTokens(this.user.id).pipe((0,m.Q)(this.ngUnsubscribe)).subscribe(e=>{for(const o of this.accountsInfo){const r=e.find(g=>g.tokenSource===o.source);r&&!this.publicAccountsSource.includes(o.source)&&this.otherLinkedAccountsInfo.push(Object.assign({username:r.username},o))}})}ngOnInit(){this.activatedRoute.params.pipe((0,m.Q)(this.ngUnsubscribe)).subscribe(e=>this.getUserInfo(e.username)),this.userQuery.isAdminOrCurator$.pipe((0,m.Q)(this.ngUnsubscribe)).subscribe(e=>{this.loggedInUserIsAdminOrCurator=e})}static{this.\u0275fac=function(o){return new(o||a)(t.rXU(A.bZ),t.rXU(R.D),t.rXU(F.g),t.rXU(C.nX),t.rXU(k.u),t.rXU(I.a),t.rXU($.r))}}static{this.\u0275cmp=t.VBU({type:a,selectors:[["app-user-page"]],standalone:!0,features:[t.Vt3,t.aNF],decls:21,vars:6,consts:[["fxLayout","","fxLayoutAlign","space-between stretch"],["fxHide.lt-sm","","fxLayout","","fxLayoutGap","1rem"],[1,"container"],["fxLayout","","fxLayout.lt-md","column","fxLayoutAlign","center","fxLayoutGap","1rem",1,"my-5"],["fxFlex.gt-md","25","fxFlex.lt-md","100","fxLayout","column","fxLayoutAlign","center",4,"ngIf"],["fxLayout","column","fxLayoutGap","1rem","fxFlex",""],["class","h-100",4,"ngIf"],[1,"pb-5","purple-tab-group"],["mat-tab-label",""],[1,"p-2"],[4,"ngIf"],["fxFlex.gt-md","25","fxFlex.lt-md","100","fxLayout","column","fxLayoutAlign","center"],["mat-card-image","","alt","Dockstore avatar",1,"mt-4","mx-auto","mb-3",3,"src"],["fxLayout","column","fxLayoutAlign","center center"],[1,"accent-1-dark","small-card-title"],[1,"accent-1-dark"],["rel","noopener noreferrer","target","_blank",3,"href",4,"ngIf"],["rel","noopener noreferrer","target","_blank",3,"href"],[1,"h-100"],["fxLayout","","fxLayoutAlign","start center"],["mat-card-avatar","","matBadge","\u2713",1,"mr-4","verified-badge"],["src","https://gui.dockstore.org/2.17.0-9fcf03e/assets/images/account-logos/github.svg","alt","GitHub logo",1,"w-100"],["fxLayoutAlign","space-between center"],[1,"small-card-title"],["fxLayout.lt-md","column","fxLayoutGap","1rem",1,"accent-1-dark"],["target","_blank",3,"href"],["mat-card-avatar","","alt","GitHub avatar",3,"src"],["class","mt-2",4,"ngIf"],[3,"align",4,"ngIf"],["matTooltip","View the user's GitHub App Logs","mat-stroked-button","","data-cy","user-app-logs-button",1,"private-btn",3,"click"],[1,"mt-2"],[3,"align"],["mat-flat-button","",1,"private-btn"],[1,"mat-icon-sm"],["src","https://gui.dockstore.org/2.17.0-9fcf03e/assets/images/account-logos/orcid.svg","alt","ORCID logo"],[1,"weight-bold"],["src","https://gui.dockstore.org/2.17.0-9fcf03e/assets/images/account-logos/google.svg","alt","Google logo",1,"w-100"],["fxLayout","","fxLayoutAlign","space-between center"],["mat-card-avatar","","alt","Google avatar",3,"src"],["fxLayoutGap","0.5rem"],[1,"w-100"],["class","p-3","fxFlex.lt-md","100",4,"ngFor","ngForOf"],["appearance","outlined","role","alert","data-cy","no-other-linked-accounts-banner",1,"alert","alert-info"],["fxFlex.lt-md","100",1,"p-3"],[1,"w-100",3,"src","alt"]],template:function(o,r){1&o&&(t.j41(0,"app-header")(1,"div",0)(2,"div",1)(3,"span")(4,"mat-icon"),t.EFF(5,"people"),t.k0s()(),t.j41(6,"div"),t.EFF(7),t.k0s()()()(),t.j41(8,"div",2)(9,"div",3),t.DNE(10,S,8,4,"mat-card",4),t.j41(11,"div",5),t.DNE(12,D,18,8,"mat-card",6)(13,N,11,3,"mat-card",6)(14,M,11,2,"mat-card",6),t.k0s()(),t.j41(15,"mat-tab-group",7)(16,"mat-tab"),t.DNE(17,_,5,0,"ng-template",8),t.j41(18,"div",9),t.nrm(19,"app-recent-events"),t.k0s()(),t.DNE(20,J,5,2,"mat-tab",10),t.k0s()()),2&o&&(t.R
17$(7),t.JRh(null==r.user?null:r.user.username),t.R7$(3),t.Y8G("ngIf",r.user),t.R7$(2),t.Y8G("ngIf",r.gitHubProfile),t.R7$(),t.Y8G("ngIf",null==r.user?null:r.user.orcid),t.R7$(),t.Y8G("ngIf",r.googleProfile),t.R7$(6),t.Y8G("ngIf",r.loggedInUserIsAdminOrCurator))},dependencies:[y.l,l.w2,l.DJ,l.BO,l.sA,l.UI,P.Cc,P.Om,x.m_,x.An,b.bT,i.Hu,i.RN,i.YY,i.QG,i.m2,i.kF,i.Lc,i.dh,i.aJ,j.Np,h.Y,h.k,v.Hl,v.$z,p.uc,p.oV,u.RI,u.ES,u.mq,u.T8,E.A,b.pM,U.w,U.q],styles:['mat-card[_ngcontent-%COMP%] > img[mat-card-image][_ngcontent-%COMP%]{border-radius:50%;border:solid 1px #dfe0e2;width:60%;max-width:18rem}.mat-mdc-card-avatar[_ngcontent-%COMP%]{margin-bottom:0!important}img[alt="GitHub avatar"][_ngcontent-%COMP%], img[alt="Google avatar"][_ngcontent-%COMP%]{border-radius:50%;border:solid 1px #dfe0e2}.mat-icon[_ngcontent-%COMP%]:not(.mat-icon-sm){font-size:2.2rem;color:#3f51b5}']})}}return a})(),data:{title:"Dockstore | User"}},{path:"**",redirectTo:""}]}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.