miniflux-legacy/templates
Mathias Kresin cd13efeabf implement frontend autoupdate
Only the unread counter is updated right know.

The AutoUpdate Feature is designed on the premise of don't wasting resources. A
distinction is made between updates when Miniflux is visible or hidden.

To determine the visibility status, the Page Visibility API is used. The API is
available starting with Chrome 33, Firefox 18 and IE10. [https://developer.mozilla.org/en-US/docs/Web/Guide/User_experience/Using_the_Page_Visibility_API]
As IE9 returns an undefined, it doesn't break the compatibility at least.

If Miniflux is visible, the unread counter on the web page is updated as soon as
a mismatch between the counter and the number of unread articles in the database
is found.

If Miniflux is hidden, the timestamp of the most recent article from each feed
is compared with the value from the last run. We have an update If the timestamp
of the latest article is greater than the stored one and the latest article is
unread. The web page title is updated with a ? symbol to notify the user and the
update check pauses till Miniflux gets visible again. If Miniflux gets visible
again, the number of unread articles is queried from the database, the unread
counter on the web page is updated and finally the ? symbol is removed from the
web page title.

This way I can use my fever API client to read new articles (or at least the
latest article) while Miniflux is hidden and as I've seen the new articles
already a new articles notification is prevented.

It's intentionally that the page does not reload automatically as long as
articles are visible. If I'm in hurry, I only scroll through the articles to
spot something interesting. Most of the time I don't reach the last article.
If the page is reloaded while I'm away, I would have to scan from the top again.

If we're on a nothing_to_read page and have unread articles in the database, a
redirect to the unread page will be done.

The default update check interval is 10 minutes and can be changed on the
settings page. A zero value disables the update check entirely.

fixes #213
2015-01-28 05:26:55 +01:00
..
.htaccess Move everything to the top-level directory 2013-05-21 12:34:39 +02:00
about.php adjust alert css classes to the message severity 2015-01-18 01:26:28 +01:00
add.php Change navigation for feeds sub-menus 2015-01-14 20:18:24 -05:00
api.php adjust alert css classes to the message severity 2015-01-18 01:26:28 +01:00
bookmark_links.php remove multiple definition of item id 2014-11-20 10:43:29 +01:00
bookmarks.php adjust alert css classes to the message severity 2015-01-18 01:26:28 +01:00
config.php implement frontend autoupdate 2015-01-28 05:26:55 +01:00
confirm_auto_update.php adjust alert css classes to the message severity 2015-01-18 01:26:28 +01:00
confirm_flush_items.php Improve usability (merge pull-request #226) 2014-07-26 07:33:15 -04:00
confirm_remove_feed.php Improve usability (merge pull-request #226) 2014-07-26 07:33:15 -04:00
console.php Update french translation and typo fix 2013-08-29 19:54:37 -04:00
database.php adjust alert css classes to the message severity 2015-01-18 01:26:28 +01:00
edit_feed.php adjust alert css classes to the message severity 2015-01-18 01:26:28 +01:00
feed_items.php remove html tags from translations 2015-01-18 14:33:19 +01:00
feeds.php remove html tags from translations 2015-01-18 14:33:19 +01:00
help.php improve sub navigation on config page 2015-01-13 22:50:59 +01:00
history.php adjust alert css classes to the message severity 2015-01-18 01:26:28 +01:00
import.php Change navigation for feeds sub-menus 2015-01-14 20:18:24 -05:00
item.php remove multiple definition of data-item-page 2014-12-26 23:01:05 +01:00
keyboard_shortcuts.php adjust alert css classes to the message severity 2015-01-18 01:26:28 +01:00
layout.php remove html tags from translations 2015-01-18 14:33:19 +01:00
login.php use radio buttons to select the login database 2015-01-18 13:25:38 +01:00
new_db.php Minor cleanups 2015-01-17 18:53:40 -05:00
paging.php Code refactoring (JS and templates) 2013-10-14 22:38:07 -04:00
services.php improve sub navigation on config page 2015-01-13 22:50:59 +01:00
show_help.php Remove PicoTools 2014-03-16 21:56:43 -04:00
show_item.php Don't show an empty item-content-enclosure div 2015-01-19 19:43:15 -05:00
show_more.php Improve others themes 2014-02-09 12:32:46 -05:00
status_links.php remove multiple definition of item id 2014-11-20 10:43:29 +01:00
unread_items.php remove html tags from translations 2015-01-18 14:33:19 +01:00