Expand info on logos (what/where) (#3822)

This commit is contained in:
Jaco Greeff 2020-10-05 20:14:46 +02:00 committed by GitHub
parent 44737e911f
commit 0a68efa8da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 4 deletions

View File

@ -104,7 +104,7 @@ function createLiveNetworks (t: TFunction): LinkOption[] {
value: 'wss://crab.darwinia.network'
},
{
info: 'dock-mainnet',
info: 'dockMainnet',
text: t<string>('rpc.dock-mainnet', 'Dock Mainnet', { ns: 'apps-config' }),
textHoster: t<string>('rpc.hosted.by', 'hosted by {{host}}', { ns: 'apps-config', replace: { host: 'Dock Association' } }),
value: 'wss://mainnet-node.dock.io'
@ -249,7 +249,7 @@ function createTestNetworks (t: TFunction): LinkOption[] {
value: 'wss://testnet-harbour.datahighway.com'
},
{
info: 'dock-testnet',
info: 'dockTestnet',
text: t<string>('rpc.dock-testnet', 'Dock Testnet', { ns: 'apps-config' }),
textHoster: t<string>('rpc.hosted.by', 'hosted by {{host}}', { ns: 'apps-config', replace: { host: 'Dock Association' } }),
value: 'wss://danforth-1.dock.io'

View File

@ -54,6 +54,7 @@ import externalSubscan from './external/subscan.svg';
import emptyLogo from './empty.svg';
// overrides based on the actual matched chain name
// NOTE: this matchs up with RPC system.chain
// alphabetical
const chainLogos: Record<string, any> = [
['Dusty', chainDusty],
@ -71,6 +72,7 @@ const chainLogos: Record<string, any> = [
}), {});
// overrides based on the actual software node type (all '-' converted to ' ')
// NOTE: this matches up with what the RPC via system.name
// alphabetical
const nodeLogos: Record<string, any> = [
['airalab-robonomics', nodeRobonomics],
@ -79,8 +81,7 @@ const nodeLogos: Record<string, any> = [
['crab', nodeCrab],
['crust node', nodeCrust],
['darwinia parachain', nodeDarwinia],
['Dock Mainnet Node', nodeDockMainnet],
['Dock Testnet Node', nodeDockTestnet],
['Dock Full Node', nodeDockMainnet],
['Edgeware Node', nodeEdgeware],
['Encointer Node', nodeEncointerNotee],
['Encointer Node noTEE', nodeEncointerNotee],
@ -106,6 +107,7 @@ const nodeLogos: Record<string, any> = [
}), {});
// overrides when we pass an explicit logo name
// NOTE: this matches up with what is defined as "info" in settings/endpoints.ts
// alphabetical
const namedLogos: Record<string, any> = {
acala: nodeAcala,