about summary refs log tree commit diff
path: root/app/javascript/flavours/glitch/util
AgeCommit message (Collapse)Author
2018-10-27When searching for an emoji with multiple separators, consider the full inputThibaut Girka
e.g., typing “blob_cat_p” used to search for “blob” and “cat”, but not “blob_cat_p”, which means “blob_cat_patpat” is very unlikely to show up, although it is likely what the user wanted to type in the first place.
2018-10-12Fix auto-unfold CWs when no regexp is setThibaut Girka
Fixes #778
2018-10-01[Glitch] Add support for new display_media settingThibaut Girka
Port f7a6f9489da9b2a1820366654df47b8a52f5c5bc to glitch-soc [API] [vanilla required] [glitch-soc optional] initial_state show_sensitive_media boolean changed to show_media string with options "default", "hide_all", "show_all"
2018-09-03Let the front-end know the current account is a moderatorThibaut Girka
2018-09-03[Glitch] Skip VS15 (Emoji textual presentation)Thibaut Girka
Port a060beee726de5295e1f608231975a90b7709a0a to glitch-soc
2018-08-31Add option to not automatically unfold content warnings matching a regexpThibaut Girka
Fixes #678
2018-08-31[Glitch] When search enabled, display hint in search popoutThibaut Girka
Port 7901f9f63e156732ab10154c34f3c2d188471a9d to glitch-soc
2018-08-28[Glitch] Implement tag auto-completion by historyThibaut Girka
Port 460e380d386367b6809d319859e13d17a6a2acea to glitch-soc
2018-08-28Preserve hashtag casing in threaded modeThibaut Girka
Inspired by f9b23a5d6247445ea5b70b431c934a4bb99213bc
2018-08-23Update poylfills (fixes #662)Thibaut Girka
2018-08-22Add hashtag trendline support to glitch-soc flavourThibaut Girka
Port Mastodon's hashtag stats thing to glitch-soc. This doesn't change how hashtags are ordered, and doesn't add a trending hashtags section, but it does change how hashtag searches are rendered, displaying a trend line alongside each hashtag.
2018-08-22Add pinned accounts editorThibaut Girka
2018-07-31Drop glitch-style account bio fieldsThibaut Girka
Upstream's implementation has been merged a while ago and is the preferred way to set fields, as it is the only one compatible with upstream and is more user-friendly. This commit deletes the legacy glitch-soc FrontMatter functionality in order to clean up the code and make it easier to maintain.
2018-07-30[Glitch] Resize images by area instead of fixed dimensionsThibaut Girka
Port WebUI part of 0fb0037ca7ea9910b490818a1cc13f4005ba6134 to glitch-soc
2018-07-12Move privacyPreference to utilsThibaut Girka
2018-06-16[Glitch] Preserve newlines in delete & redraft and desktop notificationsThibaut Girka
Port c75493755f482d0506884b1f7b7b44e5306a4d8b to glitch-soc
2018-06-15Port 85470ec872a39c475d872f685dadeac849832a98 to glitch emoji picker.David Yip
Fixes #541.
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