PageSourceSearch

https://gitplace.net/assets/webpack/commons-pages.admin.projects.i…ages.groups.show-a1c4592e.5c56a65b.chunk.js

js gitplace.net collected 2026-10-08 03:06:54 UTC 16,726 bytes, 2 lines download raw bytes

1(this.webpackJsonp=this.webpackJsonp||[]).push([["commons-pages.admin.projects.index-pages.dashboard.projects-pages.explore.projects-pages.groups.show-a1c4592e"],{bDAs:function(e,t,r){"use strict";r.d(t,"a",(function(){return i})),r.d(t,"c",(function(){return n})),r.d(t,"h",(function(){return c})),r.d(t,"f",(function(){return l})),r.d(t,"d",(function(){return u})),r.d(t,"e",(function(){return d})),r.d(t,"g",(function(){return p})),r.d(t,"b",(function(){return h}));r("YSE1"),r("z6RN"),r("b+iX");var s=r("vLO8"),o=r("udiD"),a=r("/lV4");const i=function({userPermissions:e,markedForDeletion:t,isSelfDeletionInProgress:r,isSelfDeletionScheduled:o,archived:a,isSelfArchived:i}){if(r)return[];const n=e.viewEditPage,c=e.changeNamespace,l=e.archiveProject&&!a&&!t,u=e.archiveProject&&i,d=e.removeProject&&o,{canLeave:p}=e,h=e.removeProject&&!t,j=e.removeProject&&o,m={[s.b]:!0,[s.e]:n,[s.i]:c,[s.a]:l,[s.j]:u,[s.h]:d,[s.c]:h,[s.d]:j,[s.f]:p};return Object.entries(m).flatMap((function([e,t]){return t?[e]:[]}))},n=function(e){Object(o.default)(Object(a.j)(Object(a.a)("Project '%{project_name}' has been successfully archived."),{project_name:e.nameWithNamespace}))},c=function(e){Object(o.default)(Object(a.j)(Object(a.a)("Project '%{project_name}' has been successfully unarchived."),{project_name:e.nameWithNamespace}))},l=function(e){Object(o.default)(Object(a.j)(Object(a.a)("Project '%{project_name}' has been successfully restored."),{project_name:e.nameWithNamespace}))},u=function(e){e.markedForDeletion?Object(o.default)(Object(a.j)(Object(a.a)("%{project_name} is being deleted."),{project_name:e.name})):Object(o.default)(Object(a.j)(Object(a.a)("%{project_name} moved to pending deletion."),{project_name:e.name}))},d=function(e){Object(o.default)(Object(a.j)(Object(a.i)('Projects|You left the "%{nameWithNamespace}" project.'),{nameWithNamespace:e.nameWithNamespace}))},p=function(e){Object(o.default)(Object(a.j)(Object(a.i)("TransferProject|Project '%{project_name}' transfer has been scheduled. Users with the Maintainer or Owner role will be notified when it completes."),{project_name:e.nameWithNamespace}))},h=function(e){return e.isSelfDeletionScheduled?{permanently_remove:!0,full_path:e.fullPath}:{}}},pcda:function(e,t,r){"use strict";var s=r("NnjE"),o=r("0Q6N"),a=r("/lV4"),i=r("9uJu"),n=r("7F3p"),c=r("jlnU"),l=r("ZvgQ"),u=r("COEd"),d=r("zsvj"),p=r("lCTV"),h=r("Jx7q"),j=r("dIEn"),m=r("qLpH"),f=r("kk/e"),g={name:"TransferProjectModal",components:{TransferModal:r("8heQ").a,GlAlert:p.a,GlLink:h.a,GlSprintf:j.a},provide(){return{resourceId:String(this.project.id),resourcePath:this.project.path,resourceFullPath:this.project.fullPath}},model:{prop:"visible",event:"change"},props:{visible:{type:Boolean,required:!0},project:{type:Object,required:!0}},emits:["change","success"],computed:{title(){return Object(a.j)(Object(a.i)("NamespaceTransfer|Transfer - %{name}"),{name:this.project.name})}},methods:{handleError(e){Object(c.createAlert)({message:e||Object(a.i)("NamespaceTransfer|An error occurred while transferring the project. Please refresh the page to try again."),captureError:!0,error:e})}},getTransferLocations:f.h,transferProject:f.k,transferDocsPath:Object(m.a)("user/project/working_with_projects",{anchor:"transfer-a-project"})},b=r("tBpV"),_=Object(b.a)(g,(function(){var e=this,t=e._self._c;return t("transfer-modal",{attrs:{visible:e.visible,title:e.title,"group-transfer-locations-api-method":e.$options.getTransferLocations,"transfer-api-method":e.$options.transferProject,"show-user-transfer-locations":!0},on:{change:function(t){return e.$emit("change",t)},success:function(t){return e.$emit("success")},error:e.handleError},scopedSlots:e._u([{key:"body",fn:function(){return[t("gl-alert",{staticClass:"gl-mb-5",attrs:{variant:"warning",title:e.s__("NamespaceTransfer|Transferring this project will:"),dismissible:!1}},[t("ul",{staticClass:"gl-mb-0 gl-pl-5"},[t("li",[e._v(e._s(e.s__("NamespaceTransfer|Change its repository URL path.")))]),e._v(" "),t("li",[e._v("\n          "+e._s(e.s__("NamespaceTransfer|Change its visibility settings to match the new namespace."))+"\n        ")]),e._v(" "),t("li",[e._v("\n          "+e._s(e.s__("NamespaceTransfer|Permanently delete all secrets stored in GitLab Secrets Manager."))+"\n        ")])])]),e._v(" "),t("p",[t("gl-sprintf",{attrs:{message:e.s__("NamespaceTransfer|Transfer this project to a different namespace. %{linkStart}How does project transfer work?%{linkEnd}")},scopedSlots:e._u([{key:"link",fn:function({content:r}){return[t("gl-link",{attrs:{href:e.$options.transferDocsPath,target:"_blank"}},[e._v(e._s(r))])]}}])})],1)]},proxy:!0}])})}),[],!1,null,null,null).exports,v=r("vLO8"),y=r("EF/t"),O=r("ygVz"),P=r("bDAs"),k=r("Oxu3"),A=r("4qOP"),C=r("ho4C"),L={name:"ProjectsListItemLeaveMod
1al",components:{GlModal:k.a},model:{prop:"visible",event:"change"},props:{visible:{type:Boolean,required:!1,default:!1},project:{type:Object,required:!0}},emits:["success","change"],data:()=>({modalId:Object(C.a)("projects-list-item-leave-modal-"),isLoading:!1}),modal:{actionCancel:{text:Object(a.a)("Cancel")}},computed:{title(){return Object(A.a)(Object(a.i)('Projects|Are you sure you want to leave "%{nameWithNamespace}"?'),{nameWithNamespace:this.project.nameWithNamespace})},actionPrimary(){return{text:Object(a.i)("Projects|Leave project"),attributes:{variant:"danger",loading:this.isLoading}}}},methods:{async handlePrimary(){this.isLoading=!0;try{await Object(f.d)(this.project.id,gon.current_user_id),this.$emit("success"),Object(P.e)(this.project)}catch(e){Object(c.createAlert)({message:Object(a.i)("Projects|An error occurred while leaving the project. Please refresh the page to try again."),error:e,captureError:!0})}finally{this.isLoading=!1}}}},T=Object(b.a)(L,(function(){var e=this,t=e._self._c;return t("gl-modal",e._b({attrs:{"modal-id":e.modalId,visible:e.visible,title:e.title,"action-primary":e.actionPrimary},on:{primary:function(t){return t.preventDefault(),e.handlePrimary.apply(null,arguments)},change:function(t){return e.$emit("change")}}},"gl-modal",e.$options.modal,!1),[t("p",[e._v(e._s(e.s__("Projects|When you leave this project:")))]),e._v(" "),t("ul",[t("li",[e._v("\n      "+e._s(e.s__("Projects|You are no longer a project member and cannot contribute."))+"\n    ")]),e._v(" "),t("li",[e._v("\n      "+e._s(e.s__("Projects|All the issues and merge requests that were assigned to you are unassigned."))+"\n    ")])])])}),[],!1,null,null,null).exports,w={name:"ProjectListItemActions",components:{GlLoadingIcon:s.a,ListActions:u.a,DeleteModal:d.a,TransferModal:_,ProjectsListItemLeaveModal:T},mixins:[O.a.mixin(),o.a],inject:["triggerRestoreLocation"],i18n:{project:Object(a.a)("Project")},props:{project:{type:Object,required:!0}},emits:["action"],data:()=>({actionsLoading:!1,isDeleteModalVisible:!1,isDeleteLoading:!1,isLeaveModalVisible:!1,isTransferModalVisible:!1}),computed:{actions(){var e=this;const t={[v.b]:{text:Object(a.j)(Object(a.i)("Projects|Copy project ID: %{id}"),{id:this.project.id}),action:this.onCopyId},[v.e]:{href:this.project.editPath},[v.a]:{action:function(){return e.onActionWithLoading({action:e.archive,errorMessage:Object(a.i)("Projects|An error occurred archiving the project. Please refresh the page to try again.")})}},[v.j]:{action:function(){return e.onActionWithLoading({action:e.unarchive,errorMessage:Object(a.i)("Projects|An error occurred unarchiving the project. Please refresh the page to try again.")})}},[v.h]:{action:function(){return e.onActionWithLoading({action:e.restore,errorMessage:Object(a.i)("Projects|An error occurred restoring the project. Please refresh the page to try again.")})}},[v.c]:{action:this.onActionDelete},[v.d]:{action:this.onActionDelete},[v.f]:{text:Object(a.a)("Leave project"),action:this.onActionLeave,extraAttrs:{class:"js-leave-link"}},[v.i]:{action:this.onActionTransfer}};return this.project.requestAccessPath&&(t[v.g]={href:this.project.requestAccessPath,extraAttrs:{"data-method":"post","data-testid":"request-access-link",rel:"nofollow"}}),this.project.withdrawAccessRequestPath&&(t[v.k]={href:this.project.withdrawAccessRequestPath,extraAttrs:{"data-method":"delete","data-testid":"withdraw-access-link","data-confirm":Object(a.j)(Object(a.i)("Projects|Are you sure you want to withdraw your access request for the %{nameWithNamespace} project?"),{nameWithNamespace:this.project.nameWithNamespace}),rel:"nofollow"}}),t},hasActionDelete(){var e,t;return(null===(e=this.project.availableActions)||void 0===e?void 0:e.includes(v.c))||(null===(t=this.project.availableActions)||void 0===t?void 0:t.includes(v.d))},hasActionLeave(){var e;return null===(e=this.project.availableActions)||void 0===e?void 0:e.includes(v.f)},hasActionTransfer(){var e;return null===(e=this.project.availableActions)||void 0===e?void 0:e.includes(v.i)}},methods:{async archive(){await Object(l.a)(this.project.id),this.$emit("action",v.a),Object(P.c)(this.project),this.trackEvent("archive_namespace_in_quick_action",{label:y.i.PROJECT,property:"ar
1chive"})},async unarchive(){await Object(l.A)(this.project.id),this.$emit("action",v.j),Object(P.h)(this.project),this.trackEvent("archive_namespace_in_quick_action",{label:y.i.PROJECT,property:"unarchive"})},async restore(){await Object(l.y)(this.project.id),this.$emit("action",v.h),Object(P.f)(this.project),this.trackEvent("trigger_restore_on_project",{label:this.triggerRestoreLocation})},async onActionWithLoading({action:e,errorMessage:t}){this.actionsLoading=!0;try{await e()}catch(e){Object(c.createAlert)({message:t,error:e,captureError:!0})}finally{this.actionsLoading=!1}},async onCopyId(){this.trackEvent("click_copy_id_in_project_quick_actions");try{await Object(i.a)(this.project.id),this.$toast.show(Object(a.i)("Projects|Project ID copied to clipboard."))}catch(e){n.b(e)}},onActionDelete(){this.isDeleteModalVisible=!0},async onDeleteModalPrimary(){this.isDeleteLoading=!0;try{await Object(l.d)(this.project.id,Object(P.b)(this.project)),this.$emit("action",this.project.markedForDeletion?v.d:v.c),Object(P.d)(this.project)}catch(e){Object(c.createAlert)({message:Object(a.i)("Projects|An error occurred deleting the project. Please refresh the page to try again."),error:e,captureError:!0})}finally{this.isDeleteLoading=!1}},onActionLeave(){this.isLeaveModalVisible=!0},onLeaveSuccess(){this.$emit("action",v.f)},onActionTransfer(){this.isTransferModalVisible=!0},onTransferSuccess(){this.$emit("action",v.i),Object(P.g)(this.project)}}},D=Object(b.a)(w,(function(){var e=this,t=e._self._c;return t("div",[e.actionsLoading?t("gl-loading-icon",{staticClass:"gl-px-3",attrs:{size:"sm"}}):t("list-actions",{attrs:{"data-testid":"projects-list-item-actions",actions:e.actions,"available-actions":e.project.availableActions}}),e._v(" "),e.hasActionDelete?t("delete-modal",{attrs:{"confirm-phrase":e.project.fullPath,"name-with-namespace":e.project.nameWithNamespace,"is-fork":e.project.isForked,"confirm-loading":e.isDeleteLoading,"merge-requests-count":e.project.openMergeRequestsCount,"issues-count":e.project.openIssuesCount,"forks-count":e.project.forksCount,"stars-count":e.project.starCount,"marked-for-deletion":e.project.markedForDeletion,"permanent-deletion-date":e.project.permanentDeletionDate},on:{primary:e.onDeleteModalPrimary},model:{value:e.isDeleteModalVisible,callback:function(t){e.isDeleteModalVisible=t},expression:"isDeleteModalVisible"}}):e._e(),e._v(" "),e.hasActionLeave?t("projects-list-item-leave-modal",{attrs:{project:e.project},on:{success:e.onLeaveSuccess},model:{value:e.isLeaveModalVisible,callback:function(t){e.isLeaveModalVisible=t},expression:"isLeaveModalVisible"}}):e._e(),e._v(" "),e.hasActionTransfer?t("transfer-modal",{attrs:{project:e.project},on:{success:e.onTransferSuccess},model:{value:e.isTransferModalVisible,callback:function(t){e.isTransferModalVisible=t},expression:"isTransferModalVisible"}}):e._e()],1)}),[],!1,null,null,null);t.a=D.exports},zsvj:function(e,t,r){"use strict";var s=r("lCTV"),o=r("dIEn"),a=r("4b03"),i=r("/lV4"),n=r("SNRI"),c=r("Pzb3"),l=r("EF/t"),u=r("ygVz"),d={name:"DeleteModal",RESOURCE_TYPES:l.i,i18n:{isForkAlertTitle:Object(i.a)("You are about to delete this forked project containing:"),isNotForkAlertTitle:Object(i.a)("You are about to delete this project containing:"),isForkAlertBody:Object(i.a)("This process deletes the project repository and all related resources."),isNotForkAlertBody:Object(i.a)("This project is %{strongStart}NOT%{strongEnd} a fork. This process deletes the project repository and all related resources."),isNotForkMessage:Object(i.a)("This project is %{strongStart}NOT%{strongEnd} a fork, and has the following:"),secretsCountFetchError:Object(i.i)("SecretsManager|Failed to fetch secrets count.")},components:{GroupsProjectsDeleteModal:c.a,GlAlert:s.a,GlSprintf:o.a,SecretsCount:a.default},mixins:[u.a.mixin()],inject:["triggerDeleteLocation"],model:{prop:"visible",event:"change"},props:{visible:{type:Boolean,required:!0},confirmPhrase:{type:String,required:!0},nameWithNamespace:{type:String,required:!0},isFork:{type:Boolean,required:!0},confirmLoading:{type:Boolean,required:!1,default:!1},issuesCount:{type:Number,required:!1,default:null},mergeRequestsCount:{type:Number,required:!1,default:null},forksCount:{type:Number,required:!1,default:null},starsCount:{type:Number,required:!1,default:null},markedForDeletion:{type:Boolean,required:!0}
1,permanentDeletionDate:{type:String,required:!0}},emits:["change","primary"],data:()=>({showSecretsCountFetchError:!1}),methods:{numberToMetricPrefix:n.h,handlePrimary(){this.trackEvent("trigger_delete_on_project",{label:this.triggerDeleteLocation,property:String(this.markedForDeletion),actor:"user"}),this.$emit("primary")}}},p=r("tBpV"),h=Object(p.a)(d,(function(){var e=this,t=e._self._c;return t("groups-projects-delete-modal",{attrs:{"resource-type":e.$options.RESOURCE_TYPES.PROJECT,visible:e.visible,"confirm-phrase":e.confirmPhrase,"full-name":e.nameWithNamespace,"confirm-loading":e.confirmLoading,"marked-for-deletion":e.markedForDeletion,"permanent-deletion-date":e.permanentDeletionDate},on:{primary:e.handlePrimary,change:function(t){return e.$emit("change",t)}},scopedSlots:e._u([{key:"alert",fn:function(){return[e.showSecretsCountFetchError?t("gl-alert",{staticClass:"gl-mb-5",attrs:{"data-testid":"secrets-count-error",variant:"warning",dismissible:!1}},[e._v("\n      "+e._s(e.$options.i18n.secretsCountFetchError)+"\n    ")]):e._e(),e._v(" "),t("gl-alert",{staticClass:"gl-mb-5",attrs:{"data-testid":"project-delete-modal-stats-alert",variant:"danger",dismissible:!1}},[e.isFork?t("h4",{key:"_vif_1_0",staticClass:"gl-alert-title"},[e._v("\n        "+e._s(e.$options.i18n.isForkAlertTitle)+"\n      ")]):t("h4",{key:"_vif_1_1",staticClass:"gl-alert-title"},[e._v("\n        "+e._s(e.$options.i18n.isNotForkAlertTitle)+"\n      ")]),e._v(" "),t("ul",{attrs:{"data-testid":"project-delete-modal-stats"}},[null!==e.issuesCount?t("li",[t("gl-sprintf",{attrs:{message:e.n__("%{count} issue","%{count} issues",e.issuesCount)},scopedSlots:e._u([{key:"count",fn:function(){return[e._v(e._s(e.numberToMetricPrefix(e.issuesCount)))]},proxy:!0}],null,!1,289871063)})],1):e._e(),e._v(" "),null!==e.mergeRequestsCount?t("li",[t("gl-sprintf",{attrs:{message:e.n__("%{count} merge request","%{count} merge requests",e.mergeRequestsCount)},scopedSlots:e._u([{key:"count",fn:function(){return[e._v(e._s(e.numberToMetricPrefix(e.mergeRequestsCount)))]},proxy:!0}],null,!1,1248551527)})],1):e._e(),e._v(" "),null!==e.forksCount?t("li",[t("gl-sprintf",{attrs:{message:e.n__("%{count} fork","%{count} forks",e.forksCount)},scopedSlots:e._u([{key:"count",fn:function(){return[e._v(e._s(e.numberToMetricPrefix(e.forksCount)))]},proxy:!0}],null,!1,815715998)})],1):e._e(),e._v(" "),null!==e.starsCount?t("li",[t("gl-sprintf",{attrs:{message:e.n__("%{count} star","%{count} stars",e.starsCount)},scopedSlots:e._u([{key:"count",fn:function(){return[e._v(e._s(e.numberToMetricPrefix(e.starsCount)))]},proxy:!0}],null,!1,71552090)})],1):e._e(),e._v(" "),t("secrets-count",{attrs:{"full-path":e.confirmPhrase,"resource-type":e.$options.RESOURCE_TYPES.PROJECT},on:{"fetch-error":function(t){e.showSecretsCountFetchError=!0}}})],1),e._v(" "),e.isFork?t("gl-sprintf",{key:"_vif_2_0",attrs:{message:e.$options.i18n.isForkAlertBody}}):t("gl-sprintf",{key:"_vif_2_1",attrs:{message:e.$options.i18n.isNotForkAlertBody},scopedSlots:e._u([{key:"strong",fn:function({content:r}){return[t("strong",[e._v(e._s(r))])]}}])})],1)]},proxy:!0}])})}),[],!1,null,null,null);t.a=h.exports}}]);
2//# sourceMappingURL=commons-pages.admin.projects.index-pages.dashboard.projects-pages.explore.projects-pages.groups.show-a1c4592e.5c56a65b.chunk.js.map

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.