Commit Graph
4960 Commits
Author SHA1 Message Date
Alexandre Alapetite 00dbde68fb Fix some PHPstan errors (#4019)
Fix some wrong variables found by https://github.com/FreshRSS/FreshRSS/issues/4016
2021-12-02 23:30:13 +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 4e00c2d337 Fix more PHP 8.1 null warnings (#4018)
Follow-up of https://github.com/FreshRSS/FreshRSS/pull/4012
2021-12-02 21:05:28 +01:00
Alexandre Alapetite 28cff8a0df Fix some PHP 8.1 warnings (#4012)
* Fix some PHP 8.1 warnings
The proper fix will have to wait till be drop PHP7.
#fix https://github.com/FreshRSS/FreshRSS/issues/4010

* Another PHP8.1 fix
2021-12-01 23:24:39 +01:00
Alexandre Alapetite b21fe199ed Manual update SimplePie (#4011)
* https://github.com/simplepie/simplepie/commit/417a1661b2610448bd8e1835d6d4160a0aff9a97
* https://github.com/simplepie/simplepie/commit/ebdd0643ee927edfcaf40bfd27ab23ce9c975120
* https://github.com/simplepie/simplepie/commit/941412027a46979b4f1d29e53edf91829788d781
* https://github.com/simplepie/simplepie/commit/f58a23730f01f26bbcfe02ff9266e337c241be88
2021-12-01 23:24:18 +01:00
maTh 48ca0bb764 related_tags (#4008) 2021-12-01 13:19:17 +01:00
maTh f6db32bdfb delete overflow-y (#4005) 2021-11-30 22:28:55 +01:00
maTh c5d444e8df Fix JS error: new-article missed (#3999) 2021-11-30 22:20:43 +01:00
maTh 42162c04a0 Fix #4002: transparent config menu (#4003)
* Update template.css

* Update template.rtl.css
2021-11-29 19:59:13 +01:00
Alexandre Alapetite 4cfeb96f3d Docker: Alpine 3.15 (#3996)
Alpine 3.15 with PHP 8.0.13 and Apache 2.4.51
https://alpinelinux.org/posts/Alpine-3.15.0-released.html
2021-11-27 12:31:51 +01:00
maTh 83110b1c49 typo fix (#3998) 2021-11-27 12:23:52 +01:00
maTh 392861b7c3 Switch category - remember status filter (#3986)
* url parameter

* fixed phpcs

* rename variables
2021-11-24 09:10:23 +01:00
maTh 9f7a973ca0 improved HTML (#3989) 2021-11-24 09:08:19 +01:00
maTh af85a754ad improved HTML (#3990) 2021-11-24 09:06:46 +01:00
xnaas 1595d557b0 Fix typo of 'envelope' and reference De Morgan's laws (#3991) 2021-11-24 09:05:18 +01:00
maThandAlexandre Alapetite a5410f6d37 Fix issue with mark-all-as-read-button in anonym. mode (#3944)
* fix

* Update p/scripts/main.js

Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
2021-11-15 22:03:26 +01:00
Alexandre Alapetite e61cc3153a Additional HTTP error codes (#3981) 2021-11-15 13:44:14 +01:00
Alexandre Alapetite 81b00bd8aa Docker: Move logic to disable FreshRSS updates (#3973)
Should be done during build and not during entrypoint, to avoid modifying a potential volume (e.g. mounting the source code as a volume is used during development).
2021-11-14 23:25:27 +01:00
Brooke b780ef5276 Update PHPMailer to 6.5.1 (#3977) 2021-11-14 23:25:12 +01:00
maThandAlexandre Alapetite f12637d2b2 Fix js errors (#3980)
* fixed missed popup

* fix missed document.getElementById('loginButton')

* make fix-all

Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
2021-11-14 23:24:47 +01:00
maTh e61906b5e7 Update config.default.php (#3979) 2021-11-14 22:28:46 +01:00
maThandAlexandre Alapetite 1ae5a5af14 Improve mobile view: access to the config menu (#3881)
* wip

* improve the header

* Fix theme "Adark"

* fixed theme: Ansum

* Fixed theme: BlueLagoon

* fixed Ansum after PR comment of Frenzie

* Fixed theme: Dark

* fixed theme: Flat

* fixed theme: Mapco

* fixed theme: Origine compact

* fixed theme: Pafat

* fixed theme: Screwdriver

* fixed theme: Swage

* hide the close button in wide view

* fixed base/template RTL

* fixed SCSS of theme Swage

* stylelint fix

* fixed theme Swage

* make fix-all

Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
2021-11-12 08:57:36 +01:00
maTh a29894610b a to button (#3969) 2021-11-11 20:07:10 +01:00
maTh 079b7b961f Improve install routine: database password input with "show password" button (#3962)
* wip

* CSS better btn

* CSS: RTL

* button is better than a

* improved CSS for button
2021-11-11 20:01:28 +01:00
maThandAlexandre Alapetite 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 181a54289a Update details.phtml (#3966) 2021-11-08 22:37:29 +01:00
nanhualyq 9eb08d6a61 Update i18n/zh-cn (#3963)
* Update i18n/zh-cn

* Update gen.php

* Update conf.php

* Update conf.php

* Update conf.php
2021-11-07 20:55:49 +01:00
maThandAlexandre Alapetite 387343a0e1 fixed: Shortcuts in "Anonym. Mode" broken (#3897) (#3945)
* fix

* improved delayClick()

* Do not send empty mark as read request

Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
2021-11-04 22:22:39 +01:00
0d31f89dd8 Remove remains of Travis (#3941)
* Remove remains of Travis
Follow-up of https://github.com/FreshRSS/FreshRSS/pull/3920

* Update docs/en/developers/03_Running_tests.md

Co-authored-by: Frans de Jonge <fransdejonge@gmail.com>

* Apply suggestions from code review

Co-authored-by: Frans de Jonge <fransdejonge@gmail.com>
Co-authored-by: Alexis Degrugillier <aledeg@users.noreply.github.com>
2021-11-02 23:46:26 +01:00
maTh 530aa0bb3a fix main.js (#3956) 2021-11-02 23:45:38 +01:00
maTh 9326e419e3 fix typo (#3949) 2021-10-30 18:45:05 +02:00
nanhualyq 8161ab675a Update i18n/zh-cn (#3947)
* Update i18n/zh-cn

* Update gen.php

* Update conf.php
2021-10-30 10:28:00 +02:00
maThandAlexandre Alapetite f0fa3f3202 New shortcut: actualize feeds (#3900)
* configs

* i18n

* improved

* Update app/i18n/fr/conf.php

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

* Update p/scripts/main.js

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

* Update main.js

* Update conf.php

* make fix-all

* i18n

* i18n

* i18n: delete conf.shortcut.actualize

* Update app/views/configure/shortcut.phtml
2021-10-28 01:24:44 +02:00
Kaibin Yang 6fce5aa77c Add a reminder for first-time contributors (#3940)
>
> * Update CONTRIBUTING.md CREDITS.md
>
> * If there is a file for contributors, why not telling them when they check the guidelines?
2021-10-27 00:24:46 +02:00
Alexandre Alapetite 9e9a6c3838 GitHub Actions cleaner error output (#3938)
Silence irrelevant NPM errors when a test fails. See e.g. https://github.com/FreshRSS/FreshRSS/runs/3999501244?check_suite_focus=true

```text
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! freshrss@ markdownlint: `markdownlint '**/*.md'`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the freshrss@ markdownlint script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/runner/.npm/_logs/2021-10-25T16_15_34_166Z-debug.log
```
2021-10-25 23:41:13 +02:00
Gianni ScolaroandAlexandre Alapetite f3bfe17a39 Update Italian Translation (#3939)
* Update Italian Translation

* Update app/i18n/it/admin.php

Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
2021-10-25 23:38:04 +02:00
maTh ff877e603f Cli: readme: added infos about manipulate.translation.php (#3937)
* added: ./cli/manipulate.translation.php + divided in sub sections

* headline structure

* blank lines added
2021-10-25 20:29:49 +02:00
maTh 33cac3e695 Update manipulate.translation.php (#3936) 2021-10-25 20:27:42 +02:00
Kaibin Yang 6660a2dded Add a reminder for NGINX installations (#3741) (#3934)
Update docs/en/admins/03_Installation.md
2021-10-25 20:26:09 +02:00
Mejans 670f4c45ab Update Occitan locale (#3935)
* Update conf.php

* Update gen.php

* Update install.php

* Update sub.php
2021-10-25 20:25:45 +02:00
Felix BühlerandAlexandre Alapetite 296b912557 Newsflash doc (#3931)
* [credit] add stunkymonkey

* [doc] update Newsflash in README

* Update README.fr.md

Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
2021-10-24 21:22:58 +02:00
Alexandre Alapetite d924fc5fbb Fix cron regression (#3933)
#fix https://github.com/FreshRSS/FreshRSS/pull/3927/files#r735146297
The path `/var/www/FreshRSS/` might be a Docker volume, breaking files created there during Docker build
2021-10-24 19:39:35 +02:00
Alexandre Alapetite 88e47dba80 Hot fix broken links documentation
Bug from https://github.com/FreshRSS/FreshRSS/pull/3905
2021-10-24 18:23:50 +02:00
d3be01a1da Add pwa (#3890)
* Don't use Chrome or indeed Firefox on Android

Would close #1963. But I will not finish this PR because the idea that every single website on the internet should have to do this is absolutely ridiculous.

* add pwa manifest

Add a pwa manifest as defined in https://developer.mozilla.org/en-US/docs/Web/Progressive_web_apps/Installable_PWAs
- creates shortcuts without the browser frame
- has a splash screen
- has an independent view stack than the browser one

* update manifest as per pwabuilder.com

* add 32x32 and 48x48 icon config

* enhance manifest spec compliance

* change as per suggestions

* Update app/layout/layout.phtml

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

* fix mobile icon padding

* remove screen auto rotation

* change theme color to white

* Move meta
(Should not be in the referrer condition)

* JSON HTTP cache

Co-authored-by: Frans de Jonge <fransdejonge@gmail.com>
Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
2021-10-24 17:28:40 +02:00
Alexandre Alapetite 9416f45dd9 GitHub Actions CI optimisation (#3929)
Efforts to reduce the resources used by CI:
* Only one git checkout
* Exclusion of irrelevant directories for several commands
* Fix some rtlcss warnings
* Move some commands from tests.yml to composer.json to make them reusasble
* Initial efforts to take avantage of all that from `make` (help welcome)
2021-10-24 17:25:41 +02:00
Chris Francy 07e00c7681 Docker: don't add crontab unless needed. (#3927)
Adding the crontab as part of the image build makes it more complicated
to add custom entries to the crontab. Adjusting the image and entrypoint
to make it so that the crontab is only added when CRON_MIN is set
simplifies having a custom crontab.
2021-10-24 17:25:03 +02:00
Alexandre Alapetite c5ab4cea4a Fix getNonStandardShortcuts (#3924)
#fix https://github.com/FreshRSS/FreshRSS/issues/3922
Quick fix. The `getNonStandardShortcuts()` could probably be re-written.
2021-10-24 17:23:04 +02:00
Frans de Jonge f1e4b980fb [i18n] Add Dutch translation for new strings (#3928)
References #3898.
2021-10-24 11:37:54 +02:00
nanhualyq b39c187a78 Update i18n/zh-cn (#3926) 2021-10-24 11:17:20 +02:00
maTh cc9b2c0a74 clipboard translated (#3925) 2021-10-24 10:56:27 +02:00