Skip to content

Commit ab5d55f

Browse files
committed
Add latest Elixir, Swift, Go, iOS to calendar
1 parent 786b233 commit ab5d55f

File tree

1 file changed

+33
-5
lines changed

1 file changed

+33
-5
lines changed

lib/components_guide_web/controllers/calendar_controller.ex

Lines changed: 33 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,18 @@ defmodule ComponentsGuideWeb.CalendarController do
3838
postgres10: %{end_of_life: {2022, 11, 10}}
3939
}
4040

41+
erlang = %{
42+
elixir1_14: %{release: {2022, 9, 1}},
43+
}
44+
4145
swift = %{
42-
swift5_6: %{release: {2022, 3, 14}}
46+
swift5_6: %{release: {2022, 3, 14}},
47+
swift5_7: %{release: {2022, 9, 12}}
4348
}
4449

4550
golang = %{
46-
go1_18: %{release: {2022, 3, 15}}
51+
go1_18: %{release: {2022, 3, 15}},
52+
go1_19: %{release: {2022, 8, 2}},
4753
}
4854

4955
rust = %{
@@ -81,6 +87,10 @@ defmodule ComponentsGuideWeb.CalendarController do
8187
safari15_6: %{release: {2022, 7, 20}}
8288
}
8389

90+
ios = %{
91+
ios16: %{release: {2022, 9, 12}}
92+
}
93+
8494
aws_lambda = %{
8595
aws_lambda_nodejs10: %{
8696
deprecation_phase_1: {2021, 7, 30},
@@ -89,10 +99,12 @@ defmodule ComponentsGuideWeb.CalendarController do
8999
}
90100

91101
groups = [
102+
ios,
92103
nodejs_lts,
93104
deno,
94105
react,
95106
swift,
107+
erlang,
96108
golang,
97109
rust,
98110
browsers,
@@ -126,16 +138,20 @@ defmodule ComponentsGuideWeb.CalendarController do
126138
firefox104: "https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Releases/104",
127139
firefox105: "https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Releases/105",
128140
swift5_6: "https://www.swift.org/blog/swift-5.6-released/",
141+
swift5_7: "https://www.swift.org/blog/swift-5.7-released/",
129142
safari15_4: "https://webkit.org/blog/12445/new-webkit-features-in-safari-15-4/",
130143
safari15_5: "https://webkit.org/blog/12669/new-webkit-features-in-safari-15-5/",
131144
safari15_6: "https://webkit.org/blog/13009/new-webkit-features-in-safari-15-6/",
132145
go1_18: "https://go.dev/doc/go1.18",
146+
go1_19: "https://go.dev/doc/go1.19",
133147
rust1_62: "https://blog.rust-lang.org/2022/06/30/Rust-1.62.0.html",
134148
rust1_63: "https://blog.rust-lang.org/2022/08/11/Rust-1.63.0.html",
135149
rust1_64: "https://blog.rust-lang.org/2022/09/22/Rust-1.64.0.html",
136150
nodejs18: "https://nodejs.org/en/blog/announcements/v18-release-announce/",
137151
jest28: "https://jestjs.io/blog/2022/04/25/jest-28",
138152
jest29: "https://jestjs.io/blog/2022/08/25/jest-29",
153+
ios16: "https://www.apple.com/newsroom/2022/09/ios-16-is-available-today/",
154+
elixir1_14: "https://elixir-lang.org/blog/2022/09/01/elixir-v1-14-0-released/",
139155
}
140156

141157
dates_to_items =
@@ -271,9 +287,13 @@ defmodule ComponentsGuideWeb.CalendarView do
271287
assigns = %{ids: ids}
272288

273289
~H"""
274-
<%= for id <- @ids do %>
275-
<%= ComponentsGuideWeb.CalendarView.icon_link(id, Map.get(links, id)) %>
276-
<% end %>
290+
<div>
291+
<%= for id <- @ids do %>
292+
<div>
293+
<%= ComponentsGuideWeb.CalendarView.icon_link(id, Map.get(links, id)) %>
294+
</div>
295+
<% end %>
296+
</div>
277297
"""
278298
end
279299

@@ -300,12 +320,14 @@ defmodule ComponentsGuideWeb.CalendarView do
300320
<<"safari" <> version>> -> "Safari #{pretty_version(version)}"
301321
<<"postgres" <> version>> -> "Postgres #{pretty_version(version)}"
302322
<<"swift" <> version>> -> "Swift #{pretty_version(version)}"
323+
<<"elixir" <> version>> -> "Elixir #{pretty_version(version)}"
303324
<<"go" <> version>> -> "Go #{pretty_version(version)}"
304325
<<"rust" <> version>> -> "Rust #{pretty_version(version)}"
305326
<<"react_query" <> version>> -> "React Query #{pretty_version(version)}"
306327
<<"react" <> version>> -> "React #{pretty_version(version)}"
307328
<<"jest" <> version>> -> "Jest #{pretty_version(version)}"
308329
<<"aws_lambda_nodejs" <> version>> -> "AWS Lambda Node.js #{pretty_version(version)}"
330+
<<"ios" <> version>> -> "iOS #{pretty_version(version)}"
309331
s -> s
310332
end
311333
end
@@ -353,9 +375,15 @@ defmodule ComponentsGuideWeb.CalendarView do
353375
<<"jest" <> _>> ->
354376
"https://cdn.jsdelivr.net/npm/simple-icons@v6/icons/jest.svg"
355377

378+
<<"elixir" <> _>> ->
379+
"https://cdn.jsdelivr.net/npm/simple-icons@v7/icons/elixir.svg"
380+
356381
<<"aws_lambda_nodejs" <> _>> ->
357382
"https://cdn.jsdelivr.net/npm/simple-icons@v6/icons/awslambda.svg"
358383

384+
<<"ios" <> _>> ->
385+
"https://cdn.jsdelivr.net/npm/simple-icons@v7/icons/ios.svg"
386+
359387
_ ->
360388
nil
361389
end

0 commit comments

Comments
 (0)