thelounge/client/js/socket-events
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
..
auth.js Enforce object literal shorthand syntax with ESLint 2018-03-15 00:22:09 -04:00
change_password.js Auto-fix code for padding-line-between-statements rule 2018-02-20 09:28:04 +02:00
changelog.js Remove deprecated jQuery calls 2018-02-01 12:15:51 +02:00
configuration.js Offer optional syncing of client settings 2018-03-09 10:36:29 +01:00
index.js Offer optional syncing of client settings 2018-03-09 10:36:29 +01:00
init.js Store visibility status of sidebar menus 2018-03-16 09:03:16 +02:00
join.js Insert channel/user into channel list at alphabetically sorted point, not just the end 2018-03-12 12:42:59 +00:00
more.js Auto-fix code for padding-line-between-statements rule 2018-02-20 09:28:04 +02:00
msg.js Rework how unread marker is moved when status messages are hidden 2018-03-15 17:52:04 +02:00
msg_preview.js Render link previews in browser idle event 2017-09-06 22:03:56 +03:00
names.js Add modules for socket events 2017-06-20 07:22:58 +01:00
network.js Sync network status and security to client UI 2018-02-19 13:12:01 +02:00
nick.js Auto-fix code for padding-line-between-statements rule 2018-02-20 09:28:04 +02:00
open.js Synchornize unread marker when other client opens a channel 2017-10-01 11:52:34 +03:00
part.js Remove deprecated jQuery calls 2018-02-01 12:15:51 +02:00
quit.js Remove .chanlist wrapper 2018-03-08 08:50:04 +02:00
sessions_list.js Move the sign out button to the settings and empty local storage on sign out 2018-03-20 01:52:22 -04:00
setting.js Offer optional syncing of client settings 2018-03-09 10:36:29 +01:00
sign_out.js Move the sign out button to the settings and empty local storage on sign out 2018-03-20 01:52:22 -04:00
sync_sort.js Remove .chanlist wrapper 2018-03-08 08:50:04 +02:00
topic.js Remove deprecated jQuery calls 2018-02-01 12:15:51 +02:00
users.js Enforce dangling commas with ESLint 2017-11-15 01:35:15 -05:00