convert_to_actix #2

Merged
Yehowshua merged 20 commits from convert_to_actix into main 2025-01-06 06:25:19 +00:00
2 changed files with 5 additions and 3 deletions
Showing only changes of commit 45ca677c87 - Show all commits

View file

@ -2,6 +2,8 @@ SRC_FILES := $(shell find src -name "*.elm")
all: elm.min.js all: elm.min.js
.PHONY: elm.min.js
ifeq ($(DEBUG)$(RELEASE),) # Both are empty ifeq ($(DEBUG)$(RELEASE),) # Both are empty
$(error You must set exactly one of DEBUG=1 or RELEASE=1) $(error You must set exactly one of DEBUG=1 or RELEASE=1)
endif endif
@ -11,7 +13,7 @@ $(error Both DEBUG and RELEASE cannot be set at the same time)
endif endif
elm.min.js: $(SRC_FILES) elm.min.js:
ifeq ($(DEBUG),1) ifeq ($(DEBUG),1)
./build.sh --debug src/Main.elm ./build.sh --debug src/Main.elm
else ifeq ($(RELEASE),1) else ifeq ($(RELEASE),1)

View file

@ -64,7 +64,7 @@ greetWidget =
{ onChange = GreetWidgetText { onChange = GreetWidgetText
, text = "text" , text = "text"
, placeholder = Nothing , placeholder = Nothing
, label = Element.Input.labelAbove [] (Element.text "Greet") , label = Element.Input.labelHidden "Greet"
} }
in in
Element.row [] Element.row []
@ -74,6 +74,6 @@ view : Model -> Element Msg
view model = view model =
Element.column [] Element.column []
[ Element.text "Landing" [ Element.text "Landing"
-- , Element.text <| "Current time is : " ++ model.time , Element.text <| "Current time is : " ++ model.time
, greetWidget , greetWidget
] ]