aboutsummaryrefslogtreecommitdiff
path: root/ui/static/js (follow)
AgeCommit message (Collapse)AuthorFilesLines
2023-08-10Move internal packages to an internal folderGravatar Frédéric Guillot 9-1338/+0
For reference: https://go.dev/doc/go1.4#internalpackages
2023-08-09feat: support force refresh in feed edit and feed entries pageGravatar njzy 2-9/+23
2023-07-31Use Web Share API for sharing entryGravatar Jean Khawand 2-5/+46
2023-07-07Fix incorrect return value comparisonsGravatar Tuukka Ojala 1-13/+12
2023-07-07Fix code formattingGravatar Tuukka Ojala 1-1/+1
2023-07-07Fix accessibility issues in modal componentGravatar Tuukka Ojala 2-4/+75
* Fix modal aria role * Trap focusing with tab / shift+tab inside the modal * Restore keyboard focus when closing modal * Automatically move keyboard focus to first focusable element unless specified otherwise * Keyboard shortcut help modal: move keyboard focus to modal title * Keyboard shortcut help modal: change close control from link to button
2023-06-29Add user setting for marking entry as read on viewGravatar xl 1-2/+2
2023-06-04Add Media Player and resume to last playback positionGravatar Ztec 2-0/+28
In order to ease podcast listening, the player can be put on top of the feed entry as main content. Use the `Use podcast player` option to enable that. It works on audio and video. Also, when playing audio or video, progression will be saved in order to be able to resume listening later. This position saving is done using the original attachement/enclosures player AND podcast player and do not rely on the podcast player option ti be enabled. Additionally, I made the player fill the width with the entry container to ease seeking and have a bigger video. updateEnclosures now keep existing enclosures based on URL When feeds get updated, enclosures entries are always wiped and re-created. This cause two issue - enclosure progression get lost in the process - enclosure ID changes I used the URL as identifier of an enclosure. Not perfect but hopefully should work. When an enclosure already exist, I simply do nothing and leave the entry as is in the database. If anyone is listening/watching to this enclosure during the refresh, the id stay coherent and progression saving still works. The updateEnclosures function got a bit more complex. I tried to make it the more clear I could. Some optimisation are possible but would make the function harder to read in my opinion. I'm not sure if this is often the case, but some feeds may include tracking or simply change the url each time we update the feed. In those situation, enclosures ids and progression will be lost. I have no idea how to handle this last situation. Use the size instead/alongside url to define the identity of an enclosure ? Translation: english as placeholder for every language except French Aside, I tested a video feed and fixed a few things for it. In fact, the MimeType was not working at all on my side, and found a pretty old stackoverflow discussion that suggest to use an Apple non-standard MimeType for m4v video format. I only did one substitution because I only have one feed to test. Any new video feed can make this go away or evolve depending on the situation. Real video feeds does not tend to be easy to find and test extensively this. Co-authored-by: toastal
2023-03-28Add swipe as option for gesture navigation between entries.Gravatar dzaikos 1-39/+88
* Refactor `TouchHandler` to handle double-tap and swipe gestures. * Renamed existing `onTouch` JavaScript methods to `onItemTouch` and added `onContentTouch` methods for swipe gesture. * Refactor double-tap. It's now a method in `TouchHandler` versus anonymous functions in `listen()` method. * Updated CSS classes. * Added `touch-action` CSS for `.entry-content`. * Renamed CSS classes for adding events in `TouchHandler`. * Updated users settings to replace checkbox for double tap with select for none, double tap, or swipe. * Added database migrations for new gesture_nav option. * Rename `users.double_tap` to `users.gesture_nav` and migrate existing user settings. * Updated translation files. (Non-English updated with Google Translate.) Resolves #1449, closes #1495
2023-03-13Fix null reference in toggle entry attachments shortcutGravatar Frédéric Guillot 1-1/+6
Fixes #1723
2023-02-05Add toggle open/close entry attachments shortcutGravatar Martin Vietz 1-0/+1
2023-01-14Add option to enable or disable double tapGravatar Frédéric Guillot 1-3/+3
2022-12-14Update reading time HTML element after fetching the original web pageGravatar Davide Masserut 1-1/+2
2022-12-06Disable double-tap mobile gesture if swipe gesture is disabledGravatar nyanpasu64 1-1/+1
Fixes #441.
2022-06-06request_builder.js: Fix syntax errorGravatar Pk11 1-1/+1
2022-04-13Make swipe gestures feel more natural.Gravatar dzaikos 1-8/+13
Removes opacity transition when swiping an article read/unread. Adds "resistance" to the swiped entry when the 75px threshold is reached. Fixes an issue in which a swiped article couldn't be moved <15px.
2022-03-02Add '+' shortcut for new subscription pageGravatar Thiago Perrotta 2-0/+6
2022-02-01refactor handleEntryStatus / goToNextListItem / goToPrevListItemGravatar Thiago Perrotta 2-101/+32
2022-02-01Add new keyboard shortcut: 'M' - toggle read/unread, go to prev itemGravatar Thiago Perrotta 2-0/+49
Currently there is "Toggle read/unread = m", which toggles and then goes to the next item. Having the opposite operation available is handy, especially when adding new feeds and going through them from oldest to newest posts. It seems natural to map 'M' (= shift + 'm') for this action. Closes https://github.com/miniflux/v2/issues/1352
2022-01-31Add missing event argument to onClick() function callGravatar Frédéric Guillot 1-1/+1
2022-01-27Fix regression: reset touch-item if not in /unreadGravatar Jacob Duba 1-2/+5
2022-01-15Do not reset touch-item if successfully swipedGravatar Jacob Duba 1-4/+4
2021-06-12add option to hide categories from the global unread listGravatar pennae 1-7/+13
2021-06-12Show "saving" labels for entry status buttonGravatar pennae 1-21/+22
2021-05-31set items to read on click/middle-click of external linkGravatar pennae 2-2/+26
2021-05-31Remove invalid CSRF HTML meta tagGravatar Frédéric Guillot 1-2/+2
2021-03-07Add basic PWA offline pageGravatar Frédéric Guillot 2-10/+40
- Remove feed_icons cache because it's causing more problems that it solve. - Add basic offline mode when using the service worker. - Starting in Chrome 93, offline mode is going to be a requirement to install the PWA. https://developer.chrome.com/blog/improved-pwa-offline-detection/#enforcement-starting-chrome-93-august-2021
2021-03-07Use SVG icons for toast notificationsGravatar Frédéric Guillot 1-21/+31
2021-03-06Reset scroll position on mark page as readGravatar 1pav 1-1/+1
2020-12-29Updating read/star icons to SVGsGravatar Bogdan Brinza 1-9/+23
2020-10-16Add keyboard shortcut to scroll current item to the topGravatar Richard Schneider 3-2/+10
2020-10-06Add keyboard shortcut to jump to an item's feed pageGravatar Richard Schneider 2-1/+13
2020-09-23Avoid Javascript minifier to break keyboard shortcutsGravatar Frédéric Guillot 1-3/+1
2020-09-23Rename service worker script to avoid being blocked by uBlockGravatar Frédéric Guillot 1-0/+0
2020-06-14Add icons to feeds and categories listGravatar Frédéric Guillot 1-1/+5
2020-05-26Adds keyboard shortcut for refreshing all feedsGravatar Vitor Pellegrino 3-3/+22
- Binds the 'R' key to trigger a refresh in the background for all feeds. - Updates the locale, using the same description as the link in the feeds page. Co-authored-by: Vitor Pellegrino <pellegrino@linux.com>
2020-03-22Add SVG icons to entry actionsGravatar Frédéric Guillot 1-14/+11
2020-02-09Add button to add to Home screenGravatar Frédéric Guillot 1-0/+23
2020-01-14Do not advance to the next item when using the 'v' shortcut on the list of ↵Gravatar Richard Schneider 1-2/+4
starred items
2020-01-10Wrap around when navigating with keyboard shortcuts on a list viewGravatar Richard Schneider 1-8/+17
2020-01-06Add comments link keyboard shortcutGravatar Richard Schneider 2-0/+21
2019-11-29Use V to open original link in current tabGravatar Frédéric Guillot 2-2/+7
- To avoid a breaking change, keep v to open the original link in new tab. - People who prefers to open the link in the current tab should use V.
2019-10-30Make "v" open link in the current tab on entry pageGravatar Maxim Baz 1-1/+1
2019-10-06Add toast message for some keyboard shortcutsGravatar Jebbs 1-6/+34
Add notification message when using keyboard shortcuts: f, s, and m.
2019-10-06call preventDefault() when the user is trying to enter a keyboard shortcutGravatar Adam Hess 1-4/+11
Keyboard shortcuts might conflict with Firefox’s "Find as you type" feature.
2019-08-15Improve import formGravatar Frédéric Guillot 1-1/+1
2019-07-26Add option to disable feedsGravatar Frédéric Guillot 1-4/+0
2019-07-25Fix regressions introduced in previous JS refactoringGravatar Jebbs 2-38/+32
2019-07-17Ask for confirmation before clicking on mark all as readGravatar Frédéric Guillot 2-13/+0
2019-07-17Refactor confirmation handlerGravatar Frédéric Guillot 3-65/+56