File tree Expand file tree Collapse file tree 6 files changed +0
-50
lines changed
viewer/packages/lowcoder/src Expand file tree Collapse file tree 6 files changed +0
-50
lines changed Original file line number Diff line number Diff line change @@ -14,9 +14,6 @@ export const PLUGINS_SETTING = "/setting/plugins";
14
14
export const THEME_DETAIL = "/setting/theme/detail" ;
15
15
export const THEME_DETAIL_URL = `${ THEME_DETAIL } /:themeId` ;
16
16
17
- export const OAUTH_PROVIDER_SETTING = "/setting/oauth-provider" ;
18
- export const OAUTH_PROVIDER_DETAIL = "/setting/oauth-provider/detail" ;
19
-
20
17
export const ALL_APPLICATIONS_URL = "/apps" ;
21
18
export const ADMIN_APP_URL = "/ee/:applicationId/:viewMode" ;
22
19
export const MODULE_APPLICATIONS_URL = "/apps/module" ;
Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ import { validateResponse } from "api/apiUtils";
6
6
import IdSourceApi from "api/idSourceApi" ;
7
7
import { DangerIcon , CustomModal } from "lowcoder-design" ;
8
8
import history from "util/history" ;
9
- import { OAUTH_PROVIDER_SETTING } from "constants/routesURL" ;
10
9
import { messageInstance } from "lowcoder-design/src/components/GlobalInstances" ;
11
10
12
11
export const DeleteConfig = ( props : { id : string } ) => {
@@ -19,11 +18,6 @@ export const DeleteConfig = (props: { id: string }) => {
19
18
setDeleteLoading ( true ) ;
20
19
IdSourceApi . deleteConfig ( props . id )
21
20
. then ( ( resp ) => {
22
- if ( validateResponse ( resp ) ) {
23
- messageInstance . success ( trans ( "idSource.disableSuccess" ) , 0.8 , ( ) =>
24
- history . push ( OAUTH_PROVIDER_SETTING )
25
- ) ;
26
- }
27
21
} )
28
22
. catch ( ( e ) => messageInstance . error ( e . message ) )
29
23
. finally ( ( ) => setDeleteLoading ( false ) ) ;
Original file line number Diff line number Diff line change @@ -12,7 +12,6 @@ import {
12
12
CloseEyeIcon ,
13
13
} from "lowcoder-design" ;
14
14
import history from "util/history" ;
15
- import { OAUTH_PROVIDER_SETTING } from "constants/routesURL" ;
16
15
import {
17
16
authConfig ,
18
17
AuthType ,
@@ -74,12 +73,6 @@ export const IdSourceDetail = (props: IdSourceDetailProps) => {
74
73
} )
75
74
}
76
75
} , [ configDetail ] ) ;
77
- const goList = ( ) => {
78
- history . push ( OAUTH_PROVIDER_SETTING ) ;
79
- } ;
80
- if ( ! configDetail ) {
81
- goList ( ) ;
82
- }
83
76
const handleSuccess = ( values : any ) => {
84
77
setSaveLoading ( true ) ;
85
78
let params = {
@@ -106,14 +99,6 @@ export const IdSourceDetail = (props: IdSourceDetailProps) => {
106
99
...params ,
107
100
}
108
101
}
109
- IdSourceApi . saveConfig ( params )
110
- . then ( ( resp ) => {
111
- if ( validateResponse ( resp ) ) {
112
- messageInstance . success ( trans ( "idSource.saveSuccess" ) , 0.8 , goList ) ;
113
- }
114
- } )
115
- . catch ( ( e ) => messageInstance . error ( e . message ) )
116
- . finally ( ( ) => setSaveLoading ( false ) ) ;
117
102
} ;
118
103
119
104
const handleChange = ( allValues : { [ key : string ] : string } ) => {
@@ -168,7 +153,6 @@ export const IdSourceDetail = (props: IdSourceDetailProps) => {
168
153
< DetailContainer >
169
154
< Header >
170
155
< HeaderBack >
171
- < span onClick = { ( ) => goList ( ) } > { trans ( "idSource.title" ) } </ span >
172
156
< ArrowIcon />
173
157
< span > { authConfig [ configDetail . authType ] . sourceName } </ span >
174
158
</ HeaderBack >
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -22,7 +22,6 @@ import {
22
22
} from "pages/setting/idSource/styledComponents" ;
23
23
import FreeLimitTag from "pages/common/freeLimitTag" ;
24
24
import history from "util/history" ;
25
- import { OAUTH_PROVIDER_DETAIL } from "constants/routesURL" ;
26
25
import { selectSystemConfig } from "redux/selectors/configSelectors" ;
27
26
import { isEnterpriseMode , isSelfDomain } from "util/envUtils" ;
28
27
import { default as Badge } from "antd/es/badge" ;
@@ -120,15 +119,6 @@ export const IdSourceList = (props: any) => {
120
119
: "" ;
121
120
} }
122
121
onRow = { ( record ) => ( {
123
- onClick : ( ) => {
124
- if ( authTypeDisabled ( ( record as ConfigItem ) . authType , enableEnterpriseLogin ) ) {
125
- return ;
126
- }
127
- history . push ( {
128
- pathname : OAUTH_PROVIDER_DETAIL ,
129
- state : record ,
130
- } ) ;
131
- } ,
132
122
} ) }
133
123
>
134
124
< Column
Original file line number Diff line number Diff line change @@ -23,7 +23,6 @@ import { getUser } from "redux/selectors/usersSelectors";
23
23
import history from "util/history" ;
24
24
import { useParams } from "react-router-dom" ;
25
25
import { BrandingSetting } from "@lowcoder-ee/pages/setting/branding/BrandingSetting" ;
26
- import { IdSourceHome } from "@lowcoder-ee/pages/setting/idSource" ;
27
26
import { selectSystemConfig } from "redux/selectors/configSelectors" ;
28
27
import { enableCustomBrand } from "util/featureFlagUtils" ;
29
28
import FreeLimitTag from "pages/common/freeLimitTag" ;
@@ -152,7 +151,6 @@ export function SettingHome() {
152
151
{ selectKey === SettingPageEnum . UserGroups && < PermissionSetting /> }
153
152
{ selectKey === SettingPageEnum . Organization && < Organization /> }
154
153
{ selectKey === SettingPageEnum . Theme && < ThemeHome /> }
155
- { selectKey === SettingPageEnum . OAuthProvider && < IdSourceHome /> }
156
154
{ selectKey === SettingPageEnum . Audit && < AuditSetting /> }
157
155
{ selectKey === SettingPageEnum . Branding && < BrandingSetting /> }
158
156
{ selectKey === SettingPageEnum . Advanced && < AdvancedSetting /> }
You can’t perform that action at this time.
0 commit comments