PageSourceSearch

https://quinzainenumeriquemons.be/cp/javascript/components/pages/V…CreateDirectoryPage.js?9e95255aadf2ddd1322b

js quinzainenumeriquemons.be collected 2026-10-04 18:34:25 UTC 5,118 bytes, 2 lines download raw bytes

1(self.webpackChunkPlesk=self.webpackChunkPlesk||[]).push([["components/pages/VirtualDirectoryPage/CreateDirectoryPage"],{1069:(e,n,a)=>{"use strict";a.r(n),a.d(n,{default:()=>c});var i=a(270),t=a(575),r=a(272),o=a.n(r),s=a(271);const l=({onClose:e,isOpen:n=!0,closeOnFormSuccess:a=!0,closeUrl:r="..",form:o,...l})=>{const c=(0,t.useNavigate)(),[d,u]=(0,i.useState)(n),m=(0,i.useRef)(null),p=(0,i.useCallback)(((...n)=>{const a=e??(()=>c(r,{preventScrollReset:!0}));u(!1),m.current=setTimeout((()=>{a(...n),m.current=null}),300)}),[r,c,e]);(0,i.useEffect)((()=>()=>clearTimeout(m.current)),[]),(0,i.useEffect)((()=>{n?m.current&&clearTimeout(m.current):u(n)}),[n]);const f=(0,i.useMemo)((()=>{if(o&&a){if((0,i.isValidElement)(o))return(0,i.cloneElement)(o,{onSuccess:()=>{o.props.onSuccess?.(),p()}});if("object"==typeof o)return{...o,onSuccess:()=>{o.onSuccess?.(),p()}}}return o}),[a,p,o]);return(0,i.jsx)(s.Drawer,{...l,form:f,onClose:p,isOpen:d})};l.propTypes={onClose:o().func,isOpen:o().bool,form:o().oneOfType([o().object,o().node]),closeOnFormSuccess:o().bool,closeUrl:o().oneOfType([o().string,o().object])};const c=l},2398:(e,n,a)=>{"use strict";a.r(n),a.d(n,{default:()=>h});var i=a(272),t=a(89),r=a(1069),o=a(619),s=a(531),l=a(879),c=a(271),d=a(763),u=a(2399),m=a.n(u),p=a(773),f=a.n(p),v=a(574),k=a(270);const y=t.Locale.getTranslate("components.pages.VirtualDirectory.CreateDirectory"),b=({params:{domainId:e},...n})=>{const[a]=(0,v.useSearchParams)(),i=a.get("path")||"/",[t,u]=(0,k.useState)({name:""}),p=(0,k.useCallback)(((e,n)=>{u((a=>(0,c.setIn)(a,e,n)))}),[]),[b]=(0,o.useMutation)(m(),{refetchQueries:[f()],onCompleted(e,{variables:{input:{name:n}}}){(0,s.addToast)({intent:"success",message:(0,k.jsx)(y,{content:"success",params:{name:(0,k.jsx)("b",{children:n})}})})},awaitRefetchQueries:!0});return(0,k.jsx)(r.default,{isOpen:!0,"data-type":"virtual-directory-create-directory-drawer",title:(0,k.jsx)(y,{content:"title"}),size:"sm",closeUrl:(0,d.buildUrl)(`/cp/domains/${e}/virtual-directory`,{path:i}),form:(0,k.jsx)(l.default,{onFieldChange:p,mutation:({variables:n})=>b({variables:{domainId:btoa(`Domain:${e}`),path:i,...n}}),values:t,applyButton:!1,...n,children:(0,k.jsx)(c.FormFieldText,{name:"name",label:(0,k.jsx)(y,{content:"name"}),required:!0})})})};b.propTypes={params:i.PropTypes.object.isRequired};const h=b},2397:(e,n,a)=>{"use strict";a.r(n),a.d(n,{default:()=>i.default});var i=a(2398)},2399:e=>{var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateDirectory"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"domainId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"path"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"DirectoryInput"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"createDirectory"},arguments:[{kind:"Argument",name:{kind:"Name",value:"domainId"},value:{kind:"Variable",name:{kind:"Name",value:"domainId"}}},{kind:"Argument",name:{kind:"Name",value:"path"},value:{kind:"Variable",name:{kind:"Name",value:"path"}}},{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:176}};n.loc.source={body:"mutation CreateDirectory($domainId: ID!, $path: String!, $input: DirectoryInput!) {\n    createDirectory(domainId: $domainId, path: $path, input: $input) {\n        name\n    }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function a(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);
1else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){a(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){a(e,n)})),e.definitions&&e.definitions.forEach((function(e){a(e,n)}))}var i={};function t(e,n){for(var a=0;a<e.definitions.length;a++){var i=e.definitions[a];if(i.name&&i.name.value==n)return i}}n.definitions.forEach((function(e){if(e.name){var n=new Set;a(e,n),i[e.name.value]=n}})),e.exports=n,e.exports.CreateDirectory=function(e,n){var a={kind:e.kind,definitions:[t(e,n)]};e.hasOwnProperty("loc")&&(a.loc=e.loc);var r=i[n]||new Set,o=new Set,s=new Set;for(r.forEach((function(e){s.add(e)}));s.size>0;){var l=s;s=new Set,l.forEach((function(e){o.has(e)||(o.add(e),(i[e]||new Set).forEach((function(e){s.add(e)})))}))}return o.forEach((function(n){var i=t(e,n);i&&a.definitions.push(i)})),a}(n,"CreateDirectory")}}]);
2//# sourceMappingURL=CreateDirectoryPage.js.map?9e95255aadf2ddd1322b

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.