mirror of https://gitee.com/topiam/eiam
Merge remote-tracking branch 'origin/master'
commit
c0c0300082
|
@ -47,7 +47,7 @@
|
||||||
"@ant-design/charts": "^1.4.2",
|
"@ant-design/charts": "^1.4.2",
|
||||||
"@ant-design/icons": "^5.2.6",
|
"@ant-design/icons": "^5.2.6",
|
||||||
"@ant-design/maps": "^1.0.7",
|
"@ant-design/maps": "^1.0.7",
|
||||||
"@ant-design/pro-components": "^2.6.25",
|
"@ant-design/pro-components": "^2.6.27",
|
||||||
"ahooks": "^3.7.8",
|
"ahooks": "^3.7.8",
|
||||||
"antd": "^5.9.3",
|
"antd": "^5.9.3",
|
||||||
"antd-img-crop": "^4.13.0",
|
"antd-img-crop": "^4.13.0",
|
||||||
|
|
|
@ -89,11 +89,7 @@ export default () => {
|
||||||
loading ? (
|
loading ? (
|
||||||
<Skeleton active paragraph={{ rows: 1 }} />
|
<Skeleton active paragraph={{ rows: 1 }} />
|
||||||
) : (
|
) : (
|
||||||
<ProDescriptions
|
<ProDescriptions size="small" column={isMobile ? 1 : 2} dataSource={{ ...app }}>
|
||||||
size="small"
|
|
||||||
column={isMobile ? 1 : 2}
|
|
||||||
dataSource={{ ...app }}
|
|
||||||
>
|
|
||||||
<ProDescriptions.Item
|
<ProDescriptions.Item
|
||||||
dataIndex="type"
|
dataIndex="type"
|
||||||
label={intl.formatMessage({ id: 'pages.app.config.detail.config.type' })}
|
label={intl.formatMessage({ id: 'pages.app.config.detail.config.type' })}
|
||||||
|
@ -195,7 +191,16 @@ export default () => {
|
||||||
</Button>,
|
</Button>,
|
||||||
]}
|
]}
|
||||||
tabActiveKey={tabActiveKey}
|
tabActiveKey={tabActiveKey}
|
||||||
onTabChange={setTabActiveKey}
|
onTabChange={(key) => {
|
||||||
|
setTabActiveKey(key);
|
||||||
|
history.replace({
|
||||||
|
pathname: location.pathname,
|
||||||
|
search: queryString.stringify({
|
||||||
|
type: key,
|
||||||
|
id,
|
||||||
|
}),
|
||||||
|
});
|
||||||
|
}}
|
||||||
tabList={[
|
tabList={[
|
||||||
{
|
{
|
||||||
key: ConfigTabs.app_config,
|
key: ConfigTabs.app_config,
|
||||||
|
|
|
@ -45,7 +45,7 @@ export default {
|
||||||
'pages.app.config.detail.items.login_access.protocol_config.common.authorization_type':
|
'pages.app.config.detail.items.login_access.protocol_config.common.authorization_type':
|
||||||
'授权范围',
|
'授权范围',
|
||||||
'pages.app.config.detail.items.login_access.protocol_config.common.authorization_type.extra':
|
'pages.app.config.detail.items.login_access.protocol_config.common.authorization_type.extra':
|
||||||
'若选择手动授权,需要在 访问授权 中进行权限分配。',
|
'若选择手动授权,需要在【访问授权】中进行权限分配。',
|
||||||
'pages.app.config.detail.items.login_access.protocol_config.common.authorization_type.rule.0.message':
|
'pages.app.config.detail.items.login_access.protocol_config.common.authorization_type.rule.0.message':
|
||||||
'请选择授权范围',
|
'请选择授权范围',
|
||||||
'pages.app.config.detail.items.login_access.protocol_config.common.authorization_type.option.0':
|
'pages.app.config.detail.items.login_access.protocol_config.common.authorization_type.option.0':
|
||||||
|
|
|
@ -28,11 +28,9 @@ import queryString from 'query-string';
|
||||||
import { flushSync } from 'react-dom';
|
import { flushSync } from 'react-dom';
|
||||||
import classnames from 'classnames';
|
import classnames from 'classnames';
|
||||||
import useStyle from './style';
|
import useStyle from './style';
|
||||||
import Banner from '@/components/Banner';
|
|
||||||
import PageLoading from '@/components/PageLoading';
|
import PageLoading from '@/components/PageLoading';
|
||||||
|
|
||||||
const prefixCls = 'login';
|
const prefixCls = 'login';
|
||||||
const showBanner = process.env.PREVIEW_ENV || process.env.NODE_ENV === 'development';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 错误消息
|
* 错误消息
|
||||||
|
@ -152,14 +150,6 @@ const Login: React.FC = () => {
|
||||||
<link rel="icon" href={'/favicon.ico'} />
|
<link rel="icon" href={'/favicon.ico'} />
|
||||||
</Helmet>
|
</Helmet>
|
||||||
<div className={classnames(`${prefixCls}`)}>
|
<div className={classnames(`${prefixCls}`)}>
|
||||||
{showBanner && <Banner />}
|
|
||||||
<div
|
|
||||||
style={{
|
|
||||||
backgroundColor: 'white',
|
|
||||||
height: 'calc(100vh - 48px)',
|
|
||||||
border: '1px solid rgb(240, 240, 240)',
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
<LoginFormPage
|
<LoginFormPage
|
||||||
backgroundImageUrl={'/login-background.png'}
|
backgroundImageUrl={'/login-background.png'}
|
||||||
logo={'/full-logo.svg'}
|
logo={'/full-logo.svg'}
|
||||||
|
@ -262,7 +252,6 @@ const Login: React.FC = () => {
|
||||||
</div>
|
</div>
|
||||||
</LoginFormPage>
|
</LoginFormPage>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</>
|
</>
|
||||||
) : (
|
) : (
|
||||||
<PageLoading />
|
<PageLoading />
|
||||||
|
|
|
@ -23,6 +23,9 @@ const useStyle = createStyles(({ token, prefixCls }, prefix) => {
|
||||||
return {
|
return {
|
||||||
main: {
|
main: {
|
||||||
[`${prefixClassName}`]: {
|
[`${prefixClassName}`]: {
|
||||||
|
backgroundColor: 'white',
|
||||||
|
height: '100vh',
|
||||||
|
border: '1px solid rgb(240, 240, 240)',
|
||||||
[`${prefixClassName}-form-prefix-icon`]: {
|
[`${prefixClassName}-form-prefix-icon`]: {
|
||||||
color: token.colorPrimary,
|
color: token.colorPrimary,
|
||||||
fontSize: token.fontSize,
|
fontSize: token.fontSize,
|
||||||
|
|
|
@ -48,7 +48,7 @@
|
||||||
"@ant-design/charts": "^1.4.2",
|
"@ant-design/charts": "^1.4.2",
|
||||||
"@ant-design/icons": "^5.2.6",
|
"@ant-design/icons": "^5.2.6",
|
||||||
"@ant-design/maps": "^1.0.7",
|
"@ant-design/maps": "^1.0.7",
|
||||||
"@ant-design/pro-components": "^2.6.25",
|
"@ant-design/pro-components": "^2.6.27",
|
||||||
"ahooks": "^3.7.8",
|
"ahooks": "^3.7.8",
|
||||||
"antd": "^5.9.3",
|
"antd": "^5.9.3",
|
||||||
"antd-img-crop": "^4.13.0",
|
"antd-img-crop": "^4.13.0",
|
||||||
|
|
Loading…
Reference in New Issue