Commit Graph

48 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
f602ff50e2 adjust alert css classes to the message severity
Use panel classes for styling and leave error class for errors.
2015-01-18 01:26:28 +01:00
Mathias Kresin
360fc9076e improve sub navigation on config page
Don't hide the active element, it annoying to use the navigation if the
menu items changing there position with every click. Indicate the active
menu item instead, similar to the header navigation.

May I've worked to long with windows systems, but help and about have to
be the last menu items :-). I've reorderd the menu items to what I think
user need more often.

A sub-navigation should not change its parent heading. Changed that as
well.
2015-01-13 22:50:59 +01:00
Frederic Guillot
c2cbc00f22 Move condition 2015-01-10 19:51:27 -05:00
Mathias Kresin
f3f0881758 Move token regeneration to the advanced config section
And make clear which services get a new token.
2015-01-03 23:43:49 +01:00
Frédéric Guillot
c1d74b8332 Add favicon support 2014-12-24 17:54:27 -05:00
Frédéric Guillot
7d4d4e0193 Add image proxy to avoid https mixed content warnings 2014-12-24 15:58:24 -05:00
Frédéric Guillot
635e3bb813 Add Pinboard bookmark sync 2014-12-24 10:47:24 -05:00
Frédéric Guillot
4313909052 Add option to flush all unread items after X days, default 45 days (avoid very large database) 2014-12-15 20:38:35 -05:00
Frédéric Guillot
fa5bda49db Add a database page 2014-11-18 19:16:14 -05:00
Frédéric Guillot
d8c0d9dc4c Remove useless file 2014-11-08 10:24:53 -05:00
Frédéric Guillot
d17b418328 Add confirmation box for auto-update 2014-11-08 10:07:24 -05:00
Frédéric Guillot
e5947db7f1 Add CSRF protections 2014-11-07 21:44:20 -05: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
1ac40097ed Split settings page into mutliple pages 2014-11-07 20:37:12 -05:00
Mathias Kresin
c18ddc3ddc HTML Cleanup
Remove line breaks and indentation around links text: At least Chrome/Firefox on
Windows add the white space(s) from the HTML Code to the link text, which
results in "jumping" labels. The behaviour can be observed with the Hello Theme
while toggling the bookmark status.
2014-11-05 14:45:10 +01:00
Frédéric Guillot
5801258ace Add Fever API support 2014-10-29 21:28:23 -04:00
silvus
655e8fda68 Add option to select display mode on lists (summaries or full contents) 2014-05-29 16:57:23 +02:00
Frédéric Guillot
3e1229a4d1 Add token for the bookmarklet 2014-05-28 16:44:25 -04:00
Frédéric Guillot
eab942537f Add support for multiple users/databases 2014-04-05 20:24:13 -04:00
Frédéric Guillot
c1221de62c Add Miniflux auto-update feature 2014-03-30 15:59:26 -04:00
Frédéric Guillot
b74b8dd784 Remove PicoTools 2014-03-16 21:56:43 -04:00
Frédéric Guillot
3bc7f019c5 Add timezone configuration option 2014-02-25 19:03:46 -05:00
Frédéric Guillot
49583f381f Improve files organization 2014-02-08 14:13:14 -05:00
Frédéric Guillot
541e9e5afb Fix text typo 2014-01-12 18:35:46 -05:00
Frédéric Guillot
9a021ba43e Add an option to choose where to be redirected when there is nothing to read 2013-12-23 13:33:16 -05:00
Frédéric Guillot
9e437c1a93 Add a preference parameter to save default items sorting order 2013-09-18 21:02:46 -04: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
Frédéric Guillot
2ec5d4ffb0 Add bookmarklet link (add a subscription directly from any browsers) 2013-09-04 20:45:06 -04:00
Frédéric Guillot
b6adfb7168 Add console to display debug messages 2013-08-29 19:34:11 -04:00
Frédéric Guillot
68a8e8f954 Change method to generate tokens and allow people to generate new tokens 2013-08-14 21:08:01 -04:00
Frédéric Guillot
a79228195f Add RSS feed for bookmarks 2013-08-09 22:23:57 -04:00
Frederic Guillot
6dcf1f9a81 First version of the JsonRPC API 2013-07-28 15:44:51 -04:00
Frederic Guillot
bf5571fbe1 Improve help popup (pull-request) 2013-07-21 11:11:41 -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
Frederic Guillot
a30c21dd50 First version of the theme system 2013-07-16 21:58:11 -04: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
a3697d0875 Remove PHP notice when there is a validation error on settings page 2013-07-05 20:21:10 -04:00
Frederic Guillot
4bf0c7a4ef Add vim shortcuts to the help page 2013-07-02 21:50:53 -04:00
Frederic Guillot
17fbb3de91 Refactoring of bookmarks 2013-06-14 23:12:08 -04:00
Frederic Guillot
48fbe24c9b Rename update button to save 2013-06-14 20:42:09 -04:00
Frederic Guillot
c2ca54385f minors cleanup 2013-06-10 22:09:51 -04:00
doubleface
c601c6e68d Added nocontent feature to avoid a to big database 2013-06-06 11:54:22 -04:00
Frederic Guillot
4346b27648 Improve autoflush of read items 2013-05-26 13:09:34 -04:00
MonsieurPaulLeBoulanger
c50275cd7d change labels for autoflush 2013-05-23 13:51:17 +02:00
MonsieurPaulLeBoulanger
f03c543ded Add an auto flush function while reaching action=default or action=history.
It will flush all read items older than the specified number of days in
the preferences

1 correction in the translation file fr_FR
2013-05-23 13:44:45 +02:00
Frederic Guillot
8fd7b18927 Move everything to the top-level directory 2013-05-21 12:34:39 +02:00