neiam
/cartosnap_ex
public · Issues · Pulls · Labels · Forks · Compare · Actions success · Badges · Packages
⭐
Log in to mark this repository.
mmm
a44f641 · gmorell · 2024-01-03 21:23
Files changed
modified
lib/cartosnap_app_web/live/photo_live/show.html.heex
+4
−4
@@ -1,11 +1,11 @@
| 1 | −<div class="flex justify-center" style="height: 85vh;"> | |
| 1 | +<div class="flex justify-center"> | |
| 2 | 2 | <div class="card card-compact shadow-xl glass overflow-scroll"> |
| 3 | 3 | <figure> |
| 4 | 4 | <%= case @mode do %> |
| 5 | 5 | <% :image -> %> |
| 6 | − <img src={"#{@photo_root}#{@photo.p.url_original}"} alt="Shoes" class="object-contain" style="height: 78vh" /> | |
| 6 | + <img src={"#{@photo_root}#{@photo.p.url_original}"} alt="Shoes" class="object-contain" style="height: 84vh" /> | |
| 7 | 7 | <% :details -> %> |
| 8 | − <table class="table w-full"> | |
| 8 | + <table class="table w-full bg-white/75 text-black"> | |
| 9 | 9 | <!-- head --> |
| 10 | 10 | <tbody> |
| 11 | 11 | </tbody> |
@@ -47,7 +47,7 @@
| 47 | 47 | </tr> |
| 48 | 48 | </table> |
| 49 | 49 | <% :exif -> %> |
| 50 | − <table class="table table-zebra table-auto overflow-scroll w-full max-h-32"> | |
| 50 | + <table class="table table-zebra table-auto overflow-scroll w-full bg-white/75" style="height: 84vh"> | |
| 51 | 51 | <!-- head --> |
| 52 | 52 | <thead> |
| 53 | 53 | <tr> |
modified
lib/cartosnap_app_web/live/trip_live/index.html.heex
+7
−44
@@ -27,55 +27,18 @@
| 27 | 27 | <h2 class="card-title font-bold"><%= trip.name %></h2> |
| 28 | 28 | <p><%= trip.date_start %> TO <%= trip.date_end %></p> |
| 29 | 29 | <div class="card-actions justify-end"> |
| 30 | + <.link patch={~p"/trips/#{trip.id}/edit"}> | |
| 31 | + <button class="btn btn-secondary btn-sm">Edit</button> | |
| 32 | + </.link> | |
| 33 | + <.link navigate={~p"/trips/#{trip.id}"}> | |
| 34 | + <button class="btn btn-secondary btn-sm">Show</button> | |
| 35 | + </.link> | |
| 30 | 36 | <.link navigate={~p"/trips/#{trip.id}"}> |
| 31 | − <button class="btn btn-primary">Visit</button> | |
| 37 | + <button class="btn btn-primary btn-sm">Visit</button> | |
| 32 | 38 | </.link> |
| 33 | 39 | </div> |
| 34 | 40 | </div> |
| 35 | 41 | </div> |
| 36 | 42 | <% end %> |
| 37 | 43 | </div> |
| 38 | −<table> | |
| 39 | − <thead> | |
| 40 | − <tr> | |
| 41 | − <th>Name</th> | |
| 42 | − <th>Date start</th> | |
| 43 | − <th>Date end</th> | |
| 44 | − <th>Meta</th> | |
| 45 | − <th>Geo</th> | |
| 46 | − | |
| 47 | − <th></th> | |
| 48 | − </tr> | |
| 49 | − </thead> | |
| 50 | − <tbody id="photo_trips"> | |
| 51 | − <%= for trip <- @photo_trips do %> | |
| 52 | − <tr id={"trip-#{trip.id}"}> | |
| 53 | − <td><%= trip.name %></td> | |
| 54 | − <td><%= trip.date_start %></td> | |
| 55 | − <td><%= trip.date_end %></td> | |
| 56 | − <td><%= trip.meta %></td> | |
| 57 | − <td><%= trip.geo %></td> | |
| 58 | − | |
| 59 | − <td> | |
| 60 | − <span> | |
| 61 | − <.link navigate={~p"/trips/#{trip.id}"}> | |
| 62 | − Show | |
| 63 | − </.link> | |
| 64 | − </span> | |
| 65 | − <span> | |
| 66 | − <.link patch={~p"/trips/#{trip.id}/edit"}>Edit</.link> | |
| 67 | − </span> | |
| 68 | − <span> | |
| 69 | − <.link | |
| 70 | − phx-click={JS.push("delete", value: %{id: trip.id})} | |
| 71 | − data-confirm="Are you sure?" | |
| 72 | − > | |
| 73 | − Delete | |
| 74 | − </.link> | |
| 75 | − </span> | |
| 76 | − </td> | |
| 77 | − </tr> | |
| 78 | − <% end %> | |
| 79 | − </tbody> | |
| 80 | −</table> | |
| 81 | 44 | </div> |
modified
mix.exs
+8
−5
@@ -17,7 +17,6 @@ defmodule CartosnapApp.MixProject do
| 17 | 17 | version: "0.1.0", |
| 18 | 18 | elixir: "~> 1.12", |
| 19 | 19 | elixirc_paths: elixirc_paths(Mix.env()), |
| 20 | − compilers: [:gettext] ++ Mix.compilers(), | |
| 21 | 20 | start_permanent: Mix.env() == :prod, |
| 22 | 21 | aliases: aliases(), |
| 23 | 22 | deps: deps() |
@@ -44,15 +43,17 @@ defmodule CartosnapApp.MixProject do
| 44 | 43 | defp deps do |
| 45 | 44 | [ |
| 46 | 45 | {:bcrypt_elixir, "~> 3.0"}, |
| 47 | − {:phoenix, "~> 1.7.0-rc.0"}, | |
| 46 | + {:phoenix, "~> 1.7"}, | |
| 48 | 47 | {:phoenix_ecto, "~> 4.4"}, |
| 49 | 48 | {:ecto_sql, "~> 3.6"}, |
| 50 | 49 | {:postgrex, ">= 0.0.0"}, |
| 51 | − {:phoenix_html, "~> 3.0"}, | |
| 50 | + {:phoenix_html, "~> 3.3"}, | |
| 51 | + {:phoenix_view, "~> 2.0"}, | |
| 52 | 52 | {:phoenix_live_reload, "~> 1.2", only: :dev}, |
| 53 | − {:phoenix_live_view, "~> 0.19"}, | |
| 53 | + {:phoenix_live_view, "~> 0.20"}, | |
| 54 | 54 | {:floki, ">= 0.30.0", only: :test}, |
| 55 | − {:phoenix_live_dashboard, "~> 0.8"}, | |
| 55 | + {:phoenix_live_dashboard, "~> 0.8.3"}, | |
| 56 | +# {:phoenix_live_session, "~> 0.1"}, | |
| 56 | 57 | {:esbuild, "~> 0.3", runtime: Mix.env() == :dev}, |
| 57 | 58 | {:swoosh, "~> 1.6"}, |
| 58 | 59 | {:telemetry_metrics, "~> 0.6"}, |
@@ -63,6 +64,8 @@ defmodule CartosnapApp.MixProject do
| 63 | 64 | {:uuid, "~> 1.1" }, |
| 64 | 65 | {:timex, "~> 3.7"}, |
| 65 | 66 | {:ssl_verify_fun, "~> 1.1", manager: :rebar3, override: true}, |
| 67 | + {:dns_cluster, "~> 0.1.1"}, | |
| 68 | + {:finch, "~> 0.13"}, | |
| 66 | 69 | |
| 67 | 70 | # ui |
| 68 | 71 | {:tailwind, "~> 0.2", runtime: Mix.env() == :dev}, |
Parents: 4d051ca