hardlounge/client/views
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
..
actions Add a notEqual block helper for Handlebars 2017-12-21 22:09:08 -05:00
windows Improve the version checking part of the changelog feature 2017-12-25 17:44:53 -05:00
chan.tpl Change content of tooltip and button when opening/closing join channel form 2017-12-22 12:18:48 -05:00
chat.tpl Only emit a single message per channel on init 2017-12-03 16:13:18 +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 Always create condensed wrapper 2017-09-02 18:31:47 +03:00
image_viewer.tpl Add Previous/Next cycling buttons to the image viewer 2017-07-23 13:14:27 -04:00
index.js Improve the version checking part of the changelog feature 2017-12-25 17:44:53 -05:00
join_channel.tpl Improve the version checking part of the changelog feature 2017-12-25 17:44:53 -05:00
msg_action.tpl Fix data-from on messages 2017-11-29 20:45:19 +02: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_condensed.tpl Implement condensed messages option entirely with CSS 2017-08-30 15:43:31 +03:00
msg_preview_toggle.tpl Fix /expand command also expanding condensed status messages 2017-09-07 19:50:00 -04:00
msg_preview.tpl Support video file previews 2017-12-13 17:52:07 -08:00
msg_unhandled.tpl Fix missing attributes on unhandled messages 2017-11-10 16:18:44 +02:00
msg.tpl Merge pull request #1764 from thelounge/xpaw/fix-data-from 2017-11-30 11:28:00 +02:00
network.tpl Add fix for undefined name being slugified 2017-04-21 09:32:57 +01:00
session.tpl Implement session list 2017-09-26 10:56:08 +03:00
unread_marker.tpl Improve styling of the unread marker 2016-07-05 15:32:41 -04: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
user.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