aboutsummaryrefslogtreecommitdiff
path: root/p/scripts/main.js
AgeCommit message (Collapse)Author
2022-09-10Fix auto-loading of more articles (#4593)Gravatar Alexandre Alapetite
Fix regression from https://github.com/FreshRSS/FreshRSS/pull/4532 https://github.com/FreshRSS/FreshRSS/issues/3974
2022-09-05Shortcuts: auto-load at least a few articles (#4532)Gravatar Alexandre Alapetite
* Auto-load at least a few articles #fix https://github.com/FreshRSS/FreshRSS/issues/3974 * Fix init * syntax * Aledeg simplification
2022-09-04fix: space key opens empty tab (#4581)Gravatar maTh
* Update main.js * Update p/scripts/main.js Co-authored-by: Frans de Jonge <fransdejonge@gmail.com> * fix Co-authored-by: Frans de Jonge <fransdejonge@gmail.com>
2022-08-27Fix #4231 (#4541)Gravatar Aidi Tan
Actually, there are two issues to be fixed: 1. Since `div.flux_content` has been changed to `article.flux_content` in HTML, we should address that in JS too. Or, to take one step further, select it using `.flux_content` directly. 2. For the article already at the first position, its `prev_article` would select `#new-article` whose css attribute `display` is `none` in most cases, which breaks the new position calculation.
2022-08-18Swage theme cleanup (#4493)Gravatar maTh
* some general.prompt styles now in template.css * login button * same layout for login and register form * improve input and select * legend with dark background instead grey * fix config icon z-index * remove unused code * improve .prompt * set header also on login and register page * fix: show passwort button * improve login button on login and register screen * dropdown menu: smaller line height * improve layout sidebar closer * remove double code * swage.css * fix nits * fix nits * nits nits nits * nits are all around us.... * better position of config button * show header in mobile view + beauty the login button * CSS files * style the about FreshRSS link * delete unused import.svg * fix config sidebar padding * fix position of user query button in mobile view * improve config button in user query dropdown * fix global view overlay * fix close button aside bar in reader view * generated CSS files * Update swage.scss * fix nav_menu icon color of unread and favorite * improve search bar positioning in mobile view * read-all dropdown menu opens to left side in mobile view * restyle the new-article banner * improve big read button * make the header fixed while scrolling * fix search input while scrolling * improve config icons layout in .box * fix scrollbar:hover in template.css * improve article footer dropdowns * swage.css * Update main.js * Update main.js * fix (S)CSS * config navigation improved * left feed navigation: hover color added * CSS files * Update swage.scss * New Article banner improved margin * textarea: removed grey background * remove unnecessary line * Revert new-article banner layout * Remove :hover in slider * fix select height in sharing config * Fix scrollbar for slider with white background * fix: slider close button with theme color * fixed scrollbar CSS
2022-07-31Update main.js (#4471)Gravatar maTh
2022-07-17Improved: Article header (#4101)Gravatar maTh
* First draft for normal view * Revert changes on the entry header * Update normal.phtml * Update normal.phtml * RTL CSS * CSS fixes * Better tags style * fix * Update swage.scss * fix * Update swage.scss * fixed .content header * font-size in rem * improved template * dropdown menu if more than 7 tags * configuration: show tags in topline * Simplify loop logic * Minor space * config tags via reading (i18n still missed) * fixed the whitespaces * optimizations * optimize header+footer * Update normal.phtml * fix css * new config: show author+date in footer * config feed name display * improve HTML * fix whitespaces * i18n * i18n: German translations * fix i18n German * fixed: uncouple from bottomline config * reverted: tobline_tags * equalities * fixed: author in footer * fixed data-leave-validation * improved max numbers i18n label * Config works now also in the reader view * fix: footer border * reader view: style article-header-topline * fixed whitespace * i18n fr * Minor i18n fr * Fix mistake i18n fr * i18n fr more precise expression * Fix JavaScript * removed the link icon in the title * clean CSS Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
2022-07-04Dynamic OPML (#4407)Gravatar Alexandre Alapetite
* Dynamic OPML draft #fix https://github.com/FreshRSS/FreshRSS/issues/4191 * Export dynamic OPML http://opml.org/spec2.opml#1629043127000 * Restart with simpler approach * Minor revert * Export dynamic OPML also for single feeds * Special category type for importing dynamic OPML * Parameter for excludeMutedFeeds * Details * More draft * i18n * Fix update * Draft manual import working * Working manual refresh * Draft automatic update * Working Web refresh + fixes * Import/export dynamic OPML settings * Annoying numerous lines in SQL logs * Fix minor JavaScript error * Fix auto adding new columns * Add require * Add missing 🗲 * Missing space * Disable adding new feeds to dynamic categories * Link from import * i18n typo * Improve theme icon function * Fix pink-dark
2022-05-30Slider: close via shortcut (#4394)Gravatar maTh
* change close-slider behind slider * open/close slider via anchor * use shortcuts globaly * deleted debugging console.log()
2022-05-30Improved: Feed config: title, website url, feed url (#4258)Gravatar maTh
* do not display "website" in dropdown menu, when it is empty * feed name and URL required. input type = url * Update app/views/helpers/feed/update.phtml Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr> * Update app/views/helpers/feed/update.phtml Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr> * fix spaces and tabs * use classes indead of ID Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
2022-05-15fix preview (#4291)Gravatar maTh
* fix * Update extra.js * reorga the scripts * Update extra.js * Several fixes https://github.com/FreshRSS/FreshRSS/pull/4291#issuecomment-1125472321 * More fixes * Cleaning * fix pr 4291 * Reorganise some script functions * Remove unused popup-txt And associated function openPopupWithMessage * Fix archiving categories https://github.com/FreshRSS/FreshRSS/pull/4291#issuecomment-1126924602 * Fix stats https://github.com/FreshRSS/FreshRSS/pull/4291#issuecomment-1126983134 * Fix direct subscription E.g. http://localhost/i/?c=subscription&id=735 * Fix subscription add https://github.com/FreshRSS/FreshRSS/pull/4291#issuecomment-1126991621 Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
2022-05-15fixed tagEntry redirection (#4366)Gravatar bulewhale235
2022-05-09Option icons-as-emojis for performance (#4353)Gravatar Alexandre Alapetite
New mode to use only emojis instead of icons. Considerably improves performances. Needed for 20k+ feeds scenario https://github.com/FreshRSS/FreshRSS/pull/4347
2022-04-19Fix navigator.share insertRule (#4321)Gravatar Alexandre Alapetite
#fix https://github.com/FreshRSS/FreshRSS/pull/4271#discussion_r834288556 Moved to after `DOMContentLoaded`
2022-04-18Fix: article footer + improve: labeling (#4306)Gravatar maTh
* icon = open dropdown * label icon * added: link to edit labels * dropdown-menu label: padding and hover * improve input row * CSS * Update main.js * Update main.js * Update main.js * fix * make addItem button selectable via tabbing * Fixed theme: Ansum * tags menu: use the new icon * Fixed theme: Flat design make the manage button visible * fixed Theme: Mapco * Fixed theme: Pafat
2022-04-11Improved: dropdown close area (#4293)Gravatar maTh
* fix Ansum theme: close X in white * fix Mapco theme: close X in white * move the dropdown-close outside of the list * CSS * bring flux elemt behind the grey background * Update main.js
2022-03-22Improve: manage feed in view within a slider (#4226)Gravatar maTh
* it works * small improvements * Update slider.js * fixed JS syntax * slider.js included in main.js * fix syntax * delete including of slider.js * Update extra.js
2022-03-16New sharing service: Web sharing API (#4271)Gravatar maTh
* new optional option: HTMLtag * Update main.js * add: web sharing API * Update gen.php * Update gen.php * Update gen.php * fix spaces * Update shares.php * fixed JavaScript * Update template.rtl.css * Typo * improved: if (!navigator.share) * Update main.js * comma-dangle only for arrays and objects * Update app/i18n/fr/gen.php Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr> * i18n: System sharing Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
2022-02-06Improved: "Pagination" + load more button (#4125)Gravatar maTh
* Frontend changes done * Load more should work now also without JS * Update template.rtl.css * improved the themes' CSS * Update template.rtl.css * fix CI * CSS prop. order fixed * Rename pagination.phtml to stream-footer.phtml * use the new template name * rename key of i18n * fixed CI, that does not like the white space * rename pagination variable * Update indexController.php
2022-02-04Improve showing notification banner (#4023)Gravatar maTh
* bad notification show double time of good notification * stop timer, when mouse is over the notification * after leaving the mouse hover close the notification in 1 second * onlick to eddEventListener * code fix * fixed code * more code fixes * set default in template.css * theme alternative dark * theme ansum * theme Blue lagoon * theme dark * theme flat * theme Origine compact * theme Origine * theme Pafat * theme Screwdriver * theme Swage * fixed RTL error * fix css code * mouseleave = 3sec.
2022-02-04Improved: Browser notification: unread message (#4193)Gravatar maTh
* notification * i18n (english string) * i18n: en-us + de * Update gen.php * i18n: PL + RU * Update app/i18n/fr/gen.php Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
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