Commit Graph

6013 Commits

Author SHA1 Message Date
maTh
154a36700c Refactoring: Rename dotpath into dotnotation (#6369)
* KIND_JSON_DOTPATH -> KIND_JSON_DOTNOTATION

* TYPE_JSON_DOTPATH => TYPE_JSON_DOTNOTATION

* json_dotpath => json_dotnotation

* dotPathsForStandardJsonFeed => dotNotationForStandardJsonFeed

* TYPE_JSON_DOTNOTATION = 'JSON+DotPath' => 'JSON+DotNotation'

* documentation: OPML.md

* convertJsonToRss()

* $dotpaths => $dotnotations

* FreshRSS_Feed_Exception

* comment

* Compatibility TYPE_JSON_DOTPATH

---------

Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
2024-04-25 08:28:42 +02:00
Alexandre Alapetite
5e66adcc51 Remove noise parameters in query URL (#6371)
* Remove noise parameters in query URL
Remove undeeded `name` and `rid` parameters from saved user query

* Fix logic
2024-04-23 10:59:09 +02:00
Alexandre Alapetite
90fbb524ce Windows: release SQLite (#6285)
* Windows: release SQLite
fix https://github.com/FreshRSS/FreshRSS/issues/6275

* Do not use sharedPdo for deleting user

* Case of same user

* Help PHPStan
2024-04-21 16:25:37 +02:00
Tibor Repček
b37404cce7 Slovakian (SK) gen.php (#6366)
* Update gen.php

Related to the issue #6356

* Update app/i18n/sk/gen.php

---------

Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
2024-04-21 00:50:10 +02:00
maTh
f0d9134478 Json dotpath i18n (#6368)
* Update update.phtml

* Update add.phtml
2024-04-21 00:46:32 +02:00
Tibor Repček
a51fb891b5 Slovakian (SK) index.php (#6367)
Related to the issue #6356
2024-04-21 00:45:16 +02:00
Tibor Repček
c0fdefcfeb Slovakian (SK) feedback.php (#6365)
Related to the issue #6356
2024-04-21 00:44:52 +02:00
Tibor Repček
048b36a11b Slovakian (SK) conf.php (#6364)
Related to the issue #6356
2024-04-21 00:44:15 +02:00
Tibor Repček
bbb9834f92 Slovakian (SK) admin.php (#6363)
Related to the issue #6356
2024-04-21 00:43:50 +02:00
Tibor Repček
b1c3022a91 Slovakian (SK) sub.php (#6362)
Related to the issue #6356
2024-04-21 00:43:25 +02:00
-Shiken-
339fcfda10 update zh-tw translation for new strings (#6350)
* Update new stings of zhTW translation

 Update new strings of [i18n] Translation Chinese Taiwan (正體中文 zh-tw)

* Update conf.php of zh-tw

* Update feedback.php of zh-tw

* Update gen.php of zh-TW

* Update index.php of zh-TW

* Update install.php of zh-TW

* Update sub.php of zh-tw

not finished yet

* Update sub.php

correction line 152

---------

Co-authored-by: maTh <1645099+math-GH@users.noreply.github.com>
2024-04-21 00:42:03 +02:00
Bartosz Taudul
b4d7649504 Update Polish translation. (#6358) 2024-04-21 00:41:30 +02:00
May
2f74ebafa8 [i18n] Added Czech translation (#6344)
* Add Czech tranlation for admin

* Add more translations

* add translations for sub.php

* 2nd check and remove TODO comment from translated strings

* fix

* Update sub.php

* update sub.php

---------

Co-authored-by: maTh <1645099+math-GH@users.noreply.github.com>
2024-04-21 00:40:56 +02:00
yzqzss
5c33e5191a i18n: update zh-cn translation (#6336)
* i18n: update zh-cn translation

* minor edit

* fix translations syntax

* fix translations syntax: use tab

* better translation

* clarify how Content-Type header auto-set works

* fix a mistranslation discovered by comparing #6335

Co-authored-by: <nanhualyq@gmail.com>

---------

Co-authored-by: maTh <1645099+math-GH@users.noreply.github.com>
2024-04-20 00:03:57 +02:00
maTh
81f6bbf64e Improve: input width in user query config slider (#6357) 2024-04-20 00:01:34 +02:00
Pedro Paulo
68744f0106 Add new contributor to CREDITS.md (#6354)
* Add new contributor to CREDITS.md

* Update CREDITS.md
2024-04-20 00:00:22 +02:00
FabioL
1308dd6b82 Update of italian translation (#6329)
* Updated italian translations

* Minor fixes

* Workaround bug with `array (`

* Added credits for translations

* Alphabetic order

* Revert lost line

* Update of italian translation

* Unicode ’

* Update app/i18n/it/sub.php

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

---------

Co-authored-by: loviuz <loviuz@mailbox.org>
Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
2024-04-19 23:58:57 +02:00
Cilga Iscan Tercanli
f6f7764ba7 Update TR translation #6325 (#6328)
* Update TR translation

* Fix typo

* fix conf.php

* fix sub.php

* Update sub.php

* Update feedback.php

* Update app/i18n/tr/admin.php

---------

Co-authored-by: math-gh <1645099+math-GH@users.noreply.github.com>
Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
2024-04-19 13:57:57 +02:00
Pedro Paulo
dcd3b80a90 Update PT-BR translation (#6345)
* trans: update pt-br translation

* Apply suggestions from code review

* Update app/i18n/pt-br/sub.php
2024-04-19 12:54:31 +02:00
Frans de Jonge
a5f87e0671 [i18n] Update Dutch translation for 1.24 (#6343)
Closes #6341.
2024-04-19 12:53:48 +02:00
Sungjoon Moon
e1834f61a6 i18n: Update Korean translation (#6342) 2024-04-19 12:52:59 +02:00
zu
7ccbdef935 Update of Japanese translation (#6337)
* Japanese translation of admin.php

* Japanese translation of other files

* Correction by suggestion
2024-04-19 12:52:03 +02:00
zu
bc7c680438 [zukizukizuki]Add CREDITS.md (#6339) 2024-04-19 12:51:40 +02:00
maTh
5a14ff3135 i18n: de (#6313)
* Update admin.php

* Update conf.php

* Update conf.php

* Update feedback.php

* Update index.php

* Update conf.php

* Update sub.php

* Update sub.php

* Update sub.php
2024-04-19 12:44:01 +02:00
maTh
3261b7bafb i18n improved: dotted path -> dot-notation (#6317)
* dotted path -> dot-notation

* dot-notation -> dot notation

* rename json_dotpath => json_dotnotation

* Update app/i18n/fr/sub.php

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

* Update app/i18n/fr/sub.php

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

* Update app/i18n/fr/sub.php

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

* Update app/i18n/nl/sub.php

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

* Update app/i18n/nl/sub.php

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

* Update app/i18n/nl/sub.php

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

* Update app/i18n/nl/sub.php

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

* Rename corresponding class

---------

Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
Co-authored-by: Frans de Jonge <fransdejonge@gmail.com>
2024-04-18 14:00:17 +02:00
maTh
0ffcf41f93 Fix: API mangement section in profile page (#6314) 2024-04-17 08:28:20 +02:00
maTh
22172fd5bc Download feed configs as opml: button (#6312)
* button in feed configs

* i18n

* naming download file: added .opml

* .opml.xml

* i18n fr

* Fix i18n en-GB

---------

Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
2024-04-16 15:52:59 +02:00
maTh
bf68205ae3 Improved: Reading view: author (#6289)
* move the margin from themes to frss.css + delete font-size

* same source code as normal view for author information
2024-04-15 23:14:34 +02:00
Alexandre Alapetite
b22d9279bd Update @stylistic/stylelint-plugin (#6307)
fix https://github.com/FreshRSS/FreshRSS/issues/6281
2024-04-15 15:50:00 +02:00
maTh
6901ff1e70 improved: Gap between header and first image (#6299) 2024-04-14 23:49:26 +02:00
maTh
2846fdba6f Fix Clipboard sharing (#6301) 2024-04-14 23:48:13 +02:00
Hkcomori
18532eaa61 Improve Japanese translation for CSS selector (#6294) 2024-04-13 12:32:12 +02:00
Frans de Jonge
e19b8a4e0a Add some error prevention to Debian/Ubuntu installation docs (#6290)
Reverts a minor part of <https://github.com/FreshRSS/FreshRSS/pull/2164>.
People who want to use the root can easily figure out how to do that themselves.

Fixes #4955.
2024-04-12 23:19:23 +02:00
Alexandre Alapetite
7aaed6092f SimplePie replace iframe allow attribute (#6274)
* SimplePie strip iframe allow attribute
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe#allow

Besides security, the `allow autoplay` atttribute is especially problematic on mobile (Firefox on Android) as it asks to open the YouTube app as soon as the article is opened.

Example of code before:

```html
<iframe data-original="https://www.youtube.com/embed/??????feature=oembed" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen="" sandbox="allow-scripts allow-same-origin"></iframe>
```

* Replace allow attribute

* Allow more
2024-04-11 08:48:50 +02:00
Jacopo Galati
30f147410d fix selector for clipboard sharing option (#6277)
Clipboard sharing uses  <button> instead of <a>, so the selector does not find it
2024-04-11 08:48:32 +02:00
Alexandre Alapetite
350edf398c PHP 8.3 #[\Override] (#6273)
* PHP 8.3 #[\Override]
https://php.watch/versions/8.3/override-attr

With PHPStan `checkMissingOverrideMethodAttribute` https://phpstan.org/config-reference#checkmissingoverridemethodattribute

And modified the call to phpstan-next on the model of https://github.com/FreshRSS/Extensions/pull/228 (more robust than the find method, which gave some strange errors)

* Update extension example accordingly
2024-04-10 15:33:43 +02:00
Alexandre Alapetite
8280e3d88e Allow admins to create user even when there are TOS (#6269)
fix https://github.com/FreshRSS/FreshRSS/issues/5409
2024-04-08 14:49:03 +02:00
Alexandre Alapetite
72933b301e Fix paging posts per page (#6268)
* Fix paging posts per page
fix https://github.com/FreshRSS/FreshRSS/issues/6062
Due to strange scoping of anonymous function trying to update a static property

* Better type syntax
2024-04-08 14:48:30 +02:00
Alexandre Alapetite
6e12781821 Fix SimplePie absolutize URL for several cases (#6270)
This is especially relevant for HTML+XPath mode, for which we rely on proper URL "absolutize"

Upstream PR https://github.com/simplepie/simplepie/pull/861
2024-04-08 11:13:01 +02:00
Alexandre Alapetite
283341e75e Allow multiple authors on enclosures (#6272)
fix https://github.com/FreshRSS/FreshRSS/issues/5066
2024-04-08 11:10:10 +02:00
Alexandre Alapetite
c052149e5a Avoid duplicates in Dynamic OPML (#6264)
Avoid duplicate feeds if the dynamic OPML contains the same feed multiple times
2024-04-07 21:45:40 +02:00
Alexandre Alapetite
e3c86a164d HTTP Get allow UTF-8 even when charset is far from top (#6271)
* HTTP Get allow UTF-8 even when charset is far from top
fix https://github.com/FreshRSS/FreshRSS/issues/5586

The case was an HTML document with 15k whitespace then 1.2k of scripts before the `<meta charset="utf-8">` (far from the 1024 bytes suggested by the spec..., and too far for DOMDocument)

* Rewording

* Trim also vertical tab + comment
2024-04-06 23:02:50 +02:00
Alexandre Alapetite
1c684a91d2 Minor update dev libraries (#6265) 2024-04-06 11:40:55 +02:00
dependabot[bot]
3274f82307 Bump phpstan/phpstan from 1.10.60 to 1.10.66 (#6252)
Bumps [phpstan/phpstan](https://github.com/phpstan/phpstan) from 1.10.60 to 1.10.66.
- [Release notes](https://github.com/phpstan/phpstan/releases)
- [Changelog](https://github.com/phpstan/phpstan/blob/1.11.x/CHANGELOG.md)
- [Commits](https://github.com/phpstan/phpstan/compare/1.10.60...1.10.66)

---
updated-dependencies:
- dependency-name: phpstan/phpstan
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-01 23:04:55 +02:00
dependabot[bot]
9742e99302 Bump squizlabs/php_codesniffer from 3.9.0 to 3.9.1 (#6251)
Bumps [squizlabs/php_codesniffer](https://github.com/PHPCSStandards/PHP_CodeSniffer) from 3.9.0 to 3.9.1.
- [Release notes](https://github.com/PHPCSStandards/PHP_CodeSniffer/releases)
- [Changelog](https://github.com/PHPCSStandards/PHP_CodeSniffer/blob/master/CHANGELOG.md)
- [Commits](https://github.com/PHPCSStandards/PHP_CodeSniffer/compare/3.9.0...3.9.1)

---
updated-dependencies:
- dependency-name: squizlabs/php_codesniffer
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-01 23:04:31 +02:00
dependabot[bot]
edd569c481 Bump phpunit/phpunit from 9.6.17 to 9.6.18 (#6253)
Bumps [phpunit/phpunit](https://github.com/sebastianbergmann/phpunit) from 9.6.17 to 9.6.18.
- [Release notes](https://github.com/sebastianbergmann/phpunit/releases)
- [Changelog](https://github.com/sebastianbergmann/phpunit/blob/9.6.18/ChangeLog-9.6.md)
- [Commits](https://github.com/sebastianbergmann/phpunit/compare/9.6.17...9.6.18)

---
updated-dependencies:
- dependency-name: phpunit/phpunit
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-01 23:04:05 +02:00
dependabot[bot]
5d7244e4e3 Bump actions/configure-pages from 4 to 5 (#6254)
Bumps [actions/configure-pages](https://github.com/actions/configure-pages) from 4 to 5.
- [Release notes](https://github.com/actions/configure-pages/releases)
- [Commits](https://github.com/actions/configure-pages/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/configure-pages
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-01 23:03:53 +02:00
dependabot[bot]
aa5c433093 Bump sass from 1.71.1 to 1.72.0 (#6255)
Bumps [sass](https://github.com/sass/dart-sass) from 1.71.1 to 1.72.0.
- [Release notes](https://github.com/sass/dart-sass/releases)
- [Changelog](https://github.com/sass/dart-sass/blob/main/CHANGELOG.md)
- [Commits](https://github.com/sass/dart-sass/compare/1.71.1...1.72.0)

---
updated-dependencies:
- dependency-name: sass
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-01 23:03:18 +02:00
Frans de Jonge
d7f5ef3627 greader.php: only return 'OK' on greader.php without query parameters (#6238)
It'd be clearer if the API endpoint didn't return `OK` when adding the `Email` and `Passwd` parameters. Whether it should indeed return `OK` if they're correct is debatable.

In reply to <https://github.com/FreshRSS/FreshRSS/issues/5856#issuecomment-2019814077>.
2024-04-01 11:45:44 +02:00
maTh
c18987fae3 Improve/fix label management (#6212)
* add the slider

* the styles

* add the title

* improve the column layout
2024-04-01 11:43:22 +02:00