From 2e89ad0b0f56384f0c85a898340f96de51a544ba Mon Sep 17 00:00:00 2001 From: Nicolas Perriault Date: Wed, 29 Nov 2017 14:06:08 +0100 Subject: [PATCH] Fix #196: Fix incompatibilities with the Mastodon API v2.0.0. (#197) --- .gitignore | 1 + public/index.html | 14 +----- src/Command.elm | 37 ++++++++-------- src/Init.elm | 8 +++- src/Mastodon/ApiUrl.elm | 78 ++++++++++++++++---------------- src/Mastodon/Decoder.elm | 91 ++++++++++++++++++++++---------------- src/Mastodon/Encoder.elm | 13 ++++-- src/Mastodon/Helper.elm | 8 +++- src/Mastodon/Model.elm | 27 ++++++----- src/Mastodon/WebSocket.elm | 10 +---- src/Types.elm | 12 ++--- src/Update/Draft.elm | 4 +- src/Update/Main.elm | 3 +- src/Update/Mastodon.elm | 6 +-- src/Update/Route.elm | 22 +++++---- src/Update/Timeline.elm | 10 ++--- src/Update/WebSocket.elm | 27 +++-------- src/View/Account.elm | 14 +++--- src/View/Blocks.elm | 4 +- src/View/Common.elm | 4 +- src/View/Draft.elm | 2 +- src/View/Formatter.elm | 2 +- src/View/Mutes.elm | 4 +- src/View/Notification.elm | 4 +- src/View/Search.elm | 2 +- src/View/Status.elm | 12 ++--- src/View/Thread.elm | 3 +- src/View/Timeline.elm | 3 +- tests/Fixtures.elm | 42 +++++++++--------- 29 files changed, 240 insertions(+), 227 deletions(-) diff --git a/.gitignore b/.gitignore index 481630f..46b329c 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ /elm-stuff /node_modules app.js +package-lock.json diff --git a/public/index.html b/public/index.html index 889546c..dd16cc8 100644 --- a/public/index.html +++ b/public/index.html @@ -17,20 +17,8 @@