feat: 修改版权信息
This commit is contained in:
parent
d943208197
commit
23d62b5ac7
@ -1,7 +1,7 @@
|
|||||||
import React, { useEffect, useState } from 'react';
|
import React, { useEffect, useState } from 'react';
|
||||||
|
|
||||||
|
import { Container, Segment } from 'semantic-ui-react';
|
||||||
import { getFooterHTML, getSystemName } from '../helpers';
|
import { getFooterHTML, getSystemName } from '../helpers';
|
||||||
import { Layout } from '@douyinfe/semi-ui';
|
|
||||||
|
|
||||||
const Footer = () => {
|
const Footer = () => {
|
||||||
const systemName = getSystemName();
|
const systemName = getSystemName();
|
||||||
@ -28,38 +28,33 @@ const Footer = () => {
|
|||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Layout>
|
<Segment vertical>
|
||||||
<Layout.Content style={{ textAlign: 'center' }}>
|
<Container textAlign='center'>
|
||||||
{footer ? (
|
{footer ? (
|
||||||
<div
|
<div
|
||||||
className="custom-footer"
|
className='custom-footer'
|
||||||
dangerouslySetInnerHTML={{ __html: footer }}
|
dangerouslySetInnerHTML={{ __html: footer }}
|
||||||
></div>
|
></div>
|
||||||
) : (
|
) : (
|
||||||
<div className="custom-footer">
|
<div className='custom-footer'>
|
||||||
<a
|
<a
|
||||||
href="https://github.com/Calcium-Ion/new-api"
|
href='https://github.com/songquanpeng/one-api'
|
||||||
target="_blank" rel="noreferrer"
|
target='_blank'
|
||||||
>
|
>
|
||||||
New API {process.env.REACT_APP_VERSION}{' '}
|
{systemName} {process.env.REACT_APP_VERSION}{' '}
|
||||||
</a>
|
</a>
|
||||||
由{' '}
|
由{' '}
|
||||||
<a href="https://github.com/Calcium-Ion" target="_blank" rel="noreferrer">
|
<a href='https://github.com/songquanpeng' target='_blank'>
|
||||||
Calcium-Ion
|
JustSong
|
||||||
</a>{' '}
|
</a>{' '}
|
||||||
开发,基于{' '}
|
构建,源代码遵循{' '}
|
||||||
<a href="https://github.com/songquanpeng/one-api" target="_blank" rel="noreferrer">
|
<a href='https://opensource.org/licenses/mit-license.php'>
|
||||||
One API v0.5.4
|
MIT 协议
|
||||||
</a>{' '}
|
</a>
|
||||||
,本项目根据{' '}
|
|
||||||
<a href="https://opensource.org/licenses/mit-license.php">
|
|
||||||
MIT 许可证
|
|
||||||
</a>{' '}
|
|
||||||
授权
|
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
</Layout.Content>
|
</Container>
|
||||||
</Layout>
|
</Segment>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import React, { useEffect, useState } from 'react';
|
import React, { useEffect, useState } from 'react';
|
||||||
|
import { Header, Segment } from 'semantic-ui-react';
|
||||||
import { API, showError } from '../../helpers';
|
import { API, showError } from '../../helpers';
|
||||||
import { marked } from 'marked';
|
import { marked } from 'marked';
|
||||||
import {Layout} from "@douyinfe/semi-ui";
|
|
||||||
|
|
||||||
const About = () => {
|
const About = () => {
|
||||||
const [about, setAbout] = useState('');
|
const [about, setAbout] = useState('');
|
||||||
@ -33,23 +33,14 @@ const About = () => {
|
|||||||
<>
|
<>
|
||||||
{
|
{
|
||||||
aboutLoaded && about === '' ? <>
|
aboutLoaded && about === '' ? <>
|
||||||
<Layout>
|
<Segment>
|
||||||
<Layout.Header>
|
<Header as='h3'>关于</Header>
|
||||||
<h3>关于</h3>
|
<p>可在设置页面设置关于内容,支持 HTML & Markdown</p>
|
||||||
</Layout.Header>
|
项目仓库地址:
|
||||||
<Layout.Content>
|
<a href='https://github.com/songquanpeng/one-api'>
|
||||||
<p>
|
https://github.com/songquanpeng/one-api
|
||||||
可在设置页面设置关于内容,支持 HTML & Markdown
|
</a>
|
||||||
</p>
|
</Segment>
|
||||||
new-api项目仓库地址:
|
|
||||||
<a href='https://github.com/Calcium-Ion/new-api'>
|
|
||||||
https://github.com/Calcium-Ion/new-api
|
|
||||||
</a>
|
|
||||||
<p>
|
|
||||||
NewAPI © 2023 CalciumIon | 基于 One API v0.5.4 © 2023 JustSong。本项目根据MIT许可证授权。
|
|
||||||
</p>
|
|
||||||
</Layout.Content>
|
|
||||||
</Layout>
|
|
||||||
</> : <>
|
</> : <>
|
||||||
{
|
{
|
||||||
about.startsWith('https://') ? <iframe
|
about.startsWith('https://') ? <iframe
|
||||||
|
Loading…
Reference in New Issue
Block a user