File tree Expand file tree Collapse file tree 5 files changed +12
-27
lines changed Expand file tree Collapse file tree 5 files changed +12
-27
lines changed Original file line number Diff line number Diff line change @@ -904,7 +904,7 @@ contentView model =
904
904
adminWorldsListView model. adminNewWorldName model. adminNewWorldFast data
905
905
906
906
AdminWorldActivity worldName ->
907
- adminWorldActivityView model. lastTenToBackendMsgs model . zone worldName data
907
+ adminWorldActivityView model. lastTenToBackendMsgs worldName data
908
908
909
909
AdminWorldHiscores worldName ->
910
910
adminWorldHiscoresView worldName data
@@ -4393,16 +4393,16 @@ adminWorldsListView newWorldName newWorldFast data =
4393
4393
]
4394
4394
4395
4395
4396
- adminWorldActivityView : List ( PlayerName , World .Name , ToBackend ) -> Time . Zone -> World .Name -> AdminData -> List (Html FrontendMsg )
4397
- adminWorldActivityView lastTenToBackendMsgs zone worldName data =
4396
+ adminWorldActivityView : List ( PlayerName , World .Name , ToBackend ) -> World .Name -> AdminData -> List (Html FrontendMsg )
4397
+ adminWorldActivityView lastTenToBackendMsgs worldName data =
4398
4398
case Dict . get worldName data. worlds of
4399
4399
Nothing ->
4400
4400
contentUnavailableView <|
4401
4401
" World '"
4402
4402
++ worldName
4403
4403
++ " ' not found"
4404
4404
4405
- Just world ->
4405
+ Just _ ->
4406
4406
[ pageTitleView <| " Admin :: World: " ++ worldName ++ " - Activity"
4407
4407
, H . h3 [] [ H . text " Last 10 messages" ]
4408
4408
, H . table [ HA . id " admin-last-ten-msgs-table" ]
Original file line number Diff line number Diff line change @@ -10,9 +10,7 @@ module Frontend.Route exposing
10
10
, toString
11
11
)
12
12
13
- import Data.Barter as Barter
14
- import Data.Fight as Fight
15
- import Data.Message as Message exposing (Message )
13
+ import Data.Message as Message
16
14
import Data.World as World
17
15
import Url exposing (Url )
18
16
import Url.Parser as P exposing ((</>) , Parser )
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ module Time.ExtraExtra exposing
6
6
7
7
import Json.Decode as JD exposing (Decoder )
8
8
import Json.Encode as JE
9
- import Time.Extra as Time exposing (Interval (..) )
9
+ import Time.Extra exposing (Interval (..) )
10
10
11
11
12
12
encodeInterval : Interval -> JE .Value
Original file line number Diff line number Diff line change @@ -11,13 +11,12 @@ import Data.Fight.Generator exposing (Fight)
11
11
import Data.FightStrategy exposing (FightStrategy )
12
12
import Data.Item as Item
13
13
import Data.Map exposing (TileCoords )
14
- import Data.Message as Message exposing ( Message )
14
+ import Data.Message as Message
15
15
import Data.NewChar as NewChar exposing (NewChar )
16
16
import Data.Perk exposing (Perk )
17
17
import Data.Player
18
18
exposing
19
19
( CPlayer
20
- , Player
21
20
, SPlayer
22
21
)
23
22
import Data.Player.PlayerName exposing (PlayerName )
@@ -36,11 +35,7 @@ import Data.WorldData
36
35
import Dict exposing (Dict )
37
36
import File exposing (File )
38
37
import Frontend.HoveredItem exposing (HoveredItem )
39
- import Frontend.Route
40
- exposing
41
- ( PlayerRoute
42
- , Route
43
- )
38
+ import Frontend.Route exposing (Route )
44
39
import Lamdera exposing (ClientId , SessionId )
45
40
import Queue exposing (Queue )
46
41
import Set exposing (Set )
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
3
- COLOR_OFF=" \033[0m" ;
4
- DIM=" \033[2m" ;
5
-
6
- LOCKNAME=$( cat /dev/urandom | LC_ALL=C tr -cd ' a-f0-9' | head -c 16) ;
7
- LOCKFILE=" /tmp/elm-lock-${LOCKNAME} "
3
+ COLOR_OFF=" \e[0m" ;
4
+ DIM=" \e[2m" ;
8
5
9
6
function compile {
10
- find src -name ' *.elm' | xargs elm make --output /dev/null
7
+ find src -type f - name ' *.elm' | xargs lamdera make --output /dev/null
11
8
}
12
9
13
10
function run {
14
- (
15
- flock 200
16
-
17
11
clear;
18
12
tput reset;
19
13
echo -en " \033c\033[3J" ;
@@ -23,12 +17,10 @@ function run {
23
17
echo -en " ${COLOR_OFF} " ;
24
18
25
19
compile;
26
-
27
- ) 200> " ${LOCKFILE} "
28
20
}
29
21
30
22
run;
31
23
32
- chokidar ' **/* .elm' | while read WHATEVER; do
24
+ find src -type f -name ' * .elm' | xargs chokidar 2> /dev/null | while read WHATEVER; do
33
25
run;
34
26
done ;
You can’t perform that action at this time.
0 commit comments