Commit Graph

15 Commits (5e6ec229b2f1fe9f3f41ce2aef9245484fe86192)

Author SHA1 Message Date
Eugen Rochko 510e184216
Fix localization test failing due to order of locale definitions ()
Eugen Rochko 8b9d0a0533
Remove XML version of Webfinger and remove links to Atom feeds ()
Fix 
Eugen Rochko 63c7fe8e48
Refactor controllers for statuses, accounts, and more ()
Eugen Rochko 65fffeac3f
Redesign landing page ()
Yamagishi Kazutoshi d10447c3a8 Use raw status code on have_http_status ()
Eugen Rochko e19eefe219 Redesign the landing page, mount public timeline on it ()
* Redesign the landing page, mount public timeline on it

* Adjust the standalone mounted component to the lacking of router

* Adjust auth layout pages to new design

* Fix tests

* Standalone public timeline polling every 5 seconds

* Remove now obsolete translations

* Add responsive design for new landing page

* Address reviews

* Add floating clouds behind frontpage form

* Use access token from public page when available

* Fix mentions and hashtags links, cursor on status content in standalone mode

* Add footer link to source code

* Fix errors on pages that don't embed the component, use classnames

* Fix tests

* Change anonymous autoPlayGif default to false

* When gif autoplay is disabled, hover to play

* Add option to hide the timeline preview

* Slightly improve alt layout

* Add elephant friend to new frontpage

* Display "back to mastodon" in place of "login" when logged in on frontpage

* Change polling time to 3s
unarist abbdacedc5 Fix locale related specs ()
* Use I18n.locale instead of ":en"
* Reset I18n.locale value after locale changing tests
Yamagishi Kazutoshi 0a0b9a271a Improve RuboCop rules (compatibility to Code Climate) ()
08f8de84eb/Gemfile.lock (L38)
Code Climate is using RuboCop v0.46.0.

Change several rules to maintain compatibility.
Matt Jankowski f9d398e8fb Remove the react-rails gem ()
* Remove react-rails gem

* Fix broken view spec
Matt Jankowski 8bac0350d1 Restful refactor of accounts/ routes ()
* Add routing specs for accounts followers and following actions

* Use more restful route naming for public account follow pages

Moves two actions:
- accounts#followers to accounts/follower_accounts#index
- accounts#following to accounts/following_accounts#index

Adds routing spec to ensure prior URLs are preserved.
Matt Jankowski 21a767dcfa Improve handling of HTTP_ACCEPT for webfinger ()
This change includes:

- Improve the spec coverage for incoming request to the webfinger action
- For requests without an accept header (ie, what a browser might look like),
  return a JSON response.
- For requests with an explicit format of xml or json, return that format.
- For requests using an accept header, return that format.

Also adds failing spec showing webfinger does not return xml, which covers the
issue described in: https://github.com/tootsuite/mastodon/issues/1983
Matt Jankowski f5cd138323 Improve i18n chooser ()
* Add locale spec with failing locale plus region check

* Use a more accurate locale when supplied by browser headers

Previously we were using a matching option which would use the first locale
available which matched the locale portion, even if a region was specified.

This changes to first try to find an exact match, and then fall back to the
region, and then fall back to the  default.

* Clean up default_locale method
Matt Jankowski 137100dcf3 Clean up well-known routes/controllers ()
* Add request spec for host meta route returning xml

* Add routing spec for xrd routes

* Update well-known routes

* Move webfinger and host-meta actions to their own controllers
Matt Jankowski b352a8e5d4 Default to json type for webfinger requests ()
Matt Jankowski 71706f21c2 Ignore implied formats for catch all route requests ()
A request to `/test` would show the custom 404 page, but a request to
`/test.test` would return a 404 with an empty body.

This change ignores the format on incoming catch all route requests, so that the
html 404 page is returned on these requests.