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
e9bb031e
Commit
e9bb031e
authored
Mar 07, 2023
by
Viktor Baranov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix typos in namings
parent
50ffed22
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
9 deletions
+9
-9
indexingStatus.ts
types/api/indexingStatus.ts
+1
-1
AddressTokens.tsx
ui/address/AddressTokens.tsx
+1
-1
IndexingAlert.tsx
ui/home/IndexingAlert.tsx
+5
-5
Address.tsx
ui/pages/Address.tsx
+1
-1
Token.tsx
ui/pages/Token.tsx
+1
-1
No files found.
types/api/indexingStatus.ts
View file @
e9bb031e
...
@@ -2,5 +2,5 @@ export type IndexingStatus = {
...
@@ -2,5 +2,5 @@ export type IndexingStatus = {
finished_indexing
:
boolean
;
finished_indexing
:
boolean
;
finished_indexing_blocks
:
boolean
;
finished_indexing_blocks
:
boolean
;
indexed_blocks_ratio
:
string
;
indexed_blocks_ratio
:
string
;
indexed_inernal_transactions_ratio
:
string
;
indexed_in
t
ernal_transactions_ratio
:
string
;
}
}
ui/address/AddressTokens.tsx
View file @
e9bb031e
...
@@ -50,7 +50,7 @@ const AddressTokens = () => {
...
@@ -50,7 +50,7 @@ const AddressTokens = () => {
return
(
return
(
<>
<>
<
TokenBalances
/>
<
TokenBalances
/>
{
/* should stay before tabs to scroll up w
h
ith pagination */
}
{
/* should stay before tabs to scroll up with pagination */
}
<
Box
ref=
{
scrollRef
}
></
Box
>
<
Box
ref=
{
scrollRef
}
></
Box
>
<
RoutedTabs
<
RoutedTabs
tabs=
{
tabs
}
tabs=
{
tabs
}
...
...
ui/home/IndexingAlert.tsx
View file @
e9bb031e
...
@@ -52,12 +52,12 @@ const IndexingAlert = ({ className }: { className?: string }) => {
...
@@ -52,12 +52,12 @@ const IndexingAlert = ({ className }: { className?: string }) => {
handler
:
handleBlocksIndexStatus
,
handler
:
handleBlocksIndexStatus
,
});
});
const
handleInter
m
alTxsIndexStatus
:
SocketMessage
.
InternalTxsIndexStatus
[
'
handler
'
]
=
React
.
useCallback
((
payload
)
=>
{
const
handleInter
n
alTxsIndexStatus
:
SocketMessage
.
InternalTxsIndexStatus
[
'
handler
'
]
=
React
.
useCallback
((
payload
)
=>
{
queryClient
.
setQueryData
(
getResourceKey
(
'
homepage_indexing_status
'
),
(
prevData
:
IndexingStatus
|
undefined
)
=>
{
queryClient
.
setQueryData
(
getResourceKey
(
'
homepage_indexing_status
'
),
(
prevData
:
IndexingStatus
|
undefined
)
=>
{
const
newData
=
prevData
?
{
...
prevData
}
:
{}
as
IndexingStatus
;
const
newData
=
prevData
?
{
...
prevData
}
:
{}
as
IndexingStatus
;
newData
.
finished_indexing
=
payload
.
finished
;
newData
.
finished_indexing
=
payload
.
finished
;
newData
.
indexed_inernal_transactions_ratio
=
payload
.
ratio
;
newData
.
indexed_in
t
ernal_transactions_ratio
=
payload
.
ratio
;
return
newData
;
return
newData
;
});
});
...
@@ -71,7 +71,7 @@ const IndexingAlert = ({ className }: { className?: string }) => {
...
@@ -71,7 +71,7 @@ const IndexingAlert = ({ className }: { className?: string }) => {
useSocketMessage
({
useSocketMessage
({
channel
:
internalTxsIndexingChannel
,
channel
:
internalTxsIndexingChannel
,
event
:
'
internal_txs_index_status
'
,
event
:
'
internal_txs_index_status
'
,
handler
:
handleInter
m
alTxsIndexStatus
,
handler
:
handleInter
n
alTxsIndexStatus
,
});
});
if
(
isError
)
{
if
(
isError
)
{
...
@@ -87,8 +87,8 @@ const IndexingAlert = ({ className }: { className?: string }) => {
...
@@ -87,8 +87,8 @@ const IndexingAlert = ({ className }: { className?: string }) => {
content
=
`
${
data
.
indexed_blocks_ratio
&&
`
${
Math
.
floor
(
Number
(
data
.
indexed_blocks_ratio
)
*
100
)
}
% Blocks Indexed
${
nbsp
}${
ndash
}
`
}
content
=
`
${
data
.
indexed_blocks_ratio
&&
`
${
Math
.
floor
(
Number
(
data
.
indexed_blocks_ratio
)
*
100
)
}
% Blocks Indexed
${
nbsp
}${
ndash
}
`
}
We're indexing this chain right now. Some of the counts may be inaccurate.`
;
We're indexing this chain right now. Some of the counts may be inaccurate.`
;
}
else
if
(
data
.
finished_indexing
===
false
)
{
}
else
if
(
data
.
finished_indexing
===
false
)
{
content
=
`
${
data
.
indexed_inernal_transactions_ratio
&&
content
=
`
${
data
.
indexed_in
t
ernal_transactions_ratio
&&
`
${
Math
.
floor
(
Number
(
data
.
indexed_inernal_transactions_ratio
)
*
100
)
}
% Blocks With Internal Transactions Indexed
${
nbsp
}${
ndash
}
`
}
`
${
Math
.
floor
(
Number
(
data
.
indexed_in
t
ernal_transactions_ratio
)
*
100
)
}
% Blocks With Internal Transactions Indexed
${
nbsp
}${
ndash
}
`
}
We're indexing this chain right now. Some of the counts may be inaccurate.`
;
We're indexing this chain right now. Some of the counts may be inaccurate.`
;
}
}
...
...
ui/pages/Address.tsx
View file @
e9bb031e
...
@@ -112,7 +112,7 @@ const AddressPageContent = () => {
...
@@ -112,7 +112,7 @@ const AddressPageContent = () => {
/>
/>
)
}
)
}
<
AddressDetails
addressQuery=
{
addressQuery
}
scrollRef=
{
tabsScrollRef
}
/>
<
AddressDetails
addressQuery=
{
addressQuery
}
scrollRef=
{
tabsScrollRef
}
/>
{
/* should stay before tabs to scroll up w
h
ith pagination */
}
{
/* should stay before tabs to scroll up with pagination */
}
<
Box
ref=
{
tabsScrollRef
}
></
Box
>
<
Box
ref=
{
tabsScrollRef
}
></
Box
>
{
addressQuery
.
isLoading
?
<
SkeletonTabs
/>
:
content
}
{
addressQuery
.
isLoading
?
<
SkeletonTabs
/>
:
content
}
{
!
addressQuery
.
isLoading
&&
!
addressQuery
.
isError
&&
<
Box
h=
{
{
base
:
0
,
lg
:
'
40vh
'
}
}
/>
}
{
!
addressQuery
.
isLoading
&&
!
addressQuery
.
isError
&&
<
Box
h=
{
{
base
:
0
,
lg
:
'
40vh
'
}
}
/>
}
...
...
ui/pages/Token.tsx
View file @
e9bb031e
...
@@ -178,7 +178,7 @@ const TokenPageContent = () => {
...
@@ -178,7 +178,7 @@ const TokenPageContent = () => {
)
}
)
}
<
TokenContractInfo
tokenQuery=
{
tokenQuery
}
/>
<
TokenContractInfo
tokenQuery=
{
tokenQuery
}
/>
<
TokenDetails
tokenQuery=
{
tokenQuery
}
/>
<
TokenDetails
tokenQuery=
{
tokenQuery
}
/>
{
/* should stay before tabs to scroll up w
h
ith pagination */
}
{
/* should stay before tabs to scroll up with pagination */
}
<
Box
ref=
{
scrollRef
}
></
Box
>
<
Box
ref=
{
scrollRef
}
></
Box
>
{
tokenQuery
.
isLoading
||
contractQuery
.
isLoading
?
<
SkeletonTabs
/>
:
(
{
tokenQuery
.
isLoading
||
contractQuery
.
isLoading
?
<
SkeletonTabs
/>
:
(
...
...
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