💥 change readme

This commit is contained in:
MartialBE
2023-12-20 22:30:42 +08:00
parent ffa4e491ea
commit a4138aec1a
8 changed files with 287 additions and 217 deletions

View File

@@ -15,14 +15,18 @@ const Footer = () => {
<div className="custom-footer" dangerouslySetInnerHTML={{ __html: siteInfo.footer_html }}></div>
) : (
<>
<Link href="https://github.com/songquanpeng/one-api" target="_blank">
<Link href="https://github.com/MartialBE/one-api" target="_blank">
{siteInfo.system_name} {process.env.REACT_APP_VERSION}{' '}
</Link>
{' '}
<Link href="https://github.com/songquanpeng" target="_blank">
JustSong
</Link>{' '}
构建源代码遵循
构建
<Link href="https://github.com/MartialBE" target="_blank">
MartialBE
</Link>
修改源代码遵循
<Link href="https://opensource.org/licenses/mit-license.php"> MIT 协议</Link>
</>
)}

View File

@@ -41,7 +41,7 @@ const About = () => {
<Typography variant="body2">
可在设置页面设置关于内容支持 HTML & Markdown <br />
项目仓库地址
<a href="https://github.com/songquanpeng/one-api">https://github.com/songquanpeng/one-api</a>
<a href="https://github.com/MartialBE/one-api">https://github.com/MartialBE/one-api</a>
</Typography>
</MainCard>
</Container>

View File

@@ -26,7 +26,7 @@ const BaseIndex = () => (
<Button
variant="contained"
startIcon={<GitHub />}
href="https://github.com/songquanpeng/one-api"
href="https://github.com/MartialBE/one-api"
target="_blank"
sx={{ backgroundColor: '#24292e', color: '#fff', width: 'fit-content', boxShadow: '0 3px 5px 2px rgba(255, 105, 135, .3)' }}
>

View File

@@ -101,11 +101,11 @@ const OtherSetting = () => {
};
const openGitHubRelease = () => {
window.location = 'https://github.com/songquanpeng/one-api/releases/latest';
window.location = 'https://github.com/MartialBE/one-api/releases/latest';
};
const checkUpdate = async () => {
const res = await API.get('https://api.github.com/repos/songquanpeng/one-api/releases/latest');
const res = await API.get('https://api.github.com/repos/MartialBE/one-api/releases/latest');
const { tag_name, body } = res.data;
if (tag_name === process.env.REACT_APP_VERSION) {
showSuccess(`已是最新版本:${tag_name}`);