summaryrefslogtreecommitdiff
path: root/internal/template/functions.go (unfollow)
AgeCommit message (Collapse)AuthorFilesLines
2024-04-27Update ChangeLogGravatar Frédéric Guillot 1-0/+25
2024-04-26add seek and speed controls to media playerGravatar Ztec 23-23/+298
When listening to podcast, it is usual to want to speed up the playback. https://github.com/miniflux/v2/pull/2521 was addressing the need globally, this PR allow to address it for just the current open enclosure media. (no save) Some Browser already include this control directly, but firefox does not (directly anyway). Also, it is often useful to be able to skip chunk of a podcast, to skip commercials for example, or get back a bit because we couldn't hear the last part. I added rudimentary seek controls with the usual +/-10 and 30 seconds chuck size. This is pretty handy when podcast are very long and using the seek bar is way too tricky to just skip 30s. As always, I'm French and could only provide English and French translation for the few text I added in the locale/translations files. Any help is welcome. Tested mostly on Firefox (121.0) and quickly on Vivaldi(6.5.3206.53), chrome based. Fixes: #1845 #1846
2024-04-24Bump github.com/tdewolff/minify/v2 from 2.20.19 to 2.20.20Gravatar dependabot[bot] 2-6/+6
Bumps [github.com/tdewolff/minify/v2](https://github.com/tdewolff/minify) from 2.20.19 to 2.20.20. - [Release notes](https://github.com/tdewolff/minify/releases) - [Commits](https://github.com/tdewolff/minify/compare/v2.20.19...v2.20.20) --- updated-dependencies: - dependency-name: github.com/tdewolff/minify/v2 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
2024-04-23reader/processor: minifier is breaking HTML entry contentGravatar Frédéric Guillot 2-16/+27
2024-04-19http/response: add brotli compression supportGravatar Frédéric Guillot 6-8/+45
2024-04-19fix: Use `FORCE_REFRESH_INTERVAL` config for category refreshGravatar bo0tzz 1-2/+4
2024-04-19reader/fetcher: add brotli content encoding supportGravatar Frédéric Guillot 5-2/+80
2024-04-14ui: add tag entries pageGravatar Romain de Laage 26-4/+244
2024-04-10reader/processor: minimize the feed's entries htmlGravatar jvoisin 1-2/+18
Compress the html of feed entries before storing it. This should reduce the size of the database a bit, but more importantly, reduce the amount of data sent to clients minify being [stupidly fast](https://github.com/tdewolff/minify/?tab=readme-ov-file#performance), the performance impact should be in the noise level.
2024-04-10chore: fix function name in commentGravatar goodfirm 1-1/+1
Signed-off-by: goodfirm <fanyishang@yeah.net>
2024-04-09storage: change GetReadTime() function to use entries_feed_id_hash_key indexGravatar Frédéric Guillot 2-15/+16
2024-04-09Fix clicking unread counterGravatar Michael Kuhn 1-1/+2
When clicking the unread counter, the following exception occurs: ``` Uncaught TypeError: Cannot read properties of null (reading 'getAttribute') ``` This is due to `onClickMainMenuListItem` not working correctly for the unread counter `span`s, which return `null` when using `querySelector`.
2024-04-06Add back removed other repo owners in GH docker actionsGravatar Alexandros Kosiaris 1-6/+6
In cf96ab45c198fbdc, support was added for using Docker related Github actions in repositories of other owners. This was pretty helpful as it allowed running modified forks off of main in a nightly fashion before patches were pushed upstream. This was 6e870cdccc9ac845b678b, add it back
2024-04-04database: entry URLs can exceeds btree index size limitGravatar Frédéric Guillot 3-16/+20
2024-04-04ci: use docker/metadata-action instead of deprecated shell-scriptsGravatar Frédéric Guillot 1-59/+33
2024-04-04Improve DockerfilesGravatar Michael Kuhn 2-15/+7
- Specify Docker registry explicitly (e.g., Podman does not use `docker.io` by default) - Use `make miniflux` instead of duplicating `go build` arguments (this leverages Go's PIE build mode) - Enable cgo to fix ARM containers (we need to make sure to use the same OS version for both container stages to avoid libc issues)
2024-04-04Bump golang.org/x/net from 0.23.0 to 0.24.0Gravatar dependabot[bot] 2-6/+6
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.23.0 to 0.24.0. - [Commits](https://github.com/golang/net/compare/v0.23.0...v0.24.0) --- updated-dependencies: - dependency-name: golang.org/x/net dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
2024-04-04Bump golang.org/x/term from 0.18.0 to 0.19.0Gravatar dependabot[bot] 2-6/+6
Bumps [golang.org/x/term](https://github.com/golang/term) from 0.18.0 to 0.19.0. - [Commits](https://github.com/golang/term/compare/v0.18.0...v0.19.0) --- updated-dependencies: - dependency-name: golang.org/x/term dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
2024-04-04Bump golang.org/x/oauth2 from 0.18.0 to 0.19.0Gravatar dependabot[bot] 2-16/+3
Bumps [golang.org/x/oauth2](https://github.com/golang/oauth2) from 0.18.0 to 0.19.0. - [Commits](https://github.com/golang/oauth2/compare/v0.18.0...v0.19.0) --- updated-dependencies: - dependency-name: golang.org/x/oauth2 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
2024-04-03Bump github.com/yuin/goldmark from 1.7.0 to 1.7.1Gravatar dependabot[bot] 2-3/+3
Bumps [github.com/yuin/goldmark](https://github.com/yuin/goldmark) from 1.7.0 to 1.7.1. - [Release notes](https://github.com/yuin/goldmark/releases) - [Commits](https://github.com/yuin/goldmark/compare/v1.7.0...v1.7.1) --- updated-dependencies: - dependency-name: github.com/yuin/goldmark dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
2024-04-03Bump golang.org/x/net from 0.22.0 to 0.23.0Gravatar dependabot[bot] 2-3/+3
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.22.0 to 0.23.0. - [Commits](https://github.com/golang/net/compare/v0.22.0...v0.23.0) --- updated-dependencies: - dependency-name: golang.org/x/net dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
2024-04-01finder: Find feed from YouTube playlistGravatar Evan Elias Young 2-5/+53
The feed from a YouTube playlist page is derived in practically the same way as a feed from a YouTube channel page.
2024-04-01reader/rewrite: add a rule for oglaf.comGravatar jvoisin 1-1/+1
By default, Oglaf show some disclaimer/warning about its content, and this doesn't play well with rss readers, so let's rewrite it to show the actual comic instead of a placeholder.
2024-04-01api tests: use intSize-agnostic random integersGravatar Thomas J Faughnan Jr 1-2/+1
rand.Intn(math.MaxInt64) causes tests to fail on 32-bit architectures. Use the simpler rand.Int() instead, which still provides plenty of room for generating pseudo-random test usernames.
2024-03-30Update ChangeLogv2.1.22.1.2Gravatar Frédéric Guillot 2-4/+85
2024-03-29integration/webhook: add category title to request bodyGravatar Jean Khawand 1-8/+15
2024-03-28Turkish Translation UpdateGravatar Taylan Tatlı 1-530/+497
2024-03-25Bump dominikh/staticcheck-action from 1.3.0 to 1.3.1Gravatar dependabot[bot] 1-1/+1
Bumps [dominikh/staticcheck-action](https://github.com/dominikh/staticcheck-action) from 1.3.0 to 1.3.1. - [Release notes](https://github.com/dominikh/staticcheck-action/releases) - [Changelog](https://github.com/dominikh/staticcheck-action/blob/master/CHANGES.md) - [Commits](https://github.com/dominikh/staticcheck-action/compare/v1.3.0...v1.3.1) --- updated-dependencies: - dependency-name: dominikh/staticcheck-action dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
2024-03-24reader/rss: don't add empty tags to RSS itemsGravatar jvoisin 1-13/+27
This commit adds a bunch of checks to prevent reader/rss from adding empty tags to rss items, as well as some minor refactors like nested conditions and loops unrolling.
2024-03-24fix: do not store empty tagsGravatar Romain de Laage 2-2/+19
2024-03-24http/response: get rid of the X-XSS-Protection headerGravatar jvoisin 2-2/+0
It's useless at best, dangerous at worst, and shouldn't be used anymore anywhere. See the following resources for details: - https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-XSS-Protection - https://chromestatus.com/feature/5021976655560704 - https://bugzilla.mozilla.org/show_bug.cgi?id=528661 - https://blogs.windows.com/windows-insider/2018/07/25/announcing-windows-10-insider-preview-build-17723-and-build-18204/
2024-03-24timezone: make sure the tests pass when the timezone database is not ↵Gravatar Frédéric Guillot 1-0/+3
installed on the host
2024-03-24integration: fix rssbrige importGravatar Frédéric Guillot 1-1/+1
2024-03-23Update GitHub PR templateGravatar Frédéric Guillot 1-0/+1
2024-03-23cli: avoid misleading error message when creating an admin userGravatar Frédéric Guillot 4-15/+24
2024-03-23rss: use Channel tags only if there is no Item tagsGravatar Frédéric Guillot 2-7/+9
2024-03-21Update miniflux.1Gravatar Jean Khawand 1-1/+1
2024-03-21Update miniflux.1Gravatar Jean Khawand 1-0/+2
#2187 #2543
2024-03-20Rename PROXY_* options to MEDIA_PROXY_*Gravatar Frédéric Guillot 14-204/+413
2024-03-20Enable trusted-typesGravatar jvoisin 5-4/+20
This commit adds a policy, and make use of it in the Content-Security-Policy. I've tested it the best I could, both on a modern browser supporting trusted-types (Chrome) and on one that doesn't (firefox). Thanks to @lweichselbaum for giving me a hand to wrap this up!
2024-03-20Replace a bunch of `let` with `const`Gravatar jvoisin 6-44/+41
According to https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/const > Many style guides (including MDN's) recommend using const over let whenever a variable is not reassigned in its scope. This makes the intent clear that a variable's type (or value, in the case of a primitive) can never change.
2024-03-20Inline a one-liner functionGravatar jvoisin 4-12/+7
No need to expose a symbol for this.
2024-03-19man page: sort config options in alphabetical orderGravatar Frédéric Guillot 1-217/+216
2024-03-19Ensure enclosure URLs are always absoluteGravatar Frédéric Guillot 6-128/+447
2024-03-19Minor refactoring of internal/reader/atom/atom_10_adapter.goGravatar jvoisin 1-30/+31
- Move the population of the feed's entries into a new function, to make `BuildFeed` easier to understand/separate concerns/implementation details - Use `sort+compact` instead of `compact+sort` to remove duplicates - Change `if !a { a = } if !a {a = }` constructs into `if !a { a = ; if !a {a = }}`. This reduce the number of comparisons, but also improves a tad the control-flow readability.
2024-03-19Minor idiomatic pass on internal/http/request/context.goGravatar jvoisin 1-24/+8
2024-03-20Add `FILTER_ENTRY_MAX_AGE_DAYS` config option to limit fetching all feed itemsGravatar Jean Khawand 6-4/+53
2024-03-19Add keyboard shortcuts for scrolling to top/bottom of the item listGravatar Matt Behrens 21-11/+76
2024-03-19Bump github.com/coreos/go-oidc/v3 from 3.9.0 to 3.10.0Gravatar dependabot[bot] 2-19/+7
Bumps [github.com/coreos/go-oidc/v3](https://github.com/coreos/go-oidc) from 3.9.0 to 3.10.0. - [Release notes](https://github.com/coreos/go-oidc/releases) - [Commits](https://github.com/coreos/go-oidc/compare/v3.9.0...v3.10.0) --- updated-dependencies: - dependency-name: github.com/coreos/go-oidc/v3 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
2024-03-18Fix regression in AbsoluteProxifyURL()Gravatar Frédéric Guillot 3-18/+113
Regression introduced in commit 66b8483791e58030c0cc3b5c5d82b0b0d5e87cec PR #2499