about summary refs log tree commit diff
path: root/app/javascript/flavours/glitch/util
AgeCommit message (Collapse)Author
2019-03-26[Glitch] Do not set CSRF Token when no csrf headerHinaloe
Port 68f2211f00dfa3f823ad780ed748c1af0078a0cf to glitch-soc
2019-03-16[Glitch] fix: update to emoji-mart 2.10.0Nolan Lawson
Port db06b25376ac7e844e86fb9890fa9f1c2edd2d60 to glitch-soc
2019-03-08[Glitch] Fix public timelines being broken by new toots when they are not ↵Eugen Rochko
mounted Port be1c634b2b4372a525d304d2ff830392f04c5cc5 to glitch-soc
2019-03-06Use server-provided poll limits instead of hardcoded onesThibaut Girka
Also does not enable polls if no limits are provided by the server
2019-02-10[Glitch] Add WebP supportThibaut Girka
Port 5092d17f2936146fa26e5d8a9b9e391f77010f28 to glitch-soc
2019-02-01Fix hashtag processing when sending tootsThibaut Girka
This fixes crashes in pleroma when writing toots with a content warning, since pleroma inserts a “nsfw” hashtag that isn't part of the toot's text.
2019-01-02[Glitch] Update dependencies for Node.js (2018-12-31)Thibaut Girka
Port compatibility changes from 8f5fdab5bf681ff45a07965940bc45c9061a2f89 to glitch-soc
2019-01-02[Glitch] Update emoji codepoint mappings to v11.0Thibaut Girka
Port 2ee779dcd3aaec4f1384400ba68e2422ea878156 to glitch-soc
2018-12-20[Glitch] Display customized mascot in web UIThibaut Girka
Port relevant parts of 9d4541c612b506889675c4c19ced5cd17ad3710f to glitch-soc
2018-11-19Move URLs to backend in their own fileThibaut Girka
2018-11-09[Glitch] Implement adding a user to a list from their profileThibaut Girka
Port bb5558de627ca9bc26949570025f6193cd7cbd98 to glitch-soc
2018-10-31[Glitch] Port some of upstream's getting started footer linksThibaut Girka
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!