convert_to_actix #2
|
@ -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)
|
||||||
|
|
|
@ -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
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in a new issue