mirror of
https://github.com/pezkuwichain/pezkuwi-apps.git
synced 2026-04-22 11:17: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,42 @@
|
||||
// Copyright 2017-2025 @pezkuwi/apps-config authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// The list of Ethereum networks, for these the UI will default to Ethereum-only accounts
|
||||
|
||||
export const ethereumChains = [
|
||||
'alt-producer',
|
||||
'altbeacon',
|
||||
'altbeacon-dev',
|
||||
'armonia-eva',
|
||||
'armonia-wall-e',
|
||||
'Crab2',
|
||||
'Darwinia Koi',
|
||||
'Darwinia2',
|
||||
'datahaven-stagenet',
|
||||
'datahaven-testnet',
|
||||
'datahaven-mainnet',
|
||||
'dracones',
|
||||
'dracones-dwarf',
|
||||
'ferrum-teyrchain',
|
||||
'flash-layer',
|
||||
'frontier-template',
|
||||
'innovatorchain',
|
||||
'jaz',
|
||||
'laos',
|
||||
'masverse',
|
||||
'moonbase',
|
||||
'moonbeam',
|
||||
'moonriver',
|
||||
'moonsama',
|
||||
'moonshadow',
|
||||
'muse',
|
||||
'mythical-devnet',
|
||||
'peerplays',
|
||||
'quantum-portal-network-teyrchain',
|
||||
'root',
|
||||
'subspace-evm-domain',
|
||||
'thebifrost-dev',
|
||||
'thebifrost-mainnet',
|
||||
'thebifrost-testnet',
|
||||
'tscs-mainnet'
|
||||
];
|
||||
@@ -0,0 +1,6 @@
|
||||
// Copyright 2017-2025 @pezkuwi/apps-config authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
export * from './ethereumChains.js';
|
||||
export * from './languages.js';
|
||||
export * from './ss58.js';
|
||||
@@ -0,0 +1,60 @@
|
||||
// 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';
|
||||
|
||||
export function createLanguages (t: TFunction): Option[] {
|
||||
return [
|
||||
{
|
||||
text: t('lng.detect', 'Default browser language (auto-detect)', { ns: 'apps-config' }),
|
||||
value: 'default'
|
||||
},
|
||||
// default/native
|
||||
{
|
||||
text: 'English',
|
||||
value: 'en'
|
||||
},
|
||||
// translations (sorted by language code)
|
||||
{
|
||||
text: 'عربى',
|
||||
value: 'ar'
|
||||
},
|
||||
{
|
||||
text: 'Español',
|
||||
value: 'es'
|
||||
},
|
||||
{
|
||||
text: 'Français',
|
||||
value: 'fr'
|
||||
},
|
||||
{
|
||||
text: 'Bahasa Indonesia',
|
||||
value: 'id'
|
||||
},
|
||||
{
|
||||
text: 'Italiano',
|
||||
value: 'it'
|
||||
},
|
||||
{
|
||||
text: '日本語',
|
||||
value: 'ja'
|
||||
},
|
||||
{
|
||||
text: '한국어',
|
||||
value: 'ko'
|
||||
},
|
||||
{
|
||||
text: 'Português',
|
||||
value: 'pt'
|
||||
},
|
||||
{
|
||||
text: 'русский',
|
||||
value: 'ru'
|
||||
},
|
||||
{
|
||||
text: '汉语',
|
||||
value: 'zh'
|
||||
}
|
||||
];
|
||||
}
|
||||
@@ -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
|
||||
];
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
// Copyright 2017-2025 @pezkuwi/apps-config authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type React from 'react';
|
||||
|
||||
export interface Option {
|
||||
info?: string;
|
||||
isDisabled?: boolean;
|
||||
isHeader?: boolean;
|
||||
text: React.ReactNode;
|
||||
value: string | number;
|
||||
}
|
||||
Reference in New Issue
Block a user