diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index eb671ae..1f0693f 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -1,20 +1,170 @@ -name: Deploy with Docker Compose +# ============================================================================= +# deploy.yaml — test every push; deploy pushes to main that pass. +# +# TWO JOBS +# test runs on every push, to any branch: `go vet` + `go test` for the +# backend and pytest for the Python service. These are the same +# checks as `make check-backend` and `make check-python`. +# deploy runs only for refs/heads/main, and only if `test` passed +# (`needs: test`). Before this gate existed every push to main went +# straight to the live site. +# +# WHERE THIS RUNS, AND WHAT THAT RULES OUT +# A self-hosted act_runner on the Pi itself, in HOST mode (see +# gitea-runner/run.sh): steps are shell commands on the Pi, not in a job +# container. So: +# - No host toolchains are assumed. The Pi is known to have git and docker +# and nothing else; Go and Python run inside `docker run` containers +# pinned to the same base images as backend/Dockerfile (golang:1.26) and +# python/Dockerfile (python:3.12-slim). Bump them together. +# - No `actions/checkout`. It is a JavaScript action and would need Node on +# the host. The source is fetched with plain git instead, from the same +# local Gitea SSH remote the deploy step has always used. +# +# THE LIVE DIRECTORY IS NOT TOUCHED UNTIL TESTS PASS +# The site runs out of /home/adamf/deploy/web_server. The test job never +# goes near it: it fetches into a separate bare cache repo and exports the +# pushed commit to a scratch directory. Only the deploy job, after `test` +# is green, does the `git reset --hard` there. +# +# NOT TESTED HERE: THE VUE BUILD +# Deliberately skipped. `docker compose up --build` in the deploy job +# already runs the full frontend build (wasm-pack + vite) while building the +# vue image, and a failed image build aborts `up` BEFORE any container is +# replaced, so the old site keeps serving. Building it a second time here +# would cost the Pi several minutes per push to learn nothing new. The same +# reasoning does not hold for Go and Python: their images build fine with +# failing tests, which is exactly why those are gated here. +# +# NO pull_request TRIGGER +# `push` with no branch filter already covers every branch, including the +# head branch of any PR in this repo, so adding pull_request would run the +# suite twice per push on a machine with little CPU to spare. +# ============================================================================= +name: Test and deploy on: push: - branches: [main] jobs: + test: + runs-on: self-hosted + env: + # The commit and ref this push delivered. Passed through env rather + # than interpolated into the scripts so a branch name can never be + # parsed as shell. + SHA: ${{ github.sha }} + REF: ${{ github.ref }} + REMOTE: ssh://git@localhost:2222/adamf/web_server.git + GIT_SSH_COMMAND: "ssh -o StrictHostKeyChecking=no" + # Bare repo kept between runs so each fetch is incremental (the + # history is ~140MB; a fresh clone per push would be slow on the + # Pi's SD card). Lives outside the deploy directory on purpose. + CACHE: /home/adamf/.cache/web_server-ci/repo.git + # This run's source tree, exported from the cache and removed in + # the last step. Keyed by commit so two runs cannot share a tree. + SRC: /home/adamf/.cache/web_server-ci/src-${{ github.sha }} + steps: + - name: Export the pushed commit to a scratch directory + shell: bash + run: | + set -eu + mkdir -p "$(dirname "$CACHE")" + [ -d "$CACHE" ] || git init --quiet --bare "$CACHE" + # Fetch the pushed ref, then export the exact pushed commit. + # Using $SHA rather than FETCH_HEAD means that if the branch + # has moved on since this run was queued we still test the + # commit this run is about, not a newer one. + git --git-dir="$CACHE" fetch --quiet --no-tags "$REMOTE" "$REF" + rm -rf "$SRC" + mkdir -p "$SRC" + # `git archive` gives a clean tree of tracked files only: no + # .git, and nothing left over from an earlier run. + git --git-dir="$CACHE" archive --format=tar "$SHA" | tar -x -C "$SRC" + # Do not rely on the shell having pipefail: if the archive + # half failed, make sure that is noticed here. + test -f "$SRC/backend/go.mod" + test -f "$SRC/python/requirements-dev.txt" + echo "Exported $SHA ($REF) to $SRC" + + # The whole repo is mounted, not just backend/, because + # services/env_manager_test.go reads ../../.env.example to check + # it against env_registry.json. Read-only: tests write only to + # t.TempDir(), and a read-only mount means the container (root) + # cannot leave root-owned files in $SRC that the clean-up step, + # running as the runner user, could not delete. + # + # The two named volumes are the Go module cache and build cache. + # Without them every run would re-download every dependency and + # recompile gorm, gin and gqlgen from scratch — minutes on a Pi. + # They survive `docker image prune` and the weekly maintenance + # job; `docker volume rm web_server_ci_gomod web_server_ci_gobuild` + # resets them if they ever go bad. + - name: Backend - go vet and go test + shell: bash + run: | + set -eu + docker run --rm \ + -v "$SRC":/src:ro \ + -w /src/backend \ + -v web_server_ci_gomod:/go/pkg/mod \ + -v web_server_ci_gobuild:/root/.cache/go-build \ + golang:1.26 \ + sh -c 'go vet ./... && go test ./...' + + # requirements-dev.txt pulls in requirements.txt plus pytest. The + # install is repeated every run (the container is thrown away) but + # the pip cache volume means it is unpacking cached wheels, not + # downloading. Read-only source for the same reason as above, so + # bytecode and the pytest cache are switched off rather than left + # to fail noisily. + - name: Python - pytest + shell: bash + run: | + set -eu + docker run --rm \ + -v "$SRC":/src:ro \ + -w /src/python \ + -v web_server_ci_pip:/root/.cache/pip \ + -e PYTHONDONTWRITEBYTECODE=1 \ + python:3.12-slim \ + sh -c 'pip install --quiet --disable-pip-version-check --root-user-action=ignore -r requirements-dev.txt && python -m pytest tests -q -p no:cacheprovider' + + # always(): a failed test must not leave a source tree behind per + # push. The cache repo is kept; only this run's export goes. + - name: Remove the scratch directory + if: always() + shell: bash + run: rm -rf "$SRC" + deploy: + # Both conditions matter: `needs` makes a red test job skip this one, + # and the `if` keeps pushes to other branches from deploying at all. + needs: test + if: github.ref == 'refs/heads/main' runs-on: self-hosted steps: - name: Pull changes working-directory: /home/adamf/deploy/web_server env: GIT_SSH_COMMAND: "ssh -o StrictHostKeyChecking=no" + SHA: ${{ github.sha }} + shell: bash run: | + set -eu git config --global --add safe.directory /home/adamf/deploy/web_server git fetch ssh://git@localhost:2222/adamf/web_server.git main + # Deploy only the commit the test job just passed. If main + # has moved on since this run started, FETCH_HEAD is a newer + # commit that THIS run never tested — stop, and let that + # commit's own run test and deploy it. Failing (rather than + # resetting to $SHA anyway) also means re-running an old run + # can never roll the site back to an old commit. + if [ "$(git rev-parse FETCH_HEAD)" != "$SHA" ]; then + echo "main is at $(git rev-parse FETCH_HEAD), but this run tested $SHA." + echo "Not deploying: the run for the newer commit will." + exit 1 + fi git reset --hard FETCH_HEAD - name: Run docker compose up diff --git a/.gitea/workflows/maintenance.yaml b/.gitea/workflows/maintenance.yaml index 8cf006b..50f533d 100644 --- a/.gitea/workflows/maintenance.yaml +++ b/.gitea/workflows/maintenance.yaml @@ -21,17 +21,28 @@ jobs: - name: Autoremove obsolete packages run: sudo apt-get -y autoremove --purge + # Both compose steps below take env-apply/run/lock, the same flock + # deploy.yaml and env-apply/apply.py hold while they run compose. + # Without it this weekly job could recreate containers at the same + # moment a .env edit from the admin panel is being applied (or a + # deploy is mid-build), and two `compose up`s racing over the same + # project can each recreate a container the other just started, + # ending with services built against a half-written .env. flock + # blocks until the other holder finishes, so the job waits rather + # than fails. The lock is taken per step, not across both: nothing + # needs pull and up to be atomic, and holding it for less time + # keeps an admin-panel change from waiting behind a long pull. - name: Pull latest base images working-directory: /home/adamf/deploy/web_server env: DOCKER_API_VERSION: "1.41" - run: docker compose pull + run: flock env-apply/run/lock docker compose pull - name: Rebuild and restart containers working-directory: /home/adamf/deploy/web_server env: DOCKER_API_VERSION: "1.41" - run: docker compose up -d --build --remove-orphans + run: flock env-apply/run/lock docker compose up -d --build --remove-orphans - name: Prune unused Docker images run: docker image prune -af diff --git a/.gitignore b/.gitignore index bd48752..3cc0934 100644 --- a/.gitignore +++ b/.gitignore @@ -24,6 +24,10 @@ gitea-runner/nohup.out # Python bytecode __pycache__/ *.pyc +.pytest_cache/ + +# Virtualenv `make check-python` builds on demand from python/requirements-dev.txt +/.venv/ # Generated WASM output vue/src/wasm/ diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..0738745 --- /dev/null +++ b/Makefile @@ -0,0 +1,136 @@ +# ============================================================================= +# Makefile — one place for the commands that verify and run this repo. +# +# WHY THIS FILE EXISTS +# The stack is four toolchains (Go, Python, Node, Docker) and the command +# that checks each one used to live only in a gitignored notes file. `make +# check` is the single thing to run before pushing; .gitea/workflows/ +# deploy.yaml runs the same backend and Python checks (in containers, since +# the Pi runner has no host toolchains) before it deploys. +# +# WHAT IT NEEDS ON THE HOST +# check-backend / generate Go (the version in backend/go.mod) +# check-python python3 with the venv module +# check-vue Node + `npm install` done in vue/, and the +# generated vue/src/wasm/ directory (see below) +# check-compose / dev Docker with the compose plugin +# Nothing here installs a toolchain; a missing one fails that target only. +# +# Recipes are plain `cd dir && cmd` one-liners on purpose: each line runs in +# its own shell, so the directory change cannot leak into the next line. +# ============================================================================= + +# `make` with no arguments prints the target list rather than running checks. +.DEFAULT_GOAL := help + +# Overridable: `make check-python PYTHON=python3.12` to match the image. +PYTHON ?= python3 + +# The virtualenv for the Python checks. At the repo root rather than inside +# python/, because python/ is a docker build context and a venv there would be +# sent to the daemon on every build. Gitignored (/.venv/). +VENV := .venv + +# Written after a successful install. Being a file target that depends on both +# requirements files, it is what makes `check-python` re-install when either +# changes and skip the install otherwise. +VENV_STAMP := $(VENV)/.installed + +.PHONY: help check check-backend check-python check-vue check-compose generate dev + +help: + @echo "Targets:" + @echo " make check run every check below" + @echo " make check-backend go vet + go test in backend/" + @echo " make check-python pytest in python/ (venv created on demand in $(VENV)/)" + @echo " make check-vue vite build of vue/ into a throwaway directory" + @echo " make check-compose validate docker-compose.yml, alone and with the dev override" + @echo " make generate regenerate the gqlgen GraphQL code after a schema edit" + @echo " make dev build and run the dev stack (http://localhost)" + +# Run with `make -k check` to keep going past the first failing area. +check: check-backend check-python check-vue check-compose + +check-backend: + cd backend && go vet ./... && go test ./... + +# requirements-dev.txt `-r`-includes requirements.txt, so one install covers +# the app's dependencies and pytest. The venv is recreated from scratch +# whenever a requirements file changes: upgrading in place would leave behind +# packages that were removed from the files, and the check would keep passing +# on a dependency the image no longer has. +$(VENV_STAMP): python/requirements.txt python/requirements-dev.txt + rm -rf $(VENV) + $(PYTHON) -m venv $(VENV) + $(VENV)/bin/python -m pip install --quiet --upgrade pip + $(VENV)/bin/python -m pip install --quiet -r python/requirements-dev.txt + touch $@ + +check-python: $(VENV_STAMP) + cd python && ../$(VENV)/bin/python -m pytest tests -q + +# `npx vite build`, NOT `npm run build`: the npm script first runs wasm-pack to +# compile the Rust crate, which needs a Rust toolchain most machines (and the +# Pi) do not have. The Vite half alone is enough to catch a broken import or +# template. +# +# It does still need the OUTPUT of that Rust step, vue/src/wasm/, which is +# generated and gitignored — so a fresh clone has none and Vite would fail with +# a bare "could not resolve ../wasm/..." error. The guards below say what is +# actually wrong instead. +# +# The build goes to a temp directory that is removed afterwards (success or +# failure), so the check never leaves a vue/dist behind or overwrites one. +check-vue: + @test -d vue/src/wasm || { \ + echo "check-vue: vue/src/wasm/ is missing."; \ + echo " It is the generated (gitignored) output of the Rust crate in vue/crates/"; \ + echo " and the Vite build imports it. Create it with wasm-pack:"; \ + echo " cd vue && npm run build:wasm"; \ + echo " (needs a Rust toolchain; the vue image builds it for you, see vue/Dockerfile)."; \ + exit 1; } + @test -d vue/node_modules || { \ + echo "check-vue: vue/node_modules/ is missing. Run: cd vue && npm install"; \ + exit 1; } + @out=$$(mktemp -d) && trap 'rm -rf "$$out"' EXIT && \ + cd vue && npx vite build --outDir "$$out" --emptyOutDir + +# Validates the compose files: YAML, schema, and that every ${VAR} they +# interpolate resolves to something usable. +# +# With a real .env present this is simply `docker compose config -q`. +# +# Without one (a CI checkout, a fresh clone) two things break, and +# `--env-file .env.example` fixes neither: +# - several services declare `env_file: ./.env`, and compose refuses to load +# the project if that file does not exist; +# - .env.example has blank values, and OBSIDIAN_DIR is used as a bind-mount +# source, where an empty string is a hard "invalid spec" error. +# So in that case the files are validated against a temporary PROJECT +# DIRECTORY holding a copy of .env.example as its .env, with a placeholder for +# OBSIDIAN_DIR. `config` only resolves paths, it does not need them to exist, +# so the build contexts not being under the temp directory is fine. Nothing is +# written to the repo, and a real .env is never created by accident. +check-compose: + @set -e; \ + if [ -f .env ]; then \ + pd="."; \ + else \ + echo "check-compose: no .env, validating against .env.example"; \ + pd=$$(mktemp -d); trap 'rm -rf "$$pd"' EXIT; \ + cp .env.example "$$pd/.env"; \ + echo "OBSIDIAN_DIR=/placeholder/obsidian" >> "$$pd/.env"; \ + fi; \ + echo "docker compose -f docker-compose.yml config -q"; \ + docker compose --project-directory "$$pd" -f docker-compose.yml config -q; \ + echo "docker compose -f docker-compose.yml -f docker-compose.dev.yml config -q"; \ + docker compose --project-directory "$$pd" -f docker-compose.yml -f docker-compose.dev.yml config -q + +# Rewrites backend/graph/generated.go and graph/model/models_gen.go from +# graph/schema/*.graphql. Resolver bodies in *.resolvers.go are preserved. +generate: + cd backend && go run github.com/99designs/gqlgen generate + +# Dev stack: HTTP only, seeded database, Vite hot reload behind nginx. +dev: + docker compose -f docker-compose.yml -f docker-compose.dev.yml up --build diff --git a/nginx/Dockerfile b/nginx/Dockerfile index a80f63e..a0d2093 100644 --- a/nginx/Dockerfile +++ b/nginx/Dockerfile @@ -1,5 +1,6 @@ # ============================================================================= -# nginx image — the public edge. Stock nginx plus two tools and three templates. +# nginx image — the public edge. Stock nginx plus two tools, three config +# templates and the two partials they include. # # BASE: nginx:1.27, pinned to a minor version. Official nginx images are # multi-arch, so the same tag resolves to the arm64 build on the Raspberry Pi @@ -19,9 +20,11 @@ # # apt lists are deleted in the SAME RUN layer so they never end up in the image. # -# NO nginx.conf IS COPIED IN. All three templates (plus the dev partial) are, +# NO nginx.conf IS COPIED IN. All three templates (plus the two partials) are, # and entrypoint.sh picks one at container start. See nginx/entrypoint.sh for -# that decision. +# that decision. A new partial needs BOTH a COPY here and an envsubst render in +# the entrypoint, or nginx fails at start with "open() ... failed" on the +# include. # ============================================================================= FROM nginx:1.27 RUN rm -rf /etc/nginx/html/* && \ @@ -34,6 +37,10 @@ COPY nginx_dev.conf.template /etc/nginx/nginx_dev.conf.template # (same envsubst allow-list) to /etc/nginx/nginx_dev_common.conf, which is the # path both `include` directives in nginx_dev.conf.template point at. COPY nginx_dev_common.conf.template /etc/nginx/nginx_dev_common.conf.template +# The proxy route table shared by production and dev. entrypoint.sh renders it +# (same envsubst allow-list) to /etc/nginx/nginx_routes.conf, the path +# nginx.conf.template and nginx_dev_common.conf.template both `include`. +COPY nginx_routes.conf.template /etc/nginx/nginx_routes.conf.template # Static security-header include, referenced from nginx.conf.template (and # any location that sets its own add_header). Not templated — no envsubst. COPY security_headers.conf /etc/nginx/security_headers.conf diff --git a/nginx/entrypoint.sh b/nginx/entrypoint.sh index c59892e..0d8ec56 100755 --- a/nginx/entrypoint.sh +++ b/nginx/entrypoint.sh @@ -6,8 +6,11 @@ # WHAT IT DOES # nginx.conf is not shipped in the image. Instead three *templates* are baked # in (see nginx/Dockerfile) and this script renders exactly one of them to -# /etc/nginx/nginx.conf before starting nginx in the foreground. In dev it -# also renders the shared server-block partial the dev template includes. +# /etc/nginx/nginx.conf before starting nginx in the foreground. It also +# renders the PARTIALS those templates `include`: the proxy route table +# shared by production and dev (nginx_routes.conf, every boot path) and, in +# dev only, the body shared by the two dev server blocks +# (nginx_dev_common.conf). See RENDERED FILES below. # After nginx starts, a background watcher handles certificates appearing or # being renewed — see CERTIFICATE WATCHER at the bottom of this file. # @@ -47,6 +50,19 @@ # Step (c) IS automatic now. A first deploy on a new domain no longer needs a # manual `docker compose restart nginx`; a restart remains a valid fallback. # +# RENDERED FILES (template in the image -> path nginx reads) +# nginx.conf.template | nginx_dev.conf.template | nginx_setup.conf.template +# -> /etc/nginx/nginx.conf (one of three) +# nginx_routes.conf.template -> /etc/nginx/nginx_routes.conf +# The reverse-proxy locations common to production and dev. Included +# by nginx.conf.template directly and by nginx_dev_common.conf. This is +# where a new proxied route goes. +# nginx_dev_common.conf.template -> /etc/nginx/nginx_dev_common.conf +# Dev only: included by both server blocks of nginx_dev.conf.template. +# The `include` directives name those rendered paths literally, so a partial +# must be written BEFORE anything runs nginx (or `nginx -t`) against a config +# that includes it. +# # THE envsubst TEMPLATING PATTERN # The templates are plain nginx configs containing $VARIABLES. Two different # kinds of $VAR live in the same file: @@ -93,10 +109,27 @@ export SILVERBULLET_PUBLIC_HOST="${SILVERBULLET_PUBLIC_HOST:-silverbullet-public export SILVERBULLET_PUBLIC_PORT="${SILVERBULLET_PUBLIC_PORT:-3000}" # The envsubst allow-list, defined once and reused by both full-config branches -# so the two lists cannot drift apart. It MUST stay single-quoted here and be -# passed as "$ENVSUBST_VARS" (one argument) below. +# and by every partial, so the lists cannot drift apart. It MUST stay +# single-quoted here and be passed as "$ENVSUBST_VARS" (one argument) below. ENVSUBST_VARS='${DOMAIN} ${BACKEND_HOST} ${BACKEND_PORT} ${BACKEND_ENDPOINT} ${ICECAST_HOST} ${ICECAST_PORT} ${GITEA_HOST} ${GITEA_PORT} ${SILVERBULLET_HOST} ${SILVERBULLET_PORT} ${SILVERBULLET_PUBLIC_HOST} ${SILVERBULLET_PUBLIC_PORT} ${PYTHON_HOST} ${PYTHON_PORT}' +# Render the shared proxy route table. Done ONCE, here, ahead of the three-way +# decision, rather than inside each branch: +# - dev and production both include it, so both need it before nginx starts; +# - the setup branch does not include it, but the certificate watcher at the +# bottom of this file later switches setup -> production by validating a +# candidate production config with `nginx -t`, and that candidate includes +# this path. Having it already on disk means the watcher has nothing extra +# to render and no ordering to get wrong. +# It is safe to write straight to the live path (no temp file + validate, as +# the watcher does for nginx.conf): this runs before nginx has started, and +# its content depends only on the image's template and the container's +# environment, neither of which can change while the container lives — so +# there is never a newer version to swap in under a running nginx. +envsubst "$ENVSUBST_VARS" \ + /etc/nginx/nginx_routes.conf + # Check if DEV_MODE if [ "$DEV_MODE" = "true" ]; then echo "Dev mode. Generating self-signed certificate for HTTPS." @@ -112,7 +145,8 @@ if [ "$DEV_MODE" = "true" ]; then fi # In dev mode, so use nginx_dev.conf.template. Its two server blocks both # `include /etc/nginx/nginx_dev_common.conf`, so the shared partial has to be - # rendered through the SAME allow-list, into exactly that path, first. + # rendered through the SAME allow-list, into exactly that path, first. (That + # partial in turn includes nginx_routes.conf, rendered above.) envsubst "$ENVSUBST_VARS" \ /etc/nginx/nginx_dev_common.conf @@ -122,7 +156,8 @@ if [ "$DEV_MODE" = "true" ]; then CONFIG_MODE=dev elif [ -f "/etc/letsencrypt/live/$DOMAIN/fullchain.pem" ] && [ -f "/etc/letsencrypt/live/$DOMAIN/privkey.pem" ]; then echo "Certificates found. Using production nginx config." - # In production with certificates already existing, so use nginx.conf.template + # In production with certificates already existing, so use nginx.conf.template. + # It includes nginx_routes.conf, rendered above. envsubst "$ENVSUBST_VARS" \ /etc/nginx/nginx.conf @@ -130,7 +165,9 @@ elif [ -f "/etc/letsencrypt/live/$DOMAIN/fullchain.pem" ] && [ -f "/etc/letsencr else echo "Certificates NOT found. Using setup nginx config." # In production with no certificates, so use nginx_setup.conf.template and will need restart after generation - # Only ${DOMAIN} is substituted: the setup config has no upstreams at all. + # Only ${DOMAIN} is substituted: the setup config has no upstreams at all + # (and does not include nginx_routes.conf — that file is on disk only so the + # certificate watcher can switch to the production config later). envsubst '${DOMAIN}' /etc/nginx/nginx.conf CONFIG_MODE=setup fi @@ -202,6 +239,12 @@ CERT_WATCH_INTERVAL="${CERT_WATCH_INTERVAL:-60}" # Render the production template to a temp file, validate it, and only then # install it. Returns non-zero (installing nothing) if either step fails. +# The candidate `include`s /etc/nginx/nginx_routes.conf by absolute path, so +# `nginx -t` here validates the shared route table too; that file was rendered +# once at the top of this script and is deliberately NOT re-rendered here (it +# cannot have changed — see the comment where it is rendered — and rewriting a +# file the running nginx may be about to re-read would only add a window in +# which it is truncated). render_prod_config() { _candidate=/tmp/nginx.conf.candidate envsubst "$ENVSUBST_VARS" "$_candidate" 2>/dev/null || return 1 diff --git a/nginx/nginx.conf.template b/nginx/nginx.conf.template index 71b187c..8d0d496 100644 --- a/nginx/nginx.conf.template +++ b/nginx/nginx.conf.template @@ -11,7 +11,7 @@ # TEMPLATING # Only the names in the envsubst allow-list in nginx/entrypoint.sh are # substituted: DOMAIN, BACKEND_HOST/PORT/ENDPOINT, ICECAST_*, GITEA_*, -# SILVERBULLET_*, PYTHON_*, UPTIMEKUMA_*, WALLABAG_*. Every other dollar +# SILVERBULLET_*, PYTHON_*. Every other dollar # token in this file is an nginx RUNTIME variable (host, remote_addr, uri, # http_upgrade, proxy_add_x_forwarded_for, binary_remote_addr, request_uri, # scheme, http_cookie) and must be left alone — that restriction is the whole @@ -25,6 +25,16 @@ # is exactly one canonical origin (important: cookies, # CORS and the SPA all assume www). # 3. :443 www -> the real site. +# +# WHERE THE PROXY ROUTES ARE +# Not in this file. The reverse-proxied locations (/api, /radio, /gitea, +# /notes, /sb, /py and the admin-gate subrequest) and the `set $upstream_*` +# variables are shared with dev and live in nginx_routes.conf.template, +# which the www server block includes. ADD NEW PROXIED ROUTES THERE. What +# stays here is what only production has: TLS, the redirects, the security +# headers, static-asset caching, the SPA fallback, the /uploads/ blocks +# (which carry the security headers), the `graphql` rate-limit zone and its +# location, and the limit_req_zone declarations the shared routes refer to. # ============================================================================= events { worker_connections 1024; @@ -76,7 +86,9 @@ http { # This is an abuse ceiling, not a quota. # graphql 10r/s burst=10 - tighter than REST because a single GraphQL # query can be arbitrarily expensive to resolve. - # (Production only; the dev template omits it.) + # (Production only; the dev template omits it. + # Its location is at the bottom of this file, + # not in the shared route table.) # upload 5r/m burst=3 - uploads are 50MB-capable and hit disk; this # bounds how fast one IP can fill the volume. # hotel_search 3r/m burst=2 - each request holds an upstream call to @@ -89,6 +101,11 @@ http { # CDN or upstream proxy in front), that is correct. If anything is ever put # in front, these zones must switch to a trusted X-Forwarded-For or every # visitor will share one bucket. + # + # login, api, upload and hotel_search are USED from + # nginx_routes.conf.template, which dev includes too — so + # nginx_dev.conf.template must declare the same four zones, or the dev + # config fails to load with "zero size shared memory zone". limit_req_zone $binary_remote_addr zone=login:10m rate=5r/m; limit_req_zone $binary_remote_addr zone=api:10m rate=30r/s; limit_req_zone $binary_remote_addr zone=graphql:10m rate=10r/s; @@ -161,12 +178,9 @@ http { http2 on; server_name www.$DOMAIN; - set $upstream_backend http://$BACKEND_HOST:$BACKEND_PORT; - set $upstream_icecast http://$ICECAST_HOST:$ICECAST_PORT; - set $upstream_gitea http://$GITEA_HOST:$GITEA_PORT; - set $upstream_silverbullet http://$SILVERBULLET_HOST:$SILVERBULLET_PORT; - set $upstream_silverbullet_public http://$SILVERBULLET_PUBLIC_HOST:$SILVERBULLET_PUBLIC_PORT; - set $upstream_python http://$PYTHON_HOST:$PYTHON_PORT; + # The `set $upstream_*` variables used by proxy_pass are declared in + # nginx_routes.conf (included below), alongside the routes that use + # them. root /etc/nginx/html; index index.html; @@ -178,6 +192,9 @@ http { # included there instead of here, because any location that declares # so much as one add_header of its own otherwise inherits none of # these (nginx's add_header inheritance is all-or-nothing). + # The shared proxy routes in nginx_routes.conf rely on exactly this + # server-level include: none of them declares an add_header, so they + # all inherit these headers here, and inherit nothing in dev. include /etc/nginx/security_headers.conf; # Vite hashed assets - immutable, cache 1 year @@ -273,80 +290,25 @@ http { include /etc/nginx/security_headers.conf; } - # ---- Backend API ----------------------------------------------------- - # Two patterns repeat through every proxied location below: + # ---- Shared proxy route table ---------------------------------------- + # Every reverse-proxied location (/api, /radio, /gitea, /notes, /sb, + # /py), the admin auth_request gate and the `set $upstream_*` variables + # come from nginx_routes.conf.template, rendered by the entrypoint to + # this path and shared with the dev config. The prefix-strip rewrite, + # the forwarding headers and the websocket upgrade are annotated there. # - # 1. THE PREFIX-STRIP REWRITE - # rewrite ^/(.*)$ /$1 break; - # The public URL carries a prefix (/api, /radio, /gitea, /py) but the upstream service serves its routes from /. The - # rewrite strips the prefix and `break` stops rewrite processing so - # the request stays in this location and goes to proxy_pass with the - # rewritten URI. (This is why proxy_pass here has no trailing path — - # with a variable upstream, nginx would not do the strip for us.) - # The bare `location ` blocks that 301 to `/` exist - # only so a user typing /gitea without the slash lands correctly. - # - # 2. THE FOUR FORWARDING HEADERS - # Host preserve the browser's hostname so the app - # builds correct absolute URLs and cookies. - # X-Real-IP the true client IP (the upstream otherwise - # sees only nginx's container IP). - # X-Forwarded-For appends the client to any existing chain. - # X-Forwarded-Proto tells the app the ORIGINAL request was - # https even though this hop is plain http. - # Without it the backend would issue - # non-Secure cookies and http:// redirects, - # breaking auth behind TLS termination. - # - # Ordering matters: nginx picks the longest matching prefix location, - # so the specific /ws, /auth/login, /messages/upload and /graphql blocks - # win over the catch-all / block regardless of file order. - location $BACKEND_ENDPOINT { - return 301 $BACKEND_ENDPOINT/; - } - - # WebSocket endpoint (live chat / activity feed). - # The three lines that make an upgrade work, and why each is needed: - # proxy_http_version 1.1 - HTTP/1.0 has no Upgrade mechanism at all. - # Upgrade $http_upgrade - hop-by-hop headers are NOT forwarded by - # Connection "upgrade" default, so they must be re-set by hand. - # Note the Connection value is hardcoded rather than using the usual - # $connection_upgrade map: this location only ever serves websockets, so - # there is no plain-HTTP case to fall back to. - # Deliberately NOT rate limited — a websocket is one long-lived request - # and a limit_req here would drop reconnect storms, not abuse. - location $BACKEND_ENDPOINT/ws { - rewrite ^$BACKEND_ENDPOINT/(.*)$ /$1 break; - proxy_pass $upstream_backend; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "upgrade"; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - } - - location $BACKEND_ENDPOINT/auth/login { - limit_req zone=login burst=3 nodelay; - rewrite ^$BACKEND_ENDPOINT/(.*)$ /$1 break; - proxy_pass $upstream_backend; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - } - - location $BACKEND_ENDPOINT/messages/upload { - limit_req zone=upload burst=3 nodelay; - rewrite ^$BACKEND_ENDPOINT/(.*)$ /$1 break; - proxy_pass $upstream_backend; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - } + # Position matters for one thing only: regex locations are tried in + # file order, so the ACME regex above stays ahead of the /notes and + # /py/hotels regexes inside this include, as it always was. + include /etc/nginx/nginx_routes.conf; + # GraphQL, PRODUCTION ONLY — which is why it is here and not in the + # shared table. Longest-prefix matching makes it win over the shared + # $BACKEND_ENDPOINT/ catch-all, swapping the general `api` limit for + # the tighter `graphql` zone declared at the top of this file. Dev has + # no such location, so GraphQL there falls under `api`. Apart from the + # limit_req line the body must stay identical to $BACKEND_ENDPOINT/ in + # nginx_routes.conf.template. location $BACKEND_ENDPOINT/graphql { limit_req zone=graphql burst=10 nodelay; rewrite ^$BACKEND_ENDPOINT/(.*)$ /$1 break; @@ -357,217 +319,6 @@ http { proxy_set_header X-Forwarded-Proto $scheme; } - location $BACKEND_ENDPOINT/ { - limit_req zone=api burst=20 nodelay; - rewrite ^$BACKEND_ENDPOINT/(.*)$ /$1 break; - proxy_pass $upstream_backend; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - } - - location /radio { - return 301 /radio/; - } - - # The icecast ADMIN UI (/radio/admin/*) is a full station-control - # surface — kick sources, change metadata — protected only by the - # icecast admin password, and it was reachable from the public - # internet through this proxy. Put it behind the same admin - # `auth_request` as /sb/ so an admin session cookie is - # required before the request ever reaches icecast. Longest-prefix - # matching means this wins over /radio/ below; listener traffic - # (/radio/$ICECAST_MOUNT, /radio/status.xsl) is untouched. - location /radio/admin/ { - auth_request /internal/auth/admin-validate; - error_page 401 403 = @auth_denied; - rewrite ^/radio/(.*)$ /$1 break; - proxy_pass $upstream_icecast; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - } - - location /radio/ { - rewrite ^/radio/(.*)$ /$1 break; - proxy_pass $upstream_icecast; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - } - - location /gitea { - return 301 /gitea/; - } - - location /gitea/ { - rewrite ^/gitea/(.*)$ /$1 break; - proxy_pass $upstream_gitea; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - } - - location /notes { - return 301 /notes/; - } - - # PUBLIC notes viewer: a second, read-only SilverBullet over the same - # vault the /sb/ editor edits. No auth_request — this is the public - # site. See the silverbullet-public service in docker-compose.yml. - # - # THE DENY BLOCKS BELOW ARE THE PRIVACY BOUNDARY, not decoration. - # SB_SPACE_IGNORE only hides paths from the file LIST. Everything else - # happily serves them (all verified against 2.11.0 with curl): - # /notes/.fs/private/x.md raw file, straight off disk - # /notes/private/x the page URL: the server pre-renders the - # note's content into the HTML shell - # /notes/.fs/.git/... the vault's whole git repo, i.e. every - # version of every private note ever - # and gitignore semantics mean `private/` in SB_SPACE_IGNORE hides a - # private/ folder at ANY depth from the list, so the block must too. - # - # 1. private/ or templates/ as any path segment, page URL or /.fs/. - # ~* so Private/ is caught; (/|$) so the folder itself matches. - # 2. Any dot-segment below the first: .git, .obsidian, .env, ... The - # first segment is exempt because that is where SilverBullet's own - # endpoints live (/.fs, /.config, /.client, /.events ...). Nothing - # the client legitimately loads has a dot-segment deeper than that. - # nginx matches against the normalised URI (percent-decoded, `..` - # resolved, slashes merged), so %2F, // or ../ tricks cannot slip past. - # Keep the folder list in step with SB_SPACE_IGNORE on - # silverbullet-public. 404 rather than 403 so the response does not - # confirm a private path exists. - location ~* ^/notes/(.*/)?(private|templates)(/|$) { - return 404; - } - - location ~ ^/notes/.+/\. { - return 404; - } - - # Revisions are read from the vault's own .git, i.e. the full history - # of every file INCLUDING private/ and anything ever deleted. - # SB_REVISIONS=disabled already turns this off upstream; this is the - # second lock in case that env var is ever dropped. ^~ so no regex - # location can take precedence. - location ^~ /notes/.revisions { - return 404; - } - - # Same as /sb/: deliberately NO prefix-strip rewrite. The app is told - # its base path via SB_URL_PREFIX=/notes and builds its service worker - # scope and asset URLs from it; strip the prefix and it loads blank. - # Upgrade/Connection are for its live-update event stream. - location /notes/ { - proxy_pass $upstream_silverbullet_public; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "upgrade"; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - } - - location /sb { - return 301 /sb/; - } - - # SilverBullet: the admin-only EDITOR for the vault /notes/ publishes. - # Deliberately NO prefix-strip rewrite, unlike every other proxied app - # here. SilverBullet is a PWA told its own base path via SB_URL_PREFIX=/sb, - # and its service worker scope and asset URLs are built from that. Strip - # the prefix and the app loads a blank page with no error in the log. - # Upgrade/Connection are for its sync websocket. - location /sb/ { - auth_request /internal/auth/admin-validate; - error_page 401 403 = @auth_denied; - proxy_pass $upstream_silverbullet; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "upgrade"; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - } - - location /py { - return 301 /py/; - } - - # /py/hotels/search[/stream] and /py/hotels/scan/stream: long-running NDJSON streams - location ~ ^/py/hotels/(search|scan) { - # Public, up-to-a-minute upstream call with a single search slot: keep it to a few per minute per IP - limit_req zone=hotel_search burst=2 nodelay; - proxy_read_timeout 300s; - proxy_send_timeout 300s; - # The stream variant sends NDJSON progress lines; pass them through as they arrive - proxy_buffering off; - proxy_cache off; - gzip off; - rewrite ^/py/(.*)$ /$1 break; - proxy_pass $upstream_python; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - } - - # /py/internal/: routes the Go backend calls directly over app-network - # (the rowing photo reader and the job posting reader, which spend a - # paid Claude call and have no auth of their own). Never proxied. ^~ so no regex location can claim - # the path first. The Python side also refuses anything carrying the - # X-Real-IP / X-Forwarded-For headers set below, as a second layer. - location ^~ /py/internal/ { - return 404; - } - - location /py/ { - limit_req zone=api burst=20 nodelay; - # Hotel search blocks for up to a few minutes while it calls Travelodge and TfL - proxy_read_timeout 300s; - proxy_send_timeout 300s; - rewrite ^/py/(.*)$ /$1 break; - proxy_pass $upstream_python; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - } - - # ---- Admin gate (/sb/, /radio/admin/, /uploads/private/) ---- - # `auth_request` makes nginx fire a subrequest here before serving the - # real one; a 2xx lets it through, 401/403 triggers error_page -> - # @auth_denied -> redirect to the SPA login. This puts the Go backend's - # session cookie in front of services that have no idea it exists. - # internal; - unreachable from outside, subrequest only. - # proxy_pass_request_body off + Content-Length "" - # - the subrequest must not replay the - # original body (it could be a 50MB - # upload); clearing Content-Length stops - # the backend waiting for a body that is - # not coming. - # Cookie $http_cookie - the whole point: forward the session - # cookie so the backend can validate it. - location = /internal/auth/admin-validate { - internal; - rewrite ^ /auth/validate-admin break; - proxy_pass $upstream_backend; - proxy_pass_request_body off; - proxy_set_header Content-Length ""; - proxy_set_header Cookie $http_cookie; - } - - location @auth_denied { - return 302 /admin/login?redirect=$request_uri; - } - } } diff --git a/nginx/nginx_dev.conf.template b/nginx/nginx_dev.conf.template index 5a8ead7..f670437 100644 --- a/nginx/nginx_dev.conf.template +++ b/nginx/nginx_dev.conf.template @@ -11,8 +11,7 @@ # for Vite's HMR websocket, not for the app. # - No HTTP->HTTPS redirect and no apex->www redirect: BOTH :80 and :443 # serve the full site, so http://localhost just works. The two server -# blocks are therefore near-identical copies of each other (see the -# duplication note in DEPLOYMENT.md). +# blocks therefore share one body, nginx_dev_common.conf.template. # - TLS uses the self-signed /etc/letsencrypt/live/localhost/ certificate that # the entrypoint generates, not a Let's Encrypt one. Browsers will warn. # - No HSTS or other security headers — HSTS on localhost would poison the @@ -26,10 +25,13 @@ # Same envsubst allow-list as production. Every other dollar token is an # nginx runtime variable and must survive substitution untouched. # -# For the rate-limit reasoning, the prefix-strip rewrite, the four forwarding -# headers, the websocket upgrade block and the auth_request admin gate, see the -# fully-annotated equivalents in nginx.conf.template — the mechanics here are -# identical. +# INCLUDE CHAIN +# this file -> nginx_dev_common.conf (once per server block: the dev-only +# /uploads/ and `/` locations) -> nginx_routes.conf (the proxy route table +# shared with production). The prefix-strip rewrite, the four forwarding +# headers, the websocket upgrade block and the auth_request admin gate are +# annotated in nginx_routes.conf.template; the rate-limit reasoning is in +# nginx.conf.template. # ============================================================================= events { worker_connections 1024; @@ -46,6 +48,10 @@ http { client_max_body_size 50M; + # These four zones are referenced by limit_req lines in the SHARED + # nginx_routes.conf.template, so they must exist here with the same names + # as in nginx.conf.template or nginx refuses to load the config. Rates are + # kept equal to production so a limit that would bite there bites here too. limit_req_zone $binary_remote_addr zone=login:10m rate=5r/m; limit_req_zone $binary_remote_addr zone=api:10m rate=30r/s; limit_req_zone $binary_remote_addr zone=upload:10m rate=5r/m; diff --git a/nginx/nginx_dev_common.conf.template b/nginx/nginx_dev_common.conf.template index 802a9c4..0d0a67b 100644 --- a/nginx/nginx_dev_common.conf.template +++ b/nginx/nginx_dev_common.conf.template @@ -1,5 +1,6 @@ # ============================================================================= -# nginx_dev.conf.template — SHARED BODY of the dev :80 and :443 server blocks. +# nginx_dev_common.conf.template — SHARED BODY of the dev :80 and :443 server +# blocks. # # WHY THIS FILE EXISTS # In dev the :80 and :443 server blocks are byte-for-byte identical apart @@ -16,21 +17,19 @@ # the entrypoint, or it will reach nginx unsubstituted. # # WHAT BELONGS HERE -# Everything inside a `server { ... }` block: the `set $upstream_*` vars and -# every `location`. NOT `listen`, `server_name` or the ssl_certificate lines -# (those differ between the two blocks), and NOT the enclosing braces — this -# file must be brace-balanced on its own. +# Only what dev does DIFFERENTLY from production inside a server block: the +# /uploads/ locations without security headers, and `/` proxied to Vite. +# Everything else — the `set $upstream_*` vars and every reverse-proxied +# route — is in nginx_routes.conf.template, shared with production and +# included at the bottom of this file. ADD NEW PROXIED ROUTES THERE, not +# here. +# NOT `listen`, `server_name` or the ssl_certificate lines (those differ +# between the two blocks), and NOT the enclosing braces — this file must be +# brace-balanced on its own. # -# This is the DEV file only. Production uses a single :443 server block in -# nginx.conf.template and needs no partial. +# This is the DEV file only. Production's single :443 www server block in +# nginx.conf.template includes nginx_routes.conf directly. # ============================================================================= - set $upstream_backend http://$BACKEND_HOST:$BACKEND_PORT; - set $upstream_icecast http://$ICECAST_HOST:$ICECAST_PORT; - set $upstream_gitea http://$GITEA_HOST:$GITEA_PORT; - set $upstream_silverbullet http://$SILVERBULLET_HOST:$SILVERBULLET_PORT; - set $upstream_silverbullet_public http://$SILVERBULLET_PUBLIC_HOST:$SILVERBULLET_PUBLIC_PORT; - set $upstream_python http://$PYTHON_HOST:$PYTHON_PORT; - # PRIVATE attachments (admin-only). Attachments on *private* chat # messages are written by the backend to /backend/uploads/private/ and # must not be readable by the public, so this subpath is put behind the @@ -48,6 +47,12 @@ add_header Content-Security-Policy "default-src 'none'; img-src 'self'; style-src 'none'; script-src 'none'" always; } + # Both /uploads/ blocks are the production ones MINUS + # `include security_headers.conf`: that file carries HSTS, which must + # never be sent from localhost. That one line is why they are not in + # the shared route table (see WHAT DOES NOT in + # nginx_routes.conf.template). Keep the rest in step with + # nginx.conf.template. location /uploads/ { alias /uploads/; add_header X-Content-Type-Options nosniff always; @@ -55,6 +60,7 @@ add_header Content-Security-Policy "default-src 'none'; img-src 'self'; style-src 'none'; script-src 'none'" always; } + # The Vite dev server; Upgrade/Connection carry its HMR websocket. location / { proxy_pass http://vue:5173; proxy_http_version 1.1; @@ -63,205 +69,6 @@ proxy_set_header Host $host; } - location $BACKEND_ENDPOINT { - return 301 $BACKEND_ENDPOINT/; - } - - location $BACKEND_ENDPOINT/ws { - rewrite ^$BACKEND_ENDPOINT/(.*)$ /$1 break; - proxy_pass $upstream_backend; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "upgrade"; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - } - - location $BACKEND_ENDPOINT/auth/login { - limit_req zone=login burst=3 nodelay; - rewrite ^$BACKEND_ENDPOINT/(.*)$ /$1 break; - proxy_pass $upstream_backend; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - } - - location $BACKEND_ENDPOINT/messages/upload { - limit_req zone=upload burst=3 nodelay; - rewrite ^$BACKEND_ENDPOINT/(.*)$ /$1 break; - proxy_pass $upstream_backend; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - } - - location $BACKEND_ENDPOINT/ { - limit_req zone=api burst=20 nodelay; - rewrite ^$BACKEND_ENDPOINT/(.*)$ /$1 break; - proxy_pass $upstream_backend; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - } - - location /radio { - return 301 /radio/; - } - - # The icecast ADMIN UI (/radio/admin/*) is a full station-control - # surface — kick sources, change metadata — protected only by the - # icecast admin password, and it was reachable from the public - # internet through this proxy. Put it behind the same admin - # `auth_request` as /sb/ so an admin session cookie is - # required before the request ever reaches icecast. Longest-prefix - # matching means this wins over /radio/ below; listener traffic - # (/radio/$ICECAST_MOUNT, /radio/status.xsl) is untouched. - location /radio/admin/ { - auth_request /internal/auth/admin-validate; - error_page 401 403 = @auth_denied; - rewrite ^/radio/(.*)$ /$1 break; - proxy_pass $upstream_icecast; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - } - - location /radio/ { - rewrite ^/radio/(.*)$ /$1 break; - proxy_pass $upstream_icecast; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - } - - location /gitea { - return 301 /gitea/; - } - - location /gitea/ { - rewrite ^/gitea/(.*)$ /$1 break; - proxy_pass $upstream_gitea; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - } - - location /notes { - return 301 /notes/; - } - - # PUBLIC notes viewer (read-only SilverBullet). The deny blocks are - # the privacy boundary: SB_SPACE_IGNORE hides files from the list but - # NOT from a direct /.fs/ fetch, a page URL (server-rendered), or - # /.fs/.git/. Full explanation in nginx.conf.template; keep the two in - # step. - location ~* ^/notes/(.*/)?(private|templates)(/|$) { - return 404; - } - - location ~ ^/notes/.+/\. { - return 404; - } - - location ^~ /notes/.revisions { - return 404; - } - - location /notes/ { - proxy_pass $upstream_silverbullet_public; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "upgrade"; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - } - - location /sb { - return 301 /sb/; - } - - # SilverBullet: the admin-only EDITOR for the vault /notes/ publishes. - # Deliberately NO prefix-strip rewrite, unlike every other proxied app - # here. SilverBullet is a PWA told its own base path via SB_URL_PREFIX=/sb, - # and its service worker scope and asset URLs are built from that. Strip - # the prefix and the app loads a blank page with no error in the log. - # Upgrade/Connection are for its sync websocket. - location /sb/ { - auth_request /internal/auth/admin-validate; - error_page 401 403 = @auth_denied; - proxy_pass $upstream_silverbullet; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "upgrade"; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - } - - location /py { - return 301 /py/; - } - - # /py/hotels/search[/stream] and /py/hotels/scan/stream: long-running NDJSON streams - location ~ ^/py/hotels/(search|scan) { - # Public, up-to-a-minute upstream call with a single search slot: keep it to a few per minute per IP - limit_req zone=hotel_search burst=2 nodelay; - proxy_read_timeout 300s; - proxy_send_timeout 300s; - # The stream variant sends NDJSON progress lines; pass them through as they arrive - proxy_buffering off; - proxy_cache off; - gzip off; - rewrite ^/py/(.*)$ /$1 break; - proxy_pass $upstream_python; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - } - - # /py/internal/: routes the Go backend calls directly over app-network - # (the rowing photo reader and the job posting reader, which spend a - # paid Claude call and have no auth of their own). Never proxied. ^~ so no regex location can claim - # the path first. The Python side also refuses anything carrying the - # X-Real-IP / X-Forwarded-For headers set below, as a second layer. - location ^~ /py/internal/ { - return 404; - } - - location /py/ { - limit_req zone=api burst=20 nodelay; - # Hotel search blocks for up to a few minutes while it calls Travelodge and TfL - proxy_read_timeout 300s; - proxy_send_timeout 300s; - rewrite ^/py/(.*)$ /$1 break; - proxy_pass $upstream_python; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - } - - location = /internal/auth/admin-validate { - internal; - rewrite ^ /auth/validate-admin break; - proxy_pass $upstream_backend; - proxy_pass_request_body off; - proxy_set_header Content-Length ""; - proxy_set_header Cookie $http_cookie; - } - - location @auth_denied { - return 302 /admin/login?redirect=$request_uri; - } + # Every other route, shared with production. This file has no regex + # locations of its own, so where the include sits is cosmetic. + include /etc/nginx/nginx_routes.conf; diff --git a/nginx/nginx_routes.conf.template b/nginx/nginx_routes.conf.template new file mode 100644 index 0000000..c9488a4 --- /dev/null +++ b/nginx/nginx_routes.conf.template @@ -0,0 +1,367 @@ +# ============================================================================= +# nginx_routes.conf.template — the PROXY ROUTE TABLE shared by production and +# dev. Add a new proxied route HERE, once. +# +# WHY THIS FILE EXISTS +# nginx.conf.template (production) and nginx_dev_common.conf.template (dev) +# used to each carry their own copy of these ~25 locations, so every new +# route was two edits and the copies could drift — which matters more than +# usual here, because this table holds the admin auth gates (/sb/, +# /radio/admin/), the /py/internal/ 404 and the /notes privacy denials. A +# route that exists in one copy but not the other is a hole that only shows +# up in the environment you were not testing. +# +# WHO INCLUDES IT +# - nginx.conf.template, inside its :443 www server block. +# - nginx_dev_common.conf.template, which is itself included by BOTH dev +# server blocks — so in dev this file is pulled in twice. That is fine: +# each inclusion lands in a different `server`, and everything below is +# server-scoped. +# +# HOW IT IS RENDERED +# nginx/entrypoint.sh runs the SAME envsubst allow-list over this file as +# over the main templates and writes the result to +# /etc/nginx/nginx_routes.conf, the path the `include` directives name. It +# does so on every boot path, before the main config is chosen. A new +# substituted variable used here must be added to ENVSUBST_VARS in the +# entrypoint, or it reaches nginx unsubstituted. +# +# WHAT BELONGS HERE +# The `set $upstream_*` variables and every reverse-proxied location that +# behaves the same in production and dev, plus the admin-gate subrequest +# they rely on. It must stay brace-balanced on its own (no enclosing +# `server {`). +# +# WHAT DOES NOT, AND WHY +# - add_header, in any location here. nginx's add_header inheritance is +# all-or-nothing: a location with none of its own inherits the including +# server block's set. Production's server block includes +# security_headers.conf (HSTS etc.) and dev's deliberately does not, so +# leaving these locations header-free is what lets the same text carry +# security headers in production and none on localhost. Adding a single +# add_header to a location below would silently drop production's +# security headers from it. +# - /uploads/ and /uploads/private/. They need add_header lines of their +# own AND, in production only, security_headers.conf alongside them, so +# for the reason above they cannot be shared. Each template has its copy; +# keep the auth_request pair on /uploads/private/ identical in both. +# - `location /`. Production serves the built SPA from disk, dev proxies to +# the Vite dev server. +# - $BACKEND_ENDPOINT/graphql. Production-only, with its own tighter +# rate-limit zone; in dev GraphQL falls through to $BACKEND_ENDPOINT/ +# below. It lives in nginx.conf.template. +# - Static asset caching, robots.txt, the ACME challenge and TLS: production +# only, in nginx.conf.template. +# +# RATE LIMITS +# The limit_req lines below name the zones `login`, `upload`, `api` and +# `hotel_search`. A zone must be declared with limit_req_zone in the `http` +# block of whichever config includes this file, or nginx refuses to load it +# — so BOTH nginx.conf.template and nginx_dev.conf.template declare all +# four (same rates; the reasoning is annotated in the production one). If +# you use a new zone here, declare it in both. +# +# ORDER +# Prefix locations are matched longest-first, so their order here is +# cosmetic. REGEX locations (`~`, `~*`) are tried in file order and the +# first match wins: keep the two /notes deny regexes ahead of the +# /py/hotels one, and remember production's ACME regex location is declared +# before this file is included. +# ============================================================================= + set $upstream_backend http://$BACKEND_HOST:$BACKEND_PORT; + set $upstream_icecast http://$ICECAST_HOST:$ICECAST_PORT; + set $upstream_gitea http://$GITEA_HOST:$GITEA_PORT; + set $upstream_silverbullet http://$SILVERBULLET_HOST:$SILVERBULLET_PORT; + set $upstream_silverbullet_public http://$SILVERBULLET_PUBLIC_HOST:$SILVERBULLET_PUBLIC_PORT; + set $upstream_python http://$PYTHON_HOST:$PYTHON_PORT; + + # ---- Backend API ----------------------------------------------------- + # Two patterns repeat through every proxied location below: + # + # 1. THE PREFIX-STRIP REWRITE + # rewrite ^/(.*)$ /$1 break; + # The public URL carries a prefix (/api, /radio, /gitea, /py) but the upstream service serves its routes from /. The + # rewrite strips the prefix and `break` stops rewrite processing so + # the request stays in this location and goes to proxy_pass with the + # rewritten URI. (This is why proxy_pass here has no trailing path — + # with a variable upstream, nginx would not do the strip for us.) + # The bare `location ` blocks that 301 to `/` exist + # only so a user typing /gitea without the slash lands correctly. + # + # 2. THE FOUR FORWARDING HEADERS + # Host preserve the browser's hostname so the app + # builds correct absolute URLs and cookies. + # X-Real-IP the true client IP (the upstream otherwise + # sees only nginx's container IP). + # X-Forwarded-For appends the client to any existing chain. + # X-Forwarded-Proto tells the app the ORIGINAL request was + # https even though this hop is plain http. + # Without it the backend would issue + # non-Secure cookies and http:// redirects, + # breaking auth behind TLS termination. + # + # Ordering matters: nginx picks the longest matching prefix location, + # so the specific /ws, /auth/login and /messages/upload blocks (and + # production's /graphql block in nginx.conf.template) win over the + # catch-all / block regardless of file order. + location $BACKEND_ENDPOINT { + return 301 $BACKEND_ENDPOINT/; + } + + # WebSocket endpoint (live chat / activity feed). + # The three lines that make an upgrade work, and why each is needed: + # proxy_http_version 1.1 - HTTP/1.0 has no Upgrade mechanism at all. + # Upgrade $http_upgrade - hop-by-hop headers are NOT forwarded by + # Connection "upgrade" default, so they must be re-set by hand. + # Note the Connection value is hardcoded rather than using the usual + # $connection_upgrade map: this location only ever serves websockets, so + # there is no plain-HTTP case to fall back to. + # Deliberately NOT rate limited — a websocket is one long-lived request + # and a limit_req here would drop reconnect storms, not abuse. + location $BACKEND_ENDPOINT/ws { + rewrite ^$BACKEND_ENDPOINT/(.*)$ /$1 break; + proxy_pass $upstream_backend; + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "upgrade"; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; + } + + location $BACKEND_ENDPOINT/auth/login { + limit_req zone=login burst=3 nodelay; + rewrite ^$BACKEND_ENDPOINT/(.*)$ /$1 break; + proxy_pass $upstream_backend; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; + } + + location $BACKEND_ENDPOINT/messages/upload { + limit_req zone=upload burst=3 nodelay; + rewrite ^$BACKEND_ENDPOINT/(.*)$ /$1 break; + proxy_pass $upstream_backend; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; + } + + # Catch-all for the REST API. In production GraphQL does NOT land here: + # nginx.conf.template declares a longer $BACKEND_ENDPOINT/graphql + # location with a tighter zone. In dev it does. + location $BACKEND_ENDPOINT/ { + limit_req zone=api burst=20 nodelay; + rewrite ^$BACKEND_ENDPOINT/(.*)$ /$1 break; + proxy_pass $upstream_backend; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; + } + + location /radio { + return 301 /radio/; + } + + # The icecast ADMIN UI (/radio/admin/*) is a full station-control + # surface — kick sources, change metadata — protected only by the + # icecast admin password, and it was reachable from the public + # internet through this proxy. Put it behind the same admin + # `auth_request` as /sb/ so an admin session cookie is + # required before the request ever reaches icecast. Longest-prefix + # matching means this wins over /radio/ below; listener traffic + # (/radio/$ICECAST_MOUNT, /radio/status.xsl) is untouched. + location /radio/admin/ { + auth_request /internal/auth/admin-validate; + error_page 401 403 = @auth_denied; + rewrite ^/radio/(.*)$ /$1 break; + proxy_pass $upstream_icecast; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; + } + + location /radio/ { + rewrite ^/radio/(.*)$ /$1 break; + proxy_pass $upstream_icecast; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; + } + + location /gitea { + return 301 /gitea/; + } + + location /gitea/ { + rewrite ^/gitea/(.*)$ /$1 break; + proxy_pass $upstream_gitea; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; + } + + location /notes { + return 301 /notes/; + } + + # PUBLIC notes viewer: a second, read-only SilverBullet over the same + # vault the /sb/ editor edits. No auth_request — this is the public + # site. See the silverbullet-public service in docker-compose.yml. + # + # THE DENY BLOCKS BELOW ARE THE PRIVACY BOUNDARY, not decoration. + # SB_SPACE_IGNORE only hides paths from the file LIST. Everything else + # happily serves them (all verified against 2.11.0 with curl): + # /notes/.fs/private/x.md raw file, straight off disk + # /notes/private/x the page URL: the server pre-renders the + # note's content into the HTML shell + # /notes/.fs/.git/... the vault's whole git repo, i.e. every + # version of every private note ever + # and gitignore semantics mean `private/` in SB_SPACE_IGNORE hides a + # private/ folder at ANY depth from the list, so the block must too. + # + # 1. private/ or templates/ as any path segment, page URL or /.fs/. + # ~* so Private/ is caught; (/|$) so the folder itself matches. + # 2. Any dot-segment below the first: .git, .obsidian, .env, ... The + # first segment is exempt because that is where SilverBullet's own + # endpoints live (/.fs, /.config, /.client, /.events ...). Nothing + # the client legitimately loads has a dot-segment deeper than that. + # nginx matches against the normalised URI (percent-decoded, `..` + # resolved, slashes merged), so %2F, // or ../ tricks cannot slip past. + # Keep the folder list in step with SB_SPACE_IGNORE on + # silverbullet-public. 404 rather than 403 so the response does not + # confirm a private path exists. + location ~* ^/notes/(.*/)?(private|templates)(/|$) { + return 404; + } + + location ~ ^/notes/.+/\. { + return 404; + } + + # Revisions are read from the vault's own .git, i.e. the full history + # of every file INCLUDING private/ and anything ever deleted. + # SB_REVISIONS=disabled already turns this off upstream; this is the + # second lock in case that env var is ever dropped. ^~ so no regex + # location can take precedence. + location ^~ /notes/.revisions { + return 404; + } + + # Same as /sb/: deliberately NO prefix-strip rewrite. The app is told + # its base path via SB_URL_PREFIX=/notes and builds its service worker + # scope and asset URLs from it; strip the prefix and it loads blank. + # Upgrade/Connection are for its live-update event stream. + location /notes/ { + proxy_pass $upstream_silverbullet_public; + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "upgrade"; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; + } + + location /sb { + return 301 /sb/; + } + + # SilverBullet: the admin-only EDITOR for the vault /notes/ publishes. + # Deliberately NO prefix-strip rewrite, unlike every other proxied app + # here. SilverBullet is a PWA told its own base path via SB_URL_PREFIX=/sb, + # and its service worker scope and asset URLs are built from that. Strip + # the prefix and the app loads a blank page with no error in the log. + # Upgrade/Connection are for its sync websocket. + location /sb/ { + auth_request /internal/auth/admin-validate; + error_page 401 403 = @auth_denied; + proxy_pass $upstream_silverbullet; + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "upgrade"; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; + } + + location /py { + return 301 /py/; + } + + # /py/hotels/search[/stream] and /py/hotels/scan/stream: long-running NDJSON streams + location ~ ^/py/hotels/(search|scan) { + # Public, up-to-a-minute upstream call with a single search slot: keep it to a few per minute per IP + limit_req zone=hotel_search burst=2 nodelay; + proxy_read_timeout 300s; + proxy_send_timeout 300s; + # The stream variant sends NDJSON progress lines; pass them through as they arrive + proxy_buffering off; + proxy_cache off; + gzip off; + rewrite ^/py/(.*)$ /$1 break; + proxy_pass $upstream_python; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; + } + + # /py/internal/: routes the Go backend calls directly over app-network + # (the rowing photo reader and the job posting reader, which spend a + # paid Claude call and have no auth of their own). Never proxied. ^~ so no regex location can claim + # the path first. The Python side also refuses anything carrying the + # X-Real-IP / X-Forwarded-For headers set below, as a second layer. + location ^~ /py/internal/ { + return 404; + } + + location /py/ { + limit_req zone=api burst=20 nodelay; + # Hotel search blocks for up to a few minutes while it calls Travelodge and TfL + proxy_read_timeout 300s; + proxy_send_timeout 300s; + rewrite ^/py/(.*)$ /$1 break; + proxy_pass $upstream_python; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; + } + + # ---- Admin gate (/sb/, /radio/admin/, /uploads/private/) ---- + # (/uploads/private/ is declared in the including template, not here; + # it points at the two locations below by name.) + # `auth_request` makes nginx fire a subrequest here before serving the + # real one; a 2xx lets it through, 401/403 triggers error_page -> + # @auth_denied -> redirect to the SPA login. This puts the Go backend's + # session cookie in front of services that have no idea it exists. + # internal; - unreachable from outside, subrequest only. + # proxy_pass_request_body off + Content-Length "" + # - the subrequest must not replay the + # original body (it could be a 50MB + # upload); clearing Content-Length stops + # the backend waiting for a body that is + # not coming. + # Cookie $http_cookie - the whole point: forward the session + # cookie so the backend can validate it. + location = /internal/auth/admin-validate { + internal; + rewrite ^ /auth/validate-admin break; + proxy_pass $upstream_backend; + proxy_pass_request_body off; + proxy_set_header Content-Length ""; + proxy_set_header Cookie $http_cookie; + } + + location @auth_denied { + return 302 /admin/login?redirect=$request_uri; + } diff --git a/package-lock.json b/package-lock.json deleted file mode 100644 index 3ecb36b..0000000 --- a/package-lock.json +++ /dev/null @@ -1,1308 +0,0 @@ -{ - "name": "web_server", - "lockfileVersion": 3, - "requires": true, - "packages": { - "": { - "dependencies": { - "@vueuse/core": "^14.2.0", - "vite": "^7.3.1" - } - }, - "node_modules/@babel/helper-string-parser": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.27.1.tgz", - "integrity": "sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==", - "license": "MIT", - "peer": true, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-validator-identifier": { - "version": "7.28.5", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.28.5.tgz", - "integrity": "sha512-qSs4ifwzKJSV39ucNjsvc6WVHs6b7S03sOh2OcHF9UHfVPqWWALUsNUVzhSBiItjRZoLHx7nIarVjqKVusUZ1Q==", - "license": "MIT", - "peer": true, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/parser": { - "version": "7.29.0", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.0.tgz", - "integrity": "sha512-IyDgFV5GeDUVX4YdF/3CPULtVGSXXMLh1xVIgdCgxApktqnQV0r7/8Nqthg+8YLGaAtdyIlo2qIdZrbCv4+7ww==", - "license": "MIT", - "peer": true, - "dependencies": { - "@babel/types": "^7.29.0" - }, - "bin": { - "parser": "bin/babel-parser.js" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@babel/types": { - "version": "7.29.0", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.0.tgz", - "integrity": "sha512-LwdZHpScM4Qz8Xw2iKSzS+cfglZzJGvofQICy7W7v4caru4EaAmyUuO6BGrbyQ2mYV11W0U8j5mBhd14dd3B0A==", - "license": "MIT", - "peer": true, - "dependencies": { - "@babel/helper-string-parser": "^7.27.1", - "@babel/helper-validator-identifier": "^7.28.5" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@esbuild/aix-ppc64": { - "version": "0.27.3", - "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.27.3.tgz", - "integrity": "sha512-9fJMTNFTWZMh5qwrBItuziu834eOCUcEqymSH7pY+zoMVEZg3gcPuBNxH1EvfVYe9h0x/Ptw8KBzv7qxb7l8dg==", - "cpu": [ - "ppc64" - ], - "license": "MIT", - "optional": true, - "os": [ - "aix" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/android-arm": { - "version": "0.27.3", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.27.3.tgz", - "integrity": "sha512-i5D1hPY7GIQmXlXhs2w8AWHhenb00+GxjxRncS2ZM7YNVGNfaMxgzSGuO8o8SJzRc/oZwU2bcScvVERk03QhzA==", - "cpu": [ - "arm" - ], - "license": "MIT", - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/android-arm64": { - "version": "0.27.3", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.27.3.tgz", - "integrity": "sha512-YdghPYUmj/FX2SYKJ0OZxf+iaKgMsKHVPF1MAq/P8WirnSpCStzKJFjOjzsW0QQ7oIAiccHdcqjbHmJxRb/dmg==", - "cpu": [ - "arm64" - ], - "license": "MIT", - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/android-x64": { - "version": "0.27.3", - "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.27.3.tgz", - "integrity": "sha512-IN/0BNTkHtk8lkOM8JWAYFg4ORxBkZQf9zXiEOfERX/CzxW3Vg1ewAhU7QSWQpVIzTW+b8Xy+lGzdYXV6UZObQ==", - "cpu": [ - "x64" - ], - "license": "MIT", - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/darwin-arm64": { - "version": "0.27.3", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.27.3.tgz", - "integrity": "sha512-Re491k7ByTVRy0t3EKWajdLIr0gz2kKKfzafkth4Q8A5n1xTHrkqZgLLjFEHVD+AXdUGgQMq+Godfq45mGpCKg==", - "cpu": [ - "arm64" - ], - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/darwin-x64": { - "version": "0.27.3", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.27.3.tgz", - "integrity": "sha512-vHk/hA7/1AckjGzRqi6wbo+jaShzRowYip6rt6q7VYEDX4LEy1pZfDpdxCBnGtl+A5zq8iXDcyuxwtv3hNtHFg==", - "cpu": [ - "x64" - ], - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/freebsd-arm64": { - "version": "0.27.3", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.27.3.tgz", - "integrity": "sha512-ipTYM2fjt3kQAYOvo6vcxJx3nBYAzPjgTCk7QEgZG8AUO3ydUhvelmhrbOheMnGOlaSFUoHXB6un+A7q4ygY9w==", - "cpu": [ - "arm64" - ], - "license": "MIT", - "optional": true, - "os": [ - "freebsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/freebsd-x64": { - "version": "0.27.3", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.27.3.tgz", - "integrity": "sha512-dDk0X87T7mI6U3K9VjWtHOXqwAMJBNN2r7bejDsc+j03SEjtD9HrOl8gVFByeM0aJksoUuUVU9TBaZa2rgj0oA==", - "cpu": [ - "x64" - ], - "license": "MIT", - "optional": true, - "os": [ - "freebsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-arm": { - "version": "0.27.3", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.27.3.tgz", - "integrity": "sha512-s6nPv2QkSupJwLYyfS+gwdirm0ukyTFNl3KTgZEAiJDd+iHZcbTPPcWCcRYH+WlNbwChgH2QkE9NSlNrMT8Gfw==", - "cpu": [ - "arm" - ], - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-arm64": { - "version": "0.27.3", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.27.3.tgz", - "integrity": "sha512-sZOuFz/xWnZ4KH3YfFrKCf1WyPZHakVzTiqji3WDc0BCl2kBwiJLCXpzLzUBLgmp4veFZdvN5ChW4Eq/8Fc2Fg==", - "cpu": [ - "arm64" - ], - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-ia32": { - "version": "0.27.3", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.27.3.tgz", - "integrity": "sha512-yGlQYjdxtLdh0a3jHjuwOrxQjOZYD/C9PfdbgJJF3TIZWnm/tMd/RcNiLngiu4iwcBAOezdnSLAwQDPqTmtTYg==", - "cpu": [ - "ia32" - ], - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-loong64": { - "version": "0.27.3", - "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.27.3.tgz", - "integrity": "sha512-WO60Sn8ly3gtzhyjATDgieJNet/KqsDlX5nRC5Y3oTFcS1l0KWba+SEa9Ja1GfDqSF1z6hif/SkpQJbL63cgOA==", - "cpu": [ - "loong64" - ], - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-mips64el": { - "version": "0.27.3", - "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.27.3.tgz", - "integrity": "sha512-APsymYA6sGcZ4pD6k+UxbDjOFSvPWyZhjaiPyl/f79xKxwTnrn5QUnXR5prvetuaSMsb4jgeHewIDCIWljrSxw==", - "cpu": [ - "mips64el" - ], - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-ppc64": { - "version": "0.27.3", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.27.3.tgz", - "integrity": "sha512-eizBnTeBefojtDb9nSh4vvVQ3V9Qf9Df01PfawPcRzJH4gFSgrObw+LveUyDoKU3kxi5+9RJTCWlj4FjYXVPEA==", - "cpu": [ - "ppc64" - ], - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-riscv64": { - "version": "0.27.3", - "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.27.3.tgz", - "integrity": "sha512-3Emwh0r5wmfm3ssTWRQSyVhbOHvqegUDRd0WhmXKX2mkHJe1SFCMJhagUleMq+Uci34wLSipf8Lagt4LlpRFWQ==", - "cpu": [ - "riscv64" - ], - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-s390x": { - "version": "0.27.3", - "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.27.3.tgz", - "integrity": "sha512-pBHUx9LzXWBc7MFIEEL0yD/ZVtNgLytvx60gES28GcWMqil8ElCYR4kvbV2BDqsHOvVDRrOxGySBM9Fcv744hw==", - "cpu": [ - "s390x" - ], - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-x64": { - "version": "0.27.3", - "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.27.3.tgz", - "integrity": "sha512-Czi8yzXUWIQYAtL/2y6vogER8pvcsOsk5cpwL4Gk5nJqH5UZiVByIY8Eorm5R13gq+DQKYg0+JyQoytLQas4dA==", - "cpu": [ - "x64" - ], - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/netbsd-arm64": { - "version": "0.27.3", - "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.27.3.tgz", - "integrity": "sha512-sDpk0RgmTCR/5HguIZa9n9u+HVKf40fbEUt+iTzSnCaGvY9kFP0YKBWZtJaraonFnqef5SlJ8/TiPAxzyS+UoA==", - "cpu": [ - "arm64" - ], - "license": "MIT", - "optional": true, - "os": [ - "netbsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/netbsd-x64": { - "version": "0.27.3", - "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.27.3.tgz", - "integrity": "sha512-P14lFKJl/DdaE00LItAukUdZO5iqNH7+PjoBm+fLQjtxfcfFE20Xf5CrLsmZdq5LFFZzb5JMZ9grUwvtVYzjiA==", - "cpu": [ - "x64" - ], - "license": "MIT", - "optional": true, - "os": [ - "netbsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/openbsd-arm64": { - "version": "0.27.3", - "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.27.3.tgz", - "integrity": "sha512-AIcMP77AvirGbRl/UZFTq5hjXK+2wC7qFRGoHSDrZ5v5b8DK/GYpXW3CPRL53NkvDqb9D+alBiC/dV0Fb7eJcw==", - "cpu": [ - "arm64" - ], - "license": "MIT", - "optional": true, - "os": [ - "openbsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/openbsd-x64": { - "version": "0.27.3", - "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.27.3.tgz", - "integrity": "sha512-DnW2sRrBzA+YnE70LKqnM3P+z8vehfJWHXECbwBmH/CU51z6FiqTQTHFenPlHmo3a8UgpLyH3PT+87OViOh1AQ==", - "cpu": [ - "x64" - ], - "license": "MIT", - "optional": true, - "os": [ - "openbsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/openharmony-arm64": { - "version": "0.27.3", - "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.27.3.tgz", - "integrity": "sha512-NinAEgr/etERPTsZJ7aEZQvvg/A6IsZG/LgZy+81wON2huV7SrK3e63dU0XhyZP4RKGyTm7aOgmQk0bGp0fy2g==", - "cpu": [ - "arm64" - ], - "license": "MIT", - "optional": true, - "os": [ - "openharmony" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/sunos-x64": { - "version": "0.27.3", - "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.27.3.tgz", - "integrity": "sha512-PanZ+nEz+eWoBJ8/f8HKxTTD172SKwdXebZ0ndd953gt1HRBbhMsaNqjTyYLGLPdoWHy4zLU7bDVJztF5f3BHA==", - "cpu": [ - "x64" - ], - "license": "MIT", - "optional": true, - "os": [ - "sunos" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/win32-arm64": { - "version": "0.27.3", - "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.27.3.tgz", - "integrity": "sha512-B2t59lWWYrbRDw/tjiWOuzSsFh1Y/E95ofKz7rIVYSQkUYBjfSgf6oeYPNWHToFRr2zx52JKApIcAS/D5TUBnA==", - "cpu": [ - "arm64" - ], - "license": "MIT", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/win32-ia32": { - "version": "0.27.3", - "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.27.3.tgz", - "integrity": "sha512-QLKSFeXNS8+tHW7tZpMtjlNb7HKau0QDpwm49u0vUp9y1WOF+PEzkU84y9GqYaAVW8aH8f3GcBck26jh54cX4Q==", - "cpu": [ - "ia32" - ], - "license": "MIT", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/win32-x64": { - "version": "0.27.3", - "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.27.3.tgz", - "integrity": "sha512-4uJGhsxuptu3OcpVAzli+/gWusVGwZZHTlS63hh++ehExkVT8SgiEf7/uC/PclrPPkLhZqGgCTjd0VWLo6xMqA==", - "cpu": [ - "x64" - ], - "license": "MIT", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@jridgewell/sourcemap-codec": { - "version": "1.5.5", - "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz", - "integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==", - "license": "MIT", - "peer": true - }, - "node_modules/@rollup/rollup-android-arm-eabi": { - "version": "4.57.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.57.1.tgz", - "integrity": "sha512-A6ehUVSiSaaliTxai040ZpZ2zTevHYbvu/lDoeAteHI8QnaosIzm4qwtezfRg1jOYaUmnzLX1AOD6Z+UJjtifg==", - "cpu": [ - "arm" - ], - "license": "MIT", - "optional": true, - "os": [ - "android" - ] - }, - "node_modules/@rollup/rollup-android-arm64": { - "version": "4.57.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.57.1.tgz", - "integrity": "sha512-dQaAddCY9YgkFHZcFNS/606Exo8vcLHwArFZ7vxXq4rigo2bb494/xKMMwRRQW6ug7Js6yXmBZhSBRuBvCCQ3w==", - "cpu": [ - "arm64" - ], - "license": "MIT", - "optional": true, - "os": [ - "android" - ] - }, - "node_modules/@rollup/rollup-darwin-arm64": { - "version": "4.57.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.57.1.tgz", - "integrity": "sha512-crNPrwJOrRxagUYeMn/DZwqN88SDmwaJ8Cvi/TN1HnWBU7GwknckyosC2gd0IqYRsHDEnXf328o9/HC6OkPgOg==", - "cpu": [ - "arm64" - ], - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ] - }, - "node_modules/@rollup/rollup-darwin-x64": { - "version": "4.57.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.57.1.tgz", - "integrity": "sha512-Ji8g8ChVbKrhFtig5QBV7iMaJrGtpHelkB3lsaKzadFBe58gmjfGXAOfI5FV0lYMH8wiqsxKQ1C9B0YTRXVy4w==", - "cpu": [ - "x64" - ], - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ] - }, - "node_modules/@rollup/rollup-freebsd-arm64": { - "version": "4.57.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.57.1.tgz", - "integrity": "sha512-R+/WwhsjmwodAcz65guCGFRkMb4gKWTcIeLy60JJQbXrJ97BOXHxnkPFrP+YwFlaS0m+uWJTstrUA9o+UchFug==", - "cpu": [ - "arm64" - ], - "license": "MIT", - "optional": true, - "os": [ - "freebsd" - ] - }, - "node_modules/@rollup/rollup-freebsd-x64": { - "version": "4.57.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.57.1.tgz", - "integrity": "sha512-IEQTCHeiTOnAUC3IDQdzRAGj3jOAYNr9kBguI7MQAAZK3caezRrg0GxAb6Hchg4lxdZEI5Oq3iov/w/hnFWY9Q==", - "cpu": [ - "x64" - ], - "license": "MIT", - "optional": true, - "os": [ - "freebsd" - ] - }, - "node_modules/@rollup/rollup-linux-arm-gnueabihf": { - "version": "4.57.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.57.1.tgz", - "integrity": "sha512-F8sWbhZ7tyuEfsmOxwc2giKDQzN3+kuBLPwwZGyVkLlKGdV1nvnNwYD0fKQ8+XS6hp9nY7B+ZeK01EBUE7aHaw==", - "cpu": [ - "arm" - ], - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-arm-musleabihf": { - "version": "4.57.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.57.1.tgz", - "integrity": "sha512-rGfNUfn0GIeXtBP1wL5MnzSj98+PZe/AXaGBCRmT0ts80lU5CATYGxXukeTX39XBKsxzFpEeK+Mrp9faXOlmrw==", - "cpu": [ - "arm" - ], - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-arm64-gnu": { - "version": "4.57.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.57.1.tgz", - "integrity": "sha512-MMtej3YHWeg/0klK2Qodf3yrNzz6CGjo2UntLvk2RSPlhzgLvYEB3frRvbEF2wRKh1Z2fDIg9KRPe1fawv7C+g==", - "cpu": [ - "arm64" - ], - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-arm64-musl": { - "version": "4.57.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.57.1.tgz", - "integrity": "sha512-1a/qhaaOXhqXGpMFMET9VqwZakkljWHLmZOX48R0I/YLbhdxr1m4gtG1Hq7++VhVUmf+L3sTAf9op4JlhQ5u1Q==", - "cpu": [ - "arm64" - ], - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-loong64-gnu": { - "version": "4.57.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.57.1.tgz", - "integrity": "sha512-QWO6RQTZ/cqYtJMtxhkRkidoNGXc7ERPbZN7dVW5SdURuLeVU7lwKMpo18XdcmpWYd0qsP1bwKPf7DNSUinhvA==", - "cpu": [ - "loong64" - ], - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-loong64-musl": { - "version": "4.57.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-musl/-/rollup-linux-loong64-musl-4.57.1.tgz", - "integrity": "sha512-xpObYIf+8gprgWaPP32xiN5RVTi/s5FCR+XMXSKmhfoJjrpRAjCuuqQXyxUa/eJTdAE6eJ+KDKaoEqjZQxh3Gw==", - "cpu": [ - "loong64" - ], - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-ppc64-gnu": { - "version": "4.57.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.57.1.tgz", - "integrity": "sha512-4BrCgrpZo4hvzMDKRqEaW1zeecScDCR+2nZ86ATLhAoJ5FQ+lbHVD3ttKe74/c7tNT9c6F2viwB3ufwp01Oh2w==", - "cpu": [ - "ppc64" - ], - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-ppc64-musl": { - "version": "4.57.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-musl/-/rollup-linux-ppc64-musl-4.57.1.tgz", - "integrity": "sha512-NOlUuzesGauESAyEYFSe3QTUguL+lvrN1HtwEEsU2rOwdUDeTMJdO5dUYl/2hKf9jWydJrO9OL/XSSf65R5+Xw==", - "cpu": [ - "ppc64" - ], - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-riscv64-gnu": { - "version": "4.57.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.57.1.tgz", - "integrity": "sha512-ptA88htVp0AwUUqhVghwDIKlvJMD/fmL/wrQj99PRHFRAG6Z5nbWoWG4o81Nt9FT+IuqUQi+L31ZKAFeJ5Is+A==", - "cpu": [ - "riscv64" - ], - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-riscv64-musl": { - "version": "4.57.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.57.1.tgz", - "integrity": "sha512-S51t7aMMTNdmAMPpBg7OOsTdn4tySRQvklmL3RpDRyknk87+Sp3xaumlatU+ppQ+5raY7sSTcC2beGgvhENfuw==", - "cpu": [ - "riscv64" - ], - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-s390x-gnu": { - "version": "4.57.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.57.1.tgz", - "integrity": "sha512-Bl00OFnVFkL82FHbEqy3k5CUCKH6OEJL54KCyx2oqsmZnFTR8IoNqBF+mjQVcRCT5sB6yOvK8A37LNm/kPJiZg==", - "cpu": [ - "s390x" - ], - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-x64-gnu": { - "version": "4.57.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.57.1.tgz", - "integrity": "sha512-ABca4ceT4N+Tv/GtotnWAeXZUZuM/9AQyCyKYyKnpk4yoA7QIAuBt6Hkgpw8kActYlew2mvckXkvx0FfoInnLg==", - "cpu": [ - "x64" - ], - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-x64-musl": { - "version": "4.57.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.57.1.tgz", - "integrity": "sha512-HFps0JeGtuOR2convgRRkHCekD7j+gdAuXM+/i6kGzQtFhlCtQkpwtNzkNj6QhCDp7DRJ7+qC/1Vg2jt5iSOFw==", - "cpu": [ - "x64" - ], - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-openbsd-x64": { - "version": "4.57.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-openbsd-x64/-/rollup-openbsd-x64-4.57.1.tgz", - "integrity": "sha512-H+hXEv9gdVQuDTgnqD+SQffoWoc0Of59AStSzTEj/feWTBAnSfSD3+Dql1ZruJQxmykT/JVY0dE8Ka7z0DH1hw==", - "cpu": [ - "x64" - ], - "license": "MIT", - "optional": true, - "os": [ - "openbsd" - ] - }, - "node_modules/@rollup/rollup-openharmony-arm64": { - "version": "4.57.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.57.1.tgz", - "integrity": "sha512-4wYoDpNg6o/oPximyc/NG+mYUejZrCU2q+2w6YZqrAs2UcNUChIZXjtafAiiZSUc7On8v5NyNj34Kzj/Ltk6dQ==", - "cpu": [ - "arm64" - ], - "license": "MIT", - "optional": true, - "os": [ - "openharmony" - ] - }, - "node_modules/@rollup/rollup-win32-arm64-msvc": { - "version": "4.57.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.57.1.tgz", - "integrity": "sha512-O54mtsV/6LW3P8qdTcamQmuC990HDfR71lo44oZMZlXU4tzLrbvTii87Ni9opq60ds0YzuAlEr/GNwuNluZyMQ==", - "cpu": [ - "arm64" - ], - "license": "MIT", - "optional": true, - "os": [ - "win32" - ] - }, - "node_modules/@rollup/rollup-win32-ia32-msvc": { - "version": "4.57.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.57.1.tgz", - "integrity": "sha512-P3dLS+IerxCT/7D2q2FYcRdWRl22dNbrbBEtxdWhXrfIMPP9lQhb5h4Du04mdl5Woq05jVCDPCMF7Ub0NAjIew==", - "cpu": [ - "ia32" - ], - "license": "MIT", - "optional": true, - "os": [ - "win32" - ] - }, - "node_modules/@rollup/rollup-win32-x64-gnu": { - "version": "4.57.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-gnu/-/rollup-win32-x64-gnu-4.57.1.tgz", - "integrity": "sha512-VMBH2eOOaKGtIJYleXsi2B8CPVADrh+TyNxJ4mWPnKfLB/DBUmzW+5m1xUrcwWoMfSLagIRpjUFeW5CO5hyciQ==", - "cpu": [ - "x64" - ], - "license": "MIT", - "optional": true, - "os": [ - "win32" - ] - }, - "node_modules/@rollup/rollup-win32-x64-msvc": { - "version": "4.57.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.57.1.tgz", - "integrity": "sha512-mxRFDdHIWRxg3UfIIAwCm6NzvxG0jDX/wBN6KsQFTvKFqqg9vTrWUE68qEjHt19A5wwx5X5aUi2zuZT7YR0jrA==", - "cpu": [ - "x64" - ], - "license": "MIT", - "optional": true, - "os": [ - "win32" - ] - }, - "node_modules/@types/estree": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.8.tgz", - "integrity": "sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==", - "license": "MIT" - }, - "node_modules/@types/web-bluetooth": { - "version": "0.0.21", - "resolved": "https://registry.npmjs.org/@types/web-bluetooth/-/web-bluetooth-0.0.21.tgz", - "integrity": "sha512-oIQLCGWtcFZy2JW77j9k8nHzAOpqMHLQejDA48XXMWH6tjCQHz5RCFz1bzsmROyL6PUm+LLnUiI4BCn221inxA==", - "license": "MIT" - }, - "node_modules/@vue/compiler-core": { - "version": "3.5.28", - "resolved": "https://registry.npmjs.org/@vue/compiler-core/-/compiler-core-3.5.28.tgz", - "integrity": "sha512-kviccYxTgoE8n6OCw96BNdYlBg2GOWfBuOW4Vqwrt7mSKWKwFVvI8egdTltqRgITGPsTFYtKYfxIG8ptX2PJHQ==", - "license": "MIT", - "peer": true, - "dependencies": { - "@babel/parser": "^7.29.0", - "@vue/shared": "3.5.28", - "entities": "^7.0.1", - "estree-walker": "^2.0.2", - "source-map-js": "^1.2.1" - } - }, - "node_modules/@vue/compiler-dom": { - "version": "3.5.28", - "resolved": "https://registry.npmjs.org/@vue/compiler-dom/-/compiler-dom-3.5.28.tgz", - "integrity": "sha512-/1ZepxAb159jKR1btkefDP+J2xuWL5V3WtleRmxaT+K2Aqiek/Ab/+Ebrw2pPj0sdHO8ViAyyJWfhXXOP/+LQA==", - "license": "MIT", - "peer": true, - "dependencies": { - "@vue/compiler-core": "3.5.28", - "@vue/shared": "3.5.28" - } - }, - "node_modules/@vue/compiler-sfc": { - "version": "3.5.28", - "resolved": "https://registry.npmjs.org/@vue/compiler-sfc/-/compiler-sfc-3.5.28.tgz", - "integrity": "sha512-6TnKMiNkd6u6VeVDhZn/07KhEZuBSn43Wd2No5zaP5s3xm8IqFTHBj84HJah4UepSUJTro5SoqqlOY22FKY96g==", - "license": "MIT", - "peer": true, - "dependencies": { - "@babel/parser": "^7.29.0", - "@vue/compiler-core": "3.5.28", - "@vue/compiler-dom": "3.5.28", - "@vue/compiler-ssr": "3.5.28", - "@vue/shared": "3.5.28", - "estree-walker": "^2.0.2", - "magic-string": "^0.30.21", - "postcss": "^8.5.6", - "source-map-js": "^1.2.1" - } - }, - "node_modules/@vue/compiler-ssr": { - "version": "3.5.28", - "resolved": "https://registry.npmjs.org/@vue/compiler-ssr/-/compiler-ssr-3.5.28.tgz", - "integrity": "sha512-JCq//9w1qmC6UGLWJX7RXzrGpKkroubey/ZFqTpvEIDJEKGgntuDMqkuWiZvzTzTA5h2qZvFBFHY7fAAa9475g==", - "license": "MIT", - "peer": true, - "dependencies": { - "@vue/compiler-dom": "3.5.28", - "@vue/shared": "3.5.28" - } - }, - "node_modules/@vue/reactivity": { - "version": "3.5.28", - "resolved": "https://registry.npmjs.org/@vue/reactivity/-/reactivity-3.5.28.tgz", - "integrity": "sha512-gr5hEsxvn+RNyu9/9o1WtdYdwDjg5FgjUSBEkZWqgTKlo/fvwZ2+8W6AfKsc9YN2k/+iHYdS9vZYAhpi10kNaw==", - "license": "MIT", - "peer": true, - "dependencies": { - "@vue/shared": "3.5.28" - } - }, - "node_modules/@vue/runtime-core": { - "version": "3.5.28", - "resolved": "https://registry.npmjs.org/@vue/runtime-core/-/runtime-core-3.5.28.tgz", - "integrity": "sha512-POVHTdbgnrBBIpnbYU4y7pOMNlPn2QVxVzkvEA2pEgvzbelQq4ZOUxbp2oiyo+BOtiYlm8Q44wShHJoBvDPAjQ==", - "license": "MIT", - "peer": true, - "dependencies": { - "@vue/reactivity": "3.5.28", - "@vue/shared": "3.5.28" - } - }, - "node_modules/@vue/runtime-dom": { - "version": "3.5.28", - "resolved": "https://registry.npmjs.org/@vue/runtime-dom/-/runtime-dom-3.5.28.tgz", - "integrity": "sha512-4SXxSF8SXYMuhAIkT+eBRqOkWEfPu6nhccrzrkioA6l0boiq7sp18HCOov9qWJA5HML61kW8p/cB4MmBiG9dSA==", - "license": "MIT", - "peer": true, - "dependencies": { - "@vue/reactivity": "3.5.28", - "@vue/runtime-core": "3.5.28", - "@vue/shared": "3.5.28", - "csstype": "^3.2.3" - } - }, - "node_modules/@vue/server-renderer": { - "version": "3.5.28", - "resolved": "https://registry.npmjs.org/@vue/server-renderer/-/server-renderer-3.5.28.tgz", - "integrity": "sha512-pf+5ECKGj8fX95bNincbzJ6yp6nyzuLDhYZCeFxUNp8EBrQpPpQaLX3nNCp49+UbgbPun3CeVE+5CXVV1Xydfg==", - "license": "MIT", - "peer": true, - "dependencies": { - "@vue/compiler-ssr": "3.5.28", - "@vue/shared": "3.5.28" - }, - "peerDependencies": { - "vue": "3.5.28" - } - }, - "node_modules/@vue/shared": { - "version": "3.5.28", - "resolved": "https://registry.npmjs.org/@vue/shared/-/shared-3.5.28.tgz", - "integrity": "sha512-cfWa1fCGBxrvaHRhvV3Is0MgmrbSCxYTXCSCau2I0a1Xw1N1pHAvkWCiXPRAqjvToILvguNyEwjevUqAuBQWvQ==", - "license": "MIT", - "peer": true - }, - "node_modules/@vueuse/core": { - "version": "14.2.0", - "resolved": "https://registry.npmjs.org/@vueuse/core/-/core-14.2.0.tgz", - "integrity": "sha512-tpjzVl7KCQNVd/qcaCE9XbejL38V6KJAEq/tVXj7mDPtl6JtzmUdnXelSS+ULRkkrDgzYVK7EerQJvd2jR794Q==", - "license": "MIT", - "dependencies": { - "@types/web-bluetooth": "^0.0.21", - "@vueuse/metadata": "14.2.0", - "@vueuse/shared": "14.2.0" - }, - "funding": { - "url": "https://github.com/sponsors/antfu" - }, - "peerDependencies": { - "vue": "^3.5.0" - } - }, - "node_modules/@vueuse/metadata": { - "version": "14.2.0", - "resolved": "https://registry.npmjs.org/@vueuse/metadata/-/metadata-14.2.0.tgz", - "integrity": "sha512-i3axTGjU8b13FtyR4Keeama+43iD+BwX9C2TmzBVKqjSHArF03hjkp2SBZ1m72Jk2UtrX0aYCugBq2R1fhkuAQ==", - "license": "MIT", - "funding": { - "url": "https://github.com/sponsors/antfu" - } - }, - "node_modules/@vueuse/shared": { - "version": "14.2.0", - "resolved": "https://registry.npmjs.org/@vueuse/shared/-/shared-14.2.0.tgz", - "integrity": "sha512-Z0bmluZTlAXgUcJ4uAFaML16JcD8V0QG00Db3quR642I99JXIDRa2MI2LGxiLVhcBjVnL1jOzIvT5TT2lqJlkA==", - "license": "MIT", - "funding": { - "url": "https://github.com/sponsors/antfu" - }, - "peerDependencies": { - "vue": "^3.5.0" - } - }, - "node_modules/csstype": { - "version": "3.2.3", - "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.2.3.tgz", - "integrity": "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==", - "license": "MIT", - "peer": true - }, - "node_modules/entities": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/entities/-/entities-7.0.1.tgz", - "integrity": "sha512-TWrgLOFUQTH994YUyl1yT4uyavY5nNB5muff+RtWaqNVCAK408b5ZnnbNAUEWLTCpum9w6arT70i1XdQ4UeOPA==", - "license": "BSD-2-Clause", - "peer": true, - "engines": { - "node": ">=0.12" - }, - "funding": { - "url": "https://github.com/fb55/entities?sponsor=1" - } - }, - "node_modules/esbuild": { - "version": "0.27.3", - "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.27.3.tgz", - "integrity": "sha512-8VwMnyGCONIs6cWue2IdpHxHnAjzxnw2Zr7MkVxB2vjmQ2ivqGFb4LEG3SMnv0Gb2F/G/2yA8zUaiL1gywDCCg==", - "hasInstallScript": true, - "license": "MIT", - "bin": { - "esbuild": "bin/esbuild" - }, - "engines": { - "node": ">=18" - }, - "optionalDependencies": { - "@esbuild/aix-ppc64": "0.27.3", - "@esbuild/android-arm": "0.27.3", - "@esbuild/android-arm64": "0.27.3", - "@esbuild/android-x64": "0.27.3", - "@esbuild/darwin-arm64": "0.27.3", - "@esbuild/darwin-x64": "0.27.3", - "@esbuild/freebsd-arm64": "0.27.3", - "@esbuild/freebsd-x64": "0.27.3", - "@esbuild/linux-arm": "0.27.3", - "@esbuild/linux-arm64": "0.27.3", - "@esbuild/linux-ia32": "0.27.3", - "@esbuild/linux-loong64": "0.27.3", - "@esbuild/linux-mips64el": "0.27.3", - "@esbuild/linux-ppc64": "0.27.3", - "@esbuild/linux-riscv64": "0.27.3", - "@esbuild/linux-s390x": "0.27.3", - "@esbuild/linux-x64": "0.27.3", - "@esbuild/netbsd-arm64": "0.27.3", - "@esbuild/netbsd-x64": "0.27.3", - "@esbuild/openbsd-arm64": "0.27.3", - "@esbuild/openbsd-x64": "0.27.3", - "@esbuild/openharmony-arm64": "0.27.3", - "@esbuild/sunos-x64": "0.27.3", - "@esbuild/win32-arm64": "0.27.3", - "@esbuild/win32-ia32": "0.27.3", - "@esbuild/win32-x64": "0.27.3" - } - }, - "node_modules/estree-walker": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-2.0.2.tgz", - "integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==", - "license": "MIT", - "peer": true - }, - "node_modules/fdir": { - "version": "6.5.0", - "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz", - "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==", - "license": "MIT", - "engines": { - "node": ">=12.0.0" - }, - "peerDependencies": { - "picomatch": "^3 || ^4" - }, - "peerDependenciesMeta": { - "picomatch": { - "optional": true - } - } - }, - "node_modules/fsevents": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", - "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", - "hasInstallScript": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": "^8.16.0 || ^10.6.0 || >=11.0.0" - } - }, - "node_modules/magic-string": { - "version": "0.30.21", - "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.21.tgz", - "integrity": "sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==", - "license": "MIT", - "peer": true, - "dependencies": { - "@jridgewell/sourcemap-codec": "^1.5.5" - } - }, - "node_modules/nanoid": { - "version": "3.3.11", - "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.11.tgz", - "integrity": "sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "license": "MIT", - "bin": { - "nanoid": "bin/nanoid.cjs" - }, - "engines": { - "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" - } - }, - "node_modules/picocolors": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", - "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", - "license": "ISC" - }, - "node_modules/picomatch": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.3.tgz", - "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==", - "license": "MIT", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/jonschlinkert" - } - }, - "node_modules/postcss": { - "version": "8.5.6", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.6.tgz", - "integrity": "sha512-3Ybi1tAuwAP9s0r1UQ2J4n5Y0G05bJkpUIO0/bI9MhwmD70S5aTWbXGBwxHrelT+XM1k6dM0pk+SwNkpTRN7Pg==", - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/postcss/" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/postcss" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "license": "MIT", - "dependencies": { - "nanoid": "^3.3.11", - "picocolors": "^1.1.1", - "source-map-js": "^1.2.1" - }, - "engines": { - "node": "^10 || ^12 || >=14" - } - }, - "node_modules/rollup": { - "version": "4.57.1", - "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.57.1.tgz", - "integrity": "sha512-oQL6lgK3e2QZeQ7gcgIkS2YZPg5slw37hYufJ3edKlfQSGGm8ICoxswK15ntSzF/a8+h7ekRy7k7oWc3BQ7y8A==", - "license": "MIT", - "dependencies": { - "@types/estree": "1.0.8" - }, - "bin": { - "rollup": "dist/bin/rollup" - }, - "engines": { - "node": ">=18.0.0", - "npm": ">=8.0.0" - }, - "optionalDependencies": { - "@rollup/rollup-android-arm-eabi": "4.57.1", - "@rollup/rollup-android-arm64": "4.57.1", - "@rollup/rollup-darwin-arm64": "4.57.1", - "@rollup/rollup-darwin-x64": "4.57.1", - "@rollup/rollup-freebsd-arm64": "4.57.1", - "@rollup/rollup-freebsd-x64": "4.57.1", - "@rollup/rollup-linux-arm-gnueabihf": "4.57.1", - "@rollup/rollup-linux-arm-musleabihf": "4.57.1", - "@rollup/rollup-linux-arm64-gnu": "4.57.1", - "@rollup/rollup-linux-arm64-musl": "4.57.1", - "@rollup/rollup-linux-loong64-gnu": "4.57.1", - "@rollup/rollup-linux-loong64-musl": "4.57.1", - "@rollup/rollup-linux-ppc64-gnu": "4.57.1", - "@rollup/rollup-linux-ppc64-musl": "4.57.1", - "@rollup/rollup-linux-riscv64-gnu": "4.57.1", - "@rollup/rollup-linux-riscv64-musl": "4.57.1", - "@rollup/rollup-linux-s390x-gnu": "4.57.1", - "@rollup/rollup-linux-x64-gnu": "4.57.1", - "@rollup/rollup-linux-x64-musl": "4.57.1", - "@rollup/rollup-openbsd-x64": "4.57.1", - "@rollup/rollup-openharmony-arm64": "4.57.1", - "@rollup/rollup-win32-arm64-msvc": "4.57.1", - "@rollup/rollup-win32-ia32-msvc": "4.57.1", - "@rollup/rollup-win32-x64-gnu": "4.57.1", - "@rollup/rollup-win32-x64-msvc": "4.57.1", - "fsevents": "~2.3.2" - } - }, - "node_modules/source-map-js": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz", - "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==", - "license": "BSD-3-Clause", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/tinyglobby": { - "version": "0.2.15", - "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.15.tgz", - "integrity": "sha512-j2Zq4NyQYG5XMST4cbs02Ak8iJUdxRM0XI5QyxXuZOzKOINmWurp3smXu3y5wDcJrptwpSjgXHzIQxR0omXljQ==", - "license": "MIT", - "dependencies": { - "fdir": "^6.5.0", - "picomatch": "^4.0.3" - }, - "engines": { - "node": ">=12.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/SuperchupuDev" - } - }, - "node_modules/vite": { - "version": "7.3.1", - "resolved": "https://registry.npmjs.org/vite/-/vite-7.3.1.tgz", - "integrity": "sha512-w+N7Hifpc3gRjZ63vYBXA56dvvRlNWRczTdmCBBa+CotUzAPf5b7YMdMR/8CQoeYE5LX3W4wj6RYTgonm1b9DA==", - "license": "MIT", - "dependencies": { - "esbuild": "^0.27.0", - "fdir": "^6.5.0", - "picomatch": "^4.0.3", - "postcss": "^8.5.6", - "rollup": "^4.43.0", - "tinyglobby": "^0.2.15" - }, - "bin": { - "vite": "bin/vite.js" - }, - "engines": { - "node": "^20.19.0 || >=22.12.0" - }, - "funding": { - "url": "https://github.com/vitejs/vite?sponsor=1" - }, - "optionalDependencies": { - "fsevents": "~2.3.3" - }, - "peerDependencies": { - "@types/node": "^20.19.0 || >=22.12.0", - "jiti": ">=1.21.0", - "less": "^4.0.0", - "lightningcss": "^1.21.0", - "sass": "^1.70.0", - "sass-embedded": "^1.70.0", - "stylus": ">=0.54.8", - "sugarss": "^5.0.0", - "terser": "^5.16.0", - "tsx": "^4.8.1", - "yaml": "^2.4.2" - }, - "peerDependenciesMeta": { - "@types/node": { - "optional": true - }, - "jiti": { - "optional": true - }, - "less": { - "optional": true - }, - "lightningcss": { - "optional": true - }, - "sass": { - "optional": true - }, - "sass-embedded": { - "optional": true - }, - "stylus": { - "optional": true - }, - "sugarss": { - "optional": true - }, - "terser": { - "optional": true - }, - "tsx": { - "optional": true - }, - "yaml": { - "optional": true - } - } - }, - "node_modules/vue": { - "version": "3.5.28", - "resolved": "https://registry.npmjs.org/vue/-/vue-3.5.28.tgz", - "integrity": "sha512-BRdrNfeoccSoIZeIhyPBfvWSLFP4q8J3u8Ju8Ug5vu3LdD+yTM13Sg4sKtljxozbnuMu1NB1X5HBHRYUzFocKg==", - "license": "MIT", - "peer": true, - "dependencies": { - "@vue/compiler-dom": "3.5.28", - "@vue/compiler-sfc": "3.5.28", - "@vue/runtime-dom": "3.5.28", - "@vue/server-renderer": "3.5.28", - "@vue/shared": "3.5.28" - }, - "peerDependencies": { - "typescript": "*" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - } - } -} diff --git a/package.json b/package.json deleted file mode 100644 index 91ce4ed..0000000 --- a/package.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "dependencies": { - "@vueuse/core": "^14.2.0", - "vite": "^7.3.1" - } -}