ghost-portal/packages/apps-routing/src/index.ts
Arjun Porwal d449a243f9
Staking Next Page (#11483)
* feat: initialized staking-next page

* feat: enhance staking-next page with dynamic tabs and translation support

* feat: enabled payouts page for staking-next

* feat: enabled pools page for staking-next

* feat: enabled bags page for staking-next

* fix: build errors

* chore: added translation files

* refactor: relay and system staking page

* feat: enabled overview page for staking-next

* feat: enabled actions page for staking-next

* feat: enabled targets page for staking-next

* feat: enabled query page for staking-next

* feat: add Command Center component and integrate with Relay Staking Page

* feat: limit event display to a maximum of 5 and adjust styling in Command Center

* feat: display more info for relay command center

* chore: added translations

* refactor: relay section for command center

* feat: storage fetch for ah api

* feat: integrate Command Center into StakingApp routing

* feat: add AssetHubSection component and update RelaySection styling

* chore: added translation

* feat: implement API check for staking-next route

* feat: enhance AssetHubSection with detailed multiblock and staking summaries

* chore: added translations

* chore: delete folder

* chore: added folders

* feat: update layout and styling in CommandCenter components

* feat: improve layout of relay chain and events summary in AssetHubSection

* feat: add Slashes component to StakingApp and update TypeScript paths

* feat: enhance CommandCenter with relay and para endpoints integration

* feat: refactor CommandCenter to integrate relay and para endpoints with improved state management

* feat: enhance AssetHubSection and RelaySection with API connection indicators

* feat: enhance CommandCenter and RelaySection with children prop and dropdown for API selection

* feat: improve API disconnection handling and reset state in CommandCenter

* feat: improve command center API handling and enhance relay section styling

* feat: add translations for Active Validators and All Validators in locale files

* feat: update route path for targets to all-validators in StakingApp

* feat: update README with details on Asset Hub migration and staking workflow changes

* feat: update staking-related API references to use assetHubStakingClient and improve UI components

* feat: rename stakign-next to staking-async

* fix: pallets and events renaming

* feat: enhance AssetHub and Relay sections with URL and relay chain support

* fix: avoid duplication of events
2025-06-19 10:34:38 +05:30

110 lines
2.8 KiB
TypeScript

// Copyright 2017-2025 @polkadot/apps-routing authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { Routes, TFunction } from './types.js';
import accounts from './accounts.js';
import addresses from './addresses.js';
import alliance from './alliance.js';
import ambassador from './ambassador.js';
import assets from './assets.js';
import bounties from './bounties.js';
import broker from './broker.js';
import calendar from './calendar.js';
import claims from './claims.js';
import collator from './collator.js';
import contracts from './contracts.js';
import coretime from './coretime.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 nis from './nis.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 stakingAsync from './staking-async.js';
import staking2 from './staking2.js';
import stakingLegacy from './stakingLegacy.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 [
accounts(t),
addresses(t),
explorer(t),
claims(t),
poll(t),
transfer(t),
teleport(t),
// Staking for AssetHub Migration
stakingAsync(t),
staking(t),
staking2(t),
// Legacy staking Pre v14 pallet version.
stakingLegacy(t),
collator(t),
// Coretime
broker(t),
coretime(t),
// governance v2
referenda(t),
membership(t),
alliance(t),
ambassador(t),
fellowship(t),
ranked(t),
preimages(t),
whitelist(t),
// old v1 governance
democracy(t),
council(t),
techcomm(t),
// other governance-related
treasury(t),
bounties(t),
// others
parachains(t),
assets(t),
nfts(t),
society(t),
nis(t),
gilt(t),
scheduler(t),
calendar(t),
contracts(t),
storage(t),
extrinsics(t),
rpc(t),
runtime(t),
signing(t),
sudo(t),
files(t),
js(t),
utilities(t),
settings(t)
];
}