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
14993155
Commit
14993155
authored
Oct 17, 2022
by
tom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update import sort rule
parent
efb3a3f9
Changes
34
Hide whitespace changes
Inline
Side-by-side
Showing
34 changed files
with
38 additions
and
36 deletions
+38
-36
.eslintrc.js
.eslintrc.js
+1
-1
tasks.json
.vscode/tasks.json
+2
-3
fetch.ts
lib/api/fetch.ts
+1
-1
getUrlWithNetwork.ts
lib/api/getUrlWithNetwork.ts
+2
-1
getCspPolicy.ts
lib/csp/getCspPolicy.ts
+0
-1
useConfigSentry.tsx
lib/hooks/useConfigSentry.tsx
+2
-1
useNavItems.tsx
lib/hooks/useNavItems.tsx
+1
-1
featuredNetworks.ts
lib/networks/featuredNetworks.ts
+1
-2
useNetworkNavigationItems.ts
lib/networks/useNetworkNavigationItems.ts
+1
-1
middleware.ts
middleware.ts
+1
-1
package.json
package.json
+1
-0
_error.tsx
pages/_error.tsx
+2
-1
useMarkeplaceApps.tsx
ui/apps/useMarkeplaceApps.tsx
+1
-1
BlockDetails.tsx
ui/block/BlockDetails.tsx
+1
-1
BlocksListItem.tsx
ui/blocks/BlocksListItem.tsx
+1
-1
BlocksTable.tsx
ui/blocks/BlocksTable.tsx
+1
-1
Apps.tsx
ui/pages/Apps.tsx
+1
-1
Home.tsx
ui/pages/Home.tsx
+1
-1
MarketplaceApp.tsx
ui/pages/MarketplaceApp.tsx
+1
-1
TokenLogo.tsx
ui/shared/TokenLogo.tsx
+2
-1
NavFooter.tsx
ui/snippets/navigation/NavFooter.tsx
+1
-1
NavigationDesktop.tsx
ui/snippets/navigation/NavigationDesktop.tsx
+1
-1
NavigationMobile.tsx
ui/snippets/navigation/NavigationMobile.tsx
+1
-1
NetworkLogo.tsx
ui/snippets/networkMenu/NetworkLogo.tsx
+1
-1
TxDetails.tsx
ui/tx/TxDetails.tsx
+1
-1
TxInternalsListItem.tsx
ui/tx/internals/TxInternalsListItem.tsx
+1
-1
TxInternalsTable.tsx
ui/tx/internals/TxInternalsTable.tsx
+1
-1
TxStateListItem.tsx
ui/tx/state/TxStateListItem.tsx
+1
-1
TxStateTable.tsx
ui/tx/state/TxStateTable.tsx
+1
-1
TxAdditionalInfo.tsx
ui/txs/TxAdditionalInfo.tsx
+1
-1
TxsListItem.tsx
ui/txs/TxsListItem.tsx
+1
-1
TxsTable.tsx
ui/txs/TxsTable.tsx
+1
-1
AddressFormNotifications.tsx
ui/watchlist/AddressModal/AddressFormNotifications.tsx
+1
-1
WatchListAddressItem.tsx
ui/watchlist/WatchlistTable/WatchListAddressItem.tsx
+1
-1
No files found.
.eslintrc.js
View file @
14993155
...
@@ -195,7 +195,7 @@ module.exports = {
...
@@ -195,7 +195,7 @@ module.exports = {
groups
:
[
groups
:
[
'
module
'
,
'
module
'
,
'
/types/
'
,
'
/types/
'
,
[
'
/^
data/
'
,
'
/^icons/
'
,
'
/^lib/
'
,
'
/^pages
/
'
,
'
/^theme/
'
,
'
/^ui/
'
],
[
'
/^
configs/
'
,
'
/^data/
'
,
'
/^deploy/
'
,
'
/^icons/
'
,
'
/^lib/
'
,
'
/^pages/
'
,
'
/^playwright
/
'
,
'
/^theme/
'
,
'
/^ui/
'
],
[
'
parent
'
,
'
sibling
'
,
'
index
'
],
[
'
parent
'
,
'
sibling
'
,
'
index
'
],
],
],
alphabetize
:
{
order
:
'
asc
'
,
ignoreCase
:
true
},
alphabetize
:
{
order
:
'
asc
'
,
ignoreCase
:
true
},
...
...
.vscode/tasks.json
View file @
14993155
...
@@ -65,14 +65,13 @@
...
@@ -65,14 +65,13 @@
},
},
{
{
"type"
:
"npm"
,
"type"
:
"npm"
,
"script"
:
"lint:eslint"
,
"script"
:
"lint:eslint
:fix
"
,
"problemMatcher"
:
[],
"problemMatcher"
:
[],
"label"
:
"eslint"
,
"label"
:
"eslint"
,
"detail"
:
"run eslint"
,
"detail"
:
"run eslint"
,
"presentation"
:
{
"presentation"
:
{
"reveal"
:
"silent"
,
"reveal"
:
"silent"
,
"panel"
:
"new"
,
"panel"
:
"new"
,
"close"
:
true
,
"revealProblems"
:
"onProblem"
,
"revealProblems"
:
"onProblem"
,
},
},
"icon"
:
{
"icon"
:
{
...
@@ -110,7 +109,7 @@
...
@@ -110,7 +109,7 @@
"label"
:
"docker: build"
,
"label"
:
"docker: build"
,
"detail"
:
"build docker image"
,
"detail"
:
"build docker image"
,
"presentation"
:
{
"presentation"
:
{
"reveal"
:
"
silent
"
,
"reveal"
:
"
always
"
,
"panel"
:
"new"
,
"panel"
:
"new"
,
"close"
:
true
,
"close"
:
true
,
"revealProblems"
:
"onProblem"
,
"revealProblems"
:
"onProblem"
,
...
...
lib/api/fetch.ts
View file @
14993155
import
appConfig
from
'
configs/app/config
'
;
import
type
{
NextApiRequest
}
from
'
next
'
;
import
type
{
NextApiRequest
}
from
'
next
'
;
import
type
{
RequestInit
,
Response
}
from
'
node-fetch
'
;
import
type
{
RequestInit
,
Response
}
from
'
node-fetch
'
;
import
nodeFetch
from
'
node-fetch
'
;
import
nodeFetch
from
'
node-fetch
'
;
import
appConfig
from
'
configs/app/config
'
;
import
{
httpLogger
}
from
'
lib/api/logger
'
;
import
{
httpLogger
}
from
'
lib/api/logger
'
;
import
*
as
cookies
from
'
lib/cookies
'
;
import
*
as
cookies
from
'
lib/cookies
'
;
...
...
lib/api/getUrlWithNetwork.ts
View file @
14993155
// import * as Sentry from '@sentry/nextjs';
// import * as Sentry from '@sentry/nextjs';
import
appConfig
from
'
configs/app/config
'
;
import
type
{
NextApiRequest
}
from
'
next
'
;
import
type
{
NextApiRequest
}
from
'
next
'
;
import
appConfig
from
'
configs/app/config
'
;
export
default
function
getUrlWithNetwork
(
_req
:
NextApiRequest
,
path
:
string
)
{
export
default
function
getUrlWithNetwork
(
_req
:
NextApiRequest
,
path
:
string
)
{
return
[
return
[
appConfig
.
api
.
basePath
,
appConfig
.
api
.
basePath
,
...
...
lib/csp/getCspPolicy.ts
View file @
14993155
import
appConfig
from
'
configs/app/config
'
;
import
appConfig
from
'
configs/app/config
'
;
import
featuredNetworks
from
'
lib/networks/featuredNetworks
'
;
import
featuredNetworks
from
'
lib/networks/featuredNetworks
'
;
import
getMarketplaceApps
from
'
../getMarketplaceApps
'
;
import
getMarketplaceApps
from
'
../getMarketplaceApps
'
;
...
...
lib/hooks/useConfigSentry.tsx
View file @
14993155
import
*
as
Sentry
from
'
@sentry/react
'
;
import
*
as
Sentry
from
'
@sentry/react
'
;
import
{
config
,
configureScope
}
from
'
configs/sentry/react
'
;
import
React
from
'
react
'
;
import
React
from
'
react
'
;
import
{
config
,
configureScope
}
from
'
configs/sentry/react
'
;
export
default
function
useConfigSentry
()
{
export
default
function
useConfigSentry
()
{
React
.
useEffect
(()
=>
{
React
.
useEffect
(()
=>
{
// gotta init sentry in browser
// gotta init sentry in browser
...
...
lib/hooks/useNavItems.tsx
View file @
14993155
import
appConfig
from
'
configs/app/config
'
;
import
React
,
{
useMemo
}
from
'
react
'
;
import
React
,
{
useMemo
}
from
'
react
'
;
import
appConfig
from
'
configs/app/config
'
;
import
marketplaceApps
from
'
data/marketplaceApps.json
'
;
import
marketplaceApps
from
'
data/marketplaceApps.json
'
;
import
abiIcon
from
'
icons/ABI.svg
'
;
import
abiIcon
from
'
icons/ABI.svg
'
;
import
apiKeysIcon
from
'
icons/API.svg
'
;
import
apiKeysIcon
from
'
icons/API.svg
'
;
...
...
lib/networks/featuredNetworks.ts
View file @
14993155
import
appConfig
from
'
configs/app/config
'
;
import
type
{
FeaturedNetwork
}
from
'
types/networks
'
;
import
type
{
FeaturedNetwork
}
from
'
types/networks
'
;
import
appConfig
from
'
configs/app/config
'
;
import
arbitrumIcon
from
'
icons/networks/icons/arbitrum.svg
'
;
import
arbitrumIcon
from
'
icons/networks/icons/arbitrum.svg
'
;
import
artisIcon
from
'
icons/networks/icons/artis.svg
'
;
import
artisIcon
from
'
icons/networks/icons/artis.svg
'
;
import
ethereumClassicIcon
from
'
icons/networks/icons/ethereum-classic.svg
'
;
import
ethereumClassicIcon
from
'
icons/networks/icons/ethereum-classic.svg
'
;
...
...
lib/networks/useNetworkNavigationItems.ts
View file @
14993155
import
appConfig
from
'
configs/app/config
'
;
import
{
useRouter
}
from
'
next/router
'
;
import
{
useRouter
}
from
'
next/router
'
;
import
React
from
'
react
'
;
import
React
from
'
react
'
;
import
appConfig
from
'
configs/app/config
'
;
import
link
from
'
lib/link/link
'
;
import
link
from
'
lib/link/link
'
;
import
{
ROUTES
}
from
'
lib/link/routes
'
;
import
{
ROUTES
}
from
'
lib/link/routes
'
;
import
useCurrentRoute
from
'
lib/link/useCurrentRoute
'
;
import
useCurrentRoute
from
'
lib/link/useCurrentRoute
'
;
...
...
middleware.ts
View file @
14993155
import
appConfig
from
'
configs/app/config
'
;
import
type
{
NextRequest
}
from
'
next/server
'
;
import
type
{
NextRequest
}
from
'
next/server
'
;
import
{
NextResponse
}
from
'
next/server
'
;
import
{
NextResponse
}
from
'
next/server
'
;
import
appConfig
from
'
configs/app/config
'
;
import
{
NAMES
}
from
'
lib/cookies
'
;
import
{
NAMES
}
from
'
lib/cookies
'
;
import
getCspPolicy
from
'
lib/csp/getCspPolicy
'
;
import
getCspPolicy
from
'
lib/csp/getCspPolicy
'
;
import
link
from
'
lib/link/link
'
;
import
link
from
'
lib/link/link
'
;
...
...
package.json
View file @
14993155
...
@@ -16,6 +16,7 @@
...
@@ -16,6 +16,7 @@
"start"
:
"next start"
,
"start"
:
"next start"
,
"start:docker:poa_core"
:
"docker run -p 3000:3000 --env-file ./configs/envs/.env.common --env-file ./configs/envs/.env.poa_core --env-file ./configs/envs/.env.secrets blockscout"
,
"start:docker:poa_core"
:
"docker run -p 3000:3000 --env-file ./configs/envs/.env.common --env-file ./configs/envs/.env.poa_core --env-file ./configs/envs/.env.secrets blockscout"
,
"lint:eslint"
:
"./node_modules/.bin/eslint . --ext .js,.jsx,.ts,.tsx"
,
"lint:eslint"
:
"./node_modules/.bin/eslint . --ext .js,.jsx,.ts,.tsx"
,
"lint:eslint:fix"
:
"./node_modules/.bin/eslint . --ext .js,.jsx,.ts,.tsx --fix"
,
"lint:tsc"
:
"./node_modules/.bin/tsc -p ./tsconfig.json"
,
"lint:tsc"
:
"./node_modules/.bin/tsc -p ./tsconfig.json"
,
"prepare"
:
"husky install"
,
"prepare"
:
"husky install"
,
"format-svg"
:
"./node_modules/.bin/svgo -r ./icons"
,
"format-svg"
:
"./node_modules/.bin/svgo -r ./icons"
,
...
...
pages/_error.tsx
View file @
14993155
...
@@ -17,11 +17,12 @@
...
@@ -17,11 +17,12 @@
*/
*/
import
*
as
Sentry
from
'
@sentry/nextjs
'
;
import
*
as
Sentry
from
'
@sentry/nextjs
'
;
import
sentryConfig
from
'
configs/sentry/nextjs
'
;
import
type
{
NextPageContext
}
from
'
next
'
;
import
type
{
NextPageContext
}
from
'
next
'
;
import
NextErrorComponent
from
'
next/error
'
;
import
NextErrorComponent
from
'
next/error
'
;
import
React
from
'
react
'
;
import
React
from
'
react
'
;
import
sentryConfig
from
'
configs/sentry/nextjs
'
;
type
ContextOrProps
=
{
type
ContextOrProps
=
{
req
?:
NextPageContext
[
'
req
'
];
req
?:
NextPageContext
[
'
req
'
];
res
?:
NextPageContext
[
'
res
'
];
res
?:
NextPageContext
[
'
res
'
];
...
...
ui/apps/useMarkeplaceApps.tsx
View file @
14993155
import
appConfig
from
'
configs/app/config
'
;
import
debounce
from
'
lodash/debounce
'
;
import
debounce
from
'
lodash/debounce
'
;
import
React
,
{
useCallback
,
useEffect
,
useState
}
from
'
react
'
;
import
React
,
{
useCallback
,
useEffect
,
useState
}
from
'
react
'
;
import
type
{
AppItemOverview
,
MarketplaceCategoriesIds
}
from
'
types/client/apps
'
;
import
type
{
AppItemOverview
,
MarketplaceCategoriesIds
}
from
'
types/client/apps
'
;
import
appConfig
from
'
configs/app/config
'
;
import
marketplaceApps
from
'
data/marketplaceApps.json
'
;
import
marketplaceApps
from
'
data/marketplaceApps.json
'
;
const
favoriteAppsLocalStorageKey
=
'
favoriteApps
'
;
const
favoriteAppsLocalStorageKey
=
'
favoriteApps
'
;
...
...
ui/block/BlockDetails.tsx
View file @
14993155
import
{
Grid
,
GridItem
,
Text
,
Icon
,
Link
,
Box
,
Tooltip
,
Alert
}
from
'
@chakra-ui/react
'
;
import
{
Grid
,
GridItem
,
Text
,
Icon
,
Link
,
Box
,
Tooltip
,
Alert
}
from
'
@chakra-ui/react
'
;
import
{
useQuery
}
from
'
@tanstack/react-query
'
;
import
{
useQuery
}
from
'
@tanstack/react-query
'
;
import
BigNumber
from
'
bignumber.js
'
;
import
BigNumber
from
'
bignumber.js
'
;
import
appConfig
from
'
configs/app/config
'
;
import
{
useRouter
}
from
'
next/router
'
;
import
{
useRouter
}
from
'
next/router
'
;
import
React
from
'
react
'
;
import
React
from
'
react
'
;
import
{
scroller
,
Element
}
from
'
react-scroll
'
;
import
{
scroller
,
Element
}
from
'
react-scroll
'
;
import
type
{
Block
}
from
'
types/api/block
'
;
import
type
{
Block
}
from
'
types/api/block
'
;
import
appConfig
from
'
configs/app/config
'
;
import
clockIcon
from
'
icons/clock.svg
'
;
import
clockIcon
from
'
icons/clock.svg
'
;
import
flameIcon
from
'
icons/flame.svg
'
;
import
flameIcon
from
'
icons/flame.svg
'
;
import
getBlockReward
from
'
lib/block/getBlockReward
'
;
import
getBlockReward
from
'
lib/block/getBlockReward
'
;
...
...
ui/blocks/BlocksListItem.tsx
View file @
14993155
import
{
Flex
,
Link
,
Spinner
,
Text
,
Box
,
Icon
,
useColorModeValue
}
from
'
@chakra-ui/react
'
;
import
{
Flex
,
Link
,
Spinner
,
Text
,
Box
,
Icon
,
useColorModeValue
}
from
'
@chakra-ui/react
'
;
import
BigNumber
from
'
bignumber.js
'
;
import
BigNumber
from
'
bignumber.js
'
;
import
appConfig
from
'
configs/app/config
'
;
import
React
from
'
react
'
;
import
React
from
'
react
'
;
import
type
{
Block
}
from
'
types/api/block
'
;
import
type
{
Block
}
from
'
types/api/block
'
;
import
appConfig
from
'
configs/app/config
'
;
import
flameIcon
from
'
icons/flame.svg
'
;
import
flameIcon
from
'
icons/flame.svg
'
;
import
getBlockReward
from
'
lib/block/getBlockReward
'
;
import
getBlockReward
from
'
lib/block/getBlockReward
'
;
import
{
WEI
}
from
'
lib/consts
'
;
import
{
WEI
}
from
'
lib/consts
'
;
...
...
ui/blocks/BlocksTable.tsx
View file @
14993155
import
{
Table
,
Thead
,
Tbody
,
Tr
,
Th
,
TableContainer
}
from
'
@chakra-ui/react
'
;
import
{
Table
,
Thead
,
Tbody
,
Tr
,
Th
,
TableContainer
}
from
'
@chakra-ui/react
'
;
import
appConfig
from
'
configs/app/config
'
;
import
React
from
'
react
'
;
import
React
from
'
react
'
;
import
type
{
Block
}
from
'
types/api/block
'
;
import
type
{
Block
}
from
'
types/api/block
'
;
import
appConfig
from
'
configs/app/config
'
;
import
BlocksTableItem
from
'
ui/blocks/BlocksTableItem
'
;
import
BlocksTableItem
from
'
ui/blocks/BlocksTableItem
'
;
interface
Props
{
interface
Props
{
...
...
ui/pages/Apps.tsx
View file @
14993155
import
{
Box
,
Icon
,
Link
}
from
'
@chakra-ui/react
'
;
import
{
Box
,
Icon
,
Link
}
from
'
@chakra-ui/react
'
;
import
config
from
'
configs/app/config
'
;
import
React
from
'
react
'
;
import
React
from
'
react
'
;
import
config
from
'
configs/app/config
'
;
import
PlusIcon
from
'
icons/plus.svg
'
;
import
PlusIcon
from
'
icons/plus.svg
'
;
import
AppList
from
'
ui/apps/AppList
'
;
import
AppList
from
'
ui/apps/AppList
'
;
import
AppListSkeleton
from
'
ui/apps/AppListSkeleton
'
;
import
AppListSkeleton
from
'
ui/apps/AppListSkeleton
'
;
...
...
ui/pages/Home.tsx
View file @
14993155
import
{
VStack
,
Textarea
,
Button
,
Alert
,
AlertTitle
,
AlertDescription
,
Link
,
Code
}
from
'
@chakra-ui/react
'
;
import
{
VStack
,
Textarea
,
Button
,
Alert
,
AlertTitle
,
AlertDescription
,
Link
,
Code
}
from
'
@chakra-ui/react
'
;
import
*
as
Sentry
from
'
@sentry/react
'
;
import
*
as
Sentry
from
'
@sentry/react
'
;
import
appConfig
from
'
configs/app/config
'
;
import
{
useRouter
}
from
'
next/router
'
;
import
{
useRouter
}
from
'
next/router
'
;
import
type
{
ChangeEvent
}
from
'
react
'
;
import
type
{
ChangeEvent
}
from
'
react
'
;
import
React
from
'
react
'
;
import
React
from
'
react
'
;
import
appConfig
from
'
configs/app/config
'
;
import
*
as
cookies
from
'
lib/cookies
'
;
import
*
as
cookies
from
'
lib/cookies
'
;
import
useToast
from
'
lib/hooks/useToast
'
;
import
useToast
from
'
lib/hooks/useToast
'
;
import
Page
from
'
ui/shared/Page/Page
'
;
import
Page
from
'
ui/shared/Page/Page
'
;
...
...
ui/pages/MarketplaceApp.tsx
View file @
14993155
import
{
Box
,
Center
,
useColorMode
}
from
'
@chakra-ui/react
'
;
import
{
Box
,
Center
,
useColorMode
}
from
'
@chakra-ui/react
'
;
import
appConfig
from
'
configs/app/config
'
;
import
React
,
{
useCallback
,
useEffect
,
useRef
,
useState
}
from
'
react
'
;
import
React
,
{
useCallback
,
useEffect
,
useRef
,
useState
}
from
'
react
'
;
import
type
{
AppItemOverview
}
from
'
types/client/apps
'
;
import
type
{
AppItemOverview
}
from
'
types/client/apps
'
;
import
appConfig
from
'
configs/app/config
'
;
import
ContentLoader
from
'
ui/shared/ContentLoader
'
;
import
ContentLoader
from
'
ui/shared/ContentLoader
'
;
import
Page
from
'
ui/shared/Page/Page
'
;
import
Page
from
'
ui/shared/Page/Page
'
;
...
...
ui/shared/TokenLogo.tsx
View file @
14993155
import
{
Image
,
chakra
}
from
'
@chakra-ui/react
'
;
import
{
Image
,
chakra
}
from
'
@chakra-ui/react
'
;
import
appConfig
from
'
configs/app/config
'
;
import
React
from
'
react
'
;
import
React
from
'
react
'
;
import
appConfig
from
'
configs/app/config
'
;
const
EmptyElement
=
()
=>
null
;
const
EmptyElement
=
()
=>
null
;
interface
Props
{
interface
Props
{
...
...
ui/snippets/navigation/NavFooter.tsx
View file @
14993155
import
{
Box
,
VStack
,
Text
,
Stack
,
Icon
,
Link
,
useColorModeValue
}
from
'
@chakra-ui/react
'
;
import
{
Box
,
VStack
,
Text
,
Stack
,
Icon
,
Link
,
useColorModeValue
}
from
'
@chakra-ui/react
'
;
import
appConfig
from
'
configs/app/config
'
;
import
React
from
'
react
'
;
import
React
from
'
react
'
;
import
appConfig
from
'
configs/app/config
'
;
import
ghIcon
from
'
icons/social/git.svg
'
;
import
ghIcon
from
'
icons/social/git.svg
'
;
import
statsIcon
from
'
icons/social/stats.svg
'
;
import
statsIcon
from
'
icons/social/stats.svg
'
;
import
tgIcon
from
'
icons/social/telega.svg
'
;
import
tgIcon
from
'
icons/social/telega.svg
'
;
...
...
ui/snippets/navigation/NavigationDesktop.tsx
View file @
14993155
import
{
Flex
,
Box
,
VStack
,
Icon
,
useColorModeValue
}
from
'
@chakra-ui/react
'
;
import
{
Flex
,
Box
,
VStack
,
Icon
,
useColorModeValue
}
from
'
@chakra-ui/react
'
;
import
appConfig
from
'
configs/app/config
'
;
import
React
from
'
react
'
;
import
React
from
'
react
'
;
import
appConfig
from
'
configs/app/config
'
;
import
chevronIcon
from
'
icons/arrows/east-mini.svg
'
;
import
chevronIcon
from
'
icons/arrows/east-mini.svg
'
;
import
*
as
cookies
from
'
lib/cookies
'
;
import
*
as
cookies
from
'
lib/cookies
'
;
import
useNavItems
from
'
lib/hooks/useNavItems
'
;
import
useNavItems
from
'
lib/hooks/useNavItems
'
;
...
...
ui/snippets/navigation/NavigationMobile.tsx
View file @
14993155
import
{
Box
,
VStack
}
from
'
@chakra-ui/react
'
;
import
{
Box
,
VStack
}
from
'
@chakra-ui/react
'
;
import
appConfig
from
'
configs/app/config
'
;
import
React
from
'
react
'
;
import
React
from
'
react
'
;
import
appConfig
from
'
configs/app/config
'
;
import
*
as
cookies
from
'
lib/cookies
'
;
import
*
as
cookies
from
'
lib/cookies
'
;
import
useNavItems
from
'
lib/hooks/useNavItems
'
;
import
useNavItems
from
'
lib/hooks/useNavItems
'
;
import
NavFooter
from
'
ui/snippets/navigation/NavFooter
'
;
import
NavFooter
from
'
ui/snippets/navigation/NavFooter
'
;
...
...
ui/snippets/networkMenu/NetworkLogo.tsx
View file @
14993155
import
{
Icon
,
Box
,
Image
,
useColorModeValue
}
from
'
@chakra-ui/react
'
;
import
{
Icon
,
Box
,
Image
,
useColorModeValue
}
from
'
@chakra-ui/react
'
;
import
appConfig
from
'
configs/app/config
'
;
import
NextLink
from
'
next/link
'
;
import
NextLink
from
'
next/link
'
;
import
React
from
'
react
'
;
import
React
from
'
react
'
;
import
type
{
FunctionComponent
,
SVGAttributes
}
from
'
react
'
;
import
type
{
FunctionComponent
,
SVGAttributes
}
from
'
react
'
;
import
appConfig
from
'
configs/app/config
'
;
import
blockscoutLogo
from
'
icons/logo.svg
'
;
import
blockscoutLogo
from
'
icons/logo.svg
'
;
import
link
from
'
lib/link/link
'
;
import
link
from
'
lib/link/link
'
;
import
getDefaultTransitionProps
from
'
theme/utils/getDefaultTransitionProps
'
;
import
getDefaultTransitionProps
from
'
theme/utils/getDefaultTransitionProps
'
;
...
...
ui/tx/TxDetails.tsx
View file @
14993155
import
{
Grid
,
GridItem
,
Text
,
Box
,
Icon
,
Link
,
Spinner
}
from
'
@chakra-ui/react
'
;
import
{
Grid
,
GridItem
,
Text
,
Box
,
Icon
,
Link
,
Spinner
}
from
'
@chakra-ui/react
'
;
import
{
useQuery
}
from
'
@tanstack/react-query
'
;
import
{
useQuery
}
from
'
@tanstack/react-query
'
;
import
BigNumber
from
'
bignumber.js
'
;
import
BigNumber
from
'
bignumber.js
'
;
import
appConfig
from
'
configs/app/config
'
;
import
{
useRouter
}
from
'
next/router
'
;
import
{
useRouter
}
from
'
next/router
'
;
import
React
from
'
react
'
;
import
React
from
'
react
'
;
import
{
scroller
,
Element
}
from
'
react-scroll
'
;
import
{
scroller
,
Element
}
from
'
react-scroll
'
;
import
type
{
Transaction
}
from
'
types/api/transaction
'
;
import
type
{
Transaction
}
from
'
types/api/transaction
'
;
import
appConfig
from
'
configs/app/config
'
;
import
clockIcon
from
'
icons/clock.svg
'
;
import
clockIcon
from
'
icons/clock.svg
'
;
import
flameIcon
from
'
icons/flame.svg
'
;
import
flameIcon
from
'
icons/flame.svg
'
;
import
{
WEI
,
WEI_IN_GWEI
}
from
'
lib/consts
'
;
import
{
WEI
,
WEI_IN_GWEI
}
from
'
lib/consts
'
;
...
...
ui/tx/internals/TxInternalsListItem.tsx
View file @
14993155
import
{
Flex
,
Tag
,
Icon
,
Box
,
HStack
,
Text
}
from
'
@chakra-ui/react
'
;
import
{
Flex
,
Tag
,
Icon
,
Box
,
HStack
,
Text
}
from
'
@chakra-ui/react
'
;
import
appConfig
from
'
configs/app/config
'
;
import
React
from
'
react
'
;
import
React
from
'
react
'
;
import
type
{
InternalTransaction
}
from
'
types/api/internalTransaction
'
;
import
type
{
InternalTransaction
}
from
'
types/api/internalTransaction
'
;
import
appConfig
from
'
configs/app/config
'
;
import
eastArrowIcon
from
'
icons/arrows/east.svg
'
;
import
eastArrowIcon
from
'
icons/arrows/east.svg
'
;
import
AccountListItemMobile
from
'
ui/shared/AccountListItemMobile
'
;
import
AccountListItemMobile
from
'
ui/shared/AccountListItemMobile
'
;
import
Address
from
'
ui/shared/address/Address
'
;
import
Address
from
'
ui/shared/address/Address
'
;
...
...
ui/tx/internals/TxInternalsTable.tsx
View file @
14993155
import
{
Table
,
Thead
,
Tbody
,
Tr
,
Th
,
TableContainer
,
Link
,
Icon
}
from
'
@chakra-ui/react
'
;
import
{
Table
,
Thead
,
Tbody
,
Tr
,
Th
,
TableContainer
,
Link
,
Icon
}
from
'
@chakra-ui/react
'
;
import
appConfig
from
'
configs/app/config
'
;
import
React
from
'
react
'
;
import
React
from
'
react
'
;
import
type
{
InternalTransaction
}
from
'
types/api/internalTransaction
'
;
import
type
{
InternalTransaction
}
from
'
types/api/internalTransaction
'
;
import
appConfig
from
'
configs/app/config
'
;
import
arrowIcon
from
'
icons/arrows/east.svg
'
;
import
arrowIcon
from
'
icons/arrows/east.svg
'
;
import
TxInternalsTableItem
from
'
ui/tx/internals/TxInternalsTableItem
'
;
import
TxInternalsTableItem
from
'
ui/tx/internals/TxInternalsTableItem
'
;
import
type
{
Sort
,
SortField
}
from
'
ui/tx/internals/utils
'
;
import
type
{
Sort
,
SortField
}
from
'
ui/tx/internals/utils
'
;
...
...
ui/tx/state/TxStateListItem.tsx
View file @
14993155
import
{
AccordionItem
,
AccordionButton
,
AccordionIcon
,
Button
,
Box
,
Flex
,
Text
,
Link
,
StatArrow
,
Stat
,
AccordionPanel
}
from
'
@chakra-ui/react
'
;
import
{
AccordionItem
,
AccordionButton
,
AccordionIcon
,
Button
,
Box
,
Flex
,
Text
,
Link
,
StatArrow
,
Stat
,
AccordionPanel
}
from
'
@chakra-ui/react
'
;
import
appConfig
from
'
configs/app/config
'
;
import
React
from
'
react
'
;
import
React
from
'
react
'
;
import
type
ArrayElement
from
'
types/utils/ArrayElement
'
;
import
type
ArrayElement
from
'
types/utils/ArrayElement
'
;
import
appConfig
from
'
configs/app/config
'
;
import
type
{
data
}
from
'
data/txState
'
;
import
type
{
data
}
from
'
data/txState
'
;
import
{
nbsp
}
from
'
lib/html-entities
'
;
import
{
nbsp
}
from
'
lib/html-entities
'
;
import
AccountListItemMobile
from
'
ui/shared/AccountListItemMobile
'
;
import
AccountListItemMobile
from
'
ui/shared/AccountListItemMobile
'
;
...
...
ui/tx/state/TxStateTable.tsx
View file @
14993155
...
@@ -6,9 +6,9 @@ import {
...
@@ -6,9 +6,9 @@ import {
Th
,
Th
,
TableContainer
,
TableContainer
,
}
from
'
@chakra-ui/react
'
;
}
from
'
@chakra-ui/react
'
;
import
appConfig
from
'
configs/app/config
'
;
import
React
from
'
react
'
;
import
React
from
'
react
'
;
import
appConfig
from
'
configs/app/config
'
;
import
{
data
}
from
'
data/txState
'
;
import
{
data
}
from
'
data/txState
'
;
import
TxStateTableItem
from
'
ui/tx/state/TxStateTableItem
'
;
import
TxStateTableItem
from
'
ui/tx/state/TxStateTableItem
'
;
...
...
ui/txs/TxAdditionalInfo.tsx
View file @
14993155
import
{
Box
,
Heading
,
Text
,
Flex
,
Link
,
useColorModeValue
}
from
'
@chakra-ui/react
'
;
import
{
Box
,
Heading
,
Text
,
Flex
,
Link
,
useColorModeValue
}
from
'
@chakra-ui/react
'
;
import
BigNumber
from
'
bignumber.js
'
;
import
BigNumber
from
'
bignumber.js
'
;
import
appConfig
from
'
configs/app/config
'
;
import
React
from
'
react
'
;
import
React
from
'
react
'
;
import
type
{
Transaction
}
from
'
types/api/transaction
'
;
import
type
{
Transaction
}
from
'
types/api/transaction
'
;
import
appConfig
from
'
configs/app/config
'
;
import
getValueWithUnit
from
'
lib/getValueWithUnit
'
;
import
getValueWithUnit
from
'
lib/getValueWithUnit
'
;
import
link
from
'
lib/link/link
'
;
import
link
from
'
lib/link/link
'
;
import
CurrencyValue
from
'
ui/shared/CurrencyValue
'
;
import
CurrencyValue
from
'
ui/shared/CurrencyValue
'
;
...
...
ui/txs/TxsListItem.tsx
View file @
14993155
...
@@ -10,11 +10,11 @@ import {
...
@@ -10,11 +10,11 @@ import {
Text
,
Text
,
useColorModeValue
,
useColorModeValue
,
useDisclosure
}
from
'
@chakra-ui/react
'
;
useDisclosure
}
from
'
@chakra-ui/react
'
;
import
appConfig
from
'
configs/app/config
'
;
import
React
from
'
react
'
;
import
React
from
'
react
'
;
import
type
{
Transaction
}
from
'
types/api/transaction
'
;
import
type
{
Transaction
}
from
'
types/api/transaction
'
;
import
appConfig
from
'
configs/app/config
'
;
import
rightArrowIcon
from
'
icons/arrows/east.svg
'
;
import
rightArrowIcon
from
'
icons/arrows/east.svg
'
;
import
transactionIcon
from
'
icons/transactions.svg
'
;
import
transactionIcon
from
'
icons/transactions.svg
'
;
import
dayjs
from
'
lib/date/dayjs
'
;
import
dayjs
from
'
lib/date/dayjs
'
;
...
...
ui/txs/TxsTable.tsx
View file @
14993155
import
{
Link
,
Table
,
Thead
,
Tbody
,
Tr
,
Th
,
TableContainer
,
Icon
}
from
'
@chakra-ui/react
'
;
import
{
Link
,
Table
,
Thead
,
Tbody
,
Tr
,
Th
,
TableContainer
,
Icon
}
from
'
@chakra-ui/react
'
;
import
appConfig
from
'
configs/app/config
'
;
import
React
from
'
react
'
;
import
React
from
'
react
'
;
import
type
{
Transaction
}
from
'
types/api/transaction
'
;
import
type
{
Transaction
}
from
'
types/api/transaction
'
;
import
type
{
Sort
}
from
'
types/client/txs-sort
'
;
import
type
{
Sort
}
from
'
types/client/txs-sort
'
;
import
appConfig
from
'
configs/app/config
'
;
import
rightArrowIcon
from
'
icons/arrows/east.svg
'
;
import
rightArrowIcon
from
'
icons/arrows/east.svg
'
;
import
TxsTableItem
from
'
./TxsTableItem
'
;
import
TxsTableItem
from
'
./TxsTableItem
'
;
...
...
ui/watchlist/AddressModal/AddressFormNotifications.tsx
View file @
14993155
import
{
Grid
,
GridItem
}
from
'
@chakra-ui/react
'
;
import
{
Grid
,
GridItem
}
from
'
@chakra-ui/react
'
;
import
appConfig
from
'
configs/app/config
'
;
import
React
,
{
useCallback
}
from
'
react
'
;
import
React
,
{
useCallback
}
from
'
react
'
;
import
{
Controller
}
from
'
react-hook-form
'
;
import
{
Controller
}
from
'
react-hook-form
'
;
import
type
{
Path
,
ControllerRenderProps
,
FieldValues
,
Control
}
from
'
react-hook-form
'
;
import
type
{
Path
,
ControllerRenderProps
,
FieldValues
,
Control
}
from
'
react-hook-form
'
;
import
appConfig
from
'
configs/app/config
'
;
import
CheckboxInput
from
'
ui/shared/CheckboxInput
'
;
import
CheckboxInput
from
'
ui/shared/CheckboxInput
'
;
// does it depend on the network?
// does it depend on the network?
...
...
ui/watchlist/WatchlistTable/WatchListAddressItem.tsx
View file @
14993155
import
{
HStack
,
VStack
,
Text
,
Icon
,
useColorModeValue
}
from
'
@chakra-ui/react
'
;
import
{
HStack
,
VStack
,
Text
,
Icon
,
useColorModeValue
}
from
'
@chakra-ui/react
'
;
import
appConfig
from
'
configs/app/config
'
;
import
React
from
'
react
'
;
import
React
from
'
react
'
;
import
type
{
TWatchlistItem
}
from
'
types/client/account
'
;
import
type
{
TWatchlistItem
}
from
'
types/client/account
'
;
import
appConfig
from
'
configs/app/config
'
;
import
TokensIcon
from
'
icons/tokens.svg
'
;
import
TokensIcon
from
'
icons/tokens.svg
'
;
// import WalletIcon from 'icons/wallet.svg';
// import WalletIcon from 'icons/wallet.svg';
import
{
nbsp
}
from
'
lib/html-entities
'
;
import
{
nbsp
}
from
'
lib/html-entities
'
;
...
...
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