Compare commits
2 Commits
7099eb57b5
...
376c7ed70d
Author | SHA1 | Date | |
---|---|---|---|
376c7ed70d | |||
5f47525608 |
@ -308,6 +308,10 @@ span.applink {
|
|||||||
margin-left: 4px;
|
margin-left: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.recipients-inline {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
.status-text {
|
.status-text {
|
||||||
margin-left: 60px;
|
margin-left: 60px;
|
||||||
color: #efefef;
|
color: #efefef;
|
||||||
|
@ -150,7 +150,6 @@ loadNotifications client url =
|
|||||||
HttpBuilder.get (Maybe.withDefault ApiUrl.notifications url)
|
HttpBuilder.get (Maybe.withDefault ApiUrl.notifications url)
|
||||||
|> withClient client
|
|> withClient client
|
||||||
|> withBodyDecoder (Decode.list notificationDecoder)
|
|> withBodyDecoder (Decode.list notificationDecoder)
|
||||||
|> withQueryParams [ ( "limit", "30" ) ]
|
|
||||||
|> send (MastodonEvent << Notifications (url /= Nothing))
|
|> send (MastodonEvent << Notifications (url /= Nothing))
|
||||||
|
|
||||||
Nothing ->
|
Nothing ->
|
||||||
@ -255,7 +254,6 @@ searchAccounts client query limit resolve =
|
|||||||
let
|
let
|
||||||
qs =
|
qs =
|
||||||
[ ( "q", "@"++query )
|
[ ( "q", "@"++query )
|
||||||
, ( "limit", toString limit )
|
|
||||||
, ( "resolve"
|
, ( "resolve"
|
||||||
, if resolve then
|
, if resolve then
|
||||||
"true"
|
"true"
|
||||||
@ -324,7 +322,6 @@ loadHomeTimeline client url =
|
|||||||
HttpBuilder.get (Maybe.withDefault ApiUrl.homeTimeline url)
|
HttpBuilder.get (Maybe.withDefault ApiUrl.homeTimeline url)
|
||||||
|> withClient client
|
|> withClient client
|
||||||
|> withBodyDecoder (Decode.list statusDecoder)
|
|> withBodyDecoder (Decode.list statusDecoder)
|
||||||
|> withQueryParams [ ( "limit", "60" ) ]
|
|
||||||
|> send (MastodonEvent << HomeTimeline (url /= Nothing))
|
|> send (MastodonEvent << HomeTimeline (url /= Nothing))
|
||||||
|
|
||||||
Nothing ->
|
Nothing ->
|
||||||
@ -338,7 +335,6 @@ loadLocalTimeline client url =
|
|||||||
HttpBuilder.get (Maybe.withDefault ApiUrl.publicTimeline url)
|
HttpBuilder.get (Maybe.withDefault ApiUrl.publicTimeline url)
|
||||||
|> withClient client
|
|> withClient client
|
||||||
|> withBodyDecoder (Decode.list statusDecoder)
|
|> withBodyDecoder (Decode.list statusDecoder)
|
||||||
|> withQueryParams [ ( "local", "true" ), ( "limit", "60" ) ]
|
|
||||||
|> send (MastodonEvent << LocalTimeline (url /= Nothing))
|
|> send (MastodonEvent << LocalTimeline (url /= Nothing))
|
||||||
|
|
||||||
Nothing ->
|
Nothing ->
|
||||||
@ -352,7 +348,6 @@ loadGlobalTimeline client url =
|
|||||||
HttpBuilder.get (Maybe.withDefault ApiUrl.publicTimeline url)
|
HttpBuilder.get (Maybe.withDefault ApiUrl.publicTimeline url)
|
||||||
|> withClient client
|
|> withClient client
|
||||||
|> withBodyDecoder (Decode.list statusDecoder)
|
|> withBodyDecoder (Decode.list statusDecoder)
|
||||||
|> withQueryParams [ ( "limit", "60" ) ]
|
|
||||||
|> send (MastodonEvent << GlobalTimeline (url /= Nothing))
|
|> send (MastodonEvent << GlobalTimeline (url /= Nothing))
|
||||||
|
|
||||||
Nothing ->
|
Nothing ->
|
||||||
@ -366,8 +361,7 @@ loadAccountTimeline client accountId url =
|
|||||||
HttpBuilder.get (Maybe.withDefault (ApiUrl.accountTimeline accountId) url)
|
HttpBuilder.get (Maybe.withDefault (ApiUrl.accountTimeline accountId) url)
|
||||||
|> withClient client
|
|> withClient client
|
||||||
|> withBodyDecoder (Decode.list statusDecoder)
|
|> withBodyDecoder (Decode.list statusDecoder)
|
||||||
|> withQueryParams [ ( "limit", "60" )
|
|> withQueryParams [ ( "exclude_replies", "true" )
|
||||||
, ( "exclude_replies", "true" )
|
|
||||||
]
|
]
|
||||||
|> send (MastodonEvent << AccountTimeline (url /= Nothing))
|
|> send (MastodonEvent << AccountTimeline (url /= Nothing))
|
||||||
|
|
||||||
@ -382,8 +376,7 @@ loadAccountTimelineReplies client accountId url =
|
|||||||
HttpBuilder.get (Maybe.withDefault (ApiUrl.accountTimeline accountId) url)
|
HttpBuilder.get (Maybe.withDefault (ApiUrl.accountTimeline accountId) url)
|
||||||
|> withClient client
|
|> withClient client
|
||||||
|> withBodyDecoder (Decode.list statusDecoder)
|
|> withBodyDecoder (Decode.list statusDecoder)
|
||||||
|> withQueryParams [ ( "limit", "60" )
|
|> withQueryParams [ ( "exclude_replies", "false" )
|
||||||
, ( "exclude_replies", "false" )
|
|
||||||
]
|
]
|
||||||
|> send (MastodonEvent << AccountTimeline (url /= Nothing))
|
|> send (MastodonEvent << AccountTimeline (url /= Nothing))
|
||||||
|
|
||||||
@ -398,7 +391,6 @@ loadFavoriteTimeline client url =
|
|||||||
HttpBuilder.get (Maybe.withDefault ApiUrl.favouriteTimeline url)
|
HttpBuilder.get (Maybe.withDefault ApiUrl.favouriteTimeline url)
|
||||||
|> withClient client
|
|> withClient client
|
||||||
|> withBodyDecoder (Decode.list statusDecoder)
|
|> withBodyDecoder (Decode.list statusDecoder)
|
||||||
|> withQueryParams [ ( "limit", "60" ) ]
|
|
||||||
|> send (MastodonEvent << FavoriteTimeline (url /= Nothing))
|
|> send (MastodonEvent << FavoriteTimeline (url /= Nothing))
|
||||||
|
|
||||||
Nothing ->
|
Nothing ->
|
||||||
@ -412,7 +404,6 @@ loadHashtagTimeline client hashtag url =
|
|||||||
HttpBuilder.get (Maybe.withDefault (ApiUrl.hashtag hashtag) url)
|
HttpBuilder.get (Maybe.withDefault (ApiUrl.hashtag hashtag) url)
|
||||||
|> withClient client
|
|> withClient client
|
||||||
|> withBodyDecoder (Decode.list statusDecoder)
|
|> withBodyDecoder (Decode.list statusDecoder)
|
||||||
|> withQueryParams [ ( "limit", "60" ) ]
|
|
||||||
|> send (MastodonEvent << HashtagTimeline (url /= Nothing))
|
|> send (MastodonEvent << HashtagTimeline (url /= Nothing))
|
||||||
|
|
||||||
Nothing ->
|
Nothing ->
|
||||||
@ -426,7 +417,6 @@ loadMutes client url =
|
|||||||
HttpBuilder.get (Maybe.withDefault ApiUrl.mutes url)
|
HttpBuilder.get (Maybe.withDefault ApiUrl.mutes url)
|
||||||
|> withClient client
|
|> withClient client
|
||||||
|> withBodyDecoder (Decode.list accountDecoder)
|
|> withBodyDecoder (Decode.list accountDecoder)
|
||||||
|> withQueryParams [ ( "limit", "60" ) ]
|
|
||||||
|> send (MastodonEvent << Mutes (url /= Nothing))
|
|> send (MastodonEvent << Mutes (url /= Nothing))
|
||||||
|
|
||||||
Nothing ->
|
Nothing ->
|
||||||
@ -440,7 +430,6 @@ loadBlocks client url =
|
|||||||
HttpBuilder.get (Maybe.withDefault ApiUrl.blocks url)
|
HttpBuilder.get (Maybe.withDefault ApiUrl.blocks url)
|
||||||
|> withClient client
|
|> withClient client
|
||||||
|> withBodyDecoder (Decode.list accountDecoder)
|
|> withBodyDecoder (Decode.list accountDecoder)
|
||||||
|> withQueryParams [ ( "limit", "60" ) ]
|
|
||||||
|> send (MastodonEvent << Blocks (url /= Nothing))
|
|> send (MastodonEvent << Blocks (url /= Nothing))
|
||||||
|
|
||||||
Nothing ->
|
Nothing ->
|
||||||
@ -691,6 +680,21 @@ uploadMedia client fileInputId =
|
|||||||
Cmd.none
|
Cmd.none
|
||||||
|
|
||||||
|
|
||||||
|
updateMediaDescription : Maybe Client -> String -> String -> Cmd Msg
|
||||||
|
updateMediaDescription client mediaId description =
|
||||||
|
case client of
|
||||||
|
Just { server, token } ->
|
||||||
|
Ports.updateMedia
|
||||||
|
{ id = mediaId
|
||||||
|
, url = server ++ (ApiUrl.updateMedia mediaId)
|
||||||
|
, token = token
|
||||||
|
, description = description
|
||||||
|
}
|
||||||
|
|
||||||
|
Nothing ->
|
||||||
|
Cmd.none
|
||||||
|
|
||||||
|
|
||||||
focusId : String -> Cmd Msg
|
focusId : String -> Cmd Msg
|
||||||
focusId id =
|
focusId id =
|
||||||
Dom.focus id |> Task.attempt (always NoOp)
|
Dom.focus id |> Task.attempt (always NoOp)
|
||||||
|
Loading…
Reference in New Issue
Block a user