Fix Files(IPFS) module status link and download link (#10181)

This commit is contained in:
Eericxu 2024-11-25 22:45:41 +08:00 committed by GitHub
parent 9323dbfdf9
commit b52f72da09
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -43,7 +43,7 @@ const shortStr = (name: string, count = 6): string => {
};
function createUrl (f: SaveFile) {
const endpoint = f.UpEndpoint || 'https://ipfs.io';
const endpoint = 'https://cf-ipfs.com';
return `${endpoint}/ipfs/${f.Hash}?filename=${f.Name}`;
}
@ -320,7 +320,7 @@ function CrustFiles ({ className }: Props): React.ReactElement<Props> {
colSpan={1}
>
<a
href={'https://apps.crust.network/?rpc=wss%3A%2F%2Frpc.crust.network#/storage_files'}
href={'https://apps.crust.network/?rpc=wss%3A%2F%2Frpc.crust.network#/storage_files/status/' + f.Hash}
rel='noreferrer'
target='_blank'
>{t('View status in Crust')}</a>