File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : " Build binaries"
22on : ["push", "pull_request"]
33env :
4- OTP_GITHUB_URL : https://github.com/erlang /otp.git
5- OTP_VERSION : OTP-24.3.4.15
4+ OTP_GITHUB_URL : https://github.com/diodechain /otp.git
5+ OTP_VERSION : OTP-26.2.5.9_diode
66 WXWIDGETS_REPO : https://github.com/wxWidgets/wxWidgets.git
7- WXWIDGETS_VERSION : master
8- ELIXIR_VERSION : 1.14.5
9- ELIXIR_VARIANT : -otp-24
7+ WXWIDGETS_VERSION : v3.2.6
8+ ELIXIR_VERSION : 1.16.3
9+ ELIXIR_VARIANT : -otp-26
1010 DOCKER_BUILDKIT : 0
1111
1212jobs :
@@ -106,8 +106,7 @@ jobs:
106106 uses : msys2/setup-msys2@v2
107107 with :
108108 install : pacman-mirrors pkg-config base-devel mingw-w64-x86_64-toolchain mingw-w64-x86_64-go upx mingw-w64-x86_64-dlfcn unzip git tar mingw-w64-x86_64-nodejs mingw-w64-x86_64-imagemagick mingw-w64-x86_64-osslsigncode autoconf automake libtool gettext-devel gettext
109- update : false
110- release : false
109+ update : true
111110
112111 - name : Locate Erlang
113112 shell : msys2 {0}
@@ -164,7 +163,7 @@ jobs:
164163 _build/prod/*.exe
165164
166165 macos :
167- runs-on : macos-11
166+ runs-on : macos-13
168167 steps :
169168 - name : macOS Cache
170169 uses : actions/cache@v3
Original file line number Diff line number Diff line change 99 - name : Setup elixir
1010 uses : erlef/setup-beam@v1
1111 with :
12- elixir-version : " 1.14.5 "
13- otp-version : " 24.3.3 "
12+ elixir-version : " 1.16.3 "
13+ otp-version : " 26.2.5.9 "
1414
1515 - uses : actions/checkout@v1
1616 - run : |
Original file line number Diff line number Diff line change 1- elixir 1.14.5 -otp-24
2- erlang 24.3.4.13
1+ elixir 1.16.3 -otp-26
2+ erlang 26.2.5.9
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ defmodule TodoApp.Menu do
22 @ moduledoc """
33 Menu that is shown when a user click on the taskbar icon of the TodoApp
44 """
5- import TodoWeb.Gettext
5+ use Gettext , backend: TodoWeb.Gettext
66 use Desktop.Menu
77
88 def handle_event ( command , menu ) do
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ defmodule TodoApp.MenuBar do
33 Menubar that is shown as part of the main Window on Windows/Linux. In
44 MacOS this Menubar appears at the very top of the screen.
55 """
6- import TodoWeb.Gettext
6+ use Gettext , backend: TodoWeb.Gettext
77 use Desktop.Menu
88 alias TodoApp.Todo
99 alias Desktop.Window
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ defmodule TodoWeb do
2222 use Phoenix.Controller , namespace: TodoWeb
2323
2424 import Plug.Conn
25- import TodoWeb.Gettext
25+ use Gettext , backend: TodoWeb.Gettext
2626 alias TodoWeb.Router.Helpers , as: Routes
2727 end
2828 end
@@ -77,7 +77,7 @@ defmodule TodoWeb do
7777 def channel do
7878 quote do
7979 use Phoenix.Channel
80- import TodoWeb.Gettext
80+ use Gettext , backend: TodoWeb.Gettext
8181 end
8282 end
8383
@@ -94,7 +94,7 @@ defmodule TodoWeb do
9494 import Phoenix.View
9595
9696 import TodoWeb.ErrorHelpers
97- import TodoWeb.Gettext
97+ use Gettext , backend: TodoWeb.Gettext
9898 end
9999 end
100100
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ defmodule TodoWeb.Gettext do
55 By using [Gettext](https://hexdocs.pm/gettext),
66 your module gains a set of macros for translations, for example:
77
8- import TodoWeb.Gettext
8+ use Gettext, backend: TodoWeb.Gettext
99
1010 # Simple translation
1111 gettext("Here is the string to translate")
@@ -20,5 +20,5 @@ defmodule TodoWeb.Gettext do
2020
2121 See the [Gettext Docs](https://hexdocs.pm/gettext) for detailed usage.
2222 """
23- use Gettext , otp_app: :todo_app
23+ use Gettext.Backend , otp_app: :todo_app
2424end
Original file line number Diff line number Diff line change 11< main role = "main " class = "container " >
22 < p class = "alert alert-info " role = "alert "
33 phx-click = "lv:clear-flash "
4- phx-value-key = "info " > <%= live_flash ( @ flash , :info ) %> </ p >
4+ phx-value-key = "info " > <%= Phoenix.Flash . get ( @ flash , :info ) %> </ p >
55
66 < p class = "alert alert-danger " role = "alert "
77 phx-click = "lv:clear-flash "
8- phx-value-key = "error " > <%= live_flash ( @ flash , :error ) %> </ p >
8+ phx-value-key = "error " > <%= Phoenix.Flash . get ( @ flash , :error ) %> </ p >
99
1010 <%= @ inner_content %>
1111</ main >
Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ ARG WXWIDGETS_VERSION
2626ENV WXWIDGETS_VERSION=${WXWIDGETS_VERSION:-master}
2727RUN cd ~/projects/wxWidgets && \
2828 git fetch origin && \
29- git reset --hard origin/ ${WXWIDGETS_VERSION} && \
29+ git reset --hard ${WXWIDGETS_VERSION} && \
3030 git submodule update --init
3131
3232# ENV WXWIDGETS_DEBUG=--enable-debug
You can’t perform that action at this time.
0 commit comments