/** @file Runs all smoke tests and may add extra smoke-test dependencies to `pnpm-lock.yaml`. */ // @ts-check import { execa } from 'execa'; import { polyfill } from '@astrojs/webapi'; import { fileURLToPath } from 'node:url'; import { promises as fs } from 'node:fs'; polyfill(globalThis, { exclude: 'window document' }); /** URL directory containing the entire project. */ const rootDir = new URL('../../', import.meta.url); /** URL directory containing the example subdirectories. */ const exampleDir = new URL('examples/', rootDir); const smokeDir = new URL('smoke/', rootDir); /** Returns all child directories of the given directory. */ const getChildDirectories = async (/** @type {URL} */ dir) => { /** @type {URL[]} */ const dirs = []; for await (const dirent of await fs.opendir(dir)) { if (dirent.isDirectory()) { dirs.push(new URL(dirent.name, dir)); } } return dirs; }; /** Runs all smoke tests. */ async function run() { console.log(''); const directories = [...(await getChildDirectories(smokeDir)), ...(await getChildDirectories(exampleDir))]; console.log('🤖', 'Preparing', 'pnpm'); await execa('pnpm', ['install', '--frozen-lockfile=false'], { cwd: fileURLToPath(rootDir), stdio: 'inherit' }); for (const directory of directories) { const name = directory.pathname.split('/').at(-1) ?? ""; const isExternal = directory.pathname.includes(smokeDir.pathname); console.log('🤖', 'Testing', name); try { await execa('pnpm', ['install', '--ignore-scripts', '--frozen-lockfile=false', isExternal ? '--shamefully-hoist' : ''].filter(x => x), { cwd: fileURLToPath(directory), stdio: 'inherit' }); await execa('pnpm', ['run', 'build'], { cwd: fileURLToPath(directory), stdio: 'inherit' }); } catch (err) { console.log(err); process.exit(1); } } } run(); ption>
path: root/url/url.go (unfollow)
AgeCommit message (Collapse)AuthorFilesLines
2023-05-04fix: Point to docs for URL rewrite rules tooGravatar Adriano Di Luzio 2-2/+18
2023-05-03Bump github.com/prometheus/client_golang from 1.15.0 to 1.15.1Gravatar dependabot[bot] 2-3/+3
Bumps [github.com/prometheus/client_golang](https://github.com/prometheus/client_golang) from 1.15.0 to 1.15.1. - [Release notes](https://github.com/prometheus/client_golang/releases) - [Changelog](https://github.com/prometheus/client_golang/blob/main/CHANGELOG.md) - [Commits](https://github.com/prometheus/client_golang/compare/v1.15.0...v1.15.1) --- updated-dependencies: - dependency-name: github.com/prometheus/client_golang dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
2023-05-02Update scraping rules for ilpost.itGravatar Davide Masserut 1-1/+1
2023-05-02Bump github.com/lib/pq from 1.10.8 to 1.10.9Gravatar dependabot[bot] 2-3/+3
Bumps [github.com/lib/pq](https://github.com/lib/pq) from 1.10.8 to 1.10.9. - [Release notes](https://github.com/lib/pq/releases) - [Commits](https://github.com/lib/pq/compare/v1.10.8...v1.10.9) --- updated-dependencies: - dependency-name: github.com/lib/pq dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
2023-04-17Bump mvdan.cc/xurls/v2 from 2.4.0 to 2.5.0Gravatar dependabot[bot] 2-11/+3
Bumps [mvdan.cc/xurls/v2](https://github.com/mvdan/xurls) from 2.4.0 to 2.5.0. - [Release notes](https://github.com/mvdan/xurls/releases) - [Commits](https://github.com/mvdan/xurls/compare/v2.4.0...v2.5.0) --- updated-dependencies: - dependency-name: mvdan.cc/xurls/v2 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
2023-04-15Add a rewrite rule to remove clickbait titlesGravatar Romain de Laage 4-170/+379
2023-04-14Bump github.com/lib/pq from 1.10.7 to 1.10.8Gravatar dependabot[bot] 2-3/+3
Bumps [github.com/lib/pq](https://github.com/lib/pq) from 1.10.7 to 1.10.8. - [Release notes](https://github.com/lib/pq/releases) - [Commits](https://github.com/lib/pq/compare/v1.10.7...v1.10.8) --- updated-dependencies: - dependency-name: github.com/lib/pq dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
2023-04-13Bump github.com/prometheus/client_golang from 1.14.0 to 1.15.0Gravatar dependabot[bot] 2-444/+21
Bumps [github.com/prometheus/client_golang](https://github.com/prometheus/client_golang) from 1.14.0 to 1.15.0. - [Release notes](https://github.com/prometheus/client_golang/releases) - [Changelog](https://github.com/prometheus/client_golang/blob/main/CHANGELOG.md) - [Commits](https://github.com/prometheus/client_golang/compare/v1.14.0...v1.15.0) --- updated-dependencies: - dependency-name: github.com/prometheus/client_golang dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
2023-04-07Bump golang.org/x/crypto from 0.7.0 to 0.8.0Gravatar dependabot[bot] 2-3/+3
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.7.0 to 0.8.0. - [Release notes](https://github.com/golang/crypto/releases) - [Commits](https://github.com/golang/crypto/compare/v0.7.0...v0.8.0) --- updated-dependencies: - dependency-name: golang.org/x/crypto dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
2023-04-07Update rewrite rules for theverge.comGravatar Emiel Wiedijk 1-1/+1
Articles on The Verge sometimes contain a section for related articles. This section can be distracting in reader mode. Therefore, filter the related article section using the scraper rules.
2023-04-07Bump golang.org/x/oauth2 from 0.6.0 to 0.7.0Gravatar dependabot[bot] 2-3/+3
Bumps [golang.org/x/oauth2](https://github.com/golang/oauth2) from 0.6.0 to 0.7.0. - [Release notes](https://github.com/golang/oauth2/releases) - [Commits](https://github.com/golang/oauth2/compare/v0.6.0...v0.7.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>
2023-04-06Bump golang.org/x/net from 0.8.0 to 0.9.0Gravatar dependabot[bot] 2-6/+6
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.8.0 to 0.9.0. - [Release notes](https://github.com/golang/net/releases) - [Commits](https://github.com/golang/net/compare/v0.8.0...v0.9.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>
2023-04-05Bump golang.org/x/term from 0.6.0 to 0.7.0Gravatar dependabot[bot] 2-6/+6
Bumps [golang.org/x/term](https://github.com/golang/term) from 0.6.0 to 0.7.0. - [Release notes](https://github.com/golang/term/releases) - [Commits](https://github.com/golang/term/compare/v0.6.0...v0.7.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>
2023-04-02Make sure PROXY_IMAGES option is backward compatibleGravatar Frédéric Guillot 2-2/+68
Bug introduced in PR #1610 Fixes #1753
2023-04-02Keep other table rows and columnsGravatar Jake Walker 2-16/+17
2023-04-02Basic table removal ruleGravatar Jake Walker 3-0/+43
2023-04-02feat: support searching well-known urls in subdirectoryGravatar rook1e 2-35/+44
2023-04-02fix: extra-long title overflowGravatar rook1e 1-0/+1
2023-03-28Add swipe as option for gesture navigation between entries.Gravatar dzaikos 32-82/+239
* 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-27Use secrets.GITHUB_TOKEN to push images instead of a PATGravatar Frédéric Guillot 1-2/+3
2023-03-27Prefer typographic punctuationGravatar toastal 1-8/+8
For a long time, we’ve not been limited to ASCII and have machines that can properly render the typographically-correct punctuation symbols for our languages. This leads to a better, clearer reading experience and also matches the `<meta charset="utf-8">` and the the use of such punctuation on FAQs. Changes: • Ellipsis: `...` → `…` (https://en.wikipedia.org/wiki/Ellipsis) • Apostrophe: `'` → `’` (https://en.wikipedia.org/wiki/Apostrophe) While I could try to do research on other languages, I’m not a native speaker in them and wouldn’t feel comfortable making any adjustments outside of English.
2023-03-26Update issue templatesGravatar Frédéric Guillot 3-21/+1
2023-03-25Process older entries firstGravatar Davide Masserut 2-3/+6
Feed entries are usually ordered from most to least recent. Processing older entries first ensures that their creation timestamp is lower than that of newer entries. This is useful when we order by creation, because then we get a consistent timeline.
2023-03-24Set Prometheus as datasource everywhereGravatar Daniel Jakots 1-12/+12
Requested by @lnicola.
2023-03-24Fix grafana dashboardGravatar Daniel Jakots 1-19/+19
2023-03-20Bump actions/setup-go from 3 to 4Gravatar dependabot[bot] 2-3/+3
Bumps [actions/setup-go](https://github.com/actions/setup-go) from 3 to 4. - [Release notes](https://github.com/actions/setup-go/releases) - [Commits](https://github.com/actions/setup-go/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/setup-go dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
2023-03-19Push Docker images to Quay.io (RedHat)Gravatar Frédéric Guillot 1-4/+11
2023-03-16Update ChangeLog2.0.43Gravatar Frédéric Guillot 1-0/+43
2023-03-16Bump github.com/tdewolff/minify/v2 from 2.12.4 to 2.12.5Gravatar dependabot[bot] 2-9/+9
Bumps [github.com/tdewolff/minify/v2](https://github.com/tdewolff/minify) from 2.12.4 to 2.12.5. - [Release notes](https://github.com/tdewolff/minify/releases) - [Commits](https://github.com/tdewolff/minify/compare/v2.12.4...v2.12.5) --- 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>
2023-03-13Fix null reference in toggle entry attachments shortcutGravatar Frédéric Guillot 1-1/+6
Fixes #1723
2023-03-13Update Security policyGravatar Frédéric Guillot 1-1/+3
2023-03-12Avoid XSS when opening a broken image due to unescaped ServerError in proxy ↵Gravatar Frédéric Guillot 2-1/+4
handler Creating an RSS feed item with the inline description containing an `<img>` tag with a `srcset` attribute pointing to an invalid URL like `http:a<script>alert(1)</script>`, we can coerce the proxy handler into an error condition where the invalid URL is returned unescaped and in full. This results in JavaScript execution on the Miniflux instance as soon as the user is convinced to open the broken image.
2023-03-11Use r.RemoteAddr to check /metrics endpoint network accessGravatar Frédéric Guillot 2-13/+19
HTTP headers like X-Forwarded-For or X-Real-Ip can be easily spoofed. As such, it cannot be used to test if the client IP is allowed. The recommendation is to use HTTP Basic authentication to protect the metrics endpoint, or run Miniflux behind a trusted reverse-proxy.
2023-03-11Add HTTP Basic authentication for /metrics endpointGravatar Frédéric Guillot 4-3/+65
2023-03-11Update es_ES.jsonGravatar fructurj 1-38/+38
2023-03-06Bump golang.org/x/crypto from 0.6.0 to 0.7.0Gravatar dependabot[bot] 2-3/+3
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.6.0 to 0.7.0. - [Release notes](https://github.com/golang/crypto/releases) - [Commits](https://github.com/golang/crypto/compare/v0.6.0...v0.7.0) --- updated-dependencies: - dependency-name: golang.org/x/crypto dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
2023-03-06Bump golang.org/x/oauth2 from 0.5.0 to 0.6.0Gravatar dependabot[bot] 2-11/+15
Bumps [golang.org/x/oauth2](https://github.com/golang/oauth2) from 0.5.0 to 0.6.0. - [Release notes](https://github.com/golang/oauth2/releases) - [Commits](https://github.com/golang/oauth2/compare/v0.5.0...v0.6.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>
2023-03-01Update scraping rules for ilpost.itGravatar Davide Masserut 1-1/+1
2023-03-01Update GitHub Actions to use Go 1.20Gravatar Frédéric Guillot 3-27/+3
2023-02-26Ignore empty link when discovering feedsGravatar Frédéric Guillot 2-4/+293
2023-02-25Disable CGO explicitly to make sure the binary is statically linkedGravatar Frédéric Guillot 1-10/+10
Apparently this behavior has been changed in Go 1.20: https://tip.golang.org/doc/go1.20#cgo
2023-02-25Update Japanese translationGravatar Sigsign 1-31/+31
2023-02-25Proxy support for several media typesGravatar Romain de Laage 20-200/+534
closes #615 closes #635
2023-02-24Parse `<category>` from Feeds (RSS, Atom and JSON)Gravatar privatmamtora 12-11/+252
2023-02-20Bump github.com/PuerkitoBio/goquery from 1.8.0 to 1.8.1Gravatar dependabot[bot] 2-3/+12
Bumps [github.com/PuerkitoBio/goquery](https://github.com/PuerkitoBio/goquery) from 1.8.0 to 1.8.1. - [Release notes](https://github.com/PuerkitoBio/goquery/releases) - [Commits](https://github.com/PuerkitoBio/goquery/compare/v1.8.0...v1.8.1) --- updated-dependencies: - dependency-name: github.com/PuerkitoBio/goquery dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
2023-02-19Update the plural for IndonesianGravatar the7thNightmare 1-0/+4
Copied from the zh_CN plural
2023-02-19Run the application in one commandGravatar Ananta Krsna dasa 1-2/+1
2023-02-19Bring back the health check condition to `depends_on`Gravatar Ananta Krsna dasa 3-3/+6
2023-02-19Remove deprecated `version` elementGravatar Ananta Krsna dasa 3-3/+0