diff --git a/README.md b/README.md
index efb5943..03d1edc 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-# Jol
+# JOL
To start your Phoenix server:
diff --git a/config/config.exs b/config/config.exs
index e591055..3997642 100644
--- a/config/config.exs
+++ b/config/config.exs
@@ -8,18 +8,18 @@
import Config
config :jol,
- ecto_repos: [Jol.Repo],
+ ecto_repos: [JOL.Repo],
generators: [timestamp_type: :utc_datetime]
# Configures the endpoint
-config :jol, JolWeb.Endpoint,
+config :jol, JOLWeb.Endpoint,
url: [host: "localhost"],
adapter: Bandit.PhoenixAdapter,
render_errors: [
- formats: [html: JolWeb.ErrorHTML, json: JolWeb.ErrorJSON],
+ formats: [html: JOLWeb.ErrorHTML, json: JOLWeb.ErrorJSON],
layout: false
],
- pubsub_server: Jol.PubSub,
+ pubsub_server: JOL.PubSub,
live_view: [signing_salt: "4pcqZGxe"]
# Configures the mailer
@@ -29,7 +29,7 @@ config :jol, JolWeb.Endpoint,
#
# For production it's recommended to configure a different adapter
# at the `config/runtime.exs`.
-config :jol, Jol.Mailer, adapter: Swoosh.Adapters.Local
+config :jol, JOL.Mailer, adapter: Swoosh.Adapters.Local
# Configure esbuild (the version is required)
config :esbuild,
diff --git a/config/dev.exs b/config/dev.exs
index 091f201..333e1b1 100644
--- a/config/dev.exs
+++ b/config/dev.exs
@@ -1,7 +1,7 @@
import Config
# Configure your database
-config :jol, Jol.Repo,
+config :jol, JOL.Repo,
username: "postgres",
password: "postgres",
hostname: "localhost",
@@ -16,7 +16,7 @@ config :jol, Jol.Repo,
# The watchers configuration can be used to run external
# watchers to your application. For example, we can use it
# to bundle .js and .css sources.
-config :jol, JolWeb.Endpoint,
+config :jol, JOLWeb.Endpoint,
# Binding to loopback ipv4 address prevents access from other machines.
# Change to `ip: {0, 0, 0, 0}` to allow access from other machines.
http: [ip: {127, 0, 0, 1}, port: 4000],
@@ -53,7 +53,7 @@ config :jol, JolWeb.Endpoint,
# different ports.
# Watch static and templates for browser reloading.
-config :jol, JolWeb.Endpoint,
+config :jol, JOLWeb.Endpoint,
live_reload: [
patterns: [
~r"priv/static/(?!uploads/).*(js|css|png|jpeg|jpg|gif|svg)$",
diff --git a/config/prod.exs b/config/prod.exs
index f5adc06..b1ba141 100644
--- a/config/prod.exs
+++ b/config/prod.exs
@@ -5,10 +5,10 @@ import Config
# manifest is generated by the `mix assets.deploy` task,
# which you should run after static files are built and
# before starting your production server.
-config :jol, JolWeb.Endpoint, cache_static_manifest: "priv/static/cache_manifest.json"
+config :jol, JOLWeb.Endpoint, cache_static_manifest: "priv/static/cache_manifest.json"
# Configures Swoosh API Client
-config :swoosh, api_client: Swoosh.ApiClient.Finch, finch_name: Jol.Finch
+config :swoosh, api_client: Swoosh.ApiClient.Finch, finch_name: JOL.Finch
# Disable Swoosh Local Memory Storage
config :swoosh, local: false
diff --git a/config/runtime.exs b/config/runtime.exs
index 09a8127..df90b09 100644
--- a/config/runtime.exs
+++ b/config/runtime.exs
@@ -17,7 +17,7 @@ import Config
# Alternatively, you can use `mix phx.gen.release` to generate a `bin/server`
# script that automatically sets the env var above.
if System.get_env("PHX_SERVER") do
- config :jol, JolWeb.Endpoint, server: true
+ config :jol, JOLWeb.Endpoint, server: true
end
if config_env() == :prod do
@@ -30,7 +30,7 @@ if config_env() == :prod do
maybe_ipv6 = if System.get_env("ECTO_IPV6") in ~w(true 1), do: [:inet6], else: []
- config :jol, Jol.Repo,
+ config :jol, JOL.Repo,
# ssl: true,
url: database_url,
pool_size: String.to_integer(System.get_env("POOL_SIZE") || "10"),
@@ -53,7 +53,7 @@ if config_env() == :prod do
config :jol, :dns_cluster_query, System.get_env("DNS_CLUSTER_QUERY")
- config :jol, JolWeb.Endpoint,
+ config :jol, JOLWeb.Endpoint,
url: [host: host, port: 443, scheme: "https"],
http: [
# Enable IPv6 and bind on all interfaces.
@@ -70,7 +70,7 @@ if config_env() == :prod do
# To get SSL working, you will need to add the `https` key
# to your endpoint configuration:
#
- # config :jol, JolWeb.Endpoint,
+ # config :jol, JOLWeb.Endpoint,
# https: [
# ...,
# port: 443,
@@ -92,7 +92,7 @@ if config_env() == :prod do
# We also recommend setting `force_ssl` in your config/prod.exs,
# ensuring no data is ever sent via http, always redirecting to https:
#
- # config :jol, JolWeb.Endpoint,
+ # config :jol, JOLWeb.Endpoint,
# force_ssl: [hsts: true]
#
# Check `Plug.SSL` for all available options in `force_ssl`.
@@ -103,7 +103,7 @@ if config_env() == :prod do
# Also, you may need to configure the Swoosh API client of your choice if you
# are not using SMTP. Here is an example of the configuration:
#
- # config :jol, Jol.Mailer,
+ # config :jol, JOL.Mailer,
# adapter: Swoosh.Adapters.Mailgun,
# api_key: System.get_env("MAILGUN_API_KEY"),
# domain: System.get_env("MAILGUN_DOMAIN")
diff --git a/config/test.exs b/config/test.exs
index 973bac7..e28474f 100644
--- a/config/test.exs
+++ b/config/test.exs
@@ -5,7 +5,7 @@ import Config
# The MIX_TEST_PARTITION environment variable can be used
# to provide built-in test partitioning in CI environment.
# Run `mix help test` for more information.
-config :jol, Jol.Repo,
+config :jol, JOL.Repo,
username: "postgres",
password: "postgres",
hostname: "localhost",
@@ -15,13 +15,13 @@ config :jol, Jol.Repo,
# We don't run a server during test. If one is required,
# you can enable the server option below.
-config :jol, JolWeb.Endpoint,
+config :jol, JOLWeb.Endpoint,
http: [ip: {127, 0, 0, 1}, port: 4002],
secret_key_base: "TcmWd6GafOT64XVzHiK6e6Yub8o8jhoi4gMK5K4PlAXyD7nfwzjsutXiMDifprgw",
server: false
# In test we don't send emails.
-config :jol, Jol.Mailer, adapter: Swoosh.Adapters.Test
+config :jol, JOL.Mailer, adapter: Swoosh.Adapters.Test
# Disable swoosh api client as it is only required for production adapters.
config :swoosh, :api_client, false
diff --git a/lib/jol.ex b/lib/jol.ex
index 0377d9f..02222c2 100644
--- a/lib/jol.ex
+++ b/lib/jol.ex
@@ -1,6 +1,6 @@
-defmodule Jol do
+defmodule JOL do
@moduledoc """
- Jol keeps the contexts that define your domain
+ JOL keeps the contexts that define your domain
and business logic.
Contexts are also responsible for managing your data, regardless
diff --git a/lib/jol/application.ex b/lib/jol/application.ex
index 978409f..4cc2155 100644
--- a/lib/jol/application.ex
+++ b/lib/jol/application.ex
@@ -1,4 +1,4 @@
-defmodule Jol.Application do
+defmodule JOL.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
@@ -8,21 +8,21 @@ defmodule Jol.Application do
@impl true
def start(_type, _args) do
children = [
- JolWeb.Telemetry,
- Jol.Repo,
+ JOLWeb.Telemetry,
+ JOL.Repo,
{DNSCluster, query: Application.get_env(:jol, :dns_cluster_query) || :ignore},
- {Phoenix.PubSub, name: Jol.PubSub},
+ {Phoenix.PubSub, name: JOL.PubSub},
# Start the Finch HTTP client for sending emails
- {Finch, name: Jol.Finch},
- # Start a worker by calling: Jol.Worker.start_link(arg)
- # {Jol.Worker, arg},
+ {Finch, name: JOL.Finch},
+ # Start a worker by calling: JOL.Worker.start_link(arg)
+ # {JOL.Worker, arg},
# Start to serve requests, typically the last entry
- JolWeb.Endpoint
+ JOLWeb.Endpoint
]
# See https://hexdocs.pm/elixir/Supervisor.html
# for other strategies and supported options
- opts = [strategy: :one_for_one, name: Jol.Supervisor]
+ opts = [strategy: :one_for_one, name: JOL.Supervisor]
Supervisor.start_link(children, opts)
end
@@ -30,7 +30,7 @@ defmodule Jol.Application do
# whenever the application is updated.
@impl true
def config_change(changed, _new, removed) do
- JolWeb.Endpoint.config_change(changed, removed)
+ JOLWeb.Endpoint.config_change(changed, removed)
:ok
end
end
diff --git a/lib/jol/blog.ex b/lib/jol/blog.ex
index ec2dfb1..64505b8 100644
--- a/lib/jol/blog.ex
+++ b/lib/jol/blog.ex
@@ -1,5 +1,5 @@
-defmodule Jol.Blog do
- alias Jol.Blog.Post
+defmodule JOL.Blog do
+ alias JOL.Blog.Post
use NimblePublisher,
build: Post,
diff --git a/lib/jol/blog/parser.ex b/lib/jol/blog/parser.ex
index adc9b32..7966931 100644
--- a/lib/jol/blog/parser.ex
+++ b/lib/jol/blog/parser.ex
@@ -1,4 +1,4 @@
-defmodule Jol.Blog.Parser do
+defmodule JOL.Blog.Parser do
# Parses blog posts.
def parse(_path, content) do
%{"attrs" => attrs, "body" => body} =
diff --git a/lib/jol/mailer.ex b/lib/jol/mailer.ex
index 0ff59fb..5f0945b 100644
--- a/lib/jol/mailer.ex
+++ b/lib/jol/mailer.ex
@@ -1,3 +1,3 @@
-defmodule Jol.Mailer do
+defmodule JOL.Mailer do
use Swoosh.Mailer, otp_app: :jol
end
diff --git a/lib/jol/repo.ex b/lib/jol/repo.ex
index 450285b..81dc31a 100644
--- a/lib/jol/repo.ex
+++ b/lib/jol/repo.ex
@@ -1,4 +1,4 @@
-defmodule Jol.Repo do
+defmodule JOL.Repo do
use Ecto.Repo,
otp_app: :jol,
adapter: Ecto.Adapters.Postgres
diff --git a/lib/jol_web.ex b/lib/jol_web.ex
index 8abb8ed..479dc77 100644
--- a/lib/jol_web.ex
+++ b/lib/jol_web.ex
@@ -1,12 +1,12 @@
-defmodule JolWeb do
+defmodule JOLWeb do
@moduledoc """
The entrypoint for defining your web interface, such
as controllers, components, channels, and so on.
This can be used in your application as:
- use JolWeb, :controller
- use JolWeb, :html
+ use JOLWeb, :controller
+ use JOLWeb, :html
The definitions below will be executed for every controller,
component, etc, so keep them short and clean, focused
@@ -40,10 +40,10 @@ defmodule JolWeb do
quote do
use Phoenix.Controller,
formats: [:html, :json],
- layouts: [html: JolWeb.Layouts]
+ layouts: [html: JOLWeb.Layouts]
import Plug.Conn
- import JolWeb.Gettext
+ import JOLWeb.Gettext
unquote(verified_routes())
end
@@ -52,7 +52,7 @@ defmodule JolWeb do
def live_view do
quote do
use Phoenix.LiveView,
- layout: {JolWeb.Layouts, :app}
+ layout: {JOLWeb.Layouts, :app}
unquote(html_helpers())
end
@@ -84,8 +84,8 @@ defmodule JolWeb do
# HTML escaping functionality
import Phoenix.HTML
# Core UI components and translation
- import JolWeb.CoreComponents
- import JolWeb.Gettext
+ import JOLWeb.CoreComponents
+ import JOLWeb.Gettext
# Shortcut for generating JS commands
alias Phoenix.LiveView.JS
@@ -98,9 +98,9 @@ defmodule JolWeb do
def verified_routes do
quote do
use Phoenix.VerifiedRoutes,
- endpoint: JolWeb.Endpoint,
- router: JolWeb.Router,
- statics: JolWeb.static_paths()
+ endpoint: JOLWeb.Endpoint,
+ router: JOLWeb.Router,
+ statics: JOLWeb.static_paths()
end
end
diff --git a/lib/jol_web/components/core_components.ex b/lib/jol_web/components/core_components.ex
index 0a6ecbd..6afc6a7 100644
--- a/lib/jol_web/components/core_components.ex
+++ b/lib/jol_web/components/core_components.ex
@@ -1,4 +1,4 @@
-defmodule JolWeb.CoreComponents do
+defmodule JOLWeb.CoreComponents do
@moduledoc """
Provides core UI components.
@@ -17,7 +17,7 @@ defmodule JolWeb.CoreComponents do
use Phoenix.Component
alias Phoenix.LiveView.JS
- import JolWeb.Gettext
+ import JOLWeb.Gettext
@doc """
Renders a modal.
@@ -660,9 +660,9 @@ defmodule JolWeb.CoreComponents do
# with our gettext backend as first argument. Translations are
# available in the errors.po file (as we use the "errors" domain).
if count = opts[:count] do
- Gettext.dngettext(JolWeb.Gettext, "errors", msg, msg, count, opts)
+ Gettext.dngettext(JOLWeb.Gettext, "errors", msg, msg, count, opts)
else
- Gettext.dgettext(JolWeb.Gettext, "errors", msg, opts)
+ Gettext.dgettext(JOLWeb.Gettext, "errors", msg, opts)
end
end
diff --git a/lib/jol_web/components/layouts.ex b/lib/jol_web/components/layouts.ex
index 43ab0df..ccf2be9 100644
--- a/lib/jol_web/components/layouts.ex
+++ b/lib/jol_web/components/layouts.ex
@@ -1,5 +1,5 @@
-defmodule JolWeb.Layouts do
- use JolWeb, :html
+defmodule JOLWeb.Layouts do
+ use JOLWeb, :html
embed_templates "layouts/*"
end
diff --git a/lib/jol_web/components/layouts/root.html.heex b/lib/jol_web/components/layouts/root.html.heex
index f52ea9f..46969d2 100644
--- a/lib/jol_web/components/layouts/root.html.heex
+++ b/lib/jol_web/components/layouts/root.html.heex
@@ -5,7 +5,7 @@
<.live_title suffix=" ยท Phoenix Framework">
- <%= assigns[:page_title] || "Jol" %>
+ <%= assigns[:page_title] || "JOL" %>