Rename to One API

This commit is contained in:
JustSong
2023-04-22 21:14:09 +08:00
parent ab1f8a2bf4
commit 539eac217f
39 changed files with 108 additions and 108 deletions

View File

@@ -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">

View File

@@ -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)}

View File

@@ -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}

View File

@@ -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) {

View File

@@ -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}

View File

@@ -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}

View File

@@ -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}

View File

@@ -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}

View File

@@ -31,8 +31,8 @@ const About = () => {
<Header as='h3'>关于</Header>
<p>可在设置页面设置关于内容支持 HTML & Markdown</p>
项目仓库地址
<a href="https://github.com/songquanpeng/gin-template">
https://github.com/songquanpeng/gin-template
<a href="https://github.com/songquanpeng/one-api">
https://github.com/songquanpeng/one-api
</a>
</> : <>
<div dangerouslySetInnerHTML={{ __html: about}}></div>