thelounge/test
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
..
client Move the sign out button to the settings and empty local storage on sign out 2018-03-20 01:52:22 -04:00
commands Enforce object literal shorthand syntax with ESLint 2018-03-15 00:22:09 -04:00
fixtures Add message indexing 2018-03-08 20:23:29 +02:00
models Enforce object literal shorthand syntax with ESLint 2018-03-15 00:22:09 -04:00
plugins Fix some URLs not being sent as-is to the client 2018-03-13 22:08:19 +02:00
src Add a --config / -c option to the start CLI command to arbitrarily override any configuration key 2017-12-11 23:48:52 -05:00
tests Switch to Font Awesome 5 2018-03-11 15:57:35 -04:00
.nycrc-mocha Instrument client code before running tests 2018-02-20 15:32:30 +02:00
.nycrc-mocha-webpack Instrument client code before running tests 2018-02-20 15:32:30 +02:00
.nycrc-report Instrument client code before running tests 2018-02-20 15:32:30 +02:00
mocha-webpack.opts Instrument client code before running tests 2018-02-20 15:32:30 +02:00
mocha.opts Instrument client code before running tests 2018-02-20 15:32:30 +02:00
server.js Increase test timeout on CI 2018-02-28 22:42:21 +02:00
util.js Enforce object literal shorthand syntax with ESLint 2018-03-15 00:22:09 -04:00