Skip to content

Commit

Permalink
feat(visualizator-fe): Update @polkadot/apps-config & modify logos
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeldev5 authored and dudo50 committed Jul 12, 2024
1 parent 3f64036 commit b75b4e5
Show file tree
Hide file tree
Showing 16 changed files with 63 additions and 291 deletions.
2 changes: 1 addition & 1 deletion apps/visualizator-fe/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"@mantine/hooks": "^7.11.1",
"@paraspell/sdk": "workspace:*",
"@polkadot/api": "^12.1.1",
"@polkadot/apps-config": "^0.138.1",
"@polkadot/apps-config": "^0.141.1",
"@polkadot/extension-dapp": "^0.48.2",
"@polkadot/extension-inject": "^0.48.2",
"@polkadot/keyring": "^12.6.2",
Expand Down
36 changes: 36 additions & 0 deletions apps/visualizator-fe/src/components/Parachain/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,18 @@ import crustPng from '../../logos/crust1.png';
import composableFinancePng from '../../logos/composableFinance1.png';
import nodlePng from '../../logos/nodle1.png';
import darwiniaPng from '../../logos/darwinia1.png';
import continuumPng from '../../logos/continuum.png';
import aventusPng from '../../logos/aventus.png';
import ajunaPng from '../../logos/ajuna.png';
import frequencyPng from '../../logos/frequency.png';
import hyperbridgePng from '../../logos/hyperbridge.png';
import hashedPng from '../../logos/hashed.png';
import laosPng from '../../logos/laos.png';
import mythosPng from '../../logos/mythos.png';
import polimecPng from '../../logos/polimec.png';
import t3rnPng from '../../logos/t3rn.png';
import soraPng from '../../logos/sora.png';
import logionPng from '../../logos/logion.png';
import { getParachainLogo } from '../../utils/utils';

export const getNodeLogo = (node: string) => {
Expand All @@ -47,6 +59,18 @@ export const getNodeLogo = (node: string) => {
if (node === 'Composable Finance') return composableFinancePng;
if (node === 'Nodle') return nodlePng;
if (node === 'Darwinia') return darwiniaPng;
if (node === 'Continuum') return continuumPng;
if (node === 'Aventus') return aventusPng;
if (node === 'Ajuna Network') return ajunaPng;
if (node === 'Frequency') return frequencyPng;
if (node === 'Hyperbridge (Nexus)') return hyperbridgePng;
if (node === 'Hashed Network') return hashedPng;
if (node === 'Laos') return laosPng;
if (node === 'Mythos') return mythosPng;
if (node === 'Polimec') return polimecPng;
if (node === 't3rn') return t3rnPng;
if (node === 'SORA') return soraPng;
if (node === 'Logion') return logionPng;
return getParachainLogo(node);
};

Expand All @@ -68,5 +92,17 @@ export const getLogoScaleFactor = (node: string) => {
if (node === 'Composable Finance') return 1.75;
if (node === 'Nodle') return 1.5;
if (node === 'Manta') return 2;
if (node === 'Continuum') return 1.75;
if (node === 'Aventus') return 1.75;
if (node === 'Ajuna Network') return 1.75;
if (node === 'Frequency') return 1.75;
if (node === 'Hyperbridge (Nexus)') return 1.4;
if (node === 'Hashed Network') return 2;
if (node === 'Laos') return 2;
if (node === 'Mythos') return 1.5;
if (node === 'Polimec') return 1.5;
if (node === 't3rn') return 2;
if (node === 'SORA') return 2;
if (node === 'Logion') return 2;
return 3;
};
19 changes: 1 addition & 18 deletions apps/visualizator-fe/src/consts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,37 +3,20 @@ import { prodRelayPolkadot } from '@polkadot/apps-config/endpoints';
export const NAME = 'XCMVisualizator';

const EXCLUDED_NODE_NAMES = new Set([
'Energy Web X',
'Frequency',
'Laos',
'Geminis',
'Hashed Network',
'Hyperbridge (Nexus)',
'SORA',
'Kapex',
'KILT Spiritnet',
'Logion',
'peaq',
'OAK Network',
'Watr Network',
't3rn',
'OmniBTC',
'InvArch',
'Polimec',
'Equilibrium',
'Continuum',
'Coinversation',
'Efinity',
'Kylin',
'Clover',
'Integritee Network',
'Ajuna Network',
'Ares Odyssey',
'SubGame Gamma',
'Moonsama',
'Aventus',
'SubDAO',
'Mythos'
'Geminis'
]);

export const POLKADOT_NODE_NAMES = [
Expand Down
Binary file added apps/visualizator-fe/src/logos/ajuna.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apps/visualizator-fe/src/logos/aventus.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apps/visualizator-fe/src/logos/continuum.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apps/visualizator-fe/src/logos/frequency.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apps/visualizator-fe/src/logos/hashed.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apps/visualizator-fe/src/logos/hyperbridge.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apps/visualizator-fe/src/logos/laos.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apps/visualizator-fe/src/logos/logion.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apps/visualizator-fe/src/logos/mythos.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apps/visualizator-fe/src/logos/polimec.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apps/visualizator-fe/src/logos/sora.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apps/visualizator-fe/src/logos/t3rn.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit b75b4e5

Please sign in to comment.