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
8be693b4
Unverified
Commit
8be693b4
authored
Feb 13, 2025
by
tom goriunov
Committed by
GitHub
Feb 13, 2025
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2572 from blockscout/release/v1-37-6
Release v1.37.6
parents
67a0d0e9
efa17a92
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
9 deletions
+25
-9
resources.ts
lib/api/resources.ts
+5
-5
useQueryClientConfig.tsx
lib/api/useQueryClientConfig.tsx
+19
-3
AuthModal.tsx
ui/snippets/auth/AuthModal.tsx
+1
-1
No files found.
lib/api/resources.ts
View file @
8be693b4
...
...
@@ -632,7 +632,7 @@ export const RESOURCES = {
filterFields
:
[],
},
address_xstar_score
:
{
path
:
'
/api/v2/proxy/xname/addresses/:hash
'
,
path
:
'
/api/v2/proxy/
3rdparty/
xname/addresses/:hash
'
,
pathParams
:
[
'
hash
'
as
const
],
},
...
...
@@ -649,7 +649,7 @@ export const RESOURCES = {
pathParams
:
[
'
hash
'
as
const
,
'
method
'
as
const
],
},
contract_solidity_scan_report
:
{
path
:
'
/api/v2/
smart-contracts/:hash/solidityscan-
report
'
,
path
:
'
/api/v2/
proxy/3dparty/solidityscan/smart-contracts/:hash/
report
'
,
pathParams
:
[
'
hash
'
as
const
],
},
contract_security_audits
:
{
...
...
@@ -1087,16 +1087,16 @@ export const RESOURCES = {
// NOVES-FI
noves_transaction
:
{
path
:
'
/api/v2/proxy/noves-fi/transactions/:hash
'
,
path
:
'
/api/v2/proxy/
3rdparty/
noves-fi/transactions/:hash
'
,
pathParams
:
[
'
hash
'
as
const
],
},
noves_address_history
:
{
path
:
'
/api/v2/proxy/noves-fi/addresses/:address/transactions
'
,
path
:
'
/api/v2/proxy/
3rdparty/
noves-fi/addresses/:address/transactions
'
,
pathParams
:
[
'
address
'
as
const
],
filterFields
:
[],
},
noves_describe_txs
:
{
path
:
'
/api/v2/proxy/noves-fi/transaction-descriptions
'
,
path
:
'
/api/v2/proxy/
3rdparty/
noves-fi/transaction-descriptions
'
,
},
// USER OPS
...
...
lib/api/useQueryClientConfig.tsx
View file @
8be693b4
...
...
@@ -20,10 +20,26 @@ export default function useQueryClientConfig() {
queries
:
{
refetchOnWindowFocus
:
false
,
retry
,
throwOnError
:
(
error
)
=>
{
throwOnError
:
(
error
,
query
)
=>
{
const
status
=
getErrorObjStatusCode
(
error
);
// don't catch error for "Too many requests" response
return
status
===
429
;
// we don't catch error only for "Too many requests" response
if
(
status
!==
429
)
{
return
false
;
}
const
EXTERNAL_API_RESOURCES
=
[
'
safe_transaction_api
'
,
'
contract_solidity_scan_report
'
,
'
address_xstar_score
'
,
'
noves_transaction
'
,
'
noves_address_history
'
,
'
noves_describe_txs
'
,
'
gas_hawk_saving_potential
'
,
];
const
isExternalApiResource
=
EXTERNAL_API_RESOURCES
.
some
((
resource
)
=>
query
.
queryKey
[
0
]
===
resource
);
return
!
isExternalApiResource
;
},
},
},
...
...
ui/snippets/auth/AuthModal.tsx
View file @
8be693b4
...
...
@@ -175,7 +175,7 @@ const AuthModal = ({ initialScreen, onClose, mixpanelConfig, closeOnError }: Pro
}
return
(
<
Modal
isOpen
onClose=
{
onModalClose
}
size=
{
{
base
:
'
full
'
,
lg
:
'
sm
'
}
}
>
<
Modal
isOpen
onClose=
{
onModalClose
}
size=
{
{
base
:
'
full
'
,
lg
:
'
sm
'
}
}
trapFocus=
{
false
}
blockScrollOnMount=
{
false
}
>
<
ModalOverlay
/>
<
ModalContent
p=
{
6
}
maxW=
{
{
lg
:
'
400px
'
}
}
>
<
ModalHeader
fontWeight=
"500"
textStyle=
"h3"
mb=
{
2
}
display=
"flex"
alignItems=
"center"
columnGap=
{
2
}
>
...
...
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