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
f51c0ce4
Commit
f51c0ce4
authored
Sep 07, 2022
by
tom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add other tabs
parent
0bc1b865
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
74 additions
and
9 deletions
+74
-9
logs.tsx
pages/[network_type]/[network_sub_type]/tx/[id]/logs.tsx
+19
-0
raw-trace.tsx
...s/[network_type]/[network_sub_type]/tx/[id]/raw-trace.tsx
+19
-0
state.tsx
pages/[network_type]/[network_sub_type]/tx/[id]/state.tsx
+19
-0
Transaction.tsx
ui/pages/Transaction.tsx
+10
-9
TxDetails.tsx
ui/tx/TxDetails.tsx
+7
-0
No files found.
pages/[network_type]/[network_sub_type]/tx/[id]/logs.tsx
0 → 100644
View file @
f51c0ce4
import
type
{
NextPage
}
from
'
next
'
;
import
React
from
'
react
'
;
import
type
{
PageParams
}
from
'
lib/next/tx/types
'
;
import
TransactionNextPage
from
'
lib/next/tx/TransactionNextPage
'
;
type
Props
=
{
pageParams
:
PageParams
;
}
const
TransactionPage
:
NextPage
<
Props
>
=
({
pageParams
}:
Props
)
=>
{
return
<
TransactionNextPage
pageParams=
{
pageParams
}
tab=
"logs"
/>;
};
export
default
TransactionPage
;
export
{
getStaticPaths
}
from
'
lib/next/tx/getStaticPaths
'
;
export
{
getStaticProps
}
from
'
lib/next/getStaticProps
'
;
pages/[network_type]/[network_sub_type]/tx/[id]/raw-trace.tsx
0 → 100644
View file @
f51c0ce4
import
type
{
NextPage
}
from
'
next
'
;
import
React
from
'
react
'
;
import
type
{
PageParams
}
from
'
lib/next/tx/types
'
;
import
TransactionNextPage
from
'
lib/next/tx/TransactionNextPage
'
;
type
Props
=
{
pageParams
:
PageParams
;
}
const
TransactionPage
:
NextPage
<
Props
>
=
({
pageParams
}:
Props
)
=>
{
return
<
TransactionNextPage
pageParams=
{
pageParams
}
tab=
"raw_trace"
/>;
};
export
default
TransactionPage
;
export
{
getStaticPaths
}
from
'
lib/next/tx/getStaticPaths
'
;
export
{
getStaticProps
}
from
'
lib/next/getStaticProps
'
;
pages/[network_type]/[network_sub_type]/tx/[id]/state.tsx
0 → 100644
View file @
f51c0ce4
import
type
{
NextPage
}
from
'
next
'
;
import
React
from
'
react
'
;
import
type
{
PageParams
}
from
'
lib/next/tx/types
'
;
import
TransactionNextPage
from
'
lib/next/tx/TransactionNextPage
'
;
type
Props
=
{
pageParams
:
PageParams
;
}
const
TransactionPage
:
NextPage
<
Props
>
=
({
pageParams
}:
Props
)
=>
{
return
<
TransactionNextPage
pageParams=
{
pageParams
}
tab=
"state"
/>;
};
export
default
TransactionPage
;
export
{
getStaticPaths
}
from
'
lib/next/tx/getStaticPaths
'
;
export
{
getStaticProps
}
from
'
lib/next/getStaticProps
'
;
ui/pages/Transaction.tsx
View file @
f51c0ce4
...
@@ -11,15 +11,21 @@ import React from 'react';
...
@@ -11,15 +11,21 @@ import React from 'react';
import
useBasePath
from
'
lib/hooks/useBasePath
'
;
import
useBasePath
from
'
lib/hooks/useBasePath
'
;
import
AccountPageHeader
from
'
ui/shared/AccountPageHeader
'
;
import
AccountPageHeader
from
'
ui/shared/AccountPageHeader
'
;
import
Page
from
'
ui/shared/Page
'
;
import
Page
from
'
ui/shared/Page
'
;
import
TxDetails
from
'
ui/tx/TxDetails
'
;
interface
Tab
{
interface
Tab
{
type
:
'
details
'
|
'
internal_txn
'
;
type
:
'
details
'
|
'
internal_txn
'
|
'
logs
'
|
'
raw_trace
'
|
'
state
'
;
path
:
string
;
path
:
string
;
name
:
string
;
name
:
string
;
component
?:
React
.
ReactNode
;
}
}
const
TABS
:
Array
<
Tab
>
=
[
const
TABS
:
Array
<
Tab
>
=
[
{
type
:
'
details
'
,
path
:
''
,
name
:
'
Details
'
},
{
type
:
'
details
'
,
path
:
''
,
name
:
'
Details
'
,
component
:
<
TxDetails
/>
},
{
type
:
'
internal_txn
'
,
path
:
'
/internal-transactions
'
,
name
:
'
Internal txn
'
},
{
type
:
'
internal_txn
'
,
path
:
'
/internal-transactions
'
,
name
:
'
Internal txn
'
},
{
type
:
'
logs
'
,
path
:
'
/logs
'
,
name
:
'
Logs
'
},
{
type
:
'
state
'
,
path
:
'
/state
'
,
name
:
'
State
'
},
{
type
:
'
raw_trace
'
,
path
:
'
/raw-trace
'
,
name
:
'
Raw trace
'
},
];
];
export
interface
Props
{
export
interface
Props
{
...
@@ -44,16 +50,11 @@ const TransactionPageContent = ({ tab }: Props) => {
...
@@ -44,16 +50,11 @@ const TransactionPageContent = ({ tab }: Props) => {
<
Page
>
<
Page
>
<
AccountPageHeader
text=
"Transaction details"
/>
<
AccountPageHeader
text=
"Transaction details"
/>
<
Tabs
variant=
"soft-rounded"
colorScheme=
"blue"
isLazy
onChange=
{
handleTabChange
}
defaultIndex=
{
defaultIndex
}
>
<
Tabs
variant=
"soft-rounded"
colorScheme=
"blue"
isLazy
onChange=
{
handleTabChange
}
defaultIndex=
{
defaultIndex
}
>
<
TabList
marginBottom=
{
{
base
:
6
,
lg
:
8
}
}
>
<
TabList
marginBottom=
{
{
base
:
6
,
lg
:
8
}
}
flexWrap=
"wrap"
>
{
TABS
.
map
((
tab
)
=>
<
Tab
key=
{
tab
.
type
}
>
{
tab
.
name
}
</
Tab
>)
}
{
TABS
.
map
((
tab
)
=>
<
Tab
key=
{
tab
.
type
}
>
{
tab
.
name
}
</
Tab
>)
}
</
TabList
>
</
TabList
>
<
TabPanels
>
<
TabPanels
>
<
TabPanel
padding=
{
0
}
>
{
TABS
.
map
((
tab
)
=>
<
TabPanel
padding=
{
0
}
key=
{
tab
.
type
}
>
{
tab
.
component
||
tab
.
name
}
</
TabPanel
>)
}
Details
</
TabPanel
>
<
TabPanel
padding=
{
0
}
>
Internal txn
</
TabPanel
>
</
TabPanels
>
</
TabPanels
>
</
Tabs
>
</
Tabs
>
</
Page
>
</
Page
>
...
...
ui/tx/TxDetails.tsx
0 → 100644
View file @
f51c0ce4
import
React
from
'
react
'
;
const
TxDetails
=
()
=>
{
return
<
div
>
TxDetails component
</
div
>;
};
export
default
TxDetails
;
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