Fix warnings, eslint; mix gettext

account
nikitosing 3 years ago committed by Viktor Baranov
parent 2504472be5
commit ec4ffe1802
  1. 3
      apps/block_scout_web/lib/block_scout_web/controllers/transaction_internal_transaction_controller.ex
  2. 3
      apps/block_scout_web/lib/block_scout_web/controllers/transaction_token_transfer_controller.ex
  3. 2
      apps/block_scout_web/lib/block_scout_web/models/add_watchlist_address.ex
  4. 1
      apps/block_scout_web/lib/block_scout_web/models/get_transaction_tags.ex
  5. 23
      apps/block_scout_web/priv/gettext/default.pot
  6. 23
      apps/block_scout_web/priv/gettext/en/LC_MESSAGES/default.po

@ -6,8 +6,7 @@ defmodule BlockScoutWeb.TransactionInternalTransactionController do
import GetTransactionTags, only: [get_transaction_tags: 2]
alias BlockScoutWeb.{AccessHelpers, Controller, InternalTransactionView, TransactionController}
alias Explorer.Accounts.TagTransaction
alias Explorer.{Chain, Market, Repo}
alias Explorer.{Chain, Market}
alias Explorer.ExchangeRates.Token
alias Phoenix.View

@ -6,8 +6,7 @@ defmodule BlockScoutWeb.TransactionTokenTransferController do
import GetTransactionTags, only: [get_transaction_tags: 2]
alias BlockScoutWeb.{AccessHelpers, Controller, TransactionController, TransactionTokenTransferView}
alias Explorer.Accounts.TagTransaction
alias Explorer.{Chain, Market, Repo}
alias Explorer.{Chain, Market}
alias Explorer.ExchangeRates.Token
alias Phoenix.View

@ -9,7 +9,7 @@ defmodule AddWatchlistAddress do
call(watchlist, params)
"""
alias Explorer.Accounts.Notify.ForbiddenAddress
alias Explorer.Accounts.Notifier.ForbiddenAddress
alias Explorer.Accounts.{Watchlist, WatchlistAddress}
alias Explorer.Chain.Address
alias Explorer.Repo

@ -6,7 +6,6 @@ defmodule GetTransactionTags do
# import Ecto.Query, only: [from: 2]
alias Explorer.Accounts.TagTransaction
alias Explorer.Chain.Hash
alias Explorer.Repo
def get_transaction_tags(transaction_hash, %{id: identity_id}) do

@ -141,7 +141,7 @@ msgstr ""
msgid "Add"
msgstr ""
#: lib/block_scout_web/templates/account/api_key/index.html.eex:38
#: lib/block_scout_web/templates/account/api_key/index.html.eex:45
#, elixir-autogen, elixir-format
msgid "Add API key"
msgstr ""
@ -713,6 +713,11 @@ msgstr ""
msgid "Create"
msgstr ""
#: lib/block_scout_web/templates/account/api_key/index.html.eex:13
#, elixir-autogen, elixir-format
msgid "Create an API key to use with your RPC и EthRPC API requests."
msgstr ""
#: lib/block_scout_web/views/internal_transaction_view.ex:26
#, elixir-autogen, elixir-format
msgid "Create2"
@ -900,7 +905,7 @@ msgstr ""
msgid "Easy Cowboy! This block does not exist yet!"
msgstr ""
#: lib/block_scout_web/templates/account/api_key/row.html.eex:12
#: lib/block_scout_web/templates/account/api_key/row.html.eex:16
#, elixir-autogen, elixir-format
msgid "Edit"
msgstr ""
@ -1271,6 +1276,12 @@ msgstr ""
msgid "Last Balance Update"
msgstr ""
#: lib/block_scout_web/templates/account/api_key/index.html.eex:13
#: lib/block_scout_web/templates/account/api_key/index.html.eex:19
#, elixir-autogen, elixir-format
msgid "Learn more"
msgstr ""
#: lib/block_scout_web/templates/layout/app.html.eex:45
#, elixir-autogen, elixir-format
msgid "Less than"
@ -1464,7 +1475,7 @@ msgid "N/A bytes"
msgstr ""
#: lib/block_scout_web/templates/account/api_key/form.html.eex:19
#: lib/block_scout_web/templates/account/api_key/index.html.eex:22
#: lib/block_scout_web/templates/account/api_key/index.html.eex:29
#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:52
#: lib/block_scout_web/templates/api_docs/_eth_rpc_item.html.eex:59
#: lib/block_scout_web/templates/log/_data_decoded_view.html.eex:4
@ -1730,7 +1741,7 @@ msgstr ""
msgid "Records"
msgstr ""
#: lib/block_scout_web/templates/account/api_key/row.html.eex:9
#: lib/block_scout_web/templates/account/api_key/row.html.eex:13
#, elixir-autogen, elixir-format
msgid "Remove"
msgstr ""
@ -2708,9 +2719,9 @@ msgstr ""
msgid "Yes"
msgstr ""
#: lib/block_scout_web/templates/account/api_key/index.html.eex:14
#: lib/block_scout_web/templates/account/api_key/index.html.eex:19
#, elixir-autogen, elixir-format
msgid "You don't have API keys yet"
msgid "You can create 3 API keys per account."
msgstr ""
#: lib/block_scout_web/templates/address/overview.html.eex:111

@ -141,7 +141,7 @@ msgstr ""
msgid "Add"
msgstr ""
#: lib/block_scout_web/templates/account/api_key/index.html.eex:38
#: lib/block_scout_web/templates/account/api_key/index.html.eex:45
#, elixir-autogen, elixir-format
msgid "Add API key"
msgstr ""
@ -713,6 +713,11 @@ msgstr ""
msgid "Create"
msgstr ""
#: lib/block_scout_web/templates/account/api_key/index.html.eex:13
#, elixir-autogen, elixir-format
msgid "Create an API key to use with your RPC и EthRPC API requests."
msgstr ""
#: lib/block_scout_web/views/internal_transaction_view.ex:26
#, elixir-autogen, elixir-format
msgid "Create2"
@ -900,7 +905,7 @@ msgstr ""
msgid "Easy Cowboy! This block does not exist yet!"
msgstr ""
#: lib/block_scout_web/templates/account/api_key/row.html.eex:12
#: lib/block_scout_web/templates/account/api_key/row.html.eex:16
#, elixir-autogen, elixir-format
msgid "Edit"
msgstr ""
@ -1271,6 +1276,12 @@ msgstr ""
msgid "Last Balance Update"
msgstr ""
#: lib/block_scout_web/templates/account/api_key/index.html.eex:13
#: lib/block_scout_web/templates/account/api_key/index.html.eex:19
#, elixir-autogen, elixir-format
msgid "Learn more"
msgstr ""
#: lib/block_scout_web/templates/layout/app.html.eex:45
#, elixir-autogen, elixir-format
msgid "Less than"
@ -1464,7 +1475,7 @@ msgid "N/A bytes"
msgstr ""
#: lib/block_scout_web/templates/account/api_key/form.html.eex:19
#: lib/block_scout_web/templates/account/api_key/index.html.eex:22
#: lib/block_scout_web/templates/account/api_key/index.html.eex:29
#: lib/block_scout_web/templates/api_docs/_action_tile.html.eex:52
#: lib/block_scout_web/templates/api_docs/_eth_rpc_item.html.eex:59
#: lib/block_scout_web/templates/log/_data_decoded_view.html.eex:4
@ -1730,7 +1741,7 @@ msgstr ""
msgid "Records"
msgstr ""
#: lib/block_scout_web/templates/account/api_key/row.html.eex:9
#: lib/block_scout_web/templates/account/api_key/row.html.eex:13
#, elixir-autogen, elixir-format
msgid "Remove"
msgstr ""
@ -2708,9 +2719,9 @@ msgstr ""
msgid "Yes"
msgstr ""
#: lib/block_scout_web/templates/account/api_key/index.html.eex:14
#: lib/block_scout_web/templates/account/api_key/index.html.eex:19
#, elixir-autogen, elixir-format
msgid "You don't have API keys yet"
msgid "You can create 3 API keys per account."
msgstr ""
#: lib/block_scout_web/templates/address/overview.html.eex:111

Loading…
Cancel
Save