Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
new-api
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
9a857a82
authored
May 24, 2024
by
1808837298@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改版权信息
parent
849766ef
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
53 additions
and
39 deletions
+53
-39
web/src/components/Footer.js
+36
-35
web/src/pages/About/index.js
+5
-2
web/src/pages/Home/index.js
+12
-2
No files found.
web/src/components/Footer.js
View file @
9a857a82
import
React
,
{
useEffect
,
useState
}
from
'react'
;
import
{
getFooterHTML
,
getSystemName
}
from
'../helpers'
;
import
{
Layout
}
from
'@douyinfe/semi-ui'
;
import
{
Layout
,
Tooltip
}
from
'@douyinfe/semi-ui'
;
const
Footer
=
()
=>
{
const
systemName
=
getSystemName
();
...
...
@@ -15,6 +15,34 @@ const Footer = () => {
}
};
const
defaultFooter
=
(
<
div
className
=
'custom-footer'
>
<
a
href
=
'https://github.com/Calcium-Ion/new-api'
target
=
'_blank'
rel
=
'noreferrer'
>
New
API
{
import
.
meta
.
env
.
VITE_REACT_APP_VERSION
}{
' '
}
<
/a
>
由
{
' '
}
<
a
href
=
'https://github.com/Calcium-Ion'
target
=
'_blank'
rel
=
'noreferrer'
>
Calcium
-
Ion
<
/a>{' '
}
开发,基于
{
' '
}
<
a
href
=
'https://github.com/songquanpeng/one-api'
target
=
'_blank'
rel
=
'noreferrer'
>
One
API
<
/a
>
<
/div
>
);
useEffect
(()
=>
{
const
timer
=
setInterval
(()
=>
{
if
(
remainCheckTimes
<=
0
)
{
...
...
@@ -31,41 +59,14 @@ const Footer = () => {
<
Layout
>
<
Layout
.
Content
style
=
{{
textAlign
:
'center'
}}
>
{
footer
?
(
<
div
className
=
'custom-footer'
dangerouslySetInnerHTML
=
{{
__html
:
footer
}}
><
/div
>
<
Tooltip
content
=
{
defaultFooter
}
>
<
div
className
=
'custom-footer'
dangerouslySetInnerHTML
=
{{
__html
:
footer
}}
><
/div
>
<
/Tooltip
>
)
:
(
<
div
className
=
'custom-footer'
>
<
a
href
=
'https://github.com/Calcium-Ion/new-api'
target
=
'_blank'
rel
=
'noreferrer'
>
New
API
{
import
.
meta
.
env
.
VITE_REACT_APP_VERSION
}{
' '
}
<
/a
>
由
{
' '
}
<
a
href
=
'https://github.com/Calcium-Ion'
target
=
'_blank'
rel
=
'noreferrer'
>
Calcium
-
Ion
<
/a>{' '
}
开发,基于
{
' '
}
<
a
href
=
'https://github.com/songquanpeng/one-api'
target
=
'_blank'
rel
=
'noreferrer'
>
One
API
v0
.
5.4
<
/a>{' '
}
,本项目根据
{
' '
}
<
a
href
=
'https://opensource.org/licenses/mit-license.php'
>
MIT
许可证
<
/a>{' '
}
授权
<
/div
>
defaultFooter
)}
<
/Layout.Content
>
<
/Layout
>
...
...
web/src/pages/About/index.js
View file @
9a857a82
...
...
@@ -39,13 +39,16 @@ const About = () => {
<
/Layout.Header
>
<
Layout
.
Content
>
<
p
>
可在设置页面设置关于内容,支持
HTML
&
Markdown
<
/p
>
new
-
api
项目仓库地址:
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
许可证授权。
JustSong
。
<
/p
>
<
p
>
本项目根据
MIT
许可证授权,需在遵守
Apache
-
2.0
协议的前提下使用。
<
/p
>
<
/Layout.Content
>
<
/Layout
>
...
...
web/src/pages/Home/index.js
View file @
9a857a82
...
...
@@ -86,11 +86,21 @@ const Home = () => {
<
p
>
源码:
<
a
href
=
'https://github.com/
songquanpeng/one
-api'
href
=
'https://github.com/
Calcium-Ion/new
-api'
target
=
'_blank'
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
>
<
/p
>
<
p
>
启动时间:
{
getStartTimeString
()}
<
/p
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment