Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

更换FastRequest、TLog的logo,配置远端图床logo地址,并做容错处理 #293

Merged
merged 1 commit into from Sep 15, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
29 changes: 28 additions & 1 deletion home/src/constants.js
Expand Up @@ -85,108 +85,135 @@ export const features = [
export const dromaraFriends = [
{
img: 'maxkey_logo.png',
remoteImg: 'https://plus.hutool.cn/images/dromara/maxkey.png',
alt: 'MaxKey',
url: 'https://maxkey.top/',
},
{
img: 'jpom_logo.png',
remoteImg: 'https://plus.hutool.cn/images/dromara/jpom.png',
alt: 'jpom',
url: 'https://jpom.io/',
},
{
img: 'fast_request_logo.png',
img: 'fast_request_logo.gif',
remoteImg: 'https://plus.hutool.cn/images/dromara/fastRequest.gif',
alt: 'fast-request',
url: 'https://plugins.sheng90.wang/fast-request/',
},
{
img: 'tlog_logo.png',
remoteImg: 'https://plus.hutool.cn/images/dromara/tlog2.png',
alt: 'TLog',
url: 'https://yomahub.com/tlog/',
},
{
img: 'hutool_logo.jpg',
remoteImg: 'https://plus.hutool.cn/images/dromara/hutool.jpg',
alt: 'Hutool',
url: 'https://hutool.cn/',
},
{
img: 'satoken_logo.png',
remoteImg: 'https://plus.hutool.cn/images/dromara/sa-token.png',
alt: 'Sa-Token',
url: 'http://sa-token.dev33.cn/',
},
{
img: 'koalas_rpc_logo.png',
remoteImg: 'https://plus.hutool.cn/images/dromara/koalas-rpc2.png',
alt: 'koalas_rpc',
url: 'https://gitee.com/dromara/koalas-rpc',
},
{
img: 'liteflow_logo.png',
remoteImg: 'https://plus.hutool.cn/images/dromara/liteflow.png',
alt: 'LiteFlow',
url: 'https://yomahub.com/liteflow/',
},
{
img: 'hmily_logo.png',
remoteImg: 'https://plus.hutool.cn/images/dromara/hmily.png',
alt: 'hmily',
url: 'https://dromara.org/',
},
{
img: 'forest_logo.png',
remoteImg: 'https://plus.hutool.cn/images/dromara/forest-logo.png',
alt: 'Forest',
url: 'https://forest.dtflyx.com/',
},
{
img: 'cubic_logo.png',
remoteImg: 'https://plus.hutool.cn/images/dromara/cubic.png',
alt: 'cubic',
url: 'https://cubic.jiagoujishu.com/',
},
{
img: 'raincat_logo.png',
remoteImg: 'https://plus.hutool.cn/images/dromara/raincat.png',
alt: 'Raincat',
url: 'https://dromara.org/',
},
{
img: 'sureness_logo.png',
remoteImg: 'https://plus.hutool.cn/images/dromara/sureness.png',
alt: 'Sureness',
url: 'https://su.usthe.com/',
},
{
img: 'easy_es_logo.png',
remoteImg: 'https://plus.hutool.cn/images/dromara/easy-es2.png',
alt: 'easy-es',
url: 'https://www.easy-es.cn/',
},
{
img: 'dynamic_tp_logo.png',
remoteImg: 'https://plus.hutool.cn/images/dromara/dynamic-tp.png',
alt: 'dynamic-tp',
url: 'https://dynamictp.cn/',
},
{
img: 'northstar_logo.png',
remoteImg: 'https://plus.hutool.cn/images/dromara/northstar_logo.png',
alt: 'northstar',
url: 'https://gitee.com/dromara/northstar',
},
{
img: 'mendmix_logo.png',
remoteImg: 'https://plus.hutool.cn/images/dromara/mendmix.png',
alt: 'mendmix',
url: 'https://www.jeesuite.com/',
},
{
img: 'gobrs_logo.png',
remoteImg: 'https://plus.hutool.cn/images/dromara/gobrs-async.png',
alt: 'Gobrs-Async',
url: 'https://async.sizegang.cn/',
},
{
img: 'easypdf_logo.png',
remoteImg: 'https://plus.hutool.cn/images/dromara/x-easypdf.png',
alt: 'easypdf',
url: 'https://dromara.gitee.io/x-easypdf/',
},
{
img: 'dante-cloud_logo.png',
remoteImg: 'https://plus.hutool.cn/images/dromara/dante-cloud2.png',
alt: 'dante-cloud',
url: 'https://www.herodotus.cn/',
},
{
img: 'image-combiner_logo.png',
remoteImg: 'https://plus.hutool.cn/images/dromara/image-combiner.png',
alt: 'image-combiner',
url: 'https://gitee.com/dromara/image-combiner',
},
{
img: 'go-view_logo.png',
remoteImg: 'https://plus.hutool.cn/images/dromara/go-view.png',
alt: 'go-view',
url: 'https://gitee.com/dromara/go-view',
}
]

Expand Down
2 changes: 1 addition & 1 deletion home/src/pages/components/LogoCarousel.js
Expand Up @@ -34,7 +34,7 @@ export default class LogoCarousel extends React.Component {
<Slider {...settings}>
{this.props.logos.map((value, index) => (
<a key={index} href={value.url} target="_blank" rel="noopener noreferrer">
<img style={{ maxHeight: '80px', maxWidth: '100px' }} src={iconCommonUrl + value.img} alt={value.alt} />
<img style={{ maxHeight: '80px', maxWidth: '100px' }} src={value.remoteImg} onError={(e) => e.target.src = iconCommonUrl + value.img} alt={value.alt} />
</a>
))}
</Slider>
Expand Down
Binary file added home/static/img/icons/fast_request_logo.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed home/static/img/icons/fast_request_logo.png
Binary file not shown.
Binary file added home/static/img/icons/go-view_logo.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified home/static/img/icons/tlog_logo.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.