aboutsummaryrefslogtreecommitdiff
path: root/p/scripts/main.js
AgeCommit message (Collapse)Author
2022-01-08Use typographic quotes (#4133)Gravatar Alexandre Alapetite
* Use typographic quotes * A few fixes * Fix * Fix not saved * Implement feedback * Detail * Revert spoken English fixes Left for a future dedicated discussion * More reverts * Final reverts * Final minor
2022-01-08Fix various typos and spelling errors in documentation, comments and code. ↵Gravatar Thomas Renes
(#4134)
2021-12-31Check data URI (#4098)Gravatar Offerel
* Check data URI
2021-12-07Fix: global view does not show "no articles to show" alert (#4042)Gravatar maTh
* fix * phpcs fixed * fix JS
2021-12-03Add preventDefault to keydown event handler (#4013)Gravatar Frans de Jonge
* Add preventDefault to keydown event handler Fixes #3946. * review * silence technically correct but missing the picture check Co-authored-by: Frans de Jonge <frans@clevercast.com>
2021-11-15Fix issue with mark-all-as-read-button in anonym. mode (#3944)Gravatar maTh
* fix * Update p/scripts/main.js Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
2021-11-14Fix js errors (#3980)Gravatar maTh
* fixed missed popup * fix missed document.getElementById('loginButton') * make fix-all Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
2021-11-04fixed: Shortcuts in "Anonym. Mode" broken (#3897) (#3945)Gravatar maTh
* fix * improved delayClick() * Do not send empty mark as read request Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
2021-11-02fix main.js (#3956)Gravatar maTh
2021-10-21Fix global context (#3909)Gravatar Alexandre Alapetite
Regression from https://github.com/FreshRSS/FreshRSS/pull/3906
2021-10-21ESLint upgrade from JSHint (#3906)Gravatar Alexandre Alapetite
* ESLint upgrade from JSHint * commit corresponding package.json * `npm run fix` for automatic JS and CSS fixes * Keep JSHint config for now
2021-10-19Add shortcut to jump to next unread article (issue #3393) (#3891)Gravatar stysebae
* Add shortcut to jump to next unread article * phpcbf Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
2021-10-19[chore] Replace direct .onkeydown override with addEventListener (#3902)Gravatar Frans de Jonge
Removes inextensible bad example to prevent it from being copied. See <https://github.com/FreshRSS/FreshRSS/pull/3901/files#r731292613>.
2021-06-283672 notification icon (#3678)Gravatar maTh
* icon with padding to border * resized icon to 256
2021-06-01Fix navigation JS error (#3655)Gravatar Alexis Degrugillier
Before, the UP navigation button was generating an error when no article was selected. The process to navigate to the first element was using the position of the current element to compute the offset, thus generating said error. Now, if no article is selected, the first article is used as a fall-back. See #3654
2021-02-28Travis: Enforce phpcs line length + whitespace (#3488)Gravatar Alexandre Alapetite
* Update Travis line length * Also check whitespace in CSS files * Fix line length ext.php * More syntax, string templates * Fix exclude-pattern * Test JS files as well
2021-01-07two new hooks (#3342)Gravatar Clemens Neubauer
* add two new hooks I develop a new extension and i need 2 new hooks for it * update EN documentation * Correct typing errors * Update app/views/helpers/javascript_vars.phtml Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
2021-01-03Add clipboard sharing (#3330)Gravatar Alexis Degrugillier
When the discussion #3327 started, I thought that the clipboard share is a good idea. It never occurred to me because I do not use a smartphone. It might need some polishing but it seems pretty usable as-is. See #3327
2020-12-31Fix bugs in anomymous mode (#3305)Gravatar Alexandre Alapetite
* Fix bugs in anomymous mode Login bug (submit button not working) and refresh bug (JS null exception, and then 403). * Take advantage of existing variable
2020-11-02Remember open categories (#3185)Gravatar Prashant Tholia
* feature(normal) - Remember opened categories in the left menu Session storage based implementation to remember opened categories in left menu Issue Ref: #2248 * lib_phpQuery updates * Updates covering feedback points and functionality fixes * Feedback updates * Revert "lib_phpQuery updates" This reverts commit dcd23b9418405a2d14ee03c1fcadf90c04b267e1. * First review Change variable name to "remember" instead of "open". Start using localStorage instead of sessionStorage. Simplify code. * Simplify remember categories init function Replace 'session' with 'local' in function names and comment Set open categories CSS as same as when category is opened in 'active' unfold mode * Remove URLSearchParams check in remember categories init function * Delete open categories on login and logout * JSHint check fix * Second review * Make new mode the default for new users * Always open active category * Reduce / simplify code * i18n French * Revert default value Wait a bit more for this decision / change Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
2020-10-19Remember sidebar position (#3231)Gravatar Alexandre Alapetite
#fix https://github.com/FreshRSS/FreshRSS/issues/3209 Extracted from https://github.com/FreshRSS/FreshRSS/pull/3185
2020-10-11Misc. minorGravatar Alexandre Alapetite
Whitespace...
2020-06-05Add controls on media (#3036)Gravatar Alexis Degrugillier
Now, there is a shortcut to play or pause media available from an entry. If there is more than one media available, only the first one will be targeted. See #1952
2020-05-21Better hide spinner (#2990)Gravatar Alexandre Alapetite
Fix https://github.com/FreshRSS/FreshRSS/issues/2986#issuecomment-631396735 By CSS, and also by JS https://framagit.org/nicofrand/xextension-threepanesview/-/issues/10
2020-04-08Swap shortcuts for mark all articles as read / mark previous articles as ↵Gravatar Alexandre Alapetite
read (#2881) * Swap shortcuts for mark all articles as read / mark previous articles as read #fix https://github.com/FreshRSS/FreshRSS/issues/2865 Follow-up of https://github.com/FreshRSS/FreshRSS/pull/2843 * <kbd>⇧ Shift</kbd>+<kbd>R</kbd> to mark all articles as read; * <kbd>Alt ⎇</kbd>+<kbd>r</kbd> to mark previous articles as read. * i18n
2020-03-23Shortcut mark previous articles as read (#2843)Gravatar Alexandre Alapetite
* Shortcut mark previous articles as read Address part of https://github.com/FreshRSS/FreshRSS/issues/2836 The shortcut [shift]+[r] now marks previous articles as read; The previous action of marking all articles as read is now achieved by [alt]+[r] So this is a slight breaking change, but I like the logic of the upward-facing [shift] arrow to hint at previous articles, while [alt] is more like "all", at least to my eyes :-) * Update app/i18n/nl/conf.php Co-Authored-By: Frans de Jonge <fransdejonge@gmail.com> * [⇧ Shift] / [Alt ⎇] With standard Unicode signs * <kbd> + CSS styling * Missing themes Tested with all themes * Travis CSS Co-authored-by: Frans de Jonge <fransdejonge@gmail.com>
2020-03-23Reset scroll (#2842)Gravatar Alexandre Alapetite
Address some of https://github.com/FreshRSS/FreshRSS/issues/2836 This patch resets the scrollbar to the top when a FreshRSS page is initialised. Makes sure that when a FreshRSS page is restored in a Web browser session, we do not hit the problematic situation when the content is refreshed but the scrollbar moved back to where it was, potentially erroneously marking as read many as read, of landing on the wrong focus.
2020-02-13Enhance content path feature (#2778)Gravatar Julien-Pierre Avérous
- Add a maintenance section to be able to clear cache and force reload a feed. - Add an icon next to path field to show a pop-up with the result of the content path. Co-authored-by: Frans de Jonge <fransdejonge@gmail.com> Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr> Co-authored-by: Marien Fressinaud <dev@marienfressinaud.fr>
2019-12-04Update navigation on empty feeds (#2687)Gravatar Alexis Degrugillier
When using feed navigation, the previous behavior was to cycle through all available feeds regardless of their content. To match the behaviour of the first feed and last feed navigation shortcuts, the navigation now skips empty feeds. Now it's consistent through out the application. When using feed navigation with only empty feeds, the new behavior is to cycle through all available feeds. See #2385
2019-10-20Comply with LibreJS (#2576)Gravatar Alexandre Alapetite
https://www.gnu.org/software/librejs/ https://addons.mozilla.org/firefox/addon/librejs/ Did not touch jquery.min.js because it is a third party script, which is regularly updated, and the add-on does not seem to block it enough to break our statitics page, which remains usable.
2019-10-01Workaround for Firefox favicon glitch (#2543)Gravatar Alexandre Alapetite
Observed in Firefox 69: the favicon is sometimes refreshed with an old favicon that does not have the number of unread items on it. Seems to depend on load speed.
2019-09-28Optimize dynamic favicon for HiDPI screens (#2539)Gravatar rocka
This PR leveraging `window.devicePixelRatio` to generate high resolution favicons for HiDPI screens.
2019-08-22IE11 / Edge keyboard compatibility (#2507)Gravatar Alexandre Alapetite
https://github.com/FreshRSS/FreshRSS/pull/2506#issuecomment-523544684
2019-08-21Prevent window opener vulnerability with space shortcut (#2506)Gravatar ArthurHoaro
* Prevent window opener vulnerability with space shortcut This change fixes a vulnerability introduced by `window.open()` on untrusted sources. It reproduces the effect of `rel="noreferrer"` with JS. Cross browser solution from: https://stackoverflow.com/a/40593743 ## Reproduction > tested with Firefox 68 1. Add this RSS feed 2. Open the 2nd link "À propos de la faille de sécurité liée à target="_blank" **using the space key shortcut**. 3. Click on the first of three links "http://bookmarks.ecyseo.net" Current behaviour: the FreshRSS tab changes. Expected behaviour: no effect on FreshRSS * Test for popup blockers
2019-04-16Add theme to print pageGravatar Alexis Degrugillier
Before, the printed page didn't have any usable CSS. Now, it uses the css files available in the application. It means that custom CSS can be add to target printed page. See #2149
2019-04-07Alow mix of auto read options (#2354)Gravatar Alexandre Alapetite
Fix https://github.com/FreshRSS/FreshRSS/pull/2349#issuecomment-480540126
2019-04-06Fix menu warning (#2353)Gravatar Alexandre Alapetite
confirm is only for labels, not for feeds
2019-04-06Fix autoremove again (#2352)Gravatar Alexandre Alapetite
Fix https://github.com/FreshRSS/FreshRSS/pull/2349
2019-04-06Fix hide articles + batch option (#2349)Gravatar Alexandre Alapetite
https://github.com/FreshRSS/FreshRSS/issues/2332 https://github.com/FreshRSS/FreshRSS/issues/2345 Re-introduces the instant-remove article. Batch mark-as-read only used for fast actions like scroll and keyboard shortcut for next/previous articles.
2019-04-06Better handling of bad request and fast unload (#2346)Gravatar Alexandre Alapetite
* Better handling of bad request and fast unload Warnings for bad requests, confirmation before leaving a page with pending mark-as-read requests (not the others for now) * Fix callbacks
2019-04-04Fix scroll functions in Edge (#2337)Gravatar Alexandre Alapetite
Use more standard / robust document.scrollingElement
2019-04-03Fix shortcut problem when showing articles unfolded (#2336)Gravatar Alexandre Alapetite
Fix https://github.com/FreshRSS/FreshRSS/issues/2328
2019-04-03Fix auto_remove_article (#2334)Gravatar Alexandre Alapetite
* Fix auto_remove_article https://github.com/FreshRSS/FreshRSS/issues/2323 * Second attempt * Third attempt
2019-04-02Fix control click (#2330)Gravatar Alexandre Alapetite
https://github.com/FreshRSS/FreshRSS/issues/2310
2019-04-01Fix ASC load more (#2318)Gravatar Alexandre Alapetite
https://github.com/FreshRSS/FreshRSS/issues/2314
2019-03-27Minor code simplificationGravatar Alexandre Alapetite
https://github.com/FreshRSS/FreshRSS/pull/2300
2019-03-25Wait for mark-as-read queue before click (#2300)Gravatar Alexandre Alapetite
2019-03-22Rework CSRF interaction with sessions (#2290)Gravatar Alexandre Alapetite
* Rework CSRF interaction with sessions Fix https://github.com/FreshRSS/FreshRSS/issues/2288 Improve security in some edge cases Maybe relevant for https://github.com/FreshRSS/FreshRSS/issues/2125#issuecomment-474992671 * Forgotten mime type
2019-03-09Improved auto load more articlesGravatar Alexandre Alapetite
Fixed bug + ealier trigger of load more (half of the window height instead of 0)
2019-02-23JavaScript fixes + new navigation loop behaviour (#2255)Gravatar Alexandre Alapetite
* Fixed user configuration 404 https://github.com/FreshRSS/FreshRSS/pull/2234#issuecomment-466561555 * Fixed "SPACE" shortcut bug https://github.com/FreshRSS/FreshRSS/pull/2234#issuecomment-466626412 * Use next feed / previous feed when reaching last / first article instead of looping * Jump to next / previous category when reaching last / first feed instead of looping