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
5b61cd3d
Commit
5b61cd3d
authored
Aug 31, 2023
by
tom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixes, thanks to pw
parent
7eb809cc
Changes
14
Show whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
39 additions
and
40 deletions
+39
-40
publictags.svg
icons/publictags.svg
+3
-3
publictags_slim.svg
icons/publictags_slim.svg
+4
-0
AddressDetails.tsx
ui/address/AddressDetails.tsx
+1
-3
indicators.tsx
ui/home/indicators/utils/indicators.tsx
+1
-1
SearchResultListItem.tsx
ui/searchResults/SearchResultListItem.tsx
+1
-1
SearchResultTableItem.tsx
ui/searchResults/SearchResultTableItem.tsx
+1
-1
AddressHeadingInfo.tsx
ui/shared/AddressHeadingInfo.tsx
+1
-1
utils.ts
ui/shared/entities/base/utils.ts
+1
-6
TokenEntity.tsx
ui/shared/entities/token/TokenEntity.tsx
+7
-5
SearchBarSuggestAddress.tsx
...ts/searchBar/SearchBarSuggest/SearchBarSuggestAddress.tsx
+15
-15
SearchBarSuggestLabel.tsx
...pets/searchBar/SearchBarSuggest/SearchBarSuggestLabel.tsx
+1
-1
TokensListItem.tsx
ui/tokens/TokensListItem.tsx
+1
-1
TokensTableItem.tsx
ui/tokens/TokensTableItem.tsx
+1
-1
TxDetails.tsx
ui/tx/TxDetails.tsx
+1
-1
No files found.
icons/publictags.svg
View file @
5b61cd3d
<svg
viewBox=
"0 0
20 2
0"
fill=
"none"
xmlns=
"http://www.w3.org/2000/svg"
>
<svg
viewBox=
"0 0
30 3
0"
fill=
"none"
xmlns=
"http://www.w3.org/2000/svg"
>
<path
d=
"M
9.094 19.3c-.58 0-1.116-.223-1.517-.625l-5.936-5.94a2.13 2.13 0 0 1 0-3.036L9.585 1.75c.714-.714 2.008-1.25 2.99-1.25h5.088c1.16 0 2.142.982 2.142 2.143v5.091c0 .983-.536 2.278-1.25 2.992l-7.944 7.949a2.125 2.125 0 0 1-1.517.625Zm3.481-17.46c-.625 0-1.607.402-2.053.848l-7.944 7.949a.782.782 0 0 0 0 1.116l5.936 5.94c.312.312.848.312 1.115 0l7.944-7.95c.447-.446.848-1.384.848-2.053V2.599a.8.8 0 0 0-.803-.804h-5.043v.045Z"
fill=
"currentColor
"
/>
<path
d=
"M
13.61 25a2.262 2.262 0 0 1-1.615-.665l-6.318-6.318a2.265 2.265 0 0 1 0-3.23l8.456-8.457c.76-.76 2.138-1.33 3.183-1.33h5.416c1.235 0 2.28 1.045 2.28 2.28v5.416c0 1.045-.57 2.423-1.33 3.183l-8.456 8.456A2.262 2.262 0 0 1 13.61 25Zm3.706-18.575c-.665 0-1.71.428-2.185.903l-8.456 8.456a.832.832 0 0 0 0 1.187l6.318 6.319c.332.332.902.332 1.188 0l8.456-8.456c.475-.475.902-1.473.902-2.185V7.232a.852.852 0 0 0-.855-.855h-5.368v.047Z"
fill=
"currentColor"
stroke=
"currentColor"
stroke-width=
".5
"
/>
<path
d=
"M1
4.45 8.493a2.639 2.639 0 0 1-2.634-2.634 2.639 2.639 0 0 1 2.633-2.635 2.639 2.639 0 0 1 2.634 2.635 2.639 2.639 0 0 1-2.633 2.634Zm0-4.019a1.39 1.39 0 0 0-1.384 1.385c0 .759.625 1.384 1.383 1.384a1.39 1.39 0 0 0 1.384-1.384 1.39 1.39 0 0 0-1.383-1.385Z"
fill=
"currentColor
"
/>
<path
d=
"M1
9.311 13.504a2.808 2.808 0 0 1-2.803-2.803 2.808 2.808 0 0 1 2.803-2.803 2.808 2.808 0 0 1 2.803 2.803 2.808 2.808 0 0 1-2.803 2.803Zm0-4.276a1.48 1.48 0 0 0-1.473 1.473 1.48 1.48 0 0 0 1.473 1.473 1.48 1.48 0 0 0 1.473-1.473 1.48 1.48 0 0 0-1.473-1.473Z"
fill=
"currentColor"
stroke=
"currentColor"
stroke-width=
".5
"
/>
</svg>
</svg>
icons/publictags_slim.svg
0 → 100644
View file @
5b61cd3d
<svg
viewBox=
"0 0 20 20"
fill=
"none"
xmlns=
"http://www.w3.org/2000/svg"
>
<path
d=
"M9.094 19.3c-.58 0-1.116-.223-1.517-.625l-5.936-5.94a2.13 2.13 0 0 1 0-3.036L9.585 1.75c.714-.714 2.008-1.25 2.99-1.25h5.088c1.16 0 2.142.982 2.142 2.143v5.091c0 .983-.536 2.278-1.25 2.992l-7.944 7.949a2.125 2.125 0 0 1-1.517.625Zm3.481-17.46c-.625 0-1.607.402-2.053.848l-7.944 7.949a.782.782 0 0 0 0 1.116l5.936 5.94c.312.312.848.312 1.115 0l7.944-7.95c.447-.446.848-1.384.848-2.053V2.599a.8.8 0 0 0-.803-.804h-5.043v.045Z"
fill=
"currentColor"
/>
<path
d=
"M14.45 8.493a2.639 2.639 0 0 1-2.634-2.634 2.639 2.639 0 0 1 2.633-2.635 2.639 2.639 0 0 1 2.634 2.635 2.639 2.639 0 0 1-2.633 2.634Zm0-4.019a1.39 1.39 0 0 0-1.384 1.385 1.39 1.39 0 0 0 1.383 1.384 1.39 1.39 0 0 0 1.384-1.384 1.39 1.39 0 0 0-1.383-1.385Z"
fill=
"currentColor"
/>
</svg>
ui/address/AddressDetails.tsx
View file @
5b61cd3d
...
@@ -102,10 +102,9 @@ const AddressDetails = ({ addressQuery, scrollRef }: Props) => {
...
@@ -102,10 +102,9 @@ const AddressDetails = ({ addressQuery, scrollRef }: Props) => {
address=
{
{
hash
:
data
.
creator_address_hash
}
}
address=
{
{
hash
:
data
.
creator_address_hash
}
}
truncation=
"constant"
truncation=
"constant"
noIcon
noIcon
noCopy
/>
/>
<
Text
whiteSpace=
"pre"
>
at txn
</
Text
>
<
Text
whiteSpace=
"pre"
>
at txn
</
Text
>
<
TxEntity
hash=
{
data
.
creation_tx_hash
}
truncation=
"constant"
noIcon
/>
<
TxEntity
hash=
{
data
.
creation_tx_hash
}
truncation=
"constant"
noIcon
noCopy=
{
false
}
/>
</
DetailsInfoItem
>
</
DetailsInfoItem
>
)
}
)
}
{
data
.
is_contract
&&
data
.
implementation_address
&&
(
{
data
.
is_contract
&&
data
.
implementation_address
&&
(
...
@@ -118,7 +117,6 @@ const AddressDetails = ({ addressQuery, scrollRef }: Props) => {
...
@@ -118,7 +117,6 @@ const AddressDetails = ({ addressQuery, scrollRef }: Props) => {
address=
{
{
hash
:
data
.
implementation_address
,
name
:
data
.
implementation_name
,
is_contract
:
true
}
}
address=
{
{
hash
:
data
.
implementation_address
,
name
:
data
.
implementation_name
,
is_contract
:
true
}
}
isLoading=
{
addressQuery
.
isPlaceholderData
}
isLoading=
{
addressQuery
.
isPlaceholderData
}
noIcon
noIcon
noCopy
/>
/>
</
DetailsInfoItem
>
</
DetailsInfoItem
>
)
}
)
}
...
...
ui/home/indicators/utils/indicators.tsx
View file @
5b61cd3d
...
@@ -38,7 +38,7 @@ const coinPriceIndicator: TChainIndicator<'homepage_chart_market'> = {
...
@@ -38,7 +38,7 @@ const coinPriceIndicator: TChainIndicator<'homepage_chart_market'> = {
id
:
'
coin_price
'
,
id
:
'
coin_price
'
,
title
:
`
${
config
.
chain
.
currency
.
symbol
}
price`
,
title
:
`
${
config
.
chain
.
currency
.
symbol
}
price`
,
value
:
(
stats
)
=>
'
$
'
+
Number
(
stats
.
coin_price
).
toLocaleString
(
undefined
,
{
minimumFractionDigits
:
2
,
maximumFractionDigits
:
6
}),
value
:
(
stats
)
=>
'
$
'
+
Number
(
stats
.
coin_price
).
toLocaleString
(
undefined
,
{
minimumFractionDigits
:
2
,
maximumFractionDigits
:
6
}),
icon
:
<
TokenEntity
.
Icon
token=
{
nativeTokenData
}
iconSize=
"24"
/>,
icon
:
<
TokenEntity
.
Icon
token=
{
nativeTokenData
}
boxSize=
{
6
}
marginRight=
{
0
}
/>,
hint
:
`
${
config
.
chain
.
currency
.
symbol
}
token daily price in USD.`
,
hint
:
`
${
config
.
chain
.
currency
.
symbol
}
token daily price in USD.`
,
api
:
{
api
:
{
resourceName
:
'
homepage_chart_market
'
,
resourceName
:
'
homepage_chart_market
'
,
...
...
ui/searchResults/SearchResultListItem.tsx
View file @
5b61cd3d
...
@@ -5,7 +5,7 @@ import type { SearchResultItem } from 'types/api/search';
...
@@ -5,7 +5,7 @@ import type { SearchResultItem } from 'types/api/search';
import
{
route
}
from
'
nextjs-routes
'
;
import
{
route
}
from
'
nextjs-routes
'
;
import
labelIcon
from
'
icons/publictags.svg
'
;
import
labelIcon
from
'
icons/publictags
_slim
.svg
'
;
import
iconSuccess
from
'
icons/status/success.svg
'
;
import
iconSuccess
from
'
icons/status/success.svg
'
;
import
verifiedToken
from
'
icons/verified_token.svg
'
;
import
verifiedToken
from
'
icons/verified_token.svg
'
;
import
dayjs
from
'
lib/date/dayjs
'
;
import
dayjs
from
'
lib/date/dayjs
'
;
...
...
ui/searchResults/SearchResultTableItem.tsx
View file @
5b61cd3d
...
@@ -5,7 +5,7 @@ import type { SearchResultItem } from 'types/api/search';
...
@@ -5,7 +5,7 @@ import type { SearchResultItem } from 'types/api/search';
import
{
route
}
from
'
nextjs-routes
'
;
import
{
route
}
from
'
nextjs-routes
'
;
import
labelIcon
from
'
icons/publictags.svg
'
;
import
labelIcon
from
'
icons/publictags
_slim
.svg
'
;
import
iconSuccess
from
'
icons/status/success.svg
'
;
import
iconSuccess
from
'
icons/status/success.svg
'
;
import
verifiedToken
from
'
icons/verified_token.svg
'
;
import
verifiedToken
from
'
icons/verified_token.svg
'
;
import
dayjs
from
'
lib/date/dayjs
'
;
import
dayjs
from
'
lib/date/dayjs
'
;
...
...
ui/shared/AddressHeadingInfo.tsx
View file @
5b61cd3d
...
@@ -22,7 +22,7 @@ const AddressHeadingInfo = ({ address, token, isLinkDisabled, isLoading }: Props
...
@@ -22,7 +22,7 @@ const AddressHeadingInfo = ({ address, token, isLinkDisabled, isLoading }: Props
return
(
return
(
<
Flex
alignItems=
"center"
>
<
Flex
alignItems=
"center"
>
<
AddressEntity
<
AddressEntity
address=
{
address
}
address=
{
{
...
address
,
name
:
''
}
}
isLoading=
{
isLoading
}
isLoading=
{
isLoading
}
fontFamily=
"heading"
fontFamily=
"heading"
fontSize=
"lg"
fontSize=
"lg"
...
...
ui/shared/entities/base/utils.ts
View file @
5b61cd3d
export
type
IconSize
=
'
md
'
|
'
lg
'
|
'
24
'
;
export
type
IconSize
=
'
md
'
|
'
lg
'
;
export
function
getIconProps
(
size
:
IconSize
=
'
md
'
)
{
export
function
getIconProps
(
size
:
IconSize
=
'
md
'
)
{
switch
(
size
)
{
switch
(
size
)
{
...
@@ -12,10 +12,5 @@ export function getIconProps(size: IconSize = 'md') {
...
@@ -12,10 +12,5 @@ export function getIconProps(size: IconSize = 'md') {
boxSize
:
'
30px
'
,
// for headings
boxSize
:
'
30px
'
,
// for headings
};
};
}
}
case
'
24
'
:
{
return
{
boxSize
:
'
24px
'
,
// deprecated
};
}
}
}
}
}
ui/shared/entities/token/TokenEntity.tsx
View file @
5b61cd3d
import
type
{
As
}
from
'
@chakra-ui/react
'
;
import
type
{
As
,
ChakraProps
}
from
'
@chakra-ui/react
'
;
import
{
Image
,
Skeleton
,
chakra
}
from
'
@chakra-ui/react
'
;
import
{
Image
,
Skeleton
,
chakra
}
from
'
@chakra-ui/react
'
;
import
_omit
from
'
lodash/omit
'
;
import
_omit
from
'
lodash/omit
'
;
import
React
from
'
react
'
;
import
React
from
'
react
'
;
...
@@ -30,16 +30,18 @@ const Link = chakra((props: LinkProps) => {
...
@@ -30,16 +30,18 @@ const Link = chakra((props: LinkProps) => {
type
IconProps
=
Pick
<
EntityProps
,
'
token
'
|
'
isLoading
'
|
'
iconSize
'
|
'
noIcon
'
|
'
className
'
>
&
{
type
IconProps
=
Pick
<
EntityProps
,
'
token
'
|
'
isLoading
'
|
'
iconSize
'
|
'
noIcon
'
|
'
className
'
>
&
{
asProp
?:
As
;
asProp
?:
As
;
marginRight
?:
ChakraProps
[
'
marginRight
'
];
boxSize
?:
ChakraProps
[
'
boxSize
'
];
};
};
const
Icon
=
chakra
(
(
props
:
IconProps
)
=>
{
const
Icon
=
(
props
:
IconProps
)
=>
{
if
(
props
.
noIcon
)
{
if
(
props
.
noIcon
)
{
return
null
;
return
null
;
}
}
const
styles
=
{
const
styles
=
{
...
getIconProps
(
props
.
iconSize
)
,
marginRight
:
props
.
marginRight
??
2
,
marginRight
:
2
,
boxSize
:
props
.
boxSize
??
getIconProps
(
props
.
iconSize
).
boxSize
,
borderRadius
:
'
base
'
,
borderRadius
:
'
base
'
,
};
};
...
@@ -56,7 +58,7 @@ const Icon = chakra((props: IconProps) => {
...
@@ -56,7 +58,7 @@ const Icon = chakra((props: IconProps) => {
fallback=
{
<
TokenLogoPlaceholder
{
...
styles
}
/>
}
fallback=
{
<
TokenLogoPlaceholder
{
...
styles
}
/>
}
/>
/>
);
);
}
)
;
};
type
ContentProps
=
Omit
<
EntityBase
.
ContentBaseProps
,
'
text
'
>
&
Pick
<
EntityProps
,
'
token
'
|
'
jointSymbol
'
|
'
onlySymbol
'
>
;
type
ContentProps
=
Omit
<
EntityBase
.
ContentBaseProps
,
'
text
'
>
&
Pick
<
EntityProps
,
'
token
'
|
'
jointSymbol
'
|
'
onlySymbol
'
>
;
...
...
ui/snippets/searchBar/SearchBarSuggest/SearchBarSuggestAddress.tsx
View file @
5b61cd3d
import
{
Box
,
Text
,
Grid
,
Flex
}
from
'
@chakra-ui/react
'
;
import
{
Box
,
Text
,
Flex
}
from
'
@chakra-ui/react
'
;
import
React
from
'
react
'
;
import
React
from
'
react
'
;
import
type
{
SearchResultAddressOrContract
}
from
'
types/api/search
'
;
import
type
{
SearchResultAddressOrContract
}
from
'
types/api/search
'
;
...
@@ -35,7 +35,7 @@ const SearchBarSuggestAddress = ({ data, isMobile, searchTerm }: Props) => {
...
@@ -35,7 +35,7 @@ const SearchBarSuggestAddress = ({ data, isMobile, searchTerm }: Props) => {
if
(
isMobile
)
{
if
(
isMobile
)
{
return
(
return
(
<>
<>
<
Grid
templateColumns=
"24px 1f
r"
>
<
Flex
alignItems=
"cente
r"
>
{
icon
}
{
icon
}
<
Box
<
Box
as=
{
shouldHighlightHash
?
'
mark
'
:
'
span
'
}
as=
{
shouldHighlightHash
?
'
mark
'
:
'
span
'
}
...
@@ -46,7 +46,7 @@ const SearchBarSuggestAddress = ({ data, isMobile, searchTerm }: Props) => {
...
@@ -46,7 +46,7 @@ const SearchBarSuggestAddress = ({ data, isMobile, searchTerm }: Props) => {
>
>
{
address
}
{
address
}
</
Box
>
</
Box
>
</
Grid
>
</
Flex
>
{
name
}
{
name
}
</>
</>
);
);
...
@@ -54,6 +54,7 @@ const SearchBarSuggestAddress = ({ data, isMobile, searchTerm }: Props) => {
...
@@ -54,6 +54,7 @@ const SearchBarSuggestAddress = ({ data, isMobile, searchTerm }: Props) => {
return
(
return
(
<
Flex
alignItems=
"center"
>
<
Flex
alignItems=
"center"
>
<
Flex
alignItems=
"center"
w=
"450px"
mr=
{
2
}
>
{
icon
}
{
icon
}
<
Box
<
Box
as=
{
shouldHighlightHash
?
'
mark
'
:
'
span
'
}
as=
{
shouldHighlightHash
?
'
mark
'
:
'
span
'
}
...
@@ -61,11 +62,10 @@ const SearchBarSuggestAddress = ({ data, isMobile, searchTerm }: Props) => {
...
@@ -61,11 +62,10 @@ const SearchBarSuggestAddress = ({ data, isMobile, searchTerm }: Props) => {
overflow=
"hidden"
overflow=
"hidden"
whiteSpace=
"nowrap"
whiteSpace=
"nowrap"
fontWeight=
{
700
}
fontWeight=
{
700
}
w=
"450px"
mr=
{
2
}
>
>
{
address
}
{
address
}
</
Box
>
</
Box
>
</
Flex
>
{
name
}
{
name
}
</
Flex
>
</
Flex
>
);
);
...
...
ui/snippets/searchBar/SearchBarSuggest/SearchBarSuggestLabel.tsx
View file @
5b61cd3d
...
@@ -3,7 +3,7 @@ import React from 'react';
...
@@ -3,7 +3,7 @@ import React from 'react';
import
type
{
SearchResultLabel
}
from
'
types/api/search
'
;
import
type
{
SearchResultLabel
}
from
'
types/api/search
'
;
import
labelIcon
from
'
icons/publictags.svg
'
;
import
labelIcon
from
'
icons/publictags
_slim
.svg
'
;
import
iconSuccess
from
'
icons/status/success.svg
'
;
import
iconSuccess
from
'
icons/status/success.svg
'
;
import
highlightText
from
'
lib/highlightText
'
;
import
highlightText
from
'
lib/highlightText
'
;
import
HashStringShortenDynamic
from
'
ui/shared/HashStringShortenDynamic
'
;
import
HashStringShortenDynamic
from
'
ui/shared/HashStringShortenDynamic
'
;
...
...
ui/tokens/TokensListItem.tsx
View file @
5b61cd3d
...
@@ -56,7 +56,7 @@ const TokensTableItem = ({
...
@@ -56,7 +56,7 @@ const TokensTableItem = ({
</
Skeleton
>
</
Skeleton
>
</
GridItem
>
</
GridItem
>
</
Grid
>
</
Grid
>
<
Flex
justifyContent=
"space-between"
alignItems=
"center"
width=
"150px"
ml=
{
8
}
mt=
{
-
2
}
>
<
Flex
justifyContent=
"space-between"
alignItems=
"center"
width=
"150px"
ml=
{
7
}
mt=
{
-
2
}
>
<
AddressEntity
<
AddressEntity
address=
{
{
hash
:
address
}
}
address=
{
{
hash
:
address
}
}
isLoading=
{
isLoading
}
isLoading=
{
isLoading
}
...
...
ui/tokens/TokensTableItem.tsx
View file @
5b61cd3d
...
@@ -65,7 +65,7 @@ const TokensTableItem = ({
...
@@ -65,7 +65,7 @@ const TokensTableItem = ({
fontSize=
"sm"
fontSize=
"sm"
fontWeight=
"700"
fontWeight=
"700"
/>
/>
<
Box
ml=
{
8
}
mt=
{
2
}
>
<
Box
ml=
{
7
}
mt=
{
2
}
>
<
Flex
>
<
Flex
>
<
AddressEntity
<
AddressEntity
address=
{
tokenAddress
}
address=
{
tokenAddress
}
...
...
ui/tx/TxDetails.tsx
View file @
5b61cd3d
...
@@ -250,7 +250,7 @@ const TxDetails = () => {
...
@@ -250,7 +250,7 @@ const TxDetails = () => {
isLoading=
{
isPlaceholderData
}
isLoading=
{
isPlaceholderData
}
noIcon
noIcon
/>
/>
<
span
>
created]
</
span
>
<
span
>
created]
</
span
>
{
executionSuccessBadge
}
{
executionSuccessBadge
}
{
executionFailedBadge
}
{
executionFailedBadge
}
</
Flex
>
</
Flex
>
...
...
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