Use .js imports in src (#9132)
* Use .js imports in src * Additional * Additional * Additional * Additional * Additional * Additional * Additional * Additional * Additional * Additional * Additional * Additional * Additional * Add WP extension aliases * Bump dev * Additional * Additional * Adjust extensionAlias order
This commit is contained in:
parent
3c97f2ec65
commit
eacf028ba6
@ -68,7 +68,7 @@
|
||||
"devDependencies": {
|
||||
"@crustio/crust-pin": "^1.0.0",
|
||||
"@pinata/sdk": "^1.2.1",
|
||||
"@polkadot/dev": "^0.70.4",
|
||||
"@polkadot/dev": "^0.71.1",
|
||||
"@types/chart.js": "^2.9.37",
|
||||
"@types/file-saver": "^2.0.5",
|
||||
"@types/react-beautiful-dnd": "^13.1.3",
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
|
||||
import type { OverrideBundleDefinition } from '@polkadot/types/types';
|
||||
|
||||
import kilt from './kilt';
|
||||
import kilt from './kilt.js';
|
||||
|
||||
// NOTE: The mapping is done from chain name in system.chain
|
||||
const chain: Record<string, OverrideBundleDefinition> = {
|
||||
|
||||
@ -3,10 +3,10 @@
|
||||
|
||||
import type { OverrideBundleDefinition, OverrideBundleType } from '@polkadot/types/types';
|
||||
|
||||
import equilibrium from './spec/equilibrium';
|
||||
import genshiro from './spec/genshiro';
|
||||
import interbtc from './spec/interbtc';
|
||||
import subspace from './spec/subspace';
|
||||
import equilibrium from './spec/equilibrium.js';
|
||||
import genshiro from './spec/genshiro.js';
|
||||
import interbtc from './spec/interbtc.js';
|
||||
import subspace from './spec/subspace.js';
|
||||
|
||||
const mapping: [OverrideBundleDefinition, string[]][] = [
|
||||
[equilibrium, ['Equilibrium']],
|
||||
|
||||
@ -3,8 +3,8 @@
|
||||
|
||||
import type { OverrideBundleDefinition } from '@polkadot/types/types';
|
||||
|
||||
import spec from './spec';
|
||||
import { typesBundle } from '.';
|
||||
import spec from './spec/index.js';
|
||||
import { typesBundle } from './index.js';
|
||||
|
||||
function getDerives (spec: Record<string, OverrideBundleDefinition>): string[] {
|
||||
return Object
|
||||
|
||||
@ -1,10 +1,10 @@
|
||||
// Copyright 2017-2023 @polkadot/apps-config authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import { applyDerives } from './derives';
|
||||
import { typesBundle as typesOnlyBundle } from './typesBundle';
|
||||
import { applyDerives } from './derives.js';
|
||||
import { typesBundle as typesOnlyBundle } from './typesBundle.js';
|
||||
|
||||
export * from './constants';
|
||||
export * from './params';
|
||||
export * from './params/index.js';
|
||||
export * from './constants.js';
|
||||
|
||||
export const typesBundle = applyDerives(typesOnlyBundle);
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
// Copyright 2017-2023 @polkadot/apps-config authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
export * from './inflation';
|
||||
export * from './proposalThresholds';
|
||||
export * from './teleport';
|
||||
export * from './tracks';
|
||||
export * from './inflation.js';
|
||||
export * from './proposalThresholds.js';
|
||||
export * from './teleport.js';
|
||||
export * from './tracks/index.js';
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
|
||||
import type { ApiPromise } from '@polkadot/api';
|
||||
|
||||
import { DOCK_POS_TESTNET_GENESIS, KUSAMA_GENESIS, NEATCOIN_GENESIS, NFTMART_GENESIS, POLKADOT_GENESIS } from '../constants';
|
||||
import { DOCK_POS_TESTNET_GENESIS, KUSAMA_GENESIS, NEATCOIN_GENESIS, NFTMART_GENESIS, POLKADOT_GENESIS } from '../constants.js';
|
||||
|
||||
interface InflationParams {
|
||||
auctionAdjust: number;
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
|
||||
import type { ApiPromise } from '@polkadot/api';
|
||||
|
||||
import { KULUPU_GENESIS, KUSAMA_GENESIS, POLKADOT_GENESIS } from '../constants';
|
||||
import { KULUPU_GENESIS, KUSAMA_GENESIS, POLKADOT_GENESIS } from '../constants.js';
|
||||
|
||||
// normal fast-track proposals
|
||||
const FAST_TRACK: Record<string, number> = {
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
|
||||
import type { ApiPromise } from '@polkadot/api';
|
||||
|
||||
import { KUSAMA_GENESIS } from '../constants';
|
||||
import { KUSAMA_GENESIS } from '../constants.js';
|
||||
|
||||
// 4 * BaseXcmWeight on Kusama
|
||||
const KUSAMA_WEIGHT = 4 * 1_000_000_000;
|
||||
|
||||
@ -2,11 +2,11 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { ApiPromise } from '@polkadot/api';
|
||||
import type { TrackInfo } from './types';
|
||||
import type { TrackInfo } from './types.js';
|
||||
|
||||
import { KUSAMA_GENESIS, POLKADOT_GENESIS } from '../../constants';
|
||||
import { kusama } from './kusama';
|
||||
import { polkadot } from './polkadot';
|
||||
import { KUSAMA_GENESIS, POLKADOT_GENESIS } from '../../constants.js';
|
||||
import { kusama } from './kusama.js';
|
||||
import { polkadot } from './polkadot.js';
|
||||
|
||||
const KNOWN_GENE_TRACKS: Record<string, Record<string, TrackInfo[]>> = {
|
||||
[KUSAMA_GENESIS]: kusama,
|
||||
|
||||
@ -1,11 +1,11 @@
|
||||
// Copyright 2017-2023 @polkadot/app-config authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { TrackInfo } from './types';
|
||||
import type { TrackInfo } from './types.js';
|
||||
|
||||
import { BN } from '@polkadot/util';
|
||||
|
||||
import { compareFellowshipRank, formatSpendFactory } from './util';
|
||||
import { compareFellowshipRank, formatSpendFactory } from './util.js';
|
||||
|
||||
// hardcoded here since this is static (hopefully no re-denomination anytime...)
|
||||
const formatSpend = formatSpendFactory({
|
||||
|
||||
@ -1,11 +1,11 @@
|
||||
// Copyright 2017-2023 @polkadot/app-config authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { TrackInfo } from './types';
|
||||
import type { TrackInfo } from './types.js';
|
||||
|
||||
import { BN } from '@polkadot/util';
|
||||
|
||||
import { compareFellowshipRank, formatSpendFactory } from './util';
|
||||
import { compareFellowshipRank, formatSpendFactory } from './util.js';
|
||||
|
||||
// hardcoded here since this is static (hopefully no re-denomination anytime...)
|
||||
const formatSpend = formatSpendFactory({
|
||||
|
||||
@ -5,7 +5,7 @@ import type { OverrideBundleDefinition } from '@polkadot/types/types';
|
||||
|
||||
import eqDefs from '@equilab/definitions';
|
||||
|
||||
import { createCustomAccount, u64FromCurrency } from './equilibrium';
|
||||
import { createCustomAccount, u64FromCurrency } from './equilibrium.js';
|
||||
|
||||
const { genshiro } = eqDefs;
|
||||
|
||||
|
||||
@ -3,132 +3,132 @@
|
||||
|
||||
import type { OverrideBundleDefinition } from '@polkadot/types/types';
|
||||
|
||||
import acala from './acala';
|
||||
import ajuna from './ajuna';
|
||||
import altair from './altair';
|
||||
import apron from './apron';
|
||||
import aresGladios from './ares-gladios';
|
||||
import aresParachain from './ares-parachain';
|
||||
import astar from './astar';
|
||||
import automata from './automata';
|
||||
import bajun from './bajun';
|
||||
import basilisk from './basilisk';
|
||||
import beresheet from './beresheet';
|
||||
import bifrost from './bifrost';
|
||||
import bifrostAsgard from './bifrost-asgard';
|
||||
import bifrostParachain from './bifrost-parachain';
|
||||
import bitcountry from './bitcountry';
|
||||
import bitcountryPioneer from './bitcountry-pioneer';
|
||||
import bitcountryParachain from './bitcountry-rococo';
|
||||
import centrifuge from './centrifuge';
|
||||
import centrifugeChain from './centrifuge-chain';
|
||||
import chainx from './chainx';
|
||||
import clover from './clover';
|
||||
import cloverRococo from './clover-rococo';
|
||||
import coinversation from './coinversation';
|
||||
import competitorsClub from './competitors-club';
|
||||
import contracts from './contracts';
|
||||
import crab from './crab';
|
||||
import crownSterlingChain from './crown-sterling';
|
||||
import crust from './crust';
|
||||
import testPara from './cumulus-test-parachain';
|
||||
import darwinia from './darwinia';
|
||||
import datahighwayParachain from './datahighway';
|
||||
import dockMainnet from './dock-mainnet';
|
||||
import dockTestnet from './dock-testnet';
|
||||
import dotmog from './dotmog';
|
||||
import eave from './eave';
|
||||
import edgeware from './edgeware';
|
||||
import encointerNodeNotee from './encointer-node-notee';
|
||||
import encointerNodeTeeproxy from './encointer-node-teeproxy';
|
||||
import encointerPara from './encointer-para';
|
||||
import equilibrium from './equilibrium';
|
||||
import fantour from './fantour';
|
||||
import frequency from './frequency';
|
||||
import galital from './galital';
|
||||
import galitalParachain from './galital-parachain';
|
||||
import galois from './galois';
|
||||
import gamepower from './gamepower';
|
||||
import genshiro from './genshiro';
|
||||
import hanonycash from './hanonycash';
|
||||
import hydrate from './hydrate';
|
||||
import idavoll from './idavoll';
|
||||
import imbue from './imbue';
|
||||
import integritee from './integritee';
|
||||
import interbtc from './interbtc';
|
||||
import ipse from './ipse';
|
||||
import jupiter from './jupiter';
|
||||
import jupiterRococo from './jupiter-rococo';
|
||||
import jur from './jur';
|
||||
import khala from './khala';
|
||||
import konomi from './konomi';
|
||||
import kpron from './kpron';
|
||||
import kulupu from './kulupu';
|
||||
import kusari from './kusari';
|
||||
import kylin from './kylin';
|
||||
import laminar from './laminar';
|
||||
import litentry from './litentry';
|
||||
import logion from './logion';
|
||||
import logionParachain from './logion-parachain';
|
||||
import mangata from './mangata';
|
||||
import manta from './manta';
|
||||
import mathchain from './mathchain';
|
||||
import moonbeam from './moonbeam';
|
||||
import mybank from './mybank';
|
||||
import neatcoin from './neatcoin';
|
||||
import nftmart from './nftmart';
|
||||
import nodle from './nodle';
|
||||
import oak from './oak';
|
||||
import opal from './opal';
|
||||
import opportunity from './opportunity';
|
||||
import origintrail from './origintrail';
|
||||
import pangolin from './pangolin';
|
||||
import pangoro from './pangoro';
|
||||
import parallel from './parallel';
|
||||
import parami from './parami';
|
||||
import phoenix from './phoenix';
|
||||
import pichiu from './pichiu';
|
||||
import polkadex from './polkadex';
|
||||
import polkafoundry from './polkafoundry';
|
||||
import polymesh from './polymesh';
|
||||
import pontem from './pontem';
|
||||
import prism from './prism';
|
||||
import quartz from './quartz';
|
||||
import realis from './realis';
|
||||
import riochain from './riochain';
|
||||
import robonomics from './robonomics';
|
||||
import rootnet from './rootnet';
|
||||
import sapphire from './sapphire';
|
||||
import shibuya from './shibuya';
|
||||
import shiden from './shiden';
|
||||
import snowbridge from './snowbridge';
|
||||
import soraSubstrate from './soraSubstrate';
|
||||
import spanner from './spanner';
|
||||
import stafi from './stafi';
|
||||
import standard from './standard';
|
||||
import subdao from './subdao';
|
||||
import subgame from './subgame';
|
||||
import subsocial from './subsocial';
|
||||
import subspace from './subspace';
|
||||
import substrateContractsNode from './substrateContractsNode';
|
||||
import swapdex from './swapdex';
|
||||
import t0rn from './t0rn';
|
||||
import ternoa from './ternoa';
|
||||
import trustbase from './trustbase';
|
||||
import turing from './turing';
|
||||
import uart from './uart';
|
||||
import unique from './unique';
|
||||
import unitnetwork from './unitnetwork';
|
||||
import unitv from './unitv';
|
||||
import vln from './vln';
|
||||
import vlnrococo from './vln-rococo';
|
||||
import vodka from './vodka';
|
||||
import web3games from './web3games';
|
||||
import westlake from './westlake';
|
||||
import zCloak from './zCloak';
|
||||
import zeitgeist from './zeitgeist';
|
||||
import zenlink from './zenlink';
|
||||
import zero from './zero';
|
||||
import acala from './acala.js';
|
||||
import ajuna from './ajuna.js';
|
||||
import altair from './altair.js';
|
||||
import apron from './apron.js';
|
||||
import aresGladios from './ares-gladios.js';
|
||||
import aresParachain from './ares-parachain.js';
|
||||
import astar from './astar.js';
|
||||
import automata from './automata.js';
|
||||
import bajun from './bajun.js';
|
||||
import basilisk from './basilisk.js';
|
||||
import beresheet from './beresheet.js';
|
||||
import bifrost from './bifrost.js';
|
||||
import bifrostAsgard from './bifrost-asgard.js';
|
||||
import bifrostParachain from './bifrost-parachain.js';
|
||||
import bitcountry from './bitcountry.js';
|
||||
import bitcountryPioneer from './bitcountry-pioneer.js';
|
||||
import bitcountryParachain from './bitcountry-rococo.js';
|
||||
import centrifuge from './centrifuge.js';
|
||||
import centrifugeChain from './centrifuge-chain.js';
|
||||
import chainx from './chainx.js';
|
||||
import clover from './clover.js';
|
||||
import cloverRococo from './clover-rococo.js';
|
||||
import coinversation from './coinversation.js';
|
||||
import competitorsClub from './competitors-club.js';
|
||||
import contracts from './contracts.js';
|
||||
import crab from './crab.js';
|
||||
import crownSterlingChain from './crown-sterling.js';
|
||||
import crust from './crust.js';
|
||||
import testPara from './cumulus-test-parachain.js';
|
||||
import darwinia from './darwinia.js';
|
||||
import datahighwayParachain from './datahighway.js';
|
||||
import dockMainnet from './dock-mainnet.js';
|
||||
import dockTestnet from './dock-testnet.js';
|
||||
import dotmog from './dotmog.js';
|
||||
import eave from './eave.js';
|
||||
import edgeware from './edgeware.js';
|
||||
import encointerNodeNotee from './encointer-node-notee.js';
|
||||
import encointerNodeTeeproxy from './encointer-node-teeproxy.js';
|
||||
import encointerPara from './encointer-para.js';
|
||||
import equilibrium from './equilibrium.js';
|
||||
import fantour from './fantour.js';
|
||||
import frequency from './frequency.js';
|
||||
import galital from './galital.js';
|
||||
import galitalParachain from './galital-parachain.js';
|
||||
import galois from './galois.js';
|
||||
import gamepower from './gamepower.js';
|
||||
import genshiro from './genshiro.js';
|
||||
import hanonycash from './hanonycash.js';
|
||||
import hydrate from './hydrate.js';
|
||||
import idavoll from './idavoll.js';
|
||||
import imbue from './imbue.js';
|
||||
import integritee from './integritee.js';
|
||||
import interbtc from './interbtc.js';
|
||||
import ipse from './ipse.js';
|
||||
import jupiter from './jupiter.js';
|
||||
import jupiterRococo from './jupiter-rococo.js';
|
||||
import jur from './jur.js';
|
||||
import khala from './khala.js';
|
||||
import konomi from './konomi.js';
|
||||
import kpron from './kpron.js';
|
||||
import kulupu from './kulupu.js';
|
||||
import kusari from './kusari.js';
|
||||
import kylin from './kylin.js';
|
||||
import laminar from './laminar.js';
|
||||
import litentry from './litentry.js';
|
||||
import logion from './logion.js';
|
||||
import logionParachain from './logion-parachain.js';
|
||||
import mangata from './mangata.js';
|
||||
import manta from './manta.js';
|
||||
import mathchain from './mathchain.js';
|
||||
import moonbeam from './moonbeam.js';
|
||||
import mybank from './mybank.js';
|
||||
import neatcoin from './neatcoin.js';
|
||||
import nftmart from './nftmart.js';
|
||||
import nodle from './nodle.js';
|
||||
import oak from './oak.js';
|
||||
import opal from './opal.js';
|
||||
import opportunity from './opportunity.js';
|
||||
import origintrail from './origintrail.js';
|
||||
import pangolin from './pangolin.js';
|
||||
import pangoro from './pangoro.js';
|
||||
import parallel from './parallel.js';
|
||||
import parami from './parami.js';
|
||||
import phoenix from './phoenix.js';
|
||||
import pichiu from './pichiu.js';
|
||||
import polkadex from './polkadex.js';
|
||||
import polkafoundry from './polkafoundry.js';
|
||||
import polymesh from './polymesh.js';
|
||||
import pontem from './pontem.js';
|
||||
import prism from './prism.js';
|
||||
import quartz from './quartz.js';
|
||||
import realis from './realis.js';
|
||||
import riochain from './riochain.js';
|
||||
import robonomics from './robonomics.js';
|
||||
import rootnet from './rootnet.js';
|
||||
import sapphire from './sapphire.js';
|
||||
import shibuya from './shibuya.js';
|
||||
import shiden from './shiden.js';
|
||||
import snowbridge from './snowbridge.js';
|
||||
import soraSubstrate from './soraSubstrate.js';
|
||||
import spanner from './spanner.js';
|
||||
import stafi from './stafi.js';
|
||||
import standard from './standard.js';
|
||||
import subdao from './subdao.js';
|
||||
import subgame from './subgame.js';
|
||||
import subsocial from './subsocial.js';
|
||||
import subspace from './subspace.js';
|
||||
import substrateContractsNode from './substrateContractsNode.js';
|
||||
import swapdex from './swapdex.js';
|
||||
import t0rn from './t0rn.js';
|
||||
import ternoa from './ternoa.js';
|
||||
import trustbase from './trustbase.js';
|
||||
import turing from './turing.js';
|
||||
import uart from './uart.js';
|
||||
import unique from './unique.js';
|
||||
import unitnetwork from './unitnetwork.js';
|
||||
import unitv from './unitv.js';
|
||||
import vln from './vln.js';
|
||||
import vlnrococo from './vln-rococo.js';
|
||||
import vodka from './vodka.js';
|
||||
import web3games from './web3games.js';
|
||||
import westlake from './westlake.js';
|
||||
import zCloak from './zCloak.js';
|
||||
import zeitgeist from './zeitgeist.js';
|
||||
import zenlink from './zenlink.js';
|
||||
import zero from './zero.js';
|
||||
|
||||
// NOTE: The mapping is done from specName in state.getRuntimeVersion
|
||||
const spec: Record<string, OverrideBundleDefinition> = {
|
||||
|
||||
@ -5,7 +5,7 @@ import type { OverrideBundleDefinition } from '@polkadot/types/types';
|
||||
|
||||
import * as typeDefs from '@zeitgeistpm/type-defs';
|
||||
|
||||
import { typesFromDefs } from '../util';
|
||||
import { typesFromDefs } from '../util.js';
|
||||
|
||||
const bundle = {
|
||||
alias: {
|
||||
|
||||
@ -5,8 +5,8 @@ import fs from 'node:fs';
|
||||
|
||||
import { objectSpread } from '@polkadot/util';
|
||||
|
||||
import chain from './chain';
|
||||
import spec from './spec';
|
||||
import chain from './chain/index.js';
|
||||
import spec from './spec/index.js';
|
||||
|
||||
// Technically this shouldn't be a test - it was that way since historically we
|
||||
// didn't use something like ts-node. Now however we can actually replace this
|
||||
|
||||
@ -4,8 +4,8 @@
|
||||
import { assert, isString } from '@polkadot/util';
|
||||
import { WebSocket } from '@polkadot/x-ws';
|
||||
|
||||
import { createWsEndpoints } from '../endpoints';
|
||||
import { fetchJson } from './fetch';
|
||||
import { createWsEndpoints } from '../endpoints/index.js';
|
||||
import { fetchJson } from './fetch.js';
|
||||
|
||||
interface Endpoint {
|
||||
name: string;
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
|
||||
import { detectPackage } from '@polkadot/util';
|
||||
|
||||
import others from './detectOther';
|
||||
import { packageInfo } from './packageInfo';
|
||||
import others from './detectOther.js';
|
||||
import { packageInfo } from './packageInfo.js';
|
||||
|
||||
detectPackage(packageInfo, null, others);
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
// Copyright 2017-2023 @polkadot/apps-config authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { TFunction } from '../types';
|
||||
import type { LinkOption } from './types';
|
||||
import type { TFunction } from '../types.js';
|
||||
import type { LinkOption } from './types.js';
|
||||
|
||||
export const CUSTOM_ENDPOINT_KEY = 'polkadot-app-custom-endpoints';
|
||||
|
||||
|
||||
@ -5,7 +5,7 @@ import { strict as assert } from 'node:assert';
|
||||
|
||||
import { isNumber, isString } from '@polkadot/util';
|
||||
|
||||
import { createWsEndpoints } from '.';
|
||||
import { createWsEndpoints } from './index.js';
|
||||
|
||||
interface Endpoint {
|
||||
name: string;
|
||||
|
||||
@ -1,17 +1,17 @@
|
||||
// Copyright 2017-2023 @polkadot/apps-config authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { TFunction, TOptions } from '../types';
|
||||
import type { LinkOption } from './types';
|
||||
import type { TFunction, TOptions } from '../types.js';
|
||||
import type { LinkOption } from './types.js';
|
||||
|
||||
import { createCustom, createDev, createOwn } from './development';
|
||||
import { prodChains, prodRelayKusama, prodRelayPolkadot } from './production';
|
||||
import { testChains, testRelayRococo, testRelayWestend } from './testing';
|
||||
import { expandEndpoints } from './util';
|
||||
import { createCustom, createDev, createOwn } from './development.js';
|
||||
import { prodChains, prodRelayKusama, prodRelayPolkadot } from './production.js';
|
||||
import { testChains, testRelayRococo, testRelayWestend } from './testing.js';
|
||||
import { expandEndpoints } from './util.js';
|
||||
|
||||
export { CUSTOM_ENDPOINT_KEY } from './development';
|
||||
export * from './production';
|
||||
export * from './testing';
|
||||
export { CUSTOM_ENDPOINT_KEY } from './development.js';
|
||||
export * from './production.js';
|
||||
export * from './testing.js';
|
||||
|
||||
function defaultT (keyOrText: string, text?: string, options?: TOptions): string {
|
||||
return (
|
||||
|
||||
@ -1,13 +1,13 @@
|
||||
// Copyright 2017-2023 @polkadot/apps-config authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { EndpointOption } from './types';
|
||||
import type { EndpointOption } from './types.js';
|
||||
|
||||
import { chains3dpassPNG, chainsAlephSVG, chainsBittensorPNG, chainsCreditcoinPNG, chainsDebioSVG, chainsEquilibriumSVG, chainsGenshiroSVG, chainsLogionPNG, chainsMyriadPNG, chainsSpannerPNG } from '../ui/logos/chains';
|
||||
import { nodesAresOdysseySVG, nodesAutomataPNG, nodesCentrifugePNG, nodesChainxSVG, nodesCompetitorsClubPNG, nodesCrabSVG, nodesCrownSterlingPNG, nodesCrustSVG, nodesDarwiniaSVG, nodesDatahighwayPNG, nodesDockPNG, nodesEdgewareWhitePNG, nodesEfinitySVG, nodesHanyonycashPNG, nodesHumanodePNG, nodesJoystreamSVG, nodesKulupuSVG, nodesKusariSVG, nodesMathSVG, nodesMinixPNG, nodesNftmartPNG, nodesNodleSVG, nodesPolkadexSVG, nodesPolymeshSVG, nodesRiochainSVG, nodesRobonomicsSVG, nodesSherpaxPNG, nodesSoraSubstrateSVG, nodesStafiPNG, nodesSubgameSVG, nodesSubsocialSVG, nodesSwapdexSVG, nodesTernoaSVG, nodesThebifrostPNG, nodesUniartsPNG, nodesUnitnetworkPNG } from '../ui/logos/nodes';
|
||||
import { chains3dpassPNG, chainsAlephSVG, chainsBittensorPNG, chainsCreditcoinPNG, chainsDebioSVG, chainsEquilibriumSVG, chainsGenshiroSVG, chainsLogionPNG, chainsMyriadPNG, chainsSpannerPNG } from '../ui/logos/chains/index.js';
|
||||
import { nodesAresOdysseySVG, nodesAutomataPNG, nodesCentrifugePNG, nodesChainxSVG, nodesCompetitorsClubPNG, nodesCrabSVG, nodesCrownSterlingPNG, nodesCrustSVG, nodesDarwiniaSVG, nodesDatahighwayPNG, nodesDockPNG, nodesEdgewareWhitePNG, nodesEfinitySVG, nodesHanyonycashPNG, nodesHumanodePNG, nodesJoystreamSVG, nodesKulupuSVG, nodesKusariSVG, nodesMathSVG, nodesMinixPNG, nodesNftmartPNG, nodesNodleSVG, nodesPolkadexSVG, nodesPolymeshSVG, nodesRiochainSVG, nodesRobonomicsSVG, nodesSherpaxPNG, nodesSoraSubstrateSVG, nodesStafiPNG, nodesSubgameSVG, nodesSubsocialSVG, nodesSwapdexSVG, nodesTernoaSVG, nodesThebifrostPNG, nodesUniartsPNG, nodesUnitnetworkPNG } from '../ui/logos/nodes/index.js';
|
||||
|
||||
export * from './productionRelayKusama';
|
||||
export * from './productionRelayPolkadot';
|
||||
export * from './productionRelayKusama.js';
|
||||
export * from './productionRelayPolkadot.js';
|
||||
|
||||
// The available endpoints that will show in the dropdown. For the most part (with the exception of
|
||||
// Polkadot) we try to keep this to live chains only, with RPCs hosted by the community/chain vendor
|
||||
|
||||
@ -1,12 +1,12 @@
|
||||
// Copyright 2017-2023 @polkadot/apps-config authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { EndpointOption } from './types';
|
||||
import type { EndpointOption } from './types.js';
|
||||
|
||||
import { KUSAMA_GENESIS } from '../api/constants';
|
||||
import { chainsAbandPNG, chainsAltairSVG, chainsAmplitudeSVG, chainsDorafactoryPNG, chainsGenshiroSVG, chainsGmJPEG, chainsKaruraSVG, chainsKicoPNG, chainsKintsugiPNG, chainsKusamaSVG, chainsListenPNG, chainsMangataPNG, chainsRiodefiPNG, chainsShidenPNG, chainsTinkerPNG, chainsTuringPNG, chainsUnorthodoxPNG } from '../ui/logos/chains';
|
||||
import { nodesApronPNG, nodesAresMarsPNG, nodesBajunPNG, nodesBasiliskPNG, nodesBifrostSVG, nodesBitcountryPNG, nodesBridgeHubBlackSVG, nodesCalamariPNG, nodesCrabSVG, nodesDatahighwayPNG, nodesEncointerBlueSVG, nodesImbuePNG, nodesIntegriteeSVG, nodesIpciSVG, nodesKabochaSVG, nodesKhalaSVG, nodesKrestPNG, nodesLitmusPNG, nodesLoomNetworkPNG, nodesMoonriverSVG, nodesParallelSVG, nodesPicassoPNG, nodesPichiuPNG, nodesPolkasmithSVG, nodesQuartzPNG, nodesRobonomicsSVG, nodesSakuraSVG, nodesShadowSVG, nodesSnowPNG, nodesSoraSubstrateSVG, nodesStatemineSVG, nodesSubgameSVG, nodesSubsocialXSVG, nodesTrustbasePNG, nodesZeitgeistPNG, nodesZeroSVG } from '../ui/logos/nodes';
|
||||
import { getTeleports } from './util';
|
||||
import { KUSAMA_GENESIS } from '../api/constants.js';
|
||||
import { chainsAbandPNG, chainsAltairSVG, chainsAmplitudeSVG, chainsDorafactoryPNG, chainsGenshiroSVG, chainsGmJPEG, chainsKaruraSVG, chainsKicoPNG, chainsKintsugiPNG, chainsKusamaSVG, chainsListenPNG, chainsMangataPNG, chainsRiodefiPNG, chainsShidenPNG, chainsTinkerPNG, chainsTuringPNG, chainsUnorthodoxPNG } from '../ui/logos/chains/index.js';
|
||||
import { nodesApronPNG, nodesAresMarsPNG, nodesBajunPNG, nodesBasiliskPNG, nodesBifrostSVG, nodesBitcountryPNG, nodesBridgeHubBlackSVG, nodesCalamariPNG, nodesCrabSVG, nodesDatahighwayPNG, nodesEncointerBlueSVG, nodesImbuePNG, nodesIntegriteeSVG, nodesIpciSVG, nodesKabochaSVG, nodesKhalaSVG, nodesKrestPNG, nodesLitmusPNG, nodesLoomNetworkPNG, nodesMoonriverSVG, nodesParallelSVG, nodesPicassoPNG, nodesPichiuPNG, nodesPolkasmithSVG, nodesQuartzPNG, nodesRobonomicsSVG, nodesSakuraSVG, nodesShadowSVG, nodesSnowPNG, nodesSoraSubstrateSVG, nodesStatemineSVG, nodesSubgameSVG, nodesSubsocialXSVG, nodesTrustbasePNG, nodesZeitgeistPNG, nodesZeroSVG } from '../ui/logos/nodes/index.js';
|
||||
import { getTeleports } from './util.js';
|
||||
|
||||
// The available endpoints that will show in the dropdown. For the most part (with the exception of
|
||||
// Polkadot) we try to keep this to live chains only, with RPCs hosted by the community/chain vendor
|
||||
|
||||
@ -1,12 +1,12 @@
|
||||
// Copyright 2017-2023 @polkadot/apps-config authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { EndpointOption } from './types';
|
||||
import type { EndpointOption } from './types.js';
|
||||
|
||||
import { POLKADOT_GENESIS } from '../api/constants';
|
||||
import { chainsAcalaSVG, chainsBitgreenPNG, chainsComposableFinancePNG, chainsEquilibriumSVG, chainsFrequencySVG, chainsGeminisPNG, chainsOakPNG, chainsOrigintrailPNG, chainsPeaqPNG, chainsPendulumSVG, chainsPolkadotCircleSVG, chainsSnakenetSVG, chainsTotemSVG, chainsWatrPNG } from '../ui/logos/chains';
|
||||
import { nodesAjunaPNG, nodesAresOdysseySVG, nodesAstarPNG, nodesAventusSVG, nodesBifrostSVG, nodesBridgeHubSVG, nodesCentrifugePNG, nodesCloverSVG, nodesCoinversationPNG, nodesCrustParachainSVG, nodesDarwiniaSVG, nodesEfinitySVG, nodesHashedPNG, nodesIntegriteeSVG, nodesInterlaySVG, nodesKiltPNG, nodesKylinPNG, nodesLitentryPNG, nodesMantaPNG, nodesMoonbeamSVG, nodesNodleSVG, nodesOmnibtcSVG, nodesParallelSVG, nodesPhalaSVG, nodesPolkadexSVG, nodesStatemineSVG, nodesSubdaoPNG, nodesSubgameSVG, nodesUniqueSVG } from '../ui/logos/nodes';
|
||||
import { getTeleports } from './util';
|
||||
import { POLKADOT_GENESIS } from '../api/constants.js';
|
||||
import { chainsAcalaSVG, chainsBitgreenPNG, chainsComposableFinancePNG, chainsEquilibriumSVG, chainsFrequencySVG, chainsGeminisPNG, chainsOakPNG, chainsOrigintrailPNG, chainsPeaqPNG, chainsPendulumSVG, chainsPolkadotCircleSVG, chainsSnakenetSVG, chainsTotemSVG, chainsWatrPNG } from '../ui/logos/chains/index.js';
|
||||
import { nodesAjunaPNG, nodesAresOdysseySVG, nodesAstarPNG, nodesAventusSVG, nodesBifrostSVG, nodesBridgeHubSVG, nodesCentrifugePNG, nodesCloverSVG, nodesCoinversationPNG, nodesCrustParachainSVG, nodesDarwiniaSVG, nodesEfinitySVG, nodesHashedPNG, nodesIntegriteeSVG, nodesInterlaySVG, nodesKiltPNG, nodesKylinPNG, nodesLitentryPNG, nodesMantaPNG, nodesMoonbeamSVG, nodesNodleSVG, nodesOmnibtcSVG, nodesParallelSVG, nodesPhalaSVG, nodesPolkadexSVG, nodesStatemineSVG, nodesSubdaoPNG, nodesSubgameSVG, nodesUniqueSVG } from '../ui/logos/nodes/index.js';
|
||||
import { getTeleports } from './util.js';
|
||||
|
||||
// The available endpoints that will show in the dropdown. For the most part (with the exception of
|
||||
// Polkadot) we try to keep this to live chains only, with RPCs hosted by the community/chain vendor
|
||||
|
||||
@ -1,13 +1,13 @@
|
||||
// Copyright 2017-2023 @polkadot/apps-config authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { EndpointOption } from './types';
|
||||
import type { EndpointOption } from './types.js';
|
||||
|
||||
import { chains3dpassPNG, chainsAcalaSVG, chainsAlephSVG, chainsBrainstormPNG, chainsCreditcoinTestPNG, chainsDebioSVG, chainsEquilibriumSVG, chainsFerrumPNG, chainsKintsugiPNG, chainsLogionPNG, chainsMyriadPNG, chainsShidenPNG, chainsSkyekiwiPNG, chainsTanglePNG, chainsVaraSVG } from '../ui/logos/chains';
|
||||
import { nodesAjunaPNG, nodesArcticPNG, nodesAresGladiosSVG, nodesAutomataPNG, nodesBifrostSVG, nodesBitcountryPNG, nodesCessPNG, nodesCloverSVG, nodesCrustMaxwellSVG, nodesDatahighwayPNG, nodesDockPNG, nodesDolphinSVG, nodesDotmogSVG, nodesEdgewareWhitePNG, nodesEncointerBlueSVG, nodesFantourPNG, nodesGalitalLogoPNG, nodesGamepowerSVG, nodesGeekSVG, nodesInterlaySVG, nodesIpsePNG, nodesJazPNG, nodesJupiterSVG, nodesKhalaSVG, nodesKiltPNG, nodesKlugPNG, nodesKylinPNG, nodesLaminarCircleSVG, nodesLitentryPNG, nodesMantaPNG, nodesMathSVG, nodesMinixPNG, nodesMoonbaseAlphaSVG, nodesMybankPNG, nodesNftmartPNG, nodesNodleSVG, nodesOpalLogoPNG, nodesOpportunityPNG, nodesPangoroSVG, nodesPhalaSVG, nodesPhoenixPNG, nodesPichiuPNG, nodesPolkadexSVG, nodesPolkafoundrySVG, nodesPolymeshSVG, nodesPontemSVG, nodesPrismPNG, nodesRealisPNG, nodesRiochainSVG, nodesSherpaxPNG, nodesSoonsocialPNG, nodesSoraSubstrateSVG, nodesSubdaoPNG, nodesSubgameSVG, nodesSubspacePNG, nodesTernoaSVG, nodesThebifrostPNG, nodesUniartsPNG, nodesUniqueSVG, nodesUnitnetworkPNG, nodesWeb3gamesSVG, nodesZCloakSVG, nodesZeitgeistPNG } from '../ui/logos/nodes';
|
||||
import { chains3dpassPNG, chainsAcalaSVG, chainsAlephSVG, chainsBrainstormPNG, chainsCreditcoinTestPNG, chainsDebioSVG, chainsEquilibriumSVG, chainsFerrumPNG, chainsKintsugiPNG, chainsLogionPNG, chainsMyriadPNG, chainsShidenPNG, chainsSkyekiwiPNG, chainsTanglePNG, chainsVaraSVG } from '../ui/logos/chains/index.js';
|
||||
import { nodesAjunaPNG, nodesArcticPNG, nodesAresGladiosSVG, nodesAutomataPNG, nodesBifrostSVG, nodesBitcountryPNG, nodesCessPNG, nodesCloverSVG, nodesCrustMaxwellSVG, nodesDatahighwayPNG, nodesDockPNG, nodesDolphinSVG, nodesDotmogSVG, nodesEdgewareWhitePNG, nodesEncointerBlueSVG, nodesFantourPNG, nodesGalitalLogoPNG, nodesGamepowerSVG, nodesGeekSVG, nodesInterlaySVG, nodesIpsePNG, nodesJazPNG, nodesJupiterSVG, nodesKhalaSVG, nodesKiltPNG, nodesKlugPNG, nodesKylinPNG, nodesLaminarCircleSVG, nodesLitentryPNG, nodesMantaPNG, nodesMathSVG, nodesMinixPNG, nodesMoonbaseAlphaSVG, nodesMybankPNG, nodesNftmartPNG, nodesNodleSVG, nodesOpalLogoPNG, nodesOpportunityPNG, nodesPangoroSVG, nodesPhalaSVG, nodesPhoenixPNG, nodesPichiuPNG, nodesPolkadexSVG, nodesPolkafoundrySVG, nodesPolymeshSVG, nodesPontemSVG, nodesPrismPNG, nodesRealisPNG, nodesRiochainSVG, nodesSherpaxPNG, nodesSoonsocialPNG, nodesSoraSubstrateSVG, nodesSubdaoPNG, nodesSubgameSVG, nodesSubspacePNG, nodesTernoaSVG, nodesThebifrostPNG, nodesUniartsPNG, nodesUniqueSVG, nodesUnitnetworkPNG, nodesWeb3gamesSVG, nodesZCloakSVG, nodesZeitgeistPNG } from '../ui/logos/nodes/index.js';
|
||||
|
||||
export * from './testingRelayRococo';
|
||||
export * from './testingRelayWestend';
|
||||
export * from './testingRelayRococo.js';
|
||||
export * from './testingRelayWestend.js';
|
||||
|
||||
// The available endpoints that will show in the dropdown. For the most part (with the exception of
|
||||
// Polkadot) we try to keep this to live chains only, with RPCs hosted by the community/chain vendor
|
||||
|
||||
@ -1,12 +1,12 @@
|
||||
// Copyright 2017-2023 @polkadot/apps-config authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { EndpointOption } from './types';
|
||||
import type { EndpointOption } from './types.js';
|
||||
|
||||
import { ROCOCO_GENESIS } from '../api/constants';
|
||||
import { chainsAcurastPNG, chainsAmplitudeSVG, chainsBitgreenPNG, chainsFrequencySVG, chainsGenshiroSVG, chainsHydratePNG, chainsIdiyanaleLogoWhiteSVG, chainsJurPNG, chainsMangataPNG, chainsMoonsamaPNG, chainsOrigintrailTestnetPNG, chainsRococoSVG, chainsSnowbridgePNG, chainsT0rnPNG, chainsTanglePNG, chainsTinkerPNG, chainsTotemSVG, chainsTuringPNG, chainsVirtoPNG, chainsWatrPNG } from '../ui/logos/chains';
|
||||
import { nodesArcticPNG, nodesAventusSVG, nodesBajunPNG, nodesBasiliskPNG, nodesBasiliskRococoBgPNG, nodesBifrostSVG, nodesBridgeHubBlackSVG, nodesCentrifugePNG, nodesConftiSVG, nodesCrustParachainSVG, nodesDaliPNG, nodesDatahighwayPNG, nodesDolphinSVG, nodesEncointerBlueSVG, nodesGiantPNG, nodesHelixstreetPNG, nodesImbuePNG, nodesIntegriteeSVG, nodesKabochaSVG, nodesKiltPNG, nodesLitentryPNG, nodesMd5PNG, nodesNodleSVG, nodesOliSVG, nodesPangolinSVG, nodesPolkadexSVG, nodesRobonomicsSVG, nodesRocfinitySVG, nodesSoonsocialXPNG, nodesSoraSubstrateSVG, nodesStatemineSVG, nodesSubstrateContractsNodePNG, nodesUnitnetworkPNG, nodesZeitgeistPNG, nodesZeroSVG } from '../ui/logos/nodes';
|
||||
import { getTeleports } from './util';
|
||||
import { ROCOCO_GENESIS } from '../api/constants.js';
|
||||
import { chainsAcurastPNG, chainsAmplitudeSVG, chainsBitgreenPNG, chainsFrequencySVG, chainsGenshiroSVG, chainsHydratePNG, chainsIdiyanaleLogoWhiteSVG, chainsJurPNG, chainsMangataPNG, chainsMoonsamaPNG, chainsOrigintrailTestnetPNG, chainsRococoSVG, chainsSnowbridgePNG, chainsT0rnPNG, chainsTanglePNG, chainsTinkerPNG, chainsTotemSVG, chainsTuringPNG, chainsVirtoPNG, chainsWatrPNG } from '../ui/logos/chains/index.js';
|
||||
import { nodesArcticPNG, nodesAventusSVG, nodesBajunPNG, nodesBasiliskPNG, nodesBasiliskRococoBgPNG, nodesBifrostSVG, nodesBridgeHubBlackSVG, nodesCentrifugePNG, nodesConftiSVG, nodesCrustParachainSVG, nodesDaliPNG, nodesDatahighwayPNG, nodesDolphinSVG, nodesEncointerBlueSVG, nodesGiantPNG, nodesHelixstreetPNG, nodesImbuePNG, nodesIntegriteeSVG, nodesKabochaSVG, nodesKiltPNG, nodesLitentryPNG, nodesMd5PNG, nodesNodleSVG, nodesOliSVG, nodesPangolinSVG, nodesPolkadexSVG, nodesRobonomicsSVG, nodesRocfinitySVG, nodesSoonsocialXPNG, nodesSoraSubstrateSVG, nodesStatemineSVG, nodesSubstrateContractsNodePNG, nodesUnitnetworkPNG, nodesZeitgeistPNG, nodesZeroSVG } from '../ui/logos/nodes/index.js';
|
||||
import { getTeleports } from './util.js';
|
||||
|
||||
// The available endpoints that will show in the dropdown. For the most part (with the exception of
|
||||
// Polkadot) we try to keep this to live chains only, with RPCs hosted by the community/chain vendor
|
||||
|
||||
@ -1,12 +1,12 @@
|
||||
// Copyright 2017-2023 @polkadot/apps-config authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { EndpointOption } from './types';
|
||||
import type { EndpointOption } from './types.js';
|
||||
|
||||
import { WESTEND_GENESIS } from '../api/constants';
|
||||
import { chainsKaruraSVG, chainsStandardPNG } from '../ui/logos/chains';
|
||||
import { nodesBridgeHubSVG, nodesCentrifugePNG, nodesIntegriteeSVG, nodesInterlaySVG, nodesKhalaSVG, nodesKiltPNG, nodesKylinPNG, nodesMoonshadowPNG, nodesPangoroSVG, nodesStatemineSVG, nodesWestendColourSVG } from '../ui/logos/nodes';
|
||||
import { getTeleports } from './util';
|
||||
import { WESTEND_GENESIS } from '../api/constants.js';
|
||||
import { chainsKaruraSVG, chainsStandardPNG } from '../ui/logos/chains/index.js';
|
||||
import { nodesBridgeHubSVG, nodesCentrifugePNG, nodesIntegriteeSVG, nodesInterlaySVG, nodesKhalaSVG, nodesKiltPNG, nodesKylinPNG, nodesMoonshadowPNG, nodesPangoroSVG, nodesStatemineSVG, nodesWestendColourSVG } from '../ui/logos/nodes/index.js';
|
||||
import { getTeleports } from './util.js';
|
||||
|
||||
// The available endpoints that will show in the dropdown. For the most part (with the exception of
|
||||
// Polkadot) we try to keep this to live chains only, with RPCs hosted by the community/chain vendor
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
// Copyright 2017-2023 @polkadot/apps-config authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { Option } from '../settings/types';
|
||||
import type { Option } from '../settings/types.js';
|
||||
|
||||
interface BaseOption {
|
||||
dnslink?: string;
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
// Copyright 2017-2023 @polkadot/apps-config authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { TFunction } from '../types';
|
||||
import type { EndpointOption, LinkOption } from './types';
|
||||
import type { TFunction } from '../types.js';
|
||||
import type { EndpointOption, LinkOption } from './types.js';
|
||||
|
||||
interface SortOption {
|
||||
isUnreachable?: boolean;
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
// Copyright 2017-2023 @polkadot/apps-config authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { Browser, Extension, Known } from './types';
|
||||
import type { Browser, Extension, Known } from './types.js';
|
||||
|
||||
import { PolkadotJs } from './polkadot-js';
|
||||
import { PolkadotJs } from './polkadot-js.js';
|
||||
|
||||
// The list of known extensions including the links to tem on the store. This is
|
||||
// used when no extensions are actually available, promoting the user to install
|
||||
|
||||
@ -1,10 +1,10 @@
|
||||
// Copyright 2017-2023 @polkadot/apps-config authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { Known } from './types';
|
||||
import type { Known } from './types.js';
|
||||
|
||||
import { extensionsPolkadotJsSVG } from '../ui/logos/extensions';
|
||||
import { externalEmptySVG } from '../ui/logos/external';
|
||||
import { extensionsPolkadotJsSVG } from '../ui/logos/extensions/index.js';
|
||||
import { externalEmptySVG } from '../ui/logos/external/index.js';
|
||||
|
||||
export const PolkadotJs: Known = {
|
||||
all: {
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
// Copyright 2017-2023 @polkadot/apps-config authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
export * from './api';
|
||||
export * from './endpoints';
|
||||
export * from './extensions';
|
||||
export * from './links';
|
||||
export * from './settings';
|
||||
export * from './ui';
|
||||
export * from './api/index.js';
|
||||
export * from './endpoints/index.js';
|
||||
export * from './extensions/index.js';
|
||||
export * from './links/index.js';
|
||||
export * from './settings/index.js';
|
||||
export * from './ui/index.js';
|
||||
|
||||
@ -2,9 +2,9 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { BN } from '@polkadot/util';
|
||||
import type { ExternalDef } from './types';
|
||||
import type { ExternalDef } from './types.js';
|
||||
|
||||
import { externalCommonwealthPNG } from '../ui/logos/external';
|
||||
import { externalCommonwealthPNG } from '../ui/logos/external/index.js';
|
||||
|
||||
const HASH_PATHS = ['proposal/councilmotion'];
|
||||
|
||||
|
||||
@ -2,9 +2,9 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { BN } from '@polkadot/util';
|
||||
import type { ExternalDef } from './types';
|
||||
import type { ExternalDef } from './types.js';
|
||||
|
||||
import { externalDotreasurySVG } from '../ui/logos/external';
|
||||
import { externalDotreasurySVG } from '../ui/logos/external/index.js';
|
||||
|
||||
export const Dotreasury: ExternalDef = {
|
||||
chains: {
|
||||
|
||||
@ -2,9 +2,9 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { BN } from '@polkadot/util';
|
||||
import type { ExternalDef } from './types';
|
||||
import type { ExternalDef } from './types.js';
|
||||
|
||||
import { externalDotscannerPNG } from '../ui/logos/external';
|
||||
import { externalDotscannerPNG } from '../ui/logos/external/index.js';
|
||||
|
||||
export const DotScanner: ExternalDef = {
|
||||
chains: {
|
||||
|
||||
@ -1,20 +1,20 @@
|
||||
// Copyright 2017-2023 @polkadot/apps-config authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { ExternalDef } from './types';
|
||||
import type { ExternalDef } from './types.js';
|
||||
|
||||
import { Commonwealth } from './commonwealth';
|
||||
import { Dotreasury } from './dotreasury';
|
||||
import { DotScanner } from './dotscanner';
|
||||
import { KodaDot } from './kodadot';
|
||||
import { Polkaholic } from './polkaholic';
|
||||
import { Polkascan } from './polkascan';
|
||||
import { PolkassemblyIo, PolkassemblyNetwork } from './polkassembly';
|
||||
import { Singular } from './singular';
|
||||
import { Statescan } from './statescan';
|
||||
import { SubId } from './subid';
|
||||
import { Subscan } from './subscan';
|
||||
import { Subsquare } from './subsquare';
|
||||
import { Commonwealth } from './commonwealth.js';
|
||||
import { Dotreasury } from './dotreasury.js';
|
||||
import { DotScanner } from './dotscanner.js';
|
||||
import { KodaDot } from './kodadot.js';
|
||||
import { Polkaholic } from './polkaholic.js';
|
||||
import { Polkascan } from './polkascan.js';
|
||||
import { PolkassemblyIo, PolkassemblyNetwork } from './polkassembly.js';
|
||||
import { Singular } from './singular.js';
|
||||
import { Statescan } from './statescan.js';
|
||||
import { SubId } from './subid.js';
|
||||
import { Subscan } from './subscan.js';
|
||||
import { Subsquare } from './subsquare.js';
|
||||
|
||||
export const externalLinks: Record<string, ExternalDef> = {
|
||||
Commonwealth,
|
||||
|
||||
@ -2,9 +2,9 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { BN } from '@polkadot/util';
|
||||
import type { ExternalDef } from './types';
|
||||
import type { ExternalDef } from './types.js';
|
||||
|
||||
import { externalKodadotPNG } from '../ui/logos/external';
|
||||
import { externalKodadotPNG } from '../ui/logos/external/index.js';
|
||||
|
||||
const getNetwork = (_chain: string) => {
|
||||
const chain = _chain === 'kusama' ? 'rmrk' : _chain;
|
||||
|
||||
@ -2,9 +2,9 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { BN } from '@polkadot/util';
|
||||
import type { ExternalDef } from './types';
|
||||
import type { ExternalDef } from './types.js';
|
||||
|
||||
import { externalPolkaholicPNG } from '../ui/logos/external';
|
||||
import { externalPolkaholicPNG } from '../ui/logos/external/index.js';
|
||||
|
||||
export const Polkaholic: ExternalDef = {
|
||||
chains: {
|
||||
|
||||
@ -2,9 +2,9 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { BN } from '@polkadot/util';
|
||||
import type { ExternalDef } from './types';
|
||||
import type { ExternalDef } from './types.js';
|
||||
|
||||
import { externalPolkascanPNG } from '../ui/logos/external';
|
||||
import { externalPolkascanPNG } from '../ui/logos/external/index.js';
|
||||
|
||||
export const Polkascan: ExternalDef = {
|
||||
chains: {
|
||||
|
||||
@ -2,9 +2,9 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { BN } from '@polkadot/util';
|
||||
import type { ExternalDef } from './types';
|
||||
import type { ExternalDef } from './types.js';
|
||||
|
||||
import { externalPolkassemblyPNG } from '../ui/logos/external';
|
||||
import { externalPolkassemblyPNG } from '../ui/logos/external/index.js';
|
||||
|
||||
export const PolkassemblyIo: ExternalDef = {
|
||||
chains: {
|
||||
|
||||
@ -2,9 +2,9 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { BN } from '@polkadot/util';
|
||||
import type { ExternalDef } from './types';
|
||||
import type { ExternalDef } from './types.js';
|
||||
|
||||
import { externalPolkastatsPNG } from '../ui/logos/external';
|
||||
import { externalPolkastatsPNG } from '../ui/logos/external/index.js';
|
||||
|
||||
// NOTE Not maintained, see breakage reports in
|
||||
// https://github.com/polkadot-js/apps/issues/8903
|
||||
|
||||
@ -2,9 +2,9 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { BN } from '@polkadot/util';
|
||||
import type { ExternalDef } from './types';
|
||||
import type { ExternalDef } from './types.js';
|
||||
|
||||
import { externalSingularSVG } from '../ui/logos/external';
|
||||
import { externalSingularSVG } from '../ui/logos/external/index.js';
|
||||
|
||||
const getNetwork = (_chain: string) => {
|
||||
switch (_chain) {
|
||||
|
||||
@ -2,9 +2,9 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { BN } from '@polkadot/util';
|
||||
import type { ExternalDef } from './types';
|
||||
import type { ExternalDef } from './types.js';
|
||||
|
||||
import { externalStatescanSVG } from '../ui/logos/external';
|
||||
import { externalStatescanSVG } from '../ui/logos/external/index.js';
|
||||
|
||||
export const Statescan: ExternalDef = {
|
||||
chains: {
|
||||
|
||||
@ -2,9 +2,9 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { BN } from '@polkadot/util';
|
||||
import type { ExternalDef } from './types';
|
||||
import type { ExternalDef } from './types.js';
|
||||
|
||||
import { externalSubidSVG } from '../ui/logos/external';
|
||||
import { externalSubidSVG } from '../ui/logos/external/index.js';
|
||||
|
||||
export const SubId: ExternalDef = {
|
||||
chains: {
|
||||
|
||||
@ -2,9 +2,9 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { BN } from '@polkadot/util';
|
||||
import type { ExternalDef } from './types';
|
||||
import type { ExternalDef } from './types.js';
|
||||
|
||||
import { externalSubscanPNG } from '../ui/logos/external';
|
||||
import { externalSubscanPNG } from '../ui/logos/external/index.js';
|
||||
|
||||
export const Subscan: ExternalDef = {
|
||||
chains: {
|
||||
|
||||
@ -2,9 +2,9 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { BN } from '@polkadot/util';
|
||||
import type { ExternalDef } from './types';
|
||||
import type { ExternalDef } from './types.js';
|
||||
|
||||
import { externalSubsquareSVG } from '../ui/logos/external';
|
||||
import { externalSubsquareSVG } from '../ui/logos/external/index.js';
|
||||
|
||||
export const Subsquare: ExternalDef = {
|
||||
chains: {
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
// Copyright 2017-2023 @polkadot/apps-config authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
export * from './ethereumChains';
|
||||
export * from './languages';
|
||||
export * from './ss58';
|
||||
export * from './ethereumChains.js';
|
||||
export * from './languages.js';
|
||||
export * from './ss58.js';
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
// Copyright 2017-2023 @polkadot/apps-config authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { TFunction } from '../types';
|
||||
import type { Option } from './types';
|
||||
import type { TFunction } from '../types.js';
|
||||
import type { Option } from './types.js';
|
||||
|
||||
export function createLanguages (t: TFunction): Option[] {
|
||||
return [
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
// Copyright 2017-2023 @polkadot/ui-settings authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { TFunction } from '../types';
|
||||
import type { Option } from './types';
|
||||
import type { TFunction } from '../types.js';
|
||||
import type { Option } from './types.js';
|
||||
|
||||
import { selectableNetworks } from '@polkadot/networks';
|
||||
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
// Copyright 2017-2023 @polkadot/apps-config authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import { identityNodes, identitySpec } from './identityIcons';
|
||||
import { sanitize } from './util';
|
||||
import { identityNodes, identitySpec } from './identityIcons/index.js';
|
||||
import { sanitize } from './util.js';
|
||||
|
||||
export function getSystemIcon (systemName: string, specName: string): 'beachball' | 'polkadot' | 'substrate' {
|
||||
return (
|
||||
|
||||
@ -3,62 +3,62 @@
|
||||
|
||||
// Do not edit. Auto-generated via node scripts/imgConvert.mjs
|
||||
|
||||
export { chains3dpassPNG } from './generated/3dpassPNG';
|
||||
export { chainsAbandPNG } from './generated/abandPNG';
|
||||
export { chainsAcalaSVG } from './generated/acalaSVG';
|
||||
export { chainsAcurastPNG } from './generated/acurastPNG';
|
||||
export { chainsAlephSVG } from './generated/alephSVG';
|
||||
export { chainsAltairSVG } from './generated/altairSVG';
|
||||
export { chainsAmplitudeSVG } from './generated/amplitudeSVG';
|
||||
export { chainsBitgreenPNG } from './generated/bitgreenPNG';
|
||||
export { chainsBittensorPNG } from './generated/bittensorPNG';
|
||||
export { chainsBrainstormPNG } from './generated/brainstormPNG';
|
||||
export { chainsComposableFinancePNG } from './generated/composableFinancePNG';
|
||||
export { chainsCreditcoinPNG } from './generated/creditcoinPNG';
|
||||
export { chainsCreditcoinTestPNG } from './generated/creditcoin-testPNG';
|
||||
export { chainsDebioSVG } from './generated/debioSVG';
|
||||
export { chainsDorafactoryPNG } from './generated/dorafactoryPNG';
|
||||
export { chainsDustyPNG } from './generated/dustyPNG';
|
||||
export { chainsEquilibriumSVG } from './generated/equilibriumSVG';
|
||||
export { chainsFerrumPNG } from './generated/ferrumPNG';
|
||||
export { chainsFrequencySVG } from './generated/frequencySVG';
|
||||
export { chainsGeminisPNG } from './generated/geminisPNG';
|
||||
export { chainsGenshiroSVG } from './generated/genshiroSVG';
|
||||
export { chainsGmJPEG } from './generated/gmJPEG';
|
||||
export { chainsHydratePNG } from './generated/hydratePNG';
|
||||
export { chainsIdiyanaleLogoWhiteSVG } from './generated/idiyanale_logo_whiteSVG';
|
||||
export { chainsJurPNG } from './generated/jurPNG';
|
||||
export { chainsKaruraSVG } from './generated/karuraSVG';
|
||||
export { chainsKicoPNG } from './generated/kicoPNG';
|
||||
export { chainsKintsugiPNG } from './generated/kintsugiPNG';
|
||||
export { chainsKusamaSVG } from './generated/kusamaSVG';
|
||||
export { chainsListenPNG } from './generated/listenPNG';
|
||||
export { chainsLogionPNG } from './generated/logionPNG';
|
||||
export { chainsMangataPNG } from './generated/mangataPNG';
|
||||
export { chainsMangataxPNG } from './generated/mangataxPNG';
|
||||
export { chainsMoonsamaPNG } from './generated/moonsamaPNG';
|
||||
export { chainsMyriadPNG } from './generated/myriadPNG';
|
||||
export { chainsOakPNG } from './generated/oakPNG';
|
||||
export { chainsOrigintrailPNG } from './generated/origintrailPNG';
|
||||
export { chainsOrigintrailTestnetPNG } from './generated/origintrail-testnetPNG';
|
||||
export { chainsPeaqPNG } from './generated/peaqPNG';
|
||||
export { chainsPendulumSVG } from './generated/pendulumSVG';
|
||||
export { chainsPicassoSVG } from './generated/picassoSVG';
|
||||
export { chainsPolkadotCircleSVG } from './generated/polkadot-circleSVG';
|
||||
export { chainsRiodefiPNG } from './generated/riodefiPNG';
|
||||
export { chainsRococoSVG } from './generated/rococoSVG';
|
||||
export { chainsShidenPNG } from './generated/shidenPNG';
|
||||
export { chainsSkyekiwiPNG } from './generated/skyekiwiPNG';
|
||||
export { chainsSnakenetSVG } from './generated/snakenetSVG';
|
||||
export { chainsSnowbridgePNG } from './generated/snowbridgePNG';
|
||||
export { chainsSpannerPNG } from './generated/spannerPNG';
|
||||
export { chainsStandardPNG } from './generated/standardPNG';
|
||||
export { chainsT0rnPNG } from './generated/t0rnPNG';
|
||||
export { chainsTanglePNG } from './generated/tanglePNG';
|
||||
export { chainsTinkerPNG } from './generated/tinkerPNG';
|
||||
export { chainsTotemSVG } from './generated/totemSVG';
|
||||
export { chainsTuringPNG } from './generated/turingPNG';
|
||||
export { chainsUnorthodoxPNG } from './generated/unorthodoxPNG';
|
||||
export { chainsVaraSVG } from './generated/varaSVG';
|
||||
export { chainsVirtoPNG } from './generated/virtoPNG';
|
||||
export { chainsWatrPNG } from './generated/watrPNG';
|
||||
export { chains3dpassPNG } from './generated/3dpassPNG.js';
|
||||
export { chainsAbandPNG } from './generated/abandPNG.js';
|
||||
export { chainsAcalaSVG } from './generated/acalaSVG.js';
|
||||
export { chainsAcurastPNG } from './generated/acurastPNG.js';
|
||||
export { chainsAlephSVG } from './generated/alephSVG.js';
|
||||
export { chainsAltairSVG } from './generated/altairSVG.js';
|
||||
export { chainsAmplitudeSVG } from './generated/amplitudeSVG.js';
|
||||
export { chainsBitgreenPNG } from './generated/bitgreenPNG.js';
|
||||
export { chainsBittensorPNG } from './generated/bittensorPNG.js';
|
||||
export { chainsBrainstormPNG } from './generated/brainstormPNG.js';
|
||||
export { chainsComposableFinancePNG } from './generated/composableFinancePNG.js';
|
||||
export { chainsCreditcoinPNG } from './generated/creditcoinPNG.js';
|
||||
export { chainsCreditcoinTestPNG } from './generated/creditcoin-testPNG.js';
|
||||
export { chainsDebioSVG } from './generated/debioSVG.js';
|
||||
export { chainsDorafactoryPNG } from './generated/dorafactoryPNG.js';
|
||||
export { chainsDustyPNG } from './generated/dustyPNG.js';
|
||||
export { chainsEquilibriumSVG } from './generated/equilibriumSVG.js';
|
||||
export { chainsFerrumPNG } from './generated/ferrumPNG.js';
|
||||
export { chainsFrequencySVG } from './generated/frequencySVG.js';
|
||||
export { chainsGeminisPNG } from './generated/geminisPNG.js';
|
||||
export { chainsGenshiroSVG } from './generated/genshiroSVG.js';
|
||||
export { chainsGmJPEG } from './generated/gmJPEG.js';
|
||||
export { chainsHydratePNG } from './generated/hydratePNG.js';
|
||||
export { chainsIdiyanaleLogoWhiteSVG } from './generated/idiyanale_logo_whiteSVG.js';
|
||||
export { chainsJurPNG } from './generated/jurPNG.js';
|
||||
export { chainsKaruraSVG } from './generated/karuraSVG.js';
|
||||
export { chainsKicoPNG } from './generated/kicoPNG.js';
|
||||
export { chainsKintsugiPNG } from './generated/kintsugiPNG.js';
|
||||
export { chainsKusamaSVG } from './generated/kusamaSVG.js';
|
||||
export { chainsListenPNG } from './generated/listenPNG.js';
|
||||
export { chainsLogionPNG } from './generated/logionPNG.js';
|
||||
export { chainsMangataPNG } from './generated/mangataPNG.js';
|
||||
export { chainsMangataxPNG } from './generated/mangataxPNG.js';
|
||||
export { chainsMoonsamaPNG } from './generated/moonsamaPNG.js';
|
||||
export { chainsMyriadPNG } from './generated/myriadPNG.js';
|
||||
export { chainsOakPNG } from './generated/oakPNG.js';
|
||||
export { chainsOrigintrailPNG } from './generated/origintrailPNG.js';
|
||||
export { chainsOrigintrailTestnetPNG } from './generated/origintrail-testnetPNG.js';
|
||||
export { chainsPeaqPNG } from './generated/peaqPNG.js';
|
||||
export { chainsPendulumSVG } from './generated/pendulumSVG.js';
|
||||
export { chainsPicassoSVG } from './generated/picassoSVG.js';
|
||||
export { chainsPolkadotCircleSVG } from './generated/polkadot-circleSVG.js';
|
||||
export { chainsRiodefiPNG } from './generated/riodefiPNG.js';
|
||||
export { chainsRococoSVG } from './generated/rococoSVG.js';
|
||||
export { chainsShidenPNG } from './generated/shidenPNG.js';
|
||||
export { chainsSkyekiwiPNG } from './generated/skyekiwiPNG.js';
|
||||
export { chainsSnakenetSVG } from './generated/snakenetSVG.js';
|
||||
export { chainsSnowbridgePNG } from './generated/snowbridgePNG.js';
|
||||
export { chainsSpannerPNG } from './generated/spannerPNG.js';
|
||||
export { chainsStandardPNG } from './generated/standardPNG.js';
|
||||
export { chainsT0rnPNG } from './generated/t0rnPNG.js';
|
||||
export { chainsTanglePNG } from './generated/tanglePNG.js';
|
||||
export { chainsTinkerPNG } from './generated/tinkerPNG.js';
|
||||
export { chainsTotemSVG } from './generated/totemSVG.js';
|
||||
export { chainsTuringPNG } from './generated/turingPNG.js';
|
||||
export { chainsUnorthodoxPNG } from './generated/unorthodoxPNG.js';
|
||||
export { chainsVaraSVG } from './generated/varaSVG.js';
|
||||
export { chainsVirtoPNG } from './generated/virtoPNG.js';
|
||||
export { chainsWatrPNG } from './generated/watrPNG.js';
|
||||
|
||||
@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit. Auto-generated via node scripts/imgConvert.mjs
|
||||
|
||||
export { extensionsPolkadotJsSVG } from './generated/polkadot-jsSVG';
|
||||
export { extensionsPolkadotJsSVG } from './generated/polkadot-jsSVG.js';
|
||||
|
||||
@ -3,17 +3,17 @@
|
||||
|
||||
// Do not edit. Auto-generated via node scripts/imgConvert.mjs
|
||||
|
||||
export { externalCommonwealthPNG } from './generated/commonwealthPNG';
|
||||
export { externalDotreasurySVG } from './generated/dotreasurySVG';
|
||||
export { externalDotscannerPNG } from './generated/dotscannerPNG';
|
||||
export { externalEmptySVG } from './generated/emptySVG';
|
||||
export { externalKodadotPNG } from './generated/kodadotPNG';
|
||||
export { externalPolkaholicPNG } from './generated/polkaholicPNG';
|
||||
export { externalPolkascanPNG } from './generated/polkascanPNG';
|
||||
export { externalPolkassemblyPNG } from './generated/polkassemblyPNG';
|
||||
export { externalPolkastatsPNG } from './generated/polkastatsPNG';
|
||||
export { externalSingularSVG } from './generated/singularSVG';
|
||||
export { externalStatescanSVG } from './generated/statescanSVG';
|
||||
export { externalSubidSVG } from './generated/subidSVG';
|
||||
export { externalSubscanPNG } from './generated/subscanPNG';
|
||||
export { externalSubsquareSVG } from './generated/subsquareSVG';
|
||||
export { externalCommonwealthPNG } from './generated/commonwealthPNG.js';
|
||||
export { externalDotreasurySVG } from './generated/dotreasurySVG.js';
|
||||
export { externalDotscannerPNG } from './generated/dotscannerPNG.js';
|
||||
export { externalEmptySVG } from './generated/emptySVG.js';
|
||||
export { externalKodadotPNG } from './generated/kodadotPNG.js';
|
||||
export { externalPolkaholicPNG } from './generated/polkaholicPNG.js';
|
||||
export { externalPolkascanPNG } from './generated/polkascanPNG.js';
|
||||
export { externalPolkassemblyPNG } from './generated/polkassemblyPNG.js';
|
||||
export { externalPolkastatsPNG } from './generated/polkastatsPNG.js';
|
||||
export { externalSingularSVG } from './generated/singularSVG.js';
|
||||
export { externalStatescanSVG } from './generated/statescanSVG.js';
|
||||
export { externalSubidSVG } from './generated/subidSVG.js';
|
||||
export { externalSubscanPNG } from './generated/subscanPNG.js';
|
||||
export { externalSubsquareSVG } from './generated/subsquareSVG.js';
|
||||
|
||||
@ -3,148 +3,148 @@
|
||||
|
||||
// Do not edit. Auto-generated via node scripts/imgConvert.mjs
|
||||
|
||||
export { nodesAjunaPNG } from './generated/ajunaPNG';
|
||||
export { nodesApronPNG } from './generated/apronPNG';
|
||||
export { nodesArcticPNG } from './generated/arcticPNG';
|
||||
export { nodesAresGladiosSVG } from './generated/ares-gladiosSVG';
|
||||
export { nodesAresMarsPNG } from './generated/ares-marsPNG';
|
||||
export { nodesAresOdysseySVG } from './generated/ares-odysseySVG';
|
||||
export { nodesAresPNG } from './generated/aresPNG';
|
||||
export { nodesAstarPNG } from './generated/astarPNG';
|
||||
export { nodesAutomataPNG } from './generated/automataPNG';
|
||||
export { nodesAventusSVG } from './generated/aventusSVG';
|
||||
export { nodesBajunPNG } from './generated/bajunPNG';
|
||||
export { nodesBasiliskPNG } from './generated/basiliskPNG';
|
||||
export { nodesBasiliskRococoBgPNG } from './generated/basilisk-rococo-bgPNG';
|
||||
export { nodesBeastSVG } from './generated/beastSVG';
|
||||
export { nodesBifrostSVG } from './generated/bifrostSVG';
|
||||
export { nodesBitcountryPNG } from './generated/bitcountryPNG';
|
||||
export { nodesBridgeHubBlackSVG } from './generated/bridgeHubBlackSVG';
|
||||
export { nodesBridgeHubSVG } from './generated/bridgeHubSVG';
|
||||
export { nodesCalamariPNG } from './generated/calamariPNG';
|
||||
export { nodesCentrifugePNG } from './generated/centrifugePNG';
|
||||
export { nodesCessPNG } from './generated/cessPNG';
|
||||
export { nodesChainxSVG } from './generated/chainxSVG';
|
||||
export { nodesCloverSVG } from './generated/cloverSVG';
|
||||
export { nodesCoinversationPNG } from './generated/coinversationPNG';
|
||||
export { nodesCompetitorsClubPNG } from './generated/competitors-clubPNG';
|
||||
export { nodesConftiSVG } from './generated/conftiSVG';
|
||||
export { nodesCrabSVG } from './generated/crabSVG';
|
||||
export { nodesCrownSterlingPNG } from './generated/crown-sterlingPNG';
|
||||
export { nodesCrustMaxwellSVG } from './generated/crust-maxwellSVG';
|
||||
export { nodesCrustParachainSVG } from './generated/crustParachainSVG';
|
||||
export { nodesCrustSVG } from './generated/crustSVG';
|
||||
export { nodesDaliPNG } from './generated/daliPNG';
|
||||
export { nodesDarwiniaSVG } from './generated/darwiniaSVG';
|
||||
export { nodesDatahighwayPNG } from './generated/datahighwayPNG';
|
||||
export { nodesDockPNG } from './generated/dockPNG';
|
||||
export { nodesDolphinSVG } from './generated/dolphinSVG';
|
||||
export { nodesDotmogSVG } from './generated/dotmogSVG';
|
||||
export { nodesEaveSVG } from './generated/eaveSVG';
|
||||
export { nodesEdgewareWhitePNG } from './generated/edgeware-whitePNG';
|
||||
export { nodesEfinitySVG } from './generated/efinitySVG';
|
||||
export { nodesEncointerBlueSVG } from './generated/encointer-blueSVG';
|
||||
export { nodesFantourPNG } from './generated/fantourPNG';
|
||||
export { nodesGalitalLogoPNG } from './generated/galital-logoPNG';
|
||||
export { nodesGamepowerSVG } from './generated/gamepowerSVG';
|
||||
export { nodesGeekSVG } from './generated/geekSVG';
|
||||
export { nodesGiantPNG } from './generated/giantPNG';
|
||||
export { nodesHanyonycashPNG } from './generated/hanyonycashPNG';
|
||||
export { nodesHashedPNG } from './generated/hashedPNG';
|
||||
export { nodesHelixstreetPNG } from './generated/helixstreetPNG';
|
||||
export { nodesHumanodePNG } from './generated/humanodePNG';
|
||||
export { nodesIdavollPNG } from './generated/idavollPNG';
|
||||
export { nodesImbuePNG } from './generated/imbuePNG';
|
||||
export { nodesIntegriteeSVG } from './generated/integriteeSVG';
|
||||
export { nodesInterlaySVG } from './generated/interlaySVG';
|
||||
export { nodesIpciSVG } from './generated/ipciSVG';
|
||||
export { nodesIpsePNG } from './generated/ipsePNG';
|
||||
export { nodesIpseSVG } from './generated/ipseSVG';
|
||||
export { nodesJazPNG } from './generated/jazPNG';
|
||||
export { nodesJoystreamSVG } from './generated/joystreamSVG';
|
||||
export { nodesJupiterSVG } from './generated/jupiterSVG';
|
||||
export { nodesKabochaSVG } from './generated/kabochaSVG';
|
||||
export { nodesKhalaSVG } from './generated/khalaSVG';
|
||||
export { nodesKiltPNG } from './generated/kiltPNG';
|
||||
export { nodesKlugPNG } from './generated/klugPNG';
|
||||
export { nodesKonomiPNG } from './generated/konomiPNG';
|
||||
export { nodesKrestPNG } from './generated/krestPNG';
|
||||
export { nodesKulupuSVG } from './generated/kulupuSVG';
|
||||
export { nodesKusariSVG } from './generated/kusariSVG';
|
||||
export { nodesKylinPNG } from './generated/kylinPNG';
|
||||
export { nodesLaminarCircleSVG } from './generated/laminar-circleSVG';
|
||||
export { nodesLitentryPNG } from './generated/litentryPNG';
|
||||
export { nodesLitmusPNG } from './generated/litmusPNG';
|
||||
export { nodesLoomNetworkPNG } from './generated/loom_networkPNG';
|
||||
export { nodesMantaPNG } from './generated/mantaPNG';
|
||||
export { nodesMathSVG } from './generated/mathSVG';
|
||||
export { nodesMd5PNG } from './generated/md5PNG';
|
||||
export { nodesMinixPNG } from './generated/minixPNG';
|
||||
export { nodesMoonbaseAlphaSVG } from './generated/moonbase_alphaSVG';
|
||||
export { nodesMoonbeamSVG } from './generated/moonbeamSVG';
|
||||
export { nodesMoonriverSVG } from './generated/moonriverSVG';
|
||||
export { nodesMoonrockPNG } from './generated/moonrockPNG';
|
||||
export { nodesMoonshadowPNG } from './generated/moonshadowPNG';
|
||||
export { nodesMybankPNG } from './generated/mybankPNG';
|
||||
export { nodesNftmartPNG } from './generated/nftmartPNG';
|
||||
export { nodesNodleSVG } from './generated/nodleSVG';
|
||||
export { nodesOliSVG } from './generated/oliSVG';
|
||||
export { nodesOmnibtcSVG } from './generated/omnibtcSVG';
|
||||
export { nodesOpalLogoPNG } from './generated/opal-logoPNG';
|
||||
export { nodesOpportunityPNG } from './generated/opportunityPNG';
|
||||
export { nodesPangolinSVG } from './generated/pangolinSVG';
|
||||
export { nodesPangoroSVG } from './generated/pangoroSVG';
|
||||
export { nodesParallelSVG } from './generated/parallelSVG';
|
||||
export { nodesParamiJPEG } from './generated/paramiJPEG';
|
||||
export { nodesPhalaSVG } from './generated/phalaSVG';
|
||||
export { nodesPhoenixPNG } from './generated/phoenixPNG';
|
||||
export { nodesPicassoPNG } from './generated/picassoPNG';
|
||||
export { nodesPichiuPNG } from './generated/pichiuPNG';
|
||||
export { nodesPlasmPNG } from './generated/plasmPNG';
|
||||
export { nodesPolkadexSVG } from './generated/polkadexSVG';
|
||||
export { nodesPolkafoundrySVG } from './generated/polkafoundrySVG';
|
||||
export { nodesPolkasmithSVG } from './generated/polkasmithSVG';
|
||||
export { nodesPolymeshSVG } from './generated/polymeshSVG';
|
||||
export { nodesPontemSVG } from './generated/pontemSVG';
|
||||
export { nodesPrismPNG } from './generated/prismPNG';
|
||||
export { nodesQuartzPNG } from './generated/quartzPNG';
|
||||
export { nodesRealisPNG } from './generated/realisPNG';
|
||||
export { nodesRiochainSVG } from './generated/riochainSVG';
|
||||
export { nodesRobonomicsSVG } from './generated/robonomicsSVG';
|
||||
export { nodesRocfinitySVG } from './generated/rocfinitySVG';
|
||||
export { nodesSakuraSVG } from './generated/sakuraSVG';
|
||||
export { nodesShadowSVG } from './generated/shadowSVG';
|
||||
export { nodesShellSVG } from './generated/shellSVG';
|
||||
export { nodesSherpaxPNG } from './generated/sherpaxPNG';
|
||||
export { nodesSinglavenderSVG } from './generated/singlavenderSVG';
|
||||
export { nodesSnowPNG } from './generated/snowPNG';
|
||||
export { nodesSoonsocialPNG } from './generated/soonsocialPNG';
|
||||
export { nodesSoonsocialXPNG } from './generated/soonsocialXPNG';
|
||||
export { nodesSoraSubstrateSVG } from './generated/sora-substrateSVG';
|
||||
export { nodesStafiPNG } from './generated/stafiPNG';
|
||||
export { nodesStatemineSVG } from './generated/statemineSVG';
|
||||
export { nodesSubdaoPNG } from './generated/subdaoPNG';
|
||||
export { nodesSubgameSVG } from './generated/subgameSVG';
|
||||
export { nodesSubsocialSVG } from './generated/subsocialSVG';
|
||||
export { nodesSubsocialXSVG } from './generated/subsocialXSVG';
|
||||
export { nodesSubspacePNG } from './generated/subspacePNG';
|
||||
export { nodesSubstrateCircleSVG } from './generated/substrate-circleSVG';
|
||||
export { nodesSubstrateContractsNodePNG } from './generated/substrate-contracts-nodePNG';
|
||||
export { nodesSubstrateHexagonSVG } from './generated/substrate-hexagonSVG';
|
||||
export { nodesSubstrateWhiteSVG } from './generated/substrate-whiteSVG';
|
||||
export { nodesSwapdexSVG } from './generated/swapdexSVG';
|
||||
export { nodesTernoaSVG } from './generated/ternoaSVG';
|
||||
export { nodesThebifrostPNG } from './generated/thebifrostPNG';
|
||||
export { nodesTrustbasePNG } from './generated/trustbasePNG';
|
||||
export { nodesUniartsPNG } from './generated/uniartsPNG';
|
||||
export { nodesUniqueSVG } from './generated/uniqueSVG';
|
||||
export { nodesUnitnetworkPNG } from './generated/unitnetworkPNG';
|
||||
export { nodesUnitvPNG } from './generated/unitvPNG';
|
||||
export { nodesValiuPNG } from './generated/valiuPNG';
|
||||
export { nodesVaraSVG } from './generated/varaSVG';
|
||||
export { nodesWeb3gamesSVG } from './generated/web3gamesSVG';
|
||||
export { nodesWestendColourSVG } from './generated/westend_colourSVG';
|
||||
export { nodesZCloakSVG } from './generated/zCloakSVG';
|
||||
export { nodesZeitgeistPNG } from './generated/zeitgeistPNG';
|
||||
export { nodesZenlinkSVG } from './generated/zenlinkSVG';
|
||||
export { nodesZeroSVG } from './generated/zeroSVG';
|
||||
export { nodesAjunaPNG } from './generated/ajunaPNG.js';
|
||||
export { nodesApronPNG } from './generated/apronPNG.js';
|
||||
export { nodesArcticPNG } from './generated/arcticPNG.js';
|
||||
export { nodesAresGladiosSVG } from './generated/ares-gladiosSVG.js';
|
||||
export { nodesAresMarsPNG } from './generated/ares-marsPNG.js';
|
||||
export { nodesAresOdysseySVG } from './generated/ares-odysseySVG.js';
|
||||
export { nodesAresPNG } from './generated/aresPNG.js';
|
||||
export { nodesAstarPNG } from './generated/astarPNG.js';
|
||||
export { nodesAutomataPNG } from './generated/automataPNG.js';
|
||||
export { nodesAventusSVG } from './generated/aventusSVG.js';
|
||||
export { nodesBajunPNG } from './generated/bajunPNG.js';
|
||||
export { nodesBasiliskPNG } from './generated/basiliskPNG.js';
|
||||
export { nodesBasiliskRococoBgPNG } from './generated/basilisk-rococo-bgPNG.js';
|
||||
export { nodesBeastSVG } from './generated/beastSVG.js';
|
||||
export { nodesBifrostSVG } from './generated/bifrostSVG.js';
|
||||
export { nodesBitcountryPNG } from './generated/bitcountryPNG.js';
|
||||
export { nodesBridgeHubBlackSVG } from './generated/bridgeHubBlackSVG.js';
|
||||
export { nodesBridgeHubSVG } from './generated/bridgeHubSVG.js';
|
||||
export { nodesCalamariPNG } from './generated/calamariPNG.js';
|
||||
export { nodesCentrifugePNG } from './generated/centrifugePNG.js';
|
||||
export { nodesCessPNG } from './generated/cessPNG.js';
|
||||
export { nodesChainxSVG } from './generated/chainxSVG.js';
|
||||
export { nodesCloverSVG } from './generated/cloverSVG.js';
|
||||
export { nodesCoinversationPNG } from './generated/coinversationPNG.js';
|
||||
export { nodesCompetitorsClubPNG } from './generated/competitors-clubPNG.js';
|
||||
export { nodesConftiSVG } from './generated/conftiSVG.js';
|
||||
export { nodesCrabSVG } from './generated/crabSVG.js';
|
||||
export { nodesCrownSterlingPNG } from './generated/crown-sterlingPNG.js';
|
||||
export { nodesCrustMaxwellSVG } from './generated/crust-maxwellSVG.js';
|
||||
export { nodesCrustParachainSVG } from './generated/crustParachainSVG.js';
|
||||
export { nodesCrustSVG } from './generated/crustSVG.js';
|
||||
export { nodesDaliPNG } from './generated/daliPNG.js';
|
||||
export { nodesDarwiniaSVG } from './generated/darwiniaSVG.js';
|
||||
export { nodesDatahighwayPNG } from './generated/datahighwayPNG.js';
|
||||
export { nodesDockPNG } from './generated/dockPNG.js';
|
||||
export { nodesDolphinSVG } from './generated/dolphinSVG.js';
|
||||
export { nodesDotmogSVG } from './generated/dotmogSVG.js';
|
||||
export { nodesEaveSVG } from './generated/eaveSVG.js';
|
||||
export { nodesEdgewareWhitePNG } from './generated/edgeware-whitePNG.js';
|
||||
export { nodesEfinitySVG } from './generated/efinitySVG.js';
|
||||
export { nodesEncointerBlueSVG } from './generated/encointer-blueSVG.js';
|
||||
export { nodesFantourPNG } from './generated/fantourPNG.js';
|
||||
export { nodesGalitalLogoPNG } from './generated/galital-logoPNG.js';
|
||||
export { nodesGamepowerSVG } from './generated/gamepowerSVG.js';
|
||||
export { nodesGeekSVG } from './generated/geekSVG.js';
|
||||
export { nodesGiantPNG } from './generated/giantPNG.js';
|
||||
export { nodesHanyonycashPNG } from './generated/hanyonycashPNG.js';
|
||||
export { nodesHashedPNG } from './generated/hashedPNG.js';
|
||||
export { nodesHelixstreetPNG } from './generated/helixstreetPNG.js';
|
||||
export { nodesHumanodePNG } from './generated/humanodePNG.js';
|
||||
export { nodesIdavollPNG } from './generated/idavollPNG.js';
|
||||
export { nodesImbuePNG } from './generated/imbuePNG.js';
|
||||
export { nodesIntegriteeSVG } from './generated/integriteeSVG.js';
|
||||
export { nodesInterlaySVG } from './generated/interlaySVG.js';
|
||||
export { nodesIpciSVG } from './generated/ipciSVG.js';
|
||||
export { nodesIpsePNG } from './generated/ipsePNG.js';
|
||||
export { nodesIpseSVG } from './generated/ipseSVG.js';
|
||||
export { nodesJazPNG } from './generated/jazPNG.js';
|
||||
export { nodesJoystreamSVG } from './generated/joystreamSVG.js';
|
||||
export { nodesJupiterSVG } from './generated/jupiterSVG.js';
|
||||
export { nodesKabochaSVG } from './generated/kabochaSVG.js';
|
||||
export { nodesKhalaSVG } from './generated/khalaSVG.js';
|
||||
export { nodesKiltPNG } from './generated/kiltPNG.js';
|
||||
export { nodesKlugPNG } from './generated/klugPNG.js';
|
||||
export { nodesKonomiPNG } from './generated/konomiPNG.js';
|
||||
export { nodesKrestPNG } from './generated/krestPNG.js';
|
||||
export { nodesKulupuSVG } from './generated/kulupuSVG.js';
|
||||
export { nodesKusariSVG } from './generated/kusariSVG.js';
|
||||
export { nodesKylinPNG } from './generated/kylinPNG.js';
|
||||
export { nodesLaminarCircleSVG } from './generated/laminar-circleSVG.js';
|
||||
export { nodesLitentryPNG } from './generated/litentryPNG.js';
|
||||
export { nodesLitmusPNG } from './generated/litmusPNG.js';
|
||||
export { nodesLoomNetworkPNG } from './generated/loom_networkPNG.js';
|
||||
export { nodesMantaPNG } from './generated/mantaPNG.js';
|
||||
export { nodesMathSVG } from './generated/mathSVG.js';
|
||||
export { nodesMd5PNG } from './generated/md5PNG.js';
|
||||
export { nodesMinixPNG } from './generated/minixPNG.js';
|
||||
export { nodesMoonbaseAlphaSVG } from './generated/moonbase_alphaSVG.js';
|
||||
export { nodesMoonbeamSVG } from './generated/moonbeamSVG.js';
|
||||
export { nodesMoonriverSVG } from './generated/moonriverSVG.js';
|
||||
export { nodesMoonrockPNG } from './generated/moonrockPNG.js';
|
||||
export { nodesMoonshadowPNG } from './generated/moonshadowPNG.js';
|
||||
export { nodesMybankPNG } from './generated/mybankPNG.js';
|
||||
export { nodesNftmartPNG } from './generated/nftmartPNG.js';
|
||||
export { nodesNodleSVG } from './generated/nodleSVG.js';
|
||||
export { nodesOliSVG } from './generated/oliSVG.js';
|
||||
export { nodesOmnibtcSVG } from './generated/omnibtcSVG.js';
|
||||
export { nodesOpalLogoPNG } from './generated/opal-logoPNG.js';
|
||||
export { nodesOpportunityPNG } from './generated/opportunityPNG.js';
|
||||
export { nodesPangolinSVG } from './generated/pangolinSVG.js';
|
||||
export { nodesPangoroSVG } from './generated/pangoroSVG.js';
|
||||
export { nodesParallelSVG } from './generated/parallelSVG.js';
|
||||
export { nodesParamiJPEG } from './generated/paramiJPEG.js';
|
||||
export { nodesPhalaSVG } from './generated/phalaSVG.js';
|
||||
export { nodesPhoenixPNG } from './generated/phoenixPNG.js';
|
||||
export { nodesPicassoPNG } from './generated/picassoPNG.js';
|
||||
export { nodesPichiuPNG } from './generated/pichiuPNG.js';
|
||||
export { nodesPlasmPNG } from './generated/plasmPNG.js';
|
||||
export { nodesPolkadexSVG } from './generated/polkadexSVG.js';
|
||||
export { nodesPolkafoundrySVG } from './generated/polkafoundrySVG.js';
|
||||
export { nodesPolkasmithSVG } from './generated/polkasmithSVG.js';
|
||||
export { nodesPolymeshSVG } from './generated/polymeshSVG.js';
|
||||
export { nodesPontemSVG } from './generated/pontemSVG.js';
|
||||
export { nodesPrismPNG } from './generated/prismPNG.js';
|
||||
export { nodesQuartzPNG } from './generated/quartzPNG.js';
|
||||
export { nodesRealisPNG } from './generated/realisPNG.js';
|
||||
export { nodesRiochainSVG } from './generated/riochainSVG.js';
|
||||
export { nodesRobonomicsSVG } from './generated/robonomicsSVG.js';
|
||||
export { nodesRocfinitySVG } from './generated/rocfinitySVG.js';
|
||||
export { nodesSakuraSVG } from './generated/sakuraSVG.js';
|
||||
export { nodesShadowSVG } from './generated/shadowSVG.js';
|
||||
export { nodesShellSVG } from './generated/shellSVG.js';
|
||||
export { nodesSherpaxPNG } from './generated/sherpaxPNG.js';
|
||||
export { nodesSinglavenderSVG } from './generated/singlavenderSVG.js';
|
||||
export { nodesSnowPNG } from './generated/snowPNG.js';
|
||||
export { nodesSoonsocialPNG } from './generated/soonsocialPNG.js';
|
||||
export { nodesSoonsocialXPNG } from './generated/soonsocialXPNG.js';
|
||||
export { nodesSoraSubstrateSVG } from './generated/sora-substrateSVG.js';
|
||||
export { nodesStafiPNG } from './generated/stafiPNG.js';
|
||||
export { nodesStatemineSVG } from './generated/statemineSVG.js';
|
||||
export { nodesSubdaoPNG } from './generated/subdaoPNG.js';
|
||||
export { nodesSubgameSVG } from './generated/subgameSVG.js';
|
||||
export { nodesSubsocialSVG } from './generated/subsocialSVG.js';
|
||||
export { nodesSubsocialXSVG } from './generated/subsocialXSVG.js';
|
||||
export { nodesSubspacePNG } from './generated/subspacePNG.js';
|
||||
export { nodesSubstrateCircleSVG } from './generated/substrate-circleSVG.js';
|
||||
export { nodesSubstrateContractsNodePNG } from './generated/substrate-contracts-nodePNG.js';
|
||||
export { nodesSubstrateHexagonSVG } from './generated/substrate-hexagonSVG.js';
|
||||
export { nodesSubstrateWhiteSVG } from './generated/substrate-whiteSVG.js';
|
||||
export { nodesSwapdexSVG } from './generated/swapdexSVG.js';
|
||||
export { nodesTernoaSVG } from './generated/ternoaSVG.js';
|
||||
export { nodesThebifrostPNG } from './generated/thebifrostPNG.js';
|
||||
export { nodesTrustbasePNG } from './generated/trustbasePNG.js';
|
||||
export { nodesUniartsPNG } from './generated/uniartsPNG.js';
|
||||
export { nodesUniqueSVG } from './generated/uniqueSVG.js';
|
||||
export { nodesUnitnetworkPNG } from './generated/unitnetworkPNG.js';
|
||||
export { nodesUnitvPNG } from './generated/unitvPNG.js';
|
||||
export { nodesValiuPNG } from './generated/valiuPNG.js';
|
||||
export { nodesVaraSVG } from './generated/varaSVG.js';
|
||||
export { nodesWeb3gamesSVG } from './generated/web3gamesSVG.js';
|
||||
export { nodesWestendColourSVG } from './generated/westend_colourSVG.js';
|
||||
export { nodesZCloakSVG } from './generated/zCloakSVG.js';
|
||||
export { nodesZeitgeistPNG } from './generated/zeitgeistPNG.js';
|
||||
export { nodesZenlinkSVG } from './generated/zenlinkSVG.js';
|
||||
export { nodesZeroSVG } from './generated/zeroSVG.js';
|
||||
|
||||
@ -12,7 +12,7 @@
|
||||
"sideEffects": false,
|
||||
"version": "0.124.2-124-x",
|
||||
"dependencies": {
|
||||
"@polkadot/dev": "^0.70.4",
|
||||
"@polkadot/dev": "^0.71.1",
|
||||
"@polkadot/react-components": "^0.124.2-124-x",
|
||||
"electron-log": "^5.0.0-beta.16",
|
||||
"electron-updater": "^5.3.0"
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
// Copyright 2017-2023 @polkadot/apps authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import { AccountStoreApi } from './account-store-api';
|
||||
import { AccountStoreApi } from './account-store-api.js';
|
||||
|
||||
export interface ElectronMainApi {
|
||||
accountStore: AccountStoreApi
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
// Copyright 2017-2023 @polkadot/apps authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import { ElectronMainApi } from './electron-main-api';
|
||||
import { ElectronMainApi } from './electron-main-api.js';
|
||||
|
||||
declare global {
|
||||
interface Window {
|
||||
|
||||
@ -3,10 +3,10 @@
|
||||
|
||||
import { app, shell } from 'electron';
|
||||
|
||||
import { registerAccountStoreHandlers } from '../main/account-store';
|
||||
import { setupAutoUpdater } from './autoUpdater';
|
||||
import { setupContentSecurityPolicy } from './contentSecurityPolicy';
|
||||
import { createWindow } from './window';
|
||||
import { registerAccountStoreHandlers } from '../main/account-store.js';
|
||||
import { setupAutoUpdater } from './autoUpdater.js';
|
||||
import { setupContentSecurityPolicy } from './contentSecurityPolicy.js';
|
||||
import { createWindow } from './window.js';
|
||||
|
||||
const ENV = process.env.NODE_ENV || 'production';
|
||||
|
||||
|
||||
@ -11,8 +11,8 @@ import { createRoot } from 'react-dom/client';
|
||||
|
||||
import Root from '@polkadot/apps/Root';
|
||||
|
||||
import { electronMainApi } from './api/global-exported-api';
|
||||
import { RemoteElectronStore } from './renderer/remote-electron-store';
|
||||
import { electronMainApi } from './api/global-exported-api.js';
|
||||
import { RemoteElectronStore } from './renderer/remote-electron-store.js';
|
||||
|
||||
const rootId = 'root';
|
||||
const rootElement = document.getElementById(rootId);
|
||||
|
||||
@ -7,8 +7,8 @@ import * as tmp from 'tmp';
|
||||
|
||||
import { FileStore } from '@polkadot/ui-keyring/stores';
|
||||
|
||||
import { accountStoreIpcHandler } from './account-store';
|
||||
import { IpcMainHandler } from './ipc-main-handler';
|
||||
import { accountStoreIpcHandler } from './account-store.js';
|
||||
import { IpcMainHandler } from './ipc-main-handler.js';
|
||||
|
||||
const exampleAccount = (address: string): KeyringJson => ({
|
||||
address,
|
||||
|
||||
@ -8,8 +8,8 @@ import path from 'path';
|
||||
|
||||
import { FileStore } from '@polkadot/ui-keyring/stores';
|
||||
|
||||
import { IpcMainHandler } from './ipc-main-handler';
|
||||
import { registerIpcHandler } from './register-ipc-handler';
|
||||
import { IpcMainHandler } from './ipc-main-handler.js';
|
||||
import { registerIpcHandler } from './register-ipc-handler.js';
|
||||
|
||||
const ACCOUNTS_SUBFOLDER = 'polkadot-accounts';
|
||||
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
|
||||
import electron from 'electron';
|
||||
|
||||
import { IpcMainHandler } from './ipc-main-handler';
|
||||
import { IpcMainHandler } from './ipc-main-handler.js';
|
||||
|
||||
export const registerIpcHandler = (ipcHandler: IpcMainHandler): void => {
|
||||
for (const [channel, listener] of Object.entries(ipcHandler)) {
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
|
||||
import type { KeyringJson } from '@polkadot/ui-keyring/types';
|
||||
|
||||
import { RemoteElectronStore } from './remote-electron-store';
|
||||
import { RemoteElectronStore } from './remote-electron-store.js';
|
||||
|
||||
describe('Remote Electron Store', () => {
|
||||
const accountStore = {
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
|
||||
import type { KeyringJson, KeyringStore } from '@polkadot/ui-keyring/types';
|
||||
|
||||
import { AccountStoreApi } from '../api/account-store-api';
|
||||
import { AccountStoreApi } from '../api/account-store-api.js';
|
||||
|
||||
export class RemoteElectronStore implements KeyringStore {
|
||||
readonly #accountStore: AccountStoreApi;
|
||||
|
||||
@ -51,6 +51,9 @@ function createWebpack () {
|
||||
alias: {
|
||||
'@polkadot/hw-ledger-transports': require.resolve('@polkadot/hw-ledger-transports/node')
|
||||
},
|
||||
extensionAlias: {
|
||||
'.js': ['.ts', '.tsx', '.js']
|
||||
},
|
||||
extensions: ['.js', '.jsx', '.json', '.mjs', '.ts', '.tsx']
|
||||
},
|
||||
target: 'electron-main'
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { TFunction } from 'i18next';
|
||||
import type { Route } from './types';
|
||||
import type { Route } from './types.js';
|
||||
|
||||
import Component, { useCounter } from '@polkadot/app-accounts';
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { TFunction } from 'i18next';
|
||||
import type { Route } from './types';
|
||||
import type { Route } from './types.js';
|
||||
|
||||
import Component from '@polkadot/app-addresses';
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { TFunction } from 'i18next';
|
||||
import type { Route } from './types';
|
||||
import type { Route } from './types.js';
|
||||
|
||||
import Component, { useCounter } from '@polkadot/app-alliance';
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { TFunction } from 'i18next';
|
||||
import type { Route } from './types';
|
||||
import type { Route } from './types.js';
|
||||
|
||||
import Component from '@polkadot/app-assets';
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { TFunction } from 'i18next';
|
||||
import type { Route } from './types';
|
||||
import type { Route } from './types.js';
|
||||
|
||||
import Component, { useCounter } from '@polkadot/app-bounties';
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { TFunction } from 'i18next';
|
||||
import type { Route } from './types';
|
||||
import type { Route } from './types.js';
|
||||
|
||||
import Component from '@polkadot/app-calendar';
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { TFunction } from 'i18next';
|
||||
import type { Route } from './types';
|
||||
import type { Route } from './types.js';
|
||||
|
||||
import Component, { useCounter } from '@polkadot/app-claims';
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { TFunction } from 'i18next';
|
||||
import type { Route } from './types';
|
||||
import type { Route } from './types.js';
|
||||
|
||||
import Component from '@polkadot/app-collator';
|
||||
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
|
||||
import type { TFunction } from 'i18next';
|
||||
import type { ApiPromise } from '@polkadot/api';
|
||||
import type { Route } from './types';
|
||||
import type { Route } from './types.js';
|
||||
|
||||
import Component from '@polkadot/app-contracts';
|
||||
import { assertReturn } from '@polkadot/util';
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { TFunction } from 'i18next';
|
||||
import type { Route } from './types';
|
||||
import type { Route } from './types.js';
|
||||
|
||||
import Component, { useCounter } from '@polkadot/app-council';
|
||||
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
|
||||
import type { TFunction } from 'i18next';
|
||||
import type { ApiPromise } from '@polkadot/api';
|
||||
import type { Route } from './types';
|
||||
import type { Route } from './types.js';
|
||||
|
||||
import Component, { useCounter } from '@polkadot/app-democracy';
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { TFunction } from 'i18next';
|
||||
import type { Route } from './types';
|
||||
import type { Route } from './types.js';
|
||||
|
||||
import Component from '@polkadot/app-explorer';
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { TFunction } from 'i18next';
|
||||
import type { Route } from './types';
|
||||
import type { Route } from './types.js';
|
||||
|
||||
import Component from '@polkadot/app-extrinsics';
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { TFunction } from 'i18next';
|
||||
import type { Route } from './types';
|
||||
import type { Route } from './types.js';
|
||||
|
||||
import Component, { useCounter } from '@polkadot/app-fellowship';
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { TFunction } from 'i18next';
|
||||
import type { Route } from './types';
|
||||
import type { Route } from './types.js';
|
||||
|
||||
import Component from '@polkadot/app-files';
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { TFunction } from 'i18next';
|
||||
import type { Route } from './types';
|
||||
import type { Route } from './types.js';
|
||||
|
||||
import Component from '@polkadot/app-gilt';
|
||||
|
||||
|
||||
@ -2,48 +2,48 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { TFunction } from 'i18next';
|
||||
import type { Routes } from './types';
|
||||
import type { Routes } from './types.js';
|
||||
|
||||
import accounts from './accounts';
|
||||
import addresses from './addresses';
|
||||
import alliance from './alliance';
|
||||
import assets from './assets';
|
||||
import bounties from './bounties';
|
||||
import calendar from './calendar';
|
||||
import claims from './claims';
|
||||
import collator from './collator';
|
||||
import contracts from './contracts';
|
||||
import council from './council';
|
||||
import democracy from './democracy';
|
||||
import explorer from './explorer';
|
||||
import extrinsics from './extrinsics';
|
||||
import fellowship from './fellowship';
|
||||
import files from './files';
|
||||
import gilt from './gilt';
|
||||
import js from './js';
|
||||
import membership from './membership';
|
||||
import nfts from './nfts';
|
||||
import parachains from './parachains';
|
||||
import poll from './poll';
|
||||
import preimages from './preimages';
|
||||
import ranked from './ranked';
|
||||
import referenda from './referenda';
|
||||
import rpc from './rpc';
|
||||
import runtime from './runtime';
|
||||
import scheduler from './scheduler';
|
||||
import settings from './settings';
|
||||
import signing from './signing';
|
||||
import society from './society';
|
||||
import staking from './staking';
|
||||
import staking2 from './staking2';
|
||||
import storage from './storage';
|
||||
import sudo from './sudo';
|
||||
import techcomm from './techcomm';
|
||||
import teleport from './teleport';
|
||||
import transfer from './transfer';
|
||||
import treasury from './treasury';
|
||||
import utilities from './utilities';
|
||||
import whitelist from './whitelist';
|
||||
import accounts from './accounts.js';
|
||||
import addresses from './addresses.js';
|
||||
import alliance from './alliance.js';
|
||||
import assets from './assets.js';
|
||||
import bounties from './bounties.js';
|
||||
import calendar from './calendar.js';
|
||||
import claims from './claims.js';
|
||||
import collator from './collator.js';
|
||||
import contracts from './contracts.js';
|
||||
import council from './council.js';
|
||||
import democracy from './democracy.js';
|
||||
import explorer from './explorer.js';
|
||||
import extrinsics from './extrinsics.js';
|
||||
import fellowship from './fellowship.js';
|
||||
import files from './files.js';
|
||||
import gilt from './gilt.js';
|
||||
import js from './js.js';
|
||||
import membership from './membership.js';
|
||||
import nfts from './nfts.js';
|
||||
import parachains from './parachains.js';
|
||||
import poll from './poll.js';
|
||||
import preimages from './preimages.js';
|
||||
import ranked from './ranked.js';
|
||||
import referenda from './referenda.js';
|
||||
import rpc from './rpc.js';
|
||||
import runtime from './runtime.js';
|
||||
import scheduler from './scheduler.js';
|
||||
import settings from './settings.js';
|
||||
import signing from './signing.js';
|
||||
import society from './society.js';
|
||||
import staking from './staking.js';
|
||||
import staking2 from './staking2.js';
|
||||
import storage from './storage.js';
|
||||
import sudo from './sudo.js';
|
||||
import techcomm from './techcomm.js';
|
||||
import teleport from './teleport.js';
|
||||
import transfer from './transfer.js';
|
||||
import treasury from './treasury.js';
|
||||
import utilities from './utilities.js';
|
||||
import whitelist from './whitelist.js';
|
||||
|
||||
export default function create (t: TFunction): Routes {
|
||||
return [
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { TFunction } from 'i18next';
|
||||
import type { Route } from './types';
|
||||
import type { Route } from './types.js';
|
||||
|
||||
import Component from '@polkadot/app-js';
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { TFunction } from 'i18next';
|
||||
import type { Route } from './types';
|
||||
import type { Route } from './types.js';
|
||||
|
||||
import Component, { useCounter } from '@polkadot/app-membership';
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { TFunction } from 'i18next';
|
||||
import type { Route } from './types';
|
||||
import type { Route } from './types.js';
|
||||
|
||||
import Component from '@polkadot/app-nfts';
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { TFunction } from 'i18next';
|
||||
import type { Route } from './types';
|
||||
import type { Route } from './types.js';
|
||||
|
||||
import Component from '@polkadot/app-parachains';
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { TFunction } from 'i18next';
|
||||
import type { Route } from './types';
|
||||
import type { Route } from './types.js';
|
||||
|
||||
import Component from '@polkadot/app-poll';
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { TFunction } from 'i18next';
|
||||
import type { Route } from './types';
|
||||
import type { Route } from './types.js';
|
||||
|
||||
import Component from '@polkadot/app-preimages';
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { TFunction } from 'i18next';
|
||||
import type { Route } from './types';
|
||||
import type { Route } from './types.js';
|
||||
|
||||
import Component, { useCounter } from '@polkadot/app-ranked';
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { TFunction } from 'i18next';
|
||||
import type { Route } from './types';
|
||||
import type { Route } from './types.js';
|
||||
|
||||
import Component, { useCounter } from '@polkadot/app-referenda';
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { TFunction } from 'i18next';
|
||||
import type { Route } from './types';
|
||||
import type { Route } from './types.js';
|
||||
|
||||
import Component from '@polkadot/app-rpc';
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { TFunction } from 'i18next';
|
||||
import type { Route } from './types';
|
||||
import type { Route } from './types.js';
|
||||
|
||||
import Component from '@polkadot/app-runtime';
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { TFunction } from 'i18next';
|
||||
import type { Route } from './types';
|
||||
import type { Route } from './types.js';
|
||||
|
||||
import Component from '@polkadot/app-scheduler';
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { TFunction } from 'i18next';
|
||||
import type { Route } from './types';
|
||||
import type { Route } from './types.js';
|
||||
|
||||
import Component, { useCounter } from '@polkadot/app-settings';
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { TFunction } from 'i18next';
|
||||
import type { Route } from './types';
|
||||
import type { Route } from './types.js';
|
||||
|
||||
import Component from '@polkadot/app-signing';
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { TFunction } from 'i18next';
|
||||
import type { Route } from './types';
|
||||
import type { Route } from './types.js';
|
||||
|
||||
import Component, { useCounter } from '@polkadot/app-society';
|
||||
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
import type { TFunction } from 'i18next';
|
||||
import type { ApiPromise } from '@polkadot/api';
|
||||
import type { PalletStakingExposure } from '@polkadot/types/lookup';
|
||||
import type { Route } from './types';
|
||||
import type { Route } from './types.js';
|
||||
|
||||
import Component from '@polkadot/app-staking';
|
||||
import { ZERO_ACCOUNT } from '@polkadot/react-hooks/useWeight';
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
import type { TFunction } from 'i18next';
|
||||
import type { ApiPromise } from '@polkadot/api';
|
||||
import type { PalletStakingExposure } from '@polkadot/types/lookup';
|
||||
import type { Route } from './types';
|
||||
import type { Route } from './types.js';
|
||||
|
||||
import Component from '@polkadot/app-staking2';
|
||||
import { ZERO_ACCOUNT } from '@polkadot/react-hooks/useWeight';
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { TFunction } from 'i18next';
|
||||
import type { Route } from './types';
|
||||
import type { Route } from './types.js';
|
||||
|
||||
import Component from '@polkadot/app-storage';
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { TFunction } from 'i18next';
|
||||
import type { Route } from './types';
|
||||
import type { Route } from './types.js';
|
||||
|
||||
import Component from '@polkadot/app-sudo';
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user