go-ethereum/src/constants.ts

105 lines
3.2 KiB
TypeScript
Raw Normal View History

import React from 'react';
import { IconProps } from '@chakra-ui/react';
import { WindowsLogo, MacosLogo, LinuxPenguin, SourceBranch } from './components/UI/icons';
2022-09-30 08:27:30 -05:00
// internal pages
export const DOWNLOADS_PAGE = '/downloads';
export const DOCS_PAGE = '/docs';
export const FAQ_PAGE = '/docs/faq';
export const CONTRIBUTING_PAGE = `${DOCS_PAGE}/developers/contributing`;
// external links
export const ETHEREUM_ORG_URL = 'https://ethereum.org';
export const ETHEREUM_ORG_RUN_A_NODE_URL = 'https://ethereum.org/en/run-a-node/';
export const ETHEREUM_FOUNDATION_URL = 'https://ethereum.foundation';
export const GETH_REPO_URL = 'https://github.com/ethereum/go-ethereum';
2022-10-09 15:13:04 -05:00
export const GETH_TWITTER_URL = 'https://twitter.com/go_ethereum';
2022-10-18 21:10:17 -05:00
export const GETH_DISCORD_URL = 'https://discord.com/invite/nthXNEv';
2022-10-09 13:12:44 -05:00
export const GO_URL = 'https://go.dev/';
// Downloads
export const DEFAULT_BUILD_AMOUNT_TO_SHOW = 10;
export const DOWNLOAD_HEADER_BUTTONS: {
[index: string]: {
name: string;
ariaLabel: string;
buildURL: string;
Svg: React.FC<IconProps>;
};
} = {
2022-10-10 07:56:44 -05:00
linuxBuild: {
name: 'Linux',
ariaLabel: 'Linux logo',
Svg: LinuxPenguin,
2022-10-10 07:56:44 -05:00
buildURL: ''
},
macOSBuild: {
name: 'macOS',
ariaLabel: 'macOS logo',
Svg: MacosLogo,
2022-10-10 07:56:44 -05:00
buildURL: ''
},
windowsBuild: {
name: 'Windows',
ariaLabel: 'Windows logo',
Svg: WindowsLogo,
2022-10-10 07:56:44 -05:00
buildURL: ''
},
sourceCode: {
name: 'Sources',
ariaLabel: 'Source branch logo',
Svg: SourceBranch,
2022-10-10 07:56:44 -05:00
buildURL: ''
}
};
export const DOWNLOAD_TABS = ['Linux', 'macOS', 'Windows', 'iOS', 'Android'];
2022-10-10 07:56:44 -05:00
export const DOWNLOAD_TAB_COLUMN_HEADERS = [
'Release',
'Commit',
'Kind',
'Arch',
'Size',
'Published',
'Signature',
'Checksum (MD5)'
];
2022-10-10 07:56:44 -05:00
export const DOWNLOAD_OPENPGP_BUILD_HEADERS = [
'Build Server',
'Unique ID',
'OpenPGP Key',
'Fingerprint'
];
2022-10-10 07:56:44 -05:00
export const DOWNLOAD_OPENPGP_DEVELOPER_HEADERS = [
'Developer',
'Unique ID',
'OpenPGP Key',
'Fingerprint'
];
// Metadata
export const SITE_URL = 'https://geth.ethereum.org';
export const SITE_NAME = 'go-ethereum';
export const METADATA = {
HOME_TITLE: 'Home',
HOME_DESCRIPTION:
'Go-ethereum website, home for the official Golang execution layer implementation of the Ethereum protocol',
DOWNLOADS_TITLE: 'Downloads',
DOWNLOADS_DESCRIPTION: 'All Geth releases and builds, available for download'
};
// GitHub urls
export const LATEST_GETH_RELEASE_URL =
'https://api.github.com/repos/ethereum/go-ethereum/releases/latest';
export const ALL_GETH_RELEASES_URL = 'https://api.github.com/repos/ethereum/go-ethereum/releases';
export const ALL_GETH_COMMITS_URL = 'https://api.github.com/repos/ethereum/go-ethereum/commits/';
export const LINUX_BINARY_BASE_URL =
'https://gethstore.blob.core.windows.net/builds/geth-linux-amd64-';
export const MACOS_BINARY_BASE_URL =
'https://gethstore.blob.core.windows.net/builds/geth-darwin-amd64-';
export const WINDOWS_BINARY_BASE_URL =
'https://gethstore.blob.core.windows.net/builds/geth-windows-amd64-';
export const LATEST_SOURCES_BASE_URL = 'https://github.com/ethereum/go-ethereum/archive/';
export const RELEASE_NOTES_BASE_URL = 'https://github.com/ethereum/go-ethereum/releases/tag/';