thelounge/client/views
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
..
actions Let user know someone is making a CTCP request against their nick 2018-02-22 00:42:33 -05:00
windows Improve readability and styling of shortcut keys in the Help section 2018-03-19 01:45:48 -04:00
chan.tpl Cleanup sidebar to use flexbox 2018-03-08 08:50:04 +02:00
chat.tpl Cleanup chat/userlist to use flexbox, fix a couple of bugs 2018-03-05 18:17:13 +02:00
contextmenu_divider.tpl Add a specific item divider for the context menu, allowing some margin 2016-03-20 17:40:12 -04:00
contextmenu_item.tpl Add whois and conversation as action to user contextmenu 2017-12-11 23:04:29 -05:00
date_marker.tpl Build template list at Webpack time instead of manually keeping this in sync with the views folders 2018-01-02 01:38:57 -05:00
image_viewer.tpl Set decoding=async on image previews 2017-12-29 21:57:52 +02:00
index.js Auto-fix code for padding-line-between-statements rule 2018-02-20 09:28:04 +02:00
join_channel.tpl views/join_channel: disable autocompletion of form inputs 2017-12-28 13:51:28 +01:00
msg.tpl Merge pull request #1764 from thelounge/xpaw/fix-data-from 2017-11-30 11:28:00 +02:00
msg_action.tpl Fix data-from on messages 2017-11-29 20:45:19 +02:00
msg_condensed.tpl Implement condensed messages option entirely with CSS 2017-08-30 15:43:31 +03:00
msg_condensed_toggle.tpl Move condense caret to the right, animate transition, add hover state (with transition), reuse thumbnail toggle style 2017-08-13 16:16:38 -04:00
msg_preview.tpl Try to find og:video and og:audio on html pages 2018-03-07 12:53:56 +02:00
msg_preview_toggle.tpl Fix /expand command also expanding condensed status messages 2017-09-07 19:50:00 -04:00
msg_unhandled.tpl Fix missing attributes on unhandled messages 2017-11-10 16:18:44 +02:00
network.tpl Save collapsed state to localstorage 2018-03-18 16:12:10 +00:00
session.tpl Move the sign out button to the settings and empty local storage on sign out 2018-03-20 01:52:22 -04:00
unread_marker.tpl Improve styling of the unread marker 2016-07-05 15:32:41 -04:00
user.tpl Move nickname rendering to a single template 2017-06-22 13:28:17 +03:00
user_filtered.tpl Fix user list search not responding to clicks on search results 2017-05-13 18:34:27 -04:00
user_name.tpl Move nickname rendering to a single template 2017-06-22 13:28:17 +03:00
version_checker.tpl Improve the version checking part of the changelog feature 2017-12-25 17:44:53 -05:00