255 Commits

Author SHA1 Message Date
Thibaut Girka
b47a53f902 [Glitch] Rename from instance to server.
Port 46e806cd2f14a5e45d66b4c23040855202818984 to glitch-soc
2019-02-10 22:19:26 +01:00
Thibaut Girka
7ed2aeb6e9 [Glitch] Allow multiple files upload through web UI, including drag & drop
Port 750c67660de753065ec160b4e389ba0dda2f81cc to glitch-soc
2019-02-10 21:44:14 +01:00
Thibaut Girka
a963ea67dd [Glitch] Add missing rejection handling for Promises
Port missing parts from 2c51bc0ca5a4c3a4bb140b4b40dabdda859ebb94 to glitch-soc
2019-02-10 21:44:14 +01:00
Marek Ľach
a0a8203a0b Minor description corrections 2019-02-03 00:30:34 +01:00
Thibaut Girka
e9060b04d4 [Glitch] Hide floating action button on search and getting started pages
Port 30af4ee65ff43c17d6f7b1b64d6bf1d8699f37c8 to glitch-soc
2019-01-20 11:54:38 +01:00
tmm576
9b5810b3e9 Allow event defaults on index for text data transfer (#9840) 2019-01-20 11:53:22 +01:00
Thibaut Girka
5684cd090c [Glitch] make draggingOver state off correctly
Port d6433b393162bcfd7c6cfaf18abb9d6b6f6aef11 to glitch-soc
2019-01-16 14:50:17 +01:00
Thibaut Girka
7baf15675f Add local setting to disable swipe-to-change-columns 2019-01-05 21:47:48 +01:00
Thibaut Girka
e77ceb1b29 [Glitch] Update dependencies for Node.js (2018-12-31)
Port compatibility changes from 8f5fdab5bf681ff45a07965940bc45c9061a2f89 to glitch-soc
2019-01-02 16:07:33 +01:00
Thibaut Girka
056a8a8ee4 Allow disabling media confirmation from the confirmation dialog itself 2018-12-18 21:54:34 +01:00
Thibaut Girka
490d8fff0b Remove dead code 2018-12-18 21:39:35 +01:00
Thibaut Girka
c03cbb9471 [Glitch] Save onlyMedia prop when pinning column
Port 5ea643b27908b14bd89ff068fc87e446e8cbcd32 to glitch-soc
2018-12-18 21:39:35 +01:00
Thibaut Girka
1a9e78b9bc [Glitch] Add exact attribute to WrappedRoute for community timeline
Port 46061dc041b0a2a4a3907976cc3432abdb1d67ec to glitch-soc
2018-12-18 21:39:35 +01:00
Thibaut Girka
1fb4bf87f7 [Glitch] Add media timeline
Port 7403e5d306d36c83bfb80cd900235373186cd51a to glitch-soc
2018-12-18 21:39:35 +01:00
Thibaut Girka
36d27e2891 Sandbox toot embeds in the embed modal
It should not be necessary thanks to our Content Security Policy, but best
be sure in case a server's CSP is incorrect. Also, avoids a CSP warning about
loading remote scripts.
2018-12-17 22:22:29 +01:00
Thibaut Girka
39c8a71df8 Do not crash the whole UI when loading an invalid column 2018-11-28 22:36:01 +01:00
Thibaut Girka
bf92e7aaa6 [Glitch] Implement adding a user to a list from their profile
Port bb5558de627ca9bc26949570025f6193cd7cbd98 to glitch-soc
2018-11-09 14:50:08 +01:00
Thibaut Girka
bb1103d974 Really fix HotKeys 2018-10-10 17:40:06 +02:00
Thibaut Girka
d0b1369a85 Fix app-wide hotkeys randomly failing to work 2018-10-09 12:10:51 +02:00
Thibaut Girka
a3677a828d [Glitch] Change documentation URL
Port 28401962caff028f328d674878e1f0abd16ffdfd to glitch-soc
2018-10-07 22:56:24 +02:00
Thibaut Girka
fa18859b20 [Glitch] Adjust beforeUnload conditions
Port 05f90e3695c410526fc7fa79fc6a9bdaa717cb87 to glitch-soc
2018-09-28 17:09:25 +02:00
Thibaut Girka
1cb3af21c5 Autofocus comment textarea in report modal 2018-09-13 17:03:48 +02:00
Thibaut Girka
59de2868c1 Fix media description in various media modals 2018-09-11 18:29:19 +02:00
Thibaut Girka
65f625cf23 [Glitch] Hide floating action button on thread views
Port f66a7860291e6b2fef1844b580c22296dbad9202 to glitch-soc
2018-09-11 16:29:46 +02:00
Thibaut Girka
324ce93368 Add preferences for notification badges 2018-09-07 20:37:17 +02:00
Thibaut Girka
b28cbb8b25 Add unread notifications badge to the mobile navbar 2018-09-07 20:37:17 +02:00
Thibaut Girka
0f155af32a Add notification badge to favicon 2018-09-07 20:37:17 +02:00
Thibaut Girka
d315f1dc02 Count unread notifications when window loses focus 2018-09-07 20:37:17 +02:00
Thibaut Girka
8e862ecf8d [Glitch] Add aria-label to floatingActionButton
Port 7c12c7b1246b991c68f4b51573538e02b3968beb to glitch-soc
2018-09-03 18:18:39 +02:00
Thibaut Girka
4a686ddf8a [Glitch] On the mobile UI, move the search column to the right
Port 20bb90ced60fdac4ca254b43dad5615b1549da26 to glitch-soc
2018-08-31 18:33:46 +02:00
Thibaut Girka
37a00d4c1d [Glitch] Add search item to tab bar for mobile devices
Port c9cbb8de703e321c0d152813a2e22471ffe5eef7 to glitch-soc
2018-08-31 18:33:46 +02:00
Thibaut Girka
76a3f373e3 [Glitch] Use withRouter for TabsBar
Port 61e62757816cd8cfe38944d509f8ec13d7d86912 to glitch-soc
2018-08-31 18:33:46 +02:00
Thibaut Girka
5f035a2a1a [Glitch] Move "compose" on mobile to floating action button
Port e72db6d9dd53a9d44f641bdf6bce7e64548e7d94 to glitch-soc
2018-08-31 18:33:46 +02:00
Thibaut Girka
70c308c4aa [Glitch] When search enabled, display hint in search popout
Port 7901f9f63e156732ab10154c34f3c2d188471a9d to glitch-soc
2018-08-31 18:33:46 +02:00
Thibaut Girka
360fbf1bd4 Add pinned accounts editor 2018-08-22 16:18:23 +02:00
Thibaut Girka
c789181626 [Glitch] Add hotkey for follow requests
Port 25f6f41052b52a765a74e9e16d7411750ae46221 to glitch-soc
2018-08-20 21:25:02 +02:00
Thibaut Girka
0c091475df Make non-link ColumnLinks behave as links 2018-08-20 20:08:13 +02:00
Thibaut Girka
534439e73b Add focal points support in the composer 2018-08-18 17:53:20 +02:00
Thibaut Girka
175c2155a9 [Glitch] Compensate for scrollbar disappearing when media modal
Port 60df87f6f0fb8afd9a4e750917eff7c425b62891 to glitch-soc
2018-08-01 00:18:42 +02:00
Thibaut Girka
d2b3eebe00 [Glitch] Show media modal on public timeline
Port e0b1e17bd04d7f9b533ab462aee4544a5f5fb926 to glitch-soc
2018-08-01 00:18:42 +02:00
Thibaut Girka
82ab5aacb2 Prevent scrolling main frame when navigating in image gallery with arrow keys 2018-07-26 08:42:25 +02:00
Thibaut Girka
02326a4322 [Glitch] Use LoadingBar instead of blur to indicate that an image is loading
Port 955d5d36e80259d8c10a0246d359f35f63de059d to the glitch-soc flavour
2018-07-24 21:20:18 +02:00
Thibaut Girka
b1ed2b1d03 Fix focusing search bar with hotkeys 2018-07-24 21:15:21 +02:00
Thibaut Girka
c600bcfe1d Fix focusing composer textarea on “new toot” hotkey 2018-07-24 21:15:21 +02:00
Thibaut Girka
037228cf03 Fix routing issues, especially keyboards shortcuts changing location 2018-07-24 21:14:50 +02:00
Thibaut Girka
0bb1720495 Add client-side custom filter support to glitch-soc
Port cdb101340a20183a82889f811d9311c370c855e5 to glitch-soc,
but without dropping support for regexp filters yet.
2018-07-10 14:06:04 +02:00
Thibaut Girka
f0161702d8 [Glitch] Submit report using meta key
Port 64d7a63f1830e970a6196448cae443ca5d55d1f9 to glitch-soc
2018-06-21 22:28:50 +02:00
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
Thibaut Girka
f86d280fd6 Use props.router instead of context.router, as we are using withRouter 2018-05-31 14:39:02 +02:00
Thibaut Girka
fbc25bdd2d [Glitch] Do not crash in getStatusIds when there is a gap in the timeline
Port b1938d7853f1d52f9bd99244c550cc609dd81202 to glitch-soc
2018-05-29 21:25:28 +02:00