-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
efd4c18
commit 5180b83
Showing
5 changed files
with
391 additions
and
5 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
parasails.registerComponent('zrx_trading_pair', { | ||
|
||
props: [ | ||
'sym1', | ||
'name1', | ||
'address1', | ||
'sym2', | ||
'name2', | ||
'address2', | ||
], | ||
|
||
data: function() { | ||
return { | ||
}; | ||
}, | ||
|
||
template: ` | ||
<center class="columns"> | ||
<a class="column"> | ||
{{name1}} | ||
</a> | ||
<a class="column"> | ||
{{name2}} | ||
</a> | ||
</center> | ||
`, | ||
|
||
beforeMount: function() { | ||
}, | ||
mounted: async function() { | ||
|
||
}, | ||
beforeDestroy: function() { | ||
|
||
}, | ||
|
||
filters: { | ||
getAddress: function(value) { | ||
return ("https://raw.githubusercontent.com/TrustWallet/tokens/master/tokens/0x" + value.toLowerCase() + ".png"); | ||
}, | ||
contractAddress: function(value) { | ||
return "/contract/" + value + "/token"; | ||
} | ||
}, | ||
watch: { | ||
address: function(val) { | ||
this.loaded = false; | ||
}, | ||
}, | ||
methods: { | ||
load: function(a, b) { | ||
console.log("load", a, b) | ||
this.loaded = true; | ||
} | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,21 @@ | ||
<div id="page_dapp_zrx"> | ||
<div id="page_dapp_zrx" class="container"> | ||
<h3 class="title">0x protocol</h3> | ||
<p>0x is a decentralized protocol for trading digital assets on Ethereum.</p> | ||
<hr> | ||
<h3 class="title is-4">Traded pairs / 7 days</h3> | ||
<v-server-table url="/api/dapp/0x/pairs" :columns="columns" :options="options"> | ||
|
||
<center slot="fsym" slot-scope="props"> | ||
<zrx_trading_pair :name1="props.row.fname" :name2="props.row.sname" :sym1="props.row.fsym" :sym2="props.row.ssym" address1="props.row.faddress" :address2="props.row.saddress"></zrx_trading_pair> | ||
<strong>{{ props.row.fsym }}/{{ props.row.ssym }}</strong> | ||
</center> | ||
<center slot="count_of_trades" slot-scope="props"> | ||
<strong>{{ props.row.count_of_trades.toLocaleString() }}</strong> | ||
</center> | ||
<center slot="count_of_traders" slot-scope="props"> | ||
<strong>{{ props.row.count_of_traders.toLocaleString() }}</strong> | ||
</center> | ||
<center slot="count_of_relayers" slot-scope="props"> | ||
<strong>{{ props.row.count_of_relayers.toLocaleString() }}</strong> | ||
</center> | ||
</v-server-table> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters