1
0
Fork 0
Commit Graph

15 Commits

Author SHA1 Message Date
Nicolas Perriault 2de53bd103 Handle WebSocket "delete" events. (#69)
* Handle WS delete events.
* Factor ws msg handlers to their own updater.
2017-04-27 08:11:24 +02:00
Nicolas Lœuillet d40f110b59 Refactored API URL (#67) 2017-04-26 17:07:43 +02:00
Vincent Jousse 00ffcecf1d Add websocket for local and global timeline (#66)
* Connect to the websocket API

* Enable user timeline update through websockets

* Update elm-html-parser to latest

* Listem to local and global timelines

* Subscribe to global timeline only if it's displayed

* Some review changes

* Add elm-test and test notification aggregates

* Add new follow notification

* Fex addNotificationToAggregates

* Add test

* Clarify logic

* Update local and global timelines using WS

I've renamed the "public" timeline to "global", and removed the HTTP
reload of the user timeline when posting a Toot. We only rely on
websockets now.
2017-04-25 23:33:37 +02:00
Nicolas Perriault c72a9281df
Fix erroneous WS subscription name for public TL. 2017-04-25 22:32:27 +02:00
Vincent Jousse 583ee2def2 Connect to the websocket API (#35) 2017-04-25 16:27:15 +02:00
Nicolas Perriault bbc3efeec8 Better follow notifications. (#38)
- improve the follow notification layout and displayed information of followers
- fixes an issue with them not being actually aggregated
- fixes a bug where reblog action button was highlighted when it was actually a fave
2017-04-24 11:46:14 +02:00
Nicolas Perriault 6b75c90ef6 Aggregate notifications. (#37) 2017-04-23 21:49:04 +02:00
Nicolas Perriault 225a95a637 WiP: Add status action buttons. (#32)
* Add status action buttons.
* Handle favorite actions.
* Handle reblog actions.
* Optimistic updates for reblogs.
2017-04-23 10:18:47 +02:00
Nicolas Perriault 440806fa80 Fix #23: Render user mentions in the second column. (#31)
* Render user mentions in the second column.
* Add a timeline type toggler.
2017-04-22 16:39:19 +02:00
Vincent Jousse 201c6f48ce WIP: Display user account (#13)
* Display user account information in console

* Review's modifications

* Load user on mention click

* Display account information

* Reviews

* Undo messy refactoring

* Remove unused function
2017-04-22 10:16:14 +02:00
Nicolas Perriault dc3c860d70
Add a shorter type alias for requests. 2017-04-20 22:55:08 +02:00
Vincent Jousse 8627bffbe0 Generalize `fetch` function by using a type var (#12)
I will need it to fetch an user account so it has to able to decode
something else than a `List Status`.
Using a type variable allows the calling function to provide the
decoder, and thus we can reuse `fetch` for something else.
2017-04-20 21:33:17 +02:00
Nicolas Perriault aa91182ff6 Allow posting messages (#7) 2017-04-20 20:30:19 +02:00
Jérémy Benoist 1c8559e4ad Add application link to client name (#9)
When you publish a toot the client name is associated to the toot.
By defining the `website` parameter in Mastodon model, it is automatically associated.
2017-04-20 19:12:23 +02:00
Vincent Jousse 556fab7daa Put Elm files into src/ and assets into public/ (#4) 2017-04-20 14:38:52 +02:00