Skip to content

Commit

Permalink
Merge pull request blockscout#5182 from blockscout/vb-fix-staking-dapp
Browse files Browse the repository at this point in the history
Fix Staking Dapp styles
  • Loading branch information
vbaranov authored and jagdeep sidhu committed Feb 11, 2022
1 parent 81d7aae commit 539c97c
Show file tree
Hide file tree
Showing 8 changed files with 41 additions and 39 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
- [#4690](https://github.com/blockscout/blockscout/pull/4690) - Improve pagination: introduce pagination with random access to pages; Integrate it to the Transactions List page

### Fixes
- [#5172](https://github.com/blockscout/blockscout/pull/5172), [#5182](https://github.com/blockscout/blockscout/pull/5182) - Reduced the size of js bundles
- [#5160](https://github.com/blockscout/blockscout/pull/5160) - Fix blocks validated hint
- [#5155](https://github.com/blockscout/blockscout/pull/5155) - Fix get_implementation_abi_from_proxy/2 implementation
- [#5154](https://github.com/blockscout/blockscout/pull/5154) - Fix token counters bug
- [#4701](https://github.com/blockscout/blockscout/pull/4701) - Reduced the size of js bundles

### Chore
- [#5171](https://github.com/blockscout/blockscout/pull/5171) - Replace lodash NPM package with tiny lodash modules
Expand Down
2 changes: 0 additions & 2 deletions apps/block_scout_web/assets/js/pages/stakes.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import '../../css/stakes.scss'

import $ from 'jquery'
import _ from 'lodash'
import { subscribeChannel } from '../socket'
Expand Down
5 changes: 3 additions & 2 deletions apps/block_scout_web/assets/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions apps/block_scout_web/assets/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ const appJs =
'async-listing-load': './js/lib/async_listing_load',
'non-critical': './css/non-critical.scss',
'main-page': './css/main-page.scss',
'staking': './css/stakes.scss',
'tokens': './js/pages/token/search.js',
'ad': './js/lib/ad.js',
'text_ad': './js/lib/text_ad.js',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,25 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">

<%= if @view_module == Elixir.BlockScoutWeb.ChainView do %>
<link rel="stylesheet" href="<%= static_path(@conn, "/css/main-page.css") %>">
<link rel="preload" href="<%= static_path(@conn, "/js/chain.js") %>" as="script">
<link rel="preload" href="<%= static_path(@conn, "/js/chart-loader.js") %>" as="script">
<link rel="preload" href="<%= static_path(@conn, "/images/icons/fontawesome/github.svg") %>" as="image" crossorigin>
<link rel="preload" href="<%= static_path(@conn, "/images/icons/fontawesome/twitter.svg") %>" as="image" crossorigin>
<link rel="preload" href="<%= static_path(@conn, "/images/icons/fontawesome/telegram.svg") %>" as="image" crossorigin>
<link rel="preload" href="<%= static_path(@conn, "/images/icons/fontawesome/bar-chart.svg") %>" as="image" crossorigin>
<link rel="preload" href="<%= static_path(@conn, "/images/icons/fontawesome/info-circle.svg") %>" as="image" crossorigin>
<link rel="preload" href="<%= static_path(@conn, "/images/icons/fontawesome/tag.svg") %>" as="image" crossorigin>
<% else %>
<link rel="stylesheet" href="<%= static_path(@conn, "/css/app.css") %>">
<%= case @view_module do %>
<% Elixir.BlockScoutWeb.ChainView -> %>
<link rel="stylesheet" href="<%= static_path(@conn, "/css/main-page.css") %>">
<link rel="preload" href="<%= static_path(@conn, "/js/chain.js") %>" as="script">
<link rel="preload" href="<%= static_path(@conn, "/js/chart-loader.js") %>" as="script">
<link rel="preload" href="<%= static_path(@conn, "/js/token-transfers-toggle.js") %>" as="script">
<% Elixir.BlockScoutWeb.StakesView -> %>
<link rel="stylesheet" href="<%= static_path(@conn, "/css/staking.css") %>">
<link rel="stylesheet" href="<%= static_path(@conn, "/css/app.css") %>">
<% _ -> %>
<link rel="stylesheet" href="<%= static_path(@conn, "/css/app.css") %>">
<% end %>
<link rel="preload" href="<%= static_path(@conn, "/js/autocomplete.js") %>" as="script">
<link rel="preload" href="<%= static_path(@conn, "/images/icons/fontawesome/github.svg") %>" as="image" crossorigin>
<link rel="preload" href="<%= static_path(@conn, "/images/icons/fontawesome/twitter.svg") %>" as="image" crossorigin>
<link rel="preload" href="<%= static_path(@conn, "/images/icons/fontawesome/telegram.svg") %>" as="image" crossorigin>
<link rel="preload" href="<%= static_path(@conn, "/images/icons/fontawesome/bar-chart.svg") %>" as="image" crossorigin>
<link rel="preload" href="<%= static_path(@conn, "/images/icons/fontawesome/info-circle.svg") %>" as="image" crossorigin>
<link rel="preload" href="<%= static_path(@conn, "/images/icons/fontawesome/tag.svg") %>" as="image" crossorigin>
<link rel="preload" href="<%= static_path(@conn, "/css/non-critical.css") %>" as="style" onload="this.onload=null;this.rel='stylesheet'">
<link rel="stylesheet" href="<%= static_path(@conn, "/css/non-critical.css") %>">
<%= render_existing(@view_module, "styles.html", assigns) %>
Expand Down
4 changes: 0 additions & 4 deletions apps/block_scout_web/lib/block_scout_web/views/stakes_view.ex
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,4 @@ defmodule BlockScoutWeb.StakesView do
use BlockScoutWeb, :view
import BlockScoutWeb.StakesHelpers
alias Explorer.Chain

def render("styles.html", _) do
~E(<link rel="stylesheet" href="/css/stakes.css">)
end
end
18 changes: 9 additions & 9 deletions apps/block_scout_web/priv/gettext/default.pot
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ msgid "(query)"
msgstr ""

#, elixir-format
#: lib/block_scout_web/templates/layout/app.html.eex:183
#: lib/block_scout_web/templates/layout/app.html.eex:189
msgid "- We're indexing this chain right now. Some of the counts may be inaccurate."
msgstr ""

Expand Down Expand Up @@ -368,7 +368,7 @@ msgid "Block Height"
msgstr ""

#, elixir-format
#: lib/block_scout_web/templates/layout/app.html.eex:40
#: lib/block_scout_web/templates/layout/app.html.eex:46
msgid "Block Mined, awaiting import..."
msgstr ""

Expand Down Expand Up @@ -414,7 +414,7 @@ msgid "Blocks"
msgstr ""

#, elixir-format
#: lib/block_scout_web/templates/layout/app.html.eex:39
#: lib/block_scout_web/templates/layout/app.html.eex:45
msgid "Blocks Indexed"
msgstr ""

Expand Down Expand Up @@ -1105,7 +1105,7 @@ msgstr ""
#: lib/block_scout_web/templates/address/index.html.eex:5 lib/block_scout_web/templates/address/overview.html.eex:180
#: lib/block_scout_web/templates/block/overview.html.eex:209 lib/block_scout_web/templates/internal_transaction/_tile.html.eex:20
#: lib/block_scout_web/templates/layout/_topnav.html.eex:89 lib/block_scout_web/templates/layout/_topnav.html.eex:110
#: lib/block_scout_web/templates/layout/app.html.eex:45 lib/block_scout_web/templates/transaction/_pending_tile.html.eex:20
#: lib/block_scout_web/templates/layout/app.html.eex:51 lib/block_scout_web/templates/transaction/_pending_tile.html.eex:20
#: lib/block_scout_web/templates/transaction/_tile.html.eex:37 lib/block_scout_web/templates/transaction/overview.html.eex:411
#: lib/block_scout_web/views/wei_helpers.ex:78
msgid "Ether"
Expand Down Expand Up @@ -1331,7 +1331,7 @@ msgid "Indexed?"
msgstr ""

#, elixir-format
#: lib/block_scout_web/templates/layout/app.html.eex:41
#: lib/block_scout_web/templates/layout/app.html.eex:47
msgid "Indexing Tokens"
msgstr ""

Expand Down Expand Up @@ -1390,7 +1390,7 @@ msgid "Last Balance Update"
msgstr ""

#, elixir-format
#: lib/block_scout_web/templates/layout/app.html.eex:42
#: lib/block_scout_web/templates/layout/app.html.eex:48
msgid "Less than"
msgstr ""

Expand Down Expand Up @@ -1498,7 +1498,7 @@ msgstr ""

#, elixir-format
#: lib/block_scout_web/templates/chain/show.html.eex:61
#: lib/block_scout_web/templates/layout/app.html.eex:43 lib/block_scout_web/templates/tokens/overview/_details.html.eex:98
#: lib/block_scout_web/templates/layout/app.html.eex:49 lib/block_scout_web/templates/tokens/overview/_details.html.eex:98
#: lib/block_scout_web/views/address_view.ex:142
msgid "Market Cap"
msgstr ""
Expand Down Expand Up @@ -1843,7 +1843,7 @@ msgstr ""

#, elixir-format
#: lib/block_scout_web/templates/chain/show.html.eex:41
#: lib/block_scout_web/templates/layout/app.html.eex:44 lib/block_scout_web/templates/tokens/overview/_details.html.eex:109
#: lib/block_scout_web/templates/layout/app.html.eex:50 lib/block_scout_web/templates/tokens/overview/_details.html.eex:109
msgid "Price"
msgstr ""

Expand Down Expand Up @@ -2775,7 +2775,7 @@ msgstr ""

#, elixir-format
#: lib/block_scout_web/templates/chain/show.html.eex:92
#: lib/block_scout_web/templates/layout/app.html.eex:46
#: lib/block_scout_web/templates/layout/app.html.eex:52
msgid "Tx/day"
msgstr ""

Expand Down
18 changes: 9 additions & 9 deletions apps/block_scout_web/priv/gettext/en/LC_MESSAGES/default.po
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ msgid "(query)"
msgstr ""

#, elixir-format
#: lib/block_scout_web/templates/layout/app.html.eex:183
#: lib/block_scout_web/templates/layout/app.html.eex:189
msgid "- We're indexing this chain right now. Some of the counts may be inaccurate."
msgstr ""

Expand Down Expand Up @@ -368,7 +368,7 @@ msgid "Block Height"
msgstr ""

#, elixir-format
#: lib/block_scout_web/templates/layout/app.html.eex:40
#: lib/block_scout_web/templates/layout/app.html.eex:46
msgid "Block Mined, awaiting import..."
msgstr ""

Expand Down Expand Up @@ -414,7 +414,7 @@ msgid "Blocks"
msgstr ""

#, elixir-format
#: lib/block_scout_web/templates/layout/app.html.eex:39
#: lib/block_scout_web/templates/layout/app.html.eex:45
msgid "Blocks Indexed"
msgstr ""

Expand Down Expand Up @@ -1105,7 +1105,7 @@ msgstr ""
#: lib/block_scout_web/templates/address/index.html.eex:5 lib/block_scout_web/templates/address/overview.html.eex:180
#: lib/block_scout_web/templates/block/overview.html.eex:209 lib/block_scout_web/templates/internal_transaction/_tile.html.eex:20
#: lib/block_scout_web/templates/layout/_topnav.html.eex:89 lib/block_scout_web/templates/layout/_topnav.html.eex:110
#: lib/block_scout_web/templates/layout/app.html.eex:45 lib/block_scout_web/templates/transaction/_pending_tile.html.eex:20
#: lib/block_scout_web/templates/layout/app.html.eex:51 lib/block_scout_web/templates/transaction/_pending_tile.html.eex:20
#: lib/block_scout_web/templates/transaction/_tile.html.eex:37 lib/block_scout_web/templates/transaction/overview.html.eex:411
#: lib/block_scout_web/views/wei_helpers.ex:78
msgid "Ether"
Expand Down Expand Up @@ -1331,7 +1331,7 @@ msgid "Indexed?"
msgstr ""

#, elixir-format
#: lib/block_scout_web/templates/layout/app.html.eex:41
#: lib/block_scout_web/templates/layout/app.html.eex:47
msgid "Indexing Tokens"
msgstr ""

Expand Down Expand Up @@ -1390,7 +1390,7 @@ msgid "Last Balance Update"
msgstr ""

#, elixir-format
#: lib/block_scout_web/templates/layout/app.html.eex:42
#: lib/block_scout_web/templates/layout/app.html.eex:48
msgid "Less than"
msgstr ""

Expand Down Expand Up @@ -1498,7 +1498,7 @@ msgstr ""

#, elixir-format
#: lib/block_scout_web/templates/chain/show.html.eex:61
#: lib/block_scout_web/templates/layout/app.html.eex:43 lib/block_scout_web/templates/tokens/overview/_details.html.eex:98
#: lib/block_scout_web/templates/layout/app.html.eex:49 lib/block_scout_web/templates/tokens/overview/_details.html.eex:98
#: lib/block_scout_web/views/address_view.ex:142
msgid "Market Cap"
msgstr ""
Expand Down Expand Up @@ -1843,7 +1843,7 @@ msgstr ""

#, elixir-format
#: lib/block_scout_web/templates/chain/show.html.eex:41
#: lib/block_scout_web/templates/layout/app.html.eex:44 lib/block_scout_web/templates/tokens/overview/_details.html.eex:109
#: lib/block_scout_web/templates/layout/app.html.eex:50 lib/block_scout_web/templates/tokens/overview/_details.html.eex:109
msgid "Price"
msgstr ""

Expand Down Expand Up @@ -2775,7 +2775,7 @@ msgstr ""

#, elixir-format
#: lib/block_scout_web/templates/chain/show.html.eex:92
#: lib/block_scout_web/templates/layout/app.html.eex:46
#: lib/block_scout_web/templates/layout/app.html.eex:52
msgid "Tx/day"
msgstr ""

Expand Down

0 comments on commit 539c97c

Please sign in to comment.