diff options
author | Jordan Bracco <href@random.sh> | 2022-12-17 14:08:54 +0000 |
---|---|---|
committer | Jordan Bracco <href@random.sh> | 2022-12-20 19:29:41 +0100 |
commit | 29e0342e12d3111ae3164c4478d7d5a5796665ad (patch) | |
tree | b505f11808e37c60ae0cfdba6196c32c57516eda | |
parent | Nola rename, cont. pt. 3. Refs T77. (diff) |
Nola rename, cont. pt. 4. Refs T77.
-rw-r--r-- | lib/lsg_web/endpoint.ex | 2 | ||||
-rw-r--r-- | lib/lsg_web/live/chat_live.html.heex | 6 | ||||
-rw-r--r-- | lib/lsg_web/lsg_web.ex | 2 | ||||
-rw-r--r-- | lib/lsg_web/templates/alcoolog/index.html.eex | 6 | ||||
-rw-r--r-- | lib/lsg_web/templates/alcoolog/user.html.eex | 6 | ||||
-rw-r--r-- | lib/lsg_web/templates/irc/index.html.eex | 6 | ||||
-rw-r--r-- | lib/lsg_web/templates/irc/txts.html.eex | 6 | ||||
-rw-r--r-- | lib/lsg_web/templates/layout/app.html.eex | 2 | ||||
-rw-r--r-- | lib/lsg_web/templates/page/user.html.eex | 2 |
9 files changed, 19 insertions, 19 deletions
diff --git a/lib/lsg_web/endpoint.ex b/lib/lsg_web/endpoint.ex index b0cf9c5..a401f54 100644 --- a/lib/lsg_web/endpoint.ex +++ b/lib/lsg_web/endpoint.ex @@ -31,7 +31,7 @@ defmodule NolaWeb.Endpoint do plug Plug.Head @session_options [store: :cookie, - key: "_lsg_key", + key: "_nola_key", signing_salt: "+p7K3wrj"] diff --git a/lib/lsg_web/live/chat_live.html.heex b/lib/lsg_web/live/chat_live.html.heex index fc1f582..29cd6a1 100644 --- a/lib/lsg_web/live/chat_live.html.heex +++ b/lib/lsg_web/live/chat_live.html.heex @@ -27,7 +27,7 @@ <%= if is_map(message) && Map.get(message, :__struct__) == IRC.Message do %> <li class="flex gap-2 place-items-center message" data-account-id={message.account.id}> - <LSGWeb.MessageComponent.content + <NolaWeb.MessageComponent.content message={message} self={message.account.id == @account_id} text={message.text} @@ -41,10 +41,10 @@ <%= if is_map(message) && Map.get(message, :type) do %> <li class="flex gap-2 place-items-center event"> - <LSGWeb.Component.naive_date_time_utc datetime={message.at} format="time-24-with-seconds" /> + <NolaWeb.Component.naive_date_time_utc datetime={message.at} format="time-24-with-seconds" /> <span class="inline-block font-bold flex-none cursor-default text-gray-700">* * *</span> <span class="inline-block flex-grow cursor-default text-gray-700"> - <LSGWeb.EventComponent.content event={message} + <NolaWeb.EventComponent.content event={message} self={@users[message.user_id] && @users[message.user_id].account == @account_id} user={@users[message.user_id]} /> diff --git a/lib/lsg_web/lsg_web.ex b/lib/lsg_web/lsg_web.ex index da622c7..906e961 100644 --- a/lib/lsg_web/lsg_web.ex +++ b/lib/lsg_web/lsg_web.ex @@ -55,7 +55,7 @@ defmodule NolaWeb do def view do quote do - use Phoenix.View, root: "lib/lsg_web/templates", + use Phoenix.View, root: "lib/nola_web/templates", namespace: NolaWeb # Import convenience functions from controllers diff --git a/lib/lsg_web/templates/alcoolog/index.html.eex b/lib/lsg_web/templates/alcoolog/index.html.eex index 263da95..5a5423a 100644 --- a/lib/lsg_web/templates/alcoolog/index.html.eex +++ b/lib/lsg_web/templates/alcoolog/index.html.eex @@ -38,7 +38,7 @@ ol li { <%= if status.last_descr && status.last_descr != "" do %> <br /><%= status.last_descr %> <% end %> - <br/><small><%= LSGWeb.LayoutView.format_time(status.last_at) %></small> + <br/><small><%= NolaWeb.LayoutView.format_time(status.last_at) %></small> </p> <p class="mt-1 text-gray-500 text-sm leading-5 truncate"> @@ -131,7 +131,7 @@ _ -> {"gray-300", ""} <% date = DateTime.from_unix!(date, :millisecond) %> <tr class="<%= class %>"> <td class="px-6 py-4 whitespace-no-wrap text-sm leading-5 font-medium text-gray-900"> - <%= LSGWeb.LayoutView.format_time(date, false) %> + <%= NolaWeb.LayoutView.format_time(date, false) %> </td> <td class="px-6 py-4 whitespace-no-wrap text-sm leading-5 font-medium text-gray-900"> <%= link nick, to: alcoolog_path(@conn, :nick, @network, nick) %> @@ -161,7 +161,7 @@ _ -> {"gray-300", ""} (function() { // oui s trè moch :( :( :( var ctx = document.getElementById('myChart').getContext('2d'); - d3.json('<%= alcoolog_path(@conn, :index_gls_json, @network, LSGWeb.format_chan(@channel)) %>', function(data) { + d3.json('<%= alcoolog_path(@conn, :index_gls_json, @network, NolaWeb.format_chan(@channel)) %>', function(data) { var dynamicColors = function() { var r = Math.floor(Math.random() * 255); diff --git a/lib/lsg_web/templates/alcoolog/user.html.eex b/lib/lsg_web/templates/alcoolog/user.html.eex index 8907f9a..d7f716b 100644 --- a/lib/lsg_web/templates/alcoolog/user.html.eex +++ b/lib/lsg_web/templates/alcoolog/user.html.eex @@ -12,7 +12,7 @@ <% end %> </span> - <span class="px-3 text-gray-500 text-sm font-thin"><%= LSGWeb.LayoutView.format_time(@stats.last_at) %></span> + <span class="px-3 text-gray-500 text-sm font-thin"><%= NolaWeb.LayoutView.format_time(@stats.last_at) %></span> </h3> @@ -34,7 +34,7 @@ <% end %> </span> - <span class="px-3 text-gray-500 text-sm font-thin"><%= LSGWeb.LayoutView.format_time(@stats.last_at) %></span> + <span class="px-3 text-gray-500 text-sm font-thin"><%= NolaWeb.LayoutView.format_time(@stats.last_at) %></span> </h3> <% end %> @@ -65,7 +65,7 @@ <% class = if(Integer.is_even(index), do: "bg-gray-50", else: "bg-white") %> <tr class="<%= class %>"> <td class="px-6 py-4 whitespace-no-wrap text-sm leading-5 font-medium text-gray-900"> - <%= LSGWeb.LayoutView.format_time(date, false) %> + <%= NolaWeb.LayoutView.format_time(date, false) %> </td> <td class="px-6 py-4 whitespace-no-wrap text-sm leading-5 text-gray-500"><%= cl %>cl <%= deg %>°</td> <td class="px-6 py-4 whitespace-no-wrap text-sm leading-5 text-gray-500"><%= comment||"" %></td> diff --git a/lib/lsg_web/templates/irc/index.html.eex b/lib/lsg_web/templates/irc/index.html.eex index 6cc3128..182624d 100644 --- a/lib/lsg_web/templates/irc/index.html.eex +++ b/lib/lsg_web/templates/irc/index.html.eex @@ -1,6 +1,6 @@ <div class="hidden sm:block"> <nav class="flex flex-wrap space-x-4"> - <%= link("live", to: LSGWeb.Router.Helpers.live_path(LSGWeb.Endpoint, LSGWeb.ChatLive, @network, LSGWeb.format_chan(@chan)), class: "py-4 font-medium leading-5 rounded-md text-gray-500 hover:text-gray-700 focus:outline-none focus:text-indigo-600 focus:bg-indigo-50", 'data-turbo': false) %> + <%= link("live", to: NolaWeb.Router.Helpers.live_path(NolaWeb.Endpoint, NolaWeb.ChatLive, @network, NolaWeb.format_chan(@chan)), class: "py-4 font-medium leading-5 rounded-md text-gray-500 hover:text-gray-700 focus:outline-none focus:text-indigo-600 focus:bg-indigo-50", 'data-turbo': false) %> <% list = for {identifier, _} <- @commands do %> <% name = String.replace(identifier, "_", " ") %> <%= link(name, to: "##{identifier}", class: "py-4 font-medium leading-5 rounded-md text-gray-500 hover:text-gray-700 focus:outline-none focus:text-indigo-600 focus:bg-indigo-50") %> @@ -19,7 +19,7 @@ <%= for {identifier, help} <- @commands do %> <%= if help do %> <div class="bg-white border-b border-gray-200" id="<%= identifier %>"> - <div class="prose w-auto max-w-full"><%= LSGWeb.LayoutView.liquid_markdown(@conn, help) %></div> + <div class="prose w-auto max-w-full"><%= NolaWeb.LayoutView.liquid_markdown(@conn, help) %></div> </div> <% end %> <% end %> @@ -39,6 +39,6 @@ <p> <small> - running beautte version <%= LSG.version() %> — <a href="<%= LSG.source_url() %>">git</a> + running beautte version <%= Nola.version() %> — <a href="<%= Nola.source_url() %>">git</a> </small> </p> diff --git a/lib/lsg_web/templates/irc/txts.html.eex b/lib/lsg_web/templates/irc/txts.html.eex index 68d35f5..aff0c5d 100644 --- a/lib/lsg_web/templates/irc/txts.html.eex +++ b/lib/lsg_web/templates/irc/txts.html.eex @@ -7,7 +7,7 @@ <ul class="mt-3 grid grid-cols-1 gap-5 sm:gap-6 sm:grid-cols-4 lg:grid-cols-6"> <%= for {txt, data} <- @data do %> <% base_url = cond do - @conn.assigns[:chan] -> "/#{@conn.assigns.network}/#{LSGWeb.format_chan(@conn.assigns.chan)}" + @conn.assigns[:chan] -> "/#{@conn.assigns.network}/#{NolaWeb.format_chan(@conn.assigns.chan)}" true -> "/-" end %> <li class="col-span-1 flex shadow-sm rounded-m"> @@ -22,7 +22,7 @@ </ul> </div> -<div class="prose mt-12" id="help""><%= LSGWeb.LayoutView.liquid_markdown(@conn, @doc) %></div> +<div class="prose mt-12" id="help""><%= NolaWeb.LayoutView.liquid_markdown(@conn, @doc) %></div> <div class="mt-24"> <h2 class="text-gray-500 text-xs font-medium uppercase tracking-wide"> @@ -32,7 +32,7 @@ <ul class="mt-3 grid grid-cols-1 gap-5 sm:gap-6 sm:grid-cols-4 lg:grid-cols-6"> <%= for {txt, data} <- @system do %> <% base_url = cond do - @conn.assigns[:chan] -> "/#{@conn.assigns.network}/#{LSGWeb.format_chan(@conn.assigns.chan)}" + @conn.assigns[:chan] -> "/#{@conn.assigns.network}/#{NolaWeb.format_chan(@conn.assigns.chan)}" true -> "/-" end %> <li class="col-span-1 flex shadow-sm rounded-m"> diff --git a/lib/lsg_web/templates/layout/app.html.eex b/lib/lsg_web/templates/layout/app.html.eex index b918ca5..956793f 100644 --- a/lib/lsg_web/templates/layout/app.html.eex +++ b/lib/lsg_web/templates/layout/app.html.eex @@ -106,7 +106,7 @@ <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"> <h1 class="text-3xl leading-9 font-bold text-white"> <%= if n = @conn.assigns[:network] do %><a href="/<%= n %>"><%= n %></a> › <% end %> - <%= if c = @conn.assigns[:chan] do %><a href="/<%= @conn.assigns.network %>/<%= LSGWeb.format_chan(c) %>"><%= c %></a> › <% end %> + <%= if c = @conn.assigns[:chan] do %><a href="/<%= @conn.assigns.network %>/<%= NolaWeb.format_chan(c) %>"><%= c %></a> › <% end %> <%= for({name, href} <- Enum.uniq(@conn.assigns[:breadcrumbs]||[]), do: [link(name, to: href), raw(" › ")]) %> <%= @conn.assigns[:title] %> </h1> diff --git a/lib/lsg_web/templates/page/user.html.eex b/lib/lsg_web/templates/page/user.html.eex index 6eeb39d..de9f718 100644 --- a/lib/lsg_web/templates/page/user.html.eex +++ b/lib/lsg_web/templates/page/user.html.eex @@ -10,7 +10,7 @@ <ul> <%= for {net, channel} <- @memberships do %> <li> - <% url = LSGWeb.Router.Helpers.irc_path(LSGWeb.Endpoint, :index, net, LSGWeb.format_chan(channel)) %> + <% url = NolaWeb.Router.Helpers.irc_path(NolaWeb.Endpoint, :index, net, NolaWeb.format_chan(channel)) %> <%= link([net, ": ", content_tag(:strong, channel)], to: url) %> </li> <% end %> |