PageSourceSearch

https://diariodecuba.net/cp/javascript/components/pages/IisAppPool…AppPoolSettingsPage.js?05559a307b96d79f404d

js diariodecuba.net collected 2026-10-03 22:38:47 UTC 17,531 bytes, 2 lines download raw bytes

1(globalThis.webpackChunkPlesk=globalThis.webpackChunkPlesk||[]).push([["components/pages/IisAppPoolPage/IisAppPoolSettingsPage"],{2774(e,i,n){"use strict";n.r(i),n.d(i,{default:()=>o});var t=n(397),a=n(396);const o=({name:e,label:i,description:n,min:o,max:l,disabled:s,...r})=>(0,a.jsx)(t.FormField,{name:e,label:i,description:n,children:({getValue:e,setValue:i,isDisabled:n})=>(0,a.jsx)(t.InputNumber,{...r,min:o,max:l,value:e(),onChange:i,disabled:n()||s})})},2773(e,i,n){"use strict";n.r(i),n.d(i,{default:()=>d});var t=n(396),a=n(397),o=n(1371),l=n(2774),s=n(2775);n(2777);const r=["KB","MB","GB","TB"],d=({settings:e,availableCpuLimitActions:i,onSubmit:n,onSuccess:d,onCancel:c,generalEditable:u=!0,performanceEditable:m=!0,readOnly:p=!1,lifecycle:v,extraActions:f})=>{const[S,g]=(0,t.useState)(()=>({managedPipelineMode:e?.managedPipelineMode??"INTEGRATED",enable32bitAppOnWin64:e?.enable32bitAppOnWin64??!1,loadUserProfile:e?.loadUserProfile??!1,maxProcesses:e?.maxProcesses??0,idleTimeout:e?.idleTimeout??20,idleTimeoutAction:e?.idleTimeoutAction??"TERMINATE",cpuLimit:e?.cpuLimit??-1,cpuLimitAction:e?.cpuLimitAction??"NO_ACTION",cpuLimitInterval:e?.cpuLimitInterval??5,recyclingByTime:e?.recyclingByTime??-1,recyclingByRequests:e?.recyclingByRequests??-1,recyclingByVirtualMemory:e?.recyclingByVirtualMemory??-1,recyclingByPrivateMemory:e?.recyclingByPrivateMemory??-1})),k=(0,a.useTranslate)("admin.controllers.iis-app-pool.settings"),b=-1!==S.cpuLimit,y=v?.isStarted??!1,h=p||!u,P=p||!m;return(0,t.jsxs)(t.Fragment,{children:[(v||f)&&(0,t.jsxs)(a.ButtonGroup,{className:"iis-app-pool-action-buttons",children:[f,v&&!y&&(0,t.jsx)(a.Button,{onClick:()=>v?.onStart(),state:v.starting?"loading":void 0,tooltip:k("buttonStartHint"),children:k("buttonStart")}),v&&y&&(0,t.jsxs)(a.ButtonGroup,{children:[(0,t.jsx)(a.Button,{onClick:()=>v?.onStop(),state:v.stopping?"loading":void 0,tooltip:k("buttonStopHint"),children:k("buttonStop")}),(0,t.jsx)(a.Button,{onClick:()=>v?.onRecycle(),state:v.recycling?"loading":void 0,tooltip:k("buttonRecycleHint"),children:k("buttonRecycle")})]})]}),(0,t.jsxs)(o.default,{values:S,mutation:({variables:{input:e}})=>n(e),onFieldChange:(e,i)=>{g(n=>(0,a.setIn)(n,e,i))},onSuccess:d,submitButton:!p&&void 0,applyButton:!p&&{id:"buttonid-apply"},cancelButton:!p&&{id:"buttonid-cancel",onClick:c},children:[(0,t.jsxs)(a.Section,{title:k("generalSettingsSectionTitle"),children:[(0,t.jsxs)(a.FormFieldSelect,{label:k("managedPipelineMode"),description:k("managedPipelineModeHint"),name:"managedPipelineMode",disabled:h,children:[(0,t.jsx)("option",{value:"INTEGRATED",children:k("modeIntegrated")}),(0,t.jsx)("option",{value:"CLASSIC",children:k("modeClassic")})]}),(0,t.jsx)(a.FormFieldCheckbox,{label:k("enable32bitAppOnWin64"),description:k("enable32bitAppOnWin64Hint"),name:"enable32bitAppOnWin64",disabled:h}),(0,t.jsx)(a.FormFieldCheckbox,{label:k("loadUserProfile"),description:k("loadUserProfileHint"),name:"loadUserProfile",disabled:h})]}),(0,t.jsxs)(a.Section,{title:k("performanceSettingsSectionTitle"),children:[(0,t.jsx)(l.default,{name:"maxProcesses",label:k("maxProcesses"),description:`${k("maxProcessesHint")}${k("multicoreScalingOnNUMAHardwareHint")}`,min:0,disabled:P}),(0,t.jsx)(l.default,{name:"idleTimeout",label:k("idleTimeout"),description:k("idleTimeoutHint"),min:1,disabled:P}),(0,t.jsxs)(a.FormFieldSelect,{label:k("idleTimeoutAction"),description:k("idleTimeoutActionHint"),name:"idleTimeoutAction",disabled:P,children:[(0,t.jsx)("option",{value:"TERMINATE",children:k("actionTerminate")}),(0,t.jsx)("option",{value:"SUSPEND",children:k("actionSuspend")})]}),(0,t.jsx)(s.default,{name:"cpuLimit",label:k("cpuLimit"),unlimitedLabel:k("unlimited"),disabled:P}),(0,t.jsx)(a.FormFieldSelect,{label:k("cpuLimitAction"),description:k("cpuLimitActionHint"),name:"cpuLimitAction",disabled:P||!b,children:i.map(e=>{return(0,t.jsx)("option",{value:e,children:k(`action${i=e,i.split("_").map(e=>e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()).join("")}`)},e);var i})}),(0,t.jsx)(l.default,{name:"cpuLimitInterval",label:k("cpuLimitInterval"),description:k("cpuLimitIntervalHint"),min:1,disabled:P||!b})]}),(0,t.jsxs)(a.Section,{title:k("recyclingSettingsSectionTitle"),children:[(0,t.jsx)(s.default,{name:"recyclingByTime",label:k("recyclingByTime"),description:k("recyclingByTimeHint"),unlimitedLabel:k("unlimited"),disabled:P}),(0,t.jsx)(s.default,{name:"recyclingByRequests",label:k("recyclingByRequests"),description:k("recyclingByRequestsHint"),unlimitedLabel:k("unlimited"),disabled:P}),(0,t.jsx)(s.default,{name:"recyclingByVirtualMemory",label:k("recyclingByVirtualMemory"),description:k("recyclingByVirtualMemoryHint"),units:r,unlimitedLabel:k("unlimited"),disabled:P}),(0,t.jsx)(s.default,{name:"recyclingByPrivateMemory",label:k("recyclingByPrivateMemory"),description:k("recyclingByPrivateMemoryHint"),units:r,unlimitedLabel:k("unlimited"),disabled:P})]})]})]})}},2772(e,i,n){"use strict";n.r(i),n.d(i,{default:()=>y});var t=n(810),a=n(739),o=n(397),l=n(715),s=n(663),r=n(2773),d=n(1350),c=n.n(d),u=n(2778),m=n.n(u),p=n(2779),v=n.n(p),f=n(2780),S=n.n(f),g=n(2781),k=n.n(g),b=n(396);const y=()=>{const{data:e}=(0,a.useQuery)(c()),i=(0,l.useNavigate)(),n=(0,o.useTranslate)("admin.controllers.iis-app-pool.settings"),{iisManager:{sharedPool:d,availableCpuLimitActions:u}}=e,p={refetchQueries:[{query:c()}],awaitRefetchQueries:!0},[f]=(0,t.useMutation)(m(),p),[g,{loading:y}]=(0,t.useMutation)(v(),p),[h,{loading:P}]=(0,t.useMutation)(S(),p),[A,{loading:x}]=(0,t.useMutation)(k(),p);return(0,b.jsx)(r.default,{settings:d?.settings,availableCpuLimitActions:u,onSubmit:e=>f({variables:{input:{settings:e}}}),onSuccess:()=>(0,s.addToast)({intent:"success",message:n("settingsUpdated").toString()}),onCancel:()=>i("/admin/server/tools"),lifecycle:d?{isStarted:d.isStarted,onStart:async()=>{await g(),(0,s.addToast)({intent:"success",message:n("poolStartedSuccessfully").toString()})},onStop:async()=>{await h(),(0,s.addToast)({intent:"success",message:n("poolStoppedSuccessfully").toString()})},onRecycle:async()=>{await A(),(0,s.addToast)({intent:"success",message:n("poolRecycledSuccessfully").toString()})},starting:y,stopping:P,recycling:x}:void 0})}},2775(e,i,n){"use strict";n.r(i),n.d(i,{default:()=>s});var t=n(396),a=n(397);n(2776);const o={KB:1,MB:1024,GB:1048576,TB:1073741824}
1,l=({value:e,onChange:i,disabled:n,units:l,unlimitedLabel:s})=>{const r=-1===e,d=(0,t.useRef)(r?0:e),[c,u]=(0,t.useState)(()=>l?.length?r?l[0]:((e,i)=>{for(let n=i.length-1;n>=0;n--){const t=o[i[n]]??1;if(e>0&&e>=t&&e%t===0)return i[n]}return i[0]})(e,l):""),m=l&&c?o[c]??1:1,p=r?Math.round(d.current/m):Math.round(e/m);return(0,t.jsxs)("div",{className:"iis-app-pool-unlimitable-number",children:[(0,t.jsx)(a.InputNumber,{min:0,value:p,onChange:e=>{const n=Math.round(e*m);d.current=n,i(n)},disabled:n||r}),l?.length?(0,t.jsx)(a.Select,{size:"xs",value:c,onChange:e=>u(e??""),disabled:n||r,children:l.map(e=>(0,t.jsx)(a.SelectOption,{value:e,children:e},e))}):null,(0,t.jsx)(a.Checkbox,{checked:r,onChange:n=>{n?(d.current=r?d.current:e,i(-1)):i(d.current>0?d.current:0)},disabled:n,children:s})]})},s=({name:e,label:i,description:n,units:o,unlimitedLabel:s,disabled:r})=>(0,t.jsx)(a.FormField,{name:e,label:i,description:n,disabled:r,children:({getValue:e,setValue:i,isDisabled:n})=>(0,t.jsx)(l,{value:e(),onChange:i,disabled:n(),units:o,unlimitedLabel:s})})},2781(e){var i={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"RecycleServerIisAppPool"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"recycleServerIisAppPool"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"pool"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"running"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isStarted"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:140}};i.loc.source={body:"mutation RecycleServerIisAppPool {\n    recycleServerIisAppPool {\n        pool {\n            running\n            isStarted\n        }\n    }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function n(e,i){if("FragmentSpread"===e.kind)i.add(e.name.value);else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&i.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){n(e,i)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){n(e,i)}),e.definitions&&e.definitions.forEach(function(e){n(e,i)})}var t={};function a(e,i){for(var n=0;n<e.definitions.length;n++){var t=e.definitions[n];if(t.name&&t.name.value==i)return t}}i.definitions.forEach(function(e){if(e.name){var i=new Set;n(e,i),t[e.name.value]=i}}),e.exports=i,e.exports.RecycleServerIisAppPool=function(e,i){var n={kind:e.kind,definitions:[a(e,i)]};e.hasOwnProperty("loc")&&(n.loc=e.loc);var o=t[i]||new Set,l=new Set,s=new Set;for(o.forEach(function(e){s.add(e)});s.size>0;){var r=s;s=new Set,r.forEach(function(e){l.has(e)||(l.add(e),(t[e]||new Set).forEach(function(e){s.add(e)}))})}return l.forEach(function(i){var t=a(e,i);t&&n.definitions.push(t)}),n}(i,"RecycleServerIisAppPool")},2779(e){var i={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"StartServerIisAppPool"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"startServerIisAppPool"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"pool"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"running"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isStarted"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:136}};i.loc.source={body:"mutation StartServerIisAppPool {\n    startServerIisAppPool {\n        pool {\n            running\n            isStarted\n        }\n    }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function n(e,i){if("FragmentSpread"===e.kind)i.add(e.name.value);else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&i.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){n(e,i)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){n(e,i)}),e.definitions&&e.definitions.forEach(function(e){n(e,i)})}var t={};function a(e,i){for(var n=0;n<e.definitions.length;n++){var t=e.definitions[n];if(t.name&&t.name.value==i)return t}}i.definitions.forEach(function(e){if(e.name){var i=new Set;n(e,i),t[e.name.value]=i}}),e.exports=i,e.exports.StartServerIisAppPool=function(e,i){var n={kind:e.kind,definitions:[a(e,i)]};e.hasOwnProperty("loc")&&(n.loc=e.loc);var o=t[i]||new Set,l=new Set,s=new Set;
1for(o.forEach(function(e){s.add(e)});s.size>0;){var r=s;s=new Set,r.forEach(function(e){l.has(e)||(l.add(e),(t[e]||new Set).forEach(function(e){s.add(e)}))})}return l.forEach(function(i){var t=a(e,i);t&&n.definitions.push(t)}),n}(i,"StartServerIisAppPool")},2780(e){var i={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"StopServerIisAppPool"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"stopServerIisAppPool"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"pool"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"running"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isStarted"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:134}};i.loc.source={body:"mutation StopServerIisAppPool {\n    stopServerIisAppPool {\n        pool {\n            running\n            isStarted\n        }\n    }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function n(e,i){if("FragmentSpread"===e.kind)i.add(e.name.value);else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&i.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){n(e,i)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){n(e,i)}),e.definitions&&e.definitions.forEach(function(e){n(e,i)})}var t={};function a(e,i){for(var n=0;n<e.definitions.length;n++){var t=e.definitions[n];if(t.name&&t.name.value==i)return t}}i.definitions.forEach(function(e){if(e.name){var i=new Set;n(e,i),t[e.name.value]=i}}),e.exports=i,e.exports.StopServerIisAppPool=function(e,i){var n={kind:e.kind,definitions:[a(e,i)]};e.hasOwnProperty("loc")&&(n.loc=e.loc);var o=t[i]||new Set,l=new Set,s=new Set;for(o.forEach(function(e){s.add(e)});s.size>0;){var r=s;s=new Set,r.forEach(function(e){l.has(e)||(l.add(e),(t[e]||new Set).forEach(function(e){s.add(e)}))})}return l.forEach(function(i){var t=a(e,i);t&&n.definitions.push(t)}),n}(i,"StopServerIisAppPool")},2778(e){var i={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateServerIisAppPoolSettings"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UpdateServerIisAppPoolSettingsInput"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updateServerIisAppPoolSettings"},arguments:[{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:"pool"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"enabled"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"running"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isStarted"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"settings"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"managedPipelineMode"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"enable32bitAppOnWin64"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"loadUserProfile"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"maxProcesses"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"idleTimeout"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"idleTimeoutAction"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"cpuLimit"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"cpuLimitAction"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"cpuLimitInterval"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"recyclingByTime"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"recyclingByRequests"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"recyclingByVirtualMemory"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"recyclingByPrivateMemory"},arguments:[],directives:[]}]}}]}}]}}]}}],loc:{start:0,end:725}};i.loc.source={body:"mutation UpdateServerIisAppPoolSettings($input
1: UpdateServerIisAppPoolSettingsInput!) {\n    updateServerIisAppPoolSettings(input: $input) {\n        pool {\n            name\n            enabled\n            running\n            isStarted\n            settings {\n                managedPipelineMode\n                enable32bitAppOnWin64\n                loadUserProfile\n                maxProcesses\n                idleTimeout\n                idleTimeoutAction\n                cpuLimit\n                cpuLimitAction\n                cpuLimitInterval\n                recyclingByTime\n                recyclingByRequests\n                recyclingByVirtualMemory\n                recyclingByPrivateMemory\n            }\n        }\n    }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function n(e,i){if("FragmentSpread"===e.kind)i.add(e.name.value);else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&i.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){n(e,i)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){n(e,i)}),e.definitions&&e.definitions.forEach(function(e){n(e,i)})}var t={};function a(e,i){for(var n=0;n<e.definitions.length;n++){var t=e.definitions[n];if(t.name&&t.name.value==i)return t}}i.definitions.forEach(function(e){if(e.name){var i=new Set;n(e,i),t[e.name.value]=i}}),e.exports=i,e.exports.UpdateServerIisAppPoolSettings=function(e,i){var n={kind:e.kind,definitions:[a(e,i)]};e.hasOwnProperty("loc")&&(n.loc=e.loc);var o=t[i]||new Set,l=new Set,s=new Set;for(o.forEach(function(e){s.add(e)});s.size>0;){var r=s;s=new Set,r.forEach(function(e){l.has(e)||(l.add(e),(t[e]||new Set).forEach(function(e){s.add(e)}))})}return l.forEach(function(i){var t=a(e,i);t&&n.definitions.push(t)}),n}(i,"UpdateServerIisAppPoolSettings")},2777(e,i,n){"use strict";n.r(i)},2776(e,i,n){"use strict";n.r(i)}}]);
2//# sourceMappingURL=IisAppPoolSettingsPage.js.map?05559a307b96d79f404d

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.