mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-02-27 08:07:22 +00:00
* chore: update constants * feat: add releases data utils * chore: add fast-xml-parser * chore: update types * feat: fetch & parse all releases data * chore: update utils * wip: use real data on DataTable * chore: update yarn.lock * fix: getReleaseCommitHash * feat: filter data per downloads tab * chore: update DownloadsTable * chore: update DownloadsTable Props * fix: getReleaseArch.ts * feat: add fetchXMLData util * feat: add fetchLatestReleaseCommit util * feat: add getSortedReleases util * chore: comment wip primary release feature * fix: fetchXMLData * chore: add netlify.toml * fix: total number of releases count * fix: center showing latest releases text and use smaller font * chore: prettier * chore: update textStyles * fix: merge conflicts
25 lines
752 B
TypeScript
25 lines
752 B
TypeScript
import {
|
|
ALL_ANDROID_GETH_RELEASES_URL,
|
|
ALL_IOS_GETH_RELEASES_URL,
|
|
ALL_LINUX_ALLTOOLS_GETH_RELEASES_URL,
|
|
ALL_LINUX_GETH_RELEASES_URL,
|
|
ALL_MACOS_ALLTOOLS_GETH_RELEASES_URL,
|
|
ALL_MACOS_GETH_RELEASES_URL,
|
|
ALL_WINDOWS_ALLTOOLS_GETH_RELEASES_URL,
|
|
ALL_WINDOWS_GETH_RELEASES_URL
|
|
} from '../constants';
|
|
|
|
export const fetchXMLData = () => {
|
|
const urls = [
|
|
ALL_LINUX_GETH_RELEASES_URL,
|
|
ALL_LINUX_ALLTOOLS_GETH_RELEASES_URL,
|
|
ALL_MACOS_GETH_RELEASES_URL,
|
|
ALL_MACOS_ALLTOOLS_GETH_RELEASES_URL,
|
|
ALL_WINDOWS_GETH_RELEASES_URL,
|
|
ALL_WINDOWS_ALLTOOLS_GETH_RELEASES_URL,
|
|
ALL_ANDROID_GETH_RELEASES_URL,
|
|
ALL_IOS_GETH_RELEASES_URL
|
|
];
|
|
|
|
return Promise.all(urls.map(url => fetch(url).then(response => response.text())));
|
|
};
|