1
0
mirror of https://github.com/funamitech/mastodon synced 2024-12-04 09:48:44 +09:00
YuruToot/app/javascript/flavours/glitch/features
Thibaut Girka cc396f085d Use history.state to decide whether we should goBack() or go to / (fixes #247)
So far, glitch-soc used history.length to decide whether to call `goBack()` or
go to / in order to not leave the webUI. This made clicking the “Back” button
go to the “Getting started” column instead of going back in the browser's
history when such an action would leave the web UI, but also when:
- The WebUI is refreshed (F5)
- A tab is restored
- The history length reaches its maximum (e.g., 50 in Firefox)

This commit fixes these shortcomings by checking `window.history.state`.
Indeed, we only want to go back in the browser's history when the current
location has been reached from within the WebUI, which only happens via
`pushState` as far as I know. Since browser store the serialized state in
the browser history, this also survives page reload and session restoration.
2018-05-31 14:39:02 +02:00
..
account/components [Glitch] Feature: Direct message from menu 2018-05-16 19:45:30 +02:00
account_gallery [Glitch] Fix LoadMore on account media gallery 2018-05-29 21:25:28 +02:00
account_timeline [Glitch] Allow clients to fetch statuses made while they were offline 2018-05-29 21:25:28 +02:00
blocks Rename themes -> flavours ? ? 2017-12-03 23:26:40 -08:00
bookmarked_statuses [Glitch] Replace onScrollToBottom with onLoadMore 2018-05-27 20:40:58 +02:00
community_timeline [Glitch] Allow clients to fetch statuses made while they were offline 2018-05-29 21:25:28 +02:00
composer [Glitch] Fix low-contrasted cancel button of reply indicator 2018-05-29 21:25:47 +02:00
direct_timeline Fix direct timeline 2018-05-31 14:37:13 +02:00
domain_blocks [Glitch] Change icon for domain blocks 2018-05-27 20:40:58 +02:00
drawer Port upstream's result section headers (fixes #366) 2018-05-27 11:02:44 +02:00
emoji_picker [Glitch] Place emoji picker top if it is closer to the bottom of the viewport 2018-05-05 16:58:20 +02:00
favourited_statuses [Glitch] Replace onScrollToBottom with onLoadMore 2018-05-27 20:40:58 +02:00
favourites Rename themes -> flavours ? ? 2017-12-03 23:26:40 -08:00
follow_requests Rename themes -> flavours ? ? 2017-12-03 23:26:40 -08:00
followers [Glitch] Federate pinned statuses over ActivityPub 2018-03-16 23:16:20 +01:00
following [Glitch] Federate pinned statuses over ActivityPub 2018-03-16 23:16:20 +01:00
generic_not_found Rename themes -> flavours ? ? 2017-12-03 23:26:40 -08:00
getting_started Add glitch-soc front-end support for bookmarks 2018-04-11 21:05:34 +02:00
getting_started_misc [Glitch] Change icon for domain blocks 2018-05-27 20:40:58 +02:00
hashtag_timeline [Glitch] Allow clients to fetch statuses made while they were offline 2018-05-29 21:25:28 +02:00
home_timeline [Glitch] Allow clients to fetch statuses made while they were offline 2018-05-29 21:25:28 +02:00
keyboard_shortcuts <kbd> instead of <code> in KeyboardShortcuts component (tootsuite pr #6049) 2017-12-21 13:04:40 -06:00
list_editor Style fixes to make eslint happier, hopefully 2018-01-18 09:13:07 -06:00
list_timeline [Glitch] Allow clients to fetch statuses made while they were offline 2018-05-29 21:25:28 +02:00
lists use list-ul icon in list header and web/lists 2017-12-17 21:25:18 -06:00
local_settings removed one last app settings addition 2017-12-10 09:25:44 -06:00
mutes Rename themes -> flavours ? ? 2017-12-03 23:26:40 -08:00
notifications [Glitch] Improve load gap styling in web UI 2018-05-29 21:25:28 +02:00
pinned_statuses Rename themes -> flavours ? ? 2017-12-03 23:26:40 -08:00
public_timeline [Glitch] Allow clients to fetch statuses made while they were offline 2018-05-29 21:25:28 +02:00
reblogs Rename themes -> flavours ? ? 2017-12-03 23:26:40 -08:00
report Hide media in report modal regardless of whether they are marked sensitive 2018-05-07 15:00:55 +02:00
standalone [Glitch] Allow clients to fetch statuses made while they were offline 2018-05-29 21:25:28 +02:00
status [Glitch] Use .star-icon instead of hardcoding color in detailed statuses 2018-05-25 11:16:11 +02:00
ui Use history.state to decide whether we should goBack() or go to / (fixes #247) 2018-05-31 14:39:02 +02:00
video [Glitch] Open video modal on public UI 2018-05-17 18:37:00 +02:00