mirror of
https://github.com/songquanpeng/one-api.git
synced 2025-11-08 17:53:41 +08:00
Rename to One API
This commit is contained in:
@@ -16,10 +16,10 @@ const Footer = () => {
|
||||
{Footer === '' ? (
|
||||
<div className="custom-footer">
|
||||
<a
|
||||
href="https://github.com/songquanpeng/gin-template"
|
||||
href="https://github.com/songquanpeng/one-api"
|
||||
target="_blank"
|
||||
>
|
||||
项目模板 {process.env.REACT_APP_VERSION}{' '}
|
||||
One API {process.env.REACT_APP_VERSION}{' '}
|
||||
</a>
|
||||
由{' '}
|
||||
<a href="https://github.com/songquanpeng" target="_blank">
|
||||
|
||||
@@ -105,7 +105,7 @@ const Header = () => {
|
||||
style={{ marginRight: '0.75em' }}
|
||||
/>
|
||||
<div style={{ fontSize: '20px' }}>
|
||||
<b>项目模板</b>
|
||||
<b>One API</b>
|
||||
</div>
|
||||
</Menu.Item>
|
||||
<Menu.Menu position='right'>
|
||||
@@ -159,7 +159,7 @@ const Header = () => {
|
||||
<Menu.Item as={Link} to='/' className={'hide-on-mobile'}>
|
||||
<img src='/logo.png' alt='logo' style={{ marginRight: '0.75em' }} />
|
||||
<div style={{ fontSize: '20px' }}>
|
||||
<b>项目模板</b>
|
||||
<b>One API</b>
|
||||
</div>
|
||||
</Menu.Item>
|
||||
{renderButtons(false)}
|
||||
|
||||
@@ -90,7 +90,7 @@ const LoginForm = () => {
|
||||
return (
|
||||
<Grid textAlign="center" style={{ marginTop: '48px' }}>
|
||||
<Grid.Column style={{ maxWidth: 450 }}>
|
||||
<Header as="h2" color="teal" textAlign="center">
|
||||
<Header as="h2" color="" textAlign="center">
|
||||
<Image src="/logo.png" /> 用户登录
|
||||
</Header>
|
||||
<Form size="large">
|
||||
@@ -114,7 +114,7 @@ const LoginForm = () => {
|
||||
value={password}
|
||||
onChange={handleChange}
|
||||
/>
|
||||
<Button color="teal" fluid size="large" onClick={handleSubmit}>
|
||||
<Button color="" fluid size="large" onClick={handleSubmit}>
|
||||
登录
|
||||
</Button>
|
||||
</Segment>
|
||||
@@ -179,7 +179,7 @@ const LoginForm = () => {
|
||||
onChange={handleChange}
|
||||
/>
|
||||
<Button
|
||||
color="teal"
|
||||
color=""
|
||||
fluid
|
||||
size="large"
|
||||
onClick={onSubmitWeChatVerificationCode}
|
||||
|
||||
@@ -71,12 +71,12 @@ const OtherSetting = () => {
|
||||
|
||||
const openGitHubRelease = () => {
|
||||
window.location =
|
||||
'https://github.com/songquanpeng/gin-template/releases/latest';
|
||||
'https://github.com/songquanpeng/one-api/releases/latest';
|
||||
};
|
||||
|
||||
const checkUpdate = async () => {
|
||||
const res = await API.get(
|
||||
'https://api.github.com/repos/songquanpeng/gin-template/releases/latest'
|
||||
'https://api.github.com/repos/songquanpeng/one-api/releases/latest'
|
||||
);
|
||||
const { tag_name, body } = res.data;
|
||||
if (tag_name === process.env.REACT_APP_VERSION) {
|
||||
|
||||
@@ -43,7 +43,7 @@ const PasswordResetConfirm = () => {
|
||||
return (
|
||||
<Grid textAlign='center' style={{ marginTop: '48px' }}>
|
||||
<Grid.Column style={{ maxWidth: 450 }}>
|
||||
<Header as='h2' color='teal' textAlign='center'>
|
||||
<Header as='h2' color='' textAlign='center'>
|
||||
<Image src='/logo.png' /> 密码重置确认
|
||||
</Header>
|
||||
<Form size='large'>
|
||||
@@ -58,7 +58,7 @@ const PasswordResetConfirm = () => {
|
||||
readOnly
|
||||
/>
|
||||
<Button
|
||||
color='teal'
|
||||
color=''
|
||||
fluid
|
||||
size='large'
|
||||
onClick={handleSubmit}
|
||||
|
||||
@@ -53,7 +53,7 @@ const PasswordResetForm = () => {
|
||||
return (
|
||||
<Grid textAlign='center' style={{ marginTop: '48px' }}>
|
||||
<Grid.Column style={{ maxWidth: 450 }}>
|
||||
<Header as='h2' color='teal' textAlign='center'>
|
||||
<Header as='h2' color='' textAlign='center'>
|
||||
<Image src='/logo.png' /> 密码重置
|
||||
</Header>
|
||||
<Form size='large'>
|
||||
@@ -78,7 +78,7 @@ const PasswordResetForm = () => {
|
||||
<></>
|
||||
)}
|
||||
<Button
|
||||
color='teal'
|
||||
color=''
|
||||
fluid
|
||||
size='large'
|
||||
onClick={handleSubmit}
|
||||
|
||||
@@ -138,7 +138,7 @@ const PersonalSetting = () => {
|
||||
value={inputs.wechat_verification_code}
|
||||
onChange={handleInputChange}
|
||||
/>
|
||||
<Button color='teal' fluid size='large' onClick={bindWeChat}>
|
||||
<Button color='' fluid size='large' onClick={bindWeChat}>
|
||||
绑定
|
||||
</Button>
|
||||
</Form>
|
||||
@@ -194,7 +194,7 @@ const PersonalSetting = () => {
|
||||
<></>
|
||||
)}
|
||||
<Button
|
||||
color='teal'
|
||||
color=''
|
||||
fluid
|
||||
size='large'
|
||||
onClick={bindEmail}
|
||||
|
||||
@@ -99,7 +99,7 @@ const RegisterForm = () => {
|
||||
return (
|
||||
<Grid textAlign='center' style={{ marginTop: '48px' }}>
|
||||
<Grid.Column style={{ maxWidth: 450 }}>
|
||||
<Header as='h2' color='teal' textAlign='center'>
|
||||
<Header as='h2' color='' textAlign='center'>
|
||||
<Image src='/logo.png' /> 新用户注册
|
||||
</Header>
|
||||
<Form size='large'>
|
||||
@@ -169,7 +169,7 @@ const RegisterForm = () => {
|
||||
<></>
|
||||
)}
|
||||
<Button
|
||||
color='teal'
|
||||
color=''
|
||||
fluid
|
||||
size='large'
|
||||
onClick={handleSubmit}
|
||||
|
||||
Reference in New Issue
Block a user