Skip to content

Commit

Permalink
fix: Removed the sample login from the landing page #1626 (#1657)
Browse files Browse the repository at this point in the history
  • Loading branch information
iamayushdas committed Mar 24, 2021
1 parent 31700b3 commit bec8f1b
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 53 deletions.
3 changes: 1 addition & 2 deletions web/src/pages/User/Login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import { Button, notification, Tabs } from 'antd';
import { SelectLang } from '@@/plugin-locale/SelectLang';
import { Link, useIntl, history } from 'umi';
import LoginMethodPassword from '@/pages/User/components/LoginMethodPassword';
import LoginMethodExample from '@/pages/User/components/LoginMethodExample';
import type { UserModule } from '@/pages/User/typing';
import logo from '@/assets/logo.svg';
import { getUrlQuery } from '@/helpers';
Expand All @@ -32,7 +31,7 @@ const Tab = Tabs.TabPane;
/**
* Login Methods List
*/
const loginMethods: UserModule.LoginMethod[] = [LoginMethodPassword, LoginMethodExample];
const loginMethods: UserModule.LoginMethod[] = [LoginMethodPassword];

/**
* User Login Page
Expand Down
3 changes: 1 addition & 2 deletions web/src/pages/User/Logout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,13 @@
import type React from 'react';

import LoginMethodPassword from '@/pages/User/components/LoginMethodPassword';
import LoginMethodExample from '@/pages/User/components/LoginMethodExample';
import type { UserModule } from '@/pages/User/typing';
import { getUrlQuery } from '@/helpers';

/**
* Login Methods List
*/
const loginMethods: UserModule.LoginMethod[] = [LoginMethodPassword, LoginMethodExample];
const loginMethods: UserModule.LoginMethod[] = [LoginMethodPassword];

/**
* User Logout Page
Expand Down
43 changes: 0 additions & 43 deletions web/src/pages/User/components/LoginMethodExample.tsx

This file was deleted.

5 changes: 1 addition & 4 deletions web/src/pages/User/locales/en-US.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,4 @@ export default {
'component.user.loginMethodPassword.success': 'Login Success',
'component.user.loginMethodPassword.changeDefaultAccount': 'How to update username/password?',
'component.user.loginMethodPassword.modificationMethod': 'Please modify the users field in the /api/conf/conf.yaml file',
'component.user.loginMethodExample': 'Example',
'component.user.loginMethodExample.message':
'Example Login Method, It is only used as an extension example of login method and cannot be used.',
};
};
2 changes: 0 additions & 2 deletions web/src/pages/User/locales/zh-CN.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,4 @@ export default {
'component.user.loginMethodPassword.success': '登录成功',
'component.user.loginMethodPassword.changeDefaultAccount': '如何修改默认账户和密码?',
'component.user.loginMethodPassword.modificationMethod': '请修改 /api/conf/conf.yaml 文件中 users 字段',
'component.user.loginMethodExample': '示例登录',
'component.user.loginMethodExample.message': '示例登录方式,仅作为登录方式扩展例子,无法使用',
};

0 comments on commit bec8f1b

Please sign in to comment.