about summary refs log tree commit diff
path: root/app/javascript/flavours/glitch/util
AgeCommit message (Collapse)Author
2018-06-12Port emojimart 2.6.1 changes to glitch flavourDavid Yip
See also the following commits: - 0c3ce41031d292734e0e4cc70d227228d1993bea - 268d90e8103770e8b90f6d5680a466c1ec83c6ff
2018-05-31Use history.state to decide whether we should goBack() or go to / (fixes #247)Thibaut Girka
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-29[Glitch] Use randomized setTimeout when fallback-polling and re-add since_idThibaut Girka
Port dafd7afc5ef94fc9513efa341910f7e3c31b909a to glitch-soc
2018-05-29[Glitch] Fix comparing idThibaut Girka
Port 0ba49eca8b49c6ce0ec04fd546951c95938da4e6 to glitch-soc
2018-05-29[Glitch] Allow clients to fetch statuses made while they were offlineThibaut Girka
Port 9a1a55ce526c956ac6b35897d483c316b7ad4394 to glitch-soc
2018-05-27[Glitch] Use streaming API for standalone timelines on /about and /tag pagesThibaut Girka
Port 0128b86d3098042cdbc3a1629f74b70f665f8dfb to glitch-soc
2018-05-27Implement client-size image resizing from upstreamThibaut Girka
2018-05-10[Glitch] Use plaintext value for field value tooltips in web UIThibaut Girka
Port d185f3ddafc941e280de7efc6d448449ab5ce2c9 to glitch-soc This doesn't change anything for glitch-style fields, but those will go away eventually
2018-04-14[Glitch] Handle preference to always display sensitive mediaThibaut Girka
Port the UI part of 76f3d5d16be2fb97d2252909589510165ec05e12 to glitch-soc
2018-04-11Add glitch-soc front-end support for bookmarksThibaut Girka
Unlike boosts and like, there is no confirmation dialog as misclicking can be recovered without another user seeing it.
2018-03-30Add basic domain block UIThibaut Girka
2018-03-16[Glitch] Add "Toots/Toots with replies/Media" tab below profile headerThibaut Girka
Port 51310125051a75ef7af4e8ffc8b6532c151e96b6 to glitch
2018-01-18Style fixes to make eslint happier, hopefullyDavid Yip
2018-01-09Merge pull request #316 from glitch-soc/fix-asyncDavid Yip
Fix glitch async chunks
2018-01-09Renamed glitch async chunkskibigo!
2018-01-09Refactor /api/web APIs to use the centralized axios instance (tootsuite pr ↵cwm
#6223)
2018-01-08When pulling out max_toot_chars, handle nullsDavid Yip
flavours/glitch/util/initial_state is used in places where we want to exhibit different behavior based on user preferences. This means that it's used in places where no preference is defined, i.e. on an unauthenticated access. All values exported from that module must therefore expect that case; previously, the max chars value didn't. Addresses #306.
2018-01-06Merge pull request #296 from glitch-soc/thread-modebeatrix
Threaded mode~
2018-01-06appease eslintbeatrix
2018-01-06Read max_toot_chars from root object. Fixes #297.David Yip
max_toot_chars is present in the root of the initial state object. (Previously, we were trying to read it from the meta child object.)
2018-01-05Threaded mode~kibigo!
2018-01-05Merge pull request #290 from chriswmartin/web-push-updatesbeatrix
Web push updates
2018-01-04WIP <Compose> Refactor; Fin~kibigo!
2018-01-04WIP <Compose> Refactor; 1000 tiny editskibigo!
2018-01-04WIP <Compose> Refactor; <Drawer> ed.kibigo!
2018-01-04WIPgit status <Compose> Refactor; <Composer> ed.kibigo!
2017-12-31bug fix (tootsuite pr #6120)cwm
2017-12-30web push updates (tootsuite PRs #5879, #5941, #6047)cwm
2017-12-20add keyboard shortcuts to getting started (fixes #275)cwm
2017-12-12add components to getting started columncwm
2017-12-10pulled master, moved locale entry to new locationcwm
2017-12-09add initial components based off of tootsuite pr #1507cwm
2017-12-08merged tootsuite pr #5811 into glitch flavourcwm
2017-12-08merged tootsuite pr #5750 into glitch flavourcwm
2017-12-03Rename themes -> flavours ? ?kibigo!