thelounge/client/js/socket-events
Jérémie Astori 238e894377
Improve the version checking part of the changelog feature
- There is no client caching of the changelog/version anymore. Instead, server returns the expiration date of its cache, and that is used by the client as well.
- There is now a "Check now" button on the client that appears when data is stale. This means that info is fetched only once and never refreshed (it was refreshed every hour before) unless the user explicitly wants to check latest version, which in turn is as stale as server info is, i.e. 15 minutes max.
- Button style is shared with the "Join a channel" feature, `.btn-small` (not `.btn-sm` to be explicit that this is not a Bootstrap thing).
- Version checker content is now centralized in the `version_checker` template, instead of being partially in the checker template, partially in the Help template,  and partially in the code.
- A "Try again" button lets user attempt to fetch info instead of forcing them to reload the page.
- Use Flexbox to display a nicer version checker: icon is slightly bigger, and button is always aligned on the right.
- Changelog logic has been removed from `lounge.js` and moved into the component file.
- Changelog template is only passed what it needs instead of everything the server gives us.
- Public version now displays version checker, since server is caching things.
- Cleaner code overall.
2017-12-25 17:44:53 -05:00
..
auth.js Do not keep sign-in and loader references in memory 2017-11-27 19:39:16 +02:00
change_password.js Generate unique tokens for each login and session 2017-07-31 02:02:15 +03:00
changelog.js Improve the version checking part of the changelog feature 2017-12-25 17:44:53 -05:00
configuration.js Improve UI of the About section and changelog viewer 2017-12-22 22:46:11 -05:00
index.js Add changelog viewing and update checking 2017-12-22 16:26:12 -05:00
init.js Display the correct window on page reload 2017-12-23 20:46:43 -05:00
join.js Enforce dangling commas with ESLint 2017-11-15 01:35:15 -05:00
more.js Merge condensed messages when loading more history 2017-12-06 14:07:43 +02:00
msg.js Show notices and errors inline 2017-12-06 17:58:52 +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 Redraw channels 2017-09-19 11:59:56 +03:00
nick.js Add modules for socket events 2017-06-20 07:22:58 +01:00
open.js Synchornize unread marker when other client opens a channel 2017-10-01 11:52:34 +03:00
part.js Add modules for socket events 2017-06-20 07:22:58 +01:00
quit.js Remove channel containers from DOM after quitting network 2017-10-02 13:55:23 +02:00
sessions_list.js Implement session list 2017-09-26 10:56:08 +03:00
sign_out.js Generate unique tokens for each login and session 2017-07-31 02:02:15 +03:00
sync_sort.js Add modules for socket events 2017-06-20 07:22:58 +01:00
topic.js Add modules for socket events 2017-06-20 07:22:58 +01:00
users.js Enforce dangling commas with ESLint 2017-11-15 01:35:15 -05:00