Skip to content

Commit

Permalink
[home] update logo icon cdn url with fault tolerance (#293)
Browse files Browse the repository at this point in the history
  • Loading branch information
VampireAchao authored and tomsun28 committed Sep 18, 2022
1 parent 277fe6c commit 770267b
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 2 deletions.
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.

0 comments on commit 770267b

Please sign in to comment.