PageSourceSearch

https://molly88.net/cp/javascript/components/pages/IisAppPoolPage/…AppPoolSettingsPage.js?ead14dadfe7ebec86660

js molly88.net collected 2026-10-05 06:50:37 UTC 16,512 bytes, 2 lines download raw bytes

1(globalThis.webpackChunkPlesk||=[]).push([["components/pages/IisAppPoolPage/IisAppPoolSettingsPage"],{2847(e,i,n){"use strict";n.r(i),n.d(i,{default:()=>o});var t=n(342),a=n(341);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})})},2846(e,i,n){"use strict";n.r(i),n.d(i,{default:()=>d});var t=n(341),a=n(342),o=n(798),l=n(2847),s=n(2848);n(2850);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:f,extraActions:v})=>{const[S,k]=(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})),g=(0,a.useTranslate)("admin.controllers.iis-app-pool.settings"),y=-1!==S.cpuLimit,b=f?.isStarted??!1,h=p||!u,P=p||!m;return(0,t.jsxs)(t.Fragment,{children:[(f||v)&&(0,t.jsxs)(a.ButtonGroup,{className:"iis-app-pool-action-buttons",children:[v,f&&!b&&(0,t.jsx)(a.Button,{onClick:()=>f?.onStart(),state:f.starting?"loading":void 0,tooltip:g("buttonStartHint"),children:g("buttonStart")}),f&&b&&(0,t.jsxs)(a.ButtonGroup,{children:[(0,t.jsx)(a.Button,{onClick:()=>f?.onStop(),state:f.stopping?"loading":void 0,tooltip:g("buttonStopHint"),children:g("buttonStop")}),(0,t.jsx)(a.Button,{onClick:()=>f?.onRecycle(),state:f.recycling?"loading":void 0,tooltip:g("buttonRecycleHint"),children:g("buttonRecycle")})]})]}),(0,t.jsxs)(o.default,{values:S,mutation:({variables:{input:e}})=>n(e),onFieldChange:(e,i)=>{k(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:g("generalSettingsSectionTitle"),children:[(0,t.jsxs)(a.FormFieldSelect,{label:g("managedPipelineMode"),description:g("managedPipelineModeHint"),name:"managedPipelineMode",disabled:h,children:[(0,t.jsx)("option",{value:"INTEGRATED",children:g("modeIntegrated")}),(0,t.jsx)("option",{value:"CLASSIC",children:g("modeClassic")})]}),(0,t.jsx)(a.FormFieldCheckbox,{label:g("enable32bitAppOnWin64"),description:g("enable32bitAppOnWin64Hint"),name:"enable32bitAppOnWin64",disabled:h}),(0,t.jsx)(a.FormFieldCheckbox,{label:g("loadUserProfile"),description:g("loadUserProfileHint"),name:"loadUserProfile",disabled:h})]}),(0,t.jsxs)(a.Section,{title:g("performanceSettingsSectionTitle"),children:[(0,t.jsx)(l.default,{name:"maxProcesses",label:g("maxProcesses"),description:`${g("maxProcessesHint")}${g("multicoreScalingOnNUMAHardwareHint")}`,min:0,disabled:P}),(0,t.jsx)(l.default,{name:"idleTimeout",label:g("idleTimeout"),description:g("idleTimeoutHint"),min:1,disabled:P}),(0,t.jsxs)(a.FormFieldSelect,{label:g("idleTimeoutAction"),description:g("idleTimeoutActionHint"),name:"idleTimeoutAction",disabled:P,children:[(0,t.jsx)("option",{value:"TERMINATE",children:g("actionTerminate")}),(0,t.jsx)("option",{value:"SUSPEND",children:g("actionSuspend")})]}),(0,t.jsx)(s.default,{name:"cpuLimit",label:g("cpuLimit"),unlimitedLabel:g("unlimited"),disabled:P}),(0,t.jsx)(a.FormFieldSelect,{label:g("cpuLimitAction"),description:g("cpuLimitActionHint"),name:"cpuLimitAction",disabled:P||!y,children:i.map(e=>{return(0,t.jsx)("option",{value:e,children:g(`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:g("cpuLimitInterval"),description:g("cpuLimitIntervalHint"),min:1,disabled:P||!y})]}),(0,t.jsxs)(a.Section,{title:g("recyclingSettingsSectionTitle"),children:[(0,t.jsx)(s.default,{name:"recyclingByTime",label:g("recyclingByTime"),description:g("recyclingByTimeHint"),unlimitedLabel:g("unlimited"),disabled:P}),(0,t.jsx)(s.default,{name:"recyclingByRequests",label:g("recyclingByRequests"),description:g("recyclingByRequestsHint"),unlimitedLabel:g("unlimited"),disabled:P}),(0,t.jsx)(s.default,{name:"recyclingByVirtualMemory",label:g("recyclingByVirtualMemory"),description:g("recyclingByVirtualMemoryHint"),units:r,unlimitedLabel:g("unlimited"),disabled:P}),(0,t.jsx)(s.default,{name:"recyclingByPrivateMemory",label:g("recyclingByPrivateMemory"),description:g("recyclingByPrivateMemoryHint"),units:r,unlimitedLabel:g("unlimited"),disabled:P})]})]})]})}},2845(e,i,n){"use strict";n.r(i),n.d(i,{default:()=>b});var t=n(811),a=n(785),o=n(342),l=n(772),s=n(718),r=n(2846),d=n(1443),c=n.n(d),u=n(2851),m=n.n(u),p=n(2852),f=n.n(p),v=n(2853),S=n.n(v),k=n(2854),g=n.n(k),y=n(341);const b=()=>{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},[v]=(0,t.useMutation)(m(),p),[k,{loading:b}]=(0,t.useMutation)(f(),p),[h,{loading:P}]=(0,t.useMutation)(S(),p),[A,{loading:x}]=(0,t.useMutation)(g(),p);return(0,y.jsx)(r.default,{settings:d?.settings,availableCpuLimitActions:u,onSubmit:e=>v({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 k(),(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:b,stopping:P,recycling:x}:void 0})}},2848(e,i,n){"use strict";n.r(i),n.d(i,{default:()=>s});var t=n(341),a=n(342);n(2849);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})})},2854(e){var i={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"RecycleServerIisAppPool"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"recycleServerIisAppPool"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"pool"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"running"}},{kind:"Field",name:{kind:"Name",value:"isStarted"}}]}}]}}]}}],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")},2852(e){var i={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"StartServerIisAppPool"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"startServerIisAppPool"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"pool"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"running"}},{kind:"Field",name:{kind:"Name",value:"isStarted"}}]}}]}}]}}],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")},2853(e){var i={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"StopServerIisAppPool"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"stopServerIisAppPool"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"pool"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"running"}},{kind:"Field",name:{kind:"Name",value:"isStarted"}}]}}]}}]}}],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")},2851(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"}}}}],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"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"pool"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"enabled"}},{kind:"Field",name:{kind:"Name",value:"running"}},{kind:"Field",name:{kind:"Name",value:"isStarted"}},{kind:"Field",name:{kind:"Name",value:"settings"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"managedPipelineMode"}},{kind:"Field",name:{kind:"Name",value:"enable32bitAppOnWin64"}},{kind:"Field",name:{kind:"Name",value:"loadUserProfile"}},{kind:"Field",name:{kind:"Name",value:"maxProcesses"}},{kind:"Field",name:{kind:"Name",value:"idleTimeout"}},{kind:"Field",name:{kind:"Name",value:"idleTimeoutAction"}},{kind:"Field",name:{kind:"Name",value:"cpuLimit"}},{kind:"Field",name:{kind:"Name",value:"cpuLimitAction"}},{kind:"Field",name:{kind:"Name",value:"cpuLimitInterval"}},{kind:"Field",name:{kind:"Name",value:"recyclingByTime"}},{kind:"Field",name:{kind:"Name",value:"recyclingByRequests"}},{kind:"Field",name:{kind:"Name",value:"recyclingByVirtualMemory"}},{kind:"Field",name:{kind:"Name",value:"recyclingByPrivateMemory"}}]}}]}}]}}]}}],loc:{start:0,end:725}};i.loc.source={body:"mutation UpdateServerIisAppPoolSettings($input: 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);
1else 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")},2850(e,i,n){"use strict";n.r(i)},2849(e,i,n){"use strict";n.r(i)}}]);
2//# sourceMappingURL=IisAppPoolSettingsPage.js.map?ead14dadfe7ebec86660

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.