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
f1868a35
authored
Dec 05, 2023
by
CaIon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改版权信息
parent
f9495e91
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
42 additions
and
21 deletions
+42
-21
LICENSE
+4
-0
README.md
+2
-1
web/src/components/Footer.js
+15
-9
web/src/index.js
+3
-3
web/src/pages/About/index.js
+18
-8
No files found.
LICENSE
View file @
f1868a35
MIT License
New API
Copyright (c) 2023 CalciumIon
Based on One API
Copyright (c) 2023 JustSong
Permission is hereby granted, free of charge, to any person obtaining a copy
...
...
README.md
View file @
f1868a35
...
...
@@ -11,7 +11,8 @@
> 根据[《生成式人工智能服务管理暂行办法》](http://www.cac.gov.cn/2023-07/13/c_1690898327029107.htm)的要求,请勿对中国地区公众提供一切未经备案的生成式人工智能服务。
> **Note**
> 最新版Docker镜像 calciumion/neko-api:main
> 最新版Docker镜像 calciumion/neko-api:latest
> 更新指令 docker run --rm -v /var/run/docker.sock:/var/run/docker.sock containrrr/watchtower -cR
## 此分叉版本的主要变更
1.
全新的UI界面(部分界面还待更新)
...
...
web/src/components/Footer.js
View file @
f1868a35
...
...
@@ -2,6 +2,7 @@ import React, { useEffect, useState } from 'react';
import
{
Container
,
Segment
}
from
'semantic-ui-react'
;
import
{
getFooterHTML
,
getSystemName
}
from
'../helpers'
;
import
{
Layout
}
from
"@douyinfe/semi-ui"
;
const
Footer
=
()
=>
{
const
systemName
=
getSystemName
();
...
...
@@ -28,8 +29,8 @@ const Footer = () => {
},
[]);
return
(
<
Segment
vertical
>
<
Container
textAlign
=
'center'
>
<
Layout
>
<
Layout
.
Content
style
=
{{
textAlign
:
'center'
}}
>
{
footer
?
(
<
div
className
=
'custom-footer'
...
...
@@ -38,23 +39,28 @@ const Footer = () => {
)
:
(
<
div
className
=
'custom-footer'
>
<
a
href
=
'https://github.com/Calcium-Ion/
one
-api'
href
=
'https://github.com/Calcium-Ion/
new
-api'
target
=
'_blank'
>
{
systemName
}
{
process
.
env
.
REACT_APP_VERSION
}{
' '
}
New
API
{
process
.
env
.
REACT_APP_VERSION
}{
' '
}
<
/a
>
由
{
' '
}
<
a
href
=
'https://github.com/Calcium-Ion'
target
=
'_blank'
>
Calcium
-
Ion
<
/a>{' '
}
构建,源代码遵循
{
' '
}
开发,基于
{
' '
}
<
a
href
=
'https://github.com/songquanpeng/one-api'
target
=
'_blank'
>
One
API
v0
.
5.4
<
/a>{' '
}
,本项目根据
{
' '
}
<
a
href
=
'https://opensource.org/licenses/mit-license.php'
>
MIT
协议
<
/a
>
MIT
许可证
<
/a>{' '
}
授权
<
/div
>
)}
<
/
Container
>
<
/
Segmen
t
>
<
/
Layout.Content
>
<
/
Layou
t
>
);
};
...
...
web/src/index.js
View file @
f1868a35
...
...
@@ -36,9 +36,9 @@ root.render(
>
<
App
/>
<
/Content
>
{
/*<Layout.Footer>*/
}
{
/* <Footer></Footer>*/
}
{
/*</Layout.Footer>*/
}
<
Layout
.
Footer
>
<
Footer
><
/Footer
>
<
/Layout.Footer
>
<
/Layout
>
<
ToastContainer
/>
<
/Layout
>
...
...
web/src/pages/About/index.js
View file @
f1868a35
...
...
@@ -2,6 +2,7 @@ import React, { useEffect, useState } from 'react';
import
{
Header
,
Segment
}
from
'semantic-ui-react'
;
import
{
API
,
showError
}
from
'../../helpers'
;
import
{
marked
}
from
'marked'
;
import
{
Layout
}
from
"@douyinfe/semi-ui"
;
const
About
=
()
=>
{
const
[
about
,
setAbout
]
=
useState
(
''
);
...
...
@@ -33,14 +34,23 @@ const About = () => {
<>
{
aboutLoaded
&&
about
===
''
?
<>
<
Segment
>
<
Header
as
=
'h3'
>
关于
<
/Header
>
<
p
>
可在设置页面设置关于内容,支持
HTML
&
Markdown
<
/p
>
魔改版项目仓库地址:
<
a
href
=
'https://github.com/Calcium-Ion/one-api'
>
https
:
//github.com/Calcium-Ion/one-api
<
/a
>
<
/Segment
>
<
Layout
>
<
Layout
.
Header
>
<
h3
>
关于
<
/h3
>
<
/Layout.Header
>
<
Layout
.
Content
>
<
p
>
可在设置页面设置关于内容,支持
HTML
&
Markdown
<
/p
>
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
...
...
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