Add PHPStan and other quality checks

Similar to FreshRSS core
Contributes to https://github.com/FreshRSS/Extensions/issues/184
This commit is contained in:
Alexandre Alapetite 2023-11-23 22:41:09 +01:00
parent a86467db48
commit b49596818c
No known key found for this signature in database
GPG key ID: A24378C38E812B23
59 changed files with 1173 additions and 404 deletions

View file

@ -1,8 +1,8 @@
Extension pour FreshRSS (https://github.com/FreshRSS)
Extension pour FreshRSS (<https://github.com/FreshRSS>)
**v1.3**
> **v1.3**
Source: https://framagit.org/Lapineige/FreshRSS_Extension-ReadingTime
Source: <https://framagit.org/Lapineige/FreshRSS_Extension-ReadingTime>
Ajoute une estimation du temps de lecture à côté de chaque article.
Fonctionne sur les affichages de bureau et mobile.
@ -11,24 +11,22 @@ S'installe comme toute les extensions, soit via l'outil intégré dans l'interfa
Aucune module externe. Une fois activée dans les préférences, l'extension doit fonctionner après avoir recharger la page.
Un indicateur du temps de lecture doit s'afficher dans le nom du flux de chaque article.
Pour le moment la vitesse de lecture est réglée manuellement à 300 mots/min. À changer si besoin ici: https://framagit.org/Lapineige/FreshRSS_Extension-ReadingTime/blob/master/static/readingtime.js#L26
Pour le moment la vitesse de lecture est réglée manuellement à 300 mots/min. À changer si besoin ici: <https://framagit.org/Lapineige/FreshRSS_Extension-ReadingTime/blob/master/static/readingtime.js#L26>
---
Extension for FressRSS (https://github.com/FreshRSS)
Extension for FressRSS (<https://github.com/FreshRSS>)
**v1.3**
> **v1.3**
Source: https://framagit.org/Lapineige/FreshRSS_Extension-ReadingTime
Source: <https://framagit.org/Lapineige/FreshRSS_Extension-ReadingTime>
Add a reading time estimation next to each article.
Works on both desktop and mobile displays.
Install it the same way as any other extension, with the integrated tool in the interface (parameters icon -> extensions) or manualy by copying this repository directly in the `extensions` forlder of your FreshRSS install.
Install it the same way as any other extension, with the integrated tool in the interface (parameters icon -> extensions) or manually by copying this repository directly in the `extensions` folder of your FreshRSS install.
No external module. Once activated in the preferences, this extension should be working after reloading the page.
A reading time
For the moment the reading speed is manualy set to 300 words/min. If necessary, change it there: https://framagit.org/Lapineige/FreshRSS_Extension-ReadingTime/blob/master/static/readingtime.js#L26
For the moment the reading speed is manually set to 300 words/min. If necessary, change it there: <https://framagit.org/Lapineige/FreshRSS_Extension-ReadingTime/blob/master/static/readingtime.js#L26>