80 Commits

Author SHA1 Message Date
LaurentGH
456eee65f4
Fix ESLint message about == instead of ===
ESLint told me "Expected '===' and instead saw '=='", so fix this.
2025-11-20 14:22:09 +01:00
LaurentGH
7e89408da0
Automatically close the "Opening debugger" message
In the Preferences page, in the Feeds tab, in "Feeds with errors" page, one can select a feed, and click on the button "Debug selected feeds".

This opens a new web browser tab, and also adds a yellow message "Opening debugger for selected feeds...". However, when we come back to the Preferences page, we have to manually close this yellow message, which becomes useless.

This patch automatically closes the message after 5 seconds, by setting the second parameter of Notify.progress() to false.

This patch also opens the confirm() only when there are several selected feeds. There is not need for a confirmation for one feed only.
2025-11-20 14:08:28 +01:00
supahgreg
dab918a426
Switch links from the GitHub project wiki to 'tt-rss.org'. 2025-11-19 02:06:54 +00:00
LaurentGH
4da5e11653
Error message when cancelling a label creation
When "Create label" menu is clicked, a popup asks for the label name. If the Cancel button is immediately entered, an error message is displayed: TypeError: can't access property "trim", caption is null.

Indeed, the JavaScript prompt() message returns null when Cancel is pressed. The test "caption !== undefined" is thus true, and the trim() is tried on null, which fails.

The fix is to only check for "caption" or "caption != null".
2025-11-05 17:07:35 +01:00
LaurentGH
1a1cec689c
Replace e-mail and mail by email 2025-11-04 17:20:26 +01:00
supahgreg
e68bc2c32d
Clean up frontend escaping. 2025-10-21 15:57:03 -05:00
supahgreg
c8b80c4041
Improve handling of URLs on the frontend. 2025-10-21 14:33:20 -05:00
supahgreg
d96e85c695
Fix a scope issue resulting from the Dojo 1.17 upgrade. 2025-10-21 14:32:10 -05:00
supahgreg
ec0a83e90e
Remove an unused var in CommonDialogs. 2025-10-18 20:39:22 +00:00
supahgreg
84697e4b66
Reduce JS logging, tweak some levels. 2025-10-18 20:32:20 +00:00
supahgreg
f85559735b
Remove 'App.byId()', which was essentially an alias of 'document.getElementById()'. 2025-10-14 23:23:01 +00:00
supahgreg
cde120b3d7
Clean up unnecessary eslint-disable directives (per ESLint). 2025-10-12 22:27:18 +00:00
supahgreg
360c552da4
Address rule 'no-redeclare' for 'dojo' and 'dijit' (defined as globals in 'eslint.config.js').
Also take care of 2 'no-prototype-builtins' and a 'no-useless-escape'.

* https://eslint.org/docs/latest/rules/no-redeclare
* https://eslint.org/docs/latest/rules/no-prototype-builtins
* https://eslint.org/docs/latest/rules/no-useless-escape
2025-10-12 21:48:10 +00:00
supahgreg
d442079a72
Address ESLint rule 'no-prototype-builtins'.
https://eslint.org/docs/latest/rules/no-prototype-builtins
2025-10-12 21:38:59 +00:00
supahgreg
39182a76e4
Address ESLint rule 'eqeqeq'.
https://eslint.org/docs/latest/rules/eqeqeq
2025-10-12 21:34:29 +00:00
supahgreg
a7d5566aa9
Switch links to the 'tt-rss' GitHub organization. 2025-10-06 19:02:28 +00:00
supahgreg
ec367b23f4
Switch from 'tt-rss-web-static' links to wiki links. 2025-10-05 20:18:56 +00:00
supahgreg
5e99eb41ec Remove references to, and integrations with, 'tt-rss.org'. 2025-10-03 21:00:43 +00:00
wn_
0cd788220d Separate feed type detection from init, don't subscribe on failures.
Also some FeedParser tweaks.
2025-07-06 02:33:18 +00:00
wn_
09c11df764 Clean up displaying subscription error info, log more detailed info to the event log. 2025-06-19 20:37:49 +00:00
wn_
692c7a8949 Remove unused subscription return code 6 2025-06-17 18:02:57 +00:00
wn_
5b0d325733 Escape error content displayed when subscribing fails (as it might contain HTML). 2025-06-17 17:59:10 +00:00
wn_
ef1f3cbcef Show some HTML content as a hover tip when the 'feed URL' returned HTML without feeds.
Also tweak the 'Feeds::_subscribe()' documentation a bit.
2025-06-17 17:52:06 +00:00
Andrew Dolgov
5dcb8db933
allow setting update interval in subcribe to feed dialog 2025-03-19 12:47:10 +03:00
wn_
5e7713a658 Add option to debug feeds in 'Feeds with update errors' dialog.
Also, prevent opening that dialog from modifying the URL.
2024-05-16 15:48:21 +00:00
wn_
e33b0297d5 Ensure the feed name is easily visible when looking at the feeds with errors list. 2023-12-23 17:01:24 +00:00
wn_
c7e1caf223 Fix class names in some more places.
Related to the PSR-4 move via 865ecc87963dc3b26e66296616eef2a1cc41ac3f
2023-10-26 15:01:43 +00:00
Andrew Dolgov
865ecc8796
move to psr-4 autoloader 2023-10-25 12:55:09 +03:00
wn_
807f914338 Make edit feed dialog's 'remove icon' button a regular button.
Previously it was of type 'submit', and hitting Enter anywhere in the modal triggered its action (rather than the other submit button for saving).
2023-04-01 14:22:33 +00:00
Andrew Dolgov
cf93371607 show safe mode warning dialog in prefs 2021-11-14 16:12:27 +03:00
Andrew Dolgov
9e8d69739f add two helper account access levels:
- read only - can't subscribe to more feeds, feed updates are skipped
 - disabled - can't login
define used access levels as UserHelper constants and refactor code to
use them instead of hardcoded numbers
2021-11-10 20:44:51 +03:00
Andrew Dolgov
166517240e use svg icon for the subscribe dialog 2021-03-16 21:47:10 +03:00
Andrew Dolgov
b27218a1e3 add some more dialog icons 2021-03-06 23:32:25 +03:00
Andrew Dolgov
68ecf52594 some small layout fixes, remove a few inline styles 2021-03-06 20:03:36 +03:00
Andrew Dolgov
e5469479c1 * don't try to update custom set feed favicons
* cleanup update_rss_feed() a bit, use ORM
2021-03-06 11:17:15 +03:00
Andrew Dolgov
5c1f9f31bd add a bunch of button icons 2021-03-05 15:16:41 +03:00
Andrew Dolgov
75e659ba65 reduce Amount of Caps Used in Multiple Dialogs 2021-03-03 14:10:18 +03:00
Andrew Dolgov
861a632ac7 move published opml JS code to pref helpers 2021-02-21 18:04:44 +03:00
wn_
1bd5152c80 Open the default feed after unsubscribing.
Previously the UI appeared to hang, even though the backend request had already completed successfully.
2021-02-21 12:48:15 +00:00
Andrew Dolgov
22fe9b54d2 feed editor: use client dialog 2021-02-20 13:32:09 +03:00
Andrew Dolgov
9586c72a17 wip: feed editor client-side 2021-02-20 10:26:09 +03:00
Andrew Dolgov
660a1bbe01 * switch to xhr.post() almost everywhere
* call App.handlerpcjson() automatically on json request (if possible)
 * show net/log indicators in prefs
2021-02-19 13:44:56 +03:00
Andrew Dolgov
bb4e4282f4 migrate a bunch of xhrPost invocations 2021-02-19 11:28:14 +03:00
Andrew Dolgov
6b43b788d9 migrate xhrJson invocations to the new helper 2021-02-19 10:22:00 +03:00
Andrew Dolgov
bec35200e9 fix some eslint-related stuff 2021-02-19 07:29:21 +03:00
Andrew Dolgov
dcfea9baac properly validate feed editor dialog 2021-02-19 06:51:15 +03:00
Andrew Dolgov
70fa423026 initial for RIP prototype/scriptaculous 2021-02-18 21:51:18 +03:00
Andrew Dolgov
b16abc157e * App: rename hidden to hidden_tag
* search: use client dialog
 * add some form field helpers
2021-02-17 19:34:54 +03:00
Andrew Dolgov
3887665bcb CommonDialogs.addLabel: remove long unused parameters 2021-02-16 14:13:38 +03:00
Andrew Dolgov
6b006a18e7 subscribe to feed: use client dialog 2021-02-15 15:21:41 +03:00