This commit is contained in:
cutemeli
2025-12-22 10:35:30 +00:00
parent 0bfc6c8425
commit 5ce7ca2c5d
38927 changed files with 0 additions and 4594700 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -1,2 +0,0 @@
"use strict";(globalThis.webpackChunkPlesk=globalThis.webpackChunkPlesk||[]).push([["components/pages/DatabasesPage/ConnectionInfo"],{1430:(e,t,s)=>{s.r(t),s.d(t,{default:()=>c});var o=s(296),n=s(599),a=s(297);const c=({onClose:e,isOpen:t=!0,closeOnFormSuccess:s=!0,closeUrl:c="..",form:r,...l})=>{const i=(0,n.useNavigate)(),[d,u]=(0,o.useState)(t),p=(0,o.useRef)(null),m=(0,o.useCallback)((...t)=>{const s=e??(()=>i(c,{preventScrollReset:!0}));u(!1),p.current=setTimeout(()=>{s(...t),p.current=null},300)},[c,i,e]);(0,o.useEffect)(()=>()=>{p.current&&clearTimeout(p.current)},[]),(0,o.useEffect)(()=>{t?p.current&&clearTimeout(p.current):u(t)},[t]);const h=(0,o.useMemo)(()=>{if(r&&s){if((0,o.isValidElement)(r))return(0,o.cloneElement)(r,{onSuccess:(...e)=>{r.props.onSuccess?.(...e),m()}});if("object"==typeof r)return{...r,onSuccess:(...e)=>{r.onSuccess?.(...e),m()}}}return r},[s,m,r]);return(0,o.jsx)(a.Drawer,{...l,form:h,onClose:m,isOpen:d})}},1473:(e,t,s)=>{s.r(t),s.d(t,{default:()=>r});var o=s(297),n=s(90),a=s(296);const c=n.Locale.getSection("components.buttons"),r=({id:e,content:t,icon:s="copy",className:n,tooltip:r=c.lmsg("copyToClipboard"),onCopy:l=()=>{},children:i})=>(0,a.jsx)(o.Button,{className:n,ghost:!0,icon:s,tooltip:r,tooltipAsLabel:!0,onClick:()=>{(0,o.copyToClipboard)(t),l()},"data-action":"copy-to-clipboard"+(e?`-${e}`:""),children:i})},1820:(e,t,s)=>{s.r(t),s.d(t,{default:()=>u});var o=s(297),n=s(668),a=s.n(n),c=s(546),r=s(1473),l=s(90),i=s(296);const d=({data:e,children:t,childrenAsButton:s=!1,component:n=o.Paragraph,id:a,...d})=>(0,i.jsxs)(n,{...d,children:[!s&&t," ",(0,i.jsx)(r.default,{id:a,content:e,onCopy:()=>(0,c.addToast)({intent:"success",message:l.Locale.getSection("components.buttons").lmsg("copied")}),children:s&&t})]});d.propTypes={childrenAsButton:a().bool,component:a().oneOf([a().node,a().string]),data:a().string.isRequired,children:a().node.isRequired,id:a().string};const u=d},2659:(e,t,s)=>{s.r(t),s.d(t,{default:()=>h});var o=s(620),n=s(599),a=s(297),c=s(90),r=s(1430),l=s(1820),i=s(1187),d=s.n(i),u=s(296);const p=c.Locale.getTranslate("components.pages.Databases.ConnectionInfo"),m=c.Locale.getSection("components.pages.Databases.ConnectionInfo"),h=()=>{const e=(0,n.useParams)(),{data:{database:t}}=(0,o.useQuery)(d(),{variables:{id:btoa(`Database:${e.databaseId}`)}}),s=t.defaultUser??t.users[0];return(0,u.jsxs)(r.default,{title:(0,u.jsx)(p,{content:"title"}),subtitle:(0,u.jsx)(p,{content:"description",params:{database:t.name}}),size:"sm","data-type":"connection-info",children:[(0,u.jsx)(a.Paragraph,{children:(0,u.jsx)(p,{content:"hint"})}),(0,u.jsx)(a.FormField,{label:(0,u.jsx)(p,{content:"host"}),children:(0,u.jsx)(l.default,{tooltip:m.lmsg("copyHost"),data:`${t.server.host}:${t.server.port}`,children:`${t.server.host}:${t.server.port}`})}),(0,u.jsx)(a.FormField,{label:(0,u.jsx)(p,{content:"databaseName"}),children:(0,u.jsx)(l.default,{tooltip:m.lmsg("copyDatabaseName"),data:t.name,children:t.name})}),(0,u.jsx)(a.FormField,{label:(0,u.jsx)(p,{content:"user"}),children:s?(0,u.jsx)(l.default,{tooltip:m.lmsg("copyUser"),data:s.login,children:s.login}):(0,u.jsx)(a.Paragraph,{children:(0,u.jsx)(p,{content:"noDefaultUser"})})}),(0,u.jsx)(a.FormField,{label:(0,u.jsx)(p,{content:"password"}),children:s?"********":""})]})}}}]);
//# sourceMappingURL=ConnectionInfo.js.map?8dfbecf92cba7a987be2

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -1,2 +0,0 @@
"use strict";(globalThis.webpackChunkPlesk=globalThis.webpackChunkPlesk||[]).push([["components/pages/DomainsResourceUsagePage"],{1448:(e,a,s)=>{s.r(a),s.d(a,{formatByteSize:()=>r});const t=["B","KB","MB","GB","TB","PB","EB","ZB","YB"],r=e=>{if(!e)return"0 B";const a=Math.floor(Math.log(e)/Math.log(1024));return`${(e/1024**a).toFixed(2)} ${t[a]}`}},2991:(e,a,s)=>{s.r(a),s.d(a,{default:()=>t.default});var t=s(2992)},2992:(e,a,s)=>{s.r(a),s.d(a,{default:()=>g});var t=s(297),r=s(90),o=s(296),n=s(1180),i=s(1448),l=s(1301),c=s.n(l);s(2993);const d=r.Locale.getTranslate("admin.components.lists.resourceusage"),g=()=>{const{listProps:e,listInput:a,queryResult:{data:s}}=(0,n.useGraphQlList)({key:"ResourceUsagePage",query:c(),extractList:e=>e.viewer.client.resourceUsage}),r=s?.os?.isUnix??!1,l=(0,o.useMemo)(()=>[{key:"domainName",render:({domainName:e})=>(0,o.jsx)("span",{className:"domain-resource-usage-page-nowrap",children:e})},{key:"clientName",render:({clientName:e})=>(0,o.jsx)("span",{"data-testid":"client-name",className:"domain-resource-usage-page-nowrap",children:e})},{key:"webUsage",render:({webUsage:e})=>(0,i.formatByteSize)(e)},{key:"mailUsage",render:({mailUsage:e})=>(0,i.formatByteSize)(e)},{key:"databaseUsage",render:({databaseUsage:e})=>(0,i.formatByteSize)(e)},{key:"backupsUsage",render:({backupsUsage:e})=>(0,i.formatByteSize)(e)},r&&{key:"configsUsage",render:({configsUsage:e})=>(0,i.formatByteSize)(e)},{key:"logsUsage",render:({logsUsage:e})=>(0,i.formatByteSize)(e)},{key:"anonFtpUsage",render:({anonFtpUsage:e})=>(0,i.formatByteSize)(e)},{key:"actions",title:"",render:({domainName:e})=>(0,o.jsx)(t.ListActions,{children:(0,o.jsx)(t.ListAction,{onClick:()=>{window.open(`https://${e}/plesk-stat/webstat-ssl/`,"_blank","popup,width=700,height=500")},icon:"bar-chart-vertical-lock",primary:!0,children:(0,o.jsx)(d,{content:"webStatistics"})})})}].filter(Boolean).map(({key:e,width:a,title:s,render:t})=>({key:e,width:a,title:s??(0,o.jsx)(d,{content:e}),sortable:!0,render:t})),[r]),g=(0,o.jsxs)(t.Toolbar,{children:[(0,o.jsx)(t.ToolbarExpander,{}),(0,o.jsx)(t.ToolbarGroup,{title:"",children:(0,o.jsx)(t.ToolbarGroup,{groupable:!1,title:"",children:(0,o.jsx)(n.GraphQlList.SearchBar,{name:"search"})})})]});return(0,o.jsx)(n.GraphQlList,{rowKey:"id",filtered:!!a.searchFilters?.search,columns:l,toolbar:g,emptyView:(0,o.jsx)(t.ListEmptyView,{title:(0,o.jsx)(d,{content:"noResults"})}),...e})}},2993:(e,a,s)=>{s.r(a)}}]);
//# sourceMappingURL=DomainsResourceUsagePage.js.map?c2390a34ff425cfb54f6

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -1,2 +0,0 @@
"use strict";(globalThis.webpackChunkPlesk=globalThis.webpackChunkPlesk||[]).push([["components/pages/InfoAndStatisticsPage"],{2987:(e,t,n)=>{n.r(t),n.d(t,{default:()=>s.default});var s=n(2988)},2988:(e,t,n)=>{n.r(t),n.d(t,{default:()=>m});var s=n(599),a=n(297),i=n(620),l=n(718),o=n(90),r=n(1299),c=n.n(r),u=(n(2989),n(296));const d=o.Locale.getTranslate("components.pages.InfoAndStatistics.Main"),m=()=>{const e=(0,s.useLocation)(),{data:{viewer:{type:t,permissions:{manageServerInfo:n,manageServerDomainTrafficReport:o,manageServerSummaryReport:r}}}}=(0,i.useQuery)(c()),m=["ADMIN"===t&&n?{title:(0,u.jsx)(d,{content:"overview"}),link:"overview"}:null,{title:(0,u.jsx)(d,{content:"domains"}),link:"domains"},"ADMIN"!==t||o?{title:(0,u.jsx)(d,{content:"trafficUsage"}),link:"traffic-usage"}:null,"ADMIN"!==t||r?{title:(0,u.jsx)(d,{content:"reports"}),link:"summary-report"}:null].filter(Boolean),p=m.findLastIndex(({link:t})=>e.pathname.includes(t))+1;return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)(a.Columns,{gap:"xs",children:[(0,u.jsx)(a.Column,{fill:!0,children:(0,u.jsx)(a.Tabs,{active:p,children:m.map(({title:e,link:t})=>(0,u.jsx)(a.Tab,{component:l.default,title:e,to:t},t))})}),"ADMIN"===t&&(0,u.jsx)(a.Column,{children:(0,u.jsx)(a.Button,{className:"info-and-statistics-page-button",component:l.default,to:"/cp/server/settings/",children:(0,u.jsx)(d,{content:"serverSettings"})})})]}),(0,u.jsx)(s.Outlet,{})]})}},2989:(e,t,n)=>{n.r(t)}}]);
//# sourceMappingURL=InfoAndStatisticsPage.js.map?0cf0700f03827b08b7e7

View File

@@ -1 +0,0 @@
{"version":3,"file":"javascript/components/pages/InfoAndStatisticsPage.js?0cf0700f03827b08b7e7","mappings":"sUAYA,MAAMA,EAAYC,EAAAA,OAAOC,aAAa,2CA4DtC,EA1D8BC,KAC1B,MAAMC,GAAWC,EAAAA,EAAAA,gBAEbC,MACIC,QAAQ,KACJC,EACAC,aAAa,iBACTC,EAAgB,gCAChBC,EAA+B,0BAC/BC,OAIZC,EAAAA,EAAAA,UAASC,KAEPC,EAAQ,CACA,UAATP,GAAoBE,EAAoB,CACrCM,OAAOC,EAAAA,EAAAA,KAACjB,EAAS,CAACkB,QAAQ,aAC1BC,KAAM,YACN,KACJ,CACIH,OAAOC,EAAAA,EAAAA,KAACjB,EAAS,CAACkB,QAAQ,YAC1BC,KAAM,WAEA,UAATX,GAAoBG,EAAmC,CACpDK,OAAOC,EAAAA,EAAAA,KAACjB,EAAS,CAACkB,QAAQ,iBAC1BC,KAAM,iBACN,KACM,UAATX,GAAoBI,EAA6B,CAC9CI,OAAOC,EAAAA,EAAAA,KAACjB,EAAS,CAACkB,QAAQ,YAC1BC,KAAM,kBACN,MAAMC,OAAOC,SAEfC,EAAYP,EAAMQ,cAAc,EAAGJ,UAAWf,EAASoB,SAASC,SAASN,IAAS,EAExF,OACIO,EAAAA,EAAAA,MAAAC,EAAAA,SAAA,CAAAC,SAAA,EACIF,EAAAA,EAAAA,MAACG,EAAAA,QAAO,CAACC,IAAI,KAAIF,SAAA,EACbX,EAAAA,EAAAA,KAACc,EAAAA,OAAM,CAACC,MAAI,EAAAJ,UACRX,EAAAA,EAAAA,KAACgB,EAAAA,KAAI,CAACC,OAAQZ,EAAUM,SACnBb,EAAMoB,IAAI,EAAGnB,QAAOG,WACjBF,EAAAA,EAAAA,KAACmB,EAAAA,IAAG,CAACC,UAAWC,EAAAA,QAAiBtB,MAAOA,EAAOuB,GAAIpB,GAAxBA,QAI7B,UAATX,IACGS,EAAAA,EAAAA,KAACc,EAAAA,OAAM,CAAAH,UACHX,EAAAA,EAAAA,KAACuB,EAAAA,OAAM,CAACC,UAAU,kCAAkCJ,UAAWC,EAAAA,QAAMC,GAAG,uBAAsBX,UAC1FX,EAAAA,EAAAA,KAACjB,EAAS,CAACkB,QAAQ,2BAKnCD,EAAAA,EAAAA,KAACyB,EAAAA,OAAM,O","sources":["webpack:///./components/pages/InfoAndStatisticsPage/InfoAndStatisticsPage.js"],"sourcesContent":["// Copyright 1999-2025. WebPros International GmbH. All rights reserved.\n\nimport { Outlet, useLocation } from 'react-router-dom';\nimport { Tabs, Tab, Columns, Column, Button } from '@plesk/ui-library';\nimport { useQuery } from '@apollo/client';\nimport Link from 'components/common/Link';\nimport { Locale } from 'jsw';\n\nimport INFO_AND_STATISTICS_PAGE_QUERY from 'queries/InfoAndStatisticsPage.graphql';\n\nimport './InfoAndStatisticsPage.css';\n\nconst Translate = Locale.getTranslate('components.pages.InfoAndStatistics.Main');\n\nconst InfoAndStatisticsPage = () => {\n const location = useLocation();\n const {\n data: {\n viewer: {\n type,\n permissions: {\n manageServerInfo,\n manageServerDomainTrafficReport,\n manageServerSummaryReport,\n },\n },\n },\n } = useQuery(INFO_AND_STATISTICS_PAGE_QUERY);\n\n const links = [\n (type === 'ADMIN' && manageServerInfo) ? {\n title: <Translate content=\"overview\" />,\n link: 'overview',\n } : null,\n {\n title: <Translate content=\"domains\" />,\n link: 'domains',\n },\n (type !== 'ADMIN' || manageServerDomainTrafficReport) ? {\n title: <Translate content=\"trafficUsage\" />,\n link: 'traffic-usage',\n } : null,\n (type !== 'ADMIN' || manageServerSummaryReport) ? {\n title: <Translate content=\"reports\" />,\n link: 'summary-report',\n } : null].filter(Boolean);\n\n const activeTab = links.findLastIndex(({ link }) => location.pathname.includes(link)) + 1;\n\n return (\n <>\n <Columns gap=\"xs\">\n <Column fill>\n <Tabs active={activeTab}>\n {links.map(({ title, link }) => (\n <Tab component={Link} key={link} title={title} to={link} />\n ))}\n </Tabs>\n </Column>\n {type === 'ADMIN' && (\n <Column>\n <Button className=\"info-and-statistics-page-button\" component={Link} to=\"/cp/server/settings/\">\n <Translate content=\"serverSettings\" />\n </Button>\n </Column>\n )}\n </Columns>\n <Outlet />\n </>\n );\n};\n\nexport default InfoAndStatisticsPage;\n"],"names":["Translate","Locale","getTranslate","InfoAndStatisticsPage","location","useLocation","data","viewer","type","permissions","manageServerInfo","manageServerDomainTrafficReport","manageServerSummaryReport","useQuery","INFO_AND_STATISTICS_PAGE_QUERY","links","title","_jsx","content","link","filter","Boolean","activeTab","findLastIndex","pathname","includes","_jsxs","_Fragment","children","Columns","gap","Column","fill","Tabs","active","map","Tab","component","Link","to","Button","className","Outlet"],"sourceRoot":""}

View File

@@ -1,2 +0,0 @@
"use strict";(globalThis.webpackChunkPlesk=globalThis.webpackChunkPlesk||[]).push([["components/pages/InfoAndStatisticsPage/TrafficUsageLayoutPage"],{2990:(e,a,s)=>{s.r(a),s.d(a,{default:()=>g});var l=s(599),t=s(297),n=s(620),o=s(90),u=s(662),c=s.n(u),i=s(296);const r=o.Locale.getSection("components.pages.InfoAndStatistics.TrafficUsage"),g=()=>{const e=(0,l.useLocation)(),a=(0,l.useNavigate)(),{data:{viewer:{type:s}}}=(0,n.useQuery)(c()),o=[{value:"domains",label:r.lmsg("domains")},{value:"customers",label:r.lmsg("customers")},"ADMIN"===s?{value:"resellers",label:r.lmsg("resellers")}:null].filter(Boolean),u=o.find(({value:a})=>e.pathname.includes(a));return(0,i.jsx)(l.Outlet,{context:{trafficUsagePageDropdown:(0,i.jsx)(t.ButtonGroup,{children:o.map(({value:e,label:s})=>(0,i.jsx)(t.Button,{state:u.value===e?"active":"default",onClick:()=>a(e),children:s},e))})}})}}}]);
//# sourceMappingURL=TrafficUsageLayoutPage.js.map?3c9ff3795a5227493a58

View File

@@ -1 +0,0 @@
{"version":3,"file":"javascript/components/pages/InfoAndStatisticsPage/TrafficUsageLayoutPage.js?3c9ff3795a5227493a58","mappings":"qQASA,MAAMA,EAASC,EAAAA,OAAOC,WAAW,mDAwCjC,EAtC+BC,KAC3B,MAAMC,GAAWC,EAAAA,EAAAA,eACXC,GAAWC,EAAAA,EAAAA,gBACTC,MAAQC,QAAQ,KAAEC,MAAaC,EAAAA,EAAAA,UAASC,KAE1CC,EAAU,CACZ,CAAEC,MAAO,UAAWC,MAAOf,EAAOgB,KAAK,YACvC,CAAEF,MAAO,YAAaC,MAAOf,EAAOgB,KAAK,cAChC,UAATN,EAAmB,CACfI,MAAO,YACPC,MAAOf,EAAOgB,KAAK,cACnB,MACNC,OAAOC,SAIHC,EAAUN,EAAQO,KAAK,EAAGN,WAAYV,EAASiB,SAASC,SAASR,IAEvE,OACIS,EAAAA,EAAAA,KAACC,EAAAA,OAAM,CAACC,QAAS,CACbC,0BACIH,EAAAA,EAAAA,KAACI,EAAAA,YAAW,CAAAC,SACPf,EAAQgB,IAAI,EAAGf,QAAOC,YACnBQ,EAAAA,EAAAA,KAACO,EAAAA,OAAM,CAEHC,MAAOZ,EAAQL,QAAUA,EAAQ,SAAW,UAC5CkB,QAASA,IAZO1B,EAYuBQ,GAAOc,SAE7Cb,GAJID,S","sources":["webpack:///./components/pages/InfoAndStatisticsPage/TrafficUsageLayoutPage.js"],"sourcesContent":["// Copyright 1999-2025. WebPros International GmbH. All rights reserved.\n\nimport { useLocation, useNavigate, Outlet } from 'react-router-dom';\nimport { ButtonGroup, Button } from '@plesk/ui-library';\nimport { useQuery } from '@apollo/client';\nimport { Locale } from 'jsw';\n\nimport VIEWER_TYPE_QUERY from 'queries/ViewerType.graphql';\n\nconst locale = Locale.getSection('components.pages.InfoAndStatistics.TrafficUsage');\n\nconst TrafficUsageLayoutPage = () => {\n const location = useLocation();\n const navigate = useNavigate();\n const { data: { viewer: { type } } } = useQuery(VIEWER_TYPE_QUERY);\n\n const options = [\n { value: 'domains', label: locale.lmsg('domains') },\n { value: 'customers', label: locale.lmsg('customers') },\n type === 'ADMIN' ? {\n value: 'resellers',\n label: locale.lmsg('resellers'),\n } : null,\n ].filter(Boolean);\n\n const handleChangeTrafficPage = page => navigate(page);\n\n const current = options.find(({ value }) => location.pathname.includes(value));\n\n return (\n <Outlet context={{\n trafficUsagePageDropdown: (\n <ButtonGroup>\n {options.map(({ value, label }) => (\n <Button\n key={value}\n state={current.value === value ? 'active' : 'default'}\n onClick={() => handleChangeTrafficPage(value)}\n >\n {label}\n </Button>\n ))}\n </ButtonGroup>\n ),\n }}\n />\n );\n};\n\nexport default TrafficUsageLayoutPage;\n"],"names":["locale","Locale","getSection","TrafficUsageLayoutPage","location","useLocation","navigate","useNavigate","data","viewer","type","useQuery","VIEWER_TYPE_QUERY","options","value","label","lmsg","filter","Boolean","current","find","pathname","includes","_jsx","Outlet","context","trafficUsagePageDropdown","ButtonGroup","children","map","Button","state","onClick"],"sourceRoot":""}

View File

@@ -1,13 +0,0 @@
"use strict";(globalThis.webpackChunkPlesk=globalThis.webpackChunkPlesk||[]).push([["components/pages/IpAddressDomainsPage"],{1429:(e,t,s)=>{s.r(t),s.d(t,{default:()=>c});var a=s(296),n=s(599),d=s(297),o=s(1430),i=s(90),r=s(696);const u=s(583).gql`
mutation UpdateIpAddressDefaultDomain($input: UpdateIpAddressDefaultDomainInput!) {
updateIpAddressDefaultDomain(input: $input) {
ipAddress {
id
defaultDomain {
id
}
}
}
}
`,l=i.Locale.getTranslate("components.pages.ip-address-domains"),c=()=>{const e=(0,n.useNavigate)(),[t,s]=(0,a.useState)(),{ipAddress:i,viewer:c}=(0,n.useLoaderData)(),{ipAddressId:p}=(0,n.useParams)(),[m,{loading:f}]=(0,r.useMutation)(u,{onCompleted:()=>e(-1)}),D=t||i.defaultDomain?.id,g=t&&t!==i.defaultDomain?.id,A="ADMIN"===c.type||"EXCLUSIVE"===i.type,h=e=>()=>s(e),j=(0,a.useMemo)(()=>[{key:"name",title:(0,a.jsx)(l,{content:"site"}),type:"title",render:({id:e,name:t})=>A?(0,a.jsx)(d.Radio,{onChange:h(e),checked:D===e,children:t}):t}],[D,A]);return(0,a.jsx)(o.default,{"data-type":"ip-address-domains-drawer",title:(0,a.jsx)(l,{content:"title",params:{type:(0,a.jsx)(l,{content:`type-${i.type}`}),ipAddress:i.ipAddress}}),children:(0,a.jsx)(d.List,{id:"ip-address-domains-list",rowKey:"id",data:i.domains,columns:j,toolbar:A?(0,a.jsx)(d.Toolbar,{children:(0,a.jsx)(d.Button,{"data-testid":"updateDomainButton",onClick:async()=>{await m({variables:{input:{ipAddressId:p,domainId:t}}})},disabled:!g,state:f?"loading":void 0,children:(0,a.jsx)(l,{content:"setAsDefault"})})}):null})})}},1430:(e,t,s)=>{s.r(t),s.d(t,{default:()=>o});var a=s(296),n=s(599),d=s(297);const o=({onClose:e,isOpen:t=!0,closeOnFormSuccess:s=!0,closeUrl:o="..",form:i,...r})=>{const u=(0,n.useNavigate)(),[l,c]=(0,a.useState)(t),p=(0,a.useRef)(null),m=(0,a.useCallback)((...t)=>{const s=e??(()=>u(o,{preventScrollReset:!0}));c(!1),p.current=setTimeout(()=>{s(...t),p.current=null},300)},[o,u,e]);(0,a.useEffect)(()=>()=>{p.current&&clearTimeout(p.current)},[]),(0,a.useEffect)(()=>{t?p.current&&clearTimeout(p.current):c(t)},[t]);const f=(0,a.useMemo)(()=>{if(i&&s){if((0,a.isValidElement)(i))return(0,a.cloneElement)(i,{onSuccess:(...e)=>{i.props.onSuccess?.(...e),m()}});if("object"==typeof i)return{...i,onSuccess:(...e)=>{i.onSuccess?.(...e),m()}}}return i},[s,m,i]);return(0,a.jsx)(d.Drawer,{...r,form:f,onClose:m,isOpen:l})}}}]);
//# sourceMappingURL=IpAddressDomainsPage.js.map?fb59dbc5655b4a532a15

File diff suppressed because one or more lines are too long

View File

@@ -1,8 +0,0 @@
"use strict";(globalThis.webpackChunkPlesk=globalThis.webpackChunkPlesk||[]).push([["components/pages/MassMailPage"],{2598:(e,t,s)=>{s.r(t),s.d(t,{default:()=>T});var n=s(297),a=s(90),l=s(296),i=s(696),o=s(583),r=s(1180),c=s(1211),d=s.n(c),m=s(718),p=s(617),u=s(546);const x=o.gql`
mutation DeleteMassEmailTemplateMutation($input: DeleteMassEmailTemplateInput!) {
deleteMassEmailTemplate(input: $input) {
ids
}
}
`,j=a.Locale.getTranslate("components.pages.MassMailPage"),h=a.Locale.getSection("components.pages.MassMailPage"),g=[{key:"name",sortable:!0,title:(0,l.jsx)(j,{content:"name"}),render:({name:e,templateId:t})=>(0,l.jsx)(m.default,{to:`${t}/edit`,children:e})},{key:"fromEmail",sortable:!0,title:(0,l.jsx)(j,{content:"sender"})},{key:"sendToResellersMode",title:(0,l.jsx)(j,{content:"recipients"}),width:"350px",render:({sendToAdmins:e,sendToResellers:t,sendToResellersMode:s,sendToClients:n,sendToClientsMode:a})=>{if(!e&&!t&&!n)return(0,l.jsx)(j,{content:"recipientsNone"});const i=[];return e&&i.push(h.lmsg("recipientsAdmins")),t&&("all"===s?i.push(h.lmsg("recipientsResellers")):i.push(h.lmsg("select"===s?"recipientsResellersSelected":"recipientsResellersExcept"))),n&&("all"===a?i.push(h.lmsg("recipientsClients")):i.push(h.lmsg("select"===a?"recipientsClientsSelected":"recipientsClientsExcept"))),i.join(", ")}},{title:(0,l.jsx)(j,{content:"subject"}),key:"subject",sortable:!0},{title:(0,l.jsx)(j,{content:"created"}),key:"created",sortable:!0,render:({created:e})=>(0,p.formatDateFromTimestamp)(e)},{title:(0,l.jsx)(j,{content:"send"}),key:"send",render:({templateId:e})=>(0,l.jsx)(n.Button,{component:m.default,to:`send?templateId=${e}`,ghost:!0,icon:"mail"})}],T=()=>{const[e,t]=(0,l.useState)([]),{queryResult:{refetch:s},listProps:a,listInput:o}=(0,r.useGraphQlList)({key:"MassMailPage",onListInputChange:()=>t([]),query:d(),extractList:e=>e.massEmail.templates}),c=!!o.searchFilters?.query,[p,{loading:T}]=(0,i.useMutation)(x,{onCompleted:()=>{(0,u.addToast)({intent:"success",message:h.formatMessage("templatesRemoved",{count:e.length})}),t([]),s()}});return(0,l.jsx)(r.GraphQlList,{selection:e,rowKey:"templateId",filtered:c,onSelectionChange:e=>t(e),emptyView:(0,l.jsx)(n.ListEmptyView,{title:(0,l.jsx)(j,{content:"emptyViewTitle"}),actions:c?void 0:(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(n.Button,{"data-testid":"new-mass-mail-template",component:m.default,to:"create",intent:"primary",children:(0,l.jsx)(j,{content:"addNew"})}),(0,l.jsx)(n.Button,{"data-testid":"send-mass-mail",component:m.default,to:"send",intent:"secondary",children:(0,l.jsx)(j,{content:"sendEmail"})})]})}),toolbar:(0,l.jsxs)(n.Toolbar,{children:[(0,l.jsx)(n.ToolbarGroup,{title:h.lmsg("addNew"),children:(0,l.jsx)(n.Button,{"data-testid":"new-mass-mail-template",component:m.default,to:"create",icon:"plus",intent:"primary"})}),(0,l.jsx)(n.ToolbarGroup,{title:h.lmsg("addNew"),children:(0,l.jsx)(n.Button,{"data-testid":"send-mass-mail",component:m.default,to:"send",intent:"primary",children:(0,l.jsx)(j,{content:"sendEmail"})})}),(0,l.jsx)(n.ToolbarGroup,{title:h.lmsg("actions"),children:(0,l.jsx)(n.ListOperation,{critical:!0,noSelectionText:(0,l.jsx)(j,{content:"selectAtLeastOneTemplate"}),confirmationText:h.formatMessage("confirmRemoval",{count:e.length}),actionButtonText:(0,l.jsx)(j,{content:"remove"}),children:(0,l.jsx)(n.Button,{onClick:async()=>{await p({variables:{input:{ids:e.map(e=>btoa(`MassEmailTemplate:${e}`))}}})},state:T?"loading":void 0,children:(0,l.jsx)(j,{content:"remove"})})})}),(0,l.jsx)(n.ToolbarExpander,{}),(0,l.jsx)(n.ToolbarGroup,{title:(0,l.jsx)(j,{content:"filters"}),groupable:!1,children:(0,l.jsx)(r.GraphQlList.SearchBar,{name:"query"})})]}),columns:g,...a})}}}]);
//# sourceMappingURL=MassMailPage.js.map?2f750bf136766ffe3853

File diff suppressed because one or more lines are too long

View File

@@ -1,2 +0,0 @@
"use strict";(globalThis.webpackChunkPlesk=globalThis.webpackChunkPlesk||[]).push([["components/pages/MoveDatabasePage"],{1430:(e,s,t)=>{t.r(s),t.d(s,{default:()=>o});var n=t(296),a=t(599),r=t(297);const o=({onClose:e,isOpen:s=!0,closeOnFormSuccess:t=!0,closeUrl:o="..",form:c,...l})=>{const u=(0,a.useNavigate)(),[i,m]=(0,n.useState)(s),d=(0,n.useRef)(null),p=(0,n.useCallback)((...s)=>{const t=e??(()=>u(o,{preventScrollReset:!0}));m(!1),d.current=setTimeout(()=>{t(...s),d.current=null},300)},[o,u,e]);(0,n.useEffect)(()=>()=>{d.current&&clearTimeout(d.current)},[]),(0,n.useEffect)(()=>{s?d.current&&clearTimeout(d.current):m(s)},[s]);const b=(0,n.useMemo)(()=>{if(c&&t){if((0,n.isValidElement)(c))return(0,n.cloneElement)(c,{onSuccess:(...e)=>{c.props.onSuccess?.(...e),p()}});if("object"==typeof c)return{...c,onSuccess:(...e)=>{c.onSuccess?.(...e),p()}}}return c},[t,p,c]);return(0,n.jsx)(r.Drawer,{...l,form:b,onClose:p,isOpen:i})}},2428:(e,s,t)=>{t.r(s),t.d(s,{default:()=>n.default});var n=t(2429)},2429:(e,s,t)=>{t.r(s),t.d(s,{default:()=>m});var n=t(296),a=t(599),r=t(297),o=t(1430),c=t(90),l=t(1305),u=t(546);const i=c.Locale.getTranslate("components.pages.MoveDatabasePage"),m=({url:e,ids:s,database:t,viewer:{client:{subscriptions:{nodes:c}}}})=>{const{reloadDatabaseList:m}=(0,a.useOutletContext)(),[d,p]=(0,n.useState)({domainName:"",ids:s.map(Number)});return(0,n.jsx)(o.default,{size:"sm",title:(0,n.jsx)(i,{content:"title"}),subtitle:t&&(0,n.jsx)(i,{content:"description",params:{name:(0,n.jsx)("b",{children:t.name})}}),form:(0,n.jsxs)(l.default,{action:e,onFieldChange:(e,s)=>{p(t=>(0,r.setIn)(t,e,s))},values:d,applyButton:!1,onSuccess:({statusMessages:e})=>{e.forEach(({content:e,status:s})=>{(0,u.addToast)({intent:"error"===s?"danger":"success",message:(0,n.jsx)("span",{dangerouslySetInnerHTML:{__html:e}})})}),m?.()},submitButton:{children:(0,n.jsx)(i,{content:"save"}),"data-action-name":"submit"},children:[(0,n.jsx)(r.Paragraph,{children:(0,n.jsx)(i,{content:"hint"})}),(0,n.jsx)(r.FormFieldSelect,{"data-action-name":"assignToSubscriptionSelect",size:"fill",name:"domainName",label:(0,n.jsx)(i,{content:"subscriptionName"}),searchable:!0,required:!0,children:c.map(({mainDomain:{name:e}})=>(0,n.jsx)("option",{value:e,children:e},e))})]})})}}}]);
//# sourceMappingURL=MoveDatabasePage.js.map?d520bcf7ff5edba49314

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -1,33 +0,0 @@
"use strict";(globalThis.webpackChunkPlesk=globalThis.webpackChunkPlesk||[]).push([["components/pages/PanelNotificationsSettings"],{1435:(e,t,a)=>{a.r(t),a.d(t,{SORT_ASC:()=>l,SORT_DESC:()=>c,default:()=>f});var n=a(296),o=a(668),i=a.n(o),s=a(297);const r=a(90).Locale.getSection("components.list"),l="ASC",c="DESC",d="all",g={set(e,t){localStorage.setItem(e,JSON.stringify(t))},get(e){const t=localStorage.getItem(e);return JSON.parse(t)}},m=e=>`list-sort_${e}`,u=e=>`list-page_${e}`,p=({id:e,data:t,columns:a,itemsPerPage:o=25,itemsPerPageOptions:i=[10,25,100,d],sortColumn:c,sortDirection:p=l,searchField:f,locale:P={},emptyView:h,emptyFilteredView:y,toolbar:S,selection:b=[],onSelectionChange:x,searchBarInputProps:T,rowKey:j="key",useStorage:C=!0,...w})=>{const{sortColumn:k,sortDirection:D,setSortState:L}=((e,{sortColumn:t,sortDirection:a})=>{const[{sortColumn:o,sortDirection:i},s]=(0,n.useState)({sortColumn:g.get(m(e))?.sortColumn??t,sortDirection:g.get(m(e))?.sortDirection??a});return{sortColumn:o,sortDirection:i,setSortState:t=>{s(e=>({...e,...t})),g.set(m(e),{...g.get(m(e)),...t})}}})(e,{sortColumn:c??a.find(({sortable:e})=>e)?.key,sortDirection:p}),{page:N,itemsPerPage:v,searchPattern:F,setPageState:M}=((e,{itemsPerPage:t},a=!0)=>{const o=a?{page:g.get(u(e))?.page,itemsPerPage:g.get(u(e))?.itemsPerPage,searchPattern:g.get(u(e))?.searchPattern}:{},[{page:i,itemsPerPage:s,searchPattern:r},l]=(0,n.useState)({page:o.page??1,itemsPerPage:o.itemsPerPage??t,searchPattern:o.searchPattern??""});return{page:i,itemsPerPage:s,searchPattern:r,setPageState:t=>{l(e=>({...e,...t})),a&&g.set(u(e),{...g.get(u(e)),...t})}}})(e,{itemsPerPage:i.includes(o)?o:i[0]},C),R=(0,n.useMemo)(()=>F?y??(0,n.jsx)(s.ListEmptyView,{reason:"filtered","data-testid":"list-empty-view-filtered"}):h??(0,n.jsx)(s.ListEmptyView,{}),[F,h,y]),q=(0,n.useMemo)(()=>a.map(({sortDataField:e,...t})=>t),[a]),A=(0,n.useMemo)(()=>f&&F?t.filter(e=>(Array.isArray(f)?f:[f]).some(t=>e[t]&&String(e[t]).toLowerCase().includes(F.toLowerCase()))):t,[t,F,f]),O=(0,n.useMemo)(()=>{if(!k)return A;const e=a.find(({key:e})=>e===k)?.sortDataField??k,t=a.find(({key:e})=>e===k)?.sort??((t,a)=>t[e]<a[e]?-1:t[e]>a[e]?1:0);return[...A].sort((e,a)=>l===D?t(e,a):t(a,e))},[A,k,D,a]),V=(0,n.useMemo)(()=>{if(v===d)return O;const e=v*(N-1),t=e+v;return O.slice(e,t)},[N,O,v]),I=(0,n.useCallback)(e=>{M({searchPattern:e}),e!==F&&M({page:1})},[F]),E=(0,n.useCallback)(e=>{M({itemsPerPage:e});(e===d?1:Math.ceil(A.length/e))<N&&M({page:1})},[A.length,N]);return(0,n.useEffect)(()=>{if("function"==typeof x&&b.length){const e=A.map(e=>{return t=e,"function"==typeof(a=j)?a(t):t[a];var t,a}).filter(e=>b.includes(e));x(e)}},[A]),(0,n.jsx)(s.List,{pagination:(0,n.jsx)(s.Pagination,{current:N,total:v===d?1:Math.ceil(A.length/v),onSelect:e=>M({page:e}),itemsPerPage:v,itemsPerPageOptions:i,onItemsPerPageChange:E}),toolbar:(S||f)&&(0,n.jsxs)(s.Toolbar,{children:[S,f&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.ToolbarExpander,{}),(0,n.jsx)(s.ToolbarGroup,{title:"",children:(0,n.jsx)(s.SearchBar,{inputProps:{placeholder:r.lmsg("searchPlaceholder"),"data-testid":"list-searchbar",value:F,...T??{}},onTyping:I})})]})]}),totalRows:A.length,sortColumn:k,sortDirection:D,onSortChange:L,columns:q,data:V,filtered:!!F,locale:{totalRows:({totalRows:e})=>r.formatMessage("recordsTotal",{total:e}),...P},emptyView:R,onSelectionChange:x,selection:b,rowKey:j,...w})};p.propTypes={id:i().string.isRequired,data:i().array.isRequired,columns:i().array.isRequired,itemsPerPage:i().number,itemsPerPageOptions:i().array,sortColumn:i().string,sortDirection:i().string,searchField:i().oneOfType([i().string,i().arrayOf(i().string.isRequired)]),locale:i().object,emptyView:i().node,emptyFilteredView:i().node,toolbar:i().node,onSelectionChange:i().func,selection:i().array,rowKey:i().oneOfType([i().string,i().func]),searchBarInputProps:i().object,useStorage:i().bool};const f=p},2395:(e,t,a)=>{a.r(t),a.d(t,{default:()=>n.default});var n=a(2396)},2396:(e,t,a)=>{a.r(t),a.d(t,{default:()=>j});var n=a(675),o=a(90),i=a(346),s=a(1435),r=a(297),l=a(1305),c=a(2397),d=a(296),g=a(696),m=a(583),u=a(718),p=a(668),f=a(599),P=a(546);const h=o.Locale.getTranslate("admin.controllers.notifications.panel-notifications-toggle"),y=o.Locale.getTranslate("admin.controllers.notifications.template-settings-list"),S=o.Locale.getTranslate("admin.controllers.notifications.template-settings-form"),b=m.gql`
mutation UpdatePanelNotificationTemplate($input: UpdateNotificationPanelTemplateInput!){
updateNotificationPanelTemplate (input: $input){
query {
notification {
panel {
templates {
code
context
title
sendToAdmin
}
}
}
}
}
}
`,x=m.gql`
mutation updateNotificationPanelSettingsStoragePeriod ($input: UpdateNotificationPanelSettingsInput!) {
updateNotificationPanelSettings (input: $input) {
query {
notification {
panel {
settings {
storagePeriod
}
}
}
}
}
}
`,T=({notification:e})=>{const{panel:{settings:{storagePeriod:t},templates:a}}=e,[n]=(0,d.useState)({storagePeriod:t}),[o]=(0,g.useMutation)(b),[i]=(0,g.useMutation)(x),[c,m]=(0,d.useState)(a.map(e=>({...e,loading:!1}))),p=(0,f.useNavigate)(),T="/admin/server/tools",j=(e,t)=>{m(a=>a.map(a=>(a.code===e&&(a={...a,...t}),a)))};return(0,d.jsxs)(l.default,{applyButton:!1,values:n,mutation:i,onSuccess:()=>{p(T)},cancelButton:{component:u.default,to:T},children:[(0,d.jsx)(y,{content:"hint"}),(0,d.jsx)(s.default,{id:"notifications-list",rowKey:"code",data:c,columns:[{key:"title",sortable:!0,title:(0,d.jsx)(y,{content:"name"})},{key:"context",sortable:!0,title:(0,d.jsx)(y,{content:"context"})},{key:"sendToAdmin",title:(0,d.jsx)(y,{content:"sendToAdmin"}),align:"right",render:({sendToAdmin:e,code:t,loading:a,title:n})=>(0,d.jsx)(r.Switch,{checked:e,onChange:e=>(async(e,t,a)=>{j(e,{loading:!0});try{await o({variables:{input:{code:e,sendToAdmin:a}}}),a?(0,P.addToast)({intent:"success",message:(0,d.jsx)(h,{content:"successfullyEnabled",params:{title:t}})}):(0,P.addToast)({intent:"success",message:(0,d.jsx)(h,{content:"successfullyDisabled",params:{title:t}})}),j(e,{sendToAdmin:a})}catch({message:e}){(0,P.addToast)({intent:"danger",message:e})}finally{j(e,{loading:!1})}})(t,n,e),loading:a},t)}],searchField:["title","context"]}),(0,d.jsx)(r.Section,{children:(0,d.jsx)(r.FormField,{name:"storagePeriod",label:(0,d.jsx)(S,{content:"storagePeriod"}),required:!0,children:({getValue:e,setValue:t,isDisabled:a})=>(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(r.InputNumber,{value:e(),min:1,max:360,onChange:t,disabled:a()})," ",(0,d.jsx)(S,{content:"days"})]})})})]})};T.propTypes={notification:p.PropTypes.object.isRequired};const j=(0,n.withPageLayout)((0,c.withNotificationTabs)(T),()=>{const{showFrames:e,pageHeader:t,pageSidebar:a}=(0,i.default)();return{showFrames:e,pageHeader:{...t,helpMenu:{...t.helpMenu,helpContext:"mail"}},pageSidebar:a,pageContentHeader:{breadcrumbs:[a.isPowerUserPanel?null:{title:o.Locale.getSection("admin.controllers.home.admin").lmsg("title"),href:"/admin/home"},{title:o.Locale.getSection("admin.controllers.server.tools").lmsg("title"),href:"/admin/server/tools"},{title:o.Locale.getSection("admin.controllers.notifications.index").lmsg("title"),href:"/admin/notifications"},{title:o.Locale.getSection("admin.controllers.notifications.panel-settings").lmsg("title"),href:"/cp/notifications/panel-settings"}].filter(Boolean),tabs:[],tabsHasRootPage:!0}}})},2397:(e,t,a)=>{a.r(t),a.d(t,{default:()=>c,withNotificationTabs:()=>l});var n=a(297),o=a(90),i=a(718),s=a(296);const r=()=>(0,s.jsxs)(n.Tabs,{active:2,children:[(0,s.jsx)(n.Tab,{title:o.Locale.getSection("admin.controllers.notifications.email-settings").lmsg("title"),component:i.default,to:"/admin/notifications/email-settings/"}),(0,s.jsx)(n.Tab,{title:o.Locale.getSection("admin.controllers.notifications.panel-settings").lmsg("title"),component:i.default,to:"/admin/notifications/panel-settings/"})]}),l=e=>{const t=t=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(r,{}),(0,s.jsx)(e,{...t})]});return t.displayName=`withNotificationTabs(${e.displayName||e.name||"Component"})`,t.WrappedComponent=e,t},c=l}}]);
//# sourceMappingURL=PanelNotificationsSettings.js.map?4caf3b850d70c0a38f4e

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -1,2 +0,0 @@
(globalThis.webpackChunkPlesk=globalThis.webpackChunkPlesk||[]).push([["components/pages/ProtectedDirectoryUserPasswordPage"],{1430:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var i=n(296),r=n(599),s=n(297);const o=({onClose:e,isOpen:t=!0,closeOnFormSuccess:n=!0,closeUrl:o="..",form:a,...c})=>{const d=(0,r.useNavigate)(),[u,l]=(0,i.useState)(t),p=(0,i.useRef)(null),m=(0,i.useCallback)((...t)=>{const n=e??(()=>d(o,{preventScrollReset:!0}));l(!1),p.current=setTimeout(()=>{n(...t),p.current=null},300)},[o,d,e]);(0,i.useEffect)(()=>()=>{p.current&&clearTimeout(p.current)},[]),(0,i.useEffect)(()=>{t?p.current&&clearTimeout(p.current):l(t)},[t]);const f=(0,i.useMemo)(()=>{if(a&&n){if((0,i.isValidElement)(a))return(0,i.cloneElement)(a,{onSuccess:(...e)=>{a.props.onSuccess?.(...e),m()}});if("object"==typeof a)return{...a,onSuccess:(...e)=>{a.onSuccess?.(...e),m()}}}return a},[n,m,a]);return(0,i.jsx)(s.Drawer,{...c,form:f,onClose:m,isOpen:u})}},2785:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i.default});var i=n(2786)},2786:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>y});var i=n(296),r=n(668),s=n.n(r),o=n(599),a=n(696),c=n(297),d=n(90),u=n(1430),l=n(1305),p=n(546),m=n(2787),f=n.n(m);const v=d.Locale.getTranslate("components.pages.ProtectedDirectoryUserPassword"),k=({protectedDirectoryUser:{login:e}})=>{const{userId:t}=(0,o.useParams)(),n=(0,o.useLocation)(),[r,s]=(0,i.useState)({id:t,password:""}),[d]=(0,a.useMutation)(f(),{onCompleted(){(0,p.addToast)({intent:"success",message:(0,i.jsx)(v,{content:"success"})})}});return(0,i.jsx)(u.default,{isOpen:!0,"data-type":"protected-directory-user-password-drawer",title:(0,i.jsx)(v,{content:"title"}),subtitle:(0,i.jsx)(v,{content:"subtitle",params:{login:(0,i.jsx)(c.Label,{view:"light",size:"sm",caps:!1,children:e})}}),size:"sm",closeUrl:{...n,pathname:".."},form:(0,i.jsx)(l.default,{values:r,onFieldChange:(e,t)=>{s(n=>(0,c.setIn)(n,e,t))},mutation:d,applyButton:!1,submitButton:{children:(0,i.jsx)(v,{content:"submit"}),"data-type":"protected-directory-user-password-submit"},children:(0,i.jsx)(c.FormFieldPassword,{name:"password",required:!0,autoFocus:!0,label:(0,i.jsx)(v,{content:"passwordLabel"}),inputProps:{maxLength:"255"}})})})};k.propTypes={protectedDirectoryUser:s().shape({login:s().string.isRequired}).isRequired};const y=k},2787:e=>{var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateProtectedDirectoryUser"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UpdateProtectedDirectoryUserInput"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updateProtectedDirectoryUser"},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:"protectedDirectoryUser"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:208}};t.loc.source={body:"mutation UpdateProtectedDirectoryUser(\n $input: UpdateProtectedDirectoryUserInput!, \n) {\n updateProtectedDirectoryUser(input: $input) {\n protectedDirectoryUser {\n id\n }\n }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function n(e,t){if("FragmentSpread"===e.kind)t.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&t.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){n(e,t)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){n(e,t)}),e.definitions&&e.definitions.forEach(function(e){n(e,t)})}var i={};function r(e,t){for(var n=0;n<e.definitions.length;n++){var i=e.definitions[n];if(i.name&&i.name.value==t)return i}}t.definitions.forEach(function(e){if(e.name){var t=new Set;n(e,t),i[e.name.value]=t}}),e.exports=t,e.exports.UpdateProtectedDirectoryUser=function(e,t){var n={kind:e.kind,definitions:[r(e,t)]};e.hasOwnProperty("loc")&&(n.loc=e.loc);var s=i[t]||new Set,o=new Set,a=new Set;for(s.forEach(function(e){a.add(e)});a.size>0;){var c=a;a=new Set,c.forEach(function(e){o.has(e)||(o.add(e),(i[e]||new Set).forEach(function(e){a.add(e)}))})}return o.forEach(function(t){var i=r(e,t);i&&n.definitions.push(i)}),n}(t,"UpdateProtectedDirectoryUser")}}]);
//# sourceMappingURL=ProtectedDirectoryUserPasswordPage.js.map?978f0318f4f9e394d513

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -1,2 +0,0 @@
(globalThis.webpackChunkPlesk=globalThis.webpackChunkPlesk||[]).push([["components/pages/ServerAboutPage"],{2593:(e,n,s)=>{"use strict";s.r(n),s.d(n,{default:()=>g});var t=s(296),i=s(620),r=s(297),a=s(90),o=s(2594),l=s(718),c=s(1199),p=s.n(c),d=s(2595),x=s.n(d),j=s(2596),h=s.n(j),m=s(2597),k=s.n(m);const u=a.Locale.getTranslate("components.pages.ServerAbout"),g=()=>{const{data:{primaryKey:{pleskKeyId:e,editionName:n},server:{productVersion:{name:s,version:a,patch:c}},config:d}}=(0,i.useQuery)(p()),[j,m]=(0,t.useState)(-3);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(o.default,{className:"plesk-about",front:(0,t.jsxs)("figure",{className:"about-image",children:[(0,t.jsx)("img",{className:"about-image-logo",src:x(),alt:""}),j<-2||j>-1?(0,t.jsxs)("div",{className:"about-image__footprints",onClick:()=>m(-2),children:[(0,t.jsx)("span",{className:"footprint footprint--1"}),(0,t.jsx)("span",{className:"footprint footprint--2"}),(0,t.jsx)("span",{className:"footprint footprint--3"}),(0,t.jsx)("span",{className:"footprint footprint--4"})]}):j<0?(0,t.jsxs)(r.Popover,{visible:-1===j,target:(0,t.jsx)("img",{onClick:()=>m(-1),className:"vzhuh",src:k(),width:"150",alt:""}),placement:"right",title:(0,t.jsx)(u,{content:"darkThemePromoTitle"}),onClose:()=>m(-3),children:[(0,t.jsx)("p",{children:(0,t.jsx)(u,{content:"darkThemePromoDescription"})}),(0,t.jsx)(r.Button,{onClick:()=>m(0),children:(0,t.jsx)(u,{content:"darkThemePromoButton"})})]}):null]}),back:(0,t.jsx)("figure",{className:"about-image",children:(0,t.jsx)("img",{src:h(),alt:""})})}),(0,t.jsx)(r.Tour,{current:j,onClose:()=>m(-3),children:(0,t.jsx)(r.Spot,{selector:".top-theme-switcher > button.theme-switcher",popup:{size:"sm",placement:"bottom",buttons:[(0,t.jsx)(r.Button,{onClick:()=>m(-3),intent:"primary",children:(0,t.jsx)(u,{content:"darkThemeTourButton"})},"gotit")],children:(0,t.jsx)(u,{content:"darkThemeTourDescription"})}})}),(0,t.jsxs)("p",{children:[s," ",n,(0,t.jsx)("br",{}),(0,t.jsx)(u,{content:"panelVersion"})," ",a,c&&(0,t.jsxs)(t.Fragment,{children:[" ",(0,t.jsx)(u,{content:"installedPatchVersion",params:{patch:c}})]})]}),(0,t.jsxs)("p",{children:[(0,t.jsx)(u,{content:"licenseKey"}),`: ${e} | `,(0,t.jsx)(l.default,{to:"/cp/license/",children:(0,t.jsx)(u,{content:"linkLicenseManagement"})})]}),(0,t.jsx)("p",{children:(0,t.jsx)(u,{content:"productDescription"})}),(0,t.jsxs)("ul",{children:[(0,t.jsx)("li",{children:(0,t.jsx)(u,{content:"visitSite",params:{link:(0,t.jsx)(r.Link,{href:d.product.siteUrl,target:"_blank",children:(0,t.jsx)(u,{content:"linkSite"})})}})}),(0,t.jsx)("li",{children:(0,t.jsx)(u,{content:"visitBlog",params:{link:(0,t.jsx)(r.Link,{href:d.product.blogUrl,target:"_blank",children:(0,t.jsx)(u,{content:"linkBlog"})})}})}),(0,t.jsxs)("li",{children:[(0,t.jsx)(u,{content:"followUs"}),": ",(0,t.jsx)(r.Link,{href:d.facebook.pleskPage,target:"_blank",children:"Facebook"})," | ",(0,t.jsx)(r.Link,{href:d.twitter.pleskPage,target:"_blank",children:"Twitter"})]}),(0,t.jsx)("li",{children:(0,t.jsx)(u,{content:"visitForum",params:{link:(0,t.jsx)(r.Link,{href:d.feedback.forumUrl,target:"_blank",children:(0,t.jsx)(u,{content:"linkForum"})})}})})]}),(0,t.jsx)("p",{children:(0,t.jsx)(u,{content:"ip2locationCopyright",params:{link:(0,t.jsx)(r.Link,{href:"https://lite.ip2location.com",target:"_blank",children:(0,t.jsx)(u,{content:"linkGeolocation"})})}})}),(0,t.jsx)("p",{children:(0,t.jsx)(u,{content:"copyright"})}),(0,t.jsx)("p",{children:(0,t.jsx)(u,{content:"readEula",params:{link:(0,t.jsx)(r.Link,{href:"/admin/index/eula",target:"_blank",children:(0,t.jsx)(u,{content:"linkEula"})})}})})]})}},2594:(e,n,s)=>{"use strict";s.r(n),s.d(n,{default:()=>c});var t=s(296),i=s(668),r=s.n(i),a=s(683),o=s.n(a);const l=({className:e=null,front:n,back:s})=>{const[i,r]=(0,t.useState)(!1);return(0,t.jsx)("div",{className:o()("flip-container",{flipped:i},e),children:(0,t.jsxs)("div",{className:"flipper",onDoubleClick:()=>r(!i),children:[(0,t.jsx)("div",{className:"front",children:n}),(0,t.jsx)("div",{className:"back",children:s})]})})};l.propTypes={className:r().string,front:r().any.isRequired,back:r().any.isRequired};const c=l},2595:e=>{e.exports=Jsw.skinUrl+"/images/about-plesk.png?46482ea13d149737cb1a3623f8346fb6"},2596:e=>{e.exports=Jsw.skinUrl+"/images/team.jpg?5ac949ac00535d82d90025c80bb48598"},2597:e=>{e.exports=Jsw.skinUrl+"/images/magic-cat.svg?4a2b42c4249201336055c506adbb8c85"}}]);
//# sourceMappingURL=ServerAboutPage.js.map?eae5941ee7c6d72e8fe5

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -1,14 +0,0 @@
"use strict";(globalThis.webpackChunkPlesk=globalThis.webpackChunkPlesk||[]).push([["components/pages/SpamFilterBlackListPage"],{1435:(e,t,s)=>{s.r(t),s.d(t,{SORT_ASC:()=>l,SORT_DESC:()=>d,default:()=>y});var n=s(296),a=s(668),o=s.n(a),i=s(297);const r=s(90).Locale.getSection("components.list"),l="ASC",d="DESC",c="all",u={set(e,t){localStorage.setItem(e,JSON.stringify(t))},get(e){const t=localStorage.getItem(e);return JSON.parse(t)}},m=e=>`list-sort_${e}`,p=e=>`list-page_${e}`,g=({id:e,data:t,columns:s,itemsPerPage:a=25,itemsPerPageOptions:o=[10,25,100,c],sortColumn:d,sortDirection:g=l,searchField:y,locale:h={},emptyView:f,emptyFilteredView:P,toolbar:x,selection:T=[],onSelectionChange:S,searchBarInputProps:b,rowKey:j="key",useStorage:C=!0,...L})=>{const{sortColumn:F,sortDirection:A,setSortState:w}=((e,{sortColumn:t,sortDirection:s})=>{const[{sortColumn:a,sortDirection:o},i]=(0,n.useState)({sortColumn:u.get(m(e))?.sortColumn??t,sortDirection:u.get(m(e))?.sortDirection??s});return{sortColumn:a,sortDirection:o,setSortState:t=>{i(e=>({...e,...t})),u.set(m(e),{...u.get(m(e)),...t})}}})(e,{sortColumn:d??s.find(({sortable:e})=>e)?.key,sortDirection:g}),{page:k,itemsPerPage:D,searchPattern:v,setPageState:B}=((e,{itemsPerPage:t},s=!0)=>{const a=s?{page:u.get(p(e))?.page,itemsPerPage:u.get(p(e))?.itemsPerPage,searchPattern:u.get(p(e))?.searchPattern}:{},[{page:o,itemsPerPage:i,searchPattern:r},l]=(0,n.useState)({page:a.page??1,itemsPerPage:a.itemsPerPage??t,searchPattern:a.searchPattern??""});return{page:o,itemsPerPage:i,searchPattern:r,setPageState:t=>{l(e=>({...e,...t})),s&&u.set(p(e),{...u.get(p(e)),...t})}}})(e,{itemsPerPage:o.includes(a)?a:o[0]},C),R=(0,n.useMemo)(()=>v?P??(0,n.jsx)(i.ListEmptyView,{reason:"filtered","data-testid":"list-empty-view-filtered"}):f??(0,n.jsx)(i.ListEmptyView,{}),[v,f,P]),M=(0,n.useMemo)(()=>s.map(({sortDataField:e,...t})=>t),[s]),O=(0,n.useMemo)(()=>y&&v?t.filter(e=>(Array.isArray(y)?y:[y]).some(t=>e[t]&&String(e[t]).toLowerCase().includes(v.toLowerCase()))):t,[t,v,y]),E=(0,n.useMemo)(()=>{if(!F)return O;const e=s.find(({key:e})=>e===F)?.sortDataField??F,t=s.find(({key:e})=>e===F)?.sort??((t,s)=>t[e]<s[e]?-1:t[e]>s[e]?1:0);return[...O].sort((e,s)=>l===A?t(e,s):t(s,e))},[O,F,A,s]),q=(0,n.useMemo)(()=>{if(D===c)return E;const e=D*(k-1),t=e+D;return E.slice(e,t)},[k,E,D]),$=(0,n.useCallback)(e=>{B({searchPattern:e}),e!==v&&B({page:1})},[v]),I=(0,n.useCallback)(e=>{B({itemsPerPage:e});(e===c?1:Math.ceil(O.length/e))<k&&B({page:1})},[O.length,k]);return(0,n.useEffect)(()=>{if("function"==typeof S&&T.length){const e=O.map(e=>{return t=e,"function"==typeof(s=j)?s(t):t[s];var t,s}).filter(e=>T.includes(e));S(e)}},[O]),(0,n.jsx)(i.List,{pagination:(0,n.jsx)(i.Pagination,{current:k,total:D===c?1:Math.ceil(O.length/D),onSelect:e=>B({page:e}),itemsPerPage:D,itemsPerPageOptions:o,onItemsPerPageChange:I}),toolbar:(x||y)&&(0,n.jsxs)(i.Toolbar,{children:[x,y&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.ToolbarExpander,{}),(0,n.jsx)(i.ToolbarGroup,{title:"",children:(0,n.jsx)(i.SearchBar,{inputProps:{placeholder:r.lmsg("searchPlaceholder"),"data-testid":"list-searchbar",value:v,...b??{}},onTyping:$})})]})]}),totalRows:O.length,sortColumn:F,sortDirection:A,onSortChange:w,columns:M,data:q,filtered:!!v,locale:{totalRows:({totalRows:e})=>r.formatMessage("recordsTotal",{total:e}),...h},emptyView:R,onSelectionChange:S,selection:T,rowKey:j,...L})};g.propTypes={id:o().string.isRequired,data:o().array.isRequired,columns:o().array.isRequired,itemsPerPage:o().number,itemsPerPageOptions:o().array,sortColumn:o().string,sortDirection:o().string,searchField:o().oneOfType([o().string,o().arrayOf(o().string.isRequired)]),locale:o().object,emptyView:o().node,emptyFilteredView:o().node,toolbar:o().node,onSelectionChange:o().func,selection:o().array,rowKey:o().oneOfType([o().string,o().func]),searchBarInputProps:o().object,useStorage:o().bool};const y=g},2625:(e,t,s)=>{s.r(t),s.d(t,{default:()=>d});var n=s(620),a=s(2626),o=s(2627),i=s(1297),r=s.n(i),l=s(296);const d=()=>{const[e,t]=(0,l.useState)(!1),{data:{serverMail:{spamAssassin:{blackList:s}}}}=(0,n.useQuery)(r());return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(o.default,{isOpen:e,isBlackList:!0,onClose:()=>t(!1)}),(0,l.jsx)(a.default,{list:s,type:"BlackList",onAddDomain:()=>t(!0)})]})}},2626:(e,t,s)=>{s.r(t),s.d(t,{default:()=>S});var n=s(668),a=s(297),o=s(90),i=s(1435),r=s(296),l=s(546),d=s(696),c=s(583),u=s(1297),m=s.n(u),p=s(1302),g=s.n(p);const y=o.Locale.getTranslate("components.lists.spam-filter"),h=o.Locale.getSection("components.lists.spam-filter"),f=o.Locale.getTranslate("components.buttons"),P="BlackList",x=c.gql`
mutation DeleteAddressesFromSpamFilterList($input: DeleteAddressesFromSpamFilterListInput!) {
deleteAddressesFromSpamFilterList(input: $input) {
__typename
}
}
`,T=({list:e,type:t,onAddDomain:s})=>{const[n,o]=(0,r.useState)([]),[c,u]=(0,r.useState)([]),p=(0,r.useMemo)(()=>e.filter(({id:e})=>n.includes(e)),[e,n]),[T]=(0,d.useMutation)(x,{refetchQueries:[{query:"BlackList"===t?m():g()}],awaitRefetchQueries:!0});return(0,r.jsx)(i.default,{id:`server-mail-${t}`,toolbar:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(a.ToolbarGroup,{title:h.lmsg("groupAdd"),children:(0,r.jsx)(a.Button,{id:`add${t}edDomain`,intent:"primary",icon:"plus",tooltip:h.lmsg(t===P?"buttonAddAddressToBlackListHint":"buttonAddAddressToWhiteListHint"),tooltipAsLabel:!0,onClick:s})}),(0,r.jsx)(a.ToolbarGroup,{title:h.lmsg("groupActions"),children:(0,r.jsx)(a.ListOperation,{critical:!0,noSelectionText:(0,r.jsx)(y,{content:"removeEmptySelection"}),confirmationText:h.formatMessage("removeConfirmation",{name:(0,r.jsx)("b",{children:p[0]?.name}),count:p.length}),actionButtonText:(0,r.jsx)(f,{content:"yesRemove"}),cancelButtonText:(0,r.jsx)(f,{content:"cancel"}),children:(0,r.jsx)(a.Button,{id:`remove${t}edDomain`,onClick:async()=>{u(n);try{await T({variables:{input:{ids:n}}}),(0,l.addToast)({intent:"success",message:(0,r.jsx)(y,{content:"removeSuccess"})})}catch(e){e.graphQLErrors?e.graphQLErrors.forEach(({message:e,debugMessage:t})=>{(0,l.addToast)({intent:"danger",message:t||e})}):(0,l.addToast)({intent:"danger",message:e.message})}finally{o([]),u([])}},children:(0,r.jsx)(y,{content:"buttonRemove"})})})})]}),columns:[{key:"name",title:(0,r.jsx)(y,{content:"entries"}),type:"title",sortable:!0}],rowKey:"id",data:e,searchField:"name",selection:n,onSelectionChange:e=>o(e),loadingRows:c,emptyView:(0,r.jsx)(a.ListEmptyView,{title:(0,r.jsx)(y,{content:`addAddressTo${t}EmptyTitle`}),description:(0,r.jsx)(y,{content:`addAddressTo${t}EmptyDescription`}),actions:(0,r.jsx)(a.Button,{id:`add${t}edDomain`,intent:"primary",tooltip:(0,r.jsx)(y,{content:`buttonAddAddressTo${t}Hint`}),onClick:s,children:(0,r.jsx)(y,{content:"buttonAddAddress"})})})})};T.propTypes={list:n.PropTypes.array.isRequired,type:n.PropTypes.string.isRequired,onAddDomain:n.PropTypes.func.isRequired};const S=T},2627:(e,t,s)=>{s.r(t),s.d(t,{default:()=>S});var n=s(668),a=s(297),o=s(90),i=s(296),r=s(696),l=s(583),d=s(546),c=s(1305),u=s(1297),m=s.n(u),p=s(1302),g=s.n(p);const y=o.Locale.getTranslate("components.forms.spam-filter.add"),h=o.Locale.getSection("components.forms.spam-filter.add"),f=l.gql`
mutation AddAddressesToSpamFilterList($input: AddAddressesToSpamFilterListInput!) {
addAddressesToSpamFilterList(input: $input) {
warnings
}
}
`,P="file",x="string",T=({isBlackList:e,isOpen:t=!1,onClose:s})=>{const[n,o]=(0,i.useState)({dataType:P,file:null,addresses:""}),[l,{loading:u}]=(0,r.useMutation)(f,{refetchQueries:[{query:e?m():g()}],awaitRefetchQueries:!0});return(0,i.jsx)(a.Drawer,{"data-type":"add-domain-to-spam-filter-list",title:(0,i.jsx)(y,{content:e?"titleBlack":"titleWhite"}),isOpen:t,onClose:s,size:"sm",form:(0,i.jsxs)(c.default,{state:u?"submit":null,applyButton:!1,submitButton:{id:"btn-save"},onSubmit:({dataType:t,file:s,addresses:n})=>({listType:e?"blacklist_from":"whitelist_from",dataType:t,addresses:n,file:s}),onSuccess:({addAddressesToSpamFilterList:{warnings:e}})=>{e.length?e.forEach(e=>{(0,d.addToast)({intent:"danger",message:e})}):(0,d.addToast)({intent:"success",message:(0,i.jsx)(y,{content:"success"})}),s(),o({dataType:P,file:null,addresses:""})},onFieldChange:(e,t)=>o((0,a.setIn)(n,e,t)),values:n,mutation:l,children:[(0,i.jsx)(a.Text,{component:"p",children:(0,i.jsx)("div",{dangerouslySetInnerHTML:{__html:h.lmsg("listDescription")}})}),(0,i.jsx)(a.FormFieldRadioButtons,{label:null,name:"dataType",options:[{value:P,label:(0,i.jsx)(y,{content:"fromFile"}),indentFields:[(0,i.jsx)(a.FormField,{name:"file",label:null,description:(0,i.jsx)(y,{content:"fileDescription"}),children:({getId:e,getName:t,setValue:s,isDisabled:n})=>(0,i.jsx)(a.InputFile,{id:e(),name:t(),disabled:n(),onChange:e=>s(e)})},"file")]},{value:x,label:(0,i.jsx)(y,{content:"fromList"}),indentFields:[(0,i.jsx)(a.FormFieldText,{name:"addresses",label:null,multiline:!0,size:"xl"},"addresses")]}]})]})})};T.propTypes={isOpen:n.PropTypes.bool,isBlackList:n.PropTypes.bool.isRequired,onClose:n.PropTypes.func.isRequired};const S=T}}]);
//# sourceMappingURL=SpamFilterBlackListPage.js.map?67314f336bed555284cf

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Some files were not shown because too many files have changed in this diff Show More