diff --git a/README.md b/README.md index 16c0632b8..4029e391b 100644 --- a/README.md +++ b/README.md @@ -23,12 +23,11 @@ Local: http://localhost:3000 ### Directory -| Resource | URI | -| --------------- | ------------------------------------------ | -| Assets | [/assets](https://steexp.com/assets) | -| Anchors | [/anchors](https://steexp.com/anchors) | -| Exchanges | [/exchanges](https://steexp.com/exchanges) | -| Inflation Pools | [/pools](https://steexp.com/pools) | +| Resource | URI | +| --------- | ------------------------------------------ | +| Assets | [/assets](https://steexp.com/assets) | +| Anchors | [/anchors](https://steexp.com/anchors) | +| Exchanges | [/exchanges](https://steexp.com/exchanges) | ### Accounts diff --git a/public/sitemap.xml b/public/sitemap.xml index adfa126fb..5a02ede0f 100644 --- a/public/sitemap.xml +++ b/public/sitemap.xml @@ -50,9 +50,4 @@ https://steexp.com/trades - - - https://steexp.com/pools - - diff --git a/src/App.js b/src/App.js index b1a31edcd..e1920e4ac 100644 --- a/src/App.js +++ b/src/App.js @@ -86,7 +86,6 @@ const Anchors = Loadable('Anchors') const Assets = Loadable('Assets') const Effects = Loadable('Effects') const Exchanges = Loadable('Exchanges') -const InflationPools = Loadable('InflationPools') const Ledger = Loadable('Ledger') const Ledgers = Loadable('Ledgers') const Operations = Loadable('Operations') @@ -173,7 +172,6 @@ class App extends Component { - { diff --git a/src/components/Account.js b/src/components/Account.js index 39acedd72..7efad178a 100644 --- a/src/components/Account.js +++ b/src/components/Account.js @@ -217,16 +217,6 @@ const AccountSummaryPanel = ({ - - - : - - - {a.inflation_destination && ( - - )} - - : diff --git a/src/components/InflationPools.js b/src/components/InflationPools.js deleted file mode 100644 index 8f2f580c7..000000000 --- a/src/components/InflationPools.js +++ /dev/null @@ -1,82 +0,0 @@ -import React from 'react' -import Grid from 'react-bootstrap/lib/Grid' -import Panel from 'react-bootstrap/lib/Panel' -import Row from 'react-bootstrap/lib/Row' -import Table from 'react-bootstrap/lib/Table' -import {FormattedMessage, injectIntl} from 'react-intl' -import PropTypes from 'prop-types' - -import {setTitle} from '../lib/utils' -import AccountLink from './shared/AccountLink' -import NewWindowIcon from './shared/NewWindowIcon' -import {titleWithJSONButton} from './shared/TitleWithJSONButton' - -import pools from '../data/inflation_pools.json' - -const METADATA_PATH = - 'https://raw.githubusercontent.com/chatch/stellarexplorer/master/src/data/inflation_pools.json' - -const Pool = ({account, name, website}) => { - return ( - - {name} - - - {website} - - - - - - - - ) -} - -Pool.propTypes = { - account: PropTypes.string.isRequired, - name: PropTypes.string.isRequired, - website: PropTypes.string.isRequired, -} - -class Pools extends React.Component { - render() { - setTitle('Inflation Pools') - const {formatMessage} = this.props.intl - const header = titleWithJSONButton( - formatMessage({id: 'inflation.pools'}), - METADATA_PATH - ) - return ( - - - - - - - - - - - - - {Object.keys(pools).map(key => { - const pool = pools[key] - return - })} - -
- - - - - -
-
-
-
- ) - } -} - -export default injectIntl(Pools) diff --git a/src/components/layout/Header.js b/src/components/layout/Header.js index 52b49678f..850679ab5 100644 --- a/src/components/layout/Header.js +++ b/src/components/layout/Header.js @@ -105,11 +105,6 @@ class Header extends React.Component { - - - - - diff --git a/src/languages/en.json b/src/languages/en.json index 66e28b4a7..a5b780bee 100644 --- a/src/languages/en.json +++ b/src/languages/en.json @@ -61,7 +61,6 @@ "home.domain": "Home Domain", "inflation": "Inflation Destination", - "inflation.pools": "Inflation Pools", "invalid.account": "Account is invalid", "issued": "issued", "issuer": "Issuer", diff --git a/src/languages/zh.json b/src/languages/zh.json index a76d039af..300356ed0 100644 --- a/src/languages/zh.json +++ b/src/languages/zh.json @@ -25,8 +25,7 @@ "csv-export.no-records": "没有数据可供获取", "csv-export.fetching": "获取中…", "csv-export.fetched": "已获取 {count} 条数据。", - "csv-export.limit-exceeded": - "您已达到导出 {count} 条数据的上限。还有数据可以获取,但是为了防止浏览器因内存问题崩溃,我们不支持导出更多数据了。", + "csv-export.limit-exceeded": "您已达到导出 {count} 条数据的上限。还有数据可以获取,但是为了防止浏览器因内存问题崩溃,我们不支持导出更多数据了。", "currency": "货币", @@ -39,8 +38,7 @@ "error.cant.find": "找不到 \"{searchStr}\"", "error.nothing.found": "在 \"{path}\"处没有内容", - "error.network": - "出现网络错误。检查您的网络连接,或者查看浏览器控制台的信息。", + "error.network": "出现网络错误。检查您的网络连接,或者查看浏览器控制台的信息。", "error.unknown": "很抱歉,发生了一些错误... ", "exchanges": "交易所", @@ -59,7 +57,6 @@ "home.domain": "主域名", "inflation": "增发地址", - "inflation.pools": "增发池", "invalid.account": "无效的账号", "issued": "issued", "issuer": "发行方", @@ -114,12 +111,9 @@ "operation.manage.data.remove": "删除键值{name}", "operation.manage.data.set": "设置键值{name}", "operation.manage.data.set.to": ":{value}", - "operation.offer.remove": - "撤销挂单: 卖出 {sellingAsset} 买入 {buyingAsset} @ {price}", - "operation.offer.sell": - "新挂单: {amount} 卖出 {sellingAsset} 买入 {buyingAsset} @ {price}", - "operation.offer.update": - "更新挂单: {amount} 卖出 {sellingAsset} 买入 {buyingAsset} @ {price}", + "operation.offer.remove": "撤销挂单: 卖出 {sellingAsset} 买入 {buyingAsset} @ {price}", + "operation.offer.sell": "新挂单: {amount} 卖出 {sellingAsset} 买入 {buyingAsset} @ {price}", + "operation.offer.update": "更新挂单: {amount} 卖出 {sellingAsset} 买入 {buyingAsset} @ {price}", "operation.options.set": "设置选项: [{options}]", "operation.options.set.clear.flags_s": "清除标志: {value}", "operation.options.set.set.flags_s": "设置标志: {value}",