style fixes, production fixes
This commit is contained in:
parent
be155d7b98
commit
0baa836fa0
8 changed files with 15 additions and 28 deletions
11
assets/package-lock.json
generated
11
assets/package-lock.json
generated
|
@ -9,7 +9,6 @@
|
||||||
"@fontsource/lato": "^4.2.1",
|
"@fontsource/lato": "^4.2.1",
|
||||||
"@mdi/svg": "^5.9.55",
|
"@mdi/svg": "^5.9.55",
|
||||||
"@popperjs/core": "^2.8.4",
|
"@popperjs/core": "^2.8.4",
|
||||||
"alpinejs": "^2.8.1",
|
|
||||||
"bootstrap": "^5.0.0-beta2",
|
"bootstrap": "^5.0.0-beta2",
|
||||||
"bootstrap-icons": "^1.4.0",
|
"bootstrap-icons": "^1.4.0",
|
||||||
"hamburgers": "^1.1.3",
|
"hamburgers": "^1.1.3",
|
||||||
|
@ -1672,11 +1671,6 @@
|
||||||
"integrity": "sha1-l6ERlkmyEa0zaR2fn0hqjsn74KM=",
|
"integrity": "sha1-l6ERlkmyEa0zaR2fn0hqjsn74KM=",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"node_modules/alpinejs": {
|
|
||||||
"version": "2.8.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/alpinejs/-/alpinejs-2.8.1.tgz",
|
|
||||||
"integrity": "sha512-ETJ/k0fbiBeP+OSd5Fhj70c+zb+YRzcVbyh5DVeLT3FBWMUeUvjOSWLi53IVLPSehaT2SKmB7w08WGF2jYTqNA=="
|
|
||||||
},
|
|
||||||
"node_modules/ansi-colors": {
|
"node_modules/ansi-colors": {
|
||||||
"version": "4.1.1",
|
"version": "4.1.1",
|
||||||
"resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.1.tgz",
|
"resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.1.tgz",
|
||||||
|
@ -11187,11 +11181,6 @@
|
||||||
"integrity": "sha1-l6ERlkmyEa0zaR2fn0hqjsn74KM=",
|
"integrity": "sha1-l6ERlkmyEa0zaR2fn0hqjsn74KM=",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"alpinejs": {
|
|
||||||
"version": "2.8.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/alpinejs/-/alpinejs-2.8.1.tgz",
|
|
||||||
"integrity": "sha512-ETJ/k0fbiBeP+OSd5Fhj70c+zb+YRzcVbyh5DVeLT3FBWMUeUvjOSWLi53IVLPSehaT2SKmB7w08WGF2jYTqNA=="
|
|
||||||
},
|
|
||||||
"ansi-colors": {
|
"ansi-colors": {
|
||||||
"version": "4.1.1",
|
"version": "4.1.1",
|
||||||
"resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.1.tgz",
|
"resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.1.tgz",
|
||||||
|
|
|
@ -10,7 +10,6 @@
|
||||||
"@fontsource/lato": "^4.2.1",
|
"@fontsource/lato": "^4.2.1",
|
||||||
"@mdi/svg": "^5.9.55",
|
"@mdi/svg": "^5.9.55",
|
||||||
"@popperjs/core": "^2.8.4",
|
"@popperjs/core": "^2.8.4",
|
||||||
"alpinejs": "^2.8.1",
|
|
||||||
"bootstrap": "^5.0.0-beta2",
|
"bootstrap": "^5.0.0-beta2",
|
||||||
"bootstrap-icons": "^1.4.0",
|
"bootstrap-icons": "^1.4.0",
|
||||||
"hamburgers": "^1.1.3",
|
"hamburgers": "^1.1.3",
|
||||||
|
|
|
@ -39,3 +39,6 @@ config :bones73k, Bones73kWeb.Endpoint,
|
||||||
#
|
#
|
||||||
# Then you can assemble a release by calling `mix release`.
|
# Then you can assemble a release by calling `mix release`.
|
||||||
# See `mix help release` for more information.
|
# See `mix help release` for more information.
|
||||||
|
|
||||||
|
# Import extra secret stuff not to be included in git repo
|
||||||
|
import_config "really.secret.exs"
|
||||||
|
|
|
@ -34,6 +34,8 @@ defmodule Bones73kWeb.LiveHelpers do
|
||||||
def live_modal(socket, component, opts) do
|
def live_modal(socket, component, opts) do
|
||||||
path = Keyword.fetch!(opts, :return_to)
|
path = Keyword.fetch!(opts, :return_to)
|
||||||
modal_opts = [id: :modal, return_to: path, component: component, opts: opts]
|
modal_opts = [id: :modal, return_to: path, component: component, opts: opts]
|
||||||
|
# dirty little workaround for elixir complaining about socket being unused
|
||||||
|
_socket = socket
|
||||||
live_component(socket, Bones73kWeb.ModalComponent, modal_opts)
|
live_component(socket, Bones73kWeb.ModalComponent, modal_opts)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -33,12 +33,6 @@
|
||||||
<a class="nav-link disabled" href="#" tabindex="-1" aria-disabled="true">Disabled</a>
|
<a class="nav-link disabled" href="#" tabindex="-1" aria-disabled="true">Disabled</a>
|
||||||
</li> %>
|
</li> %>
|
||||||
|
|
||||||
<%= if function_exported?(Routes, :live_dashboard_path, 2) do %>
|
|
||||||
<li class="nav-item">
|
|
||||||
<%= link "LiveDashboard", nav_link_opts(@conn, to: Routes.live_dashboard_path(@conn, :home), class: "nav-link") %>
|
|
||||||
</li>
|
|
||||||
<% end %>
|
|
||||||
|
|
||||||
<li class="nav-item dropdown">
|
<li class="nav-item dropdown">
|
||||||
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdownExample" data-bs-toggle="dropdown" aria-expanded="false">Dropdown</a>
|
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdownExample" data-bs-toggle="dropdown" aria-expanded="false">Dropdown</a>
|
||||||
<ul class="dropdown-menu" aria-labelledby="navbarDropdownExample">
|
<ul class="dropdown-menu" aria-labelledby="navbarDropdownExample">
|
||||||
|
|
|
@ -3,9 +3,9 @@
|
||||||
<%# phoenix flash alerts: %>
|
<%# phoenix flash alerts: %>
|
||||||
<div class="row justify-content-center">
|
<div class="row justify-content-center">
|
||||||
<div class="col-md-12 col-lg-10 col-xl-9 ">
|
<div class="col-md-12 col-lg-10 col-xl-9 ">
|
||||||
<%= for {kind, color} <- alert_kinds() do %>
|
<%= for {kind, class} <- alert_kinds() do %>
|
||||||
<%= if flash_content = get_flash(@conn, kind) do %>
|
<%= if flash_content = get_flash(@conn, kind) do %>
|
||||||
<div class="alert alert-<%= color %> alert-dismissible fade show" role="alert">
|
<div class="alert <%= class %> alert-dismissible fade show" role="alert">
|
||||||
<%= flash_content %>
|
<%= flash_content %>
|
||||||
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
|
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -3,9 +3,9 @@
|
||||||
<%# liveview flash alerts: %>
|
<%# liveview flash alerts: %>
|
||||||
<div class="row justify-content-center">
|
<div class="row justify-content-center">
|
||||||
<div class="col-md-12 col-lg-10 col-xl-9 ">
|
<div class="col-md-12 col-lg-10 col-xl-9 ">
|
||||||
<%= for {kind, color} <- alert_kinds() do %>
|
<%= for {kind, class} <- alert_kinds() do %>
|
||||||
<%= if flash_content = live_flash(@flash, kind) do %>
|
<%= if flash_content = live_flash(@flash, kind) do %>
|
||||||
<div class="alert alert-<%= color %> alert-dismissible fade show" role="alert" id="lv-alert-<%= kind %>" phx-hook="AlertRemover" data-key="<%= kind %>">
|
<div class="alert <%= class %> alert-dismissible fade show" role="alert" id="lv-alert-<%= kind %>" phx-hook="AlertRemover" data-key="<%= kind %>">
|
||||||
<%= flash_content %>
|
<%= flash_content %>
|
||||||
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
|
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -10,12 +10,12 @@ defmodule Bones73kWeb.LayoutView do
|
||||||
|
|
||||||
def alert_kinds do
|
def alert_kinds do
|
||||||
[
|
[
|
||||||
success: "success",
|
success: "alert-success",
|
||||||
info: "info",
|
info: "alert-info",
|
||||||
error: "danger",
|
error: "alert-danger",
|
||||||
warning: "warning",
|
warning: "alert-warning",
|
||||||
primary: "primary",
|
primary: "alert-primary",
|
||||||
secondary: "secondary"
|
secondary: "alert-secondary"
|
||||||
]
|
]
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue