mirror of
https://github.com/pezkuwichain/pezkuwi-apps.git
synced 2026-11-26 07:29:57 +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:
commit
d21bfb1320
5867 files changed
+329019
No files matched your search
@@ -0,0 +1,110 @@
|
||||
// Copyright 2017-2025 @pezkuwi/apps-config authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { TFunction, TOptions } from '../types.js';
|
||||
import type { LinkOption } from './types.js';
|
||||
|
||||
import { createCustom, createDev, createOwn } from './development.js';
|
||||
import { prodChains, prodRelayDicle, prodRelayPezkuwi } from './production.js';
|
||||
import { testChains, testRelayZagros } from './testing.js';
|
||||
import { testRelayPaseo } from './testingRelayPaseo.js';
|
||||
import { expandEndpoints } from './util.js';
|
||||
|
||||
export { CUSTOM_ENDPOINT_KEY } from './development.js';
|
||||
export * from './production.js';
|
||||
export * from './testing.js';
|
||||
|
||||
function defaultT (keyOrText: string, text?: string | TOptions, options?: TOptions): string {
|
||||
return (
|
||||
(options?.replace?.host as string) ||
|
||||
text?.toString() ||
|
||||
keyOrText
|
||||
);
|
||||
}
|
||||
|
||||
export function createWsEndpoints (t: TFunction = defaultT, firstOnly = false, withSort = true): LinkOption[] {
|
||||
return [
|
||||
...createCustom(t),
|
||||
{
|
||||
isDisabled: false,
|
||||
isHeader: true,
|
||||
isSpaced: true,
|
||||
text: t('rpc.header.favorite', 'Favorite chains', { ns: 'apps-config' }),
|
||||
textBy: '',
|
||||
ui: {},
|
||||
value: ''
|
||||
},
|
||||
{
|
||||
isDisabled: false,
|
||||
isHeader: true,
|
||||
isSpaced: true,
|
||||
text: t('rpc.header.pezkuwi.relay', 'Pezkuwi & teyrchains', { ns: 'apps-config' }),
|
||||
textBy: '',
|
||||
ui: {},
|
||||
value: ''
|
||||
},
|
||||
...expandEndpoints(t, [prodRelayPezkuwi], firstOnly, withSort),
|
||||
{
|
||||
isDisabled: false,
|
||||
isHeader: true,
|
||||
isSpaced: true,
|
||||
text: t('rpc.header.dicle.relay', 'Dicle & teyrchains', { ns: 'apps-config' }),
|
||||
textBy: '',
|
||||
ui: {},
|
||||
value: ''
|
||||
},
|
||||
...expandEndpoints(t, [prodRelayDicle], firstOnly, withSort),
|
||||
{
|
||||
isDisabled: false,
|
||||
isHeader: true,
|
||||
isSpaced: true,
|
||||
text: t('rpc.header.zagros.relay', 'Test Zagros & teyrchains', { ns: 'apps-config' }),
|
||||
textBy: '',
|
||||
ui: {},
|
||||
value: ''
|
||||
},
|
||||
...expandEndpoints(t, [testRelayZagros], firstOnly, withSort),
|
||||
{
|
||||
isDisabled: false,
|
||||
isHeader: true,
|
||||
isSpaced: true,
|
||||
text: t('rpc.header.paseo.relay', 'Test Paseo & teyrchains', { ns: 'apps-config' }),
|
||||
textBy: '',
|
||||
ui: {},
|
||||
value: ''
|
||||
},
|
||||
...expandEndpoints(t, [testRelayPaseo], firstOnly, withSort),
|
||||
{
|
||||
isDisabled: false,
|
||||
isHeader: true,
|
||||
isSpaced: true,
|
||||
text: t('rpc.header.live', 'Live networks', { ns: 'apps-config' }),
|
||||
textBy: '',
|
||||
ui: {},
|
||||
value: ''
|
||||
},
|
||||
...expandEndpoints(t, prodChains, firstOnly, withSort),
|
||||
{
|
||||
isDisabled: false,
|
||||
isHeader: true,
|
||||
isSpaced: true,
|
||||
text: t('rpc.header.test', 'Test networks', { ns: 'apps-config' }),
|
||||
textBy: '',
|
||||
ui: {},
|
||||
value: ''
|
||||
},
|
||||
...expandEndpoints(t, testChains, firstOnly, withSort),
|
||||
{
|
||||
isDevelopment: true,
|
||||
isDisabled: false,
|
||||
isHeader: true,
|
||||
isSpaced: true,
|
||||
text: t('rpc.header.dev', 'Development', { ns: 'apps-config' }),
|
||||
textBy: '',
|
||||
ui: {},
|
||||
value: ''
|
||||
},
|
||||
...createDev(t),
|
||||
...createOwn(t)
|
||||
].filter(({ isDisabled }) => !isDisabled);
|
||||
}
|
||||
Reference in new issue
Block a user