From 81e6f91d4adb828a82cbb4cdd8659157f8c96d61 Mon Sep 17 00:00:00 2001 From: Ayrat Badykov Date: Tue, 21 May 2019 15:04:24 +0300 Subject: [PATCH] fix style issues --- .../assets/js/lib/async_listing_load.js | 14 +++++++------- apps/block_scout_web/priv/gettext/default.pot | 9 ++++----- .../priv/gettext/en/LC_MESSAGES/default.po | 17 ++++++++--------- 3 files changed, 19 insertions(+), 21 deletions(-) diff --git a/apps/block_scout_web/assets/js/lib/async_listing_load.js b/apps/block_scout_web/assets/js/lib/async_listing_load.js index 297ebe7fcb..7765626b87 100644 --- a/apps/block_scout_web/assets/js/lib/async_listing_load.js +++ b/apps/block_scout_web/assets/js/lib/async_listing_load.js @@ -106,14 +106,14 @@ export function asyncReducer (state = asyncInitialState, action) { return Object.assign({}, state, { beyondPageOne: true }) } - case 'NAVIGATE_TO_NEWER': { - history.replaceState({}, null, state.prevPagePath) + case 'NAVIGATE_TO_NEWER': { + history.replaceState({}, null, state.prevPagePath) - state.pagesStack.pop() + state.pagesStack.pop() - return Object.assign({}, state, { beyondPageOne: true }) + return Object.assign({}, state, { beyondPageOne: true }) } - default: + default: return state } } @@ -190,8 +190,8 @@ export const elements = { '[data-async-listing] [data-page-number]': { render ($el, state) { - if (state.pagesStack.length === 0) { - return $el.text('Page 1') + if (state.pagesStack.length === 0) { + return $el.text('Page 1') } $el.text('Page ' + state.pagesStack.length) diff --git a/apps/block_scout_web/priv/gettext/default.pot b/apps/block_scout_web/priv/gettext/default.pot index 929d648c73..6fb9c9919f 100644 --- a/apps/block_scout_web/priv/gettext/default.pot +++ b/apps/block_scout_web/priv/gettext/default.pot @@ -582,7 +582,6 @@ msgid "Next" msgstr "" #, elixir-format -#: lib/block_scout_web/templates/tokens/holder/index.html.eex:37 #: lib/block_scout_web/templates/tokens/inventory/index.html.eex:32 msgid "Next Page" msgstr "" @@ -750,7 +749,7 @@ msgid "Telegram" msgstr "" #, elixir-format -#: lib/block_scout_web/templates/tokens/holder/index.html.eex:24 +#: lib/block_scout_web/templates/tokens/holder/index.html.eex:26 msgid "There are no holders for this Token." msgstr "" @@ -1140,8 +1139,8 @@ msgstr "" #: lib/block_scout_web/templates/block/index.html.eex:39 #: lib/block_scout_web/templates/pending_transaction/index.html.eex:32 #: lib/block_scout_web/templates/pending_transaction/index.html.eex:48 -#: lib/block_scout_web/templates/tokens/holder/index.html.eex:33 -#: lib/block_scout_web/templates/tokens/holder/index.html.eex:44 +#: lib/block_scout_web/templates/tokens/holder/index.html.eex:35 +#: lib/block_scout_web/templates/tokens/holder/index.html.eex:46 #: lib/block_scout_web/templates/tokens/transfer/index.html.eex:34 #: lib/block_scout_web/templates/tokens/transfer/index.html.eex:52 #: lib/block_scout_web/templates/transaction/index.html.eex:36 @@ -1321,7 +1320,7 @@ msgstr "" #: lib/block_scout_web/templates/address_validation/index.html.eex:29 #: lib/block_scout_web/templates/chain/show.html.eex:91 #: lib/block_scout_web/templates/pending_transaction/index.html.eex:19 -#: lib/block_scout_web/templates/tokens/holder/index.html.eex:19 +#: lib/block_scout_web/templates/tokens/holder/index.html.eex:21 #: lib/block_scout_web/templates/tokens/transfer/index.html.eex:20 #: lib/block_scout_web/templates/transaction/index.html.eex:20 msgid "Something went wrong, click to reload." diff --git a/apps/block_scout_web/priv/gettext/en/LC_MESSAGES/default.po b/apps/block_scout_web/priv/gettext/en/LC_MESSAGES/default.po index 7665c1c03f..80b4993a4f 100644 --- a/apps/block_scout_web/priv/gettext/en/LC_MESSAGES/default.po +++ b/apps/block_scout_web/priv/gettext/en/LC_MESSAGES/default.po @@ -582,7 +582,6 @@ msgid "Next" msgstr "" #, elixir-format -#: lib/block_scout_web/templates/tokens/holder/index.html.eex:37 #: lib/block_scout_web/templates/tokens/inventory/index.html.eex:32 msgid "Next Page" msgstr "" @@ -750,7 +749,7 @@ msgid "Telegram" msgstr "" #, elixir-format -#: lib/block_scout_web/templates/tokens/holder/index.html.eex:24 +#: lib/block_scout_web/templates/tokens/holder/index.html.eex:26 msgid "There are no holders for this Token." msgstr "" @@ -1140,8 +1139,8 @@ msgstr "" #: lib/block_scout_web/templates/block/index.html.eex:39 #: lib/block_scout_web/templates/pending_transaction/index.html.eex:32 #: lib/block_scout_web/templates/pending_transaction/index.html.eex:48 -#: lib/block_scout_web/templates/tokens/holder/index.html.eex:33 -#: lib/block_scout_web/templates/tokens/holder/index.html.eex:44 +#: lib/block_scout_web/templates/tokens/holder/index.html.eex:35 +#: lib/block_scout_web/templates/tokens/holder/index.html.eex:46 #: lib/block_scout_web/templates/tokens/transfer/index.html.eex:34 #: lib/block_scout_web/templates/tokens/transfer/index.html.eex:52 #: lib/block_scout_web/templates/transaction/index.html.eex:36 @@ -1321,7 +1320,7 @@ msgstr "" #: lib/block_scout_web/templates/address_validation/index.html.eex:29 #: lib/block_scout_web/templates/chain/show.html.eex:91 #: lib/block_scout_web/templates/pending_transaction/index.html.eex:19 -#: lib/block_scout_web/templates/tokens/holder/index.html.eex:19 +#: lib/block_scout_web/templates/tokens/holder/index.html.eex:21 #: lib/block_scout_web/templates/tokens/transfer/index.html.eex:20 #: lib/block_scout_web/templates/transaction/index.html.eex:20 msgid "Something went wrong, click to reload." @@ -1748,12 +1747,12 @@ msgstr "" msgid "of" msgstr "" -#, elixir-format, fuzzy +#, elixir-format #: lib/block_scout_web/templates/address_contract/index.html.eex:83 msgid "Contract Byte Code" msgstr "" -#, elixir-format, fuzzy +#, elixir-format #: lib/block_scout_web/templates/address_contract/index.html.eex:69 msgid "Contract Creation Code" msgstr "" @@ -1763,7 +1762,7 @@ msgstr "" msgid "Contracts that self destruct in their constructors have no contract code published and cannot be verified." msgstr "" -#, elixir-format, fuzzy +#, elixir-format #: lib/block_scout_web/templates/address_contract/index.html.eex:85 msgid "Copy Contract Byte Code" msgstr "" @@ -1773,7 +1772,7 @@ msgstr "" msgid "Displaying the init data provided of the creating transaction." msgstr "" -#, elixir-format, fuzzy +#, elixir-format #: lib/block_scout_web/templates/address_logs/index.html.eex:77 msgid "There are no logs for this address." msgstr ""