Add settings model (#54)
* Adds a basic settings model * Added more settings methods; Hooked up initial settings runner to app boot * Update onboarding flow to use settings model instead of session data
This commit is contained in:
@@ -45,6 +45,7 @@ defmodule PinchflatWeb do
|
||||
import Plug.Conn
|
||||
import PinchflatWeb.Gettext
|
||||
|
||||
alias Pinchflat.Settings
|
||||
alias PinchflatWeb.Layouts
|
||||
|
||||
unquote(verified_routes())
|
||||
@@ -56,6 +57,8 @@ defmodule PinchflatWeb do
|
||||
use Phoenix.LiveView,
|
||||
layout: {PinchflatWeb.Layouts, :app}
|
||||
|
||||
alias Pinchflat.Settings
|
||||
|
||||
unquote(html_helpers())
|
||||
end
|
||||
end
|
||||
@@ -64,6 +67,8 @@ defmodule PinchflatWeb do
|
||||
quote do
|
||||
use Phoenix.LiveComponent
|
||||
|
||||
alias Pinchflat.Settings
|
||||
|
||||
unquote(html_helpers())
|
||||
end
|
||||
end
|
||||
@@ -76,6 +81,8 @@ defmodule PinchflatWeb do
|
||||
import Phoenix.Controller,
|
||||
only: [get_csrf_token: 0, view_module: 1, view_template: 1]
|
||||
|
||||
alias Pinchflat.Settings
|
||||
|
||||
# Include general helpers for rendering HTML
|
||||
unquote(html_helpers())
|
||||
end
|
||||
@@ -93,6 +100,7 @@ defmodule PinchflatWeb do
|
||||
import PinchflatWeb.CustomComponents.TableComponents
|
||||
import PinchflatWeb.CustomComponents.ButtonComponents
|
||||
|
||||
alias Pinchflat.Settings
|
||||
alias Pinchflat.Utils.StringUtils
|
||||
|
||||
# Shortcut for generating JS commands
|
||||
|
||||
Reference in New Issue
Block a user