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
d5b63d33
Commit
d5b63d33
authored
Oct 13, 2022
by
Yuri Mikhin
Committed by
Yuri Mikhin
Oct 13, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix marketplace apps chainId prop.
parent
3677ba96
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
23 deletions
+23
-23
marketplaceApps.json
data/marketplaceApps.json
+20
-20
apps.ts
types/client/apps.ts
+1
-1
MarketplaceApp.tsx
ui/pages/MarketplaceApp.tsx
+2
-2
No files found.
data/marketplaceApps.json
View file @
d5b63d33
[
[
{
{
"chainIds"
:
[
"chainIds"
:
[
1
"1"
],
],
"author"
:
"xDaichain"
,
"author"
:
"xDaichain"
,
"id"
:
"easy-staking"
,
"id"
:
"easy-staking"
,
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
},
},
{
{
"chainIds"
:
[
"chainIds"
:
[
99
"99"
],
],
"author"
:
"xDaichain"
,
"author"
:
"xDaichain"
,
"id"
:
"curve"
,
"id"
:
"curve"
,
...
@@ -41,7 +41,7 @@
...
@@ -41,7 +41,7 @@
},
},
{
{
"chainIds"
:
[
"chainIds"
:
[
1
"1"
],
],
"author"
:
"xDaichain"
,
"author"
:
"xDaichain"
,
"id"
:
"honwyswap"
,
"id"
:
"honwyswap"
,
...
@@ -61,7 +61,7 @@
...
@@ -61,7 +61,7 @@
},
},
{
{
"chainIds"
:
[
"chainIds"
:
[
99
"99"
],
],
"author"
:
"xDaichain"
,
"author"
:
"xDaichain"
,
"id"
:
"sushi"
,
"id"
:
"sushi"
,
...
@@ -81,7 +81,7 @@
...
@@ -81,7 +81,7 @@
},
},
{
{
"chainIds"
:
[
"chainIds"
:
[
100
"100"
],
],
"author"
:
"xDaichain"
,
"author"
:
"xDaichain"
,
"id"
:
"bao-finance"
,
"id"
:
"bao-finance"
,
...
@@ -101,7 +101,7 @@
...
@@ -101,7 +101,7 @@
},
},
{
{
"chainIds"
:
[
"chainIds"
:
[
99
"99"
],
],
"author"
:
"xDaichain"
,
"author"
:
"xDaichain"
,
"id"
:
"component"
,
"id"
:
"component"
,
...
@@ -121,7 +121,7 @@
...
@@ -121,7 +121,7 @@
},
},
{
{
"chainIds"
:
[
"chainIds"
:
[
1
"1"
],
],
"author"
:
"xDaichain"
,
"author"
:
"xDaichain"
,
"id"
:
"pooltogether"
,
"id"
:
"pooltogether"
,
...
@@ -141,7 +141,7 @@
...
@@ -141,7 +141,7 @@
},
},
{
{
"chainIds"
:
[
"chainIds"
:
[
99
"99"
],
],
"author"
:
"xDaichain"
,
"author"
:
"xDaichain"
,
"id"
:
"swapr"
,
"id"
:
"swapr"
,
...
@@ -161,7 +161,7 @@
...
@@ -161,7 +161,7 @@
},
},
{
{
"chainIds"
:
[
"chainIds"
:
[
1
"1"
],
],
"author"
:
"xDaichain"
,
"author"
:
"xDaichain"
,
"id"
:
"levinswap"
,
"id"
:
"levinswap"
,
...
@@ -181,7 +181,7 @@
...
@@ -181,7 +181,7 @@
},
},
{
{
"chainIds"
:
[
"chainIds"
:
[
99
"99"
],
],
"author"
:
"xDaichain"
,
"author"
:
"xDaichain"
,
"id"
:
"omen"
,
"id"
:
"omen"
,
...
@@ -201,7 +201,7 @@
...
@@ -201,7 +201,7 @@
},
},
{
{
"chainIds"
:
[
"chainIds"
:
[
1
"1"
],
],
"author"
:
"xDaichain"
,
"author"
:
"xDaichain"
,
"id"
:
"nifty-ink"
,
"id"
:
"nifty-ink"
,
...
@@ -221,7 +221,7 @@
...
@@ -221,7 +221,7 @@
},
},
{
{
"chainIds"
:
[
"chainIds"
:
[
99
"99"
],
],
"author"
:
"xDaichain"
,
"author"
:
"xDaichain"
,
"id"
:
"treasure-chess"
,
"id"
:
"treasure-chess"
,
...
@@ -241,7 +241,7 @@
...
@@ -241,7 +241,7 @@
},
},
{
{
"chainIds"
:
[
"chainIds"
:
[
1
"1"
],
],
"author"
:
"xDaichain"
,
"author"
:
"xDaichain"
,
"id"
:
"unique-one"
,
"id"
:
"unique-one"
,
...
@@ -261,7 +261,7 @@
...
@@ -261,7 +261,7 @@
},
},
{
{
"chainIds"
:
[
"chainIds"
:
[
99
"99"
],
],
"author"
:
"xDaichain"
,
"author"
:
"xDaichain"
,
"id"
:
"cold-truth-culture"
,
"id"
:
"cold-truth-culture"
,
...
@@ -281,7 +281,7 @@
...
@@ -281,7 +281,7 @@
},
},
{
{
"chainIds"
:
[
"chainIds"
:
[
1
"1"
],
],
"author"
:
"xDaichain"
,
"author"
:
"xDaichain"
,
"id"
:
"xdai-bridge"
,
"id"
:
"xdai-bridge"
,
...
@@ -301,7 +301,7 @@
...
@@ -301,7 +301,7 @@
},
},
{
{
"chainIds"
:
[
"chainIds"
:
[
99
"99"
],
],
"author"
:
"xDaichain"
,
"author"
:
"xDaichain"
,
"id"
:
"omni-bridge"
,
"id"
:
"omni-bridge"
,
...
@@ -321,7 +321,7 @@
...
@@ -321,7 +321,7 @@
},
},
{
{
"chainIds"
:
[
"chainIds"
:
[
1
"1"
],
],
"author"
:
"xDaichain"
,
"author"
:
"xDaichain"
,
"id"
:
"gnosis-safe"
,
"id"
:
"gnosis-safe"
,
...
@@ -341,7 +341,7 @@
...
@@ -341,7 +341,7 @@
},
},
{
{
"chainIds"
:
[
"chainIds"
:
[
99
"99"
],
],
"author"
:
"xDaichain"
,
"author"
:
"xDaichain"
,
"id"
:
"multisender"
,
"id"
:
"multisender"
,
...
@@ -361,7 +361,7 @@
...
@@ -361,7 +361,7 @@
},
},
{
{
"chainIds"
:
[
"chainIds"
:
[
1
"1"
],
],
"author"
:
"xDaichain"
,
"author"
:
"xDaichain"
,
"id"
:
"disperse"
,
"id"
:
"disperse"
,
...
@@ -381,7 +381,7 @@
...
@@ -381,7 +381,7 @@
},
},
{
{
"chainIds"
:
[
"chainIds"
:
[
99
"99"
],
],
"author"
:
"xDaichain"
,
"author"
:
"xDaichain"
,
"id"
:
"symmetric"
,
"id"
:
"symmetric"
,
...
...
types/client/apps.ts
View file @
d5b63d33
...
@@ -26,7 +26,7 @@ export type AppItemPreview = {
...
@@ -26,7 +26,7 @@ export type AppItemPreview = {
}
}
export
type
AppItemOverview
=
AppItemPreview
&
{
export
type
AppItemOverview
=
AppItemPreview
&
{
chainIds
:
Array
<
number
>
;
chainIds
:
Array
<
string
>
;
author
:
string
;
author
:
string
;
url
:
string
;
url
:
string
;
description
:
string
;
description
:
string
;
...
...
ui/pages/MarketplaceApp.tsx
View file @
d5b63d33
...
@@ -30,7 +30,7 @@ const MarketplaceApp = ({ app, isLoading }: Props) => {
...
@@ -30,7 +30,7 @@ const MarketplaceApp = ({ app, isLoading }: Props) => {
useEffect
(()
=>
{
useEffect
(()
=>
{
if
(
app
&&
!
isFrameLoading
)
{
if
(
app
&&
!
isFrameLoading
)
{
ref
?.
current
?.
contentWindow
?.
postMessage
({
blockscoutColorMode
:
colorMode
,
blockscoutChainId
:
appConfig
.
network
.
id
},
app
.
url
);
ref
?.
current
?.
contentWindow
?.
postMessage
({
blockscoutColorMode
:
colorMode
,
blockscoutChainId
:
Number
(
appConfig
.
network
.
id
)
},
app
.
url
);
}
}
},
[
isFrameLoading
,
app
,
colorMode
,
ref
]);
},
[
isFrameLoading
,
app
,
colorMode
,
ref
]);
...
@@ -38,7 +38,7 @@ const MarketplaceApp = ({ app, isLoading }: Props) => {
...
@@ -38,7 +38,7 @@ const MarketplaceApp = ({ app, isLoading }: Props) => {
<
Page
wrapChildren=
{
false
}
>
<
Page
wrapChildren=
{
false
}
>
<
Center
<
Center
as=
"main"
as=
"main"
h=
"100
%
"
h=
"100
vh
"
paddingTop=
{
{
base
:
'
138px
'
,
lg
:
0
}
}
paddingTop=
{
{
base
:
'
138px
'
,
lg
:
0
}
}
>
>
{
(
isFrameLoading
)
&&
(
{
(
isFrameLoading
)
&&
(
...
...
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