From 0a24a24768eb5eabf6d812cb7623b5c5365dbc01 Mon Sep 17 00:00:00 2001 From: juanzeen Date: Sat, 18 Jan 2025 16:56:08 -0300 Subject: [PATCH 1/3] bug: liveview not loads --- .env.dev | 2 +- assets/css/noticias.scss | 246 +++++++++- assets/package-lock.json | 29 +- docker-compose.yml | 2 +- lib/pescarte/blog/blog.ex | 5 +- lib/pescarte/blog/post.ex | 5 - .../controllers/noticias_controller.ex | 11 +- .../live/blog/noticias_live/show.ex | 421 ++++++++++++++++++ lib/pescarte_web/router.ex | 3 +- .../templates/noticia_html/show.html.heex | 63 +++ lib/pescarte_web/templates/noticias_html.ex | 19 + .../templates/noticias_html/show.html.heex | 92 +++- mix.lock | 14 +- 13 files changed, 841 insertions(+), 71 deletions(-) create mode 100644 lib/pescarte_web/live/blog/noticias_live/show.ex create mode 100644 lib/pescarte_web/templates/noticia_html/show.html.heex diff --git a/.env.dev b/.env.dev index 6f05352e..51b1e4ee 100644 --- a/.env.dev +++ b/.env.dev @@ -4,7 +4,7 @@ export DATABASE_USER=postgres export DATABASE_PASS=postgres export DATABASE_HOST=127.0.0.1 -export DATABASE_NAME=postgres +export DATABASE_NAME=pescarte export DATABASE_PORT=54322 export DATABASE_URL=ecto://$DATABASE_USER:$DATABASE_PASS@$DATABASE_HOST:$DATABASE_PORT/$DATABASE_NAME diff --git a/assets/css/noticias.scss b/assets/css/noticias.scss index b8779238..175d30f6 100644 --- a/assets/css/noticias.scss +++ b/assets/css/noticias.scss @@ -1,11 +1,25 @@ .noticias-grid, - .noticia-wrapper { +.noticia-wrapper { max-width: 100vw !important; div { max-width: 100vw; } } +.landing-grid { + .news-container { + margin-top: -15%; + } +} + +@media (max-width: 768px) { + .landing-grid { + .news-container { + margin-top: -35%; + } + } +} + /* trocando gallery-carousel por land-carousel */ .land-carousel { margin-bottom: 70px; @@ -56,28 +70,28 @@ /* pegando o get-to-know do sobre e ajustando as notícias */ .get-to-know { display: flex; + flex-direction: column; align-items: center; justify-content: center; gap: 56px; - padding: 80px 40px; + padding: 10px 10px 60px 10px; img { object-fit: cover; height: 465px; - width: 50%; - max-width: 668px; + width: 75%; + max-width: 75%; border-radius: 16px; flex-shrink: 1; } .know-content { display: flex; flex-direction: column; - width: 50%; + width: 75%; gap: 25px; } @media (max-width: 768px) { .get-to-know { - flex-direction: column; align-items: center; justify-content: center; gap: 18px; @@ -103,17 +117,18 @@ justify-content: center; gap: 56px; padding: 80px 40px; + width: 75%; + margin: 0 auto; } .noticia-text { - display: flex; - flex-direction: column; - align-items: center; - width: 100%; - gap: 25px; + display: flex; + flex-direction: column; + align-items: center; + width: 100%; + gap: 25px; } - /* Estilo para telas pequenas (móveis) */ @media (max-width: 768px) { .phases { @@ -122,6 +137,7 @@ justify-content: center; gap: 18px; padding: 40px 20px; + margin: 0; } .noticia-text { width: 100vw; @@ -158,7 +174,7 @@ } .noticia .noticia-descricao h2 { - color: #0064C8; + color: #0064c8; font-size: 32px; line-height: 38px; font-weight: 700; @@ -176,7 +192,7 @@ .noticia .noticia-descricao strong em { text-decoration: underline; - color: #0064C8; + color: #0064c8; font-weight: 400; font-style: normal; } @@ -187,11 +203,10 @@ margin-bottom: 40px; } - .noticia .noticia-descricao p a { font-weight: 700; line-height: 24px; - color: #0064C8; + color: #0064c8; } .noticia .noticia-descricao p a::after { @@ -218,3 +233,202 @@ padding: 40px; } } + +/* Estilização página de listagem de notícias */ +.news-container { + grid-area: news; + + h2 { + display: flex; + justify-content: center; + margin-top: 40px; + margin-bottom: 5rem; + } + + .news-cards { + @apply flex flex-wrap justify-center md:mt-10; + + .news-item { + @apply flex flex-col max-w-sm; + margin: 0 2.5rem 2.5rem 2.5rem; + width: 20.125rem; + gap: 6px; + + .text-container { + display: flex; + flex-direction: column; + gap: 6px; + + .news-date { + font-size: 12px; + font-weight: 400; + color: #66a2de; + line-height: 24px; + } + } + + img { + border-radius: 8px; + width: 100%; + height: auto; + object-fit: cover; + max-height: 238px; + } + + h2 { + display: flex; + justify-content: center; + } + + a.link { + display: flex; + align-items: center; + margin: auto 0 1.5rem 1.5rem; + + button { + gap: 1rem; + + p { + font-family: "Work Sans"; + font-size: 1rem; + font-style: normal; + font-weight: 500; + line-height: 1.125rem; + } + + svg { + width: 1.5rem; + height: 1.5rem; + } + } + } + } + } +} + +/* Estilização da notícia destaque na página */ +.main-new { + width: 90%; + display: flex; + justify-content: space-around; + align-items: flex-start; + margin: 0 auto; + + a { + width: 60%; + + img { + border-radius: 16px; + width: 90%; + max-height: 432px; + } + } + + .main-new-text-container { + width: 40%; + padding: 3rem 0; + display: flex; + flex-direction: column; + align-items: flex-start; + text-align: start; + + .news-date { + font-size: 14px; + font-weight: 400; + color: #66a2de; + line-height: 24px; + } + + a{ + width: 100%; + } + + .news-title { + font-size: 32px; + font-weight: 700; + line-height: 46px; + color: #0064c8; + } + + .news-description { + font-size: 14px; + font-weight: 400; + color: #101010; + line-height: 24px; + } + } +} + +@media (max-width: 768px) { + .main-new { + width: 100%; + flex-direction: column; + justify-content: center; + align-items: center; + + a { + width: 90%; + + img { + width: 100%; + min-height: 400px; + max-height: none; + } + } + + .main-new-text-container { + width: 80%; + } + } +} +/*Fim notícia destaque*/ + +/*Estilização searchbar*/ +.search-container { + width: 600px; + display: flex; + flex-direction: column; + margin: -1rem auto 2rem auto; + border-radius: 4px; + gap: 12px; + + input{ + width: inherit; + border: 1.5px solid #E7E7E7; + border-radius: 4px; + padding: 12px; + + ::placeholder{ + color: #E7E7E7; + } + } + .tags-container{ + display: flex; + gap: 12px; + justify-content: space-around; + align-items: center; + + li{ + color: #0064c8; + background-color: #F2F7FC; + padding: 6px 30px; + font-size: 16px; + border-radius: 4px; + cursor: pointer; + } + + .active{ + background-color: #0064c8; + color: #FFF; + } + + } + +} + +@media (max-width: 768px){ + .search-container{ + margin-top: 0px; + width: 328px; + } +} diff --git a/assets/package-lock.json b/assets/package-lock.json index 45fbb69f..c0b1c88d 100644 --- a/assets/package-lock.json +++ b/assets/package-lock.json @@ -25,21 +25,6 @@ "topbar": "^3.0.0" } }, - "../deps/phoenix": { - "version": "1.7.18", - "license": "MIT" - }, - "../deps/phoenix_html": { - "version": "4.1.0" - }, - "../deps/phoenix_live_view": { - "version": "0.20.17", - "license": "MIT", - "devDependencies": { - "@playwright/test": "^1.43.1", - "monocart-reporter": "^2.3.1" - } - }, "node_modules/@alloc/quick-lru": { "version": "5.2.0", "resolved": "https://registry.npmjs.org/@alloc/quick-lru/-/quick-lru-5.2.0.tgz", @@ -1367,16 +1352,18 @@ } }, "node_modules/phoenix": { - "resolved": "../deps/phoenix", - "link": true + "version": "1.7.18", + "resolved": "file:../deps/phoenix", + "license": "MIT" }, "node_modules/phoenix_html": { - "resolved": "../deps/phoenix_html", - "link": true + "version": "4.2.0", + "resolved": "file:../deps/phoenix_html" }, "node_modules/phoenix_live_view": { - "resolved": "../deps/phoenix_live_view", - "link": true + "version": "0.20.17", + "resolved": "file:../deps/phoenix_live_view", + "license": "MIT" }, "node_modules/picocolors": { "version": "1.0.0", diff --git a/docker-compose.yml b/docker-compose.yml index 50e8ee05..0c8530ed 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,4 +1,4 @@ -version: "3.8" + services: pescarte: diff --git a/lib/pescarte/blog/blog.ex b/lib/pescarte/blog/blog.ex index b004bfab..255d291d 100644 --- a/lib/pescarte/blog/blog.ex +++ b/lib/pescarte/blog/blog.ex @@ -3,6 +3,7 @@ defmodule Pescarte.Blog do O contexto Blog é responsável por gerenciar as operações relacionadas a postagens e tags. """ import Ecto.Query + alias Pescarte.Blog.Entity.Tag alias Pescarte.Blog.Post alias Pescarte.Database.Repo @@ -15,7 +16,7 @@ defmodule Pescarte.Blog do optional(:page_size) => pos_integer() } - @spec list_posts_with_filter(filters()) :: {:ok, list(Post.t())} | {:error, term()} + @spec list_posts_with_filter(filters()) :: list(Post.t()) | {:error, term()} def list_posts_with_filter(filters \\ %{}) do Post |> apply_post_search_filter(filters) @@ -57,5 +58,5 @@ defmodule Pescarte.Blog do from p in query, limit: ^page_size, offset: ^offset end - defp apply_pagination(query, _), do: from(p in query, limit: 10, offset: 0) + defp apply_pagination(query, _), do: from(p in query, limit: 7, offset: 0) end diff --git a/lib/pescarte/blog/post.ex b/lib/pescarte/blog/post.ex index 677d4e9d..9a813d19 100644 --- a/lib/pescarte/blog/post.ex +++ b/lib/pescarte/blog/post.ex @@ -47,11 +47,6 @@ defmodule Pescarte.Blog.Post do |> foreign_key_constraint(:usuario_id) end - @spec get_posts :: list(Post.t()) | Ecto.QueryError - def get_posts do - Repo.Replica.all(Post) - end - @spec get_post(String.t()) :: {:ok, Post.t()} | {:error, :not_found} def get_post(id) do Database.fetch(Post, id) diff --git a/lib/pescarte_web/controllers/noticias_controller.ex b/lib/pescarte_web/controllers/noticias_controller.ex index e43323ba..73004be0 100644 --- a/lib/pescarte_web/controllers/noticias_controller.ex +++ b/lib/pescarte_web/controllers/noticias_controller.ex @@ -1,8 +1,17 @@ defmodule PescarteWeb.NoticiasController do use PescarteWeb, :controller + alias Pescarte.Blog def show(conn, _params) do current_path = conn.request_path - render(conn, :show, current_path: current_path, error_message: nil) + + [main_new | news] = Blog.list_posts_with_filter() + + render(conn, :show, + current_path: current_path, + error_message: nil, + news: news, + main_new: main_new + ) end end diff --git a/lib/pescarte_web/live/blog/noticias_live/show.ex b/lib/pescarte_web/live/blog/noticias_live/show.ex new file mode 100644 index 00000000..a974344c --- /dev/null +++ b/lib/pescarte_web/live/blog/noticias_live/show.ex @@ -0,0 +1,421 @@ +defmodule PescarteWeb.Blog.NoticiasLive.Show do + use PescarteWeb, :live_view + + alias Pescarte.Blog + + @notice_title_max_length Application.compile_env!(:pescarte, [ + PescarteWeb, + :notice_title_max_length + ]) + + @notice_desc_max_length Application.compile_env!(:pescarte, [ + PescarteWeb, + :notice_desc_max_length + ]) + @impl true + def mount(_params, _session, socket) do + + [main_new | news] = Blog.list_posts_with_filter() + + socket = + socket + |> assign(%{error_message: nil, news: news, main_new: main_new}) + + {:ok, socket} + end + + def handle_notice_title_length(text) do + if String.length(text) > @notice_title_max_length do + text + |> truncate_text_until(@notice_title_max_length - 4) + |> put_ellipsis() + else + text + end + end + + def handle_notice_desc_length(text) do + if String.length(text) > @notice_desc_max_length do + text + |> truncate_text_until(@notice_desc_max_length - 4) + |> put_ellipsis() + else + text + end + end + + defp truncate_text_until(text, length) do + text + |> String.slice(0..length) + |> String.trim_trailing() + end + + defp put_ellipsis(text) do + text <> "..." + end + + def date_to_string(date_time) do + DateTime.to_date(date_time) + |> Date.to_string() + |> String.split("-") + |> Enum.reverse() + |> Enum.join("/") + end + + @impl true + def handle_event("more_news", _params, socket) do + current_news_length = socket.assigns.news.length + loaded_news = Blog.list_posts_with_filter(%{page: current_news_length + 1, page_size: 6}) + + IO.inspect("funcionou") + + socket = socket |> assign(news: socket.assigns.news ++ loaded_news) + + {:noreply, socket} + end + + @impl true + def handle_event("dialog", _value, socket) do + {:noreply, socket} + end + + @impl true + def render(assigns) do + ~H""" +
+ <.flash :if={@error_message} id="login-error" kind={:error}> + <%= @error_message %> + + +
+
+ <.text size="h2" color="text-blue-100"> + Notícias + +
+
+ +
+ +
    +
  • Tag
  • +
  • Tag
  • +
  • Tag
  • +
  • Tag
  • +
  • Tag
  • +
  • Tag
  • +
  • Tag
  • +
+
+ +
+ + + +
+

<%= date_to_string(@main_new.inserted_at) %>

+ +

+ <%= @main_new.titulo %> +

+
+

+ <%= handle_notice_desc_length(@main_new.conteudo) %> +

+
+
+ +
+
+
+ <%= for new <- @news do %> +
+ + + +
+

<%= date_to_string(new.inserted_at) %>

+ + <.text size="h4" color="text-blue-100"> + <%= handle_notice_title_length(new.titulo) %> + + + <.text size="base" color="text-black-60"> + <%= handle_notice_desc_length(new.conteudo) %> + +
+
+ <% end %> + +
+
+
+ +
+ <.button style="primary" > + <.text size="base" color="text-wite-100">Ver mais... + +
+ + +
+ """ + end +end diff --git a/lib/pescarte_web/router.ex b/lib/pescarte_web/router.ex index 2725d75f..6cb462a4 100644 --- a/lib/pescarte_web/router.ex +++ b/lib/pescarte_web/router.ex @@ -39,12 +39,13 @@ defmodule PescarteWeb.Router do get "/publicacoes", JournalController, :show get "/censo", CensoController, :show get "/confirmar", TokenController, :confirm - get "/noticias", NoticiasController, :show get "/pgtrs", PGTRSController, :show get "/pgtr", PGTRController, :show get "/naipa", NaipaController, :show get "/sedes", SedesController, :show get "/aplicativos", AplicativosController, :show + live "/noticias", Blog.NoticiasLive.Show + delete "/acessar", LoginController, :delete diff --git a/lib/pescarte_web/templates/noticia_html/show.html.heex b/lib/pescarte_web/templates/noticia_html/show.html.heex new file mode 100644 index 00000000..613eb8aa --- /dev/null +++ b/lib/pescarte_web/templates/noticia_html/show.html.heex @@ -0,0 +1,63 @@ +
+
+
+ <.text size="h2" color="text-blue-100"> + Pescarte participa de plenária sudeste para a construção do Plano Nacional da Pesca Artesanal + +
+
+ +
+ +
+ <.text size="lg" color="text-black-80"> + Entre os dias 9 e 11 de outubro de 2024 o Projeto de Educação Ambiental Pescarte (PEA Pescarte) + participou da primeira Plenária Regional para a construção do Plano Nacional da Pesca Artesanal + (PNPA), em Vitória (ES). O evento foi realizado pelo Ministério da Pesca e Aquicultura (MPA) + e reuniu pescadores(as), pesquisadores(as), gestores públicos e grupos de apoio para, de forma + participativa, discutir e definir políticas públicas para o setor nos próximos 10 anos. + + <.text size="lg" color="text-black-80"> + Durante a plenária, os participantes abordaram sete eixos, com transversalidades de gênero, + juventude e étnico racial, que estruturam o PNPA: economia da sociobiodiversidade pesqueira + artesanal, diálogos de saberes artesanais, gestão e ordenamento, direito aos territórios, + cultura e identidade, saúde e assistência e emergências climáticas. + + <.text size="lg" color="text-black-80"> + No evento foram eleitos os 20 delegados que irão representar a Região Sudeste na Plenária + Nacional, marcada para junho de 2025, em Brasília. Angeline Lopes, pescadora da Praia do Siqueira, em Cabo Frio, e educadora socioambiental do Pescarte e Priscila Castro, educadora socioambiental do Pescarte, foram escolhidas como delegada e suplente da pesquisa, respectivamente. + + <.text size="lg" color="text-black-80"> + A articulação para a participação na plenária sudeste foi iniciada no mês de maio, durante o + Seminário Internacional da Pesca Artesanal, realizado pelo Pescarte, quando Natália Tavares, + representante do MPA, anunciou as atividades previstas para o segundo semestre. + + <.text size="lg" color="text-black-80"> + De acordo com Priscila Castro, supervisora do Núcleo de Autonomia e Incidência da Pesca + Artesanal (NAIPA), o Seminário da Pesca e o Encontro Regional, ocorrido em junho, foram + importantes para o diálogo com os integrantes do Pescarte. + + <.text size="lg" color="text-black-80"> + "Fizemos um caderno de propostas, que serviu como base para a nossa participação na plenária + sudeste, onde falamos sobre a realidade da pesca no âmbito do Pescarte. Nosso grupo contou com + 16 pessoas, entre pescadores(as) e pesquisadores, sendo 12 selecionadas pelo MPA e quatro da equipe de apoio do projeto", completou. + + <.text size="lg" color="text-black-80"> + Pescador em Arraial do Cabo e integrante do Pescarte há 10 anos, José Antônio Freitas destaca que + sua participação na plenária foi a oportunidade de relatar sobre a sua vivência e os desafios que + enfrenta para exercer a atividade. + + <.text size="lg" color="text-black-80"> + "Esse momento foi muito esperado. Tivemos a oportunidade de mostrar para o poder público a nossa + realidade, falando sobre as necessidades, conflitos que enfrentamos, como a perda de território + pesqueiro. O Plano Nacional da Pesca Artesanal vai nos auxiliar de forma positiva, porque tivemos uma oportunidade única de mostrar o que conhecemos e ajudar a criar políticas públicas que nos beneficiem", pontuou. + + <.text size="lg" color="text-black-80"> + Com o encerramento da Plenária Sudeste, o PNPA segue para a Região Centro-Oeste, com plenária + marcada para 30, 31 de outubro e 01 novembro em Campo Grande (MS). O Ministério da Pesca e Aquicultura pretende consolidar o compromisso do Estado com a pesca artesanal por meio de políticas públicas que serão acompanhadas e cobradas pelos próprios pescadores e pescadoras artesanais. + +
+
+ + +
diff --git a/lib/pescarte_web/templates/noticias_html.ex b/lib/pescarte_web/templates/noticias_html.ex index 53acafe6..15d94086 100644 --- a/lib/pescarte_web/templates/noticias_html.ex +++ b/lib/pescarte_web/templates/noticias_html.ex @@ -1,6 +1,8 @@ defmodule PescarteWeb.NoticiasHTML do use PescarteWeb, :html + alias Pescarte.Blog + embed_templates("noticias_html/*") @notice_title_max_length Application.compile_env!(:pescarte, [ @@ -43,6 +45,23 @@ defmodule PescarteWeb.NoticiasHTML do text <> "..." end + def date_to_string(date_time) do + DateTime.to_date(date_time) + |> Date.to_string() + |> String.split("-") + |> Enum.reverse() + |> Enum.join("/") + end + + def handle_event("get_news", _, socket) do + current_news_length = socket.assigns.news.length + loaded_news = Blog.list_posts_with_filter(%{page: current_news_length + 1, page_size: 6}) + + socket = socket |> assign(news: socket.assigns.news ++ loaded_news) + + {:noreply, socket} + end + def handle_event("dialog", _value, socket) do {:noreply, socket} end diff --git a/lib/pescarte_web/templates/noticias_html/show.html.heex b/lib/pescarte_web/templates/noticias_html/show.html.heex index 891a52bc..87c463eb 100644 --- a/lib/pescarte_web/templates/noticias_html/show.html.heex +++ b/lib/pescarte_web/templates/noticias_html/show.html.heex @@ -2,9 +2,8 @@ <.flash :if={@error_message} id="login-error" kind={:error}> <%= @error_message %> - - + + --> +
+
+ <.text size="h2" color="text-blue-100"> + Notícias + +
+
+ +
+ + +
+ +
+ + + +
+

<%= date_to_string(@main_new.inserted_at) %>

+ +

+ <%= @main_new.titulo %> +

+
+

+ <%= handle_notice_desc_length(@main_new.conteudo) %> +

+
-
- <.text size="h2" color="text-blue-100">Notícias +
- + <%= for new <- @news do %> +
+ + + +
+

<%= date_to_string(new.inserted_at) %>

+ + <.text size="h4" color="text-blue-100"> + <%= handle_notice_title_length(new.titulo) %> + + + <.text size="base" color="text-black-60"> + <%= handle_notice_desc_length(new.conteudo) %> + +
+
+ <% end %> +
+ + <.button style="primary" click="get_news"> + <.text size="base" color="text-wite-100">Ver mais... + diff --git a/mix.lock b/mix.lock index 913a6b66..333ab0fb 100644 --- a/mix.lock +++ b/mix.lock @@ -3,27 +3,27 @@ "absinthe_phoenix": {:hex, :absinthe_phoenix, "2.0.3", "74e0862f280424b7bc290f6f69e133268bce0b4e7db0218c7e129c5c2b1d3fd4", [:mix], [{:absinthe, "~> 1.5", [hex: :absinthe, repo: "hexpm", optional: false]}, {:absinthe_plug, "~> 1.5", [hex: :absinthe_plug, repo: "hexpm", optional: false]}, {:decimal, "~> 1.0 or ~> 2.0", [hex: :decimal, repo: "hexpm", optional: false]}, {:phoenix, "~> 1.5", [hex: :phoenix, repo: "hexpm", optional: false]}, {:phoenix_html, "~> 2.13 or ~> 3.0 or ~> 4.0", [hex: :phoenix_html, repo: "hexpm", optional: true]}, {:phoenix_pubsub, "~> 2.0", [hex: :phoenix_pubsub, repo: "hexpm", optional: false]}], "hexpm", "caffaea03c17ea7419fe07e4bc04c2399c47f0d8736900623dbf4749a826fd2c"}, "absinthe_plug": {:hex, :absinthe_plug, "1.5.8", "38d230641ba9dca8f72f1fed2dfc8abd53b3907d1996363da32434ab6ee5d6ab", [:mix], [{:absinthe, "~> 1.5", [hex: :absinthe, repo: "hexpm", optional: false]}, {:plug, "~> 1.4", [hex: :plug, repo: "hexpm", optional: false]}], "hexpm", "bbb04176647b735828861e7b2705465e53e2cf54ccf5a73ddd1ebd855f996e5a"}, "aws_signature": {:hex, :aws_signature, "0.3.2", "adf33bc4af00b2089b7708bf20e3246f09c639a905a619b3689f0a0a22c3ef8f", [:rebar3], [], "hexpm", "b0daf61feb4250a8ab0adea60db3e336af732ff71dd3fb22e45ae3dcbd071e44"}, - "bandit": {:hex, :bandit, "1.6.1", "9e01b93d72ddc21d8c576a704949e86ee6cde7d11270a1d3073787876527a48f", [:mix], [{:hpax, "~> 1.0", [hex: :hpax, repo: "hexpm", optional: false]}, {:plug, "~> 1.14", [hex: :plug, repo: "hexpm", optional: false]}, {:telemetry, "~> 0.4 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}, {:thousand_island, "~> 1.0", [hex: :thousand_island, repo: "hexpm", optional: false]}, {:websock, "~> 0.5", [hex: :websock, repo: "hexpm", optional: false]}], "hexpm", "5a904bf010ea24b67979835e0507688e31ac873d4ffc8ed0e5413e8d77455031"}, + "bandit": {:hex, :bandit, "1.6.2", "a5fa4cfbae9baaf196269a88533e18eef9e7c53bea07b03f6bc2c6d5bf87b1ce", [:mix], [{:hpax, "~> 1.0", [hex: :hpax, repo: "hexpm", optional: false]}, {:plug, "~> 1.14", [hex: :plug, repo: "hexpm", optional: false]}, {:telemetry, "~> 0.4 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}, {:thousand_island, "~> 1.0", [hex: :thousand_island, repo: "hexpm", optional: false]}, {:websock, "~> 0.5", [hex: :websock, repo: "hexpm", optional: false]}], "hexpm", "4563b81ec94f25448ac02a8853453198cf7a63abac6202dbd4bda2c7f1a71eed"}, "bcrypt_elixir": {:hex, :bcrypt_elixir, "3.2.0", "feab711974beba4cb348147170346fe097eea2e840db4e012a145e180ed4ab75", [:make, :mix], [{:comeonin, "~> 5.3", [hex: :comeonin, repo: "hexpm", optional: false]}, {:elixir_make, "~> 0.6", [hex: :elixir_make, repo: "hexpm", optional: false]}], "hexpm", "563e92a6c77d667b19c5f4ba17ab6d440a085696bdf4c68b9b0f5b30bc5422b8"}, "blankable": {:hex, :blankable, "1.0.0", "89ab564a63c55af117e115144e3b3b57eb53ad43ba0f15553357eb283e0ed425", [:mix], [], "hexpm", "7cf11aac0e44f4eedbee0c15c1d37d94c090cb72a8d9fddf9f7aec30f9278899"}, "brcpfcnpj": {:hex, :brcpfcnpj, "1.0.0", "23319e5f7e4da533f36dc5b7793e7c505fd80e43b0fa720c7a459daffbaa5034", [:mix], [{:ecto, "~> 3.0", [hex: :ecto, repo: "hexpm", optional: true]}], "hexpm", "8e6f38910896ea4f39b75c37855a702cebd495c2a74d88cdfd5c3c715c871510"}, "bunt": {:hex, :bunt, "1.0.0", "081c2c665f086849e6d57900292b3a161727ab40431219529f13c4ddcf3e7a44", [:mix], [], "hexpm", "dc5f86aa08a5f6fa6b8096f0735c4e76d54ae5c9fa2c143e5a1fc7c1cd9bb6b5"}, - "castore": {:hex, :castore, "1.0.10", "43bbeeac820f16c89f79721af1b3e092399b3a1ecc8df1a472738fd853574911", [:mix], [], "hexpm", "1b0b7ea14d889d9ea21202c43a4fa015eb913021cb535e8ed91946f4b77a8848"}, + "castore": {:hex, :castore, "1.0.11", "4bbd584741601eb658007339ea730b082cc61f3554cf2e8f39bf693a11b49073", [:mix], [], "hexpm", "e03990b4db988df56262852f20de0f659871c35154691427a5047f4967a16a62"}, "certifi": {:hex, :certifi, "2.12.0", "2d1cca2ec95f59643862af91f001478c9863c2ac9cb6e2f89780bfd8de987329", [:rebar3], [], "hexpm", "ee68d85df22e554040cdb4be100f33873ac6051387baf6a8f6ce82272340ff1c"}, "chromic_pdf": {:hex, :chromic_pdf, "1.17.0", "d392a82b94bd55efbe973d59d5741515b5d6858317fc3122a1288a06355d2069", [:mix], [{:jason, "~> 1.1", [hex: :jason, repo: "hexpm", optional: false]}, {:nimble_pool, "~> 0.2 or ~> 1.0", [hex: :nimble_pool, repo: "hexpm", optional: false]}, {:phoenix_html, "~> 2.14 or ~> 3.3 or ~> 4.0", [hex: :phoenix_html, repo: "hexpm", optional: true]}, {:plug, "~> 1.11", [hex: :plug, repo: "hexpm", optional: true]}, {:plug_crypto, "~> 1.2 or ~> 2.0", [hex: :plug_crypto, repo: "hexpm", optional: true]}, {:telemetry, "~> 0.4 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}, {:websockex, ">= 0.4.3", [hex: :websockex, repo: "hexpm", optional: true]}], "hexpm", "3609f2e6f04fc0a4b3655be00bd4a4af53cc1cd5f1166dd856816e4d6fa82828"}, "combine": {:hex, :combine, "0.10.0", "eff8224eeb56498a2af13011d142c5e7997a80c8f5b97c499f84c841032e429f", [:mix], [], "hexpm", "1b1dbc1790073076580d0d1d64e42eae2366583e7aecd455d1215b0d16f2451b"}, "comeonin": {:hex, :comeonin, "5.5.0", "364d00df52545c44a139bad919d7eacb55abf39e86565878e17cebb787977368", [:mix], [], "hexpm", "6287fc3ba0aad34883cbe3f7949fc1d1e738e5ccdce77165bc99490aa69f47fb"}, - "credo": {:hex, :credo, "1.7.10", "6e64fe59be8da5e30a1b96273b247b5cf1cc9e336b5fd66302a64b25749ad44d", [:mix], [{:bunt, "~> 0.2.1 or ~> 1.0", [hex: :bunt, repo: "hexpm", optional: false]}, {:file_system, "~> 0.2 or ~> 1.0", [hex: :file_system, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: false]}], "hexpm", "71fbc9a6b8be21d993deca85bf151df023a3097b01e09a2809d460348561d8cd"}, + "credo": {:hex, :credo, "1.7.11", "d3e805f7ddf6c9c854fd36f089649d7cf6ba74c42bc3795d587814e3c9847102", [:mix], [{:bunt, "~> 0.2.1 or ~> 1.0", [hex: :bunt, repo: "hexpm", optional: false]}, {:file_system, "~> 0.2 or ~> 1.0", [hex: :file_system, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: false]}], "hexpm", "56826b4306843253a66e47ae45e98e7d284ee1f95d53d1612bb483f88a8cf219"}, "db_connection": {:hex, :db_connection, "2.7.0", "b99faa9291bb09892c7da373bb82cba59aefa9b36300f6145c5f201c7adf48ec", [:mix], [{:telemetry, "~> 0.4 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "dcf08f31b2701f857dfc787fbad78223d61a32204f217f15e881dd93e4bdd3ff"}, "decimal": {:hex, :decimal, "2.3.0", "3ad6255aa77b4a3c4f818171b12d237500e63525c2fd056699967a3e7ea20f62", [:mix], [], "hexpm", "a4d66355cb29cb47c3cf30e71329e58361cfcb37c34235ef3bf1d7bf3773aeac"}, "dialyxir": {:hex, :dialyxir, "1.4.5", "ca1571ac18e0f88d4ab245f0b60fa31ff1b12cbae2b11bd25d207f865e8ae78a", [:mix], [{:erlex, ">= 0.2.7", [hex: :erlex, repo: "hexpm", optional: false]}], "hexpm", "b0fb08bb8107c750db5c0b324fa2df5ceaa0f9307690ee3c1f6ba5b9eb5d35c3"}, "earmark": {:hex, :earmark, "1.4.47", "7e7596b84fe4ebeb8751e14cbaeaf4d7a0237708f2ce43630cfd9065551f94ca", [:mix], [], "hexpm", "3e96bebea2c2d95f3b346a7ff22285bc68a99fbabdad9b655aa9c6be06c698f8"}, - "earmark_parser": {:hex, :earmark_parser, "1.4.41", "ab34711c9dc6212dda44fcd20ecb87ac3f3fce6f0ca2f28d4a00e4154f8cd599", [:mix], [], "hexpm", "a81a04c7e34b6617c2792e291b5a2e57ab316365c2644ddc553bb9ed863ebefa"}, + "earmark_parser": {:hex, :earmark_parser, "1.4.42", "f23d856f41919f17cd06a493923a722d87a2d684f143a1e663c04a2b93100682", [:mix], [], "hexpm", "6915b6ca369b5f7346636a2f41c6a6d78b5af419d61a611079189233358b8b8b"}, "ecto": {:hex, :ecto, "3.12.5", "4a312960ce612e17337e7cefcf9be45b95a3be6b36b6f94dfb3d8c361d631866", [:mix], [{:decimal, "~> 2.0", [hex: :decimal, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: true]}, {:telemetry, "~> 0.4 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "6eb18e80bef8bb57e17f5a7f068a1719fbda384d40fc37acb8eb8aeca493b6ea"}, "ecto_sql": {:hex, :ecto_sql, "3.12.1", "c0d0d60e85d9ff4631f12bafa454bc392ce8b9ec83531a412c12a0d415a3a4d0", [:mix], [{:db_connection, "~> 2.4.1 or ~> 2.5", [hex: :db_connection, repo: "hexpm", optional: false]}, {:ecto, "~> 3.12", [hex: :ecto, repo: "hexpm", optional: false]}, {:myxql, "~> 0.7", [hex: :myxql, repo: "hexpm", optional: true]}, {:postgrex, "~> 0.19 or ~> 1.0", [hex: :postgrex, repo: "hexpm", optional: true]}, {:tds, "~> 2.1.1 or ~> 2.2", [hex: :tds, repo: "hexpm", optional: true]}, {:telemetry, "~> 0.4.0 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "aff5b958a899762c5f09028c847569f7dfb9cc9d63bdb8133bff8a5546de6bf5"}, "elixir_make": {:hex, :elixir_make, "0.9.0", "6484b3cd8c0cee58f09f05ecaf1a140a8c97670671a6a0e7ab4dc326c3109726", [:mix], [], "hexpm", "db23d4fd8b757462ad02f8aa73431a426fe6671c80b200d9710caf3d1dd0ffdb"}, "erlex": {:hex, :erlex, "0.2.7", "810e8725f96ab74d17aac676e748627a07bc87eb950d2b83acd29dc047a30595", [:mix], [], "hexpm", "3ed95f79d1a844c3f6bf0cea61e0d5612a42ce56da9c03f01df538685365efb0"}, - "ex_doc": {:hex, :ex_doc, "0.35.1", "de804c590d3df2d9d5b8aec77d758b00c814b356119b3d4455e4b8a8687aecaf", [:mix], [{:earmark_parser, "~> 1.4.39", [hex: :earmark_parser, repo: "hexpm", optional: false]}, {:makeup_c, ">= 0.1.0", [hex: :makeup_c, repo: "hexpm", optional: true]}, {:makeup_elixir, "~> 0.14 or ~> 1.0", [hex: :makeup_elixir, repo: "hexpm", optional: false]}, {:makeup_erlang, "~> 0.1 or ~> 1.0", [hex: :makeup_erlang, repo: "hexpm", optional: false]}, {:makeup_html, ">= 0.1.0", [hex: :makeup_html, repo: "hexpm", optional: true]}], "hexpm", "2121c6402c8d44b05622677b761371a759143b958c6c19f6558ff64d0aed40df"}, + "ex_doc": {:hex, :ex_doc, "0.36.1", "4197d034f93e0b89ec79fac56e226107824adcce8d2dd0a26f5ed3a95efc36b1", [:mix], [{:earmark_parser, "~> 1.4.42", [hex: :earmark_parser, repo: "hexpm", optional: false]}, {:makeup_c, ">= 0.1.0", [hex: :makeup_c, repo: "hexpm", optional: true]}, {:makeup_elixir, "~> 0.14 or ~> 1.0", [hex: :makeup_elixir, repo: "hexpm", optional: false]}, {:makeup_erlang, "~> 0.1 or ~> 1.0", [hex: :makeup_erlang, repo: "hexpm", optional: false]}, {:makeup_html, ">= 0.1.0", [hex: :makeup_html, repo: "hexpm", optional: true]}], "hexpm", "d7d26a7cf965dacadcd48f9fa7b5953d7d0cfa3b44fa7a65514427da44eafd89"}, "ex_machina": {:hex, :ex_machina, "2.7.0", "b792cc3127fd0680fecdb6299235b4727a4944a09ff0fa904cc639272cd92dc7", [:mix], [{:ecto, "~> 2.2 or ~> 3.0", [hex: :ecto, repo: "hexpm", optional: true]}, {:ecto_sql, "~> 3.0", [hex: :ecto_sql, repo: "hexpm", optional: true]}], "hexpm", "419aa7a39bde11894c87a615c4ecaa52d8f107bbdd81d810465186f783245bf8"}, "explorer": {:hex, :explorer, "0.8.3", "cf8440fbdc280630d70b82b72d519fd010fb8b5e82943e7157b42ec0f3c57dff", [:mix], [{:adbc, "~> 0.1", [hex: :adbc, repo: "hexpm", optional: true]}, {:aws_signature, "~> 0.3", [hex: :aws_signature, repo: "hexpm", optional: false]}, {:castore, "~> 1.0", [hex: :castore, repo: "hexpm", optional: true]}, {:fss, "~> 0.1", [hex: :fss, repo: "hexpm", optional: false]}, {:nx, "~> 0.4", [hex: :nx, repo: "hexpm", optional: true]}, {:rustler, "~> 0.32.0", [hex: :rustler, repo: "hexpm", optional: true]}, {:rustler_precompiled, "~> 0.7", [hex: :rustler_precompiled, repo: "hexpm", optional: false]}, {:table, "~> 0.1.2", [hex: :table, repo: "hexpm", optional: false]}, {:table_rex, "~> 3.1.1 or ~> 4.0.0", [hex: :table_rex, repo: "hexpm", optional: false]}], "hexpm", "b3629b020cf914289c6c2b4ffccb7f1560b494369df0925916909fff90733349"}, "expo": {:hex, :expo, "1.1.0", "f7b9ed7fb5745ebe1eeedf3d6f29226c5dd52897ac67c0f8af62a07e661e5c75", [:mix], [], "hexpm", "fbadf93f4700fb44c331362177bdca9eeb8097e8b0ef525c9cc501cb9917c960"}, @@ -37,7 +37,7 @@ "gettext": {:hex, :gettext, "0.26.2", "5978aa7b21fada6deabf1f6341ddba50bc69c999e812211903b169799208f2a8", [:mix], [{:expo, "~> 0.5.1 or ~> 1.0", [hex: :expo, repo: "hexpm", optional: false]}], "hexpm", "aa978504bcf76511efdc22d580ba08e2279caab1066b76bb9aa81c4a1e0a32a5"}, "git_hooks": {:hex, :git_hooks, "0.8.0", "3a5715213b48c5d2d5a059bce3707c2312f2ead81803ce936c9211da2afc969e", [:mix], [{:recase, "~> 0.8.0", [hex: :recase, repo: "hexpm", optional: false]}], "hexpm", "8c39fa263d903e7e929b1397cdb5551c06b3deae6d47549c5a96d208cab210b4"}, "hackney": {:hex, :hackney, "1.20.1", "8d97aec62ddddd757d128bfd1df6c5861093419f8f7a4223823537bad5d064e2", [:rebar3], [{:certifi, "~> 2.12.0", [hex: :certifi, repo: "hexpm", optional: false]}, {:idna, "~> 6.1.0", [hex: :idna, repo: "hexpm", optional: false]}, {:metrics, "~> 1.0.0", [hex: :metrics, repo: "hexpm", optional: false]}, {:mimerl, "~> 1.1", [hex: :mimerl, repo: "hexpm", optional: false]}, {:parse_trans, "3.4.1", [hex: :parse_trans, repo: "hexpm", optional: false]}, {:ssl_verify_fun, "~> 1.1.0", [hex: :ssl_verify_fun, repo: "hexpm", optional: false]}, {:unicode_util_compat, "~> 0.7.0", [hex: :unicode_util_compat, repo: "hexpm", optional: false]}], "hexpm", "fe9094e5f1a2a2c0a7d10918fee36bfec0ec2a979994cff8cfe8058cd9af38e3"}, - "hpax": {:hex, :hpax, "1.0.1", "c857057f89e8bd71d97d9042e009df2a42705d6d690d54eca84c8b29af0787b0", [:mix], [], "hexpm", "4e2d5a4f76ae1e3048f35ae7adb1641c36265510a2d4638157fbcb53dda38445"}, + "hpax": {:hex, :hpax, "1.0.2", "762df951b0c399ff67cc57c3995ec3cf46d696e41f0bba17da0518d94acd4aac", [:mix], [], "hexpm", "2f09b4c1074e0abd846747329eaa26d535be0eb3d189fa69d812bfb8bfefd32f"}, "idna": {:hex, :idna, "6.1.1", "8a63070e9f7d0c62eb9d9fcb360a7de382448200fbbd1b106cc96d3d8099df8d", [:rebar3], [{:unicode_util_compat, "~> 0.7.0", [hex: :unicode_util_compat, repo: "hexpm", optional: false]}], "hexpm", "92376eb7894412ed19ac475e4a86f7b413c1b9fbb5bd16dccd57934157944cea"}, "jason": {:hex, :jason, "1.4.4", "b9226785a9aa77b6857ca22832cffa5d5011a667207eb2a0ad56adb5db443b8a", [:mix], [{:decimal, "~> 1.0 or ~> 2.0", [hex: :decimal, repo: "hexpm", optional: true]}], "hexpm", "c5eb0cab91f094599f94d55bc63409236a8ec69a21a67814529e8d5f6cc90b3b"}, "lucide_icons": {:hex, :lucide_icons, "1.1.2", "95b9eb48768a9c6df5efa6b8e3a8969f99fc2da9654adcfc32da4e946e6e6420", [:mix], [{:phoenix_html, "~> 4.0", [hex: :phoenix_html, repo: "hexpm", optional: false]}, {:phoenix_live_view, "~> 0.20", [hex: :phoenix_live_view, repo: "hexpm", optional: false]}], "hexpm", "fd0cc200ea94c0eb726804b49cb1660450c628ebe57967f928877dc58fe9d325"}, @@ -58,7 +58,7 @@ "parse_trans": {:hex, :parse_trans, "3.4.1", "6e6aa8167cb44cc8f39441d05193be6e6f4e7c2946cb2759f015f8c56b76e5ff", [:rebar3], [], "hexpm", "620a406ce75dada827b82e453c19cf06776be266f5a67cff34e1ef2cbb60e49a"}, "phoenix": {:hex, :phoenix, "1.7.18", "5310c21443514be44ed93c422e15870aef254cf1b3619e4f91538e7529d2b2e4", [:mix], [{:castore, ">= 0.0.0", [hex: :castore, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: true]}, {:phoenix_pubsub, "~> 2.1", [hex: :phoenix_pubsub, repo: "hexpm", optional: false]}, {:phoenix_template, "~> 1.0", [hex: :phoenix_template, repo: "hexpm", optional: false]}, {:phoenix_view, "~> 2.0", [hex: :phoenix_view, repo: "hexpm", optional: true]}, {:plug, "~> 1.14", [hex: :plug, repo: "hexpm", optional: false]}, {:plug_cowboy, "~> 2.7", [hex: :plug_cowboy, repo: "hexpm", optional: true]}, {:plug_crypto, "~> 1.2 or ~> 2.0", [hex: :plug_crypto, repo: "hexpm", optional: false]}, {:telemetry, "~> 0.4 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}, {:websock_adapter, "~> 0.5.3", [hex: :websock_adapter, repo: "hexpm", optional: false]}], "hexpm", "1797fcc82108442a66f2c77a643a62980f342bfeb63d6c9a515ab8294870004e"}, "phoenix_ecto": {:hex, :phoenix_ecto, "4.6.3", "f686701b0499a07f2e3b122d84d52ff8a31f5def386e03706c916f6feddf69ef", [:mix], [{:ecto, "~> 3.5", [hex: :ecto, repo: "hexpm", optional: false]}, {:phoenix_html, "~> 2.14.2 or ~> 3.0 or ~> 4.1", [hex: :phoenix_html, repo: "hexpm", optional: true]}, {:plug, "~> 1.9", [hex: :plug, repo: "hexpm", optional: false]}, {:postgrex, "~> 0.16 or ~> 1.0", [hex: :postgrex, repo: "hexpm", optional: true]}], "hexpm", "909502956916a657a197f94cc1206d9a65247538de8a5e186f7537c895d95764"}, - "phoenix_html": {:hex, :phoenix_html, "4.1.1", "4c064fd3873d12ebb1388425a8f2a19348cef56e7289e1998e2d2fa758aa982e", [:mix], [], "hexpm", "f2f2df5a72bc9a2f510b21497fd7d2b86d932ec0598f0210fed4114adc546c6f"}, + "phoenix_html": {:hex, :phoenix_html, "4.2.0", "83a4d351b66f472ebcce242e4ae48af1b781866f00ef0eb34c15030d4e2069ac", [:mix], [], "hexpm", "9713b3f238d07043583a94296cc4bbdceacd3b3a6c74667f4df13971e7866ec8"}, "phoenix_html_helpers": {:hex, :phoenix_html_helpers, "1.0.1", "7eed85c52eff80a179391036931791ee5d2f713d76a81d0d2c6ebafe1e11e5ec", [:mix], [{:phoenix_html, "~> 4.0", [hex: :phoenix_html, repo: "hexpm", optional: false]}, {:plug, "~> 1.5", [hex: :plug, repo: "hexpm", optional: true]}], "hexpm", "cffd2385d1fa4f78b04432df69ab8da63dc5cf63e07b713a4dcf36a3740e3090"}, "phoenix_live_reload": {:hex, :phoenix_live_reload, "1.5.3", "f2161c207fda0e4fb55165f650f7f8db23f02b29e3bff00ff7ef161d6ac1f09d", [:mix], [{:file_system, "~> 0.3 or ~> 1.0", [hex: :file_system, repo: "hexpm", optional: false]}, {:phoenix, "~> 1.4", [hex: :phoenix, repo: "hexpm", optional: false]}], "hexpm", "b4ec9cd73cb01ff1bd1cac92e045d13e7030330b74164297d1aee3907b54803c"}, "phoenix_live_view": {:hex, :phoenix_live_view, "0.20.17", "f396bbdaf4ba227b82251eb75ac0afa6b3da5e509bc0d030206374237dfc9450", [:mix], [{:floki, "~> 0.36", [hex: :floki, repo: "hexpm", optional: true]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: true]}, {:phoenix, "~> 1.6.15 or ~> 1.7.0", [hex: :phoenix, repo: "hexpm", optional: false]}, {:phoenix_html, "~> 3.3 or ~> 4.0", [hex: :phoenix_html, repo: "hexpm", optional: false]}, {:phoenix_template, "~> 1.0", [hex: :phoenix_template, repo: "hexpm", optional: false]}, {:phoenix_view, "~> 2.0", [hex: :phoenix_view, repo: "hexpm", optional: true]}, {:plug, "~> 1.15", [hex: :plug, repo: "hexpm", optional: false]}, {:telemetry, "~> 0.4.2 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "a61d741ffb78c85fdbca0de084da6a48f8ceb5261a79165b5a0b59e5f65ce98b"}, From dedb47c3ce391c0257e96e4cdf8ccdaaba800e8c Mon Sep 17 00:00:00 2001 From: juanzeen Date: Sat, 18 Jan 2025 16:56:08 -0300 Subject: [PATCH 2/3] bug: liveview not loads --- mix.lock | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mix.lock b/mix.lock index 24f0f286..332599ae 100644 --- a/mix.lock +++ b/mix.lock @@ -2,8 +2,8 @@ "absinthe": {:hex, :absinthe, "1.7.8", "43443d12ad2b4fcce60e257ac71caf3081f3d5c4ddd5eac63a02628bcaf5b556", [:mix], [{:dataloader, "~> 1.0.0 or ~> 2.0", [hex: :dataloader, repo: "hexpm", optional: true]}, {:decimal, "~> 1.0 or ~> 2.0", [hex: :decimal, repo: "hexpm", optional: true]}, {:nimble_parsec, "~> 1.2.2 or ~> 1.3", [hex: :nimble_parsec, repo: "hexpm", optional: false]}, {:opentelemetry_process_propagator, "~> 0.2.1 or ~> 0.3", [hex: :opentelemetry_process_propagator, repo: "hexpm", optional: true]}, {:telemetry, "~> 0.4 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "c4085df201892a498384f997649aedb37a4ce8a726c170d5b5617ed3bf45d40b"}, "absinthe_phoenix": {:hex, :absinthe_phoenix, "2.0.3", "74e0862f280424b7bc290f6f69e133268bce0b4e7db0218c7e129c5c2b1d3fd4", [:mix], [{:absinthe, "~> 1.5", [hex: :absinthe, repo: "hexpm", optional: false]}, {:absinthe_plug, "~> 1.5", [hex: :absinthe_plug, repo: "hexpm", optional: false]}, {:decimal, "~> 1.0 or ~> 2.0", [hex: :decimal, repo: "hexpm", optional: false]}, {:phoenix, "~> 1.5", [hex: :phoenix, repo: "hexpm", optional: false]}, {:phoenix_html, "~> 2.13 or ~> 3.0 or ~> 4.0", [hex: :phoenix_html, repo: "hexpm", optional: true]}, {:phoenix_pubsub, "~> 2.0", [hex: :phoenix_pubsub, repo: "hexpm", optional: false]}], "hexpm", "caffaea03c17ea7419fe07e4bc04c2399c47f0d8736900623dbf4749a826fd2c"}, "absinthe_plug": {:hex, :absinthe_plug, "1.5.8", "38d230641ba9dca8f72f1fed2dfc8abd53b3907d1996363da32434ab6ee5d6ab", [:mix], [{:absinthe, "~> 1.5", [hex: :absinthe, repo: "hexpm", optional: false]}, {:plug, "~> 1.4", [hex: :plug, repo: "hexpm", optional: false]}], "hexpm", "bbb04176647b735828861e7b2705465e53e2cf54ccf5a73ddd1ebd855f996e5a"}, - "aws_signature": {:hex, :aws_signature, "0.3.3", "5844bee0d3cc42eefd21d236bbfaa8aa9b16e2f2b7ee79edaecb321db3fb6adf", [:rebar3], [], "hexpm", "87e8f42b8e49002aa8d0350a71d13d69ea91b9afb4ca9b526ae36db1d585c924"}, - "bandit": {:hex, :bandit, "1.6.5", "24096d6232e0d050096acec96a0a382c44de026f9b591b883ed45497e1ef4916", [:mix], [{:hpax, "~> 1.0", [hex: :hpax, repo: "hexpm", optional: false]}, {:plug, "~> 1.14", [hex: :plug, repo: "hexpm", optional: false]}, {:telemetry, "~> 0.4 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}, {:thousand_island, "~> 1.0", [hex: :thousand_island, repo: "hexpm", optional: false]}, {:websock, "~> 0.5", [hex: :websock, repo: "hexpm", optional: false]}], "hexpm", "b6b91f630699c8b41f3f0184bd4f60b281e19a336ad9dc1a0da90637b6688332"}, + "aws_signature": {:hex, :aws_signature, "0.3.2", "adf33bc4af00b2089b7708bf20e3246f09c639a905a619b3689f0a0a22c3ef8f", [:rebar3], [], "hexpm", "b0daf61feb4250a8ab0adea60db3e336af732ff71dd3fb22e45ae3dcbd071e44"}, + "bandit": {:hex, :bandit, "1.6.2", "a5fa4cfbae9baaf196269a88533e18eef9e7c53bea07b03f6bc2c6d5bf87b1ce", [:mix], [{:hpax, "~> 1.0", [hex: :hpax, repo: "hexpm", optional: false]}, {:plug, "~> 1.14", [hex: :plug, repo: "hexpm", optional: false]}, {:telemetry, "~> 0.4 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}, {:thousand_island, "~> 1.0", [hex: :thousand_island, repo: "hexpm", optional: false]}, {:websock, "~> 0.5", [hex: :websock, repo: "hexpm", optional: false]}], "hexpm", "4563b81ec94f25448ac02a8853453198cf7a63abac6202dbd4bda2c7f1a71eed"}, "bcrypt_elixir": {:hex, :bcrypt_elixir, "3.2.0", "feab711974beba4cb348147170346fe097eea2e840db4e012a145e180ed4ab75", [:make, :mix], [{:comeonin, "~> 5.3", [hex: :comeonin, repo: "hexpm", optional: false]}, {:elixir_make, "~> 0.6", [hex: :elixir_make, repo: "hexpm", optional: false]}], "hexpm", "563e92a6c77d667b19c5f4ba17ab6d440a085696bdf4c68b9b0f5b30bc5422b8"}, "blankable": {:hex, :blankable, "1.0.0", "89ab564a63c55af117e115144e3b3b57eb53ad43ba0f15553357eb283e0ed425", [:mix], [], "hexpm", "7cf11aac0e44f4eedbee0c15c1d37d94c090cb72a8d9fddf9f7aec30f9278899"}, "brcpfcnpj": {:hex, :brcpfcnpj, "1.0.0", "23319e5f7e4da533f36dc5b7793e7c505fd80e43b0fa720c7a459daffbaa5034", [:mix], [{:ecto, "~> 3.0", [hex: :ecto, repo: "hexpm", optional: true]}], "hexpm", "8e6f38910896ea4f39b75c37855a702cebd495c2a74d88cdfd5c3c715c871510"}, From 27d29bd23b267b55db8bfd177380e372d794e5f3 Mon Sep 17 00:00:00 2001 From: Zoey de Souza Pessanha Date: Sun, 19 Jan 2025 15:47:16 -0300 Subject: [PATCH 3/3] format --- lib/pescarte/blog/blog.ex | 2 +- .../live/blog/noticias_live/show.ex | 17 ++++++++--------- lib/pescarte_web/router.ex | 1 - .../templates/noticias_html/show.html.heex | 14 +++++++------- 4 files changed, 16 insertions(+), 18 deletions(-) diff --git a/lib/pescarte/blog/blog.ex b/lib/pescarte/blog/blog.ex index 255d291d..f636c231 100644 --- a/lib/pescarte/blog/blog.ex +++ b/lib/pescarte/blog/blog.ex @@ -16,7 +16,7 @@ defmodule Pescarte.Blog do optional(:page_size) => pos_integer() } - @spec list_posts_with_filter(filters()) :: list(Post.t()) | {:error, term()} + @spec list_posts_with_filter(filters()) :: list(Post.t()) | {:error, term()} def list_posts_with_filter(filters \\ %{}) do Post |> apply_post_search_filter(filters) diff --git a/lib/pescarte_web/live/blog/noticias_live/show.ex b/lib/pescarte_web/live/blog/noticias_live/show.ex index a974344c..75c23b88 100644 --- a/lib/pescarte_web/live/blog/noticias_live/show.ex +++ b/lib/pescarte_web/live/blog/noticias_live/show.ex @@ -14,7 +14,6 @@ defmodule PescarteWeb.Blog.NoticiasLive.Show do ]) @impl true def mount(_params, _session, socket) do - [main_new | news] = Blog.list_posts_with_filter() socket = @@ -84,7 +83,7 @@ defmodule PescarteWeb.Blog.NoticiasLive.Show do ~H"""
<.flash :if={@error_message} id="login-error" kind={:error}> - <%= @error_message %> + {@error_message}