WIP: Add Aleph testnet to sidebar (#5858)
This commit is contained in:
parent
90a1e9edcd
commit
6749cf97f5
@ -17,6 +17,13 @@ import { expandEndpoints } from './util';
|
||||
export function createTesting (t: TFunction, firstOnly?: boolean): LinkOption[] {
|
||||
return expandEndpoints(t, [
|
||||
// alphabetical based on chain name, e.g. Amber, Arcadia, Beresheet, ...
|
||||
{
|
||||
info: 'aleph',
|
||||
text: t('rpc.test.aleph', 'Aleph Zero', { ns: 'apps-config' }),
|
||||
providers: {
|
||||
'Aleph Zero Foundation': 'wss://test-api.alephzero.org'
|
||||
}
|
||||
},
|
||||
{
|
||||
info: 'centrifuge',
|
||||
text: t('rpc.test.amber', 'Amber', { ns: 'apps-config' }),
|
||||
|
||||
@ -13,6 +13,7 @@ const emptyColor = '#99999';
|
||||
|
||||
// based on chain name
|
||||
// alphabetical
|
||||
const chainAleph = '#00CCAB';
|
||||
const chainApron = 'linear-gradient(45deg, #0099F7 0%, #2E49EB 100%)';
|
||||
const chainBitCountry = '#191a2e';
|
||||
const chainBeastEave = '#900048';
|
||||
@ -158,6 +159,7 @@ export { emptyColor };
|
||||
export const chainColors: Record<string, string> = Object.entries({
|
||||
'acala mandala pc1': chainRoccoAcala,
|
||||
'acala mandala pc2': chainRoccoAcala,
|
||||
'Aleph Zero': chainAleph,
|
||||
'Apron PC1': chainApron,
|
||||
'Ares PC1': chainRoccoAres,
|
||||
'Beast Developer': chainBeastEave,
|
||||
|
||||
12
packages/apps-config/src/ui/logos/chains/aleph.svg
Normal file
12
packages/apps-config/src/ui/logos/chains/aleph.svg
Normal file
@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Generator: Adobe Illustrator 25.3.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
||||
viewBox="0 0 80 80" style="enable-background:new 0 0 80 80;" xml:space="preserve">
|
||||
<style type="text/css">
|
||||
.st0{fill-rule:evenodd;clip-rule:evenodd;fill:#14202A;}
|
||||
</style>
|
||||
<path class="st0" d="M65.7,33.5H53.9l-9.3-21.2c-0.1-0.3-0.4-0.5-0.7-0.5H36c-0.3,0-0.6,0.2-0.7,0.5l-9.3,21.2H14.3
|
||||
c-0.4,0-0.8,0.3-0.8,0.8v5.5c0,0.4,0.3,0.8,0.8,0.8H23l-9,20.6c-0.1,0.2-0.1,0.5,0.1,0.7c0.1,0.2,0.4,0.3,0.6,0.3h6.8
|
||||
c0.3,0,0.6-0.2,0.7-0.5L40,19.4l17.8,42.3c0.1,0.3,0.4,0.5,0.7,0.5h6.8c0.3,0,0.5-0.1,0.6-0.3c0.1-0.2,0.2-0.5,0.1-0.7l-9-20.6h8.7
|
||||
c0.4,0,0.8-0.3,0.8-0.8v-5.5C66.4,33.8,66.1,33.5,65.7,33.5z"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 861 B |
@ -9,6 +9,7 @@
|
||||
// anything for a specific chain, most would probably fit into the node category (but allow for chain-specific)
|
||||
// alphabetical
|
||||
import { sanitize } from '../util';
|
||||
import chainAleph from './chains/aleph.svg';
|
||||
import chainAltair from './chains/altair.svg';
|
||||
import chainDusty from './chains/dusty.png';
|
||||
import chainEquilibrium from './chains/equilibrium.svg';
|
||||
@ -131,6 +132,7 @@ import emptyLogo from './empty.svg';
|
||||
// Alphabetical overrides based on the actual matched chain name
|
||||
// NOTE: This is as retrieved via system.chain RPC
|
||||
export const chainLogos = Object.entries({
|
||||
'Aleph Zero': chainAleph,
|
||||
Altair: chainAltair,
|
||||
'Apron PC1': nodeApron,
|
||||
'Ares PC1': nodeAres,
|
||||
@ -401,6 +403,7 @@ export const specLogos = Object.entries({
|
||||
// https://github.com/polkadot-js/common/blob/master/packages/networks/src/index.ts)
|
||||
export const namedLogos: Record<string, unknown> = {
|
||||
acala: nodeAcala,
|
||||
aleph: chainAleph,
|
||||
alexander: nodePolkadot,
|
||||
altair: chainAltair,
|
||||
basilisk: nodeBasilisk,
|
||||
|
||||
@ -110,6 +110,7 @@
|
||||
"rpc.rococo.vln": "Valibre Network PC",
|
||||
"rpc.rococo.zeitgeist": "Zeitgeist PC",
|
||||
"rpc.rococo.zenlink": "Zenlink PC1",
|
||||
"rpc.test.aleph": "Aleph Zero",
|
||||
"rpc.test.amber": "Amber",
|
||||
"rpc.test.beresheet": "Beresheet",
|
||||
"rpc.test.bifrost": "Bifrost Asgard",
|
||||
@ -175,4 +176,4 @@
|
||||
"rpc.westend.whala": "Whala",
|
||||
"ss58.default": "Default for the connected node",
|
||||
"testnet.kylin-node.co.uk": "Kylin Testnet"
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user