Skip to content

Commit 5807aa5

Browse files
committed
Bump mix deps
1 parent 8ac8f52 commit 5807aa5

File tree

13 files changed

+94
-98
lines changed

13 files changed

+94
-98
lines changed

assets/css/app.css

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,2 @@
1-
@import "tailwindcss/base";
2-
@import "tailwindcss/components";
3-
@import "tailwindcss/utilities";
4-
1+
@import "tailwindcss";
52
/* This file is for your main application CSS */

config/config.exs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,21 +46,20 @@ config :esbuild,
4646
version: "0.17.11",
4747
default: [
4848
args:
49-
~w(js/app.js --bundle --target=es2017 --outdir=../priv/static/assets --external:/fonts/* --external:/images/*),
49+
~w(js/app.js --bundle --target=es2022 --outdir=../priv/static/assets --external:/fonts/* --external:/images/*),
5050
cd: Path.expand("../assets", __DIR__),
5151
env: %{"NODE_PATH" => Path.expand("../deps", __DIR__)}
5252
]
5353

5454
# Configure tailwind (the version is required)
5555
config :tailwind,
56-
version: "3.2.7",
56+
version: "4.0.9",
5757
default: [
5858
args: ~w(
59-
--config=tailwind.config.js
60-
--input=css/app.css
61-
--output=../priv/static/assets/app.css
59+
--input=assets/css/app.css
60+
--output=priv/static/assets/css/app.css
6261
),
63-
cd: Path.expand("../assets", __DIR__)
62+
cd: Path.expand("..", __DIR__)
6463
]
6564

6665
# Configures Elixir's Logger

lib/plexus_web/components/core_components.ex

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ defmodule PlexusWeb.CoreComponents do
8181
</button>
8282
</div>
8383
<div id={"#{@id}-content"}>
84-
<%= render_slot(@inner_block) %>
84+
{render_slot(@inner_block)}
8585
</div>
8686
</.focus_wrap>
8787
</div>
@@ -126,9 +126,9 @@ defmodule PlexusWeb.CoreComponents do
126126
<.icon :if={@kind == :info} name="hero-information-circle-mini" class="h-4 w-4" />
127127
<.icon :if={@kind == :success} name="hero-information-circle-mini" class="h-4 w-4" />
128128
<.icon :if={@kind == :error} name="hero-exclamation-circle-mini" class="h-4 w-4" />
129-
<%= @title %>
129+
{@title}
130130
</p>
131-
<p class="mt-2 text-sm leading-5"><%= msg %></p>
131+
<p class="mt-2 text-sm leading-5">{msg}</p>
132132
<button type="button" class="group absolute top-1 right-1 p-2" aria-label={gettext("close")}>
133133
<.icon name="hero-x-mark-solid" class="h-5 w-5 opacity-40 group-hover:opacity-70" />
134134
</button>
@@ -202,9 +202,9 @@ defmodule PlexusWeb.CoreComponents do
202202
~H"""
203203
<.form :let={f} for={@for} as={@as} {@rest}>
204204
<div class="mt-10 space-y-8">
205-
<%= render_slot(@inner_block, f) %>
205+
{render_slot(@inner_block, f)}
206206
<div :for={action <- @actions} class="mt-2 flex items-center justify-between gap-6">
207-
<%= render_slot(action, f) %>
207+
{render_slot(action, f)}
208208
</div>
209209
</div>
210210
</.form>
@@ -236,7 +236,7 @@ defmodule PlexusWeb.CoreComponents do
236236
]}
237237
{@rest}
238238
>
239-
<%= render_slot(@inner_block) %>
239+
{render_slot(@inner_block)}
240240
</button>
241241
"""
242242
end
@@ -317,36 +317,36 @@ defmodule PlexusWeb.CoreComponents do
317317
class="rounded border-zinc-300 text-zinc-900 focus:ring-0"
318318
{@rest}
319319
/>
320-
<%= @label %>
320+
{@label}
321321
</label>
322-
<.error :for={msg <- @errors}><%= msg %></.error>
322+
<.error :for={msg <- @errors}>{msg}</.error>
323323
</div>
324324
"""
325325
end
326326

327327
def input(%{type: "select"} = assigns) do
328328
~H"""
329329
<div phx-feedback-for={@name}>
330-
<.label for={@id}><%= @label %></.label>
330+
<.label for={@id}>{@label}</.label>
331331
<select
332332
id={@id}
333333
name={@name}
334334
class="mt-2 block w-full rounded-md border border-gray-300 bg-white shadow-sm focus:border-zinc-400 focus:ring-0 sm:text-sm"
335335
multiple={@multiple}
336336
{@rest}
337337
>
338-
<option :if={@prompt} value=""><%= @prompt %></option>
339-
<%= Phoenix.HTML.Form.options_for_select(@options, @value) %>
338+
<option :if={@prompt} value="">{@prompt}</option>
339+
{Phoenix.HTML.Form.options_for_select(@options, @value)}
340340
</select>
341-
<.error :for={msg <- @errors}><%= msg %></.error>
341+
<.error :for={msg <- @errors}>{msg}</.error>
342342
</div>
343343
"""
344344
end
345345

346346
def input(%{type: "textarea"} = assigns) do
347347
~H"""
348348
<div phx-feedback-for={@name}>
349-
<.label for={@id}><%= @label %></.label>
349+
<.label for={@id}>{@label}</.label>
350350
<textarea
351351
id={@id}
352352
name={@name}
@@ -359,7 +359,7 @@ defmodule PlexusWeb.CoreComponents do
359359
]}
360360
{@rest}
361361
><%= Phoenix.HTML.Form.normalize_value("textarea", @value) %></textarea>
362-
<.error :for={msg <- @errors}><%= msg %></.error>
362+
<.error :for={msg <- @errors}>{msg}</.error>
363363
</div>
364364
"""
365365
end
@@ -368,7 +368,7 @@ defmodule PlexusWeb.CoreComponents do
368368
def input(assigns) do
369369
~H"""
370370
<div phx-feedback-for={@name}>
371-
<.label for={@id}><%= @label %></.label>
371+
<.label for={@id}>{@label}</.label>
372372
<input
373373
type={@type}
374374
name={@name}
@@ -382,7 +382,7 @@ defmodule PlexusWeb.CoreComponents do
382382
]}
383383
{@rest}
384384
/>
385-
<.error :for={msg <- @errors}><%= msg %></.error>
385+
<.error :for={msg <- @errors}>{msg}</.error>
386386
</div>
387387
"""
388388
end
@@ -396,7 +396,7 @@ defmodule PlexusWeb.CoreComponents do
396396
def label(assigns) do
397397
~H"""
398398
<label for={@for} class="block text-sm font-semibold leading-6 text-zinc-800">
399-
<%= render_slot(@inner_block) %>
399+
{render_slot(@inner_block)}
400400
</label>
401401
"""
402402
end
@@ -410,7 +410,7 @@ defmodule PlexusWeb.CoreComponents do
410410
~H"""
411411
<p class="mt-3 flex gap-3 text-sm leading-6 text-rose-600 phx-no-feedback:hidden">
412412
<.icon name="hero-exclamation-circle-mini" class="mt-0.5 h-5 w-5 flex-none" />
413-
<%= render_slot(@inner_block) %>
413+
{render_slot(@inner_block)}
414414
</p>
415415
"""
416416
end
@@ -429,13 +429,13 @@ defmodule PlexusWeb.CoreComponents do
429429
<header class={[@actions != [] && "flex items-center justify-between gap-6", @class]}>
430430
<div>
431431
<h1 class="text-lg font-semibold leading-8 text-zinc-800">
432-
<%= render_slot(@inner_block) %>
432+
{render_slot(@inner_block)}
433433
</h1>
434434
<p :if={@subtitle != []} class="mt-2 text-sm leading-6 text-zinc-600">
435-
<%= render_slot(@subtitle) %>
435+
{render_slot(@subtitle)}
436436
</p>
437437
</div>
438-
<div class="flex-none"><%= render_slot(@actions) %></div>
438+
<div class="flex-none">{render_slot(@actions)}</div>
439439
</header>
440440
"""
441441
end
@@ -479,9 +479,9 @@ defmodule PlexusWeb.CoreComponents do
479479
<table class="w-[40rem] mt-11 sm:w-full">
480480
<thead class="text-sm text-left leading-6 text-zinc-500">
481481
<tr>
482-
<th :for={col <- @col} class="p-0 pb-4 pr-6 font-normal"><%= col[:label] %></th>
482+
<th :for={col <- @col} class="p-0 pb-4 pr-6 font-normal">{col[:label]}</th>
483483
<th :if={@action != []} class="relative p-0 pb-4">
484-
<span class="sr-only"><%= gettext("Actions") %></span>
484+
<span class="sr-only">{gettext("Actions")}</span>
485485
</th>
486486
</tr>
487487
</thead>
@@ -504,7 +504,7 @@ defmodule PlexusWeb.CoreComponents do
504504
<div class="block py-4 pr-6">
505505
<span class="absolute -inset-y-px right-0 -left-4 group-hover:bg-zinc-50 sm:rounded-l-xl" />
506506
<span class={["relative", i == 0 && "font-semibold text-zinc-900"]}>
507-
<%= render_slot(col, @row_item.(row)) %>
507+
{render_slot(col, @row_item.(row))}
508508
</span>
509509
</div>
510510
</td>
@@ -515,7 +515,7 @@ defmodule PlexusWeb.CoreComponents do
515515
:for={action <- @action}
516516
class="relative ml-4 font-semibold leading-6 text-zinc-900 hover:text-zinc-700"
517517
>
518-
<%= render_slot(action, @row_item.(row)) %>
518+
{render_slot(action, @row_item.(row))}
519519
</span>
520520
</div>
521521
</td>
@@ -545,8 +545,8 @@ defmodule PlexusWeb.CoreComponents do
545545
<div class="mt-14">
546546
<dl class="-my-4 divide-y divide-zinc-100">
547547
<div :for={item <- @item} class="flex gap-4 py-4 text-sm leading-6 sm:gap-8">
548-
<dt class="w-1/4 flex-none text-zinc-500"><%= item.title %></dt>
549-
<dd class="text-zinc-700"><%= render_slot(item) %></dd>
548+
<dt class="w-1/4 flex-none text-zinc-500">{item.title}</dt>
549+
<dd class="text-zinc-700">{render_slot(item)}</dd>
550550
</div>
551551
</dl>
552552
</div>
@@ -571,7 +571,7 @@ defmodule PlexusWeb.CoreComponents do
571571
class="text-sm font-semibold leading-6 text-zinc-900 hover:text-zinc-700"
572572
>
573573
<.icon name="hero-arrow-left-solid" class="h-3 w-3" />
574-
<%= render_slot(@inner_block) %>
574+
{render_slot(@inner_block)}
575575
</.link>
576576
</div>
577577
"""
@@ -623,7 +623,7 @@ defmodule PlexusWeb.CoreComponents do
623623
@level == :silver && "bg-slate-300 text-slate-800",
624624
@level == :gold && "bg-amber-200 text-amber-800"
625625
]}>
626-
<%= @title %>
626+
{@title}
627627
</span>
628628
"""
629629
end
@@ -653,13 +653,13 @@ defmodule PlexusWeb.CoreComponents do
653653
<div class="flex-1 flex items-center justify-between bg-white truncate">
654654
<div class="flex-1 px-4 py-2 text-md leading-5 truncate">
655655
<div class="truncate text-gray-900 font-semibold transition ease-in-out duration-150">
656-
<%= @app.name %>
656+
{@app.name}
657657
</div>
658658
<p :if={@total_counts == 1} class="text-gray-600 truncate">
659-
<%= @total_counts %> Rating
659+
{@total_counts} Rating
660660
</p>
661661
<p :if={@total_counts != 1} class="text-gray-600 truncate">
662-
<%= @total_counts %> Ratings
662+
{@total_counts} Ratings
663663
</p>
664664
</div>
665665
</div>
@@ -675,7 +675,7 @@ defmodule PlexusWeb.CoreComponents do
675675
@native_level == :gold && "bg-amber-200 black"
676676
]}
677677
>
678-
<%= @app.scores.native.numerator %>
678+
{@app.scores.native.numerator}
679679
</div>
680680
<div
681681
title="MicroG Score"
@@ -688,7 +688,7 @@ defmodule PlexusWeb.CoreComponents do
688688
@micro_g_level == :gold && "bg-amber-200 text-black"
689689
]}
690690
>
691-
&mu;<%= @app.scores.micro_g.numerator %>
691+
&mu;{@app.scores.micro_g.numerator}
692692
</div>
693693
</div>
694694
</div>

lib/plexus_web/components/layouts/app.html.heex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@
2424
<main class="bg-slate-100 px-4 py-20 sm:px-6 lg:px-8">
2525
<div class="max-w-6xl mx-auto px-4 sm:px-6 lg:px-8">
2626
<.flash_group flash={@flash} />
27-
<%= @inner_content %>
27+
{@inner_content}
2828
</div>
2929
</main>

lib/plexus_web/components/layouts/root.html.heex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<meta name="viewport" content="width=device-width, initial-scale=1" />
66
<meta name="csrf-token" content={get_csrf_token()} />
77
<.live_title suffix=" · Plexus">
8-
<%= assigns[:page_title] || "Plexus" %>
8+
{assigns[:page_title] || "Plexus"}
99
</.live_title>
1010

1111
<meta
@@ -44,6 +44,6 @@
4444
</script>
4545
</head>
4646
<body class="bg-slate-100 antialiased">
47-
<%= @inner_content %>
47+
{@inner_content}
4848
</body>
4949
</html>

lib/plexus_web/live/admin/app_live/form_component.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ defmodule PlexusWeb.Admin.AppLive.FormComponent do
88
~H"""
99
<div>
1010
<.header>
11-
<%= @title %>
11+
{@title}
1212
</.header>
1313
1414
<.simple_form

lib/plexus_web/live/admin/app_live/index.html.heex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<.header>
2-
Apps (<%= @total_entries %> entries)
2+
Apps ({@total_entries} entries)
33
<:actions>
44
<.link patch={~p"/admin/apps/new"}>
55
<.button>New App</.button>
@@ -37,10 +37,10 @@
3737
</div>
3838
</:col>
3939
<:col :let={{_dom_id, app}} label="Name">
40-
<h3 class="text-sm text-gray-700"><%= app.name %></h3>
40+
<h3 class="text-sm text-gray-700">{app.name}</h3>
4141
</:col>
4242
<:col :let={{_dom_id, app}} label="Package">
43-
<p class="text-sm text-gray-700"><%= app.package %></p>
43+
<p class="text-sm text-gray-700">{app.package}</p>
4444
</:col>
4545
<:col :let={{_dom_id, app}} label="De-Googled">
4646
<.badge score={app.scores.native} />

lib/plexus_web/live/admin/app_live/show.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ defmodule PlexusWeb.Admin.AppLive.Show do
4949
)
5050

5151
~H"""
52-
<%= @score.numerator %>/<%= @score.denominator %> (<%= @score.total_count %> ratings)
52+
{@score.numerator}/{@score.denominator} ({@score.total_count} ratings)
5353
"""
5454
end
5555

lib/plexus_web/live/admin/app_live/show.html.heex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<.header>
2-
<%= @app.name %>
2+
{@app.name}
33
<:actions>
44
<.link patch={~p"/admin/apps/#{@app}/show/edit"} phx-click={JS.push_focus()}>
55
<.button>Edit app</.button>
@@ -8,8 +8,8 @@
88
</.header>
99

1010
<.list>
11-
<:item title="Name"><%= @app.name %></:item>
12-
<:item title="Package"><%= @app.package %></:item>
11+
<:item title="Name">{@app.name}</:item>
12+
<:item title="Package">{@app.package}</:item>
1313
<:item title="Icon">
1414
<div class="aspect-h-1 aspect-w-1 w-full overflow-hidden">
1515
<img

lib/plexus_web/live/admin/rating_live/index.html.heex

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
11
<.header>
2-
<%= @app.name %> <%= if @rating_type == :native, do: "Native", else: "MicroG" %> Ratings
2+
{@app.name} {if @rating_type == :native, do: "Native", else: "MicroG"} Ratings
33
<:subtitle>
44
<.badge score={@score} />
55
</:subtitle>
66
</.header>
77

88
<.table id="ratings" rows={@streams.ratings}>
99
<:col :let={{_id, rating}} label="Score">
10-
<p class="text-sm text-gray-700"><%= rating.score %></p>
10+
<p class="text-sm text-gray-700">{rating.score}</p>
1111
</:col>
1212
<:col :let={{_id, rating}} label="App Version">
1313
<p class="text-sm text-gray-700">
14-
<%= rating.app_version %> (<%= rating.app_build_number %>)
14+
{rating.app_version} ({rating.app_build_number})
1515
</p>
1616
</:col>
1717
<:col :let={{_id, rating}} label="ROM">
18-
<p class="text-sm text-gray-700"><%= rating.rom_name %> (<%= rating.rom_build %>)</p>
18+
<p class="text-sm text-gray-700">{rating.rom_name} ({rating.rom_build})</p>
1919
</:col>
2020
<:col :let={{_id, rating}} label="Android Version">
21-
<p class="text-sm text-gray-700"><%= rating.android_version %></p>
21+
<p class="text-sm text-gray-700">{rating.android_version}</p>
2222
</:col>
2323
<:col :let={{_id, rating}} label="Installation Source">
24-
<p class="text-sm text-gray-700"><%= rating.installation_source %></p>
24+
<p class="text-sm text-gray-700">{rating.installation_source}</p>
2525
</:col>
2626
<:col :let={{_id, rating}} label="Notes">
27-
<p class="text-sm text-gray-700 whitespace-pre-line"><%= rating.notes %></p>
27+
<p class="text-sm text-gray-700 whitespace-pre-line">{rating.notes}</p>
2828
</:col>
2929
<:action :let={{id, rating}}>
3030
<.link

0 commit comments

Comments
 (0)