Current section
43 Versions
Jump to
Current section
43 Versions
Compare versions
11
files changed
+62
additions
-34
deletions
| @@ -1,5 +1,10 @@ | |
| 1 1 | # CHANGELOG |
| 2 2 | |
| 3 | + ## v0.2.2 (2020-05-05) |
| 4 | + |
| 5 | + * Improvements on the amount of data sent |
| 6 | + * Fix OS Data page on Windows |
| 7 | + |
| 3 8 | ## v0.2.1 (2020-04-29) |
| 4 9 | |
| 5 10 | * Add "Applications" page |
| @@ -69,4 +69,4 @@ | |
| 69 69 | {<<"optional">>,false}, |
| 70 70 | {<<"repository">>,<<"hexpm">>}, |
| 71 71 | {<<"requirement">>,<<"~> 2.14.1 or ~> 2.15">>}]]}. |
| 72 | - {<<"version">>,<<"0.2.1">>}. |
| 72 | + {<<"version">>,<<"0.2.2">>}. |
| @@ -53,7 +53,7 @@ defmodule Phoenix.LiveDashboard.ViewHelpers do | |
| 53 53 | end |
| 54 54 | |
| 55 55 | @doc """ |
| 56 | - Decodes the PID from URL. |
| 56 | + Decodes the Port from URL. |
| 57 57 | """ |
| 58 58 | def decode_port(port_str) do |
| 59 59 | :erlang.list_to_port('#Port<' ++ String.to_charlist(port_str) ++ '>') |
| @@ -4,14 +4,13 @@ defmodule Phoenix.LiveDashboard.ApplicationsLive do | |
| 4 4 | |
| 5 5 | alias Phoenix.LiveDashboard.SystemInfo |
| 6 6 | |
| 7 | - @sort_by ~w(name version) |
| 7 | + @sort_by ~w(name state) |
| 8 8 | @sort_dir ~w(asc desc) |
| 9 | + @temporary_assigns [applications: [], total: 0] |
| 9 10 | |
| 10 11 | @impl true |
| 11 12 | def mount(%{"node" => _} = params, session, socket) do |
| 12 | - {:ok, |
| 13 | - socket |
| 14 | - |> assign_defaults(params, session, true)} |
| 13 | + {:ok, assign_defaults(socket, params, session, true), temporary_assigns: @temporary_assigns} |
| 15 14 | end |
| 16 15 | |
| 17 16 | @impl true |
| @@ -25,10 +24,10 @@ defmodule Phoenix.LiveDashboard.ApplicationsLive do | |
| 25 24 | defp fetch_applications(%{assigns: %{params: params, menu: menu}} = socket) do |
| 26 25 | %{search: search, sort_by: sort_by, sort_dir: sort_dir, limit: limit} = params |
| 27 26 | |
| 28 | - {applications, count} = |
| 27 | + {applications, total} = |
| 29 28 | SystemInfo.fetch_applications(menu.node, search, sort_by, sort_dir, limit) |
| 30 29 | |
| 31 | - assign(socket, applications: applications, count: count) |
| 30 | + assign(socket, applications: applications, total: total) |
| 32 31 | end |
| 33 32 | |
| 34 33 | @impl true |
| @@ -41,7 +40,7 @@ defmodule Phoenix.LiveDashboard.ApplicationsLive do | |
| 41 40 | <form phx-change="search" phx-submit="search" class="form-inline"> |
| 42 41 | <div class="form-row align-items-center"> |
| 43 42 | <div class="col-auto"> |
| 44 | - <input type="search" name="search" class="form-control form-control-sm" value="<%= @params.search %>" placeholder="Search by name or port" phx-debounce="300"> |
| 43 | + <input type="search" name="search" class="form-control form-control-sm" value="<%= @params.search %>" placeholder="Search" phx-debounce="300"> |
| 45 44 | </div> |
| 46 45 | </div> |
| 47 46 | </form> |
| @@ -58,7 +57,7 @@ defmodule Phoenix.LiveDashboard.ApplicationsLive do | |
| 58 57 | </div> |
| 59 58 | </div> |
| 60 59 | <div class="col-auto"> |
| 61 | - applications out of <%= @count %> |
| 60 | + applications out of <%= @total %> |
| 62 61 | </div> |
| 63 62 | </div> |
| 64 63 | </form> |
| @@ -66,17 +65,17 @@ defmodule Phoenix.LiveDashboard.ApplicationsLive do | |
| 66 65 | <div class="card tabular-card mb-4 mt-4"> |
| 67 66 | <div class="card-body p-0"> |
| 68 67 | <div class="dash-table-wrapper"> |
| 69 | - <table class="table table-hover mt-0 dash-table clickable-rows"> |
| 68 | + <table class="table table-hover mt-0 dash-table"> |
| 70 69 | <thead> |
| 71 70 | <tr> |
| 72 71 | <th class="pl-4"> |
| 73 72 | <%= sort_link(@socket, @live_action, @menu, @params, :name, "Name") %> |
| 74 73 | </th> |
| 75 74 | <th>Description</th> |
| 76 | - <th>State</th> |
| 77 75 | <th> |
| 78 | - <%= sort_link(@socket, @live_action, @menu, @params, :version, "Version") %> |
| 76 | + <%= sort_link(@socket, @live_action, @menu, @params, :state, "State") %> |
| 79 77 | </th> |
| 78 | + <th>Version</th> |
| 80 79 | </tr> |
| 81 80 | </thead> |
| 82 81 | <tbody> |
| @@ -5,10 +5,11 @@ defmodule Phoenix.LiveDashboard.EtsLive do | |
| 5 5 | alias Phoenix.LiveDashboard.{SystemInfo, EtsInfoComponent} |
| 6 6 | |
| 7 7 | @sort_by ~w(size memory) |
| 8 | + @temporary_assigns [tables: [], total: 0] |
| 8 9 | |
| 9 10 | @impl true |
| 10 11 | def mount(%{"node" => _} = params, session, socket) do |
| 11 | - {:ok, assign_defaults(socket, params, session, true)} |
| 12 | + {:ok, assign_defaults(socket, params, session, true), temporary_assigns: @temporary_assigns} |
| 12 13 | end |
| 13 14 | |
| 14 15 | @impl true |
Loading more files…