mirror of https://gitee.com/topiam/eiam
⚡ 优化
parent
6c52445dbc
commit
e31cb9796c
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
|
@ -15,4 +15,4 @@
|
|||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
"use strict";(self.webpackChunktopiam_portal=self.webpackChunktopiam_portal||[]).push([[97],{34097:function(l,n,t){t.r(n),t.d(n,{default:function(){return E}});var s=t(79685),u=t(22590),o=t(63342);function E(){var a=(0,u.useOutletContext)();return(0,o.jsx)(u.Outlet,{context:a})}}}]);
|
||||
"use strict";(self.webpackChunktopiam_portal=self.webpackChunktopiam_portal||[]).push([[97],{34097:function(l,n,t){t.r(n),t.d(n,{default:function(){return E}});var s=t(79685),u=t(46022),o=t(63342);function E(){var a=(0,u.useOutletContext)();return(0,o.jsx)(u.Outlet,{context:a})}}}]);
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -25,9 +25,10 @@
|
|||
<link rel="shortcut icon" href="/favicon.ico">
|
||||
<title>统一身份认证平台</title>
|
||||
<link rel="stylesheet" href="/umi.d85528d9.css">
|
||||
<script src="/framework.c7075530.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="root"></div>
|
||||
<script src="/umi.bf0b27b2.js"></script>
|
||||
<script src="/umi.284522d7.js"></script>
|
||||
|
||||
</body></html>
|
File diff suppressed because one or more lines are too long
|
@ -15,4 +15,4 @@
|
|||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
"use strict";(self.webpackChunktopiam_portal=self.webpackChunktopiam_portal||[]).push([[571],{98546:function(r,n,t){t.r(n);var o=t(38916),s=t(9101),u=t(22590),a=t(63342),i=function(){return(0,a.jsx)(o.ZP,{status:"404",title:"404",subTitle:"Sorry, the page you visited does not exist.",extra:(0,a.jsx)(s.ZP,{type:"primary",onClick:function(){return u.history.push("/")},children:"Back Home"})})};n.default=i}}]);
|
||||
"use strict";(self.webpackChunktopiam_portal=self.webpackChunktopiam_portal||[]).push([[571],{98546:function(r,n,t){t.r(n);var o=t(38916),s=t(9101),u=t(46022),a=t(63342),i=function(){return(0,a.jsx)(o.ZP,{status:"404",title:"404",subTitle:"Sorry, the page you visited does not exist.",extra:(0,a.jsx)(s.ZP,{type:"primary",onClick:function(){return u.history.push("/")},children:"Back Home"})})};n.default=i}}]);
|
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
|
@ -1,18 +0,0 @@
|
|||
/*
|
||||
* eiam-portal - Employee Identity and Access Management Program
|
||||
* Copyright © 2020-2023 TopIAM (support@topiam.cn)
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
"use strict";(self.webpackChunktopiam_portal=self.webpackChunktopiam_portal||[]).push([[396],{66083:function(M,g,t){t.r(g),t.d(g,{default:function(){return H}});var A=t(84019),d=t.n(A),T=t(32061),y=t.n(T),C=t(7863),R=t.n(C),L=t(65352),I=t(21722),O=t(95926),Z=t(15482),B=t(21654),S=t(99759),E=t(46673),N=t(44659),x=t(79685),p;(function(o){o.ONLY_APP_INIT_SSO="only_app_init_sso",o.PORTAL_OR_APP_INIT_SSO="portal_or_app_init_sso"})(p||(p={}));var $=t(76091),f=t.n($),P=t(65173),z=t(22590);function D(o,i,c){return h.apply(this,arguments)}function h(){return h=y()(d()().mark(function o(i,c,v){var u,a,m;return d()().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,(0,z.request)("/api/app/list",{params:f()(f()(f()({},i),(0,P.YE)(c)),(0,P.oH)(v))});case 2:return u=s.sent,a=u.result,m=u.success,s.abrupt("return",{data:a!=null&&a.list?a==null?void 0:a.list:[],success:m,total:a!=null&&a.pagination?a==null?void 0:a.pagination.total:0});case 6:case"end":return s.stop()}},o)})),h.apply(this,arguments)}var r=t(63342),F=O.Z.Paragraph,G=function(){var i=(0,x.useRef)(),c=(0,x.useState)(),v=R()(c,2),u=v[0],a=v[1],m=(0,r.jsx)("div",{style:{textAlign:"center"},children:(0,r.jsx)(Z.Z.Search,{placeholder:"\u8BF7\u8F93\u5165",enterButton:"\u641C\u7D22",size:"large",style:{maxWidth:522,width:"100%"},onSearch:function(n){var e;a({name:n}),(e=i.current)===null||e===void 0||e.reload()}})}),j=function(n){var e=window.document.createElement("div");e.innerHTML="<form action='"+n+"' method='POST' name='auto_submit_form' style='display:none'>",document.body.appendChild(e),document.forms.auto_submit_form.setAttribute("target","_blank"),document.forms.auto_submit_form.submit(),document.body.removeChild(e)};return(0,r.jsxs)(L._z,{content:m,children:[(0,r.jsx)(B.Z,{message:"\u8BF7\u70B9\u51FB\u4E0B\u65B9\u7684\u5E94\u7528\u8FDB\u884C\u5355\u70B9\u767B\u5F55\u3002\u82E5\u5E0C\u671B\u4FEE\u6539\u5E94\u7528\u5185\u5BB9\uFF0C\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458\u3002",showIcon:!0}),(0,r.jsx)("br",{}),(0,r.jsx)(I.Rs,{rowKey:"id",ghost:!0,grid:{xs:1,sm:2,md:2,lg:3,xl:4,xxl:5},request:D,pagination:{},params:u,actionRef:i,renderItem:function(n){return n&&n.id&&(0,r.jsx)(S.Z,{style:{margin:5},hoverable:!0,onClick:y()(d()().mark(function e(){return d()().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:if(n.initLoginType!==p.PORTAL_OR_APP_INIT_SSO){l.next=3;break}return j(n.initLoginUrl),l.abrupt("return");case 3:E.ZP.warning("".concat(n.name,"\u4EC5\u5141\u8BB8\u5E94\u7528\u53D1\u8D77"));case 4:case"end":return l.stop()}},e)})),children:(0,r.jsx)(S.Z.Meta,{avatar:(0,r.jsx)(N.C,{shape:"square",size:50,src:n.icon},n.id),title:n.name,description:(0,r.jsx)(F,{ellipsis:{rows:2,tooltip:!0},children:n.description})})})}})]})},H=G}}]);
|
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
|
@ -15,4 +15,4 @@
|
|||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
"use strict";(self.webpackChunktopiam_portal=self.webpackChunktopiam_portal||[]).push([[26],{4154:function(u,n,_){_.r(n);var s=_(84019),t=_.n(s),i=_(76091),o=_.n(i),r=_(32061),c=_.n(r),e=_(65173),E=_(75109),y=_(78035),v=_(51391),f=_(30708),I=_(22590),P=_(63342);n.default=function(){var M=(0,I.useModel)("@@initialState"),U=M.initialState,h=M.setInitialState;return(0,y.Z)(c()(t()().mark(function C(){return t()().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:v.Z.warning({title:"\u4F1A\u8BDD\u8FC7\u671F",content:"\u60A8\u7684\u767B\u5F55\u4FE1\u606F\u5DF2\u8FC7\u671F\uFF0C\u8BF7\u91CD\u65B0\u767B\u5F55\u3002",okText:"\u786E\u8BA4",okType:"danger",centered:!1,maskClosable:!1,okCancel:!1,onOk:function(){var T=c()(t()().mark(function g(){var O,D,a,l,d,b;return t()().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return m.next=2,h(o()(o()({},U),{},{currentUser:void 0}));case 2:O=f.Z.parse(E.m.location.search),D=O,a=D.redirect_uri,l={pathname:e.wm},d=a&&a.split("/"),a&&a!==d[0]+"//"+d[2]+"/"&&(l=o()(o()({},l),{},{search:f.Z.stringify({redirect_uri:a})})),b=E.m.createHref(l),window.location.replace(b);case 9:case"end":return m.stop()}},g)}));function j(){return T.apply(this,arguments)}return j}()});case 1:case"end":return p.stop()}},C)}))),(0,P.jsx)(P.Fragment,{})}},78035:function(u,n,_){var s=_(79685),t=_(43865),i=_(15035);const o=r=>{i.Z&&((0,t.mf)(r)||console.error(`useMount: parameter \`fn\` expected to be a function, but got "${typeof r}".`)),(0,s.useEffect)(()=>{r==null||r()},[])};n.Z=o},43865:function(u,n,_){_.d(n,{mf:function(){return t}});const s=e=>e!==null&&typeof e=="object",t=e=>typeof e=="function",i=e=>typeof e=="string",o=e=>typeof e=="boolean",r=e=>typeof e=="number",c=e=>typeof e=="undefined"},15035:function(u,n){n.Z=!1}}]);
|
||||
"use strict";(self.webpackChunktopiam_portal=self.webpackChunktopiam_portal||[]).push([[26],{4154:function(u,n,_){_.r(n);var s=_(84019),t=_.n(s),i=_(76091),o=_.n(i),r=_(32061),c=_.n(r),e=_(65173),E=_(75109),y=_(78035),v=_(51391),f=_(30708),I=_(46022),P=_(63342);n.default=function(){var M=(0,I.useModel)("@@initialState"),U=M.initialState,h=M.setInitialState;return(0,y.Z)(c()(t()().mark(function C(){return t()().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:v.Z.warning({title:"\u4F1A\u8BDD\u8FC7\u671F",content:"\u60A8\u7684\u767B\u5F55\u4FE1\u606F\u5DF2\u8FC7\u671F\uFF0C\u8BF7\u91CD\u65B0\u767B\u5F55\u3002",okText:"\u786E\u8BA4",okType:"danger",centered:!1,maskClosable:!1,okCancel:!1,onOk:function(){var T=c()(t()().mark(function g(){var O,D,a,l,d,b;return t()().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return m.next=2,h(o()(o()({},U),{},{currentUser:void 0}));case 2:O=f.Z.parse(E.m.location.search),D=O,a=D.redirect_uri,l={pathname:e.wm},d=a&&a.split("/"),a&&a!==d[0]+"//"+d[2]+"/"&&(l=o()(o()({},l),{},{search:f.Z.stringify({redirect_uri:a})})),b=E.m.createHref(l),window.location.replace(b);case 9:case"end":return m.stop()}},g)}));function j(){return T.apply(this,arguments)}return j}()});case 1:case"end":return p.stop()}},C)}))),(0,P.jsx)(P.Fragment,{})}},78035:function(u,n,_){var s=_(79685),t=_(43865),i=_(15035);const o=r=>{i.Z&&((0,t.mf)(r)||console.error(`useMount: parameter \`fn\` expected to be a function, but got "${typeof r}".`)),(0,s.useEffect)(()=>{r==null||r()},[])};n.Z=o},43865:function(u,n,_){_.d(n,{mf:function(){return t}});const s=e=>e!==null&&typeof e=="object",t=e=>typeof e=="function",i=e=>typeof e=="string",o=e=>typeof e=="boolean",r=e=>typeof e=="number",c=e=>typeof e=="undefined"},15035:function(u,n){n.Z=!1}}]);
|
|
@ -15,5 +15,5 @@
|
|||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
"use strict";(self.webpackChunktopiam_portal=self.webpackChunktopiam_portal||[]).push([[790],{8492:function(P,g,n){n.r(g),n.d(g,{default:function(){return L}});var A=n(84019),o=n.n(A),C=n(32061),v=n.n(C),y=n(12210),I=n(65352),S=n(87370),x=n(20645),j=n(98346),E=n(46673),R=n(97978),T=n(55807),Z=n(79685),w=n(22590);function B(i){return p.apply(this,arguments)}function p(){return p=v()(o()().mark(function i(d){return o()().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,w.request)("/api/session/list",{method:"get",params:d}).then(function(t){var e={data:t!=null&&t.result?t==null?void 0:t.result:[],success:t==null?void 0:t.success};return Promise.resolve(e)}));case 1:case"end":return r.stop()}},i)})),p.apply(this,arguments)}function F(i){return h.apply(this,arguments)}function h(){return h=v()(o()().mark(function i(d){return o()().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,w.request)("/api/session/remove",{method:"delete",requestType:"form",data:{sessionIds:d}}));case 1:case"end":return r.stop()}},i)})),h.apply(this,arguments)}var s=n(63342),L=function(){var i=(0,Z.useRef)(),d=[{title:"\u4F1A\u8BDD ID",dataIndex:"sessionId",ellipsis:!0,copyable:!0,align:"center",width:150,fixed:"left",search:!1},{title:"\u7528\u6237\u540D",dataIndex:"username",width:120,ellipsis:!0,fieldProps:{autoComplete:"off"}},{title:"\u6D3B\u52A8IP\u5730\u5740",width:130,dataIndex:"ip",ellipsis:!0,search:!1,render:function(r,t){var e=t.geoLocation;return e.ip?(0,s.jsx)(x.Z,{status:"success",text:e.ip}):(0,s.jsx)(x.Z,{status:"error",text:"\u672A\u77E5"})}},{title:"\u6D3B\u52A8\u5730\u70B9",width:120,ellipsis:!0,search:!1,render:function(r,t){var e=t.geoLocation;return e&&e.country&&e.province&&e.city&&e.country+"."+e.province+"."+e.city||"-"}},{title:"\u8BBE\u5907\u7C7B\u578B",ellipsis:!0,width:110,search:!1,render:function(r,t){var e=t.userAgent;return(e==null?void 0:e.deviceType)||"-"}},{title:"\u64CD\u4F5C\u7CFB\u7EDF",ellipsis:!0,width:110,search:!1,render:function(r,t){var e=t.userAgent;return e!=null&&e.platform&&e!==null&&e!==void 0&&e.platformVersion&&(e==null?void 0:e.platform)+" "+(e==null?void 0:e.platformVersion)||"-"}},{title:"\u6D4F\u89C8\u5668",ellipsis:!0,width:110,search:!1,render:function(r,t){var e=t.userAgent;return e!=null&&e.browser&&e!==null&&e!==void 0&&e.browserMajorVersion&&(e==null?void 0:e.browser)+" "+(e==null?void 0:e.browserMajorVersion)||"-"}},{title:"\u767B\u5F55\u65F6\u95F4",ellipsis:!0,dataIndex:"loginTime",align:"center",width:200,valueType:"dateTime",search:!1},{title:"\u6700\u540E\u64CD\u4F5C\u65F6\u95F4",ellipsis:!0,dataIndex:"lastRequest",width:170,valueType:"dateTime",search:!1},{title:"\u64CD\u4F5C",valueType:"option",width:60,align:"center",fixed:"right",render:function(r,t){var e=t.sessionId;return[(0,s.jsx)(j.Z,{title:"\u60A8\u786E\u5B9A\u8981\u4E0B\u7EBF\u8BE5\u7528\u6237\u5417\uFF1F",placement:"bottomRight",icon:(0,s.jsx)(y.Z,{style:{color:"red"}}),onConfirm:v()(o()().mark(function f(){var u,m,a;return o()().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,F(e);case 2:u=c.sent,m=u.success,m&&(E.ZP.success("\u64CD\u4F5C\u6210\u529F"),(a=i.current)===null||a===void 0||a.reload());case 5:case"end":return c.stop()}},f)})),okText:"\u662F",cancelText:"\u5426",children:(0,s.jsx)("a",{target:"_blank",style:{color:"red"},children:"\u4E0B\u7EBF"},"remove")},"offline")]}}];return(0,s.jsx)(I._z,{content:`\u4F1A\u8BDD\u7BA1\u7406\u53EF\u4EE5\u67E5\u770B\u6240\u6709\u5F53\u524D\u4ECD\u7136\u6709\u6548\u7684\u4F1A\u8BDD\u5217\u8868\uFF0C\u5E76\u4E14\u53EF\u4EE5\u5F3A\u5236\u6CE8\u9500\u67D0\u4E2A\u7528\u6237\u7684\u4F1A\u8BDD\u3002\u6CE8\u9500\u540E\uFF0C\u8BE5\u7528\u6237\u51ED\u8BC1\u5373\u523B\u5931\u6548\uFF0C\u4E4B\u540E\u7684\u6240\u6709\u64CD\u4F5C\u90FD\u9700\u8981\u91CD\u65B0\u8BA4\u8BC1\u3002
|
||||
"use strict";(self.webpackChunktopiam_portal=self.webpackChunktopiam_portal||[]).push([[790],{8492:function(P,g,n){n.r(g),n.d(g,{default:function(){return L}});var A=n(84019),o=n.n(A),C=n(32061),v=n.n(C),y=n(12210),I=n(65352),S=n(87370),x=n(20645),j=n(98346),E=n(46673),R=n(97978),T=n(55807),Z=n(79685),w=n(46022);function B(i){return p.apply(this,arguments)}function p(){return p=v()(o()().mark(function i(d){return o()().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,w.request)("/api/session/list",{method:"get",params:d}).then(function(t){var e={data:t!=null&&t.result?t==null?void 0:t.result:[],success:t==null?void 0:t.success};return Promise.resolve(e)}));case 1:case"end":return r.stop()}},i)})),p.apply(this,arguments)}function F(i){return h.apply(this,arguments)}function h(){return h=v()(o()().mark(function i(d){return o()().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,w.request)("/api/session/remove",{method:"delete",requestType:"form",data:{sessionIds:d}}));case 1:case"end":return r.stop()}},i)})),h.apply(this,arguments)}var s=n(63342),L=function(){var i=(0,Z.useRef)(),d=[{title:"\u4F1A\u8BDD ID",dataIndex:"sessionId",ellipsis:!0,copyable:!0,align:"center",width:150,fixed:"left",search:!1},{title:"\u7528\u6237\u540D",dataIndex:"username",width:120,ellipsis:!0,fieldProps:{autoComplete:"off"}},{title:"\u6D3B\u52A8IP\u5730\u5740",width:130,dataIndex:"ip",ellipsis:!0,search:!1,render:function(r,t){var e=t.geoLocation;return e.ip?(0,s.jsx)(x.Z,{status:"success",text:e.ip}):(0,s.jsx)(x.Z,{status:"error",text:"\u672A\u77E5"})}},{title:"\u6D3B\u52A8\u5730\u70B9",width:120,ellipsis:!0,search:!1,render:function(r,t){var e=t.geoLocation;return e&&e.country&&e.province&&e.city&&e.country+"."+e.province+"."+e.city||"-"}},{title:"\u8BBE\u5907\u7C7B\u578B",ellipsis:!0,width:110,search:!1,render:function(r,t){var e=t.userAgent;return(e==null?void 0:e.deviceType)||"-"}},{title:"\u64CD\u4F5C\u7CFB\u7EDF",ellipsis:!0,width:110,search:!1,render:function(r,t){var e=t.userAgent;return e!=null&&e.platform&&e!==null&&e!==void 0&&e.platformVersion&&(e==null?void 0:e.platform)+" "+(e==null?void 0:e.platformVersion)||"-"}},{title:"\u6D4F\u89C8\u5668",ellipsis:!0,width:110,search:!1,render:function(r,t){var e=t.userAgent;return e!=null&&e.browser&&e!==null&&e!==void 0&&e.browserMajorVersion&&(e==null?void 0:e.browser)+" "+(e==null?void 0:e.browserMajorVersion)||"-"}},{title:"\u767B\u5F55\u65F6\u95F4",ellipsis:!0,dataIndex:"loginTime",align:"center",width:200,valueType:"dateTime",search:!1},{title:"\u6700\u540E\u64CD\u4F5C\u65F6\u95F4",ellipsis:!0,dataIndex:"lastRequest",width:170,valueType:"dateTime",search:!1},{title:"\u64CD\u4F5C",valueType:"option",width:60,align:"center",fixed:"right",render:function(r,t){var e=t.sessionId;return[(0,s.jsx)(j.Z,{title:"\u60A8\u786E\u5B9A\u8981\u4E0B\u7EBF\u8BE5\u7528\u6237\u5417\uFF1F",placement:"bottomRight",icon:(0,s.jsx)(y.Z,{style:{color:"red"}}),onConfirm:v()(o()().mark(function f(){var u,m,a;return o()().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,F(e);case 2:u=c.sent,m=u.success,m&&(E.ZP.success("\u64CD\u4F5C\u6210\u529F"),(a=i.current)===null||a===void 0||a.reload());case 5:case"end":return c.stop()}},f)})),okText:"\u662F",cancelText:"\u5426",children:(0,s.jsx)("a",{target:"_blank",style:{color:"red"},children:"\u4E0B\u7EBF"},"remove")},"offline")]}}];return(0,s.jsx)(I._z,{content:`\u4F1A\u8BDD\u7BA1\u7406\u53EF\u4EE5\u67E5\u770B\u6240\u6709\u5F53\u524D\u4ECD\u7136\u6709\u6548\u7684\u4F1A\u8BDD\u5217\u8868\uFF0C\u5E76\u4E14\u53EF\u4EE5\u5F3A\u5236\u6CE8\u9500\u67D0\u4E2A\u7528\u6237\u7684\u4F1A\u8BDD\u3002\u6CE8\u9500\u540E\uFF0C\u8BE5\u7528\u6237\u51ED\u8BC1\u5373\u523B\u5931\u6548\uFF0C\u4E4B\u540E\u7684\u6240\u6709\u64CD\u4F5C\u90FD\u9700\u8981\u91CD\u65B0\u8BA4\u8BC1\u3002
|
||||
`,children:(0,s.jsx)(S.Z,{search:!1,options:{density:!1,setting:!0,reload:!0,search:!1},cardProps:{style:{overflow:"auto"}},scroll:{x:700},columns:d,rowSelection:{selections:[R.Z.SELECTION_ALL,R.Z.SELECTION_INVERT]},tableAlertRender:function(r){var t=r.selectedRowKeys,e=r.onCleanSelected;return(0,s.jsx)(T.Z,{size:24,children:(0,s.jsxs)("span",{children:["\u5DF2\u9009 ",t.length," \u9879",(0,s.jsx)("a",{style:{marginLeft:8},onClick:e,children:"\u53D6\u6D88\u9009\u62E9"})]})})},tableAlertOptionRender:function(r){return(0,s.jsx)(T.Z,{size:16,children:(0,s.jsx)(j.Z,{title:"\u60A8\u786E\u5B9A\u8981\u6279\u91CF\u4E0B\u7EBF\u9009\u4E2D\u7528\u6237\u5417\uFF1F",placement:"bottomRight",icon:(0,s.jsx)(y.Z,{style:{color:"red"}}),onConfirm:v()(o()().mark(function t(){var e,f,u;return o()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,F(r.selectedRowKeys.join(","));case 2:e=a.sent,f=e.success,f&&(E.ZP.success("\u64CD\u4F5C\u6210\u529F"),r.onCleanSelected(),(u=i.current)===null||u===void 0||u.reload());case 5:case"end":return a.stop()}},t)})),okText:"\u662F",cancelText:"\u5426",children:(0,s.jsx)("a",{target:"_blank",style:{color:"red"},children:"\u6279\u91CF\u4E0B\u7EBF"},"remove")},"offline")})},actionRef:i,pagination:{defaultPageSize:10},request:B,rowKey:"sessionId",dateFormatter:"string"})})}}}]);
|
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
|
@ -15,7 +15,7 @@
|
|||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
"use strict";(self.webpackChunktopiam_portal=self.webpackChunktopiam_portal||[]).push([[391],{18876:function(Se,V,a){a.d(V,{Z:function(){return Pe}});var C=a(88222),g=a(79685),t=a(50374),W=a(36345),D=a(13782),f=g.createContext(null),h=f,E=a(23570),w=a(67846),p=[];function j($,y){var ee=g.useState(function(){if(!(0,W.Z)())return null;var R=document.createElement("div");return R}),be=(0,C.Z)(ee,1),G=be[0],re=g.useRef(!1),de=g.useContext(h),o=g.useState(p),u=(0,C.Z)(o,2),d=u[0],O=u[1],B=de||(re.current?void 0:function(R){O(function(Q){var K=[R].concat((0,E.Z)(Q));return K})});function T(){G.parentElement||document.body.appendChild(G),re.current=!0}function I(){var R;(R=G.parentElement)===null||R===void 0||R.removeChild(G),re.current=!1}return(0,w.Z)(function(){return $?de?de(T):T():I(),I},[$]),(0,w.Z)(function(){d.length&&(d.forEach(function(R){return R()}),O(p))},[d]),[G,B]}var e=a(31936),r=a(57749);function m(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var U="rc-util-locker-".concat(Date.now()),Z=0;function ce($){var y=!!$,ee=g.useState(function(){return Z+=1,"".concat(U,"_").concat(Z)}),be=(0,C.Z)(ee,1),G=be[0];(0,w.Z)(function(){if(y){var re=(0,r.Z)(),de=m();(0,e.hq)(`
|
||||
"use strict";(self.webpackChunktopiam_portal=self.webpackChunktopiam_portal||[]).push([[48],{18876:function(Se,V,a){a.d(V,{Z:function(){return Pe}});var C=a(88222),g=a(79685),t=a(50374),W=a(36345),D=a(13782),f=g.createContext(null),h=f,E=a(23570),w=a(67846),p=[];function j($,y){var ee=g.useState(function(){if(!(0,W.Z)())return null;var R=document.createElement("div");return R}),be=(0,C.Z)(ee,1),G=be[0],re=g.useRef(!1),de=g.useContext(h),o=g.useState(p),u=(0,C.Z)(o,2),d=u[0],O=u[1],B=de||(re.current?void 0:function(R){O(function(Q){var K=[R].concat((0,E.Z)(Q));return K})});function T(){G.parentElement||document.body.appendChild(G),re.current=!0}function I(){var R;(R=G.parentElement)===null||R===void 0||R.removeChild(G),re.current=!1}return(0,w.Z)(function(){return $?de?de(T):T():I(),I},[$]),(0,w.Z)(function(){d.length&&(d.forEach(function(R){return R()}),O(p))},[d]),[G,B]}var e=a(31936),r=a(57749);function m(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var U="rc-util-locker-".concat(Date.now()),Z=0;function ce($){var y=!!$,ee=g.useState(function(){return Z+=1,"".concat(U,"_").concat(Z)}),be=(0,C.Z)(ee,1),G=be[0];(0,w.Z)(function(){if(y){var re=(0,r.Z)(),de=m();(0,e.hq)(`
|
||||
html body {
|
||||
overflow-y: hidden;
|
||||
`.concat(de?"width: calc(100% - ".concat(re,"px);"):"",`
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -15,7 +15,7 @@
|
|||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
"use strict";(self.webpackChunktopiam_portal=self.webpackChunktopiam_portal||[]).push([[869],{869:function(ve,G,p){p.d(G,{Z:function(){return fe}});var W=p(68591),m=p.n(W),o=p(79685),f=p(86787),y=p(8779),x=e=>{const{prefixCls:t,className:n,style:l,size:a,shape:i}=e,c=m()({[`${t}-lg`]:a==="large",[`${t}-sm`]:a==="small"}),r=m()({[`${t}-circle`]:i==="circle",[`${t}-square`]:i==="square",[`${t}-round`]:i==="round"}),s=o.useMemo(()=>typeof a=="number"?{width:a,height:a,lineHeight:`${a}px`}:{},[a]);return o.createElement("span",{className:m()(t,c,r,n),style:Object.assign(Object.assign({},s),l)})},X=p(25646),F=p(83763),q=p(92232);const K=new X.Keyframes("ant-skeleton-loading",{"0%":{transform:"translateX(-37.5%)"},"100%":{transform:"translateX(37.5%)"}}),j=e=>({height:e,lineHeight:`${e}px`}),b=e=>Object.assign({width:e},j(e)),V=e=>({position:"relative",zIndex:0,overflow:"hidden",background:"transparent","&::after":{position:"absolute",top:0,insetInlineEnd:"-150%",bottom:0,insetInlineStart:"-150%",background:e.skeletonLoadingBackground,animationName:K,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite",content:'""'}}),w=e=>Object.assign({width:e*5,minWidth:e*5},j(e)),J=e=>{const{skeletonAvatarCls:t,color:n,controlHeight:l,controlHeightLG:a,controlHeightSM:i}=e;return{[`${t}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},b(l)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},b(a)),[`${t}${t}-sm`]:Object.assign({},b(i))}},Q=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:l,controlHeightLG:a,controlHeightSM:i,color:c}=e;return{[`${l}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:c,borderRadius:n},w(t)),[`${l}-lg`]:Object.assign({},w(a)),[`${l}-sm`]:Object.assign({},w(i))}},A=e=>Object.assign({width:e},j(e)),U=e=>{const{skeletonImageCls:t,imageSizeBase:n,color:l,borderRadiusSM:a}=e;return{[`${t}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:l,borderRadius:a},A(n*2)),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},A(n)),{maxWidth:n*4,maxHeight:n*4}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},P=(e,t,n)=>{const{skeletonButtonCls:l}=e;return{[`${n}${l}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${l}-round`]:{borderRadius:t}}},I=e=>Object.assign({width:e*2,minWidth:e*2},j(e)),Y=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:l,controlHeightLG:a,controlHeightSM:i,color:c}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${n}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:c,borderRadius:t,width:l*2,minWidth:l*2},I(l))},P(e,l,n)),{[`${n}-lg`]:Object.assign({},I(a))}),P(e,a,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},I(i))}),P(e,i,`${n}-sm`))},_=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:l,skeletonParagraphCls:a,skeletonButtonCls:i,skeletonInputCls:c,skeletonImageCls:r,controlHeight:s,controlHeightLG:g,controlHeightSM:d,color:u,padding:$,marginSM:R,borderRadius:h,skeletonTitleHeight:z,skeletonBlockRadius:E,skeletonParagraphLineHeight:k,controlHeightXS:S,skeletonParagraphMarginTop:O}=e;return{[`${t}`]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:$,verticalAlign:"top",[`${n}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:u},b(s)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},b(g)),[`${n}-sm`]:Object.assign({},b(d))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${l}`]:{width:"100%",height:z,background:u,borderRadius:E,[`+ ${a}`]:{marginBlockStart:d}},[`${a}`]:{padding:0,"> li":{width:"100%",height:k,listStyle:"none",background:u,borderRadius:E,"+ li":{marginBlockStart:S}}},[`${a}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${l}, ${a} > li`]:{borderRadius:h}}},[`${t}-with-avatar ${t}-content`]:{[`${l}`]:{marginBlockStart:R,[`+ ${a}`]:{marginBlockStart:O}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},Y(e)),J(e)),Q(e)),U(e)),[`${t}${t}-block`]:{width:"100%",[`${i}`]:{width:"100%"},[`${c}`]:{width:"100%"}},[`${t}${t}-active`]:{[`
|
||||
"use strict";(self.webpackChunktopiam_portal=self.webpackChunktopiam_portal||[]).push([[834],{869:function(ve,G,p){p.d(G,{Z:function(){return fe}});var W=p(68591),m=p.n(W),o=p(79685),f=p(86787),y=p(8779),x=e=>{const{prefixCls:t,className:n,style:l,size:a,shape:i}=e,c=m()({[`${t}-lg`]:a==="large",[`${t}-sm`]:a==="small"}),r=m()({[`${t}-circle`]:i==="circle",[`${t}-square`]:i==="square",[`${t}-round`]:i==="round"}),s=o.useMemo(()=>typeof a=="number"?{width:a,height:a,lineHeight:`${a}px`}:{},[a]);return o.createElement("span",{className:m()(t,c,r,n),style:Object.assign(Object.assign({},s),l)})},X=p(25646),F=p(83763),q=p(92232);const K=new X.Keyframes("ant-skeleton-loading",{"0%":{transform:"translateX(-37.5%)"},"100%":{transform:"translateX(37.5%)"}}),j=e=>({height:e,lineHeight:`${e}px`}),b=e=>Object.assign({width:e},j(e)),V=e=>({position:"relative",zIndex:0,overflow:"hidden",background:"transparent","&::after":{position:"absolute",top:0,insetInlineEnd:"-150%",bottom:0,insetInlineStart:"-150%",background:e.skeletonLoadingBackground,animationName:K,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite",content:'""'}}),w=e=>Object.assign({width:e*5,minWidth:e*5},j(e)),J=e=>{const{skeletonAvatarCls:t,color:n,controlHeight:l,controlHeightLG:a,controlHeightSM:i}=e;return{[`${t}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},b(l)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},b(a)),[`${t}${t}-sm`]:Object.assign({},b(i))}},Q=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:l,controlHeightLG:a,controlHeightSM:i,color:c}=e;return{[`${l}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:c,borderRadius:n},w(t)),[`${l}-lg`]:Object.assign({},w(a)),[`${l}-sm`]:Object.assign({},w(i))}},A=e=>Object.assign({width:e},j(e)),U=e=>{const{skeletonImageCls:t,imageSizeBase:n,color:l,borderRadiusSM:a}=e;return{[`${t}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:l,borderRadius:a},A(n*2)),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},A(n)),{maxWidth:n*4,maxHeight:n*4}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},P=(e,t,n)=>{const{skeletonButtonCls:l}=e;return{[`${n}${l}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${l}-round`]:{borderRadius:t}}},I=e=>Object.assign({width:e*2,minWidth:e*2},j(e)),Y=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:l,controlHeightLG:a,controlHeightSM:i,color:c}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${n}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:c,borderRadius:t,width:l*2,minWidth:l*2},I(l))},P(e,l,n)),{[`${n}-lg`]:Object.assign({},I(a))}),P(e,a,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},I(i))}),P(e,i,`${n}-sm`))},_=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:l,skeletonParagraphCls:a,skeletonButtonCls:i,skeletonInputCls:c,skeletonImageCls:r,controlHeight:s,controlHeightLG:g,controlHeightSM:d,color:u,padding:$,marginSM:R,borderRadius:h,skeletonTitleHeight:z,skeletonBlockRadius:E,skeletonParagraphLineHeight:k,controlHeightXS:S,skeletonParagraphMarginTop:O}=e;return{[`${t}`]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:$,verticalAlign:"top",[`${n}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:u},b(s)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},b(g)),[`${n}-sm`]:Object.assign({},b(d))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${l}`]:{width:"100%",height:z,background:u,borderRadius:E,[`+ ${a}`]:{marginBlockStart:d}},[`${a}`]:{padding:0,"> li":{width:"100%",height:k,listStyle:"none",background:u,borderRadius:E,"+ li":{marginBlockStart:S}}},[`${a}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${l}, ${a} > li`]:{borderRadius:h}}},[`${t}-with-avatar ${t}-content`]:{[`${l}`]:{marginBlockStart:R,[`+ ${a}`]:{marginBlockStart:O}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},Y(e)),J(e)),Q(e)),U(e)),[`${t}${t}-block`]:{width:"100%",[`${i}`]:{width:"100%"},[`${c}`]:{width:"100%"}},[`${t}${t}-active`]:{[`
|
||||
${l},
|
||||
${a} > li,
|
||||
${n},
|
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
Loading…
Reference in New Issue