├── .aegir.js ├── .gitattributes ├── .github ├── dependabot.yml ├── pull_request_template.md ├── scripts │ └── wait-for-deploy.sh └── workflows │ ├── build-binary.yml │ ├── deploy-to-production.yml │ ├── deploy-to-staging.yml │ ├── deploy.yml │ ├── dnslink-smoke-tests.yml │ ├── generated-pr.yml │ ├── main.yml │ ├── semantic-pull-request.yml │ └── stale.yml ├── .gitignore ├── CHANGELOG.md ├── FUNDING.json ├── LICENSE ├── LICENSE-APACHE ├── LICENSE-MIT ├── README.md ├── babel.config.json ├── docs └── DEVELOPMENT.md ├── img ├── 1.png ├── helia-service-worker-gateway-demo.mp4 ├── logo.pxd └── window+sw-working.png ├── main.go ├── package.json ├── playwright.config.js ├── public ├── _kubo_redirects ├── _redirects ├── index.html ├── ipfs-sw-1x1.png ├── ipfs-sw-cube.svg ├── ipfs-sw-favicon.ico ├── ipfs-sw-icon-512-shadow.png ├── ipfs-sw-icon-512.png └── ipfs-sw-manifest.json ├── serve.ts ├── src ├── constants.ts ├── index.tsx ├── lib │ ├── check-subdomain-support.ts │ ├── collecting-logger.ts │ ├── config-db.ts │ ├── constants.ts │ ├── css-injector.ts │ ├── dns-link-labels.ts │ ├── error-to-object.ts │ ├── first-hit-helpers.ts │ ├── generic-db.ts │ ├── get-subdomain-parts.ts │ ├── hash-fragments.ts │ ├── input-helpers.ts │ ├── is-config-page.ts │ ├── is-ui-page-request.ts │ ├── local-storage.ts │ ├── logger.ts │ ├── path-or-subdomain.ts │ ├── providers.ts │ ├── regex.ts │ ├── register-service-worker.ts │ ├── remove-root-hash.ts │ ├── sw-comms.ts │ ├── to-gateway-root.ts │ └── unregister-request.ts ├── sw │ ├── handlers │ │ ├── asset-request-handler.ts │ │ ├── config-reload-handler.ts │ │ ├── config-update-handler.ts │ │ ├── content-request-handler.ts │ │ ├── index.ts │ │ └── unregister-handler.ts │ ├── index.ts │ ├── lib │ │ ├── blake3.ts │ │ ├── config.ts │ │ ├── install-time.ts │ │ ├── sw-config.ts │ │ └── verified-fetch.ts │ └── pages │ │ ├── fetch-error-page.ts │ │ ├── origin-isolation-warning-page.ts │ │ ├── page.ts │ │ └── server-error-page.ts ├── ui │ ├── components │ │ ├── button.tsx │ │ ├── cid-input.tsx │ │ ├── content-box.tsx │ │ ├── download-form.tsx │ │ ├── entity-bytes-input.tsx │ │ ├── header.tsx │ │ ├── input-description.tsx │ │ ├── input-label.tsx │ │ ├── input-section.tsx │ │ ├── input-select.tsx │ │ ├── input-toggle.css │ │ ├── input-toggle.tsx │ │ ├── link.tsx │ │ ├── loading-indicator.tsx │ │ ├── number-input.tsx │ │ ├── sw-ready-button.tsx │ │ ├── terminal.tsx │ │ └── textarea-input.tsx │ ├── context │ │ ├── config-context.tsx │ │ └── service-worker-context.tsx │ ├── index.css │ ├── index.tsx │ ├── ipfs-logo.svg │ └── pages │ │ ├── about.tsx │ │ ├── config.tsx │ │ ├── default-page-styles.css │ │ ├── fetch-error.tsx │ │ ├── home.tsx │ │ ├── no-service-worker.tsx │ │ ├── origin-isolation-warning.tsx │ │ └── server-error.tsx └── version.ts ├── test-e2e ├── allow-insecure-website-access.ts ├── byte-range.test.ts ├── config-loading.test.ts ├── config-ui.test.ts ├── download-form.test.ts ├── first-hit.test.ts ├── fixtures │ ├── capture-all-sw-responses.ts │ ├── config-test-fixtures.ts │ ├── create-kubo-node.ts │ ├── data │ │ ├── bafireidykglsfhoixmivffc5uwhcgshx4j465xwqntbmu43nb2dzqwfvae.car │ │ ├── bafkreicysg23kiwv34eg2d7qweipxwosdo2py4ldv42nbauguluen5v6am.car │ │ ├── bafkrgihhyivzstcz3hhswshfjgy6ertgmnqeleynhwt4dlfsthi4hn7zge.car │ │ ├── bafybeia7mk3ljigvxaqlzqapyo22hivsja2n5tdjmhpqvvzheoyaribela.car │ │ ├── bafybeicvjyaiqmgfe7wupl72gpf7cadwyjqf7nzsxrap6npgrgtd3d6m4y.car │ │ ├── bafybeie4vcqkutumw7s26ob2bwqwqi44m6lrssjmiirlhrzhs2akdqmkw4.car │ │ ├── bafybeigccimv3zqm5g4jt363faybagywkvqbrismoquogimy7kvz2sj7sq.car │ │ ├── bafybeigdyrzt5sfp7udm7hu76uh7y26nf3efuylqabf3oclgtqy55fbzdi.car │ │ ├── bafyreiagfcucdlcbo333incasoqyizw7ecaj5sfb3scippojfb7dm6fjcy.car │ │ ├── bafyreicqloxaaoq4f5ykqits4iktnmvab62i7nqanv4uce55ep4f6omnvm.car │ │ ├── bafyreidb33bjp5ns3cfpzcbn34hrbmt4rrndri3uv4howob3hythkyddci.car │ │ ├── baguqeerasfd64cjvzypw23uldj56sxclylkk264h2t76cks4vl7g5ilca3aq.car │ │ ├── gateway-conformance-fixtures.car │ │ ├── generate.ts │ │ └── k51qzi5uqu5dk3v4rmjber23h16xnr23bsggmqqil9z2gduiis5se8dht36dam.ipns-record │ ├── do-range-request.ts │ ├── handle-origin-isolation-warning.ts │ ├── has-cache-entry.ts │ ├── load-ipns-records.ts │ ├── load-kubo-fixtures.ts │ ├── load-with-service-worker.ts │ ├── locators.ts │ ├── set-sw-config.ts │ ├── sw-scope-verification.ts │ └── wait-for-service-worker.ts ├── global-setup.ts ├── global-teardown.ts ├── hamt-dir.test.ts ├── ipfs-gateway.ts ├── layout.test.ts ├── no-service-worker.test.ts ├── origin-isolation-warning.test.ts ├── path-routing.test.ts ├── reverse-proxy.ts ├── smoke-test.test.ts ├── subdomain-detection.test.ts ├── video.test.ts └── website-loading.test.ts ├── test ├── README.md ├── dns-link-labels.spec.ts ├── first-hit-helpers.spec.ts ├── get-subdomain-parts.spec.ts ├── hash-fragments.spec.ts ├── node.ts ├── path-or-subdomain.spec.ts └── regex.spec.ts ├── tsconfig.json └── types └── svg.d.ts /.aegir.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/.aegir.js -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | * text=auto eol=lf 2 | -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/.github/dependabot.yml -------------------------------------------------------------------------------- /.github/pull_request_template.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/.github/pull_request_template.md -------------------------------------------------------------------------------- /.github/scripts/wait-for-deploy.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/.github/scripts/wait-for-deploy.sh -------------------------------------------------------------------------------- /.github/workflows/build-binary.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/.github/workflows/build-binary.yml -------------------------------------------------------------------------------- /.github/workflows/deploy-to-production.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/.github/workflows/deploy-to-production.yml -------------------------------------------------------------------------------- /.github/workflows/deploy-to-staging.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/.github/workflows/deploy-to-staging.yml -------------------------------------------------------------------------------- /.github/workflows/deploy.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/.github/workflows/deploy.yml -------------------------------------------------------------------------------- /.github/workflows/dnslink-smoke-tests.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/.github/workflows/dnslink-smoke-tests.yml -------------------------------------------------------------------------------- /.github/workflows/generated-pr.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/.github/workflows/generated-pr.yml -------------------------------------------------------------------------------- /.github/workflows/main.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/.github/workflows/main.yml -------------------------------------------------------------------------------- /.github/workflows/semantic-pull-request.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/.github/workflows/semantic-pull-request.yml -------------------------------------------------------------------------------- /.github/workflows/stale.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/.github/workflows/stale.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/.gitignore -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /FUNDING.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/FUNDING.json -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/LICENSE -------------------------------------------------------------------------------- /LICENSE-APACHE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/LICENSE-APACHE -------------------------------------------------------------------------------- /LICENSE-MIT: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/LICENSE-MIT -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/README.md -------------------------------------------------------------------------------- /babel.config.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/babel.config.json -------------------------------------------------------------------------------- /docs/DEVELOPMENT.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/docs/DEVELOPMENT.md -------------------------------------------------------------------------------- /img/1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/img/1.png -------------------------------------------------------------------------------- /img/helia-service-worker-gateway-demo.mp4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/img/helia-service-worker-gateway-demo.mp4 -------------------------------------------------------------------------------- /img/logo.pxd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/img/logo.pxd -------------------------------------------------------------------------------- /img/window+sw-working.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/img/window+sw-working.png -------------------------------------------------------------------------------- /main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/main.go -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/package.json -------------------------------------------------------------------------------- /playwright.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/playwright.config.js -------------------------------------------------------------------------------- /public/_kubo_redirects: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/public/_kubo_redirects -------------------------------------------------------------------------------- /public/_redirects: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/public/_redirects -------------------------------------------------------------------------------- /public/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/public/index.html -------------------------------------------------------------------------------- /public/ipfs-sw-1x1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/public/ipfs-sw-1x1.png -------------------------------------------------------------------------------- /public/ipfs-sw-cube.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/public/ipfs-sw-cube.svg -------------------------------------------------------------------------------- /public/ipfs-sw-favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/public/ipfs-sw-favicon.ico -------------------------------------------------------------------------------- /public/ipfs-sw-icon-512-shadow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/public/ipfs-sw-icon-512-shadow.png -------------------------------------------------------------------------------- /public/ipfs-sw-icon-512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/public/ipfs-sw-icon-512.png -------------------------------------------------------------------------------- /public/ipfs-sw-manifest.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/public/ipfs-sw-manifest.json -------------------------------------------------------------------------------- /serve.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/serve.ts -------------------------------------------------------------------------------- /src/constants.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/src/constants.ts -------------------------------------------------------------------------------- /src/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/src/index.tsx -------------------------------------------------------------------------------- /src/lib/check-subdomain-support.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/src/lib/check-subdomain-support.ts -------------------------------------------------------------------------------- /src/lib/collecting-logger.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/src/lib/collecting-logger.ts -------------------------------------------------------------------------------- /src/lib/config-db.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/src/lib/config-db.ts -------------------------------------------------------------------------------- /src/lib/constants.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/src/lib/constants.ts -------------------------------------------------------------------------------- /src/lib/css-injector.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/src/lib/css-injector.ts -------------------------------------------------------------------------------- /src/lib/dns-link-labels.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/src/lib/dns-link-labels.ts -------------------------------------------------------------------------------- /src/lib/error-to-object.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/src/lib/error-to-object.ts -------------------------------------------------------------------------------- /src/lib/first-hit-helpers.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/src/lib/first-hit-helpers.ts -------------------------------------------------------------------------------- /src/lib/generic-db.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/src/lib/generic-db.ts -------------------------------------------------------------------------------- /src/lib/get-subdomain-parts.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/src/lib/get-subdomain-parts.ts -------------------------------------------------------------------------------- /src/lib/hash-fragments.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/src/lib/hash-fragments.ts -------------------------------------------------------------------------------- /src/lib/input-helpers.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/src/lib/input-helpers.ts -------------------------------------------------------------------------------- /src/lib/is-config-page.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/src/lib/is-config-page.ts -------------------------------------------------------------------------------- /src/lib/is-ui-page-request.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/src/lib/is-ui-page-request.ts -------------------------------------------------------------------------------- /src/lib/local-storage.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/src/lib/local-storage.ts -------------------------------------------------------------------------------- /src/lib/logger.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/src/lib/logger.ts -------------------------------------------------------------------------------- /src/lib/path-or-subdomain.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/src/lib/path-or-subdomain.ts -------------------------------------------------------------------------------- /src/lib/providers.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/src/lib/providers.ts -------------------------------------------------------------------------------- /src/lib/regex.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/src/lib/regex.ts -------------------------------------------------------------------------------- /src/lib/register-service-worker.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/src/lib/register-service-worker.ts -------------------------------------------------------------------------------- /src/lib/remove-root-hash.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/src/lib/remove-root-hash.ts -------------------------------------------------------------------------------- /src/lib/sw-comms.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/src/lib/sw-comms.ts -------------------------------------------------------------------------------- /src/lib/to-gateway-root.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/src/lib/to-gateway-root.ts -------------------------------------------------------------------------------- /src/lib/unregister-request.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/src/lib/unregister-request.ts -------------------------------------------------------------------------------- /src/sw/handlers/asset-request-handler.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/src/sw/handlers/asset-request-handler.ts -------------------------------------------------------------------------------- /src/sw/handlers/config-reload-handler.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/src/sw/handlers/config-reload-handler.ts -------------------------------------------------------------------------------- /src/sw/handlers/config-update-handler.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/src/sw/handlers/config-update-handler.ts -------------------------------------------------------------------------------- /src/sw/handlers/content-request-handler.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/src/sw/handlers/content-request-handler.ts -------------------------------------------------------------------------------- /src/sw/handlers/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/src/sw/handlers/index.ts -------------------------------------------------------------------------------- /src/sw/handlers/unregister-handler.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/src/sw/handlers/unregister-handler.ts -------------------------------------------------------------------------------- /src/sw/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/src/sw/index.ts -------------------------------------------------------------------------------- /src/sw/lib/blake3.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/src/sw/lib/blake3.ts -------------------------------------------------------------------------------- /src/sw/lib/config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/src/sw/lib/config.ts -------------------------------------------------------------------------------- /src/sw/lib/install-time.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/src/sw/lib/install-time.ts -------------------------------------------------------------------------------- /src/sw/lib/sw-config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/src/sw/lib/sw-config.ts -------------------------------------------------------------------------------- /src/sw/lib/verified-fetch.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/src/sw/lib/verified-fetch.ts -------------------------------------------------------------------------------- /src/sw/pages/fetch-error-page.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/src/sw/pages/fetch-error-page.ts -------------------------------------------------------------------------------- /src/sw/pages/origin-isolation-warning-page.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/src/sw/pages/origin-isolation-warning-page.ts -------------------------------------------------------------------------------- /src/sw/pages/page.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/src/sw/pages/page.ts -------------------------------------------------------------------------------- /src/sw/pages/server-error-page.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/src/sw/pages/server-error-page.ts -------------------------------------------------------------------------------- /src/ui/components/button.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/src/ui/components/button.tsx -------------------------------------------------------------------------------- /src/ui/components/cid-input.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/src/ui/components/cid-input.tsx -------------------------------------------------------------------------------- /src/ui/components/content-box.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/src/ui/components/content-box.tsx -------------------------------------------------------------------------------- /src/ui/components/download-form.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/src/ui/components/download-form.tsx -------------------------------------------------------------------------------- /src/ui/components/entity-bytes-input.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/src/ui/components/entity-bytes-input.tsx -------------------------------------------------------------------------------- /src/ui/components/header.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/src/ui/components/header.tsx -------------------------------------------------------------------------------- /src/ui/components/input-description.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/src/ui/components/input-description.tsx -------------------------------------------------------------------------------- /src/ui/components/input-label.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/src/ui/components/input-label.tsx -------------------------------------------------------------------------------- /src/ui/components/input-section.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/src/ui/components/input-section.tsx -------------------------------------------------------------------------------- /src/ui/components/input-select.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/src/ui/components/input-select.tsx -------------------------------------------------------------------------------- /src/ui/components/input-toggle.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/src/ui/components/input-toggle.css -------------------------------------------------------------------------------- /src/ui/components/input-toggle.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/src/ui/components/input-toggle.tsx -------------------------------------------------------------------------------- /src/ui/components/link.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/src/ui/components/link.tsx -------------------------------------------------------------------------------- /src/ui/components/loading-indicator.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/src/ui/components/loading-indicator.tsx -------------------------------------------------------------------------------- /src/ui/components/number-input.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/src/ui/components/number-input.tsx -------------------------------------------------------------------------------- /src/ui/components/sw-ready-button.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/src/ui/components/sw-ready-button.tsx -------------------------------------------------------------------------------- /src/ui/components/terminal.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/src/ui/components/terminal.tsx -------------------------------------------------------------------------------- /src/ui/components/textarea-input.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/src/ui/components/textarea-input.tsx -------------------------------------------------------------------------------- /src/ui/context/config-context.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/src/ui/context/config-context.tsx -------------------------------------------------------------------------------- /src/ui/context/service-worker-context.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/src/ui/context/service-worker-context.tsx -------------------------------------------------------------------------------- /src/ui/index.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/src/ui/index.css -------------------------------------------------------------------------------- /src/ui/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/src/ui/index.tsx -------------------------------------------------------------------------------- /src/ui/ipfs-logo.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/src/ui/ipfs-logo.svg -------------------------------------------------------------------------------- /src/ui/pages/about.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/src/ui/pages/about.tsx -------------------------------------------------------------------------------- /src/ui/pages/config.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/src/ui/pages/config.tsx -------------------------------------------------------------------------------- /src/ui/pages/default-page-styles.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/src/ui/pages/default-page-styles.css -------------------------------------------------------------------------------- /src/ui/pages/fetch-error.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/src/ui/pages/fetch-error.tsx -------------------------------------------------------------------------------- /src/ui/pages/home.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/src/ui/pages/home.tsx -------------------------------------------------------------------------------- /src/ui/pages/no-service-worker.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/src/ui/pages/no-service-worker.tsx -------------------------------------------------------------------------------- /src/ui/pages/origin-isolation-warning.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/src/ui/pages/origin-isolation-warning.tsx -------------------------------------------------------------------------------- /src/ui/pages/server-error.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/src/ui/pages/server-error.tsx -------------------------------------------------------------------------------- /src/version.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/src/version.ts -------------------------------------------------------------------------------- /test-e2e/allow-insecure-website-access.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/test-e2e/allow-insecure-website-access.ts -------------------------------------------------------------------------------- /test-e2e/byte-range.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/test-e2e/byte-range.test.ts -------------------------------------------------------------------------------- /test-e2e/config-loading.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/test-e2e/config-loading.test.ts -------------------------------------------------------------------------------- /test-e2e/config-ui.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/test-e2e/config-ui.test.ts -------------------------------------------------------------------------------- /test-e2e/download-form.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/test-e2e/download-form.test.ts -------------------------------------------------------------------------------- /test-e2e/first-hit.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/test-e2e/first-hit.test.ts -------------------------------------------------------------------------------- /test-e2e/fixtures/capture-all-sw-responses.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/test-e2e/fixtures/capture-all-sw-responses.ts -------------------------------------------------------------------------------- /test-e2e/fixtures/config-test-fixtures.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/test-e2e/fixtures/config-test-fixtures.ts -------------------------------------------------------------------------------- /test-e2e/fixtures/create-kubo-node.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/test-e2e/fixtures/create-kubo-node.ts -------------------------------------------------------------------------------- /test-e2e/fixtures/data/bafireidykglsfhoixmivffc5uwhcgshx4j465xwqntbmu43nb2dzqwfvae.car: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/test-e2e/fixtures/data/bafireidykglsfhoixmivffc5uwhcgshx4j465xwqntbmu43nb2dzqwfvae.car -------------------------------------------------------------------------------- /test-e2e/fixtures/data/bafkreicysg23kiwv34eg2d7qweipxwosdo2py4ldv42nbauguluen5v6am.car: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/test-e2e/fixtures/data/bafkreicysg23kiwv34eg2d7qweipxwosdo2py4ldv42nbauguluen5v6am.car -------------------------------------------------------------------------------- /test-e2e/fixtures/data/bafkrgihhyivzstcz3hhswshfjgy6ertgmnqeleynhwt4dlfsthi4hn7zge.car: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/test-e2e/fixtures/data/bafkrgihhyivzstcz3hhswshfjgy6ertgmnqeleynhwt4dlfsthi4hn7zge.car -------------------------------------------------------------------------------- /test-e2e/fixtures/data/bafybeia7mk3ljigvxaqlzqapyo22hivsja2n5tdjmhpqvvzheoyaribela.car: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/test-e2e/fixtures/data/bafybeia7mk3ljigvxaqlzqapyo22hivsja2n5tdjmhpqvvzheoyaribela.car -------------------------------------------------------------------------------- /test-e2e/fixtures/data/bafybeicvjyaiqmgfe7wupl72gpf7cadwyjqf7nzsxrap6npgrgtd3d6m4y.car: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/test-e2e/fixtures/data/bafybeicvjyaiqmgfe7wupl72gpf7cadwyjqf7nzsxrap6npgrgtd3d6m4y.car -------------------------------------------------------------------------------- /test-e2e/fixtures/data/bafybeie4vcqkutumw7s26ob2bwqwqi44m6lrssjmiirlhrzhs2akdqmkw4.car: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/test-e2e/fixtures/data/bafybeie4vcqkutumw7s26ob2bwqwqi44m6lrssjmiirlhrzhs2akdqmkw4.car -------------------------------------------------------------------------------- /test-e2e/fixtures/data/bafybeigccimv3zqm5g4jt363faybagywkvqbrismoquogimy7kvz2sj7sq.car: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/test-e2e/fixtures/data/bafybeigccimv3zqm5g4jt363faybagywkvqbrismoquogimy7kvz2sj7sq.car -------------------------------------------------------------------------------- /test-e2e/fixtures/data/bafybeigdyrzt5sfp7udm7hu76uh7y26nf3efuylqabf3oclgtqy55fbzdi.car: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/test-e2e/fixtures/data/bafybeigdyrzt5sfp7udm7hu76uh7y26nf3efuylqabf3oclgtqy55fbzdi.car -------------------------------------------------------------------------------- /test-e2e/fixtures/data/bafyreiagfcucdlcbo333incasoqyizw7ecaj5sfb3scippojfb7dm6fjcy.car: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/test-e2e/fixtures/data/bafyreiagfcucdlcbo333incasoqyizw7ecaj5sfb3scippojfb7dm6fjcy.car -------------------------------------------------------------------------------- /test-e2e/fixtures/data/bafyreicqloxaaoq4f5ykqits4iktnmvab62i7nqanv4uce55ep4f6omnvm.car: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/test-e2e/fixtures/data/bafyreicqloxaaoq4f5ykqits4iktnmvab62i7nqanv4uce55ep4f6omnvm.car -------------------------------------------------------------------------------- /test-e2e/fixtures/data/bafyreidb33bjp5ns3cfpzcbn34hrbmt4rrndri3uv4howob3hythkyddci.car: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/test-e2e/fixtures/data/bafyreidb33bjp5ns3cfpzcbn34hrbmt4rrndri3uv4howob3hythkyddci.car -------------------------------------------------------------------------------- /test-e2e/fixtures/data/baguqeerasfd64cjvzypw23uldj56sxclylkk264h2t76cks4vl7g5ilca3aq.car: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/test-e2e/fixtures/data/baguqeerasfd64cjvzypw23uldj56sxclylkk264h2t76cks4vl7g5ilca3aq.car -------------------------------------------------------------------------------- /test-e2e/fixtures/data/gateway-conformance-fixtures.car: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/test-e2e/fixtures/data/gateway-conformance-fixtures.car -------------------------------------------------------------------------------- /test-e2e/fixtures/data/generate.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/test-e2e/fixtures/data/generate.ts -------------------------------------------------------------------------------- /test-e2e/fixtures/data/k51qzi5uqu5dk3v4rmjber23h16xnr23bsggmqqil9z2gduiis5se8dht36dam.ipns-record: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/test-e2e/fixtures/data/k51qzi5uqu5dk3v4rmjber23h16xnr23bsggmqqil9z2gduiis5se8dht36dam.ipns-record -------------------------------------------------------------------------------- /test-e2e/fixtures/do-range-request.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/test-e2e/fixtures/do-range-request.ts -------------------------------------------------------------------------------- /test-e2e/fixtures/handle-origin-isolation-warning.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/test-e2e/fixtures/handle-origin-isolation-warning.ts -------------------------------------------------------------------------------- /test-e2e/fixtures/has-cache-entry.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/test-e2e/fixtures/has-cache-entry.ts -------------------------------------------------------------------------------- /test-e2e/fixtures/load-ipns-records.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/test-e2e/fixtures/load-ipns-records.ts -------------------------------------------------------------------------------- /test-e2e/fixtures/load-kubo-fixtures.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/test-e2e/fixtures/load-kubo-fixtures.ts -------------------------------------------------------------------------------- /test-e2e/fixtures/load-with-service-worker.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/test-e2e/fixtures/load-with-service-worker.ts -------------------------------------------------------------------------------- /test-e2e/fixtures/locators.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/test-e2e/fixtures/locators.ts -------------------------------------------------------------------------------- /test-e2e/fixtures/set-sw-config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/test-e2e/fixtures/set-sw-config.ts -------------------------------------------------------------------------------- /test-e2e/fixtures/sw-scope-verification.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/test-e2e/fixtures/sw-scope-verification.ts -------------------------------------------------------------------------------- /test-e2e/fixtures/wait-for-service-worker.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/test-e2e/fixtures/wait-for-service-worker.ts -------------------------------------------------------------------------------- /test-e2e/global-setup.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/test-e2e/global-setup.ts -------------------------------------------------------------------------------- /test-e2e/global-teardown.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/test-e2e/global-teardown.ts -------------------------------------------------------------------------------- /test-e2e/hamt-dir.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/test-e2e/hamt-dir.test.ts -------------------------------------------------------------------------------- /test-e2e/ipfs-gateway.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/test-e2e/ipfs-gateway.ts -------------------------------------------------------------------------------- /test-e2e/layout.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/test-e2e/layout.test.ts -------------------------------------------------------------------------------- /test-e2e/no-service-worker.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/test-e2e/no-service-worker.test.ts -------------------------------------------------------------------------------- /test-e2e/origin-isolation-warning.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/test-e2e/origin-isolation-warning.test.ts -------------------------------------------------------------------------------- /test-e2e/path-routing.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/test-e2e/path-routing.test.ts -------------------------------------------------------------------------------- /test-e2e/reverse-proxy.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/test-e2e/reverse-proxy.ts -------------------------------------------------------------------------------- /test-e2e/smoke-test.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/test-e2e/smoke-test.test.ts -------------------------------------------------------------------------------- /test-e2e/subdomain-detection.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/test-e2e/subdomain-detection.test.ts -------------------------------------------------------------------------------- /test-e2e/video.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/test-e2e/video.test.ts -------------------------------------------------------------------------------- /test-e2e/website-loading.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/test-e2e/website-loading.test.ts -------------------------------------------------------------------------------- /test/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/test/README.md -------------------------------------------------------------------------------- /test/dns-link-labels.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/test/dns-link-labels.spec.ts -------------------------------------------------------------------------------- /test/first-hit-helpers.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/test/first-hit-helpers.spec.ts -------------------------------------------------------------------------------- /test/get-subdomain-parts.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/test/get-subdomain-parts.spec.ts -------------------------------------------------------------------------------- /test/hash-fragments.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/test/hash-fragments.spec.ts -------------------------------------------------------------------------------- /test/node.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/test/node.ts -------------------------------------------------------------------------------- /test/path-or-subdomain.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/test/path-or-subdomain.spec.ts -------------------------------------------------------------------------------- /test/regex.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/test/regex.spec.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/tsconfig.json -------------------------------------------------------------------------------- /types/svg.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipfs/service-worker-gateway/HEAD/types/svg.d.ts --------------------------------------------------------------------------------