maTh
b1a74a3476
Update extensionController.php ( #4571 )
2022-08-31 21:34:18 +02:00
Roman D
0ec65788f9
Implemented advanced feed settings to allow cookies and HTTP redirects. ( #4470 )
...
* Implemented advanced feed settings to allow cookies and HTTP redirects.
* i18n fr
Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr >
2022-08-20 12:06:24 +02:00
Alexandre Alapetite
1603c10bba
XPath ability to define the UID manually ( #4507 )
...
* XPath ability to define the UID manually
* Fix error in i18n
2022-08-18 12:10:55 +02:00
papaschloss
8587efa621
Article css filtering ( #4501 )
...
* Update feedController.php
* Update subscriptionController.php
* Update DatabaseDAO.php
* Update Entry.php
* Update Feed.php
* Update FeedDAO.php
* Update install.sql.mysql.php
* Update install.sql.pgsql.php
* Update install.sql.sqlite.php
* Update sub.php
* Update opml.phtml
* Update ImportService.php
* Update update.phtml
* Update feed.js
* Update install.sql.mysql.php
* Update install.sql.pgsql.php
* Update install.sql.sqlite.php
* Update sub.php
* Update sub.php
* Update sub.php
* Update sub.php
* Update sub.php
* Update sub.php
* Update sub.php
* Update sub.php
* Update sub.php
* Update sub.php
* Update sub.php
* Update sub.php
* Update sub.php
* Update sub.php
* Update sub.php
* Update sub.php
* Update sub.php
* Update FeedDAO.php
* Update feedController.php
* Update subscriptionController.php
* Update Entry.php
* Update Feed.php
* Update feedController.php
* Update subscriptionController.php
* Update ImportService.php
* Update opml.phtml
* Update update.phtml
* Update update.phtml
* Update update.phtml
* Update DatabaseDAO.php
* Update app/Models/Entry.php
Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr >
* Update app/i18n/fr/sub.php
Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr >
* Update p/scripts/feed.js
Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr >
* Update app/Controllers/feedController.php
* make fix-all
* Update documentation
* css_path_filter help message
* i18n en-us ignore
Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr >
2022-08-15 21:01:18 +02:00
Alexandre Alapetite
09aeeeb325
Refactor updateContext into its own FreshRSS_Context class ( #4496 )
...
So that it is both cleaner and easier to call from other controllers and extensions
2022-08-10 09:37:11 +02:00
Alexandre Alapetite
82ac1d1e67
Refactor entry-to-GReader API format ( #4490 )
...
* Refactor entry to GReader API format
Some code was copied in two locations and not completely uniform.
Cleaning of related variables and functions (e.g. better types for entries and categories as objects vs. as IDs).
Usecase: I need to call the same GReader-compatible serialization from an extension
* Fixed some edge cases
* Keep summary instead of content
`summary` and `content` seems to be used interchangeably in the Google Reader API. We have been using `summary` for our client API and `content` in our export/import, so stick to that.
2022-08-08 12:04:02 +02:00
Alexandre Alapetite
18b8e91e3f
Fix rare read call bug ( #4456 )
...
https://github.com/FreshRSS/FreshRSS/pull/4052#issuecomment-992341442
Bug from https://github.com/FreshRSS/FreshRSS/pull/1995
2022-07-28 14:24:20 +02:00
maTh
a534fc79c4
Fix: logs page=0 error ( #4460 )
...
* add docs of function param()
* page < 0 is impossible now
* show prev/next only, when there is a prev/next page
* set always page params
* Revert "page < 0 is impossible now"
This reverts commit fdb920ee50 .
* Update logs_pagination.phtml
2022-07-27 18:52:30 +02:00
Alexandre Alapetite
0866fdaee8
Add database field attributes for entries ( #4444 )
...
* Add database field attributes for entries
Just like we already have for categories, feeds, etc.
No core use yet, but allows in particular extensions to save per-entry data
* Fix PHPStand
* Fix wrong variable
2022-07-19 15:17:08 +02:00
maTh
b2e46d6215
Improved: Article header ( #4101 )
...
* First draft for normal view
* Revert changes on the entry header
* Update normal.phtml
* Update normal.phtml
* RTL CSS
* CSS fixes
* Better tags style
* fix
* Update swage.scss
* fix
* Update swage.scss
* fixed .content header
* font-size in rem
* improved template
* dropdown menu if more than 7 tags
* configuration: show tags in topline
* Simplify loop logic
* Minor space
* config tags via reading (i18n still missed)
* fixed the whitespaces
* optimizations
* optimize header+footer
* Update normal.phtml
* fix css
* new config: show author+date in footer
* config feed name display
* improve HTML
* fix whitespaces
* i18n
* i18n: German translations
* fix i18n German
* fixed: uncouple from bottomline config
* reverted: tobline_tags
* equalities
* fixed: author in footer
* fixed data-leave-validation
* improved max numbers i18n label
* Config works now also in the reader view
* fix: footer border
* reader view: style article-header-topline
* fixed whitespace
* i18n fr
* Minor i18n fr
* Fix mistake i18n fr
* i18n fr more precise expression
* Fix JavaScript
* removed the link icon in the title
* clean CSS
Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr >
2022-07-17 22:54:24 +02:00
Alexandre Alapetite
509c8cae63
Dynamic OPML ( #4407 )
...
* Dynamic OPML draft
#fix https://github.com/FreshRSS/FreshRSS/issues/4191
* Export dynamic OPML
http://opml.org/spec2.opml#1629043127000
* Restart with simpler approach
* Minor revert
* Export dynamic OPML also for single feeds
* Special category type for importing dynamic OPML
* Parameter for excludeMutedFeeds
* Details
* More draft
* i18n
* Fix update
* Draft manual import working
* Working manual refresh
* Draft automatic update
* Working Web refresh + fixes
* Import/export dynamic OPML settings
* Annoying numerous lines in SQL logs
* Fix minor JavaScript error
* Fix auto adding new columns
* Add require
* Add missing 🗲
* Missing space
* Disable adding new feeds to dynamic categories
* Link from import
* i18n typo
* Improve theme icon function
* Fix pink-dark
2022-07-04 09:53:26 +02:00
Alexandre Alapetite
d785ddde2a
New option to automatically mark as read gone articles ( #4426 )
...
* New option to automatically mark as read gone articles
Option to automatically and immediately mark as read entries / articles that are no longer provided in their upstream RSS / ATOM / XPath feed
* Reduce SQL queries
Optimisation: Perform cache update only once
2022-06-25 11:15:51 +02:00
Alexandre Alapetite
07a52137a9
Fix last update & archive logic ( #4422 )
...
#fix https://github.com/FreshRSS/FreshRSS/issues/4401
2022-06-25 11:11:23 +02:00
Alexandre Alapetite
f988b996ab
Fix update URL ( #4399 )
...
#fix https://github.com/FreshRSS/FreshRSS/issues/4395 maybe
2022-06-02 08:40:18 +02:00
Alexandre Alapetite
f89819bd64
Custom logo HTML ( #4369 )
...
* Custom logo HTML
Add option for custom HTML logo/title in the main Web UI view.
Can potentially be different per user.
#fix https://github.com/FreshRSS/FreshRSS/pull/3830/files#r850472247
* logo_html in main config
With new `./data/config.custom.php` to provide custom values before install
* Docker documentation
* whitespace
* Auto relax CSP to allow images for HTML logo
* Documentation
2022-05-23 14:03:19 +02:00
Alexandre Alapetite
f5aaf5f460
New limit option when reloading a feed ( #4370 )
2022-05-19 21:30:40 +02:00
maTh
807ea755e0
fix preview ( #4291 )
...
* fix
* Update extra.js
* reorga the scripts
* Update extra.js
* Several fixes
https://github.com/FreshRSS/FreshRSS/pull/4291#issuecomment-1125472321
* More fixes
* Cleaning
* fix pr 4291
* Reorganise some script functions
* Remove unused popup-txt
And associated function openPopupWithMessage
* Fix archiving categories
https://github.com/FreshRSS/FreshRSS/pull/4291#issuecomment-1126924602
* Fix stats
https://github.com/FreshRSS/FreshRSS/pull/4291#issuecomment-1126983134
* Fix direct subscription
E.g. http://localhost/i/?c=subscription&id=735
* Fix subscription add
https://github.com/FreshRSS/FreshRSS/pull/4291#issuecomment-1126991621
Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr >
2022-05-15 21:52:52 +02:00
Alexandre Alapetite
7f0c378482
Fix favicons update ( #4358 )
...
Better update the favicons when the URL changes
2022-05-13 23:14:09 +02:00
Clemens Neubauer
046598e743
fix depending results after changing value of "entry->isRead" ( #4331 )
...
* fix depending results after changing value of "entry->isRead" inside of hook 'entry_before_insert'
if anybody use the hook 'entry_before_insert' and change the value of the property 'entry->isRead', the depending results are correct now.
In my case my config let all new entrys as "isRead=FALSE" as i will. A new extension which is in progress, can/should/must change the value of this property, but the depending results of this property are wrong before this fix.
* Update app/Controllers/feedController.php
Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr >
2022-04-26 08:47:19 +02:00
maTh
7d00ad8ed7
Improve: manage feed in view within a slider ( #4226 )
...
* it works
* small improvements
* Update slider.js
* fixed JS syntax
* slider.js included in main.js
* fix syntax
* delete including of slider.js
* Update extra.js
2022-03-22 23:09:50 +01:00
Alexandre Alapetite
4363e13c34
Set feed error state when XPath does not match ( #4275 )
...
Gives the ability to filter HTML+XPath feeds that are not working
2022-03-21 12:51:41 +01:00
Alexandre Alapetite
6f018cc674
Show errored, empty, muted feeds in statistics ( #4276 )
2022-03-21 12:51:26 +01:00
Alexandre Alapetite
a9e23bd120
Remove XPath title in feed update ( #4259 )
...
* Remove XPath title in feed update
#fix https://github.com/FreshRSS/FreshRSS/issues/4253
* Pre-fill //title
https://github.com/FreshRSS/FreshRSS/issues/4253#issuecomment-1059746286
Co-authored-by: maTh <math-home@web.de >
2022-03-06 21:39:11 +01:00
Alexandre Alapetite
1fe66ad020
Implement Web scraping "HTML + XPath" ( #4220 )
...
* More PHP type hints for Fever
Follow-up of https://github.com/FreshRSS/FreshRSS/pull/4201
Related to https://github.com/FreshRSS/FreshRSS/issues/4200
* Detail
* Draft
* Progress
* More draft
* Fix thumbnail PHP type hint
https://github.com/FreshRSS/FreshRSS/issues/4215
* More types
* A bit more
* Refactor FreshRSS_Entry::fromArray
* Progress
* Starts to work
* Categories
* Fonctional
* Layout update
* Fix relative URLs
* Cache system
* Forgotten files
* Remove a debug line
* Automatic form validation of XPath expressions
* data-leave-validation
* Fix reload action
* Simpler examples
* Fix column type for PostgreSQL
* Enforce HTTP encoding
* Readme
* Fix get full content
* target="_blank"
* gitignore
* htmlspecialchars_utf8
* Implement HTML <base>
And fix/revert `xml:base` support in SimplePie e49c578817
* SimplePie upstream PR merged
https://github.com/simplepie/simplepie/pull/723
2022-02-28 20:22:43 +01:00
maTh
fa23ae76ea
fix ( #4240 )
2022-02-27 22:43:53 +01:00
Alexandre Alapetite
ede82f9819
Fix read-when-same-title bug ( #4206 )
...
Made apparent by type hints
2022-02-07 01:03:00 +01:00
maTh
dfee46792f
Improved: "Pagination" + load more button ( #4125 )
...
* Frontend changes done
* Load more should work now also without JS
* Update template.rtl.css
* improved the themes' CSS
* Update template.rtl.css
* fix CI
* CSS prop. order fixed
* Rename pagination.phtml to stream-footer.phtml
* use the new template name
* rename key of i18n
* fixed CI, that does not like the white space
* rename pagination variable
* Update indexController.php
2022-02-06 17:29:56 +01:00
Alexandre Alapetite
1c5cf71859
Fix Fever 32 bit ID issue + more PHP type hints ( #4201 )
...
* Fix Fever 32 bit ID issue + more PHP type hints
#fix https://github.com/FreshRSS/FreshRSS/issues/4200
Follow up and fix regression from https://github.com/FreshRSS/FreshRSS/pull/4110
* More PHP type hints with PHPStan
* Fix pull problem
* Avoid more nulls
2022-02-06 14:31:36 +01:00
maTh
be9c06fd5c
Improved: Idle feeds list in a new layout ( #4192 )
...
* that should work fine
* fixed phpcs
* fixed phpcs
2022-02-05 10:57:36 +01:00
maTh
b127777887
class constant ( #4194 )
2022-02-04 15:47:54 +01:00
Alexandre Alapetite
05ca0517bb
Compat import JSON milliseconds ( #4186 )
...
#fix https://github.com/FreshRSS/FreshRSS/issues/4185
2022-02-01 00:03:51 +01:00
Alexandre Alapetite
47e242aa77
Fix ctype_alnum ( #4182 )
...
* Fix ctype_alnum
#fix https://github.com/FreshRSS/FreshRSS/issues/4180
Ensure `ctype_alnum()` gets a string
* Changelog
2022-01-30 15:53:17 +01:00
Alexandre Alapetite
8808fb4545
Fix keep state after favourites tags ( #4178 )
...
* Fix keep state after favourites tags
#fix https://github.com/FreshRSS/FreshRSS/issues/4124 regression
* Optimisation
2022-01-29 14:19:16 +01:00
Alexandre Alapetite
4e2dff4591
Add spell checking with typos ( #4138 )
...
* Add spell checking with typos
Implement https://github.com/FreshRSS/FreshRSS/pull/4134#issuecomment-1008027558
* GitHub Actions attempt
* Quiet wget
* Makefile
2022-01-09 18:21:40 +01:00
Alexandre Alapetite
1acd3ab09b
Use typographic quotes ( #4133 )
...
* Use typographic quotes
* A few fixes
* Fix
* Fix not saved
* Implement feedback
* Detail
* Revert spoken English fixes
Left for a future dedicated discussion
* More reverts
* Final reverts
* Final minor
2022-01-08 21:58:55 +01:00
Thomas Renes
916df412f5
Fix various typos and spelling errors in documentation, comments and code. ( #4134 )
2022-01-08 16:25:17 +01:00
Luc SANCHEZ
ed19445f74
Optimise Minz_ModelPdo::class ( #4119 )
...
* - Fix typo,
- remove unnecessary null in property,
- remove unused property,
- add phpDoc,
- add ext PDO in composer.json,
- use strict comparison,
- indentation
* Translate
* Update lib/Minz/ModelPdo.php
Co-authored-by: Frans de Jonge <fransdejonge@gmail.com >
* The code is more explicite
* Fix phpstan
* Fix phpstan expect one
* Fix phpstan
* Return in back...
* make fix-all
* Fix exception and more types
* Fix more types
* Remove ext- in composer.json
Co-authored-by: Luc SANCHEZ <l.sanchez-ext@ubitransport.com >
Co-authored-by: Frans de Jonge <fransdejonge@gmail.com >
Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr >
2022-01-07 10:05:09 +01:00
Alexandre Alapetite
1335a0e3cf
PHPStan level 5 ( #4110 )
...
* Fix most PHPDocs errors
Contributes to https://github.com/FreshRSS/FreshRSS/issues/4103
https://phpstan.org/writing-php-code/phpdoc-types
* Avoid func_get_args
Use variadic syntax instead https://php.net/manual/functions.arguments#functions.variable-arg-list
And avoid dynamic functions names when possible to more easily identify calls and unused functions.
Contributes to https://github.com/FreshRSS/FreshRSS/issues/4103
* PHPStan level 3
* PHPStand level 4
* Update default to PHPStan level 4
* Towards level 5
* Fix level 4 regression
* Towards level 5
* Pass PHPStan level 5
* Towards level 6
* Remove erronenous regression from changelog
https://github.com/FreshRSS/FreshRSS/pull/4116
2022-01-04 13:59:09 +01:00
Alexandre Alapetite
3f6aa42b81
Fix most PHPDocs errors ( #4107 )
...
Contributes to https://github.com/FreshRSS/FreshRSS/issues/4103
https://phpstan.org/writing-php-code/phpdoc-types
2022-01-01 11:26:56 +01:00
Alexandre Alapetite
77e9877316
Add PHPStan ( #4021 )
...
* Add PHPStan
#fix https://github.com/FreshRSS/FreshRSS/issues/4016
https://phpstan.org/
```sh
composer run-script phpstan
```
* More fixes
* Fix global variables
* Add .phtml
* Fix merge
https://github.com/FreshRSS/FreshRSS/pull/4090
* Fix more warnings
* Fix view errors and enable in CI
* ReturnTypeWillChange
* Dynamic view type
* Fix Minz static/self bug
2021-12-31 17:00:51 +01:00
Alexandre Alapetite
20c8382c25
Fix invalid user ( #4081 )
...
#fix https://github.com/FreshRSS/FreshRSS/issues/4080
Initialise the default user to be able to display the error page
2021-12-24 18:44:34 +01:00
Alexandre Alapetite
a2ab9cf83a
Minz request avoid custom methods ( #4020 )
...
Take advantage of PHP7+ null-coalescing operator `??` to make code more standard, shorter, and faster instead of custom function with no extra functionality.
Allows code to be better tested and fix two PHPstan errors:
```
------ -----------------------------------------
Line app/Controllers/configureController.php
------ -----------------------------------------
410 Cannot unset offset 'rid' on string.
------ -----------------------------------------
------ ------------------------------------
Line lib/Minz/FrontController.php
------ ------------------------------------
70 Cannot unset offset 'c' on string.
71 Cannot unset offset 'a' on string.
------ ------------------------------------
```
https://github.com/FreshRSS/FreshRSS/issues/4016
2021-12-02 23:25:07 +01:00
Alexandre Alapetite
e61cc3153a
Additional HTTP error codes ( #3981 )
2021-11-15 13:44:14 +01:00
maTh
26afec2379
Fix label management ( #3959 )
...
* disable inputs
* fix create empty tags
* Update app/Controllers/tagController.php
Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr >
* Update app/views/tag/index.phtml
Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr >
* Small additional checks
Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr >
2021-11-11 19:57:05 +01:00
maTh
3623a5421d
enhancement subscription management page ( #3893 )
...
* wip
* wip2
* i18n
* Update app/views/helpers/category/update.phtml
Co-authored-by: Frans de Jonge <fransdejonge@gmail.com >
* fixed box layout
* Revert "i18n"
This reverts commit a2e4d8ace6 .
* i18n
This reverts commit 55236930cf .
Co-authored-by: Frans de Jonge <fransdejonge@gmail.com >
2021-10-19 15:08:32 +02:00
maTh
02641de32e
Stats: replace flotr2 with chart.js ( #3858 )
...
* include Chart.js
* page: main statistics. Flotr.js replaced with Chart.js
* main stats + repartition
* Delete: repartition.js + stats.js
* delete flotr2
* add libs in README
* polish
* code polish
* fixed amount of week days and months
* added manget link for LibreJS
* added: @license-end
* phpcbf + jshint formatting
* delete old code
* fix stats
* fix Comments
* finally I found the issue and fixed its best
* fix the month stats
* Whitespace fixes
* Remove flotr2
* Rename to chart.min.js
* Remove console.log
Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr >
2021-10-16 12:00:07 +02:00
Alexandre Alapetite
a7aca6c0ab
Improved feed action filters ( #3303 )
...
* Re-order some feed options
* Option to auto mark as read existing titles
* Option to keep at max n unread articles per feed
2021-09-19 10:56:38 +02:00
maTh
93e73855ec
Delete jQuery ( #3847 )
...
* delete jquery.min.js lib
2021-09-13 08:02:09 +02:00
Alexandre Alapetite
fe295f50d0
Lint i18n files ( #3841 )
...
Translations had quite a lot of cleaning in late:
* Removed some unused keys
* Added some ignores
* Applied a `cli/manipulate.translation.php -a format`
2021-09-12 11:37:15 +02:00
ORelio
50ba6bbe07
UI: Add optional thumbnail and summary on feed items ( #3805 )
...
* UI: Add optional thumbnail and summary on feed items
Implements #561
* UI: Thumbnail: Own column, Custom size, Lazy load
* UI: Thumbnail: Remove unnecessary CSS rule
Remove rule already defined in base theme, no override needed
* CSS lint + RTL
* Improve thumbail and summary generation
* Support img alt
* Missing htmlspecialchars
Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr >
2021-08-30 10:58:06 +02:00