Skip to content

Commit 79f5b63

Browse files
committed
UI: Add callbackURL form tips
1 parent 8a666e4 commit 79f5b63

File tree

4 files changed

+13
-0
lines changed

4 files changed

+13
-0
lines changed

src/pages/IdentityProvider/Create/Coding.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ const INTL = {
1919
CALLBACK_URL: {
2020
id: 'idp.form.callbackURL',
2121
},
22+
CALLBACK_URL_TIPS: {
23+
id: 'idp.form.callbackURL.tips',
24+
},
2225
CALLBACK_URL_PLACEHOLDER: {
2326
id: 'idp.form.callbackURL.placeholder',
2427
},
@@ -89,6 +92,7 @@ export const Coding: React.FC<FormProps> = (props: FormProps) => {
8992
name="callbackURL"
9093
fieldProps={{ autoComplete: 'off' }}
9194
label={intl.formatMessage(INTL.CALLBACK_URL)}
95+
tooltip={intl.formatMessage(INTL.CALLBACK_URL_TIPS)}
9296
placeholder={intl.formatMessage(INTL.CALLBACK_URL_PLACEHOLDER)}
9397
/>
9498
</ProForm.Group>

src/pages/IdentityProvider/Create/GitHub.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ const INTL = {
1515
CALLBACK_URL: {
1616
id: 'idp.form.callbackURL',
1717
},
18+
CALLBACK_URL_TIPS: {
19+
id: 'idp.form.callbackURL.tips',
20+
},
1821
CALLBACK_URL_PLACEHOLDER: {
1922
id: 'idp.form.callbackURL.placeholder',
2023
},
@@ -56,6 +59,7 @@ export const GitHub: React.FC<FormProps> = (props: FormProps) => {
5659
name="callbackURL"
5760
fieldProps={{ autoComplete: 'off' }}
5861
label={intl.formatMessage(INTL.CALLBACK_URL)}
62+
tooltip={intl.formatMessage(INTL.CALLBACK_URL_TIPS)}
5963
placeholder={intl.formatMessage(INTL.CALLBACK_URL_PLACEHOLDER)}
6064
/>
6165
</ProForm.Group>

src/pages/IdentityProvider/Create/Gitee.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ const INTL = {
1919
CALLBACK_URL: {
2020
id: 'idp.form.callbackURL',
2121
},
22+
CALLBACK_URL_TIPS: {
23+
id: 'idp.form.callbackURL.tips',
24+
},
2225
CALLBACK_URL_PLACEHOLDER: {
2326
id: 'idp.form.callbackURL.placeholder',
2427
},
@@ -74,6 +77,7 @@ export const Gitee: React.FC<FormProps> = (props: FormProps) => {
7477
name="callbackURL"
7578
fieldProps={{ autoComplete: 'off' }}
7679
label={intl.formatMessage(INTL.CALLBACK_URL)}
80+
tooltip={intl.formatMessage(INTL.CALLBACK_URL_TIPS)}
7781
placeholder={intl.formatMessage(INTL.CALLBACK_URL_PLACEHOLDER)}
7882
/>
7983
</ProForm.Group>

src/pages/IdentityProvider/locales/zh-CN.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ export default {
2424
'idp.form.clientID': 'Client ID',
2525
'idp.form.clientSecret': 'Client secret',
2626
'idp.form.callbackURL': 'Callback URL',
27+
'idp.form.callbackURL.tips': '登录成功之后跳转地址',
2728
'idp.form.authURL': '回调地址',
2829
'idp.form.scopes': 'Scopes',
2930
'idp.form.category': '分类',

0 commit comments

Comments
 (0)