PageSourceSearch

https://eduweb.org/cp/javascript/components/pages/ProtectedDirectoryUserListPage.js?f75ef036aa559e4e5910

js eduweb.org collected 2026-10-05 03:29:46 UTC 5,610 bytes, 2 lines download raw bytes

1(self.webpackChunkPlesk=self.webpackChunkPlesk||[]).push([["components/pages/ProtectedDirectoryUserListPage"],{2152:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>j});var n=i(245),o=i(247),r=i.n(o),a=i(749),s=i(739),c=i(774),d=i(90),l=i(246),u=i(851),p=i(867),m=i(688),f=i(1866),y=i(902),h=i.n(y),v=i(2153),k=i.n(v);const g=d.Locale.getSection("components.pages.ProtectedDirectoryUserList"),x=d.Locale.getTranslate("components.pages.ProtectedDirectoryUserList"),D=d.Locale.getTranslate("components.buttons"),b=({params:{directoryId:e},protectedDirectory:t})=>{const i=btoa(`ProtectedDirectory:${e}`),[o,r]=(0,n.useState)([]),[d,y]=(0,n.useState)([]),{queryResult:{refetch:v},listData:b,listProps:j,listInput:S}=(0,u.useGraphQlList)({key:`ProtectedDirectoryUserListPage${e}`,onListInputChange:()=>r([]),query:h(),variables:{id:i},extractList:e=>e.protectedDirectory.users}),[T]=(0,c.useMutation)(k(),{refetchQueries:[h()],update:e=>(0,f.evictEntitiesCache)({cache:e,typename:"ProtectedDirectory",ids:[i],fields:["users"]}),awaitRefetchQueries:!0,onCompleted(){(0,m.addToast)({intent:"success",message:g.lmsg("removeSuccess")})},onError({message:e}){(0,m.addToast)({intent:"danger",message:e}),v()}}),L=(0,n.jsx)(l.Button,{icon:"plus",intent:"primary",component:a.Link,to:"./add",tooltip:(0,n.jsx)(x,{content:"addTooltip",params:{directory:`/${t.path}`}}),"data-type":"protected-directory-user-add",children:(0,n.jsx)(x,{content:"add"})}),P=!!S.searchFilters?.login,w=(0,n.jsx)(u.GraphQlList,{rowKey:"id",filtered:P,loadingRows:d,selection:o,onSelectionChange:r,columns:[{key:"login",title:(0,n.jsx)(x,{content:"login"}),sortable:!0,type:"title"},{key:"actions",type:"actions",render:({id:e})=>(0,n.jsx)(l.ListActions,{children:(0,n.jsx)(l.ListAction,{primary:!0,icon:"key",component:a.Link,to:`${(0,p.getId)(e)}/password`,children:(0,n.jsx)(x,{content:"changePassword"})})})}],toolbar:(0,n.jsxs)(l.Toolbar,{children:[(0,n.jsx)(l.ToolbarGroup,{title:"",children:L}),(0,n.jsx)(l.ToolbarGroup,{title:"",children:(0,n.jsx)(l.ListOperation,{critical:!0,noSelectionText:g.lmsg("noSelectionText"),confirmationText:()=>g.formatMessage("removeConfirmation",{login:(0,n.jsx)("b",{children:b.nodes.find((({id:e})=>o[0]===e)).login}),count:o.length}),actionButtonText:(0,n.jsx)(D,{content:"yesRemove"}),cancelButtonText:(0,n.jsx)(D,{content:"cancel"}),children:(0,n.jsx)(l.Button,{"data-type":"protected-directory-user-remove",onClick:async()=>{y(o),await T({variables:{ids:o}}),y([])},tooltip:(0,n.jsx)(x,{content:"removeTooltip"}),children:(0,n.jsx)(x,{content:"remove"})})})}),(0,n.jsx)(l.ToolbarExpander,{}),(0,n.jsx)(l.ToolbarGroup,{groupable:!1,title:"",children:(0,n.jsx)(u.GraphQlList.SearchBar,{name:"login"})})]}),emptyView:(0,n.jsx)(l.ListEmptyView,{actions:L}),...j});return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.Outlet,{}),w]})};b.propTypes={params:r().shape({directoryId:r().string.isRequired}).isRequired,protectedDirectory:r().shape({path:r().string.isRequired}).isRequired};const j=b},2151:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n.default});var n=i(2152)},1866:(e,t,i)=>{"use strict";i.r(t),i.d(t,{evictEntitiesCache:()=>n});const n=({cache:e,typename:t,ids:i=[],fields:n=[]})=>{Object.values(e.extract()).filter((({__typename:e,id:n})=>e===t&&(0===i.length||i.includes(n)))).forEach((t=>{n.forEach((i=>e.evict({id:e.identify(t),fieldName:i})))}))}},2153:e=>{var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DeleteProtectedDirectoryUser"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"ids"}},type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deleteProtectedDirectoryUser"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"ids"},value:{kind:"Variable",name:{kind:"Name",value:"ids"}}}]}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"ids"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:131}};t.loc.source={body:"mutation DeleteProtectedDirectoryUser($ids: [ID!]!) {\n    deleteProtectedDirectoryUser(input: { ids: $ids} ) {\n        ids\n    }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function i(e,t){if("FragmentSpread"===e.kind)t.add(e.name.value);
1else if("VariableDefinition"===e.kind){var n=e.type;"NamedType"===n.kind&&t.add(n.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){i(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){i(e,t)})),e.definitions&&e.definitions.forEach((function(e){i(e,t)}))}var n={};function o(e,t){for(var i=0;i<e.definitions.length;i++){var n=e.definitions[i];if(n.name&&n.name.value==t)return n}}t.definitions.forEach((function(e){if(e.name){var t=new Set;i(e,t),n[e.name.value]=t}})),e.exports=t,e.exports.DeleteProtectedDirectoryUser=function(e,t){var i={kind:e.kind,definitions:[o(e,t)]};e.hasOwnProperty("loc")&&(i.loc=e.loc);var r=n[t]||new Set,a=new Set,s=new Set;for(r.forEach((function(e){s.add(e)}));s.size>0;){var c=s;s=new Set,c.forEach((function(e){a.has(e)||(a.add(e),(n[e]||new Set).forEach((function(e){s.add(e)})))}))}return a.forEach((function(t){var n=o(e,t);n&&i.definitions.push(n)})),i}(t,"DeleteProtectedDirectoryUser")}}]);
2//# sourceMappingURL=ProtectedDirectoryUserListPage.js.map?f75ef036aa559e4e5910

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.