From 7f2cb10f2fc2cf1eef89d72cdbb007305658b832 Mon Sep 17 00:00:00 2001 From: Max Alekseenko Date: Mon, 20 Jan 2020 19:29:11 +0300 Subject: [PATCH] remove async_listing_load lib import from app.js --- apps/block_scout_web/assets/js/app.js | 1 - apps/block_scout_web/assets/js/pages/token_counters.js | 1 + apps/block_scout_web/assets/js/pages/transaction.js | 1 + apps/block_scout_web/assets/webpack.config.js | 1 + .../lib/block_scout_web/templates/address/index.html.eex | 1 + .../lib/block_scout_web/templates/address_token/index.html.eex | 1 + .../templates/address_token_transfer/index.html.eex | 1 + .../block_scout_web/templates/block_transaction/index.html.eex | 1 + 8 files changed, 7 insertions(+), 1 deletion(-) diff --git a/apps/block_scout_web/assets/js/app.js b/apps/block_scout_web/assets/js/app.js index f30aca4ec6..f8e6f65d77 100644 --- a/apps/block_scout_web/assets/js/app.js +++ b/apps/block_scout_web/assets/js/app.js @@ -31,7 +31,6 @@ import './lib/pending_transactions_toggle' import './lib/pretty_json' import './lib/reload_button' import './lib/stop_propagation' -import './lib/async_listing_load' import './lib/tooltip' import './lib/modals' import './lib/card_tabs' diff --git a/apps/block_scout_web/assets/js/pages/token_counters.js b/apps/block_scout_web/assets/js/pages/token_counters.js index 2aeadd3f67..a21fc82ab0 100644 --- a/apps/block_scout_web/assets/js/pages/token_counters.js +++ b/apps/block_scout_web/assets/js/pages/token_counters.js @@ -2,6 +2,7 @@ import $ from 'jquery' import omit from 'lodash/omit' import humps from 'humps' import { createStore, connectElements } from '../lib/redux_helpers.js' +import '../lib/async_listing_load' export const initialState = { channelDisconnected: false, diff --git a/apps/block_scout_web/assets/js/pages/transaction.js b/apps/block_scout_web/assets/js/pages/transaction.js index 869c2234d3..547125e3da 100644 --- a/apps/block_scout_web/assets/js/pages/transaction.js +++ b/apps/block_scout_web/assets/js/pages/transaction.js @@ -5,6 +5,7 @@ import numeral from 'numeral' import socket from '../socket' import { createStore, connectElements } from '../lib/redux_helpers.js' import '../lib/transaction_input_dropdown' +import '../lib/async_listing_load' export const initialState = { blockNumber: null, diff --git a/apps/block_scout_web/assets/webpack.config.js b/apps/block_scout_web/assets/webpack.config.js index 93f8d6d6d0..da6a5af046 100644 --- a/apps/block_scout_web/assets/webpack.config.js +++ b/apps/block_scout_web/assets/webpack.config.js @@ -91,6 +91,7 @@ const appJs = 'token-transfers-toggle': './js/lib/token_transfers_toggle.js', 'try-api': './js/lib/try_api.js', 'try-eth-api': './js/lib/try_eth_api.js', + 'async-listing-load': './js/lib/async_listing_load', 'non-critical': './css/non-critical.scss' }, output: { diff --git a/apps/block_scout_web/lib/block_scout_web/templates/address/index.html.eex b/apps/block_scout_web/lib/block_scout_web/templates/address/index.html.eex index c1069a0b82..75f316aceb 100644 --- a/apps/block_scout_web/lib/block_scout_web/templates/address/index.html.eex +++ b/apps/block_scout_web/lib/block_scout_web/templates/address/index.html.eex @@ -49,4 +49,5 @@ <%= render BlockScoutWeb.CommonComponentsView, "_pagination_container.html", position: "bottom", cur_page_number: "1", show_pagination_limit: true, data_next_page_button: true, data_prev_page_button: true %> + diff --git a/apps/block_scout_web/lib/block_scout_web/templates/address_token/index.html.eex b/apps/block_scout_web/lib/block_scout_web/templates/address_token/index.html.eex index 8510bdca64..485617f1aa 100644 --- a/apps/block_scout_web/lib/block_scout_web/templates/address_token/index.html.eex +++ b/apps/block_scout_web/lib/block_scout_web/templates/address_token/index.html.eex @@ -36,5 +36,6 @@ + diff --git a/apps/block_scout_web/lib/block_scout_web/templates/address_token_transfer/index.html.eex b/apps/block_scout_web/lib/block_scout_web/templates/address_token_transfer/index.html.eex index a24338c3ab..17fdeefcdd 100644 --- a/apps/block_scout_web/lib/block_scout_web/templates/address_token_transfer/index.html.eex +++ b/apps/block_scout_web/lib/block_scout_web/templates/address_token_transfer/index.html.eex @@ -74,5 +74,6 @@ + diff --git a/apps/block_scout_web/lib/block_scout_web/templates/block_transaction/index.html.eex b/apps/block_scout_web/lib/block_scout_web/templates/block_transaction/index.html.eex index e0847cac86..adc200e596 100644 --- a/apps/block_scout_web/lib/block_scout_web/templates/block_transaction/index.html.eex +++ b/apps/block_scout_web/lib/block_scout_web/templates/block_transaction/index.html.eex @@ -36,5 +36,6 @@ <%= render BlockScoutWeb.CommonComponentsView, "_pagination_container.html", position: "bottom", cur_page_number: "1", show_pagination_limit: true, data_next_page_button: true, data_prev_page_button: true %> +