@@ -13,6 +13,8 @@ import { AssetPage, assetPageTitle } from './features/assets/pages/asset-page'
1313import { ApplicationPage , applicationPageTitle } from './features/applications/pages/application-page'
1414import { SettingsPage } from './features/settings/pages/settings-page'
1515import { TxPage } from './features/transactions/pages/tx-page'
16+ import { IndexPage } from '@/index-page'
17+ import { NetworkPage } from '@/features/network/pages/network-page'
1618
1719export const routes = evalTemplates ( [
1820 {
@@ -26,53 +28,72 @@ export const routes = evalTemplates([
2628 children : [
2729 {
2830 template : Urls . Index ,
29- element : < ExplorePage /> ,
31+ element : < IndexPage /> ,
3032 errorElement : < ErrorPage title = { explorePageTitle } /> ,
3133 } ,
3234 {
33- template : Urls . Transaction . ById ,
34- errorElement : < ErrorPage title = { transactionPageTitle } /> ,
35+ template : Urls . Network ,
36+ element : (
37+ < NetworkPage >
38+ < Outlet />
39+ </ NetworkPage >
40+ ) ,
3541 children : [
3642 {
37- template : Urls . Transaction . ById ,
38- element : < TransactionPage /> ,
43+ template : Urls . Network ,
44+ element : < ExplorePage /> ,
45+ errorElement : < ErrorPage title = { explorePageTitle } /> ,
3946 } ,
4047 {
41- template : Urls . Transaction . ById . Inner . ById ,
42- element : < InnerTransactionPage /> ,
48+ template : Urls . Network . Transaction . ById ,
49+ errorElement : < ErrorPage title = { transactionPageTitle } /> ,
50+ children : [
51+ {
52+ template : Urls . Network . Transaction . ById ,
53+ element : < TransactionPage /> ,
54+ } ,
55+ {
56+ template : Urls . Network . Transaction . ById . Inner . ById ,
57+ element : < InnerTransactionPage /> ,
58+ } ,
59+ ] ,
60+ } ,
61+ {
62+ template : Urls . Network . Block . ByRound ,
63+ children : [
64+ {
65+ template : Urls . Network . Block . ByRound ,
66+ errorElement : < ErrorPage title = { blockPageTitle } /> ,
67+ element : < BlockPage /> ,
68+ } ,
69+ {
70+ template : Urls . Network . Block . ByRound . Group . ById ,
71+ errorElement : < ErrorPage title = { groupPageTitle } /> ,
72+ element : < GroupPage /> ,
73+ } ,
74+ ] ,
75+ } ,
76+ {
77+ template : Urls . Network . Account . ByAddress ,
78+ element : < AccountPage /> ,
79+ errorElement : < ErrorPage title = { accountPageTitle } /> ,
80+ } ,
81+ {
82+ template : Urls . Network . Asset . ById ,
83+ element : < AssetPage /> ,
84+ errorElement : < ErrorPage title = { assetPageTitle } /> ,
4385 } ,
44- ] ,
45- } ,
46- {
47- template : Urls . Block . ByRound ,
48- children : [
4986 {
50- template : Urls . Block . ByRound ,
51- errorElement : < ErrorPage title = { blockPageTitle } /> ,
52- element : < BlockPage /> ,
87+ template : Urls . Network . Application . ById ,
88+ errorElement : < ErrorPage title = { applicationPageTitle } /> ,
89+ element : < ApplicationPage /> ,
5390 } ,
5491 {
55- template : Urls . Block . ByRound . Group . ById ,
56- errorElement : < ErrorPage title = { groupPageTitle } /> ,
57- element : < GroupPage /> ,
92+ template : Urls . Network . Tx ,
93+ element : < TxPage /> ,
5894 } ,
5995 ] ,
6096 } ,
61- {
62- template : Urls . Account . ByAddress ,
63- element : < AccountPage /> ,
64- errorElement : < ErrorPage title = { accountPageTitle } /> ,
65- } ,
66- {
67- template : Urls . Asset . ById ,
68- element : < AssetPage /> ,
69- errorElement : < ErrorPage title = { assetPageTitle } /> ,
70- } ,
71- {
72- template : Urls . Application . ById ,
73- errorElement : < ErrorPage title = { applicationPageTitle } /> ,
74- element : < ApplicationPage /> ,
75- } ,
7697 {
7798 template : Urls . AppStudio ,
7899 element : < div > App Studio</ div > ,
@@ -81,10 +102,6 @@ export const routes = evalTemplates([
81102 template : Urls . Settings ,
82103 element : < SettingsPage /> ,
83104 } ,
84- {
85- template : Urls . Tx ,
86- element : < TxPage /> ,
87- } ,
88105 ] ,
89106 } ,
90107] )
0 commit comments