Commit Graph

37 Commits

Author SHA1 Message Date
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
Mathias Kresin
a4d8abb631 Move update icon and update icon blinking to css
Use CSS3 Animation for the "loading icon" blinking and move the definition of
the loading icon to CSS as well.

CSS3 Animations are supported by IE10, Firefox and using the -webkit prefix by
Chrome and Safari.

I've dropped the usage of element.classList in favour of supporting refreshing/
article downloading in IE9 (again). The classList stuff isn't necessarily
needed, as the elements in question only get one or no class assigned.

I've dropped no longer supported css options like:

the appearance option isn't supported by any browser, the -webkit-appearance
doesn't change anything visible.

-webkit-font-smoothing support was dropped in chrome 22 and font-smoothing
isn't specified anywhere.
2014-12-26 23:01:05 +01:00
Frédéric Guillot
f4efaadad1 Remove Google auth (openid is deprecated) and Persona auth (useless) 2014-11-07 20:53:50 -05:00
Frédéric Guillot
6ed3ec788a Change loading icon to use an utf8 symbol 2014-02-22 21:50:54 -05:00
Frédéric Guillot
7648191239 Fix Mozilla Persona login 2013-12-22 21:43:29 -05:00
Frédéric Guillot
b3b1e8bef7 Code refactoring (JS and templates) 2013-10-14 22:38:07 -04:00
Frédéric Guillot
14516ea63b Add item links for the feed-items page 2013-10-10 22:18:12 -04:00
Frédéric Guillot
c2ce24a427 Add items sorting by date 2013-09-14 19:05:52 -04:00
Frederic Guillot
cc0adbb750 Improve app.js and update french translation 2013-09-14 12:10:38 -04:00
Frederic Guillot
a221fdbf8b Merge branch 'master' of https://github.com/chrislemonier/miniflux 2013-09-14 11:34:08 -04:00
chrislemonier
95fb7882dc Add Google Style 2 key shortcuts for main pages 2013-09-11 15:00:00 -07:00
Frédéric Guillot
517ac8dcf0 Add the possibility to link a Google Account or a Mozilla Account to Miniflux 2013-09-06 22:57:09 -04:00
Frederic Guillot
d12fa5b76b Add the last checked date to the feeds list 2013-08-04 15:37:56 -04:00
Frederic Guillot
e7be31c92c Add the possibility to disable/enable a feed 2013-08-04 15:15:12 -04:00
Frederic Guillot
01f7dd9802 Download full content of articles (like Readability) 2013-07-28 20:10:07 -04:00
Frederic Guillot
bf5571fbe1 Improve help popup (pull-request) 2013-07-21 11:11:41 -04:00
Frederic Guillot
a629ff477b Merge branch 'master' of git://github.com/jamesscottbrown/miniflux into popup 2013-07-21 10:23:05 -04:00
Frederic Guillot
c9eb6a47a6 Improve mark items as read 2013-07-17 18:55:28 -04:00
James Scott-Brown
eaa44052fd Provide pop-up lisitng keyboard shortcuts
Pressing the question-mark key (?) produces a pop-up listing the
keyboard shortcuts. Pressing q whilst this window has focus closes it.

I've provided crude translations for the additional ? and q shortcuts,
obtained from Google Translate, but they should be checked by native
speakers.
2013-07-17 22:16:07 +01:00
doubleface
66a27f5866 Only mark as read items displayed on the page 2013-07-16 09:00:14 -04:00
Frederic Guillot
7de72b41e4 Click on "mark as unread" use an ajax request now 2013-07-14 13:01:45 -04:00
Thririot Christophe
8926a7f6c8 Mark as read does not reload the page anymore 2013-07-13 16:29:30 -04:00
Frederic Guillot
a5e9d41561 Add keyboard shortcuts to the bookmarks page 2013-07-11 23:41:45 -04:00
Frederic Guillot
a89d8c0005 Minor cleanup 2013-07-10 22:33:23 -04:00
Luca Marra
ac76db0052 restore empty line at the end of file 2013-07-10 16:47:54 +02:00
Luca Marra
c619cc35d2 added scrollTo on keyboard navigation fixes #73 and #45 2013-07-10 16:44:53 +02:00
Frederic Guillot
a79211d47f Improve items paging, get config values, add option to set the number of items per page and add comments 2013-07-06 10:50:37 -04:00
Frederic Guillot
667f3f0773 Add items paging 2013-07-05 22:37:19 -04:00
Frederic Guillot
4bf0c7a4ef Add vim shortcuts to the help page 2013-07-02 21:50:53 -04:00
ayodio
abd4be7e1c vim like navigation 2013-07-02 12:29:30 +02:00
Frederic Guillot
d292974394 Fix bug multiple marked_as_read when open original link with keyboard shortcuts 2013-06-28 21:52:34 -04:00
Frederic Guillot
17fbb3de91 Refactoring of bookmarks 2013-06-14 23:12:08 -04:00
Frederic Guillot
f9146f078a Update dynamically unread counter in multiple places 2013-06-14 20:37:45 -04:00
Frederic Guillot
a48afcbc0d Merge branch 'updatecount' of https://github.com/doubleface/miniflux 2013-06-14 20:10:15 -04:00
doubleface
467f191a51 Automatic selection of the first element for mark as read 2013-06-14 10:53:04 -04:00
doubleface
bdfd7a19a3 Update the number of unread items when marking an item as read 2013-06-14 08:43:50 -04:00
Frederic Guillot
8fd7b18927 Move everything to the top-level directory 2013-05-21 12:34:39 +02:00