From 1291504fdc6e6cd853dc62fd8c819db140341c12 Mon Sep 17 00:00:00 2001 From: "1808837298@qq.com" <1808837298@qq.com> Date: Fri, 24 May 2024 21:27:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=89=88=E6=9D=83=E4=BF=A1?= =?UTF-8?q?=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/components/Footer.js | 71 ++++++++++++++++++------------------ web/src/pages/About/index.js | 7 +++- web/src/pages/Home/index.js | 14 ++++++- 3 files changed, 53 insertions(+), 39 deletions(-) diff --git a/web/src/components/Footer.js b/web/src/components/Footer.js index 694004a..0e71b72 100644 --- a/web/src/components/Footer.js +++ b/web/src/components/Footer.js @@ -1,7 +1,7 @@ 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 = ( +
+ + New API {import.meta.env.VITE_REACT_APP_VERSION}{' '} + + 由{' '} + + Calcium-Ion + {' '} + 开发,基于{' '} + + One API + +
+ ); + useEffect(() => { const timer = setInterval(() => { if (remainCheckTimes <= 0) { @@ -31,41 +59,14 @@ const Footer = () => { {footer ? ( -
+ +
+
) : ( -
- - New API {import.meta.env.VITE_REACT_APP_VERSION}{' '} - - 由{' '} - - Calcium-Ion - {' '} - 开发,基于{' '} - - One API v0.5.4 - {' '} - ,本项目根据{' '} - - MIT 许可证 - {' '} - 授权 -
+ defaultFooter )}
diff --git a/web/src/pages/About/index.js b/web/src/pages/About/index.js index 35cc676..ef90ae8 100644 --- a/web/src/pages/About/index.js +++ b/web/src/pages/About/index.js @@ -39,13 +39,16 @@ const About = () => {

可在设置页面设置关于内容,支持 HTML & Markdown

- new-api项目仓库地址: + New-API项目仓库地址: https://github.com/Calcium-Ion/new-api

NewAPI © 2023 CalciumIon | 基于 One API v0.5.4 © 2023 - JustSong。本项目根据MIT许可证授权。 + JustSong。 +

+

+ 本项目根据MIT许可证授权,需在遵守Apache-2.0协议的前提下使用。

diff --git a/web/src/pages/Home/index.js b/web/src/pages/Home/index.js index 49ffc14..3802952 100644 --- a/web/src/pages/Home/index.js +++ b/web/src/pages/Home/index.js @@ -86,11 +86,21 @@ const Home = () => {

源码: - https://github.com/songquanpeng/one-api + https://github.com/Calcium-Ion/new-api + +

+

+ 协议: + + Apache-2.0 License

启动时间:{getStartTimeString()}