Skip to content

Commit

Permalink
Minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
dfordivam committed Jun 20, 2018
1 parent 35987c0 commit 77ccedf
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions android/app/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ import Protolude
main :: IO ()
main =
mainWidgetWithHead'
headWidget
(\_ -> topWidget)
(headWidget
, (\_ -> topWidget))
1 change: 0 additions & 1 deletion android/src/KanjiBrowser.hs
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,6 @@ kanjiDetailWindow (k,vSt,rads) = divClass "box" $ do
text (unKanji $ k ^. kanjiCharacter)

divClass "level-right" $ divClass "level-item" $ elClass "span" "" $ do
text "Radicals: "
forM rads $ \t -> elClass "span" "tag is-medium is-info" $ text t

divClass "tile" $ do
Expand Down
2 changes: 1 addition & 1 deletion android/src/LoginWidget.hs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ showLogin incorrectEv = elClass "section" "hero is-fullheight" $ do
return (ev, toggleEv)

checkLogin lEv = do
let url s = "http://192.168.0.31:3000/websocket/app/" <> s
let url s = "http://192.168.2.60:3000/websocket/app/" <> s
r <- getAndDecode (url <$> lEv)
let incorrectEv = fforMaybe r (\case
(Just True) -> Nothing
Expand Down
2 changes: 1 addition & 1 deletion android/src/ReadingPane.hs
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ verticalReader rs (docId, _, startParaMaybe, endParaNum, annText) = do
(return never <$ stopTicks)
tickW = do
ev <- getPostBuild
de <- delay 1.5 $ leftmost [ev, () <$ evVisible]
de <- delay 0.5 $ leftmost [ev, () <$ evVisible]
return $ de
t <- widgetHold init
(init <$ startTicksAgain)
Expand Down
2 changes: 1 addition & 1 deletion android/src/TopWidget.hs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ afterLoginWidget :: MonadWidget t m
=> Text
-> m (Event t (Maybe Text), Event t ())
afterLoginWidget secret = do
let url = "ws://192.168.0.31:3000/websocket/app/" <> secret
let url = "ws://192.168.2.60:3000/websocket/app/" <> secret
((ev,d),wsConn) <- withWSConnection
url
never -- close event
Expand Down

0 comments on commit 77ccedf

Please sign in to comment.