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
7a0d3bc7
Commit
7a0d3bc7
authored
Jan 25, 2023
by
isstuev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ad fix
parent
c202570d
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
11 additions
and
4 deletions
+11
-4
Address.tsx
ui/pages/Address.tsx
+2
-0
Token.pw.tsx
ui/pages/Token.pw.tsx
+3
-0
Token.tsx
ui/pages/Token.tsx
+2
-1
Token.pw.tsx_dark-color-mode_base-view-dark-mode-1.png
...__/Token.pw.tsx_dark-color-mode_base-view-dark-mode-1.png
+0
-0
Token.pw.tsx_default_base-view-dark-mode-1.png
...eenshots__/Token.pw.tsx_default_base-view-dark-mode-1.png
+0
-0
AdbutlerBanner.tsx
ui/shared/ad/AdbutlerBanner.tsx
+1
-1
CoinzillaBanner.tsx
ui/shared/ad/CoinzillaBanner.tsx
+1
-1
TxDetailsSkeleton.tsx
ui/tx/details/TxDetailsSkeleton.tsx
+2
-1
No files found.
ui/pages/Address.tsx
View file @
7a0d3bc7
...
@@ -22,6 +22,7 @@ import AddressTxs from 'ui/address/AddressTxs';
...
@@ -22,6 +22,7 @@ import AddressTxs from 'ui/address/AddressTxs';
import
ContractCode
from
'
ui/address/contract/ContractCode
'
;
import
ContractCode
from
'
ui/address/contract/ContractCode
'
;
import
ContractRead
from
'
ui/address/contract/ContractRead
'
;
import
ContractRead
from
'
ui/address/contract/ContractRead
'
;
import
ContractWrite
from
'
ui/address/contract/ContractWrite
'
;
import
ContractWrite
from
'
ui/address/contract/ContractWrite
'
;
import
AdBanner
from
'
ui/shared/ad/AdBanner
'
;
import
TextAd
from
'
ui/shared/ad/TextAd
'
;
import
TextAd
from
'
ui/shared/ad/TextAd
'
;
import
Page
from
'
ui/shared/Page/Page
'
;
import
Page
from
'
ui/shared/Page/Page
'
;
import
PageTitle
from
'
ui/shared/Page/PageTitle
'
;
import
PageTitle
from
'
ui/shared/Page/PageTitle
'
;
...
@@ -138,6 +139,7 @@ const AddressPageContent = () => {
...
@@ -138,6 +139,7 @@ const AddressPageContent = () => {
/>
/>
)
}
)
}
<
AddressDetails
addressQuery=
{
addressQuery
}
scrollRef=
{
tabsScrollRef
}
/>
<
AddressDetails
addressQuery=
{
addressQuery
}
scrollRef=
{
tabsScrollRef
}
/>
<
AdBanner
mt=
{
{
base
:
6
,
lg
:
8
}
}
justifyContent=
"center"
/>
{
/* should stay before tabs to scroll up whith pagination */
}
{
/* should stay before tabs to scroll up whith pagination */
}
<
Box
ref=
{
tabsScrollRef
}
></
Box
>
<
Box
ref=
{
tabsScrollRef
}
></
Box
>
{
addressQuery
.
isLoading
?
<
SkeletonTabs
/>
:
content
}
{
addressQuery
.
isLoading
?
<
SkeletonTabs
/>
:
content
}
...
...
ui/pages/Token.pw.tsx
View file @
7a0d3bc7
...
@@ -5,6 +5,7 @@ import { token as contract } from 'mocks/address/address';
...
@@ -5,6 +5,7 @@ import { token as contract } from 'mocks/address/address';
import
{
tokenInfo
,
tokenCounters
}
from
'
mocks/tokens/tokenInfo
'
;
import
{
tokenInfo
,
tokenCounters
}
from
'
mocks/tokens/tokenInfo
'
;
import
TestApp
from
'
playwright/TestApp
'
;
import
TestApp
from
'
playwright/TestApp
'
;
import
buildApiUrl
from
'
playwright/utils/buildApiUrl
'
;
import
buildApiUrl
from
'
playwright/utils/buildApiUrl
'
;
import
insertAdPlaceholder
from
'
playwright/utils/insertAdPlaceholder
'
;
import
Token
from
'
./Token
'
;
import
Token
from
'
./Token
'
;
...
@@ -51,5 +52,7 @@ test('base view +@dark-mode', async({ mount, page }) => {
...
@@ -51,5 +52,7 @@ test('base view +@dark-mode', async({ mount, page }) => {
{
hooksConfig
},
{
hooksConfig
},
);
);
await
insertAdPlaceholder
(
page
);
await
expect
(
component
.
locator
(
'
main
'
)).
toHaveScreenshot
();
await
expect
(
component
.
locator
(
'
main
'
)).
toHaveScreenshot
();
});
});
ui/pages/Token.tsx
View file @
7a0d3bc7
...
@@ -9,6 +9,7 @@ import { useAppContext } from 'lib/appContext';
...
@@ -9,6 +9,7 @@ import { useAppContext } from 'lib/appContext';
import
useIsMobile
from
'
lib/hooks/useIsMobile
'
;
import
useIsMobile
from
'
lib/hooks/useIsMobile
'
;
import
useQueryWithPages
from
'
lib/hooks/useQueryWithPages
'
;
import
useQueryWithPages
from
'
lib/hooks/useQueryWithPages
'
;
import
isBrowser
from
'
lib/isBrowser
'
;
import
isBrowser
from
'
lib/isBrowser
'
;
import
AdBanner
from
'
ui/shared/ad/AdBanner
'
;
import
TextAd
from
'
ui/shared/ad/TextAd
'
;
import
TextAd
from
'
ui/shared/ad/TextAd
'
;
import
Page
from
'
ui/shared/Page/Page
'
;
import
Page
from
'
ui/shared/Page/Page
'
;
import
PageTitle
from
'
ui/shared/Page/PageTitle
'
;
import
PageTitle
from
'
ui/shared/Page/PageTitle
'
;
...
@@ -113,7 +114,7 @@ const TokenPageContent = () => {
...
@@ -113,7 +114,7 @@ const TokenPageContent = () => {
)
}
)
}
<
TokenContractInfo
tokenQuery=
{
tokenQuery
}
/>
<
TokenContractInfo
tokenQuery=
{
tokenQuery
}
/>
<
TokenDetails
tokenQuery=
{
tokenQuery
}
/>
<
TokenDetails
tokenQuery=
{
tokenQuery
}
/>
<
AdBanner
mt=
{
{
base
:
6
,
lg
:
8
}
}
justifyContent=
"center"
/>
{
/* should stay before tabs to scroll up whith pagination */
}
{
/* should stay before tabs to scroll up whith pagination */
}
<
Box
ref=
{
scrollRef
}
></
Box
>
<
Box
ref=
{
scrollRef
}
></
Box
>
...
...
ui/pages/__screenshots__/Token.pw.tsx_dark-color-mode_base-view-dark-mode-1.png
View replaced file @
c202570d
View file @
7a0d3bc7
38.5 KB
|
W:
|
H:
39.4 KB
|
W:
|
H:
2-up
Swipe
Onion skin
ui/pages/__screenshots__/Token.pw.tsx_default_base-view-dark-mode-1.png
View replaced file @
c202570d
View file @
7a0d3bc7
37.7 KB
|
W:
|
H:
38.7 KB
|
W:
|
H:
2-up
Swipe
Onion skin
ui/shared/ad/AdbutlerBanner.tsx
View file @
7a0d3bc7
...
@@ -22,7 +22,7 @@ var AdButler = AdButler || {}; AdButler.ads = AdButler.ads || [];
...
@@ -22,7 +22,7 @@ var AdButler = AdButler || {}; AdButler.ads = AdButler.ads || [];
const
AdbutlerBanner
=
({
className
}:
{
className
?:
string
})
=>
{
const
AdbutlerBanner
=
({
className
}:
{
className
?:
string
})
=>
{
return
(
return
(
<
Flex
className=
{
className
}
id=
"adBanner"
>
<
Flex
className=
{
className
}
id=
"adBanner"
h=
{
{
base
:
'
100px
'
,
lg
:
'
90px
'
}
}
>
<
div
id=
"ad-banner"
></
div
>
<
div
id=
"ad-banner"
></
div
>
<
Script
id=
"ad-butler-1"
>
{
scriptText1
}
</
Script
>
<
Script
id=
"ad-butler-1"
>
{
scriptText1
}
</
Script
>
<
Script
id=
"ad-butler-2"
>
{
scriptText2
}
</
Script
>
<
Script
id=
"ad-butler-2"
>
{
scriptText2
}
</
Script
>
...
...
ui/shared/ad/CoinzillaBanner.tsx
View file @
7a0d3bc7
...
@@ -32,7 +32,7 @@ const CoinzillaBanner = ({ className }: { className?: string }) => {
...
@@ -32,7 +32,7 @@ const CoinzillaBanner = ({ className }: { className?: string }) => {
},
[
isInBrowser
]);
},
[
isInBrowser
]);
return
(
return
(
<
Flex
className=
{
className
}
id=
"adBanner"
>
<
Flex
className=
{
className
}
id=
"adBanner"
h=
{
{
base
:
'
100px
'
,
lg
:
'
90px
'
}
}
>
<
Script
src=
"https://coinzillatag.com/lib/display.js"
/>
<
Script
src=
"https://coinzillatag.com/lib/display.js"
/>
<
div
className=
"coinzilla"
data
-
zone=
"C-26660bf627543e46851"
></
div
>
<
div
className=
"coinzilla"
data
-
zone=
"C-26660bf627543e46851"
></
div
>
</
Flex
>
</
Flex
>
...
...
ui/tx/details/TxDetailsSkeleton.tsx
View file @
7a0d3bc7
...
@@ -15,13 +15,14 @@ const TxDetailsSkeleton = () => {
...
@@ -15,13 +15,14 @@ const TxDetailsSkeleton = () => {
);
);
return
(
return
(
<
Grid
columnGap=
{
8
}
rowGap=
{
{
base
:
5
,
lg
:
7
}
}
templateColumns=
{
{
base
:
'
1fr
'
,
lg
:
'
210px 1fr
'
}
}
maxW=
"1000px"
>
<
Grid
columnGap=
{
8
}
rowGap=
{
{
base
:
5
,
lg
:
7
}
}
templateColumns=
{
{
base
:
'
1fr
'
,
lg
:
'
210px 1fr
'
}
}
maxW=
"1000px"
pt=
{
{
base
:
1
,
lg
:
2
}
}
>
<
DetailsSkeletonRow
/>
<
DetailsSkeletonRow
/>
<
DetailsSkeletonRow
w=
"20%"
/>
<
DetailsSkeletonRow
w=
"20%"
/>
<
DetailsSkeletonRow
w=
"50%"
/>
<
DetailsSkeletonRow
w=
"50%"
/>
<
DetailsSkeletonRow
/>
<
DetailsSkeletonRow
/>
<
DetailsSkeletonRow
w=
"70%"
/>
<
DetailsSkeletonRow
w=
"70%"
/>
<
DetailsSkeletonRow
w=
"70%"
/>
<
DetailsSkeletonRow
w=
"70%"
/>
<
GridItem
h=
{
{
base
:
'
82px
'
,
lg
:
'
38px
'
}
}
/>
{
sectionGap
}
{
sectionGap
}
<
DetailsSkeletonRow
w=
"40%"
/>
<
DetailsSkeletonRow
w=
"40%"
/>
<
DetailsSkeletonRow
w=
"40%"
/>
<
DetailsSkeletonRow
w=
"40%"
/>
...
...
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