hardlounge/client
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
..
audio Added badges and notifications 2014-07-08 01:15:10 +02:00
css Move the sign out button to the settings and empty local storage on sign out 2018-03-20 01:52:22 -04:00
img Add logo to the sign in page 2018-03-13 23:05:11 -04:00
js Move the sign out button to the settings and empty local storage on sign out 2018-03-20 01:52:22 -04:00
themes Move the sign out button to the settings and empty local storage on sign out 2018-03-20 01:52:22 -04:00
views Move the sign out button to the settings and empty local storage on sign out 2018-03-20 01:52:22 -04:00
index.html.tpl Move the sign out button to the settings and empty local storage on sign out 2018-03-20 01:52:22 -04:00
manifest.json Set start_url in manifest.json 2018-01-29 19:46:54 +02:00
robots.txt Normalize line endings 2014-09-13 14:29:45 -07:00
service-worker.js Update all links to thelounge repository 2018-02-21 22:47:52 -05:00