Commit Graph

7003 Commits

Author SHA1 Message Date
Marien Fressinaud
ae948a500f Issue #143 : amélioration du formulaire
Suppression radio buttons au profit d'une checkbox
2013-09-14 18:25:10 +02:00
Marien Fressinaud
6967de0e64 Merge branch 'onread_jump_next' of https://github.com/Alkarex/FreshRSS into Alkarex-onread_jump_next 2013-09-14 18:13:21 +02:00
Marien Fressinaud
cdae47efae Update thème flat-design pour .bigMarkAsRead
Changement de la couleur au survol
2013-09-14 18:11:42 +02:00
Marien Fressinaud
60623c63ff Merge branch 'bigMarkAsRead' of https://github.com/Alkarex/FreshRSS into Alkarex-bigMarkAsRead 2013-09-14 18:04:35 +02:00
Marien Fressinaud
6193260f3e Update du thème flat-design
Un peu plus de padding pour les labels "non lus"
2013-09-14 18:02:24 +02:00
Marien Fressinaud
827859949d Merge branch 'shortUnreadCategory' of https://github.com/Alkarex/FreshRSS into Alkarex-shortUnreadCategory 2013-09-14 17:56:01 +02:00
Marien Fressinaud
c63b52738c Merge branch 'utf8bug' of https://github.com/Alkarex/FreshRSS into Alkarex-utf8bug 2013-09-14 17:51:33 +02:00
Marien Fressinaud
adc33811c3 Fix issue #158 : ajout premier flux fonctionne
La catégorie par défaut est bien mise par défaut pour le premier flux
2013-09-14 17:48:33 +02:00
Alexandre Alapetite
49737be5df Utilise les caractères Unicode dédiés
Utilise les apostrophes et les points de suspension unicode :
... au lieu de ...
’ au lieu de '
2013-09-14 16:01:42 +02:00
Alexandre Alapetite
d47137cddd Affiche le titre en cours sur la ligne du jours
En particulier en affichage mobile, il n'était pas facile de voir quelle
catégorie ou flux on était en train de lire. Ce patch l'affiche sur la
ligne du jours, avec une suggestion de style.
2013-09-14 15:29:09 +02:00
Alexandre Alapetite
2e0441195b Title: Unread in category/feed vs. global
Distinguish in the title of the page between the number of unread
articles in the category/feed displayed vs. the total number of unread
articles.
2013-09-13 21:56:45 +02:00
Alexandre Alapetite
5923e1a640 SimplePie : Corrige le cas des </body> et </html>
Corrige https://github.com/marienfressinaud/FreshRSS/issues/159
Les balises fermantes /body et /html n'étaient pas nettoyées par SimplePie.
À tester un moment puis proposer en amont à SimplePie.
2013-09-12 22:54:56 +02:00
Alexandre Alapetite
7627970862 Corrected bug with the default "No Category"
The SQL optimisation patch had introduced a bug with "No Category", now
solved
2013-09-12 22:41:09 +02:00
Alexandre Alapetite
e15b7fd6ec Correct bug: last category was not shown 2013-09-04 20:22:49 +02:00
Alexandre Alapetite
cf62bcd3d3 Handle paging for entries with identical date
Paging now works even when many entries have the same date.
SQL speed could probably be improved by testing first on date, and then
on CONCAT.
Also, having an index on date would probably help too.
2013-09-04 09:28:27 +02:00
Alexandre Alapetite
040e72fe4f Work around
In the current SQL request with LIMIT, if many dates are identical, the
pagination may not work properly. Added a little more tolerance, but
will have to be solved better.
2013-09-04 02:20:02 +02:00
Alexandre Alapetite
f897d64f1c jQuery updated from version 1.5.2 to 1.10.2
(checked that it is ok with jQuery Migrate Plugin)
2013-09-04 01:47:40 +02:00
Alexandre Alapetite
d9db9bae0d Speed: jQuery optimisation of init_posts()
- jQuery updated from version 1.5.2 to 1.10.2 (checked that it is ok
with jQuery Migrate Plugin)
- Put hide_posts() first to avoid flashing content during load
- Big speed optimisation of init_img()
- Use a single on() delegated event (jQuery 1.7+) instead of all
per-article click events as described on http://api.jquery.com/on/
- Moved all the per-article click events to an outside function
init_stream_delegates() that is called only once even when new articles
are dynamically added. Much lighter approach, and does not require
unbinding events and rebinding them at each dynamic load.
- Side effect: corrected the bug of favourites and read/unread that were
not properly unbound during dynamic loading.
- Corrected a JavaScript error for auto_load_more when #load_more is not
visible and therefore does not have a position() defined.
2013-09-04 01:46:49 +02:00
Alexandre Alapetite
f55ae730e6 Disable SQL LIMIT optimisation during search
This patch is to make search work again after the new SQL optimisations,
by removing some of the optimisations when searching is used.
Optimisation of search is left for some future work.
The whole base is indeed transfered from MySQL to PHP, which is not
good.
2013-09-03 23:35:33 +02:00
Alexandre Alapetite
f855dbdca6 SQL and model optimisation
Big effect (on speed and memory), but few changes :-)
Drastically reduced the number of SQL requests needed (from 233 down to
8 to load the home page with my own data set = 140 feeds in 15
categories).
Drastically reduced the amount of data transferred from MySQL to PHP.
2013-09-02 22:06:51 +02:00
Alexandre Alapetite
a9765af95c Allow native control-click of article titles
Provide better access to the link of the article, and allow
control-click on the title to e.g. open in a background tab, without
having to reach the little link icon on the far right.
2013-08-31 22:27:20 +02:00
Alexandre Alapetite
25e247cdb2 Compatibility onread_jump_next with load_more
automatic load_more and
2013-08-31 13:05:02 +02:00
Alexandre Alapetite
f2697be658 Avoid preg_replace for simple cases
Use the faster str_replace() and str_ireplace() instead.
From http://www.php.net/manual/function.str-replace.php : "If you don't
need fancy replacing rules (like regular expressions), you should always
use this function instead of preg_replace(). "
2013-08-31 12:09:36 +02:00
Alexandre Alapetite
de6e1b0a86 Change filter of expected SQL errors
Filter out "SQLSTATE Class code 23: Constraint Violation" because of
expected duplicate entries.
Consider adding a Minz_Log::DEBUG level
2013-08-26 23:47:59 +02:00
Alexandre Alapetite
46a632e631 Filter out expected SQL errors
Filter out expected SQL errors on duplicate entries
2013-08-26 23:20:33 +02:00
Alexandre Alapetite
da2e4e09d9 Revert wrong change on array_map
But would still be better with explicit UTF-8
2013-08-26 22:26:15 +02:00
Alexandre Alapetite
6e9b4501eb Suggestion of implementation for the Flat Design theme 2013-08-26 21:51:09 +02:00
Alexandre Alapetite
32842bef0a Cleaning after SQL model updated
A "lastUpdate" field was forgotten
2013-08-26 21:07:17 +02:00
Alexandre Alapetite
0696890c06 Use feed names coming from OPML
Use the feed names (text or title) provided by OPML and do not overwrite
them during import.
2013-08-26 01:47:14 +02:00
Alexandre Alapetite
742854ffb4 Do not perform double HTML-encoding
The content seem to be already HTML safe, e.g. for some feeds in UTF-8
with HTML special characters encoded, for some other feeds with all
eligible characters HTML-encoded
2013-08-26 00:26:02 +02:00
Alexandre Alapetite
81f93dc2e2 Another explicit UTF-8
Explicit UTF-8 for a forgotten htmlentities()
2013-08-25 22:24:08 +02:00
Alexandre Alapetite
6981a24b9c More explicit UTF-8
More explicit UTF-8 in PDO MySQL, html_entity_decode, htmlentities, and
htmlspecialchars (less important)
2013-08-25 21:40:39 +02:00
Alexandre Alapetite
6d09878880 Typo 2013-08-25 14:49:08 +02:00
Alexandre Alapetite
b780a2329b New option onread_jump_next
Added a new option to automatically jump to the next sibling (category
or feed) when hitting the button "mark as read".
2013-08-25 13:25:27 +02:00
Alexandre Alapetite
2eea5bbdeb Big area mark as read
Added a big area to mark all as read below the list of articles
2013-08-25 13:08:53 +02:00
Alexandre Alapetite
0859e69be0 Short labels for number of unread items
On the aside flux, suggestion of showing only a number (e.g. "7")
instead of the longer (e.g. "7 unread")
2013-08-25 12:48:14 +02:00
Alexandre Alapetite
4cf9119a7d UTF-8 encoding bug on PHP older than 5.4
In PHP older than 5.4.0, the default charset for htmlspecialchars() and
html_entity_decode() was ISO-8859-1, which created erroneous UTF-8
characters
2013-08-25 12:44:08 +02:00
Marien Fressinaud
31a6a13268 Fix issue #134 : modif barre connexion
La barre contenant le lien connexion/déconnexion est supprimée (sauf en
vue mobile)
Le lien connexion se trouve à la place de la roue des paramètres
Le lien déconnexion se trouve dans la liste des actions en cliquant sur
la roue des paramètres
2013-08-22 11:30:13 +02:00
Marien Fressinaud
9642fbb221 Fix issue #118 : option pour garder historique
*** ATTENTION, MODIFICATION DE LA BDD ***

Cette option permet de garder les vieux articles d'un flux en même s'ils
sont plus vieux que la limite des X mois d'historique (3 par défaut)

Les modifications de la base de données :
- ajout du champ "keep_history int(1) DEFAULT 0" à la table feed
- suppression des champs "is_public" et "lastUpdate" de la table entry
  (n'étaient plus utilisés de toute façon)
2013-08-22 11:11:22 +02:00
Marien Fressinaud
48f8401c8b Fix issue #130 : amélioration vue globale
Désormais, en cliquant sur une catégorie ou un flux, une "popup" s'ouvre
nous proposant les flux à lire directement. Les mêmes actions que la vue
normale sont alors possibles

Cela a impliqué de gros changements javascript en aval puisque les
articles n'étaient plus repérés en fonction de la fenêtre, mais en
fonction du popup (#panel)

Le code va vraiment devoir être repris pour avoir une architecture
logique (voir issue #121)
2013-08-21 19:59:56 +02:00
Marien Fressinaud
695af6e1fe Fix issue #133 : nombre non lus dans titre onglet
+ Début fix issue #130 : en cliquant sur une catégorie ou un flux, on
repasse en mode de vue "normale" pour pouvoir lire les articles
Ce n'est qu'un début :)
2013-08-21 16:26:22 +02:00
Marien Fressinaud
d89b9056cd Màj install.php pour prise en compte token
Le token est généré automatiquement à l'installation si on précise une
adresse mail de connexion
2013-08-21 16:11:01 +02:00
Marien Fressinaud
54541608ac Fix issue #127 : ajout système de token
Ajout du système de token pour accéder aux flux RSS même quand la
connexion a été paramétrée.
Pour l'utiliser, il faut simplement ajouter le paramètre
?token=<votre_token> à l'url
2013-08-21 16:04:18 +02:00
Marien Fressinaud
456c95d2db Fix issue #125 : "Load more" automatique
En bas de page, si l'option a été cochée (ne l'est pas par défaut), on
va charger automatiquement les articles suivants
2013-08-21 15:22:30 +02:00
Marien Fressinaud
94a50086d8 Ajout conf : token (#127), option load more (#125)
Le token permettra d'accéder aux flux RSS cachés derrière une
authentification
L'option load more permettra de ne pas charger automatiquement les
articles suivants une fois arrivé en bas de la page
2013-08-21 15:05:08 +02:00
Marien Fressinaud
aa94bdaeff Issue #125 : "suivant" charge articles suivants
Le raccourci pour passer à l'article suivant charge automatiquement les
articles suivants si on vient d'ouvrir le dernier article de la page

Il reste à rajouter une option pour les charger si on se trouve en bas
de la page
2013-08-21 14:57:22 +02:00
Marien Fressinaud
35a7f63dbb Fix issue #128 : Shaarli seulement si loggué
Il n'est plus possible d'essayer de partager via Shaarli pour un
utilisateur non connecté
2013-08-21 14:43:07 +02:00
Marien Fressinaud
9ae0652d9f Fix issue #131 : pied d'article
Ajout de la date et du lien vers site externe au pied des articles

Modification comportement raccourci "up" : si la fenêtre est sous
l'article actif, on remonte en haut de cet article. Si la fenêtre est au
début de l'article actif ou au-dessus, on remonte en haut de l'écran
2013-08-21 14:36:18 +02:00
Marien Fressinaud
96a2076d5e Fix issue #129 : balises HTML dans les titres
Les balises HTML sont désormais échapées dans les titres d'articles. Les
balises liens sont totalement supprimées et l'on garde que le titre du
lien
2013-08-21 14:17:54 +02:00
Marien Fressinaud
79d857e46b Fix issue #119 : modif logo + corrections designs
Modification du logo, merci Cypouz !

Petites modifications dans les designs "default" et "flat design"
2013-08-21 14:12:14 +02:00