hardlounge/client/js
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
..
libs Improve accessibility for emoji 2018-03-18 12:13:48 -07:00
socket-events Move the sign out button to the settings and empty local storage on sign out 2018-03-20 01:52:22 -04:00
auth.js Move the sign out button to the settings and empty local storage on sign out 2018-03-20 01:52:22 -04:00
autocompletion.js Enforce object literal shorthand syntax with ESLint 2018-03-15 00:22:09 -04:00
clipboard.js Format messages on copy 2017-09-03 11:27:53 +03:00
condensed.js Remove unintentionally included lodash in client build 2018-02-28 17:19:33 +02:00
constants.js Enforce object literal shorthand syntax with ESLint 2018-03-15 00:22:09 -04:00
join-channel.js Auto-fix code for padding-line-between-statements rule 2018-02-20 09:28:04 +02:00
keybinds.js Keep input reference as jquery object 2018-03-16 18:37:12 +02:00
loading-error-handlers.js Incorrect spelling 2018-03-17 00:44:19 +02:00
localStorage.js Move the sign out button to the settings and empty local storage on sign out 2018-03-20 01:52:22 -04:00
location.js Move the sign out button to the settings and empty local storage on sign out 2018-03-20 01:52:22 -04:00
lounge.js Move the sign out button to the settings and empty local storage on sign out 2018-03-20 01:52:22 -04:00
options.js Enforce object literal shorthand syntax with ESLint 2018-03-15 00:22:09 -04:00
render.js Save collapsed state to localstorage 2018-03-18 16:12:10 +00:00
renderPreview.js Render video and audio previews only after canplay event fires 2018-03-19 12:47:36 +02:00
slideout.js Handle scrolls 0-45° as horizontal (opening the menu); 45-90° as vertical (chat scroll) 2018-03-18 01:18:43 -04:00
socket.js Enforce object literal shorthand syntax with ESLint 2018-03-15 00:22:09 -04:00
sorting.js Enforce object literal shorthand syntax with ESLint 2018-03-15 00:22:09 -04:00
userlist.js Scroll to newly joined/activated channels 2018-03-08 10:30:07 -06:00
utils.js Merge pull request #2235 from thelounge/xpaw/store-sidebar-visibility 2018-03-16 23:57:24 -04:00
webpush.js Incorrect spelling 2018-03-17 00:44:19 +02:00