Commit Graph

1438 Commits

Author SHA1 Message Date
Jérémie Astori dbe81f1e59
Merge pull request #2254 from thelounge/astorije/sign-out-settings
Empty local storage on sign out and move the sign out button to the settings
2018-03-20 21:06:44 -04:00
Pavel Djundik 528d2b5fb7
Scroll channel list only when using keybinds 2018-03-20 19:27:07 -04:00
Jérémie Astori d7d8a51332
Merge pull request #2262 from realies/master
stop propagation, prevent input history call when alt is involved
2018-03-20 19:23:22 -04:00
realies 72af0a4947 stop propagation, prevent input history call when alt is involved 2018-03-20 21:00:03 +02:00
Pavel Djundik 3c1db1d7d6 Bind formatting hotkeys on input element
And bind only one event for all of the hotkeys
2018-03-20 20:57:19 +02:00
Max Leiter 817141a781 Fix typo 2018-03-20 13:35:54 +07:00
Jérémie Astori d1548572d4
Move the sign out button to the settings and empty local storage on sign out
This change improves privacy/security by ensuring all local storage (which includes settings, etc.) is destroyed on sign out or when revoking a remote session. Because signing out is now more "risky", the button has been moved to the settings along with other existing sessions.

This commit:

- Removes the power/sign-out icon from the sidebar footer (gives additional room for when the admin panel gets added)
- Adds a "Sign out" button next to the current session info in the settings session list
- Renames "Disconnect" buttons into "Revoke" to better clarify the intent (I will admit that I borrowed the wording from Telegram)
- Fixes incorrect `localStorage.remove` method
- Uses Sinon.js to mock wrappers for `window.localStorage` and `window.location` (does not mock those themselves, in the "Do not mock what you do not own" fashion, mock our layer instead). I expect we will be able to test a bit more from the UI with this. A good next candidate will be the `mockLogger` things.
2018-03-20 01:52:22 -04:00
Pavel Djundik 5d6ea4f32e
Merge pull request #2251 from thelounge/xpaw/canplay
Render video and audio previews only after canplay event fires
2018-03-19 20:08:14 +02:00
Pavel Djundik 77a98bfd14 Render video and audio previews only after canplay event fires 2018-03-19 12:47:36 +02:00
Jérémie Astori 883b6dbef2
Improve readability and styling of shortcut keys in the Help section 2018-03-19 01:45:48 -04:00
Jérémie Astori 8ecacc9978
Merge pull request #2186 from MaxLeiter/emoji-tip
Improve accessibility for emoji
2018-03-18 15:50:57 -04:00
Max Leiter 9053a0bb6a Strikethrough and underline support 2018-03-18 12:37:53 -07:00
Max Leiter 01753a814c Improve accessibility for emoji 2018-03-18 12:13:48 -07:00
Al McKinlay 6195e5d8f6 Save collapsed state to localstorage 2018-03-18 16:12:10 +00:00
Jérémie Astori 8d72cb1416
Remove transition on `box-shadow` as it affects performance (and is not _that_ noticeable) 2018-03-18 03:00:49 -04:00
Jérémie Astori 8100f98d6b
Handle scrolls 0-45° as horizontal (opening the menu); 45-90° as vertical (chat scroll) 2018-03-18 01:18:43 -04:00
Jérémie Astori 6828cd1075
Fix transitions of sidebar overlay 2018-03-17 21:08:08 -04:00
Pavel Djundik 84f460d9b8 Make slideout work anywhere on the screen
Also makes touchmove event passive
2018-03-17 11:40:15 +02:00
Pavel Djundik 5bb0b198e6 Disable scrolling through sidebar overlay 2018-03-17 11:35:33 +02:00
Jérémie Astori 1e8c0547ec
Add a semi-opaque overlay when channel list is open on mobile 2018-03-17 03:13:43 -04:00
Jérémie Astori cf49a3427e
Ensure links in chats cannot be opened by accident when closing the channel list 2018-03-17 03:12:30 -04:00
Jérémie Astori c395e74e64
Merge pull request #2235 from thelounge/xpaw/store-sidebar-visibility
Store visibility status of sidebar menus
2018-03-16 23:57:24 -04:00
Jérémie Astori 4c62b0d50c
Merge pull request #2225 from thelounge/mcinkay/2224-collapse-select-lobby
Select lobby of network when collapsing network
2018-03-16 21:49:16 -04:00
Daniel STANCU bf4d55564c Incorrect spelling 2018-03-17 00:44:19 +02:00
Pavel Djundik fdd321311e Keep input reference as jquery object 2018-03-16 18:37:12 +02:00
Pavel Djundik b6cde34a08 Automatically focus input when typing into nothing 2018-03-16 18:11:02 +02:00
Pavel Djundik 44b9597981 Do not handle modifier hotkeys if input is not focused 2018-03-16 18:07:19 +02:00
Pavel Djundik 7267f89377 Do not aggressively focus input when clicking anywhere 2018-03-16 18:07:19 +02:00
Pavel Djundik 103c3395dd Store visibility status of sidebar menus
Fixes #51
Closes #1606
2018-03-16 09:03:16 +02:00
Jérémie Astori 640d8df487
Merge pull request #2236 from thelounge/xpaw/fix-2214
Rework how unread marker is moved when status messages are hidden
2018-03-16 02:15:43 -04:00
Jérémie Astori 49f1a01dba
Merge pull request #2206 from ESWAT/keybind-cycle-lobbies
Add keybinds for cycling through networks/lobbies
2018-03-16 01:37:22 -04:00
Pavel Djundik 3de3d05b8a Rework how unread marker is moved when status messages are hidden
Fixes #2214
2018-03-15 17:52:04 +02:00
Philip Karpiak c0f430e509 Add keybinds for cycling through networks/lobbies 2018-03-15 10:10:20 -04:00
Al McKinlay 1fbdb170e4 Select lobby of network when collapsing network
Fixes #2224
2018-03-15 08:32:21 +00:00
Jérémie Astori 00bca229f0
Enforce object literal shorthand syntax with ESLint 2018-03-15 00:22:09 -04:00
Pavel Djundik f07a6db7ab
Merge pull request #2199 from thelounge/astorije/sign-in-logo
Add logo to the sign in page
2018-03-14 10:57:41 +02:00
Pavel Djundik 9414989fc1
Merge pull request #2212 from thelounge/xpaw/hide-chan-list
Allow hiding channel list on desktop
2018-03-14 10:54:09 +02:00
Pavel Djundik 8a7408097d
Merge pull request #2210 from thelounge/xpaw/undate
Use undate library to handle modifier keys
2018-03-14 09:05:39 +02:00
Jérémie Astori ed67dc5de5
Add logo to the sign in page 2018-03-13 23:05:11 -04:00
Pavel Djundik a56ad36a42 Do not repaint theme on page load 2018-03-13 17:38:01 +02:00
Pavel Djundik 74220d8a24 Allow hiding channel list on desktop
Fixes #17
2018-03-13 17:00:02 +02:00
Pavel Djundik 7e2edc2c9f Use undate library to handle modifier keys 2018-03-13 12:43:48 +02:00
Jérémie Astori 288aaac465
Merge pull request #2152 from thelounge/yamanickill/sort-channels-on-join
Insert channel/user into channel list at alphabetically sorted point, not just the end
2018-03-13 00:37:59 -04:00
Pavel Djundik 0dc76e773f
Merge pull request #2185 from thelounge/xpaw/flexbox-viewport
Convert the entire viewport to use flexbox
2018-03-12 23:07:48 +02:00
Pavel Djundik 43fc531a6f Fix join and part icons 2018-03-12 17:37:57 +02:00
Al McKinlay 5ce67ba093 Insert channel/user into channel list at alphabetically sorted point, not just the end
Don't sort queries/users after special chans


Set all users in tests to be of type query


Add test for not inserting infront of lobby


Break after finding the index, otherwise it always adds it to the end


Add checking for lobby in first test


Fix off-by-one error on the frontend


Fix utterly idiotic issue adding a duplicate of the channel we are on rather than the new user when we query


Check that we always insert before first special chan
2018-03-12 12:42:59 +00:00
Jérémie Astori da5a876f93
Use warning icon for insecure connections 2018-03-11 15:57:35 -04:00
Jérémie Astori c28fda6b28
Switch to Font Awesome 5 2018-03-11 15:57:35 -04:00
Al McKinlay 1a9ad1a7e3 Add advanced toggle and hide certain settings by default 2018-03-11 17:47:47 +00:00
Pavel Djundik b01e01bc19 Convert most of the layout to flexbox, make sidebar an overlay 2018-03-11 00:23:43 +02:00