aboutsummaryrefslogtreecommitdiff
path: root/p/scripts
AgeCommit message (Collapse)Author
2020-05-25Fix JS show password in install (#2999)Gravatar Alexandre Alapetite
The button for showing the password was not working in the install. Updated JavaScript file to ES6 at the same time.
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-05-16jQuery 3.5.1 (#2982)Gravatar Alexandre Alapetite
Minor version https://blog.jquery.com/2020/05/04/jquery-3-5-1-released-fixing-a-regression/
2020-04-18Fix CSS Edge glitch in archiving options (#2906)Gravatar Alexandre Alapetite
With Edge, only setting `.hidden = true` does not make the element and sub-elements properly visible. Should not make any difference for other browser.
2020-04-12Fix JS for statistics repartition select form (#2896)Gravatar Alexandre Alapetite
* Fix JS for statistics repartition select form Error was: `s.form is null in extra.js:166:7` At the same time, disable the form and clears the value while waiting for the next page to load, to better understand what is happening. * Whitespace
2020-04-12jQuery 3.5.0 (#2895)Gravatar Alexandre Alapetite
https://blog.jquery.com/2020/04/10/jquery-3-5-0-released/
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-23Feature/new archiving (#2335)Gravatar Alexis Degrugillier
* Change archiving config page layout I've changed some wording and moved actions into a maintenance section. * Update purge action Now we have more control on the purge action. The configuration allows us to choose what to keep and what to discard in a more precise way. At the moment, the configuration applies for all feeds. * Add purge configuration on feed level Now the extend purge configuration is available on feed level. It is stored as attributes and will be used in the purge action. * Update purge action Now the purge action uses the feed configuration if it exists and defaults on user configuration if not. * Add empty option in period list * Fix configuration warnings * Add archiving configuration on categories See #2369 * Add user info back * Add explanations in UI * Fixes for SQLite + error + misc. * Fix invalid feed reference * Short array syntax Only for new code, so far * Fix prefix error * Query performance, default values Work in progress * Fix default values and confirm before leaving Form cancel and confirm changes before leaving were broken. And start taking advantage of the short echo syntax `<?= ?>` as we have moved to PHP 5.4+ * More work * Tuning SQL * Fix MariaDB + performance issue * SQL performance * Fix SQLite bug * Fix some attributes JSON encoding bugs Especially for SQLite export/import * More uniform, fix bugs More uniform between global, category, feed settings * Drop special cases for old articles during refresh Instead will use lastSeen date with the new archiving logic. This was generating problems anyway https://github.com/FreshRSS/FreshRSS/issues/2154 * Draft drop index keep_history Not needed anymore * MySQL typo Now properly tested with MySQL, PostgreSQL, SQLite * More work for legacy values Important to avoid overriding user's preference and risking deleting data erroneously * Fix PHP 7.3 / 7.4 warnings @aledeg "Trying to use values of type null, bool, int, float or resource as an array (such as $null["key"]) will now generate a notice. " https://php.net/migration74.incompatible * Reintroduce min articles and take care of legacy parameters * A few changes forgotten * Draft of migration + DROP of feed.keep_history * Fix several errors And give up using const for SQL to allow multiple database types (and we cannot redefine a const) * Add keep_min to categories + factorise archiving logic * Legacy fix * Fix bug yield from * Minor: Use JSON_UNESCAPED_SLASHE for attributes And make more uniform * Fix sign and missing variable * Fine tune the logic
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-06-22jQuery 3.4.1 (#2424)Gravatar Alexandre Alapetite
Only used for statistics graphs
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-01[CI] Lint JS scripts with jshint (#2315)Gravatar Frans de Jonge
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
2019-02-13Less jQuery (#2234)Gravatar Alexandre Alapetite
* Less jQuery Follow-up of https://github.com/FreshRSS/FreshRSS/pull/2199 * Even less jQuery + global view unread title fix * Even less jQuery * Yet even less jQuery * Even less jQuery * Reduce some events * Even less jQuery * jQuery gone from main view +Fixed English i18n * Fix feed folded view * Remove Firefox 64 workaround Remove workaround for Gecko bug 1514498 in Firefox 64, fixed in Firefox 65 * Split to extra.js Avoid loading unneeded JavaScript code for the main view. + several adjustements * Improve CSS transition fold category * Rewrite shortcuts Remove library. Much faster, shorter, one listener instead of many. Control of the shortcut context. Fix https://github.com/FreshRSS/FreshRSS/issues/2215 * Remove debug * Minor syntax * Filter out unwanted shortcut modifiers * Menu overflow fix * Typo * Fix unfolding in mobile view * Remove jQuery from category.js * Remove jQuery from Global view
2019-01-26Merge branch 'dev' into dev-1.14.0Gravatar Alexandre Alapetite
2019-01-24Add a JavaScript event when opening an article (#2222)Gravatar Alexandre Alapetite
* Add a JavaScript event when opening an article https://framagit.org/nicofrand/xextension-threepanesview/issues/4 ```javascript document.body.addEventListener('freshrss:openArticle', function (e) { console.log('freshrss:openArticle'); console.log(e.target); }); ```
2019-01-15Manual merge /devGravatar Alexandre Alapetite
2019-01-15Comment about Gecko scrollbar bug in Firefox 64Gravatar Alexandre Alapetite
https://bugzilla.mozilla.org/show_bug.cgi?id=1514498
2019-01-06Merge branch 'FreshRSS/dev' into FreshRSS/dev-1.14.0Gravatar Alexandre Alapetite
2019-01-05Automatic API test (#2207)Gravatar Alexandre Alapetite
* Automatic API test Easier for end-user, smarter, and the guess testing of greader authorization token was not reliable. * Travis + minor
2018-12-27IE11 fixesGravatar Alexandre Alapetite
2018-12-27Optimise onscroll routinesGravatar Alexandre Alapetite
Much lighter rework: auto-mark-as-read, auto-remove-articles, auto-load-more. In particular, use a single onscroll event handler with a throtte. Continue removing jQuery when possible.
2018-12-25Send item queue as POSTGravatar Alexandre Alapetite
Which also simplifies the request
2018-12-25Semove superfluous window. objectGravatar Alexandre Alapetite
2018-12-25First version of batch scroll as readGravatar Alexandre Alapetite
Mark-as-read requests are queued and sent max once per second
2018-12-25jQuery ES6 partial refactoringGravatar Alexandre Alapetite
Prefix jQuery variables with $ Start avoiding jQuery in easy cases Use let/const
2018-12-25Prepare for batch mark as readGravatar Alexandre Alapetite
2018-12-16Remove simple-scrollbar fallback (#2182)Gravatar Alexandre Alapetite
https://github.com/FreshRSS/FreshRSS/pull/2181#issuecomment-447636787