diff --git a/.babelrc b/.babelrc index 5002b6a5a1..dc8709ed5e 100644 --- a/.babelrc +++ b/.babelrc @@ -4,8 +4,8 @@ ["@babel/preset-react",{ "targets": { "node": "current"}}] ], "plugins": [ - "react-hot-loader/babel", - "lodash" + "react-hot-loader/babel", + "lodash" ], "env": { "test": { diff --git a/.eslintignore b/.eslintignore index 4b163c52ef..e69de29bb2 100644 --- a/.eslintignore +++ b/.eslintignore @@ -1 +0,0 @@ -bloom_filter diff --git a/.eslintrc b/.eslintrc index 5ec2210563..215c5b5344 100644 --- a/.eslintrc +++ b/.eslintrc @@ -3,7 +3,7 @@ "react", "json" ], "extends": ["plugin:react/recommended"], - "parser": "babel-eslint", + "parser": "@babel/eslint-parser", "env": { "browser": true, "node": true, diff --git a/app/App.jsx b/app/App.jsx index a2d8de9109..32d9a487a1 100644 --- a/app/App.jsx +++ b/app/App.jsx @@ -30,19 +30,25 @@ import Page404 from "./components/Page404/Page404"; const Invoice = Loadable({ loader: () => - import(/* webpackChunkName: "exchange" */ "./components/Transfer/Invoice"), + import( + /* webpackChunkName: "exchange" */ "./components/Transfer/Invoice" + ), loading: LoadingIndicator }); const Exchange = Loadable({ loader: () => - import(/* webpackChunkName: "exchange" */ "./components/Exchange/ExchangeContainer"), + import( + /* webpackChunkName: "exchange" */ "./components/Exchange/ExchangeContainer" + ), loading: LoadingIndicator }); const Explorer = Loadable({ loader: () => - import(/* webpackChunkName: "explorer" */ "./components/Explorer/Explorer"), + import( + /* webpackChunkName: "explorer" */ "./components/Explorer/Explorer" + ), loading: LoadingIndicator }); @@ -54,19 +60,25 @@ const Bots = Loadable({ const PredictionMarketsPage = Loadable({ loader: () => - import(/* webpackChunkName: "pm" */ "./components/PredictionMarkets/PMAssetsContainer"), + import( + /* webpackChunkName: "pm" */ "./components/PredictionMarkets/PMAssetsContainer" + ), loading: LoadingIndicator }); const AccountPage = Loadable({ loader: () => - import(/* webpackChunkName: "account" */ "./components/Account/AccountPage"), + import( + /* webpackChunkName: "account" */ "./components/Account/AccountPage" + ), loading: LoadingIndicator }); const AccountDepositWithdraw = Loadable({ loader: () => - import(/* webpackChunkName: "deposit-withdraw" */ "./components/Account/AccountDepositWithdraw"), + import( + /* webpackChunkName: "deposit-withdraw" */ "./components/Account/AccountDepositWithdraw" + ), loading: LoadingIndicator }); @@ -77,7 +89,9 @@ const News = Loadable({ const Settings = Loadable({ loader: () => - import(/* webpackChunkName: "settings" */ "./components/Settings/SettingsContainer"), + import( + /* webpackChunkName: "settings" */ "./components/Settings/SettingsContainer" + ), loading: LoadingIndicator }); @@ -94,73 +108,105 @@ const Asset = Loadable({ const Block = Loadable({ loader: () => - import(/* webpackChunkName: "block" */ "./components/Blockchain/BlockContainer"), + import( + /* webpackChunkName: "block" */ "./components/Blockchain/BlockContainer" + ), loading: LoadingIndicator }); const DashboardAccountsOnly = Loadable({ loader: () => - import(/* webpackChunkName: "dashboard-accounts" */ "./components/Dashboard/DashboardAccountsOnly"), + import( + /* webpackChunkName: "dashboard-accounts" */ "./components/Dashboard/DashboardAccountsOnly" + ), loading: LoadingIndicator }); const DashboardPage = Loadable({ loader: () => - import(/* webpackChunkName: "dashboard" */ "./components/Dashboard/DashboardPage"), + import( + /* webpackChunkName: "dashboard" */ "./components/Dashboard/DashboardPage" + ), loading: LoadingIndicator }); const WalletManager = Loadable({ loader: () => - import(/* webpackChunkName: "wallet" */ "./components/Wallet/WalletManager"), + import( + /* webpackChunkName: "wallet" */ "./components/Wallet/WalletManager" + ), loading: LoadingIndicator }); const ExistingAccount = Loadable({ loader: () => - import(/* webpackChunkName: "existing-account" */ "./components/Wallet/ExistingAccount"), + import( + /* webpackChunkName: "existing-account" */ "./components/Wallet/ExistingAccount" + ), loading: LoadingIndicator }); const CreateWorker = Loadable({ loader: () => - import(/* webpackChunkName: "create-worker" */ "./components/Account/CreateWorker"), + import( + /* webpackChunkName: "create-worker" */ "./components/Account/CreateWorker" + ), loading: LoadingIndicator }); const Barter = Loadable({ loader: () => - import(/* webpackChunkName: "settings" */ "./components/Showcases/Barter"), + import( + /* webpackChunkName: "settings" */ "./components/Showcases/Barter" + ), loading: LoadingIndicator }); const Borrow = Loadable({ loader: () => - import(/* webpackChunkName: "settings" */ "./components/Showcases/Borrow"), + import( + /* webpackChunkName: "settings" */ "./components/Showcases/Borrow" + ), loading: LoadingIndicator }); const Htlc = Loadable({ loader: () => - import(/* webpackChunkName: "settings" */ "./components/Showcases/Htlc"), + import( + /* webpackChunkName: "settings" */ "./components/Showcases/Htlc" + ), loading: LoadingIndicator }); const DirectDebit = Loadable({ loader: () => - import(/* webpackChunkName: "settings" */ "./components/Showcases/DirectDebit"), + import( + /* webpackChunkName: "settings" */ "./components/Showcases/DirectDebit" + ), loading: LoadingIndicator }); const QuickTrade = Loadable({ loader: () => - import(/* webpackChunkName: "QuickTrade" */ "./components/QuickTrade/QuickTradeRouter"), + import( + /* webpackChunkName: "QuickTrade" */ "./components/QuickTrade/QuickTradeRouter" + ), loading: LoadingIndicator }); const Listing = Loadable({ loader: () => - import(/* webpackChunkName: "listing" */ "./components/Listing/ListingPage"), + import( + /* webpackChunkName: "QuickTrade" */ "./components/Listing/ListingPage" + ), + loading: LoadingIndicator +}); + +const Volume_ranking = Loadable({ + loader: () => + import( + /* webpackChunkName: "QuickTrade" */ "./components/DashboardRuDEX/Dashboard" + ), loading: LoadingIndicator }); @@ -439,7 +485,7 @@ class App extends React.Component { content = (
); @@ -455,13 +501,13 @@ class App extends React.Component { : "committee-account"; content = (
- {} +
@@ -518,6 +564,11 @@ class App extends React.Component { exact component={Listing} />{" "} + {" "} { console.error(error); diff --git a/app/api/apiConfig.js b/app/api/apiConfig.js index a538afbc7e..bf865a3195 100644 --- a/app/api/apiConfig.js +++ b/app/api/apiConfig.js @@ -54,7 +54,7 @@ export const settingsAPIs = { }, { url: "wss://gph.lexai.host", - region: "Finland", + region: "Northern Europe", country: "Finland", location: "Helsinki", operator: "Witness: lex", @@ -62,7 +62,7 @@ export const settingsAPIs = { }, { url: "wss://node.graphenelab.io", - region: "Finland", + region: "Northern Europe", country: "Finland", location: "Helsinki", operator: "Witness: graphene-lab", @@ -70,12 +70,19 @@ export const settingsAPIs = { }, { url: "wss://gph-api.xchng.finance", - region: "Finland", + region: "Northern Europe", country: "Finland", location: "Helsinki", operator: "Witness: xchng", contact: "telegram:Lososeg" }, + { + url: "wss://fin.marshmallow-cake.icu", + region: "Northern Europe", + country: "Holland", + location: "Amsterdam", + operator: "Witness: marshmallow-cake" + }, { url: "wss://node.hk.graphene.fans", region: "Eastern Asia", diff --git a/app/assets/asset-symbols/dexbot.png b/app/assets/asset-symbols/dexbot.png new file mode 100644 index 0000000000..d560d62d81 Binary files /dev/null and b/app/assets/asset-symbols/dexbot.png differ diff --git a/app/assets/asset-symbols/rudex.eos.png b/app/assets/asset-symbols/rudex.eos.png index d664d643e9..5b058086c5 100644 Binary files a/app/assets/asset-symbols/rudex.eos.png and b/app/assets/asset-symbols/rudex.eos.png differ diff --git a/app/assets/asset-symbols/symbols.js b/app/assets/asset-symbols/symbols.js index c758f27d69..4db51d1ea6 100644 --- a/app/assets/asset-symbols/symbols.js +++ b/app/assets/asset-symbols/symbols.js @@ -9,12 +9,13 @@ require("file-loader?name=asset-symbols/[name].png!./usd.png"); require("file-loader?name=asset-symbols/[name].png!./eur.png"); require("file-loader?name=asset-symbols/[name].png!./rub.png"); require("file-loader?name=asset-symbols/[name].png!./cny.png"); -require("file-loader?name=asset-symbols/[name].png!./btc.png"); require("file-loader?name=asset-symbols/[name].png!./gold.png"); require("file-loader?name=asset-symbols/[name].png!./silver.png"); +//require("file-loader?name=asset-symbols/[name].png!./btc.png"); // RuDEX assets require("file-loader?name=asset-symbols/[name].png!./donate.png"); +require("file-loader?name=asset-symbols/[name].png!./dexbot.png"); require("file-loader?name=asset-symbols/[name].png!./rudex.btc.png"); require("file-loader?name=asset-symbols/[name].png!./rudex.ltc.png"); diff --git a/app/assets/bts_genesiskeys_bloom.dat b/app/assets/bts_genesiskeys_bloom.dat deleted file mode 100644 index 047563f7bc..0000000000 Binary files a/app/assets/bts_genesiskeys_bloom.dat and /dev/null differ diff --git a/app/assets/coins-logo/camino.png b/app/assets/coins-logo/camino.png new file mode 100644 index 0000000000..b446fcdd37 Binary files /dev/null and b/app/assets/coins-logo/camino.png differ diff --git a/app/assets/coins-logo/coins.js b/app/assets/coins-logo/coins.js index 7ca362bf3c..ce0c79c47f 100644 --- a/app/assets/coins-logo/coins.js +++ b/app/assets/coins-logo/coins.js @@ -20,5 +20,8 @@ require("file-loader?name=coins-logo/[name].png!./rat.png"); require("file-loader?name=coins-logo/[name].png!./ttt.png"); require("file-loader?name=coins-logo/[name].png!./ctw.png"); require("file-loader?name=coins-logo/[name].png!./wca.png"); +require("file-loader?name=coins-logo/[name].png!./camino.png"); +require("file-loader?name=coins-logo/[name].png!./ojx.png"); +require("file-loader?name=coins-logo/[name].png!./donr.png"); require("file-loader?name=coins-logo/[name].png!./pzm.png"); diff --git a/app/assets/coins-logo/donr.png b/app/assets/coins-logo/donr.png new file mode 100644 index 0000000000..b4df3f1966 Binary files /dev/null and b/app/assets/coins-logo/donr.png differ diff --git a/app/assets/coins-logo/ojx.png b/app/assets/coins-logo/ojx.png new file mode 100644 index 0000000000..5465f44bed Binary files /dev/null and b/app/assets/coins-logo/ojx.png differ diff --git a/app/assets/coins-logo/ttt.png b/app/assets/coins-logo/ttt.png index 69f2e34906..dfb458cd15 100644 Binary files a/app/assets/coins-logo/ttt.png and b/app/assets/coins-logo/ttt.png differ diff --git a/app/assets/icons/borrow.svg b/app/assets/icons/borrow.svg index ea25aaea31..3969476213 100644 --- a/app/assets/icons/borrow.svg +++ b/app/assets/icons/borrow.svg @@ -1,55 +1,3 @@ - - - - - - - - - - - - - - image/svg+xml - - - - - - - + + diff --git a/app/assets/icons/dashboard.svg b/app/assets/icons/dashboard.svg index 3952d10256..1d062b23e9 100644 --- a/app/assets/icons/dashboard.svg +++ b/app/assets/icons/dashboard.svg @@ -1,42 +1,3 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + diff --git a/app/assets/icons/donate.svg b/app/assets/icons/donate.svg new file mode 100644 index 0000000000..ac3c7d9074 --- /dev/null +++ b/app/assets/icons/donate.svg @@ -0,0 +1,3 @@ + + + diff --git a/app/assets/icons/icons-loader.js b/app/assets/icons/icons-loader.js index f45ef5e6e4..d0f9910299 100644 --- a/app/assets/icons/icons-loader.js +++ b/app/assets/icons/icons-loader.js @@ -1,4 +1,29 @@ let icons = [ + "menu-power", + "menu-create_account", + "menu-dashboard", + "menu-user", //old + "menu-robot", + "menu-listing", + "menu-volume_ranking", + "menu-trade", + "menu-server", + "menu-transfer", + "menu-deposit-withdraw", + "menu-cogs", + "menu-showcases", + "menu-insight", + "menu-news", + "menu-question-circle", + "menu-thumbs-up", + "menu-assets", + "menu-text-sign", + "menu-text", + "menu-hourglass", + "menu-list", + "menu-warning", + "menu-folder", + "photo-camera", "adjust", "alarm", @@ -23,6 +48,7 @@ let icons = [ "direct_debit", "dollar-green", "dollar", + "donate", "download", "excel", "eye", @@ -36,7 +62,6 @@ let icons = [ "hourglass", "key", "list", - "listing", "locked", "minus-circle", "news", @@ -77,7 +102,8 @@ let icons = [ "insight", "create_account", "swap", - "instant-trade" + "instant-trade", + "qr-scan" ]; let iconsMap = {}; diff --git a/app/assets/icons/listing.svg b/app/assets/icons/listing.svg deleted file mode 100644 index a53414d087..0000000000 --- a/app/assets/icons/listing.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/app/assets/icons/menu-assets.svg b/app/assets/icons/menu-assets.svg new file mode 100644 index 0000000000..b37720d5da --- /dev/null +++ b/app/assets/icons/menu-assets.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/app/assets/icons/menu-cogs.svg b/app/assets/icons/menu-cogs.svg new file mode 100644 index 0000000000..a32dea45ba --- /dev/null +++ b/app/assets/icons/menu-cogs.svg @@ -0,0 +1,3 @@ + + + diff --git a/app/assets/icons/menu-create_account.svg b/app/assets/icons/menu-create_account.svg new file mode 100644 index 0000000000..077149e08b --- /dev/null +++ b/app/assets/icons/menu-create_account.svg @@ -0,0 +1,3 @@ + + + diff --git a/app/assets/icons/menu-dashboard.svg b/app/assets/icons/menu-dashboard.svg new file mode 100644 index 0000000000..1d062b23e9 --- /dev/null +++ b/app/assets/icons/menu-dashboard.svg @@ -0,0 +1,3 @@ + + + diff --git a/app/assets/icons/menu-deposit-withdraw.svg b/app/assets/icons/menu-deposit-withdraw.svg new file mode 100644 index 0000000000..7c47cf9939 --- /dev/null +++ b/app/assets/icons/menu-deposit-withdraw.svg @@ -0,0 +1,3 @@ + + + diff --git a/app/assets/icons/menu-folder.svg b/app/assets/icons/menu-folder.svg new file mode 100644 index 0000000000..ed6cc28f1e --- /dev/null +++ b/app/assets/icons/menu-folder.svg @@ -0,0 +1,3 @@ + + + diff --git a/app/assets/icons/menu-hourglass.svg b/app/assets/icons/menu-hourglass.svg new file mode 100644 index 0000000000..71d3f518d6 --- /dev/null +++ b/app/assets/icons/menu-hourglass.svg @@ -0,0 +1,3 @@ + + + diff --git a/app/assets/icons/menu-insight.svg b/app/assets/icons/menu-insight.svg new file mode 100644 index 0000000000..810ff3105a --- /dev/null +++ b/app/assets/icons/menu-insight.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/app/assets/icons/menu-list.svg b/app/assets/icons/menu-list.svg new file mode 100644 index 0000000000..985b14e37a --- /dev/null +++ b/app/assets/icons/menu-list.svg @@ -0,0 +1,3 @@ + + + diff --git a/app/assets/icons/menu-listing.svg b/app/assets/icons/menu-listing.svg new file mode 100644 index 0000000000..c41d0939f6 --- /dev/null +++ b/app/assets/icons/menu-listing.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/app/assets/icons/menu-news.svg b/app/assets/icons/menu-news.svg new file mode 100644 index 0000000000..a811c29bfa --- /dev/null +++ b/app/assets/icons/menu-news.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/app/assets/icons/menu-power.svg b/app/assets/icons/menu-power.svg new file mode 100644 index 0000000000..fec151e700 --- /dev/null +++ b/app/assets/icons/menu-power.svg @@ -0,0 +1,3 @@ + + + diff --git a/app/assets/icons/menu-question-circle.svg b/app/assets/icons/menu-question-circle.svg new file mode 100644 index 0000000000..faf1911aad --- /dev/null +++ b/app/assets/icons/menu-question-circle.svg @@ -0,0 +1,3 @@ + + + diff --git a/app/assets/icons/menu-robot.svg b/app/assets/icons/menu-robot.svg new file mode 100644 index 0000000000..133ced0d98 --- /dev/null +++ b/app/assets/icons/menu-robot.svg @@ -0,0 +1,3 @@ + + + diff --git a/app/assets/icons/menu-server.svg b/app/assets/icons/menu-server.svg new file mode 100644 index 0000000000..98a754833b --- /dev/null +++ b/app/assets/icons/menu-server.svg @@ -0,0 +1,3 @@ + + + diff --git a/app/assets/icons/menu-showcases.svg b/app/assets/icons/menu-showcases.svg new file mode 100644 index 0000000000..3c04a32bc9 --- /dev/null +++ b/app/assets/icons/menu-showcases.svg @@ -0,0 +1,3 @@ + + + diff --git a/app/assets/icons/menu-text-sign.svg b/app/assets/icons/menu-text-sign.svg new file mode 100644 index 0000000000..17aed6e7ce --- /dev/null +++ b/app/assets/icons/menu-text-sign.svg @@ -0,0 +1,3 @@ + + + diff --git a/app/assets/icons/menu-text.svg b/app/assets/icons/menu-text.svg new file mode 100644 index 0000000000..dbb35bbe73 --- /dev/null +++ b/app/assets/icons/menu-text.svg @@ -0,0 +1,3 @@ + + + diff --git a/app/assets/icons/menu-thumbs-up.svg b/app/assets/icons/menu-thumbs-up.svg new file mode 100644 index 0000000000..a91932d92d --- /dev/null +++ b/app/assets/icons/menu-thumbs-up.svg @@ -0,0 +1,3 @@ + + + diff --git a/app/assets/icons/menu-trade.svg b/app/assets/icons/menu-trade.svg new file mode 100644 index 0000000000..7f5c598b3e --- /dev/null +++ b/app/assets/icons/menu-trade.svg @@ -0,0 +1,3 @@ + + + diff --git a/app/assets/icons/menu-transfer.svg b/app/assets/icons/menu-transfer.svg new file mode 100644 index 0000000000..b4d494e118 --- /dev/null +++ b/app/assets/icons/menu-transfer.svg @@ -0,0 +1,3 @@ + + + diff --git a/app/assets/icons/menu-user.svg b/app/assets/icons/menu-user.svg new file mode 100644 index 0000000000..5197168653 --- /dev/null +++ b/app/assets/icons/menu-user.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/app/assets/icons/menu-volume_ranking.svg b/app/assets/icons/menu-volume_ranking.svg new file mode 100644 index 0000000000..0c7ec50527 --- /dev/null +++ b/app/assets/icons/menu-volume_ranking.svg @@ -0,0 +1,3 @@ + + + diff --git a/app/assets/icons/menu-warning.svg b/app/assets/icons/menu-warning.svg new file mode 100644 index 0000000000..ce9dd70baa --- /dev/null +++ b/app/assets/icons/menu-warning.svg @@ -0,0 +1,4 @@ + + + + diff --git a/app/assets/icons/prediction.svg b/app/assets/icons/prediction.svg index da17871a48..bc90b112f6 100644 --- a/app/assets/icons/prediction.svg +++ b/app/assets/icons/prediction.svg @@ -1,96 +1,46 @@ - - - - - - - - - - - - - - image/svg+xml - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + diff --git a/app/assets/icons/qr-scan.svg b/app/assets/icons/qr-scan.svg new file mode 100644 index 0000000000..664fd399e1 --- /dev/null +++ b/app/assets/icons/qr-scan.svg @@ -0,0 +1,18 @@ + + + + + + + diff --git a/app/assets/images/android.png b/app/assets/images/android.png new file mode 100644 index 0000000000..00732111d3 Binary files /dev/null and b/app/assets/images/android.png differ diff --git a/app/assets/images/images.js b/app/assets/images/images.js index ce0a975822..8e032fad36 100644 --- a/app/assets/images/images.js +++ b/app/assets/images/images.js @@ -1,4 +1,4 @@ -require("file-loader?name=images/[name].png!./google-play.png"); +require("file-loader?name=images/[name].png!./android.png"); require("file-loader?name=images/[name].png!./coinmarketcap.png"); require("file-loader?name=images/[name].png!./coinpaprika.png"); require("file-loader?name=images/[name].png!./coinranking.png"); diff --git a/app/assets/index.hbs b/app/assets/index.hbs index 67acc2cd12..dcdafc7722 100644 --- a/app/assets/index.hbs +++ b/app/assets/index.hbs @@ -9,7 +9,7 @@ {{title}} - +