-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
641 additions
and
12 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -62,3 +62,6 @@ | |
} | ||
} | ||
|
||
.ant-form-item-label .ant-form-item-required { | ||
width: 100%; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
import React, { useContext } from 'react'; | ||
import { mainContext } from 'reducer'; | ||
import { Dropdown, Menu } from 'antd'; | ||
import themeStyle from 'utils/themeStyle.js'; | ||
import { QuestionCircleOutlined } from '@ant-design/icons'; | ||
import { Tooltip } from 'antd'; | ||
import { Truncate } from 'utils/text.js'; | ||
import { t } from 'utils/text.js'; | ||
import ClipboardCopy from 'components/Utils/ClipboardCopy'; | ||
|
||
const Endpoint = ({ color }) => { | ||
// const { dispatch, state } = useContext(mainContext); | ||
// const { account } = state; | ||
|
||
const save = (e, wallet) => { | ||
// connect(wallet, dispatch); | ||
}; | ||
|
||
const handleChange = () => { | ||
// disConnect(dispatch); | ||
}; | ||
|
||
return ( | ||
<div className="flex flex-col justify-center max-w-515px"> | ||
<div className=" min-h-400"> | ||
<div className="login-title">{t('login')}</div> | ||
<div className="text-gray-900 text-sm font-bold mb-12"> | ||
{t('login_endpoint_desc')} | ||
</div> | ||
<div className="mb-2 setting-header"> | ||
<h5 className="font-bold theme-text-main" htmlFor="grid-password"> | ||
API {t('endpoint')} | ||
</h5> | ||
<Tooltip overlayInnerStyle={{ width: '180px' }} placement="top" title={<p>{t('copy_url_tips')}</p>}> | ||
{/* <i className="far fa-question-circle ml-1 text-xs"></i> */} | ||
<QuestionCircleOutlined className="inline-flex items-center ml-1 text-xs" /> | ||
</Tooltip> | ||
</div> | ||
<input | ||
type="text" | ||
className="mr-2 common-input theme-bg theme-border-color" | ||
defaultValue="http://localhost:5001" | ||
// ref={inputRef} | ||
onChange={handleChange} | ||
/> | ||
<button className="mt-5 common-btn theme-common-btn login-btn" type="button" onClick={save}> | ||
{t('next')} | ||
</button> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Endpoint; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
import React, { useContext } from 'react'; | ||
import { mainContext } from 'reducer'; | ||
import { Dropdown, Menu } from 'antd'; | ||
import themeStyle from 'utils/themeStyle.js'; | ||
import { QuestionCircleOutlined } from '@ant-design/icons'; | ||
import { Tooltip, Form, Input, Button } from 'antd'; | ||
import { Truncate } from 'utils/text.js'; | ||
import { t } from 'utils/text.js'; | ||
import ClipboardCopy from 'components/Utils/ClipboardCopy'; | ||
|
||
const Endpoint = ({ color }) => { | ||
// const { dispatch, state } = useContext(mainContext); | ||
// const { account } = state; | ||
|
||
const onFinish = (values: any) => { | ||
console.log(values, '-------aaaa'); | ||
}; | ||
|
||
return ( | ||
<div className="flex flex-col justify-center max-w-515px min-w-334px"> | ||
<div className="min-h-400"> | ||
<div className="login-title">{t('set_login_password')}</div> | ||
<div className="text-gray-900 text-sm font-bold mb-12">{t('set_login_password_desc')}</div> | ||
|
||
<Form | ||
name="basic" | ||
layout="vertical" | ||
requiredMark={false} | ||
// labelWrap={true} | ||
labelCol={{ span: 24 }} | ||
// wrapperCol={{ span: 16 }} | ||
// initialValues={{ remember: true }} | ||
onFinish={onFinish} | ||
// onFinishFailed={onFinishFailed} | ||
autoComplete="off"> | ||
<Form.Item | ||
label={<div className="font-bold theme-text-main">API {t('endpoint')}</div>} | ||
name="endpoint"> | ||
<Input | ||
defaultValue="http://localhost:5001" | ||
className="mr-2 common-input theme-bg theme-border-color" | ||
disabled | ||
/> | ||
</Form.Item> | ||
|
||
<Form.Item | ||
label={ | ||
<div className="w-full flex justify-between "> | ||
<h5 className="font-bold theme-text-main shrink-0" htmlFor="grid-password"> | ||
{t('login_password')} | ||
</h5> | ||
<span className="text-sm font-medium theme-text-base"> | ||
{t('lost_password')} | ||
</span> | ||
</div> | ||
} | ||
name="password" | ||
rules={[{ required: true, message: 'Please input your password!' }]}> | ||
<Input.Password className="mr-2 common-input theme-bg theme-border-color" /> | ||
</Form.Item> | ||
<Form.Item> | ||
<button | ||
className="mt-5 common-btn theme-common-btn login-btn" | ||
type="primary" | ||
htmlType="submit"> | ||
{t('next')} | ||
</button> | ||
</Form.Item> | ||
</Form> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Endpoint; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
import React, { useContext } from 'react'; | ||
import { mainContext } from 'reducer'; | ||
import { Dropdown, Menu } from 'antd'; | ||
import themeStyle from 'utils/themeStyle.js'; | ||
import { QuestionCircleOutlined } from '@ant-design/icons'; | ||
import { Tooltip, Form, Input, Button } from 'antd'; | ||
import { Truncate } from 'utils/text.js'; | ||
import { t } from 'utils/text.js'; | ||
import ClipboardCopy from 'components/Utils/ClipboardCopy'; | ||
|
||
const Endpoint = ({ color }) => { | ||
// const { dispatch, state } = useContext(mainContext); | ||
// const { account } = state; | ||
|
||
|
||
|
||
const onFinish = (values: any) => { | ||
console.log(values,'-------aaaa'); | ||
}; | ||
|
||
return ( | ||
<div className="flex flex-col justify-center max-w-515px"> | ||
<div className=" min-h-400"> | ||
<div className="login-title">{t('set_login_password')}</div> | ||
<div className="text-gray-900 text-sm font-bold mb-12">{t('set_login_password_desc')}</div> | ||
|
||
<Form | ||
name="basic" | ||
layout="vertical" | ||
requiredMark={false} | ||
// labelCol={{ span: 8 }} | ||
// wrapperCol={{ span: 16 }} | ||
// initialValues={{ remember: true }} | ||
onFinish={onFinish} | ||
// onFinishFailed={onFinishFailed} | ||
autoComplete="off"> | ||
<Form.Item | ||
label={<div className="font-bold theme-text-main">API {t('endpoint')}</div>} | ||
name="endpoint" | ||
> | ||
<Input | ||
defaultValue="http://localhost:5001" | ||
className="mr-2 common-input theme-bg theme-border-color" | ||
disabled | ||
/> | ||
</Form.Item> | ||
<Form.Item | ||
label={<div className="font-bold theme-text-main">{t('enter_private_key')}</div>} | ||
name="enter_private_key" | ||
rules={[{ required: true, message: 'Please input your username!' }]}> | ||
<Input.TextArea | ||
rows={4} | ||
placeholder="maxLength is 6" | ||
className="mr-2 common-input theme-bg theme-border-color" | ||
maxLength={6} | ||
/> | ||
</Form.Item> | ||
|
||
<Form.Item | ||
label={ | ||
<div> | ||
<h5 className="font-bold theme-text-main" htmlFor="grid-password"> | ||
{t('enter_password')} | ||
</h5> | ||
<span className='text-sm font-medium theme-text-sub-info'>{t('enter_password_desc')}</span> | ||
</div> | ||
} | ||
name="password" | ||
rules={[{ required: true, message: 'Please input your password!' }]}> | ||
<Input.Password className="mr-2 common-input theme-bg theme-border-color" /> | ||
</Form.Item> | ||
<Form.Item | ||
label={<div className="font-bold theme-text-main">{t('re_enter_password')}</div>} | ||
name="repassword" | ||
rules={[{ required: true, message: 'Please input your password!' }]}> | ||
<Input.Password className="mr-2 common-input theme-bg theme-border-color" /> | ||
</Form.Item> | ||
<Form.Item> | ||
<button | ||
className="mt-5 common-btn theme-common-btn login-btn" | ||
type="primary" | ||
htmlType="submit" | ||
> | ||
{t('next')} | ||
</button> | ||
</Form.Item> | ||
</Form> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Endpoint; |
Oops, something went wrong.