thelounge/client/js
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
..
libs Add a notEqual block helper for Handlebars 2017-12-21 22:09:08 -05:00
socket-events Improve the version checking part of the changelog feature 2017-12-25 17:44:53 -05:00
autocompletion.js Update how textcomplete gets imported per the v0.16 changes 2017-12-18 23:15:08 -05:00
clipboard.js Format messages on copy 2017-09-03 11:27:53 +03:00
condensed.js Merge condensed messages when loading more history 2017-12-06 14:07:43 +02:00
constants.js Handle CHGHOST cap 2017-12-04 23:33:48 -05:00
join-channel.js Call the openForm function specifically when clicking on the context menu instead of relying on click handler 2017-12-22 12:18:49 -05:00
keybinds.js Use cross-platform modifier shortcut for Mousetrap when possible 2017-12-16 16:14:12 -05:00
loading-error-handlers.js Rename the error handlers file at loading time 2017-12-21 18:23:54 -05:00
localStorage.js Enforce dangling commas with ESLint 2017-11-15 01:35:15 -05:00
lounge.js Improve the version checking part of the changelog feature 2017-12-25 17:44:53 -05:00
options.js Insert user-configurable string when autocompleting nicks 2017-12-17 21:15:47 +02:00
render.js Add a keyboard handler to close the join form when hitting "Escape" 2017-12-22 12:18:48 -05:00
renderPreview.js Trigger keep to bottom for previews correctly 2017-11-26 15:49:31 +02:00
socket.js Do not keep sign-in and loader references in memory 2017-11-27 19:39:16 +02:00
sorting.js Enforce dangling commas with ESLint 2017-11-15 01:35:15 -05:00
utils.js Add whois and conversation as action to user contextmenu 2017-12-11 23:04:29 -05:00
webpush.js Fix error not showing up in failed push subscription 2017-12-24 22:12:36 +02:00