Commit Graph
5219 Commits
Author SHA1 Message Date
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 e86c10e2f5 Composer require php extensions (#4497)
#fix https://github.com/FreshRSS/FreshRSS/discussions/4494
2022-08-10 09:36:54 +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 240afa7d4d CLI add missing extension hook freshrss_user_maintenance (#4495) 2022-08-08 11:39:21 +02:00
maTh 0cb9f59622 Fix: Mapco theme cleaning (#4491)
* translated the comments FR -> EN

* delete useless extra styles for login header (template.css)

* <select> in the same height like <input>

* simplefy the search bar button

* improve the config menu button

* improve the layout of the login/register prompt

* navigation bar: border radius

* navigation bar: btn hover improved to darker grey, when not within .stick

* header height improved

* delete unused code ul.nav

* delete outcommented code

* translate comments FR -> EN

* improve login form layout

* icons: do not use it as background-image

* mapco.css

* fixes the nuts

* more nuts

* improve mobile login form

* delete unused view-normal.svg

* compress the svg icons
2022-08-06 22:40:43 +02:00
maTh a111f50c69 fix (#4492) 2022-08-06 22:35:27 +02:00
harshad389andHarshad 9ef849eb27 @tempnam in ExportService.php #4304 (#4489)
* @tempnam in ExportService.php #4304

* Update CREDITS.md

Change Name in alphabetic order

Co-authored-by: Harshad <harshad@topsoinfosolutions.com>
2022-08-05 15:11:58 +02:00
Alexandre Alapetite 3b6ff67515 Add link to CHATONS list of FreshRSS instances (#4483) 2022-08-05 15:11:01 +02:00
Alexandre Alapetite 6af7854de3 CLI allow empty DB prefix (#4488)
Allow an empty `--db-prefix` parameter (i.e. optional) in CLI to have no DB prefix
2022-08-05 15:10:41 +02:00
Alexandre Alapetite 8bb11bd4f8 Fix URLs in slider (#4479)
#fix https://github.com/FreshRSS/FreshRSS/issues/4473
Due to https://github.com/FreshRSS/FreshRSS/pull/4416
2022-08-02 09:15:02 +02:00
maTh c5ff838730 Update main.js (#4471) 2022-07-31 13:26:03 +02:00
maTh 11d1f653d2 themes improvements (#4472) 2022-07-31 13:21:47 +02:00
maTh 5177a17c9f sidebar and subscription management (#4474) 2022-07-31 13:20:48 +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 71ff543783 delete the link style given by default (#4459) 2022-07-27 18:53:49 +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
maTh c596099890 Fix the subscription tool form (#4466) 2022-07-27 18:27:11 +02:00
maTh 4b4390d83a Cleanup CSS .pagination (#4455)
* remove .pagination .item a:hover

* remove .pagination .loading

* Update swage.scss

* .pagination .item a centralized to template.css

* adark theme: mobile: border

* remove text-align: center

* remove .pager-current

* remove .content .pagination

* remove font-size

* font-style: italic; in template.css

* fix
2022-07-22 11:50:42 +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
maThandAlexandre Alapetite 2d807e06b1 Fix/Improved: Slider mobile (#4416)
* add close button, add content slider div

* add &ajax=1#slider to the links

* CSS

* fix showPW functionality

* open slider after received Ajax

* do not show empty slider

* RTL CSS

* fixed code smell

* improved: links prep via JS

* Redirect anchor

* enable #anchors in printuri()

* enable #slider when config was saved

* Active sliding via JS

Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
2022-07-19 12:56:09 +02:00
maTh 6352a1dccb Fix: header height (#4452)
* set default header height: 85px

* themes

* fix css RTL
2022-07-19 12:30:30 +02:00
maThandAlexandre Alapetite 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
maTh 954fcef9e2 Fix #4447: Nord theme (#4451)
* fix: add height 100% for <html>

* remove height 100% in all themes

* fixed order in template.css
2022-07-17 17:10:30 +02:00
Duncan Bennie 670239b94e Fix grammar on en & en-us About pages (#4450)
* Fix grammar on en & en-us About pages (#4449)

Restructure sentences to make them grammatically correct.

* Simplify 'freshrss_description' on About page

Remove references to Kriss Feed and Leed.

* Fix grammar on en & en-us About pages
2022-07-17 14:49:27 +02:00
TealkandAlexandre Alapetite 4f32939ec3 Update config.default.php (#4434)
* Update config.default.php

description of default_user adapted

* Update config.default.php

Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
2022-07-04 11:16:57 +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
Joel Garcia 57d571230e Update CREDITS.md (#4433)
* Update CREDITS.md

Added me to credits

* Update CREDITS.md
2022-07-03 00:50:30 +02:00
c05ab99e82 Added Nord based theme (#4400)
* added new theme

* removed old picture

* modified color of summary and author

* fixed input elements being hard to distinguish

* make fix-all

* markdown lint

* cleaned up css, still incomplete afaik

* removed duplicate, highlight current article

* removed more duplicates, reordered some things

* make fix-all

* removed last few css duplicates

* removed empty css blocks

* make fix-all

* Cleaned CSS - deleted styles that are maintained in template.css

* RTL CSS

* color changed from template

* icons deleted that did not change to the default icons

* Fix CSS (tabs instead of spaces) + RTL

* Delete import.svg

* use CSS filter instead of coloured theme icons

* active buttons are noticeable, more colored icons

* removed unnecesary line

* added background to favicons

* make fix-all

* RTL

* removed background color change since its not present in other menus

* make fix-all

* fixed alerts, code sections

* fixed some css being inconsistent

* renamed to Nord

* removed important from css

* Reorder CSS, fix duplicate, update RTL CSS

* ran npm fix and test. Removed duplicates

* fixed link color in warnings

* changed alert-warn colors

* color of icons can be changed with css

* make fix-all

* oops, fixed spaces instead of tabs

* border color fix

* border color fix

* Global view: dark background

Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
Co-authored-by: mathContao <math-home@web.de>
2022-07-02 20:50:57 +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 e14a72681e Fix OPML category encoding (#4427)
Category name was double-encoded
2022-06-25 11:09:08 +02:00
Alexandre Alapetite 2a0b47a8a4 No XPath error on empty list (#4425)
Set feed error state to true if the *list* of items cannot be find by XPath, but do not set the error state to true if that list happens to be empty (the resulting feed will be with an *empty* state instead of *error* state)
Follow-up of https://github.com/FreshRSS/FreshRSS/pull/4220
2022-06-23 13:26:22 +02:00
Alexandre Alapetite 47ab9d5e77 Better trim base_url (#4423)
Avoid usual errors for instance with quotes, especially when provided through Docker / CLI
2022-06-21 10:46:50 +02:00
Alexandre Alapetite 5b31c8212f Minor dev composer update (#4424)
Follow-up of https://github.com/FreshRSS/FreshRSS/pull/4419
2022-06-21 10:46:18 +02:00
Alexandre Alapetite dcc77ee343 Initial support for PHP 8.2 (#4421)
* Initial support for PHP 8.2
Using dev image `freshrss/freshrss:latest` https://github.com/FreshRSS/FreshRSS/pull/4420

* Deprecated string interpolation
2022-06-19 20:10:13 +02:00
Alexandre Alapetite a90d93979f Docker Alpine updates (#4420)
* Added PHP extensions `php-openssl`  (used by PHPMailer) and php-xml (used by SimplePie)
* Upgraded dev image `freshrss/freshrss:newest` to PHP 8.2.
2022-06-19 20:09:09 +02:00
Alexandre Alapetite f365a9aeb4 Update all test dependencies (#4419)
* Update all test dependencies

* Remove old false-positive

* Minor update lock files

* Increase PHPStan memory for Fedora
https://github.com/FreshRSS/FreshRSS/pull/4400#issuecomment-1159514197

* Require PHP8+ for tests
Due to small changes of signature in `ob_implicit_flush` and `simplexml_load_string`, cf. https://github.com/FreshRSS/FreshRSS/pull/4123

* Missing lint in CSS files
2022-06-19 20:08:42 +02:00
Alexandre Alapetite 238e55b2fd Document fixes & tests (#4418)
* Document fixes & tests
#fix https://github.com/FreshRSS/FreshRSS/issues/4213
Help https://github.com/FreshRSS/FreshRSS/pull/4400#issuecomment-1159347683

* Link to tests.yml

* sudo

* Link to GitHub Actions

* Add Fedora and Alpine
2022-06-19 20:05:46 +02:00
Alexandre Alapetite 95af935a5f Docker entrypoint fix buffering (#4417)
Remove output buffering during auto-install of FreshRSS and auto-creation of the default user.
We were only getting outputs at the end of each command, which was a problem for getting errors and progress, for instance when automatically importing a very large OPML
2022-06-19 20:03:34 +02:00
Alexandre Alapetite a6b4640a2f export-ignore (#4415)
https://www.git-scm.com/docs/gitattributes
2022-06-19 20:03:17 +02:00
Alexandre Alapetite 880f500bb3 Fix Minz link (#4414)
* Fix Minz link
https://github.com/marienfressinaud/MINZ returned 404
Found on https://framagit.org/marienfressinaud/MINZ instead
2022-06-16 20:25:31 +02:00
ryoku-cha 7ba3f0228d README.md - GReader Redate not required for Reeder 5 (#4413)
* README.md - GReader Redate not required for Reeder 5

Tried both as i still used Reeder 4 up until a month ago, when i installed FreshRSS. Then I switched to Reeder 5 which shows the Date and Time the corresponding Article was released.

I just commented on a corresponding Question/Issue, with Screenshots showing the difference.
https://github.com/javerous/freshrss-greader-redate/issues/1#issuecomment-1154228569
2022-06-13 21:00:55 +02:00
Alexandre Alapetite ec11da4e84 Safer htmlspecialchars_utf8 (#4411)
* Safer htmlspecialchars_utf8
#fix https://github.com/FreshRSS/FreshRSS/issues/4410

* Undefined variable
2022-06-11 22:14:46 +02:00
Miika Launiainen a398a135f5 Added themeing to missing "category" -icon (#4409)
* Color category icon, too
2022-06-11 15:38:41 +02:00
Alexandre Alapetite f85c510ed4 New search engine (#4378)
* New possibility to invoke user queries from a search expression
From the search field: `S:"My query"`.
Can be combined with other filters such as `S:"My query" date:P3d` as long as the user queries do not contain `OR`.
A use-case is to have an RSS filter with a stable address or an external API call with the ability to update the user query.

* Draft of parenthesis logic

* More draft

* Working parenthesis (a OR b) (c OR d)

* Working (A) OR (B)

* Support nested parentheses + unit tests + documentation

* search:MySearch and S:3
2022-06-02 08:41:08 +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 15de58a024 Docker readme volume for extensions (#4397)
* Docker readme volume for extensions
Forgotten from https://github.com/FreshRSS/FreshRSS/pull/4320
Keeping https://github.com/FreshRSS/FreshRSS/pull/2837

* Minor whitespace

* No extension volume for development
2022-05-31 10:04:07 +02:00
maTh 992b906062 Slider: close via shortcut (#4394)
* change close-slider behind slider

* open/close slider via anchor

* use shortcuts globaly

* deleted debugging console.log()
2022-05-30 23:06:50 +02:00
maThandAlexandre Alapetite 98f9409155 Improved: Feed config: title, website url, feed url (#4258)
* do not display "website" in dropdown menu, when it is empty

* feed name and URL required. input type = url

* Update app/views/helpers/feed/update.phtml

Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>

* Update app/views/helpers/feed/update.phtml

Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>

* fix spaces and tabs

* use classes indead of ID

Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
2022-05-30 10:51:47 +02:00
Alexandre Alapetite 15cdb60ba0 Fix warning with icons (#4390)
Fix warning in cases when the user context is not yet available, for instance during install
Fix regression from https://github.com/FreshRSS/FreshRSS/pull/4353
2022-05-30 10:34:39 +02:00