Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
frontend
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vicotor
frontend
Commits
2d6acf8f
Commit
2d6acf8f
authored
Dec 16, 2022
by
isstuev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
address redirects
parent
8aec178f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
3 deletions
+27
-3
redirects.js
configs/nextjs/redirects.js
+25
-1
Address.tsx
ui/pages/Address.tsx
+1
-1
Transaction.tsx
ui/pages/Transaction.tsx
+1
-1
No files found.
configs/nextjs/redirects.js
View file @
2d6acf8f
...
...
@@ -35,7 +35,31 @@ const oldUrls = [
},
{
oldPath
:
'
/block/:id/transactions
'
,
newPath
:
`
${
PATHS
.
block
}
?tab=txs`
,
newPath
:
`
${
PATHS
.
block
}
`
,
},
{
oldPath
:
'
/address/:id/transactions
'
,
newPath
:
`
${
PATHS
.
address_index
}
`
,
},
{
oldPath
:
'
/address/:id/token-transfers
'
,
newPath
:
`
${
PATHS
.
address_index
}
?tab=token_transfers`
,
},
{
oldPath
:
'
/address/:id/tokens
'
,
newPath
:
`
${
PATHS
.
address_index
}
?tab=tokens`
,
},
{
oldPath
:
'
/address/:id/internal-transactions
'
,
newPath
:
`
${
PATHS
.
address_index
}
?tab=internal_txns`
,
},
{
oldPath
:
'
/address/:id/coin-balances
'
,
newPath
:
`
${
PATHS
.
address_index
}
?tab=coin_balance_history`
,
},
{
oldPath
:
'
/address/:id/validations
'
,
newPath
:
`
${
PATHS
.
address_index
}
?tab=blocks_validated`
,
},
];
...
...
ui/pages/Address.tsx
View file @
2d6acf8f
...
...
@@ -40,7 +40,7 @@ const AddressPageContent = () => {
{
id
:
'
txs
'
,
title
:
'
Transactions
'
,
component
:
<
AddressTxs
/>
},
{
id
:
'
token_transfers
'
,
title
:
'
Token transfers
'
,
component
:
<
AddressTokenTransfers
/>
},
{
id
:
'
tokens
'
,
title
:
'
Tokens
'
,
component
:
null
},
{
id
:
'
internal_txn
'
,
title
:
'
Internal txn
'
,
component
:
<
AddressInternalTxs
/>
},
{
id
:
'
internal_txn
s
'
,
title
:
'
Internal txns
'
,
component
:
<
AddressInternalTxs
/>
},
{
id
:
'
coin_balance_history
'
,
title
:
'
Coin balance history
'
,
component
:
<
AddressCoinBalance
addressQuery=
{
addressQuery
}
/>
},
// temporary show this tab in all address
// later api will return info about available tabs
...
...
ui/pages/Transaction.tsx
View file @
2d6acf8f
...
...
@@ -26,7 +26,7 @@ import TxTokenTransfer from 'ui/tx/TxTokenTransfer';
const
TABS
:
Array
<
RoutedTab
>
=
[
{
id
:
'
index
'
,
title
:
'
Details
'
,
component
:
<
TxDetails
/>
},
{
id
:
'
token_transfers
'
,
title
:
'
Token transfers
'
,
component
:
<
TxTokenTransfer
/>
},
{
id
:
'
internal
'
,
title
:
'
Internal txn
'
,
component
:
<
TxInternals
/>
},
{
id
:
'
internal
'
,
title
:
'
Internal txn
s
'
,
component
:
<
TxInternals
/>
},
{
id
:
'
logs
'
,
title
:
'
Logs
'
,
component
:
<
TxLogs
/>
},
// will be implemented later, api is not ready
// { id: 'state', title: 'State', component: <TxState/> },
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment