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
e33d887d
Commit
e33d887d
authored
Sep 05, 2022
by
tom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
final skeleton variant
parent
6e1ae251
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
53 additions
and
48 deletions
+53
-48
ApiKeys.tsx
ui/pages/ApiKeys.tsx
+2
-2
CustomAbi.tsx
ui/pages/CustomAbi.tsx
+2
-2
Watchlist.tsx
ui/pages/Watchlist.tsx
+2
-2
PrivateAddressTags.tsx
ui/privateTags/PrivateAddressTags.tsx
+2
-14
PrivateTransactionTags.tsx
ui/privateTags/PrivateTransactionTags.tsx
+2
-2
PublicTagsData.tsx
ui/publicTags/PublicTagsData.tsx
+2
-2
SkeletonAccountMobile.tsx
ui/shared/SkeletonAccountMobile.tsx
+41
-24
No files found.
ui/pages/ApiKeys.tsx
View file @
e33d887d
...
@@ -13,8 +13,8 @@ import ApiKeyTable from 'ui/apiKey/ApiKeyTable/ApiKeyTable';
...
@@ -13,8 +13,8 @@ import ApiKeyTable from 'ui/apiKey/ApiKeyTable/ApiKeyTable';
import
DeleteApiKeyModal
from
'
ui/apiKey/DeleteApiKeyModal
'
;
import
DeleteApiKeyModal
from
'
ui/apiKey/DeleteApiKeyModal
'
;
import
AccountPageDescription
from
'
ui/shared/AccountPageDescription
'
;
import
AccountPageDescription
from
'
ui/shared/AccountPageDescription
'
;
import
AccountPageHeader
from
'
ui/shared/AccountPageHeader
'
;
import
AccountPageHeader
from
'
ui/shared/AccountPageHeader
'
;
import
ContentLoader
from
'
ui/shared/ContentLoader
'
;
import
Page
from
'
ui/shared/Page/Page
'
;
import
Page
from
'
ui/shared/Page/Page
'
;
import
SkeletonAccountMobile
from
'
ui/shared/SkeletonAccountMobile
'
;
import
SkeletonTable
from
'
ui/shared/SkeletonTable
'
;
import
SkeletonTable
from
'
ui/shared/SkeletonTable
'
;
import
DataFetchAlert
from
'
../shared/DataFetchAlert
'
;
import
DataFetchAlert
from
'
../shared/DataFetchAlert
'
;
...
@@ -60,7 +60,7 @@ const ApiKeysPage: React.FC = () => {
...
@@ -60,7 +60,7 @@ const ApiKeysPage: React.FC = () => {
const
content
=
(()
=>
{
const
content
=
(()
=>
{
if
(
isLoading
&&
!
data
)
{
if
(
isLoading
&&
!
data
)
{
const
loader
=
isMobile
?
<
ContentLoader
/>
:
(
const
loader
=
isMobile
?
<
SkeletonAccountMobile
/>
:
(
<>
<>
<
SkeletonTable
columns=
{
[
'
100%
'
,
'
108px
'
]
}
/>
<
SkeletonTable
columns=
{
[
'
100%
'
,
'
108px
'
]
}
/>
<
Skeleton
height=
"48px"
width=
"156px"
marginTop=
{
8
}
/>
<
Skeleton
height=
"48px"
width=
"156px"
marginTop=
{
8
}
/>
...
...
ui/pages/CustomAbi.tsx
View file @
e33d887d
...
@@ -12,8 +12,8 @@ import CustomAbiTable from 'ui/customAbi/CustomAbiTable/CustomAbiTable';
...
@@ -12,8 +12,8 @@ import CustomAbiTable from 'ui/customAbi/CustomAbiTable/CustomAbiTable';
import
DeleteCustomAbiModal
from
'
ui/customAbi/DeleteCustomAbiModal
'
;
import
DeleteCustomAbiModal
from
'
ui/customAbi/DeleteCustomAbiModal
'
;
import
AccountPageDescription
from
'
ui/shared/AccountPageDescription
'
;
import
AccountPageDescription
from
'
ui/shared/AccountPageDescription
'
;
import
AccountPageHeader
from
'
ui/shared/AccountPageHeader
'
;
import
AccountPageHeader
from
'
ui/shared/AccountPageHeader
'
;
import
ContentLoader
from
'
ui/shared/ContentLoader
'
;
import
Page
from
'
ui/shared/Page/Page
'
;
import
Page
from
'
ui/shared/Page/Page
'
;
import
SkeletonAccountMobile
from
'
ui/shared/SkeletonAccountMobile
'
;
import
SkeletonTable
from
'
ui/shared/SkeletonTable
'
;
import
SkeletonTable
from
'
ui/shared/SkeletonTable
'
;
import
DataFetchAlert
from
'
../shared/DataFetchAlert
'
;
import
DataFetchAlert
from
'
../shared/DataFetchAlert
'
;
...
@@ -56,7 +56,7 @@ const CustomAbiPage: React.FC = () => {
...
@@ -56,7 +56,7 @@ const CustomAbiPage: React.FC = () => {
const
content
=
(()
=>
{
const
content
=
(()
=>
{
if
(
isLoading
&&
!
data
)
{
if
(
isLoading
&&
!
data
)
{
const
loader
=
isMobile
?
<
ContentLoader
/>
:
(
const
loader
=
isMobile
?
<
SkeletonAccountMobile
/>
:
(
<>
<>
<
SkeletonTable
columns=
{
[
'
100%
'
,
'
108px
'
]
}
/>
<
SkeletonTable
columns=
{
[
'
100%
'
,
'
108px
'
]
}
/>
<
Skeleton
height=
"44px"
width=
"156px"
marginTop=
{
8
}
/>
<
Skeleton
height=
"44px"
width=
"156px"
marginTop=
{
8
}
/>
...
...
ui/pages/Watchlist.tsx
View file @
e33d887d
...
@@ -8,9 +8,9 @@ import fetch from 'lib/client/fetch';
...
@@ -8,9 +8,9 @@ import fetch from 'lib/client/fetch';
import
useIsMobile
from
'
lib/hooks/useIsMobile
'
;
import
useIsMobile
from
'
lib/hooks/useIsMobile
'
;
import
AccountPageDescription
from
'
ui/shared/AccountPageDescription
'
;
import
AccountPageDescription
from
'
ui/shared/AccountPageDescription
'
;
import
AccountPageHeader
from
'
ui/shared/AccountPageHeader
'
;
import
AccountPageHeader
from
'
ui/shared/AccountPageHeader
'
;
import
ContentLoader
from
'
ui/shared/ContentLoader
'
;
import
DataFetchAlert
from
'
ui/shared/DataFetchAlert
'
;
import
DataFetchAlert
from
'
ui/shared/DataFetchAlert
'
;
import
Page
from
'
ui/shared/Page/Page
'
;
import
Page
from
'
ui/shared/Page/Page
'
;
import
SkeletonAccountMobile
from
'
ui/shared/SkeletonAccountMobile
'
;
import
SkeletonTable
from
'
ui/shared/SkeletonTable
'
;
import
SkeletonTable
from
'
ui/shared/SkeletonTable
'
;
import
AddressModal
from
'
ui/watchlist/AddressModal/AddressModal
'
;
import
AddressModal
from
'
ui/watchlist/AddressModal/AddressModal
'
;
import
DeleteAddressModal
from
'
ui/watchlist/DeleteAddressModal
'
;
import
DeleteAddressModal
from
'
ui/watchlist/DeleteAddressModal
'
;
...
@@ -56,7 +56,7 @@ const WatchList: React.FC = () => {
...
@@ -56,7 +56,7 @@ const WatchList: React.FC = () => {
let
content
;
let
content
;
if
(
isLoading
&&
!
data
)
{
if
(
isLoading
&&
!
data
)
{
const
loader
=
isMobile
?
<
ContentLoader
/>
:
(
const
loader
=
isMobile
?
<
SkeletonAccountMobile
showFooterSlot
/>
:
(
<>
<>
<
SkeletonTable
columns=
{
[
'
70%
'
,
'
30%
'
,
'
160px
'
,
'
108px
'
]
}
/>
<
SkeletonTable
columns=
{
[
'
70%
'
,
'
30%
'
,
'
160px
'
,
'
108px
'
]
}
/>
<
Skeleton
height=
"44px"
width=
"156px"
marginTop=
{
8
}
/>
<
Skeleton
height=
"44px"
width=
"156px"
marginTop=
{
8
}
/>
...
...
ui/privateTags/PrivateAddressTags.tsx
View file @
e33d887d
...
@@ -5,7 +5,6 @@ import React, { useCallback, useState } from 'react';
...
@@ -5,7 +5,6 @@ import React, { useCallback, useState } from 'react';
import
type
{
AddressTags
,
AddressTag
}
from
'
types/api/account
'
;
import
type
{
AddressTags
,
AddressTag
}
from
'
types/api/account
'
;
import
fetch
from
'
lib/client/fetch
'
;
import
fetch
from
'
lib/client/fetch
'
;
import
delay
from
'
lib/delay
'
;
import
useIsMobile
from
'
lib/hooks/useIsMobile
'
;
import
useIsMobile
from
'
lib/hooks/useIsMobile
'
;
import
AccountPageDescription
from
'
ui/shared/AccountPageDescription
'
;
import
AccountPageDescription
from
'
ui/shared/AccountPageDescription
'
;
import
DataFetchAlert
from
'
ui/shared/DataFetchAlert
'
;
import
DataFetchAlert
from
'
ui/shared/DataFetchAlert
'
;
...
@@ -19,13 +18,7 @@ import DeletePrivateTagModal from './DeletePrivateTagModal';
...
@@ -19,13 +18,7 @@ import DeletePrivateTagModal from './DeletePrivateTagModal';
const
PrivateAddressTags
=
()
=>
{
const
PrivateAddressTags
=
()
=>
{
const
{
data
:
addressTagsData
,
isLoading
,
isError
}
=
const
{
data
:
addressTagsData
,
isLoading
,
isError
}
=
useQuery
<
unknown
,
unknown
,
AddressTags
>
([
'
address-tags
'
],
async
()
=>
{
useQuery
<
unknown
,
unknown
,
AddressTags
>
([
'
address-tags
'
],
async
()
=>
fetch
(
'
/api/account/private-tags/address
'
),
{
refetchOnMount
:
false
});
const
[
result
]
=
await
Promise
.
all
([
fetch
(
'
/api/account/private-tags/address
'
),
delay
(
5
_000_000
),
]);
return
result
;
},
{
refetchOnMount
:
false
});
const
addressModalProps
=
useDisclosure
();
const
addressModalProps
=
useDisclosure
();
const
deleteModalProps
=
useDisclosure
();
const
deleteModalProps
=
useDisclosure
();
...
@@ -62,12 +55,7 @@ const PrivateAddressTags = () => {
...
@@ -62,12 +55,7 @@ const PrivateAddressTags = () => {
);
);
if
(
isLoading
&&
!
addressTagsData
)
{
if
(
isLoading
&&
!
addressTagsData
)
{
const
loader
=
isMobile
?
(
const
loader
=
isMobile
?
<
SkeletonAccountMobile
/>
:
(
<
Box
>
<
SkeletonAccountMobile
/>
<
SkeletonAccountMobile
/>
</
Box
>
)
:
(
<>
<>
<
SkeletonTable
columns=
{
[
'
60%
'
,
'
40%
'
,
'
108px
'
]
}
/>
<
SkeletonTable
columns=
{
[
'
60%
'
,
'
40%
'
,
'
108px
'
]
}
/>
<
Skeleton
height=
"44px"
width=
"156px"
marginTop=
{
8
}
/>
<
Skeleton
height=
"44px"
width=
"156px"
marginTop=
{
8
}
/>
...
...
ui/privateTags/PrivateTransactionTags.tsx
View file @
e33d887d
...
@@ -7,8 +7,8 @@ import type { TransactionTags, TransactionTag } from 'types/api/account';
...
@@ -7,8 +7,8 @@ import type { TransactionTags, TransactionTag } from 'types/api/account';
import
fetch
from
'
lib/client/fetch
'
;
import
fetch
from
'
lib/client/fetch
'
;
import
useIsMobile
from
'
lib/hooks/useIsMobile
'
;
import
useIsMobile
from
'
lib/hooks/useIsMobile
'
;
import
AccountPageDescription
from
'
ui/shared/AccountPageDescription
'
;
import
AccountPageDescription
from
'
ui/shared/AccountPageDescription
'
;
import
ContentLoader
from
'
ui/shared/ContentLoader
'
;
import
DataFetchAlert
from
'
ui/shared/DataFetchAlert
'
;
import
DataFetchAlert
from
'
ui/shared/DataFetchAlert
'
;
import
SkeletonAccountMobile
from
'
ui/shared/SkeletonAccountMobile
'
;
import
SkeletonTable
from
'
ui/shared/SkeletonTable
'
;
import
SkeletonTable
from
'
ui/shared/SkeletonTable
'
;
import
DeletePrivateTagModal
from
'
./DeletePrivateTagModal
'
;
import
DeletePrivateTagModal
from
'
./DeletePrivateTagModal
'
;
...
@@ -55,7 +55,7 @@ const PrivateTransactionTags = () => {
...
@@ -55,7 +55,7 @@ const PrivateTransactionTags = () => {
);
);
if
(
isLoading
&&
!
transactionTagsData
)
{
if
(
isLoading
&&
!
transactionTagsData
)
{
const
loader
=
isMobile
?
<
ContentLoader
/>
:
(
const
loader
=
isMobile
?
<
SkeletonAccountMobile
/>
:
(
<>
<>
<
SkeletonTable
columns=
{
[
'
75%
'
,
'
25%
'
,
'
108px
'
]
}
/>
<
SkeletonTable
columns=
{
[
'
75%
'
,
'
25%
'
,
'
108px
'
]
}
/>
<
Skeleton
height=
"44px"
width=
"156px"
marginTop=
{
8
}
/>
<
Skeleton
height=
"44px"
width=
"156px"
marginTop=
{
8
}
/>
...
...
ui/publicTags/PublicTagsData.tsx
View file @
e33d887d
...
@@ -8,8 +8,8 @@ import fetch from 'lib/client/fetch';
...
@@ -8,8 +8,8 @@ import fetch from 'lib/client/fetch';
import
useIsMobile
from
'
lib/hooks/useIsMobile
'
;
import
useIsMobile
from
'
lib/hooks/useIsMobile
'
;
import
PublicTagListItem
from
'
ui/publicTags/PublicTagTable/PublicTagListItem
'
;
import
PublicTagListItem
from
'
ui/publicTags/PublicTagTable/PublicTagListItem
'
;
import
AccountPageDescription
from
'
ui/shared/AccountPageDescription
'
;
import
AccountPageDescription
from
'
ui/shared/AccountPageDescription
'
;
import
ContentLoader
from
'
ui/shared/ContentLoader
'
;
import
DataFetchAlert
from
'
ui/shared/DataFetchAlert
'
;
import
DataFetchAlert
from
'
ui/shared/DataFetchAlert
'
;
import
SkeletonAccountMobile
from
'
ui/shared/SkeletonAccountMobile
'
;
import
SkeletonTable
from
'
ui/shared/SkeletonTable
'
;
import
SkeletonTable
from
'
ui/shared/SkeletonTable
'
;
import
DeletePublicTagModal
from
'
./DeletePublicTagModal
'
;
import
DeletePublicTagModal
from
'
./DeletePublicTagModal
'
;
...
@@ -55,7 +55,7 @@ const PublicTagsData = ({ changeToFormScreen, onTagDelete }: Props) => {
...
@@ -55,7 +55,7 @@ const PublicTagsData = ({ changeToFormScreen, onTagDelete }: Props) => {
);
);
if
(
isLoading
)
{
if
(
isLoading
)
{
const
loader
=
isMobile
?
<
ContentLoader
/>
:
(
const
loader
=
isMobile
?
<
SkeletonAccountMobile
/>
:
(
<>
<>
<
SkeletonTable
columns=
{
[
'
50%
'
,
'
25%
'
,
'
25%
'
,
'
108px
'
]
}
/>
<
SkeletonTable
columns=
{
[
'
50%
'
,
'
25%
'
,
'
25%
'
,
'
108px
'
]
}
/>
<
Skeleton
height=
"48px"
width=
"270px"
marginTop=
{
8
}
/>
<
Skeleton
height=
"48px"
width=
"270px"
marginTop=
{
8
}
/>
...
...
ui/shared/SkeletonAccountMobile.tsx
View file @
e33d887d
import
{
Flex
,
Skeleton
,
SkeletonCircle
,
useColorModeValue
}
from
'
@chakra-ui/react
'
;
import
{
Box
,
Flex
,
Skeleton
,
SkeletonCircle
,
useColorModeValue
}
from
'
@chakra-ui/react
'
;
import
React
from
'
react
'
;
import
React
from
'
react
'
;
const
SkeletonAccountMobile
=
()
=>
{
interface
Props
{
showFooterSlot
?:
boolean
;
}
const
SkeletonAccountMobile
=
({
showFooterSlot
}:
Props
)
=>
{
const
borderColor
=
useColorModeValue
(
'
blackAlpha.200
'
,
'
whiteAlpha.200
'
);
return
(
return
(
<
Flex
<
Box
>
rowGap=
{
3
}
{
Array
.
from
(
Array
(
2
)).
map
((
item
,
index
)
=>
(
flexDirection=
"column"
<
Flex
paddingY=
{
6
}
key=
{
index
}
borderTopWidth=
"1px"
rowGap=
{
3
}
borderColor=
{
useColorModeValue
(
'
blackAlpha.200
'
,
'
whiteAlpha.200
'
)
}
flexDirection=
"column"
_first=
{
{
paddingY=
{
6
}
borderTopWidth
:
'
0
'
,
borderTopWidth=
"1px"
pt
:
'
0
'
,
borderColor=
{
borderColor
}
}
}
_first=
{
{
>
borderTopWidth
:
'
0
'
,
<
Flex
columnGap=
{
2
}
w=
"100%"
alignItems=
"center"
>
pt
:
'
0
'
,
<
SkeletonCircle
size=
"6"
flexShrink=
"0"
/>
}
}
<
Skeleton
h=
{
4
}
w=
"100%"
/>
>
</
Flex
>
<
Flex
columnGap=
{
2
}
w=
"100%"
alignItems=
"center"
>
<
Skeleton
h=
{
4
}
w=
"164px"
/>
<
SkeletonCircle
size=
"6"
flexShrink=
"0"
/>
<
Skeleton
h=
{
4
}
w=
"164px"
/>
<
Skeleton
h=
{
4
}
w=
"100%"
/>
<
Flex
columnGap=
{
3
}
alignSelf=
"flex-end"
mt=
{
7
}
>
</
Flex
>
<
SkeletonCircle
size=
"6"
flexShrink=
"0"
/>
<
Skeleton
h=
{
4
}
w=
"164px"
/>
<
SkeletonCircle
size=
"6"
flexShrink=
"0"
/>
<
Skeleton
h=
{
4
}
w=
"164px"
/>
</
Flex
>
<
Flex
columnGap=
{
3
}
mt=
{
7
}
>
</
Flex
>
{
showFooterSlot
&&
(
<
Flex
alignItems=
"center"
columnGap=
{
2
}
>
<
Skeleton
h=
{
4
}
w=
"164px"
/>
<
SkeletonCircle
size=
"6"
flexShrink=
"0"
/>
</
Flex
>
)
}
<
SkeletonCircle
size=
"6"
flexShrink=
"0"
ml=
"auto"
/>
<
SkeletonCircle
size=
"6"
flexShrink=
"0"
/>
</
Flex
>
</
Flex
>
))
}
</
Box
>
);
);
};
};
...
...
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