diff --git a/assets/package-lock.json b/assets/package-lock.json index f0137bfa..27203a6e 100644 --- a/assets/package-lock.json +++ b/assets/package-lock.json @@ -9,7 +9,6 @@ "@fontsource/lato": "^4.2.1", "@mdi/svg": "^5.9.55", "@popperjs/core": "^2.8.4", - "alpinejs": "^2.8.1", "bootstrap": "^5.0.0-beta2", "bootstrap-icons": "^1.4.0", "hamburgers": "^1.1.3", @@ -1672,11 +1671,6 @@ "integrity": "sha1-l6ERlkmyEa0zaR2fn0hqjsn74KM=", "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": { "version": "4.1.1", "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.1.tgz", @@ -11187,11 +11181,6 @@ "integrity": "sha1-l6ERlkmyEa0zaR2fn0hqjsn74KM=", "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": { "version": "4.1.1", "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.1.tgz", diff --git a/assets/package.json b/assets/package.json index c527731c..bf341fb2 100644 --- a/assets/package.json +++ b/assets/package.json @@ -10,7 +10,6 @@ "@fontsource/lato": "^4.2.1", "@mdi/svg": "^5.9.55", "@popperjs/core": "^2.8.4", - "alpinejs": "^2.8.1", "bootstrap": "^5.0.0-beta2", "bootstrap-icons": "^1.4.0", "hamburgers": "^1.1.3", diff --git a/config/prod.secret.exs b/config/prod.secret.exs index 034eb276..5eeea741 100644 --- a/config/prod.secret.exs +++ b/config/prod.secret.exs @@ -39,3 +39,6 @@ config :bones73k, Bones73kWeb.Endpoint, # # Then you can assemble a release by calling `mix release`. # See `mix help release` for more information. + +# Import extra secret stuff not to be included in git repo +import_config "really.secret.exs" diff --git a/lib/bones73k_web/live/live_helpers.ex b/lib/bones73k_web/live/live_helpers.ex index ee5fb91a..a0805b9b 100644 --- a/lib/bones73k_web/live/live_helpers.ex +++ b/lib/bones73k_web/live/live_helpers.ex @@ -34,6 +34,8 @@ defmodule Bones73kWeb.LiveHelpers do def live_modal(socket, component, opts) do path = Keyword.fetch!(opts, :return_to) 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) end diff --git a/lib/bones73k_web/templates/layout/_navbar.html.eex b/lib/bones73k_web/templates/layout/_navbar.html.eex index 7fb72763..998e9cc9 100644 --- a/lib/bones73k_web/templates/layout/_navbar.html.eex +++ b/lib/bones73k_web/templates/layout/_navbar.html.eex @@ -33,12 +33,6 @@ Disabled %> - <%= if function_exported?(Routes, :live_dashboard_path, 2) do %> - - <% end %> -