mirror of https://gitee.com/topiam/eiam
⚡ 更新前端页面
parent
fabf77e169
commit
da63f95e3a
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
|
@ -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([[576],{41576:function(l,n,t){t.r(n),t.d(n,{default:function(){return E}});var s=t(67294),u=t(98971),o=t(85893);function E(){var a=(0,u.useOutletContext)();return(0,o.jsx)(u.Outlet,{context:a})}}}]);
|
||||
"use strict";(self.webpackChunktopiam_portal=self.webpackChunktopiam_portal||[]).push([[677],{2677:function(l,n,t){t.r(n),t.d(n,{default:function(){return E}});var s=t(79685),u=t(84530),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
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
|
@ -28,6 +28,6 @@
|
|||
</head>
|
||||
<body>
|
||||
<div id="root"></div>
|
||||
<script src="/umi.5a15f2ce.js"></script>
|
||||
<script src="/umi.30ff6d34.js"></script>
|
||||
|
||||
</body></html>
|
|
@ -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],{47680:function(r,n,t){t.r(n);var a=t(22181),u=t(71577),s=t(98971),o=t(85893),i=function(){return(0,o.jsx)(a.ZP,{status:"404",title:"404",subTitle:"Sorry, the page you visited does not exist.",extra:(0,o.jsx)(u.Z,{type:"primary",onClick:function(){return s.history.push("/")},children:"Back Home"})})};n.default=i}}]);
|
||||
"use strict";(self.webpackChunktopiam_portal=self.webpackChunktopiam_portal||[]).push([[571],{66354:function(r,n,t){t.r(n);var o=t(73838),s=t(8821),u=t(84530),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
|
@ -0,0 +1,18 @@
|
|||
/*
|
||||
* 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],{81046: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(53448),I=t(62119),O=t(76815),Z=t(55470),B=t(24380),S=t(12790),E=t(90914),N=t(86977),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(81996),z=t(84530);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
|
@ -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([[26],{24041:function(m,t,_){_.r(t);var r=_(97983),n=_.n(r),i=_(11281),a=_.n(i),s=_(40794),d=_.n(s),e=_(40367),E=_(84865),v=_(78234),j=_(69400),I=_(17673),U=_(67038),y=_(98971),f=_(85893);t.default=function(){var P=(0,y.useModel)("@@initialState"),C=P.initialState,T=P.setInitialState;return(0,v.Z)(d()(n()().mark(function h(){return n()().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:j.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 R=d()(n()().mark(function b(){var M,O,o,l,p,D;return n()().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,T(a()(a()({},C),{},{currentUser:void 0}));case 2:M=(0,U.parse)(E.m.location.search),O=M,o=O.redirect_uri,l={pathname:e.wm},p=o&&o.split("/"),o&&o!==p[0]+"//"+p[2]+"/"&&(l=a()(a()({},l),{},{search:(0,I.stringify)({redirect_uri:o})})),D=E.m.createHref(l),window.location.replace(D);case 9:case"end":return u.stop()}},b)}));function B(){return R.apply(this,arguments)}return B}()});case 1:case"end":return c.stop()}},h)}))),(0,f.jsx)(f.Fragment,{})}},78234:function(m,t,_){var r=_(67294),n=_(92770),i=_(31663);const a=s=>{i.Z&&((0,n.mf)(s)||console.error(`useMount: parameter \`fn\` expected to be a function, but got "${typeof s}".`)),(0,r.useEffect)(()=>{s==null||s()},[])};t.Z=a},92770:function(m,t,_){_.d(t,{mf:function(){return n}});const r=e=>e!==null&&typeof e=="object",n=e=>typeof e=="function",i=e=>typeof e=="string",a=e=>typeof e=="boolean",s=e=>typeof e=="number",d=e=>typeof e=="undefined"},31663:function(m,t){t.Z=!1}}]);
|
|
@ -0,0 +1,18 @@
|
|||
/*
|
||||
* 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([[26],{21297:function(u,n,_){_.r(n);var s=_(84019),t=_.n(s),i=_(76091),o=_.n(i),r=_(32061),c=_.n(r),e=_(81996),E=_(81369),y=_(78035),v=_(60240),f=_(65251),I=_(84530),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}}]);
|
|
@ -1,19 +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([[790],{26041:function(P,g,r){r.r(g),r.d(g,{default:function(){return L}});var A=r(97983),o=r.n(A),C=r(40794),v=r.n(C),y=r(25035),I=r(19847),S=r(65767),x=r(76521),E=r(86738),R=r(2453),T=r(27414),j=r(26713),Z=r(67294),F=r(98971);function B(i){return p.apply(this,arguments)}function p(){return p=v()(o()().mark(function i(c){return o()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,F.request)("/api/session/list",{method:"get",params:c}).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 n.stop()}},i)})),p.apply(this,arguments)}function w(i){return h.apply(this,arguments)}function h(){return h=v()(o()().mark(function i(c){return o()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,F.request)("/api/session/remove",{method:"delete",requestType:"form",data:{sessionIds:c}}));case 1:case"end":return n.stop()}},i)})),h.apply(this,arguments)}var s=r(85893),L=function(){var i=(0,Z.useRef)(),c=[{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(n,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(n,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(n,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(n,t){var e=t.userAgent;return(e==null?void 0:e.platform)+" "+(e==null?void 0:e.platformVersion)||"-"}},{title:"\u6D4F\u89C8\u5668",ellipsis:!0,width:110,search:!1,render:function(n,t){var e=t.userAgent;return(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(n,t){var e=t.sessionId;return[(0,s.jsx)(E.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,l;return o()().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.next=2,w(e);case 2:u=d.sent,m=u.success,m&&(R.ZP.success("\u64CD\u4F5C\u6210\u529F"),(l=i.current)===null||l===void 0||l.reload());case 5:case"end":return d.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:c,rowSelection:{selections:[T.Z.SELECTION_ALL,T.Z.SELECTION_INVERT]},tableAlertRender:function(n){var t=n.selectedRowKeys,e=n.onCleanSelected;return(0,s.jsx)(j.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(n){return(0,s.jsx)(j.Z,{size:16,children:(0,s.jsx)(E.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(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,w(n.selectedRowKeys.join(","));case 2:e=l.sent,f=e.success,f&&(R.ZP.success("\u64CD\u4F5C\u6210\u529F"),n.onCleanSelected(),(u=i.current)===null||u===void 0||u.reload());case 5:case"end":return l.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"})})}}}]);
|
|
@ -0,0 +1,19 @@
|
|||
/*
|
||||
* 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([[790],{10035: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(53448),S=n(18189),x=n(81381),j=n(18054),E=n(90914),R=n(28755),T=n(93973),Z=n(79685),w=n(84530);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"})})}}}]);
|
|
@ -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([[297],{61430:function(u,r,a){a.r(r),a.d(r,{default:function(){return e}});var t=a(4393),o=a(99138),s=a(19847),n=a(85893),l=function(){return(0,n.jsx)(s._z,{children:(0,n.jsx)(t.Z,{children:(0,n.jsx)(o.Z,{banner:!0,description:"\u6B22\u8FCE\u4F7F\u7528 TopIAM \u4F01\u4E1A\u6570\u5B57\u8EAB\u4EFD\u7BA1\u63A7\u5E73\u53F0",type:"success"})})})},c=l,e=c}}]);
|
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