Commit Graph

5542 Commits

Author SHA1 Message Date
Rebecca Scott
1c502aaac2 Add docker-compose instructions for ARM64 (#5175)
* Add docker-compose instructions for ARM64

* Update Docker/README.md

* Update Docker/README.md

---------

Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
2023-03-07 10:33:49 +01:00
maTh
76d547d830 i18n/de (#5171) 2023-03-06 18:12:43 +01:00
maTh
f0a545a47a fix: i18n for autom. dark mode config (#5168)
* i18n

* Update app/i18n/fr/conf.php

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

---------

Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
2023-03-06 18:12:06 +01:00
Konrad Gräfe
974e5dd133 Update CREDITS.md (#5169)
Signed-off-by: Konrad Gräfe <kgraefe@paktolos.net>
2023-03-05 21:37:32 +01:00
Konrad Gräfe
16472fd427 Fix MySQL UNIX socket support (#5166)
MySQL uses different parameters for passing UNIX socket pathts
(unix_socket) and TCP sockets (host) in contrast to PosgreSQL which uses
one for both (host).

Signed-off-by: Konrad Gräfe <kgraefe@paktolos.net>
2023-03-05 18:00:04 +01:00
maTh
068d18b69b Add: <meta name="theme-color"> (#5105)
* implemented

* themes' metadata.json

* fix

* fix

* retrigger tests

* Update lib/Minz/View.php

Co-authored-by: Luc SANCHEZ <4697568+ColonelMoutarde@users.noreply.github.com>

* Update lib/Minz/View.php

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

* Update lib/Minz/View.php

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

* Update lib/Minz/View.php

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

* fix

---------

Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
Co-authored-by: Luc SANCHEZ <4697568+ColonelMoutarde@users.noreply.github.com>
2023-03-04 15:05:58 +01:00
Sadetdin EYILI
d3966befaf feat: create config to display website icon only / name only / icon and name / none on feeds (#4969)
* feat: create config to display website icon only / name only / icon and name / none on feeds

* fix title hovering

* reverted: column in .phtml

* Update app/i18n/fr/conf.php

---------

Co-authored-by: mathContao <math-home@web.de>
Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
2023-03-04 14:51:07 +01:00
maTh
27c7367534 Improve UI/UX install process (#5147)
* less buttons on step 1

* add form-group

* jump to next step as link not as button

* improve navigation bar HTML structure

* sync password-show button with extra.js

* fix CSS

* i18n: step 4: split text strings for help text (max chars default user)

* show menu button if mobile view

* improve header layout with empty div

* step 5: button in form-actions

* improve buttons in goup-controls

* Favicon added

* Button: Font color  hover btn-attention

* install check step: add subtitles

* fix .btn

* improve tabindex

* improve showPW_this()
2023-03-04 13:57:52 +01:00
maTh
1c1e63c6ad fixed: Global view - Stick the article to the top when opened (#5153) 2023-03-04 13:47:11 +01:00
maTh
a7e1428485 defined('CLEANCACHE_HOURS') (#5144)
https://github.com/FreshRSS/FreshRSS/issues/4627
2023-03-04 13:46:46 +01:00
Alexandre Alapetite
b5969494f9 Start FreshRSS 1.21.1-dev 2023-03-04 13:43:53 +01:00
Alexandre Alapetite
88026e1e75 Merge pull request #5160 from FreshRSS/latest
Sync with latest branch
2023-03-04 13:34:54 +01:00
Alexandre Alapetite
b3239256dc Merge branch 'edge' into latest 2023-03-04 13:30:45 +01:00
Alexandre Alapetite
0fe0ce894c Update credits 1.21.0 2023-03-04 13:01:58 +01:00
Alexandre Alapetite
de062c88ea Release FreshRSS 1.21.0 2023-03-04 12:55:43 +01:00
Alexandre Alapetite
d2cc5ad3f8 Changelog 1.21.0 2023-03-04 12:42:46 +01:00
Alexandre Alapetite
32acd6c13e SimplePie use single constant for default HTTP Accept header (#5083)
* Use single constant for default SimplePie HTTP Accept
And add missing headers in `SimplePie_Locator::body()`
Follow-up of 5d966b9f64

* Update SimplePie default HTTP Accept
Fix https://github.com/FreshRSS/FreshRSS/pull/5079#issuecomment-1421619176
The `*/*` breaks Mastodon content negotiation

* Revert "Update SimplePie default HTTP Accept"

This reverts commit 13a5a5cb3b.

* Same as upstream
2023-03-04 11:18:56 +01:00
Alexandre Alapetite
44f72889a5 Safer updateCachedValues (#5158)
#fix https://github.com/FreshRSS/FreshRSS/issues/5156
2023-03-04 10:06:30 +01:00
Alexandre Alapetite
4f957dfc4c Doc git latest (#5148)
#fix https://github.com/FreshRSS/FreshRSS/issues/4949
2023-02-28 08:11:27 +01:00
maTh
21f342af2c fix: mobile view: scroll main area again after closing slider (#5092) 2023-02-27 21:35:09 +01:00
Alexandre Alapetite
c170c390b7 Dev Container extensions syntax update (#5145)
The JSON syntax has changed for specifying extensions
https://aka.ms/devcontainer.json
2023-02-27 10:08:16 +01:00
Frans de Jonge
e56ecf79f6 main.js: fix empty window opened in some cases (#5146)
Fixes the following problem:

1. Don't have any article selected (easiest by clicking on "main stream" or a category)
2. Press space
3. A blank window is opened, but since there's no link nothing else happens.
2023-02-25 12:32:59 +01:00
maTh
859c48383a docs: Minz Framwork (#5102)
* done

* Update docs/fr/developers/Minz/index.md

Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
2023-02-23 22:20:36 +01:00
mincerafter42
6764758658 add self to contributors (#5142) 2023-02-23 22:12:35 +01:00
mincerafter42
60edc28528 Corrected frss:xPathItemTitle definition (#5140) 2023-02-23 20:14:55 +01:00
Alexandre Alapetite
e2a7e192a6 Fix MySQL bug (#5132)
#fix https://github.com/FreshRSS/FreshRSS/issues/5128
MySQL cannot have multiple VARCHAR(x) whose total length is higher than 65535 in the same table.

> ERROR 1118 (42000): Row size too large. The maximum row size for the used table type, not counting BLOBs, is 65535. This includes storage overhead, check the manual. You have to change some columns to TEXT or BLOBs
2023-02-23 16:21:29 +01:00
yzqzss
f3216b61b9 add archive.org as sharing service (#5096)
Co-authored-by: maTh <math-home@web.de>
2023-02-22 22:13:38 +01:00
maTh
2f9b14354c fix: group-controls min-width (#5097) 2023-02-22 22:12:52 +01:00
maTh
f015029c8e fix: sharing service config: data-leave-validation (#5098) 2023-02-22 22:11:49 +01:00
Luc SANCHEZ
212ab5c9b3 Update of PhpStan lib to last fix version (#5109)
Co-authored-by: Luc <sanchezluc+freshrss@gmail.com>
2023-02-22 21:50:09 +01:00
maTh
e908222589 fix: add sharing method (#5100) 2023-02-12 19:19:20 +01:00
Alexandre Alapetite
05ae1b0d26 XML+XPath (#5076)
* XML+XPath
#fix https://github.com/FreshRSS/FreshRSS/issues/5075
Implementation allowing to take an XML document as input using an XML parser (instead of an HTML parser for HTML+XPath)

* Remove noise from another PR

* Better MIME for XML

* And add glob *.xml for cache cleaning

* Minor syntax

* Add glob json for clean cache
2023-02-09 13:57:20 +01:00
Luc SANCHEZ
b9a62a6aaa code improvement for phpstan and humans ;) (#5084)
* code improvement for phpstan and humans ;)

* code improvement for phpstan and humans ;)

* code improvement for phpstan and humans ;)

* code improvement for phpstan and humans ;)

* PHPSTAN level 6

* PHPStan level 9

* Avoid return mixed

---------

Co-authored-by: Luc <sanchezluc+freshrss@gmail.com>
Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
2023-02-09 13:52:55 +01:00
Alexandre Alapetite
64d68a691c Fix disabling proxy (#5082)
#fix https://github.com/FreshRSS/FreshRSS/issues/5081
Allow disabling curl proxy for specific feed, when proxy is defined globally
2023-02-08 17:52:51 +01:00
Alexandre Alapetite
e899e4edd9 More robust application of access permissions (#5062)
* More robust application of access permissions
We were in particular missing directory traversal `+X` in our current recommendations.
Extracted to own shell script so it can easily be invoked.
Update access permissions in Docker to account to be more robust.
#fix https://github.com/FreshRSS/FreshRSS/discussions/5037

* Minor simplification

* Restrict mkdir permissions
Default mkdir permissions are 0777, which is not good for security, so downgrade to 0770.
2023-02-06 15:42:53 +01:00
Alexandre Alapetite
de2077b563 Increase max HTTP timeout (#5074)
* Increase maximum HTTP request timeout from 2 minutes to 15 minutes;
    * Reason: I have some RSS Bridge generating feeds, which can take several minutes.

* Increase default HTTP request timeout from 15 to 20s.
    * Reason: I regularly observe feeds, which are slow to answer.
2023-02-06 14:11:41 +01:00
Luc SANCHEZ
40aa8b9264 Type hinting and doc (#5063)
* Type hinting and doc

* fix cs

* Remove declare strict

* Remove declare strict

* Pass PHPStan level 9
Revert too boolean syntax

* Minor wording

* Fix revert typo

---------

Co-authored-by: Luc <sanchezluc+freshrss@gmail.com>
Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
2023-02-03 14:35:59 +01:00
Alexandre Alapetite
9b5de54a9c Remove -x on some files not needing it (#5065) 2023-02-03 14:34:47 +01:00
maTh
9f221e9c51 Fix: dropdowns' overflow (#5055) 2023-01-30 20:34:28 +01:00
maTh
e53ba88bb9 Search Improved: dropdown (#4994)
* first draft

* fix

* RTL CSS

* add link to documentation

* hide search button in desktop view

* rename .no-desktop to .only-mobile

* i18n

* add ID

* Theme: Swage

* Theme Scewdriver

* Theme Pafat

* Theme flat

* Theme: Adark

* Theme: Dark

* i18n: German

* i18n en-us

* fix i18n

* Update app/i18n/fr/gen.php

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

* Update app/layout/nav_menu.phtml

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

* Update app/layout/nav_menu.phtml

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

* Update app/layout/nav_menu.phtml

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

* wip

* mapco theme

* RTL for Ansum and Mapco

* fix

* fix

---------

Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
2023-01-30 20:32:55 +01:00
Alexandre Alapetite
4ad66c24bf Workaround disabled openlog syslog (#5054)
* Workaround disabled openlog syslog
#fix https://github.com/FreshRSS/FreshRSS/issues/5053
#fix https://github.com/FreshRSS/FreshRSS/issues/5027

* COPY_SYSLOG_TO_STDERR

* Better return

* Simplify openlog
2023-01-30 20:31:46 +01:00
maTh
9e4b4c9072 fix: Thumbnails background (#5058)
* fix

* fix
2023-01-30 20:30:36 +01:00
Alexandre Alapetite
4f316b2ed3 PHPStan level 9 for ./p/ and lib_rss.php (#5049)
And app/FreshRSS.php
Contributes to https://github.com/FreshRSS/FreshRSS/issues/4112
2023-01-29 18:53:51 +01:00
Alexandre Alapetite
2303b29e68 Document cleaning the logs for passwords (#5050)
Follow up of https://github.com/FreshRSS/FreshRSS/pull/5001
2023-01-28 23:15:28 +01:00
Alexandre Alapetite
e617830e96 Fix types hint in UserQuery.php (#5045)
* Fix types hint in UserQuery.php
In particular, we had a mix of strings and integers for the query state
Pass PHPStan level 9

* Unneeded null check
2023-01-28 13:37:09 +01:00
Alexandre Alapetite
d8744a9ec1 Fix notif_body_new_articles (#5042)
#fix https://github.com/FreshRSS/FreshRSS/issues/5041
2023-01-28 13:36:47 +01:00
Alexandre Alapetite
07efaf71ea Fix error handling when updating URL (#5039)
Fix 3 related error handling when updating the feed URL with an invalid URL. Previously leading to unclear 500 page with additional PHP errors.
2023-01-26 08:59:34 +01:00
Alexandre Alapetite
2f02754522 Increase max feed URL length and drop unicity (#5038)
* Increase max feed URL length and drop unicity
#fix https://github.com/FreshRSS/FreshRSS/issues/4338
Drop the unicity constraint on our feed URL. In practice, this did not add much value as identical feeds could have different URLs. And it generated several problems, for instance during renaming or automatic redirections such as from HTTP to HTTPS, with collisions for which we dot not have any elegant handling.
I have kept a high limit of 32768 because cURL does not seem to have any limit except memory, which might lead to memory problems. This is the highest server-side value reported by https://www.sistrix.com/ask-sistrix/technical-seo/site-structure/url-length-how-long-can-a-url-be

* Same for Web site URL
For consistency
2023-01-26 08:13:38 +01:00
maTh
1c4b328ae1 Improved: expanding inputs (#5040)
* fix

* wider input element
2023-01-25 22:23:51 +01:00
maTh
1aab0459fa fix "Mark selection as unread" CSS (#5034) 2023-01-22 23:57:11 +01:00