Current section
43 Versions
Jump to
Current section
43 Versions
Compare versions
48
files changed
+2678
additions
-1148
deletions
| @@ -1,5 +1,18 @@ | |
| 1 1 | # CHANGELOG |
| 2 2 | |
| 3 | + ## v0.5.0 (2020-08-10) |
| 4 | + |
| 5 | + * Require LiveView v0.16.0 |
| 6 | + * Fallback to longpoll when websockets are not available |
| 7 | + * Remove CPU cards as the result was often innacurate |
| 8 | + * Ignore `nil` measurements in telemetry panes |
| 9 | + * Remember refresh selection by using cookies |
| 10 | + * Show reductions diff in Processes table |
| 11 | + * Allow `home_app` (besides Elixir and Phoenix) to be configured |
| 12 | + * Support styles in `navbar` and provide parameter customization |
| 13 | + * Add auto-discovery of Ecto repositories |
| 14 | + * Add many more components to PageBuilder |
| 15 | + |
| 3 16 | ## v0.4.0 (2020-11-20) |
| 4 17 | |
| 5 18 | * Require LiveView v0.15.0 |
| @@ -1,5 +1,7 @@ | |
| 1 1 | # Phoenix LiveDashboard |
| 2 2 | |
| 3 | + [](https://github.com/phoenixframework/phoenix_live_dashboard/actions/workflows/ci.yml) |
| 4 | + |
| 3 5 | [Online Documentation](https://hexdocs.pm/phoenix_live_dashboard). |
| 4 6 | |
| 5 7 | <!-- MDOC !--> |
| @@ -100,19 +102,24 @@ If you want to use the LiveDashboard in production, you should put it behind som | |
| 100 102 | ```elixir |
| 101 103 | # lib/my_app_web/router.ex |
| 102 104 | use MyAppWeb, :router |
| 103 | - import Plug.BasicAuth |
| 104 105 | import Phoenix.LiveDashboard.Router |
| 105 106 | |
| 106 107 | ... |
| 107 108 | |
| 108 109 | pipeline :admins_only do |
| 109 | - plug :basic_auth, username: "admin", password: "a very special secret" |
| 110 | + plug :admin_basic_auth |
| 110 111 | end |
| 111 112 | |
| 112 113 | scope "/" do |
| 113 114 | pipe_through [:browser, :admins_only] |
| 114 115 | live_dashboard "/dashboard" |
| 115 116 | end |
| 117 | + |
| 118 | + defp admin_basic_auth(conn, _opts) do |
| 119 | + username = System.fetch_env!("AUTH_USERNAME") |
| 120 | + password = System.fetch_env!("AUTH_PASSWORD") |
| 121 | + Plug.BasicAuth.basic_auth(conn, username: username, password: password) |
| 122 | + end |
| 116 123 | ``` |
| 117 124 | |
| 118 125 | If you are running your application behind a proxy or a webserver, you also have to make sure they are configured for allowing WebSocket upgrades. For example, [here is an article](https://web.archive.org/web/20171104012240/https://dennisreimann.de/articles/phoenix-nginx-config.html) on how to configure Nginx with Phoenix and WebSockets. |
| @@ -134,7 +141,7 @@ For those planning to contribute to this project, you can run a dev version of t | |
| 134 141 | |
| 135 142 | Alternatively, run `iex -S mix dev` if you also want a shell. |
| 136 143 | |
| 137 | - Assets are minimized by default. If you'd like to skip assets optimization and run webpack in development mode you can do it using the `NODE_ENV` enviroment variable: |
| 144 | + Assets are minimized by default. If you'd like to skip assets optimization and run webpack in development mode you can do it using the `NODE_ENV` environment variable: |
| 138 145 | |
| 139 146 | $ NODE_ENV=development mix dev |
| @@ -3,11 +3,9 @@ | |
| 3 3 | {<<"description">>,<<"Real-time performance dashboard for Phoenix">>}. |
| 4 4 | {<<"elixir">>,<<"~> 1.7">>}. |
| 5 5 | {<<"files">>, |
| 6 | - [<<"lib">>,<<"lib/.DS_Store">>,<<"lib/phoenix">>, |
| 7 | - <<"lib/phoenix/live_dashboard">>, |
| 6 | + [<<"lib">>,<<"lib/phoenix">>,<<"lib/phoenix/live_dashboard">>, |
| 8 7 | <<"lib/phoenix/live_dashboard/page_live.ex">>, |
| 9 8 | <<"lib/phoenix/live_dashboard/layout_view.ex">>, |
| 10 | - <<"lib/phoenix/live_dashboard/.DS_Store">>, |
| 11 9 | <<"lib/phoenix/live_dashboard/system_info.ex">>, |
| 12 10 | <<"lib/phoenix/live_dashboard/logger_pubsub_backend.ex">>, |
| 13 11 | <<"lib/phoenix/live_dashboard/web.ex">>, |
| @@ -21,20 +19,23 @@ | |
| 21 19 | <<"lib/phoenix/live_dashboard/info/port_info_component.ex">>, |
| 22 20 | <<"lib/phoenix/live_dashboard/info/ets_info_component.ex">>, |
| 23 21 | <<"lib/phoenix/live_dashboard/components">>, |
| 22 | + <<"lib/phoenix/live_dashboard/components/fields_card_component.ex">>, |
| 23 | + <<"lib/phoenix/live_dashboard/components/row_component.ex">>, |
| 24 | + <<"lib/phoenix/live_dashboard/components/columns_component.ex">>, |
| 24 25 | <<"lib/phoenix/live_dashboard/components/table_component.ex">>, |
| 25 26 | <<"lib/phoenix/live_dashboard/components/title_bar_component.ex">>, |
| 26 | - <<"lib/phoenix/live_dashboard/components/.DS_Store">>, |
| 27 | - <<"lib/phoenix/live_dashboard/components/color_bar_component.ex">>, |
| 28 | - <<"lib/phoenix/live_dashboard/components/card_usage_component.ex">>, |
| 27 | + <<"lib/phoenix/live_dashboard/components/usage_card_component.ex">>, |
| 28 | + <<"lib/phoenix/live_dashboard/components/shared_usage_card_component.ex">>, |
| 29 | + <<"lib/phoenix/live_dashboard/components/layered_graph_component.ex">>, |
| 29 30 | <<"lib/phoenix/live_dashboard/components/nav_bar_component.ex">>, |
| 30 | - <<"lib/phoenix/live_dashboard/components/color_bar_legend_component.ex">>, |
| 31 | + <<"lib/phoenix/live_dashboard/components/card_component.ex">>, |
| 31 32 | <<"lib/phoenix/live_dashboard/components/chart_component.ex">>, |
| 32 | - <<"lib/phoenix/live_dashboard/reingold_tifford.ex">>, |
| 33 33 | <<"lib/phoenix/live_dashboard/page_builder.ex">>, |
| 34 34 | <<"lib/phoenix/live_dashboard/helpers.ex">>, |
| 35 35 | <<"lib/phoenix/live_dashboard/templates">>, |
| 36 36 | <<"lib/phoenix/live_dashboard/templates/layout">>, |
| 37 37 | <<"lib/phoenix/live_dashboard/templates/layout/dash.html.eex">>, |
| 38 | + <<"lib/phoenix/live_dashboard/reingold_tilford.ex">>, |
| 38 39 | <<"lib/phoenix/live_dashboard/application.ex">>, |
| 39 40 | <<"lib/phoenix/live_dashboard/telemetry_listener.ex">>, |
| 40 41 | <<"lib/phoenix/live_dashboard/pages">>, |
| @@ -62,20 +63,20 @@ | |
| 62 63 | {<<"name">>,<<"phoenix_live_view">>}, |
| 63 64 | {<<"optional">>,false}, |
| 64 65 | {<<"repository">>,<<"hexpm">>}, |
| 65 | - {<<"requirement">>,<<"~> 0.15.0">>}], |
| 66 | + {<<"requirement">>,<<"~> 0.16.0">>}], |
| 66 67 | [{<<"app">>,<<"telemetry_metrics">>}, |
| 67 68 | {<<"name">>,<<"telemetry_metrics">>}, |
| 68 69 | {<<"optional">>,false}, |
| 69 70 | {<<"repository">>,<<"hexpm">>}, |
| 70 | - {<<"requirement">>,<<"~> 0.4.0 or ~> 0.5.0 or ~> 0.6.0">>}], |
| 71 | - [{<<"app">>,<<"phoenix_html">>}, |
| 72 | - {<<"name">>,<<"phoenix_html">>}, |
| 73 | - {<<"optional">>,false}, |
| 74 | - {<<"repository">>,<<"hexpm">>}, |
| 75 | - {<<"requirement">>,<<"~> 2.14.1 or ~> 2.15">>}], |
| 71 | + {<<"requirement">>,<<"~> 0.6.0">>}], |
| 76 72 | [{<<"app">>,<<"ecto_psql_extras">>}, |
| 77 73 | {<<"name">>,<<"ecto_psql_extras">>}, |
| 78 74 | {<<"optional">>,true}, |
| 79 75 | {<<"repository">>,<<"hexpm">>}, |
| 80 | - {<<"requirement">>,<<"~> 0.4.1 or ~> 0.5">>}]]}. |
| 81 | - {<<"version">>,<<"0.4.0">>}. |
| 76 | + {<<"requirement">>,<<"~> 0.6">>}], |
| 77 | + [{<<"app">>,<<"ecto">>}, |
| 78 | + {<<"name">>,<<"ecto">>}, |
| 79 | + {<<"optional">>,true}, |
| 80 | + {<<"repository">>,<<"hexpm">>}, |
| 81 | + {<<"requirement">>,<<"~> 3.6.2 or ~> 3.7">>}]]}. |
| 82 | + {<<"version">>,<<"0.5.0">>}. |
Loading more files…