mirror of
https://github.com/linux-do/new-api.git
synced 2025-09-22 18:16:37 +08:00
修改版权信息
This commit is contained in:
parent
54f17d6002
commit
1291504fdc
@ -1,7 +1,7 @@
|
|||||||
import React, { useEffect, useState } from 'react';
|
import React, { useEffect, useState } from 'react';
|
||||||
|
|
||||||
import { getFooterHTML, getSystemName } from '../helpers';
|
import { getFooterHTML, getSystemName } from '../helpers';
|
||||||
import { Layout } from '@douyinfe/semi-ui';
|
import { Layout, Tooltip } from '@douyinfe/semi-ui';
|
||||||
|
|
||||||
const Footer = () => {
|
const Footer = () => {
|
||||||
const systemName = getSystemName();
|
const systemName = getSystemName();
|
||||||
@ -15,27 +15,7 @@ const Footer = () => {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
useEffect(() => {
|
const defaultFooter = (
|
||||||
const timer = setInterval(() => {
|
|
||||||
if (remainCheckTimes <= 0) {
|
|
||||||
clearInterval(timer);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
remainCheckTimes--;
|
|
||||||
loadFooter();
|
|
||||||
}, 200);
|
|
||||||
return () => clearTimeout(timer);
|
|
||||||
}, []);
|
|
||||||
|
|
||||||
return (
|
|
||||||
<Layout>
|
|
||||||
<Layout.Content style={{ textAlign: 'center' }}>
|
|
||||||
{footer ? (
|
|
||||||
<div
|
|
||||||
className='custom-footer'
|
|
||||||
dangerouslySetInnerHTML={{ __html: footer }}
|
|
||||||
></div>
|
|
||||||
) : (
|
|
||||||
<div className='custom-footer'>
|
<div className='custom-footer'>
|
||||||
<a
|
<a
|
||||||
href='https://github.com/Calcium-Ion/new-api'
|
href='https://github.com/Calcium-Ion/new-api'
|
||||||
@ -58,14 +38,35 @@ const Footer = () => {
|
|||||||
target='_blank'
|
target='_blank'
|
||||||
rel='noreferrer'
|
rel='noreferrer'
|
||||||
>
|
>
|
||||||
One API v0.5.4
|
One API
|
||||||
</a>{' '}
|
</a>
|
||||||
,本项目根据{' '}
|
|
||||||
<a href='https://opensource.org/licenses/mit-license.php'>
|
|
||||||
MIT 许可证
|
|
||||||
</a>{' '}
|
|
||||||
授权
|
|
||||||
</div>
|
</div>
|
||||||
|
);
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
const timer = setInterval(() => {
|
||||||
|
if (remainCheckTimes <= 0) {
|
||||||
|
clearInterval(timer);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
remainCheckTimes--;
|
||||||
|
loadFooter();
|
||||||
|
}, 200);
|
||||||
|
return () => clearTimeout(timer);
|
||||||
|
}, []);
|
||||||
|
|
||||||
|
return (
|
||||||
|
<Layout>
|
||||||
|
<Layout.Content style={{ textAlign: 'center' }}>
|
||||||
|
{footer ? (
|
||||||
|
<Tooltip content={defaultFooter}>
|
||||||
|
<div
|
||||||
|
className='custom-footer'
|
||||||
|
dangerouslySetInnerHTML={{ __html: footer }}
|
||||||
|
></div>
|
||||||
|
</Tooltip>
|
||||||
|
) : (
|
||||||
|
defaultFooter
|
||||||
)}
|
)}
|
||||||
</Layout.Content>
|
</Layout.Content>
|
||||||
</Layout>
|
</Layout>
|
||||||
|
@ -39,13 +39,16 @@ const About = () => {
|
|||||||
</Layout.Header>
|
</Layout.Header>
|
||||||
<Layout.Content>
|
<Layout.Content>
|
||||||
<p>可在设置页面设置关于内容,支持 HTML & Markdown</p>
|
<p>可在设置页面设置关于内容,支持 HTML & Markdown</p>
|
||||||
new-api项目仓库地址:
|
New-API项目仓库地址:
|
||||||
<a href='https://github.com/Calcium-Ion/new-api'>
|
<a href='https://github.com/Calcium-Ion/new-api'>
|
||||||
https://github.com/Calcium-Ion/new-api
|
https://github.com/Calcium-Ion/new-api
|
||||||
</a>
|
</a>
|
||||||
<p>
|
<p>
|
||||||
NewAPI © 2023 CalciumIon | 基于 One API v0.5.4 © 2023
|
NewAPI © 2023 CalciumIon | 基于 One API v0.5.4 © 2023
|
||||||
JustSong。本项目根据MIT许可证授权。
|
JustSong。
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
本项目根据MIT许可证授权,需在遵守Apache-2.0协议的前提下使用。
|
||||||
</p>
|
</p>
|
||||||
</Layout.Content>
|
</Layout.Content>
|
||||||
</Layout>
|
</Layout>
|
||||||
|
@ -86,11 +86,21 @@ const Home = () => {
|
|||||||
<p>
|
<p>
|
||||||
源码:
|
源码:
|
||||||
<a
|
<a
|
||||||
href='https://github.com/songquanpeng/one-api'
|
href='https://github.com/Calcium-Ion/new-api'
|
||||||
target='_blank'
|
target='_blank'
|
||||||
rel='noreferrer'
|
rel='noreferrer'
|
||||||
>
|
>
|
||||||
https://github.com/songquanpeng/one-api
|
https://github.com/Calcium-Ion/new-api
|
||||||
|
</a>
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
协议:
|
||||||
|
<a
|
||||||
|
href='https://www.apache.org/licenses/LICENSE-2.0'
|
||||||
|
target='_blank'
|
||||||
|
rel='noreferrer'
|
||||||
|
>
|
||||||
|
Apache-2.0 License
|
||||||
</a>
|
</a>
|
||||||
</p>
|
</p>
|
||||||
<p>启动时间:{getStartTimeString()}</p>
|
<p>启动时间:{getStartTimeString()}</p>
|
||||||
|
Loading…
Reference in New Issue
Block a user