2022-11-16 14:59:39 -06:00
|
|
|
import React from 'react';
|
|
|
|
import { IconProps } from '@chakra-ui/react';
|
|
|
|
import { WindowsLogo, MacosLogo, LinuxPenguin, SourceBranch } from './components/UI/icons';
|
|
|
|
|
2022-11-23 13:57:49 -06:00
|
|
|
export const BORDER_WIDTH = '2px';
|
|
|
|
|
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/';
|
2022-10-09 10:07:01 -05:00
|
|
|
|
|
|
|
// Downloads
|
|
|
|
export const DEFAULT_BUILD_AMOUNT_TO_SHOW = 10;
|
2022-10-25 19:10:19 -05:00
|
|
|
export const DOWNLOAD_HEADER_BUTTONS: {
|
2022-11-16 14:59:39 -06:00
|
|
|
[index: string]: {
|
|
|
|
name: string;
|
|
|
|
ariaLabel: string;
|
|
|
|
buildURL: string;
|
|
|
|
Svg: React.FC<IconProps>;
|
|
|
|
};
|
2022-10-25 19:10:19 -05:00
|
|
|
} = {
|
2022-10-10 07:56:44 -05:00
|
|
|
linuxBuild: {
|
|
|
|
name: 'Linux',
|
2022-11-16 14:59:39 -06:00
|
|
|
ariaLabel: 'Linux logo',
|
|
|
|
Svg: LinuxPenguin,
|
2022-10-10 07:56:44 -05:00
|
|
|
buildURL: ''
|
|
|
|
},
|
|
|
|
macOSBuild: {
|
|
|
|
name: 'macOS',
|
2022-11-16 14:59:39 -06:00
|
|
|
ariaLabel: 'macOS logo',
|
|
|
|
Svg: MacosLogo,
|
2022-10-10 07:56:44 -05:00
|
|
|
buildURL: ''
|
|
|
|
},
|
|
|
|
windowsBuild: {
|
|
|
|
name: 'Windows',
|
2022-11-16 14:59:39 -06:00
|
|
|
ariaLabel: 'Windows logo',
|
|
|
|
Svg: WindowsLogo,
|
2022-10-10 07:56:44 -05:00
|
|
|
buildURL: ''
|
|
|
|
},
|
|
|
|
sourceCode: {
|
|
|
|
name: 'Sources',
|
2022-11-16 14:59:39 -06:00
|
|
|
ariaLabel: 'Source branch logo',
|
|
|
|
Svg: SourceBranch,
|
2022-10-10 07:56:44 -05:00
|
|
|
buildURL: ''
|
|
|
|
}
|
2022-10-25 19:10:19 -05:00
|
|
|
};
|
|
|
|
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-25 19:10:19 -05:00
|
|
|
];
|
2022-10-10 07:56:44 -05:00
|
|
|
export const DOWNLOAD_OPENPGP_BUILD_HEADERS = [
|
|
|
|
'Build Server',
|
|
|
|
'Unique ID',
|
|
|
|
'OpenPGP Key',
|
|
|
|
'Fingerprint'
|
2022-10-25 19:10:19 -05:00
|
|
|
];
|
2022-10-10 07:56:44 -05:00
|
|
|
export const DOWNLOAD_OPENPGP_DEVELOPER_HEADERS = [
|
|
|
|
'Developer',
|
|
|
|
'Unique ID',
|
|
|
|
'OpenPGP Key',
|
|
|
|
'Fingerprint'
|
2022-10-25 19:10:19 -05:00
|
|
|
];
|
2022-11-16 13:01:23 -06:00
|
|
|
|
2022-11-21 18:53:51 -06:00
|
|
|
// 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'
|
|
|
|
};
|
|
|
|
|
2022-11-16 13:01:23 -06:00
|
|
|
// 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/';
|
2022-11-23 11:50:44 -06:00
|
|
|
|
|
|
|
// Code snippet class constants
|
|
|
|
export const CLASSNAME_PREFIX = 'language-';
|