hardlounge/src
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
..
command-line Fix command line index parsing options (--home and --config) twice 2017-12-11 23:53:51 -05:00
models Fix #1883: message gaps when reconnecting 2017-12-23 11:36:52 +02:00
plugins Improve the version checking part of the changelog feature 2017-12-25 17:44:53 -05:00
client.js Merge pull request #1778 from thelounge/xpaw/lazy-init 2017-12-05 12:03:01 +02:00
clientManager.js Only use helpers and not shared variables around path helpers 2017-12-07 23:02:32 -05:00
helper.js Color all references to deprecations in bold red 2017-12-11 23:48:52 -05:00
identification.js Avoid escaping quotes whenever possible 2017-11-26 17:34:28 -05:00
log.js Define a raw logger to avoid using console.log, use it in extra help for environment variables, and add a test for this 2017-12-11 23:48:51 -05:00
server.js Improve UI of the About section and changelog viewer 2017-12-22 22:46:11 -05:00
userLog.js Write correct timestamp to user log 2017-09-14 10:42:21 +03:00