mirror of
https://github.com/pezkuwichain/pezkuwi-apps.git
synced 2026-04-23 09:27:59 +00:00
feat: initial Pezkuwi Apps rebrand from polkadot-apps
Rebranded terminology: - Polkadot → Pezkuwi - Kusama → Dicle - Westend → Zagros - Rococo → PezkuwiChain - Substrate → Bizinikiwi - parachain → teyrchain Custom logos with Kurdistan brand colors (#e6007a → #86e62a): - bizinikiwi-hexagon.svg - sora-bizinikiwi.svg - hezscanner.svg - heztreasury.svg - pezkuwiscan.svg - pezkuwistats.svg - pezkuwiassembly.svg - pezkuwiholic.svg
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
// Copyright 2017-2025 @pezkuwi/apps-config authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { TFunction } from '../types.js';
|
||||
import type { Option } from './types.js';
|
||||
|
||||
import { selectableNetworks } from '@pezkuwi/networks';
|
||||
|
||||
const networks = selectableNetworks
|
||||
.map(({ displayName, network, prefix }) => ({
|
||||
info: network,
|
||||
text: displayName,
|
||||
value: prefix
|
||||
}))
|
||||
.sort((a, b) =>
|
||||
[0, 2, 42].includes(a.value) || [0, 2, 42].includes(b.value)
|
||||
? 0
|
||||
: a.text.localeCompare(b.text)
|
||||
);
|
||||
|
||||
// Definitions here are with the following values -
|
||||
// info: the name of a logo as defined in ../logos, specifically in namedLogos
|
||||
// text: The text you wish to display in the dropdown
|
||||
// value: The actual ss5Format value (as registered)
|
||||
|
||||
export function createSs58 (t: TFunction): Option[] {
|
||||
return [
|
||||
{
|
||||
info: 'default',
|
||||
text: t('ss58.default', 'Default for the connected node', { ns: 'apps-config' }),
|
||||
value: -1
|
||||
},
|
||||
...networks
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user