From cddd1fa540fa6936ade7ad0675aacedf06775013 Mon Sep 17 00:00:00 2001 From: krmax44 Date: Mon, 16 Nov 2026 13:16:39 +0100 Subject: [PATCH 01/11] =?UTF-8?q?=F0=9F=94=A7=20use=20proper=20version=20s?= =?UTF-8?q?elector=20for=20pdfjs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 633e862a4..f07f002b4 100644 --- a/package.json +++ b/package.json @@ -67,7 +67,7 @@ "lodash.range": "^3.2.0", "lodash.sortby": "^4.7.0", "lodash.throttle": "^4.1.1", - "pdfjs-dist": "==2.16.105", + "pdfjs-dist": "=2.16.105", "pinia": "^3.0.4", "sortablejs": "^1.15.7", "vue": "^3.5.43", From 8c2247ebdf7be7780d003d239ee3fcedb83264aa Mon Sep 17 00:00:00 2001 From: krmax44 Date: Mon, 16 Nov 2026 13:27:02 +0100 Subject: [PATCH 02/11] =?UTF-8?q?=E2=AC=86=EF=B8=8F=20upgrade=20pnpm?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci.yml | 23 +- .pre-commit-config.yaml | 41 +- .pre-commit-hooks.yaml | 22 ++ package.json | 6 +- pnpm-lock.yaml | 440 +++++++++++++++------- pnpm-workspace.yaml | 4 + pyproject.toml | 2 +- scripts/ensure_consistent_dependencies.py | 60 +++ scripts/relink_frontend.sh | 5 + scripts/unlink_frontend.sh | 14 + uv.lock | 4 +- 11 files changed, 464 insertions(+), 157 deletions(-) create mode 100644 pnpm-workspace.yaml create mode 100755 scripts/ensure_consistent_dependencies.py create mode 100755 scripts/relink_frontend.sh create mode 100755 scripts/unlink_frontend.sh diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a81cead2c..9aa9f1e37 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,14 +11,9 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v6 - - name: Install pnpm - uses: pnpm/action-setup@v5 - - uses: actions/setup-node@v6 + - uses: pnpm/setup@v3 with: - node-version: 24 - cache: pnpm - - name: Install dependencies - run: pnpm install + cache: true - uses: j178/prek-action@v1 env: SKIP: makemessages-de @@ -27,27 +22,23 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.12", "3.13", "3.14"] + python-version: ['3.12', '3.13', '3.14'] steps: - uses: actions/checkout@v6 + - name: Install system-level dependencies + run: sudo apt-get update && sudo apt-get install libgdal-dev gdal-bin libmagic-dev libmagickwand-dev libpoppler-cpp-dev poppler-utils ghostscript gettext - name: Setup uv uses: astral-sh/setup-uv@v8.0.0 with: python-version: ${{ matrix.python-version }} activate-environment: true - - name: Install pnpm - uses: pnpm/action-setup@v5 - - uses: actions/setup-node@v6 + - uses: pnpm/setup@v3 with: - node-version: 24 - cache: pnpm - - name: Install system-level dependencies - run: sudo apt-get update && sudo apt-get install libgdal-dev gdal-bin libmagic-dev libmagickwand-dev libpoppler-cpp-dev poppler-utils ghostscript gettext + cache: true - name: Install dependencies run: | uv sync playwright install --with-deps chromium - pnpm install - name: Check German translations are up to date if: matrix.python-version == '3.13' run: | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8358b7c17..48401c596 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.15.8 + rev: v0.17.5 hooks: - id: ruff args: [--fix] @@ -16,25 +16,62 @@ repos: args: [--no-warn-ignored] - repo: https://github.com/Riverside-Healthcare/djLint - rev: v1.36.4 + rev: v1.50.4 hooks: - id: djlint-reformat-django - id: djlint-django + - repo: local hooks: + # Hooks for projects building on froide. Use them with: + # + # - repo: https://github.com/okfde/froide + # rev: + # hooks: + # - id: django-blocktrans-trimmed + # - id: gettext-named-placeholders + # - id: makemessages-de + # + # The scripts only need a python3 on PATH; froide itself is not installed. - id: django-blocktrans-trimmed name: Ensure blocktrans/blocktranslate use trimmed language: script entry: scripts/enforce_blocktrans_trimmed.py files: \.html$ + - id: gettext-named-placeholders name: Ensure translatable strings use named placeholders language: script entry: scripts/enforce_named_placeholders.py files: \.py$ + + # Requires a `checkmessagesde` make target in the consuming project that + # regenerates the German .po files and fails on untranslated or fuzzy messages. - id: makemessages-de name: Ensure German translations are up to date language: system entry: make checkmessagesde files: \.(py|html|txt|po)$ pass_filenames: false + + - id: unlink-frontend + name: Unlink frontend + language: script + entry: ./scripts/unlink_frontend.sh + files: pnpm-lock.yaml + stages: [pre-commit] + + - id: ensure-consistent-dependencies + name: Ensure consistent dependencies (pnpm/uv.lock) + language: python + language_version: '3.13' + entry: scripts/ensure_consistent_dependencies.py + additional_dependencies: + - pyyaml + + - id: relink-frontend + name: Re-link frontend + language: script + entry: ./scripts/relink_frontend.sh + always_run: true + stages: [post-commit] diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml index b93c2e5f6..42420d8df 100644 --- a/.pre-commit-hooks.yaml +++ b/.pre-commit-hooks.yaml @@ -28,3 +28,25 @@ entry: make checkmessagesde files: \.(py|html|txt|po)$ pass_filenames: false + +- id: unlink-frontend + name: Unlink frontend + language: script + entry: ./scripts/unlink_frontend.sh + files: pnpm-lock.yaml + stages: [pre-commit] + +- id: ensure-consistent-dependencies + name: Ensure consistent dependencies (pnpm/uv.lock) + language: python + language_version: '3.13' + entry: scripts/ensure_consistent_dependencies.py + additional_dependencies: + - pyyaml + +- id: relink-frontend + name: Re-link frontend + language: script + entry: ./scripts/relink_frontend.sh + always_run: true + stages: [post-commit] diff --git a/package.json b/package.json index f07f002b4..f1390f127 100644 --- a/package.json +++ b/package.json @@ -47,7 +47,7 @@ }, "dependencies": { "@hey-api/openapi-ts": "^0.99.0", - "@okfde/filingcabinet": "github:okfde/django-filingcabinet", + "@okfde/filingcabinet": "github:okfde/django-filingcabinet#krmax44\/pnpm-upgrade", "@panzoom/panzoom": "^4.6.2", "@popperjs/core": "^2.11.5", "@types/lodash.throttle": "^4.1.9", @@ -82,5 +82,5 @@ } }, "prettier": "prettier-config-standard", - "packageManager": "pnpm@9.15.5" -} + "packageManager": "pnpm@12.21.0" +} \ No newline at end of file diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index d0effa27f..9045e9bc5 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1,3 +1,170 @@ +--- +lockfileVersion: '9.0' + +importers: + + .: + configDependencies: {} + packageManagerDependencies: + pnpm: + specifier: 12.21.0 + version: 12.21.0 + +packages: + + '@pnpm/exe.android-arm64@12.21.0': + resolution: {integrity: sha512-iaWidxR5B9NUBpwMznCQu1yUpKB6BjTY5BYX2lORj76VsfINdj8Z8XWSzSNrGI8qlxa28Jzdp5fiaspzOaJZlA==} + cpu: [arm64] + os: [android] + + '@pnpm/exe.android-x64@12.21.0': + resolution: {integrity: sha512-35e5v3wlwjIYxDywq+R6/z8CE4gLOEgRxt18yqz1tMRLmx2mnW+CFJI2Q8+srTNjn7gykXUC0x1k195JNikC5A==} + cpu: [x64] + os: [android] + + '@pnpm/exe.darwin-arm64@12.21.0': + resolution: {integrity: sha512-F5OyMX/6zLSowpTZEQRojbCmPS1Pq+fyRaIinslsIe6Glh3qbyQ52u+Fe0eEzSaRuIbWZkXmAAXSWh6Q5Wrlgg==} + cpu: [arm64] + os: [darwin] + + '@pnpm/exe.darwin-x64@12.21.0': + resolution: {integrity: sha512-EzpvcsaE6hrrgYeEiAFYd2rSgFybYyxXhkAY7K3y6Hg3loVfcyJ81hHczpFzi8lW5RXtUlFECRPZ8ZAMRFQYYg==} + cpu: [x64] + os: [darwin] + + '@pnpm/exe.freebsd-x64@12.21.0': + resolution: {integrity: sha512-wNjuEnmdLks4aayPu/QZWQ5tQM9Jn+odUp/vwQM8BXRYoulkTZhtZTHoD60N6mUdLWef1hgUeUh8llNGEUsimw==} + cpu: [x64] + os: [freebsd] + + '@pnpm/exe.linux-arm64-musl@12.21.0': + resolution: {integrity: sha512-Ceit9zn4g5ZqCJtx1fV8eJE7p8aeXMrGZ+Dc01vRqZLIUNgNeI+Ur0ruyqxtsnJx6rGADyXzohumxPLHjaJ5AQ==} + cpu: [arm64] + os: [linux] + libc: [musl] + + '@pnpm/exe.linux-arm64@12.21.0': + resolution: {integrity: sha512-4Oj/iF2TDCe2lcH0n4TupPR5sSdrNLclJB6xBElLMPCUOAvBhdf2rRlSaO5M4erJ6g4Fyy7YTXTpcmfFsKyxEA==} + cpu: [arm64] + os: [linux] + libc: [glibc] + + '@pnpm/exe.linux-ppc64@12.21.0': + resolution: {integrity: sha512-s2o7rdSDeUTBFsNqxptpZXlTgT6cojmMVUOvTQvFNSv6Easian02ha4tR32fwwD97Au4YzIIjMCwywCF4D82Sw==} + cpu: [ppc64] + os: [linux] + libc: [glibc] + + '@pnpm/exe.linux-riscv64@12.21.0': + resolution: {integrity: sha512-EYv3GzxeBTITCuM3yGHHbpRFpUvyulkXpQ6LsjKAQNL3iaba1E6h9iDmlouLb3Io4AMMsfdk0/uG6poQ41uewA==} + cpu: [riscv64] + os: [linux] + libc: [glibc] + + '@pnpm/exe.linux-s390x@12.21.0': + resolution: {integrity: sha512-8VXGNGVNEfs7pL9GTZOzFxjFEnMt4WL3rLOADR5/kPQ7ROTV9GfpVI2DPO/zArXFSkvfc9Zad/WypHLbvzoaTQ==} + cpu: [s390x] + os: [linux] + libc: [glibc] + + '@pnpm/exe.linux-x64-musl@12.21.0': + resolution: {integrity: sha512-MnC5vpIXYubhDZCgCwlfJMg7Cg6HupN2IuouT9gD/tUmOfVdQYqeyYccWbthyo/Jeto8de1oQlxeRN1+1Hl2DQ==} + cpu: [x64] + os: [linux] + libc: [musl] + + '@pnpm/exe.linux-x64@12.21.0': + resolution: {integrity: sha512-8eufCjHXspKbNS/kh8q4Q0gqJoOuvC4Q5pgos6XS8By/nAMtP+jf8F1Cw9er840kfAX+PJ/ts+A9qnLE91rvXQ==} + cpu: [x64] + os: [linux] + libc: [glibc] + + '@pnpm/exe.netbsd-x64@12.21.0': + resolution: {integrity: sha512-eyh1M8hQZCkLWxuva7S/fc1SbFbgqg0/5di0dgWmyiuc2Io3dbWVihDun8X+XM8zsR5uhIDvvZpbS9aZQbCovg==} + cpu: [x64] + os: [netbsd] + + '@pnpm/exe.win32-arm64@12.21.0': + resolution: {integrity: sha512-7xTxxUXo/grRLivSeIl6B21gnsz7ooe5EMPcJmQqwxc8WLJVReN8MzrlHru8bqXfVr4X3+6ZGZscntKenlCBqQ==} + cpu: [arm64] + os: [win32] + + '@pnpm/exe.win32-x64@12.21.0': + resolution: {integrity: sha512-9TpkJemVApxJ1Z1w0ZFGN+AuSx4nJOqXSJUqMqDvaXTYwGOzvBiiWdFP9GN0ketiWCQS1Q0/pza2E7I3pP0OBQ==} + cpu: [x64] + os: [win32] + + pnpm@12.21.0: + resolution: {integrity: sha512-Zv2CeO4ok1zpUXktNDZ/869cQyonVkRYIwKVM4NbjaUpu+C+UTCv1W7QcT+4eJ5Hutgtk71a4v5UsVVi1idu8A==} + engines: {node: '>=18'} + hasBin: true + +snapshots: + + '@pnpm/exe.android-arm64@12.21.0': + optional: true + + '@pnpm/exe.android-x64@12.21.0': + optional: true + + '@pnpm/exe.darwin-arm64@12.21.0': + optional: true + + '@pnpm/exe.darwin-x64@12.21.0': + optional: true + + '@pnpm/exe.freebsd-x64@12.21.0': + optional: true + + '@pnpm/exe.linux-arm64-musl@12.21.0': + optional: true + + '@pnpm/exe.linux-arm64@12.21.0': + optional: true + + '@pnpm/exe.linux-ppc64@12.21.0': + optional: true + + '@pnpm/exe.linux-riscv64@12.21.0': + optional: true + + '@pnpm/exe.linux-s390x@12.21.0': + optional: true + + '@pnpm/exe.linux-x64-musl@12.21.0': + optional: true + + '@pnpm/exe.linux-x64@12.21.0': + optional: true + + '@pnpm/exe.netbsd-x64@12.21.0': + optional: true + + '@pnpm/exe.win32-arm64@12.21.0': + optional: true + + '@pnpm/exe.win32-x64@12.21.0': + optional: true + + pnpm@12.21.0: + optionalDependencies: + '@pnpm/exe.android-arm64': 12.21.0 + '@pnpm/exe.android-x64': 12.21.0 + '@pnpm/exe.darwin-arm64': 12.21.0 + '@pnpm/exe.darwin-x64': 12.21.0 + '@pnpm/exe.freebsd-x64': 12.21.0 + '@pnpm/exe.linux-arm64': 12.21.0 + '@pnpm/exe.linux-arm64-musl': 12.21.0 + '@pnpm/exe.linux-ppc64': 12.21.0 + '@pnpm/exe.linux-riscv64': 12.21.0 + '@pnpm/exe.linux-s390x': 12.21.0 + '@pnpm/exe.linux-x64': 12.21.0 + '@pnpm/exe.linux-x64-musl': 12.21.0 + '@pnpm/exe.netbsd-x64': 12.21.0 + '@pnpm/exe.win32-arm64': 12.21.0 + '@pnpm/exe.win32-x64': 12.21.0 + +--- lockfileVersion: '9.0' settings: @@ -12,8 +179,8 @@ importers: specifier: ^0.99.0 version: 0.99.0(typescript@5.9.3) '@okfde/filingcabinet': - specifier: github:okfde/django-filingcabinet - version: https://codeload.github.com/okfde/django-filingcabinet/tar.gz/3921166074f67d4c41a73cc4662a88ab7eef3c51(typescript@5.9.3)(worker-loader@3.0.8(webpack@5.94.0(postcss@8.5.28))) + specifier: github:okfde/django-filingcabinet#krmax44/pnpm-upgrade + version: https://codeload.github.com/okfde/django-filingcabinet/tar.gz/9c541b2b9d8a226a3b96a76f7fb5763adfe72c23(typescript@5.9.3)(worker-loader@3.0.8(webpack@5.94.0(esbuild@0.28.2)(postcss@8.5.28))) '@panzoom/panzoom': specifier: ^4.6.2 version: 4.6.2 @@ -72,8 +239,8 @@ importers: specifier: ^4.1.1 version: 4.1.1 pdfjs-dist: - specifier: '==2.16.105' - version: 2.16.105(worker-loader@3.0.8(webpack@5.94.0(postcss@8.5.28))) + specifier: '=2.16.105' + version: 2.16.105(worker-loader@3.0.8(webpack@5.94.0(esbuild@0.28.2)(postcss@8.5.28))) pinia: specifier: ^3.0.4 version: 3.0.4(typescript@5.9.3)(vue@3.5.43(typescript@5.9.3)) @@ -92,7 +259,7 @@ importers: devDependencies: '@okfde/eslint-config-froide': specifier: ^1.4.0 - version: 1.4.0(@typescript-eslint/parser@8.52.0(eslint@9.39.2(jiti@2.7.0))(typescript@5.9.3))(eslint@9.39.2(jiti@2.7.0))(prettier-config-standard@7.0.0(prettier@3.9.9))(prettier@3.9.9)(typescript@5.9.3)(vue-eslint-parser@10.2.0(eslint@9.39.2(jiti@2.7.0))) + version: 1.4.0(@typescript-eslint/parser@8.52.0(eslint@9.39.2(jiti@2.7.0)(supports-color@7.2.0))(supports-color@7.2.0)(typescript@5.9.3))(eslint@9.39.2(jiti@2.7.0)(supports-color@7.2.0))(prettier-config-standard@7.0.0(prettier@3.9.9))(prettier@3.9.9)(supports-color@7.2.0)(typescript@5.9.3)(vue-eslint-parser@10.2.0(eslint@9.39.2(jiti@2.7.0)(supports-color@7.2.0))(supports-color@7.2.0)) '@types/bootstrap': specifier: ^5.2.11 version: 5.2.11 @@ -107,10 +274,10 @@ importers: version: 10.6.1(postcss@8.5.28) cli-real-favicon: specifier: 0.0.9 - version: 0.0.9 + version: 0.0.9(debug@4.4.3(supports-color@7.2.0)) eslint: specifier: ^9.39.2 - version: 9.39.2(jiti@2.7.0) + version: 9.39.2(jiti@2.7.0)(supports-color@7.2.0) postcss: specifier: ^8.5.28 version: 8.5.28 @@ -421,6 +588,7 @@ packages: engines: {node: ^22.20 || ^24.12 || >=25} cpu: [x64] os: [linux] + libc: [glibc] '@nodelib/fs.scandir@2.1.5': resolution: {integrity: sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==} @@ -441,8 +609,8 @@ packages: prettier: ^3.5.3 prettier-config-standard: ^7.0.0 - '@okfde/filingcabinet@https://codeload.github.com/okfde/django-filingcabinet/tar.gz/3921166074f67d4c41a73cc4662a88ab7eef3c51': - resolution: {tarball: https://codeload.github.com/okfde/django-filingcabinet/tar.gz/3921166074f67d4c41a73cc4662a88ab7eef3c51} + '@okfde/filingcabinet@https://codeload.github.com/okfde/django-filingcabinet/tar.gz/9c541b2b9d8a226a3b96a76f7fb5763adfe72c23': + resolution: {gitHosted: true, integrity: sha512-3lkRiwiPyxqjgD/QmH5uvujlVufSHmZ05hN26hGPQAmTAHHL5qDii7Gto264o5c7/7uqMdP8+QP3eCK+yccwTQ==, tarball: https://codeload.github.com/okfde/django-filingcabinet/tar.gz/9c541b2b9d8a226a3b96a76f7fb5763adfe72c23} version: 0.0.4 '@panzoom/panzoom@4.6.2': @@ -477,36 +645,42 @@ packages: engines: {node: '>= 10.0.0'} cpu: [arm] os: [linux] + libc: [glibc] '@parcel/watcher-linux-arm-musl@2.6.0': resolution: {integrity: sha512-9c6AUHgHoG+IY88MRIHupztQiQnrbqHYQjkM2btA+Bf/wQnQMuiD0Wfk1EVv3TlNT3x41uU71rn6E4xh/+zvkw==} engines: {node: '>= 10.0.0'} cpu: [arm] os: [linux] + libc: [musl] '@parcel/watcher-linux-arm64-glibc@2.6.0': resolution: {integrity: sha512-yHRqS2owEXe6Hic9z6Mh1ECsCd+ODVOGvZDyciqRd21+v+o+DnXMOrw50DSpIG2sb8GPEaPPmfeCAWKPJdq46g==} engines: {node: '>= 10.0.0'} cpu: [arm64] os: [linux] + libc: [glibc] '@parcel/watcher-linux-arm64-musl@2.6.0': resolution: {integrity: sha512-WhB2e/V7rqdHHWZusBSPuy5Ei8S6lSz6FE5TKKQz5h3a0O+C+mhY7vxU9b/stqvMb8beLnPY82ZrFTLKs+SrKA==} engines: {node: '>= 10.0.0'} cpu: [arm64] os: [linux] + libc: [musl] '@parcel/watcher-linux-x64-glibc@2.6.0': resolution: {integrity: sha512-ulGE6x6Oz6iAwg75T8YQSoguBWasniIbX+QWpaYPcCnDOpdWX3k+4xbEYPZVLxOuoJI+svJJPD3sEj8G7lrQ3A==} engines: {node: '>= 10.0.0'} cpu: [x64] os: [linux] + libc: [glibc] '@parcel/watcher-linux-x64-musl@2.6.0': resolution: {integrity: sha512-tkBYKt7YQrjIJWYDnto2YgO8MRkjlMTSNoRHzsXinBqbLdeOM3L32wPZJvIZxqaLMfSlS/4sUjH/6STVP/XDLw==} engines: {node: '>= 10.0.0'} cpu: [x64] os: [linux] + libc: [musl] '@parcel/watcher-win32-arm64@2.6.0': resolution: {integrity: sha512-gIZAP23jaHjGWasY/TY6yL7NHFClf0Ga7FN+iINvk+KN94rhm94lYZhFsbYFNcA04/onvGD9kKmiJLJB2HbNwQ==} @@ -568,66 +742,79 @@ packages: resolution: {integrity: sha512-J/6xhutJPtFyIkmHdf4olOdHHKH5kOJNumojdWn+Elv5ICEYTVOa362Vw27TxsK0BLzb1le3EDlO3UbvFK1lnQ==} cpu: [arm] os: [linux] + libc: [glibc] '@rollup/rollup-linux-arm-musleabihf@4.64.0': resolution: {integrity: sha512-G4L/Nnx59d2LvDoV/P4S5lZ7oVLT6hodOHMacqjiq2LL2gts86KbkEBTYL53+fBt0odhf7XPIbIATGoYiJctxg==} cpu: [arm] os: [linux] + libc: [musl] '@rollup/rollup-linux-arm64-gnu@4.64.0': resolution: {integrity: sha512-zF16pvJDEUksGYRbfnXne7pdklAyj2XDmJeYKgP93oq0cUyX9Y8O7lUo1R+IY1GagP/YBvCEDCe7eEcAKpw//g==} cpu: [arm64] os: [linux] + libc: [glibc] '@rollup/rollup-linux-arm64-musl@4.64.0': resolution: {integrity: sha512-nIggWn8n+w12+R5lsV+PYYoUY8vuObxPAQqJI7WES+9v0qspYuAHoZMfYM0yLxlipasT5BY9ht5W8t5c/rSCkg==} cpu: [arm64] os: [linux] + libc: [musl] '@rollup/rollup-linux-loong64-gnu@4.64.0': resolution: {integrity: sha512-WLOTiHPzszP0dxIMsHpFeDSOSB5I49Mj8K4+yKE3H1X/D0JRG5XZ5jrctJLMjnUc/LUzaKiwq6EHWNJ8pup8PA==} cpu: [loong64] os: [linux] + libc: [glibc] '@rollup/rollup-linux-loong64-musl@4.64.0': resolution: {integrity: sha512-35RK9aRhh7g7Pmeu5gQ01aCvrhXzj9LoBE6xtUcEH1ns+nyTaSzxSpADmBQINu4QiTDGvmQYwo1j5hlg1rRXFw==} cpu: [loong64] os: [linux] + libc: [musl] '@rollup/rollup-linux-ppc64-gnu@4.64.0': resolution: {integrity: sha512-RqTfnpoTjuWfPAmqK5p2edt2AMCDJWm6oTn7sKfmyx+6tRga0ip05SJ977o6udTcIiDeF/CJMUfkaN4gtWt6Aw==} cpu: [ppc64] os: [linux] + libc: [glibc] '@rollup/rollup-linux-ppc64-musl@4.64.0': resolution: {integrity: sha512-RQjZPigjxFvFZDijG6rjlSXxhRaTf9zLYVpGK+lVcga64oMqP1GbgVqCb46eHTTceSIgp89Ja0y5aPe3GFBYHg==} cpu: [ppc64] os: [linux] + libc: [musl] '@rollup/rollup-linux-riscv64-gnu@4.64.0': resolution: {integrity: sha512-tjL58mgQcTRnDRpeky+Sth1MKQeYi2Ct6r3Luq9E5aTSjnM/i/JbozqZkKqp9thM5+oDSZxo+05f9kdQedfTGA==} cpu: [riscv64] os: [linux] + libc: [glibc] '@rollup/rollup-linux-riscv64-musl@4.64.0': resolution: {integrity: sha512-ictoRyVaoZ8C67myHef+8hhCa6IplXJJ/xUCkVCxziV4zxMZh+jvhkhGsPBLqj1S72fnqD0QH5zL4lcaa4X7DQ==} cpu: [riscv64] os: [linux] + libc: [musl] '@rollup/rollup-linux-s390x-gnu@4.64.0': resolution: {integrity: sha512-8aVvZ2hfr9RLFzBQkQNmYeHLDja8fLeQAmLt757zdKN/B+8L809KlLJKctQjS22wZotptV8G6o7fVPuAs8S1tQ==} cpu: [s390x] os: [linux] + libc: [glibc] '@rollup/rollup-linux-x64-gnu@4.64.0': resolution: {integrity: sha512-2dEF8GAcDKwshUfydD+GhosppNyBzhVUHkdFF3CXd3FpOkzj/RZzF5aoEtzklujklT5qFVRU2GK/cFeLaTNKVg==} cpu: [x64] os: [linux] + libc: [glibc] '@rollup/rollup-linux-x64-musl@4.64.0': resolution: {integrity: sha512-3XHTvoo2hKkh0MiOfS7SkhHjMaaWF7P4F3drocZZaho/Z8w7h/jpnuBHm91BOQLfvrKHs1yR+zir4E8RI3XzTQ==} cpu: [x64] os: [linux] + libc: [musl] '@rollup/rollup-openbsd-x64@4.64.0': resolution: {integrity: sha512-HKtkzodL4a3KFWDXDoO61cRynAWTR3LnAE0oGtfG9lcNFpNuVYUFOByxDgNqEvic9rvaQbAj+SFwTEWDptRaIw==} @@ -2364,20 +2551,10 @@ packages: peerDependencies: eslint: ^8.57.0 || ^9.0.0 - vue-observe-visibility@2.0.0-alpha.1: - resolution: {integrity: sha512-flFbp/gs9pZniXR6fans8smv1kDScJ8RS7rEpMjhVabiKeq7Qz3D9+eGsypncjfIyyU84saU88XZ0zjbD6Gq/g==} - peerDependencies: - vue: ^3.0.0 - - vue-resize@2.0.0-alpha.1: - resolution: {integrity: sha512-7+iqOueLU7uc9NrMfrzbG8hwMqchfVfSzpVlCMeJQe4pyibqyoifDNbKTZvwxZKDvGkB+PdFeKvnGZMoEb8esg==} - peerDependencies: - vue: ^3.0.0 - - vue-virtual-scroller@2.0.0-beta.8: - resolution: {integrity: sha512-b8/f5NQ5nIEBRTNi6GcPItE4s7kxNHw2AIHLtDp+2QvqdTjVN0FgONwX9cr53jWRgnu+HRLPaWDOR2JPI5MTfQ==} + vue-virtual-scroller@2.0.1: + resolution: {integrity: sha512-3Drq8C61C4B3reSaZJr5nXBf/B7Beq1+h5/kYZB25MLYljTy97ISeUufRX9z6ZSZlFDXyafAOLK9XwajOWJY1A==} peerDependencies: - vue: ^3.2.0 + vue: ^3.3.0 vue@3.5.43: resolution: {integrity: sha512-o5qZoksdnjIKvW1srZ3ab7pcDNYAerBjRe54D0LBLfRdCYFrSgBHVXokMas35czQc0//lmx4/tuY4ZNQ+Rf2Ng==} @@ -2557,22 +2734,22 @@ snapshots: '@esbuild/win32-x64@0.28.2': optional: true - '@eslint-community/eslint-utils@4.9.0(eslint@9.39.2(jiti@2.7.0))': + '@eslint-community/eslint-utils@4.9.0(eslint@9.39.2(jiti@2.7.0)(supports-color@7.2.0))': dependencies: - eslint: 9.39.2(jiti@2.7.0) + eslint: 9.39.2(jiti@2.7.0)(supports-color@7.2.0) eslint-visitor-keys: 3.4.3 - '@eslint-community/eslint-utils@4.9.1(eslint@9.39.2(jiti@2.7.0))': + '@eslint-community/eslint-utils@4.9.1(eslint@9.39.2(jiti@2.7.0)(supports-color@7.2.0))': dependencies: - eslint: 9.39.2(jiti@2.7.0) + eslint: 9.39.2(jiti@2.7.0)(supports-color@7.2.0) eslint-visitor-keys: 3.4.3 '@eslint-community/regexpp@4.12.2': {} - '@eslint/config-array@0.21.1': + '@eslint/config-array@0.21.1(supports-color@7.2.0)': dependencies: '@eslint/object-schema': 2.1.7 - debug: 4.4.3 + debug: 4.4.3(supports-color@7.2.0) minimatch: 3.1.2 transitivePeerDependencies: - supports-color @@ -2585,10 +2762,10 @@ snapshots: dependencies: '@types/json-schema': 7.0.15 - '@eslint/eslintrc@3.3.3': + '@eslint/eslintrc@3.3.3(supports-color@7.2.0)': dependencies: ajv: 6.12.6 - debug: 4.4.3 + debug: 4.4.3(supports-color@7.2.0) espree: 10.4.0 globals: 14.0.0 ignore: 5.3.2 @@ -2711,17 +2888,17 @@ snapshots: '@nodelib/fs.scandir': 2.1.5 fastq: 1.19.1 - '@okfde/eslint-config-froide@1.4.0(@typescript-eslint/parser@8.52.0(eslint@9.39.2(jiti@2.7.0))(typescript@5.9.3))(eslint@9.39.2(jiti@2.7.0))(prettier-config-standard@7.0.0(prettier@3.9.9))(prettier@3.9.9)(typescript@5.9.3)(vue-eslint-parser@10.2.0(eslint@9.39.2(jiti@2.7.0)))': + '@okfde/eslint-config-froide@1.4.0(@typescript-eslint/parser@8.52.0(eslint@9.39.2(jiti@2.7.0)(supports-color@7.2.0))(supports-color@7.2.0)(typescript@5.9.3))(eslint@9.39.2(jiti@2.7.0)(supports-color@7.2.0))(prettier-config-standard@7.0.0(prettier@3.9.9))(prettier@3.9.9)(supports-color@7.2.0)(typescript@5.9.3)(vue-eslint-parser@10.2.0(eslint@9.39.2(jiti@2.7.0)(supports-color@7.2.0))(supports-color@7.2.0))': dependencies: - '@vue/eslint-config-typescript': 14.6.0(eslint-plugin-vue@10.6.2(@typescript-eslint/parser@8.52.0(eslint@9.39.2(jiti@2.7.0))(typescript@5.9.3))(eslint@9.39.2(jiti@2.7.0))(vue-eslint-parser@10.2.0(eslint@9.39.2(jiti@2.7.0))))(eslint@9.39.2(jiti@2.7.0))(typescript@5.9.3) - eslint: 9.39.2(jiti@2.7.0) - eslint-config-prettier: 10.1.8(eslint@9.39.2(jiti@2.7.0)) - eslint-plugin-prettier: 5.5.4(eslint-config-prettier@10.1.8(eslint@9.39.2(jiti@2.7.0)))(eslint@9.39.2(jiti@2.7.0))(prettier@3.9.9) - eslint-plugin-vue: 10.6.2(@typescript-eslint/parser@8.52.0(eslint@9.39.2(jiti@2.7.0))(typescript@5.9.3))(eslint@9.39.2(jiti@2.7.0))(vue-eslint-parser@10.2.0(eslint@9.39.2(jiti@2.7.0))) + '@vue/eslint-config-typescript': 14.6.0(eslint-plugin-vue@10.6.2(@typescript-eslint/parser@8.52.0(eslint@9.39.2(jiti@2.7.0)(supports-color@7.2.0))(supports-color@7.2.0)(typescript@5.9.3))(eslint@9.39.2(jiti@2.7.0)(supports-color@7.2.0))(vue-eslint-parser@10.2.0(eslint@9.39.2(jiti@2.7.0)(supports-color@7.2.0))(supports-color@7.2.0)))(eslint@9.39.2(jiti@2.7.0)(supports-color@7.2.0))(supports-color@7.2.0)(typescript@5.9.3) + eslint: 9.39.2(jiti@2.7.0)(supports-color@7.2.0) + eslint-config-prettier: 10.1.8(eslint@9.39.2(jiti@2.7.0)(supports-color@7.2.0)) + eslint-plugin-prettier: 5.5.4(eslint-config-prettier@10.1.8(eslint@9.39.2(jiti@2.7.0)(supports-color@7.2.0)))(eslint@9.39.2(jiti@2.7.0)(supports-color@7.2.0))(prettier@3.9.9) + eslint-plugin-vue: 10.6.2(@typescript-eslint/parser@8.52.0(eslint@9.39.2(jiti@2.7.0)(supports-color@7.2.0))(supports-color@7.2.0)(typescript@5.9.3))(eslint@9.39.2(jiti@2.7.0)(supports-color@7.2.0))(vue-eslint-parser@10.2.0(eslint@9.39.2(jiti@2.7.0)(supports-color@7.2.0))(supports-color@7.2.0)) globals: 17.0.0 prettier: 3.9.9 prettier-config-standard: 7.0.0(prettier@3.9.9) - typescript-eslint: 8.52.0(eslint@9.39.2(jiti@2.7.0))(typescript@5.9.3) + typescript-eslint: 8.52.0(eslint@9.39.2(jiti@2.7.0)(supports-color@7.2.0))(supports-color@7.2.0)(typescript@5.9.3) transitivePeerDependencies: - '@stylistic/eslint-plugin' - '@types/eslint' @@ -2730,15 +2907,15 @@ snapshots: - typescript - vue-eslint-parser - '@okfde/filingcabinet@https://codeload.github.com/okfde/django-filingcabinet/tar.gz/3921166074f67d4c41a73cc4662a88ab7eef3c51(typescript@5.9.3)(worker-loader@3.0.8(webpack@5.94.0(postcss@8.5.28)))': + '@okfde/filingcabinet@https://codeload.github.com/okfde/django-filingcabinet/tar.gz/9c541b2b9d8a226a3b96a76f7fb5763adfe72c23(typescript@5.9.3)(worker-loader@3.0.8(webpack@5.94.0(esbuild@0.28.2)(postcss@8.5.28)))': dependencies: '@popperjs/core': 2.11.8 bootstrap: 5.3.8(@popperjs/core@2.11.8) font-awesome: 4.7.0 intersection-observer: 0.12.2 - pdfjs-dist: 2.16.105(worker-loader@3.0.8(webpack@5.94.0(postcss@8.5.28))) + pdfjs-dist: 2.16.105(worker-loader@3.0.8(webpack@5.94.0(esbuild@0.28.2)(postcss@8.5.28))) vue: 3.5.43(typescript@5.9.3) - vue-virtual-scroller: 2.0.0-beta.8(vue@3.5.43(typescript@5.9.3)) + vue-virtual-scroller: 2.0.1(vue@3.5.43(typescript@5.9.3)) transitivePeerDependencies: - typescript - worker-loader @@ -2920,15 +3097,15 @@ snapshots: '@types/web-bluetooth@0.0.21': {} - '@typescript-eslint/eslint-plugin@8.52.0(@typescript-eslint/parser@8.52.0(eslint@9.39.2(jiti@2.7.0))(typescript@5.9.3))(eslint@9.39.2(jiti@2.7.0))(typescript@5.9.3)': + '@typescript-eslint/eslint-plugin@8.52.0(@typescript-eslint/parser@8.52.0(eslint@9.39.2(jiti@2.7.0)(supports-color@7.2.0))(supports-color@7.2.0)(typescript@5.9.3))(eslint@9.39.2(jiti@2.7.0)(supports-color@7.2.0))(supports-color@7.2.0)(typescript@5.9.3)': dependencies: '@eslint-community/regexpp': 4.12.2 - '@typescript-eslint/parser': 8.52.0(eslint@9.39.2(jiti@2.7.0))(typescript@5.9.3) + '@typescript-eslint/parser': 8.52.0(eslint@9.39.2(jiti@2.7.0)(supports-color@7.2.0))(supports-color@7.2.0)(typescript@5.9.3) '@typescript-eslint/scope-manager': 8.52.0 - '@typescript-eslint/type-utils': 8.52.0(eslint@9.39.2(jiti@2.7.0))(typescript@5.9.3) - '@typescript-eslint/utils': 8.52.0(eslint@9.39.2(jiti@2.7.0))(typescript@5.9.3) + '@typescript-eslint/type-utils': 8.52.0(eslint@9.39.2(jiti@2.7.0)(supports-color@7.2.0))(supports-color@7.2.0)(typescript@5.9.3) + '@typescript-eslint/utils': 8.52.0(eslint@9.39.2(jiti@2.7.0)(supports-color@7.2.0))(supports-color@7.2.0)(typescript@5.9.3) '@typescript-eslint/visitor-keys': 8.52.0 - eslint: 9.39.2(jiti@2.7.0) + eslint: 9.39.2(jiti@2.7.0)(supports-color@7.2.0) ignore: 7.0.5 natural-compare: 1.4.0 ts-api-utils: 2.4.0(typescript@5.9.3) @@ -2936,32 +3113,32 @@ snapshots: transitivePeerDependencies: - supports-color - '@typescript-eslint/parser@8.52.0(eslint@9.39.2(jiti@2.7.0))(typescript@5.9.3)': + '@typescript-eslint/parser@8.52.0(eslint@9.39.2(jiti@2.7.0)(supports-color@7.2.0))(supports-color@7.2.0)(typescript@5.9.3)': dependencies: '@typescript-eslint/scope-manager': 8.52.0 '@typescript-eslint/types': 8.52.0 - '@typescript-eslint/typescript-estree': 8.52.0(typescript@5.9.3) + '@typescript-eslint/typescript-estree': 8.52.0(supports-color@7.2.0)(typescript@5.9.3) '@typescript-eslint/visitor-keys': 8.52.0 - debug: 4.4.3 - eslint: 9.39.2(jiti@2.7.0) + debug: 4.4.3(supports-color@7.2.0) + eslint: 9.39.2(jiti@2.7.0)(supports-color@7.2.0) typescript: 5.9.3 transitivePeerDependencies: - supports-color - '@typescript-eslint/project-service@8.43.0(typescript@5.9.3)': + '@typescript-eslint/project-service@8.43.0(supports-color@7.2.0)(typescript@5.9.3)': dependencies: '@typescript-eslint/tsconfig-utils': 8.43.0(typescript@5.9.3) '@typescript-eslint/types': 8.43.0 - debug: 4.4.1 + debug: 4.4.1(supports-color@7.2.0) typescript: 5.9.3 transitivePeerDependencies: - supports-color - '@typescript-eslint/project-service@8.52.0(typescript@5.9.3)': + '@typescript-eslint/project-service@8.52.0(supports-color@7.2.0)(typescript@5.9.3)': dependencies: '@typescript-eslint/tsconfig-utils': 8.52.0(typescript@5.9.3) '@typescript-eslint/types': 8.52.0 - debug: 4.4.3 + debug: 4.4.3(supports-color@7.2.0) typescript: 5.9.3 transitivePeerDependencies: - supports-color @@ -2984,13 +3161,13 @@ snapshots: dependencies: typescript: 5.9.3 - '@typescript-eslint/type-utils@8.52.0(eslint@9.39.2(jiti@2.7.0))(typescript@5.9.3)': + '@typescript-eslint/type-utils@8.52.0(eslint@9.39.2(jiti@2.7.0)(supports-color@7.2.0))(supports-color@7.2.0)(typescript@5.9.3)': dependencies: '@typescript-eslint/types': 8.52.0 - '@typescript-eslint/typescript-estree': 8.52.0(typescript@5.9.3) - '@typescript-eslint/utils': 8.52.0(eslint@9.39.2(jiti@2.7.0))(typescript@5.9.3) - debug: 4.4.3 - eslint: 9.39.2(jiti@2.7.0) + '@typescript-eslint/typescript-estree': 8.52.0(supports-color@7.2.0)(typescript@5.9.3) + '@typescript-eslint/utils': 8.52.0(eslint@9.39.2(jiti@2.7.0)(supports-color@7.2.0))(supports-color@7.2.0)(typescript@5.9.3) + debug: 4.4.3(supports-color@7.2.0) + eslint: 9.39.2(jiti@2.7.0)(supports-color@7.2.0) ts-api-utils: 2.4.0(typescript@5.9.3) typescript: 5.9.3 transitivePeerDependencies: @@ -3000,13 +3177,13 @@ snapshots: '@typescript-eslint/types@8.52.0': {} - '@typescript-eslint/typescript-estree@8.43.0(typescript@5.9.3)': + '@typescript-eslint/typescript-estree@8.43.0(supports-color@7.2.0)(typescript@5.9.3)': dependencies: - '@typescript-eslint/project-service': 8.43.0(typescript@5.9.3) + '@typescript-eslint/project-service': 8.43.0(supports-color@7.2.0)(typescript@5.9.3) '@typescript-eslint/tsconfig-utils': 8.43.0(typescript@5.9.3) '@typescript-eslint/types': 8.43.0 '@typescript-eslint/visitor-keys': 8.43.0 - debug: 4.4.1 + debug: 4.4.1(supports-color@7.2.0) fast-glob: 3.3.3 is-glob: 4.0.3 minimatch: 9.0.5 @@ -3016,13 +3193,13 @@ snapshots: transitivePeerDependencies: - supports-color - '@typescript-eslint/typescript-estree@8.52.0(typescript@5.9.3)': + '@typescript-eslint/typescript-estree@8.52.0(supports-color@7.2.0)(typescript@5.9.3)': dependencies: - '@typescript-eslint/project-service': 8.52.0(typescript@5.9.3) + '@typescript-eslint/project-service': 8.52.0(supports-color@7.2.0)(typescript@5.9.3) '@typescript-eslint/tsconfig-utils': 8.52.0(typescript@5.9.3) '@typescript-eslint/types': 8.52.0 '@typescript-eslint/visitor-keys': 8.52.0 - debug: 4.4.3 + debug: 4.4.3(supports-color@7.2.0) minimatch: 9.0.5 semver: 7.8.5 tinyglobby: 0.2.17 @@ -3031,24 +3208,24 @@ snapshots: transitivePeerDependencies: - supports-color - '@typescript-eslint/utils@8.43.0(eslint@9.39.2(jiti@2.7.0))(typescript@5.9.3)': + '@typescript-eslint/utils@8.43.0(eslint@9.39.2(jiti@2.7.0)(supports-color@7.2.0))(supports-color@7.2.0)(typescript@5.9.3)': dependencies: - '@eslint-community/eslint-utils': 4.9.0(eslint@9.39.2(jiti@2.7.0)) + '@eslint-community/eslint-utils': 4.9.0(eslint@9.39.2(jiti@2.7.0)(supports-color@7.2.0)) '@typescript-eslint/scope-manager': 8.43.0 '@typescript-eslint/types': 8.43.0 - '@typescript-eslint/typescript-estree': 8.43.0(typescript@5.9.3) - eslint: 9.39.2(jiti@2.7.0) + '@typescript-eslint/typescript-estree': 8.43.0(supports-color@7.2.0)(typescript@5.9.3) + eslint: 9.39.2(jiti@2.7.0)(supports-color@7.2.0) typescript: 5.9.3 transitivePeerDependencies: - supports-color - '@typescript-eslint/utils@8.52.0(eslint@9.39.2(jiti@2.7.0))(typescript@5.9.3)': + '@typescript-eslint/utils@8.52.0(eslint@9.39.2(jiti@2.7.0)(supports-color@7.2.0))(supports-color@7.2.0)(typescript@5.9.3)': dependencies: - '@eslint-community/eslint-utils': 4.9.1(eslint@9.39.2(jiti@2.7.0)) + '@eslint-community/eslint-utils': 4.9.1(eslint@9.39.2(jiti@2.7.0)(supports-color@7.2.0)) '@typescript-eslint/scope-manager': 8.52.0 '@typescript-eslint/types': 8.52.0 - '@typescript-eslint/typescript-estree': 8.52.0(typescript@5.9.3) - eslint: 9.39.2(jiti@2.7.0) + '@typescript-eslint/typescript-estree': 8.52.0(supports-color@7.2.0)(typescript@5.9.3) + eslint: 9.39.2(jiti@2.7.0)(supports-color@7.2.0) typescript: 5.9.3 transitivePeerDependencies: - supports-color @@ -3180,14 +3357,14 @@ snapshots: dependencies: rfdc: 1.4.1 - '@vue/eslint-config-typescript@14.6.0(eslint-plugin-vue@10.6.2(@typescript-eslint/parser@8.52.0(eslint@9.39.2(jiti@2.7.0))(typescript@5.9.3))(eslint@9.39.2(jiti@2.7.0))(vue-eslint-parser@10.2.0(eslint@9.39.2(jiti@2.7.0))))(eslint@9.39.2(jiti@2.7.0))(typescript@5.9.3)': + '@vue/eslint-config-typescript@14.6.0(eslint-plugin-vue@10.6.2(@typescript-eslint/parser@8.52.0(eslint@9.39.2(jiti@2.7.0)(supports-color@7.2.0))(supports-color@7.2.0)(typescript@5.9.3))(eslint@9.39.2(jiti@2.7.0)(supports-color@7.2.0))(vue-eslint-parser@10.2.0(eslint@9.39.2(jiti@2.7.0)(supports-color@7.2.0))(supports-color@7.2.0)))(eslint@9.39.2(jiti@2.7.0)(supports-color@7.2.0))(supports-color@7.2.0)(typescript@5.9.3)': dependencies: - '@typescript-eslint/utils': 8.43.0(eslint@9.39.2(jiti@2.7.0))(typescript@5.9.3) - eslint: 9.39.2(jiti@2.7.0) - eslint-plugin-vue: 10.6.2(@typescript-eslint/parser@8.52.0(eslint@9.39.2(jiti@2.7.0))(typescript@5.9.3))(eslint@9.39.2(jiti@2.7.0))(vue-eslint-parser@10.2.0(eslint@9.39.2(jiti@2.7.0))) + '@typescript-eslint/utils': 8.43.0(eslint@9.39.2(jiti@2.7.0)(supports-color@7.2.0))(supports-color@7.2.0)(typescript@5.9.3) + eslint: 9.39.2(jiti@2.7.0)(supports-color@7.2.0) + eslint-plugin-vue: 10.6.2(@typescript-eslint/parser@8.52.0(eslint@9.39.2(jiti@2.7.0)(supports-color@7.2.0))(supports-color@7.2.0)(typescript@5.9.3))(eslint@9.39.2(jiti@2.7.0)(supports-color@7.2.0))(vue-eslint-parser@10.2.0(eslint@9.39.2(jiti@2.7.0)(supports-color@7.2.0))(supports-color@7.2.0)) fast-glob: 3.3.3 - typescript-eslint: 8.52.0(eslint@9.39.2(jiti@2.7.0))(typescript@5.9.3) - vue-eslint-parser: 10.2.0(eslint@9.39.2(jiti@2.7.0)) + typescript-eslint: 8.52.0(eslint@9.39.2(jiti@2.7.0)(supports-color@7.2.0))(supports-color@7.2.0)(typescript@5.9.3) + vue-eslint-parser: 10.2.0(eslint@9.39.2(jiti@2.7.0)(supports-color@7.2.0))(supports-color@7.2.0) optionalDependencies: typescript: 5.9.3 transitivePeerDependencies: @@ -3411,9 +3588,9 @@ snapshots: postcss: 8.5.28 postcss-value-parser: 4.2.0 - axios@0.21.4: + axios@0.21.4(debug@4.4.3(supports-color@7.2.0)): dependencies: - follow-redirects: 1.15.9 + follow-redirects: 1.15.9(debug@4.4.3(supports-color@7.2.0)) transitivePeerDependencies: - debug @@ -3547,12 +3724,12 @@ snapshots: classnames@2.5.1: {} - cli-real-favicon@0.0.9: + cli-real-favicon@0.0.9(debug@4.4.3(supports-color@7.2.0)): dependencies: bluebird: 3.7.2 commander: 2.20.3 glob: 6.0.4 - rfg-api: 0.5.3 + rfg-api: 0.5.3(debug@4.4.3(supports-color@7.2.0)) transitivePeerDependencies: - debug @@ -3607,13 +3784,17 @@ snapshots: custom-error-instance@2.1.1: {} - debug@4.4.1: + debug@4.4.1(supports-color@7.2.0): dependencies: ms: 2.1.3 + optionalDependencies: + supports-color: 7.2.0 - debug@4.4.3: + debug@4.4.3(supports-color@7.2.0): dependencies: ms: 2.1.3 + optionalDependencies: + supports-color: 7.2.0 deep-is@0.1.4: {} @@ -3718,31 +3899,31 @@ snapshots: escape-string-regexp@4.0.0: {} - eslint-config-prettier@10.1.8(eslint@9.39.2(jiti@2.7.0)): + eslint-config-prettier@10.1.8(eslint@9.39.2(jiti@2.7.0)(supports-color@7.2.0)): dependencies: - eslint: 9.39.2(jiti@2.7.0) + eslint: 9.39.2(jiti@2.7.0)(supports-color@7.2.0) - eslint-plugin-prettier@5.5.4(eslint-config-prettier@10.1.8(eslint@9.39.2(jiti@2.7.0)))(eslint@9.39.2(jiti@2.7.0))(prettier@3.9.9): + eslint-plugin-prettier@5.5.4(eslint-config-prettier@10.1.8(eslint@9.39.2(jiti@2.7.0)(supports-color@7.2.0)))(eslint@9.39.2(jiti@2.7.0)(supports-color@7.2.0))(prettier@3.9.9): dependencies: - eslint: 9.39.2(jiti@2.7.0) + eslint: 9.39.2(jiti@2.7.0)(supports-color@7.2.0) prettier: 3.9.9 prettier-linter-helpers: 1.0.1 synckit: 0.11.11 optionalDependencies: - eslint-config-prettier: 10.1.8(eslint@9.39.2(jiti@2.7.0)) + eslint-config-prettier: 10.1.8(eslint@9.39.2(jiti@2.7.0)(supports-color@7.2.0)) - eslint-plugin-vue@10.6.2(@typescript-eslint/parser@8.52.0(eslint@9.39.2(jiti@2.7.0))(typescript@5.9.3))(eslint@9.39.2(jiti@2.7.0))(vue-eslint-parser@10.2.0(eslint@9.39.2(jiti@2.7.0))): + eslint-plugin-vue@10.6.2(@typescript-eslint/parser@8.52.0(eslint@9.39.2(jiti@2.7.0)(supports-color@7.2.0))(supports-color@7.2.0)(typescript@5.9.3))(eslint@9.39.2(jiti@2.7.0)(supports-color@7.2.0))(vue-eslint-parser@10.2.0(eslint@9.39.2(jiti@2.7.0)(supports-color@7.2.0))(supports-color@7.2.0)): dependencies: - '@eslint-community/eslint-utils': 4.9.1(eslint@9.39.2(jiti@2.7.0)) - eslint: 9.39.2(jiti@2.7.0) + '@eslint-community/eslint-utils': 4.9.1(eslint@9.39.2(jiti@2.7.0)(supports-color@7.2.0)) + eslint: 9.39.2(jiti@2.7.0)(supports-color@7.2.0) natural-compare: 1.4.0 nth-check: 2.1.1 postcss-selector-parser: 7.1.1 semver: 7.7.3 - vue-eslint-parser: 10.2.0(eslint@9.39.2(jiti@2.7.0)) + vue-eslint-parser: 10.2.0(eslint@9.39.2(jiti@2.7.0)(supports-color@7.2.0))(supports-color@7.2.0) xml-name-validator: 4.0.0 optionalDependencies: - '@typescript-eslint/parser': 8.52.0(eslint@9.39.2(jiti@2.7.0))(typescript@5.9.3) + '@typescript-eslint/parser': 8.52.0(eslint@9.39.2(jiti@2.7.0)(supports-color@7.2.0))(supports-color@7.2.0)(typescript@5.9.3) eslint-scope@5.1.1: dependencies: @@ -3759,14 +3940,14 @@ snapshots: eslint-visitor-keys@4.2.1: {} - eslint@9.39.2(jiti@2.7.0): + eslint@9.39.2(jiti@2.7.0)(supports-color@7.2.0): dependencies: - '@eslint-community/eslint-utils': 4.9.1(eslint@9.39.2(jiti@2.7.0)) + '@eslint-community/eslint-utils': 4.9.1(eslint@9.39.2(jiti@2.7.0)(supports-color@7.2.0)) '@eslint-community/regexpp': 4.12.2 - '@eslint/config-array': 0.21.1 + '@eslint/config-array': 0.21.1(supports-color@7.2.0) '@eslint/config-helpers': 0.4.2 '@eslint/core': 0.17.0 - '@eslint/eslintrc': 3.3.3 + '@eslint/eslintrc': 3.3.3(supports-color@7.2.0) '@eslint/js': 9.39.2 '@eslint/plugin-kit': 0.4.1 '@humanfs/node': 0.16.7 @@ -3776,7 +3957,7 @@ snapshots: ajv: 6.12.6 chalk: 4.1.2 cross-spawn: 7.0.6 - debug: 4.4.3 + debug: 4.4.3(supports-color@7.2.0) escape-string-regexp: 4.0.0 eslint-scope: 8.4.0 eslint-visitor-keys: 4.2.1 @@ -3887,7 +4068,9 @@ snapshots: flatted@3.3.3: {} - follow-redirects@1.15.9: {} + follow-redirects@1.15.9(debug@4.4.3(supports-color@7.2.0)): + optionalDependencies: + debug: 4.4.3(supports-color@7.2.0) font-awesome@4.7.0: {} @@ -4276,12 +4459,12 @@ snapshots: pathe@2.0.3: {} - pdfjs-dist@2.16.105(worker-loader@3.0.8(webpack@5.94.0(postcss@8.5.28))): + pdfjs-dist@2.16.105(worker-loader@3.0.8(webpack@5.94.0(esbuild@0.28.2)(postcss@8.5.28))): dependencies: dommatrix: 1.0.3 web-streams-polyfill: 3.3.3 optionalDependencies: - worker-loader: 3.0.8(webpack@5.94.0(postcss@8.5.28)) + worker-loader: 3.0.8(webpack@5.94.0(esbuild@0.28.2)(postcss@8.5.28)) perfect-debounce@1.0.0: {} @@ -4385,9 +4568,9 @@ snapshots: rfdc@1.4.1: {} - rfg-api@0.5.3: + rfg-api@0.5.3(debug@4.4.3(supports-color@7.2.0)): dependencies: - axios: 0.21.4 + axios: 0.21.4(debug@4.4.3(supports-color@7.2.0)) fstream: 1.0.12 metaparser: 1.0.7 mkdirp: 0.5.6 @@ -4454,14 +4637,14 @@ snapshots: ajv-keywords: 3.5.2(ajv@6.15.0) optional: true - schema-utils@4.8.3(webpack@5.94.0(postcss@8.5.28)): + schema-utils@4.8.3(webpack@5.94.0(esbuild@0.28.2)(postcss@8.5.28)): dependencies: '@types/json-schema': 7.0.15 ajv: 8.20.0 ajv-formats: 3.0.1(ajv@8.20.0) ajv-keywords: 5.1.0(ajv@8.20.0) optionalDependencies: - webpack: 5.94.0(postcss@8.5.28) + webpack: 5.94.0(esbuild@0.28.2)(postcss@8.5.28) optional: true semver@7.7.3: {} @@ -4529,14 +4712,15 @@ snapshots: tapable@2.3.3: optional: true - terser-webpack-plugin@5.6.1(postcss@8.5.28)(webpack@5.94.0(postcss@8.5.28)): + terser-webpack-plugin@5.6.1(esbuild@0.28.2)(postcss@8.5.28)(webpack@5.94.0(esbuild@0.28.2)(postcss@8.5.28)): dependencies: '@jridgewell/trace-mapping': 0.3.31 jest-worker: 27.5.1 - schema-utils: 4.8.3(webpack@5.94.0(postcss@8.5.28)) + schema-utils: 4.8.3(webpack@5.94.0(esbuild@0.28.2)(postcss@8.5.28)) terser: 5.51.2 - webpack: 5.94.0(postcss@8.5.28) + webpack: 5.94.0(esbuild@0.28.2)(postcss@8.5.28) optionalDependencies: + esbuild: 0.28.2 postcss: 8.5.28 optional: true @@ -4581,13 +4765,13 @@ snapshots: dependencies: prelude-ls: 1.2.1 - typescript-eslint@8.52.0(eslint@9.39.2(jiti@2.7.0))(typescript@5.9.3): + typescript-eslint@8.52.0(eslint@9.39.2(jiti@2.7.0)(supports-color@7.2.0))(supports-color@7.2.0)(typescript@5.9.3): dependencies: - '@typescript-eslint/eslint-plugin': 8.52.0(@typescript-eslint/parser@8.52.0(eslint@9.39.2(jiti@2.7.0))(typescript@5.9.3))(eslint@9.39.2(jiti@2.7.0))(typescript@5.9.3) - '@typescript-eslint/parser': 8.52.0(eslint@9.39.2(jiti@2.7.0))(typescript@5.9.3) - '@typescript-eslint/typescript-estree': 8.52.0(typescript@5.9.3) - '@typescript-eslint/utils': 8.52.0(eslint@9.39.2(jiti@2.7.0))(typescript@5.9.3) - eslint: 9.39.2(jiti@2.7.0) + '@typescript-eslint/eslint-plugin': 8.52.0(@typescript-eslint/parser@8.52.0(eslint@9.39.2(jiti@2.7.0)(supports-color@7.2.0))(supports-color@7.2.0)(typescript@5.9.3))(eslint@9.39.2(jiti@2.7.0)(supports-color@7.2.0))(supports-color@7.2.0)(typescript@5.9.3) + '@typescript-eslint/parser': 8.52.0(eslint@9.39.2(jiti@2.7.0)(supports-color@7.2.0))(supports-color@7.2.0)(typescript@5.9.3) + '@typescript-eslint/typescript-estree': 8.52.0(supports-color@7.2.0)(typescript@5.9.3) + '@typescript-eslint/utils': 8.52.0(eslint@9.39.2(jiti@2.7.0)(supports-color@7.2.0))(supports-color@7.2.0)(typescript@5.9.3) + eslint: 9.39.2(jiti@2.7.0)(supports-color@7.2.0) typescript: 5.9.3 transitivePeerDependencies: - supports-color @@ -4645,10 +4829,10 @@ snapshots: terser: 5.51.2 yaml: 2.8.3 - vue-eslint-parser@10.2.0(eslint@9.39.2(jiti@2.7.0)): + vue-eslint-parser@10.2.0(eslint@9.39.2(jiti@2.7.0)(supports-color@7.2.0))(supports-color@7.2.0): dependencies: - debug: 4.4.1 - eslint: 9.39.2(jiti@2.7.0) + debug: 4.4.1(supports-color@7.2.0) + eslint: 9.39.2(jiti@2.7.0)(supports-color@7.2.0) eslint-scope: 8.4.0 eslint-visitor-keys: 4.2.1 espree: 10.4.0 @@ -4657,20 +4841,10 @@ snapshots: transitivePeerDependencies: - supports-color - vue-observe-visibility@2.0.0-alpha.1(vue@3.5.43(typescript@5.9.3)): - dependencies: - vue: 3.5.43(typescript@5.9.3) - - vue-resize@2.0.0-alpha.1(vue@3.5.43(typescript@5.9.3)): - dependencies: - vue: 3.5.43(typescript@5.9.3) - - vue-virtual-scroller@2.0.0-beta.8(vue@3.5.43(typescript@5.9.3)): + vue-virtual-scroller@2.0.1(vue@3.5.43(typescript@5.9.3)): dependencies: mitt: 2.1.0 vue: 3.5.43(typescript@5.9.3) - vue-observe-visibility: 2.0.0-alpha.1(vue@3.5.43(typescript@5.9.3)) - vue-resize: 2.0.0-alpha.1(vue@3.5.43(typescript@5.9.3)) vue@3.5.43(typescript@5.9.3): dependencies: @@ -4701,7 +4875,7 @@ snapshots: webpack-sources@3.7.0: optional: true - webpack@5.94.0(postcss@8.5.28): + webpack@5.94.0(esbuild@0.28.2)(postcss@8.5.28): dependencies: '@types/estree': 1.0.10 '@webassemblyjs/ast': 1.14.1 @@ -4723,7 +4897,7 @@ snapshots: neo-async: 2.6.2 schema-utils: 3.3.0 tapable: 2.3.3 - terser-webpack-plugin: 5.6.1(postcss@8.5.28)(webpack@5.94.0(postcss@8.5.28)) + terser-webpack-plugin: 5.6.1(esbuild@0.28.2)(postcss@8.5.28)(webpack@5.94.0(esbuild@0.28.2)(postcss@8.5.28)) watchpack: 2.6.4 webpack-sources: 3.7.0 transitivePeerDependencies: @@ -4755,11 +4929,11 @@ snapshots: word-wrap@1.2.5: {} - worker-loader@3.0.8(webpack@5.94.0(postcss@8.5.28)): + worker-loader@3.0.8(webpack@5.94.0(esbuild@0.28.2)(postcss@8.5.28)): dependencies: loader-utils: 2.0.4 schema-utils: 3.3.0 - webpack: 5.94.0(postcss@8.5.28) + webpack: 5.94.0(esbuild@0.28.2)(postcss@8.5.28) optional: true wrappy@1.0.2: {} diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml new file mode 100644 index 000000000..6b9b62971 --- /dev/null +++ b/pnpm-workspace.yaml @@ -0,0 +1,4 @@ +allowBuilds: + '@parcel/watcher': false + esbuild: false + exifreader: false diff --git a/pyproject.toml b/pyproject.toml index c1d605178..d04a82dd3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -60,7 +60,7 @@ dependencies = [ "wand", "weasyprint>=65.1", "websockets", - "django-filingcabinet @ git+https://github.com/okfde/django-filingcabinet.git@main", + "django-filingcabinet @ git+https://github.com/okfde/django-filingcabinet.git@krmax44/pnpm-upgrade", "dogtail @ git+https://github.com/okfde/dogtail.git@main", ] diff --git a/scripts/ensure_consistent_dependencies.py b/scripts/ensure_consistent_dependencies.py new file mode 100755 index 000000000..e4b8934d5 --- /dev/null +++ b/scripts/ensure_consistent_dependencies.py @@ -0,0 +1,60 @@ +#!/usr/bin/env python3 + +import re +import tomllib + +import yaml + + +def main(): + def python_to_js(python_package: str) -> str | None: + if python_package == "django-filingcabinet": + return "@okfde/filingcabinet" + + if python_package.startswith("froide"): + return python_package.replace("-", "_") + + uv_commit_re = re.compile(r"#([0-9a-f]+)$") + pnpm_commit_re = re.compile(r"tar\.gz\/([0-9a-f]+)") + + with ( + open("uv.lock", "rb") as uv_lock_fd, + open(file="pnpm-lock.yaml", mode="r") as pnpm_lock_fd, + ): + pnpm_docs = yaml.load_all(pnpm_lock_fd, yaml.SafeLoader) + + pnpm_lock = list(pnpm_docs)[-1] + + npm_packages = pnpm_lock["importers"]["."]["dependencies"] + + uv_lock = tomllib.load(uv_lock_fd) + + for python_module in uv_lock["package"]: + if "git" not in python_module["source"]: + continue + + python_module_name = python_module["name"] + npm_package_name = python_to_js(python_module_name) + + if not npm_package_name: + continue + + print("checking", python_module_name) + + python_version = uv_commit_re.search(python_module["source"]["git"]) + assert python_version + python_version = python_version.group(1) + + npm_version = pnpm_commit_re.search( + npm_packages[npm_package_name]["version"] + ) + assert npm_version + npm_version = npm_version.group(1) + + assert npm_version == python_version, ( + f"{python_module_name} versions differ in uv.lock and pnpm-lock.yaml ({python_version[:8]} vs. {npm_version[:8]}). Run `make dependencies` to fix this." + ) + + +if __name__ == "__main__": + main() diff --git a/scripts/relink_frontend.sh b/scripts/relink_frontend.sh new file mode 100755 index 000000000..ff9a0ab41 --- /dev/null +++ b/scripts/relink_frontend.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +if [ -f "node_modules/.linked" ]; then + pnpm link "$(< node_modules/.linked)" +fi diff --git a/scripts/unlink_frontend.sh b/scripts/unlink_frontend.sh new file mode 100755 index 000000000..33a486bf8 --- /dev/null +++ b/scripts/unlink_frontend.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +linked=$(pnpm list --json | jq -r '.[0].dependencies.[]|select(.version | startswith("link:"))') +packages=$(echo $linked | jq -r '.from') +paths=$(echo $linked | jq -r '.version|sub("link:";"")') + +if [ -z "$paths" ]; then + exit 0; +fi + +echo "$paths" > node_modules/.linked + +pnpm unlink "$packages" +git add pnpm-lock.yaml pnpm-workspace.yaml diff --git a/uv.lock b/uv.lock index f00667f33..3204e582a 100644 --- a/uv.lock +++ b/uv.lock @@ -897,7 +897,7 @@ wheels = [ [[package]] name = "django-filingcabinet" version = "0.0.1" -source = { git = "https://github.com/okfde/django-filingcabinet.git?rev=main#3921166074f67d4c41a73cc4662a88ab7eef3c51" } +source = { git = "https://github.com/okfde/django-filingcabinet.git?rev=krmax44%2Fpnpm-upgrade#9c541b2b9d8a226a3b96a76f7fb5763adfe72c23" } dependencies = [ { name = "celery" }, { name = "django" }, @@ -1432,7 +1432,7 @@ requires-dist = [ { name = "django-contrib-comments" }, { name = "django-crossdomainmedia", specifier = ">=0.0.4" }, { name = "django-elasticsearch-dsl", specifier = ">=8.0,<9.0" }, - { name = "django-filingcabinet", git = "https://github.com/okfde/django-filingcabinet.git?rev=main" }, + { name = "django-filingcabinet", git = "https://github.com/okfde/django-filingcabinet.git?rev=krmax44%2Fpnpm-upgrade" }, { name = "django-filter", specifier = ">=25.1" }, { name = "django-json-widget" }, { name = "django-leaflet", specifier = ">=0.32.0" }, From 80f6e54a633571315bf4dbcee504df0cbaceb56b Mon Sep 17 00:00:00 2001 From: krmax44 Date: Mon, 16 Nov 2026 18:54:51 +0100 Subject: [PATCH 03/11] =?UTF-8?q?=F0=9F=9A=9A=20move=20pre-commit=20hooks?= =?UTF-8?q?=20to=20separate=20repo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .pre-commit-config.yaml | 51 +------------- .pre-commit-hooks.yaml | 52 -------------- scripts/enforce_blocktrans_trimmed.py | 74 -------------------- scripts/enforce_named_placeholders.py | 85 ----------------------- scripts/ensure_consistent_dependencies.py | 60 ---------------- scripts/relink_frontend.sh | 5 -- scripts/unlink_frontend.sh | 14 ---- 7 files changed, 3 insertions(+), 338 deletions(-) delete mode 100644 .pre-commit-hooks.yaml delete mode 100755 scripts/enforce_blocktrans_trimmed.py delete mode 100755 scripts/enforce_named_placeholders.py delete mode 100755 scripts/ensure_consistent_dependencies.py delete mode 100755 scripts/relink_frontend.sh delete mode 100755 scripts/unlink_frontend.sh diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 48401c596..6789e25b8 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -21,57 +21,12 @@ repos: - id: djlint-reformat-django - id: djlint-django - - repo: local + - repo: https://github.com/fragdenstaat/pre-commit + rev: 86b4cdc9b7dc892154fb064d3c702d3ece9d5716 hooks: - # Hooks for projects building on froide. Use them with: - # - # - repo: https://github.com/okfde/froide - # rev: - # hooks: - # - id: django-blocktrans-trimmed - # - id: gettext-named-placeholders - # - id: makemessages-de - # - # The scripts only need a python3 on PATH; froide itself is not installed. - id: django-blocktrans-trimmed - name: Ensure blocktrans/blocktranslate use trimmed - language: script - entry: scripts/enforce_blocktrans_trimmed.py - files: \.html$ - - id: gettext-named-placeholders - name: Ensure translatable strings use named placeholders - language: script - entry: scripts/enforce_named_placeholders.py - files: \.py$ - - # Requires a `checkmessagesde` make target in the consuming project that - # regenerates the German .po files and fails on untranslated or fuzzy messages. - - id: makemessages-de - name: Ensure German translations are up to date - language: system - entry: make checkmessagesde - files: \.(py|html|txt|po)$ - pass_filenames: false - + - id: checkmessages-de - id: unlink-frontend - name: Unlink frontend - language: script - entry: ./scripts/unlink_frontend.sh - files: pnpm-lock.yaml - stages: [pre-commit] - - id: ensure-consistent-dependencies - name: Ensure consistent dependencies (pnpm/uv.lock) - language: python - language_version: '3.13' - entry: scripts/ensure_consistent_dependencies.py - additional_dependencies: - - pyyaml - - id: relink-frontend - name: Re-link frontend - language: script - entry: ./scripts/relink_frontend.sh - always_run: true - stages: [post-commit] diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml deleted file mode 100644 index 42420d8df..000000000 --- a/.pre-commit-hooks.yaml +++ /dev/null @@ -1,52 +0,0 @@ -# Hooks for projects building on froide. Use them with: -# -# - repo: https://github.com/okfde/froide -# rev: -# hooks: -# - id: django-blocktrans-trimmed -# - id: gettext-named-placeholders -# - id: makemessages-de -# -# The scripts only need a python3 on PATH; froide itself is not installed. -- id: django-blocktrans-trimmed - name: Ensure blocktrans/blocktranslate use trimmed - language: script - entry: scripts/enforce_blocktrans_trimmed.py - files: \.html$ - -- id: gettext-named-placeholders - name: Ensure translatable strings use named placeholders - language: script - entry: scripts/enforce_named_placeholders.py - files: \.py$ - -# Requires a `checkmessagesde` make target in the consuming project that -# regenerates the German .po files and fails on untranslated or fuzzy messages. -- id: makemessages-de - name: Ensure German translations are up to date - language: system - entry: make checkmessagesde - files: \.(py|html|txt|po)$ - pass_filenames: false - -- id: unlink-frontend - name: Unlink frontend - language: script - entry: ./scripts/unlink_frontend.sh - files: pnpm-lock.yaml - stages: [pre-commit] - -- id: ensure-consistent-dependencies - name: Ensure consistent dependencies (pnpm/uv.lock) - language: python - language_version: '3.13' - entry: scripts/ensure_consistent_dependencies.py - additional_dependencies: - - pyyaml - -- id: relink-frontend - name: Re-link frontend - language: script - entry: ./scripts/relink_frontend.sh - always_run: true - stages: [post-commit] diff --git a/scripts/enforce_blocktrans_trimmed.py b/scripts/enforce_blocktrans_trimmed.py deleted file mode 100755 index 03a622981..000000000 --- a/scripts/enforce_blocktrans_trimmed.py +++ /dev/null @@ -1,74 +0,0 @@ -#!/usr/bin/env python3 -""" -Pre-commit hook to enforce that blocktrans/blocktranslate blocks -whose body starts with a newline (optionally preceded by spaces or -tabs) use the ``trimmed`` keyword. - -A leading newline typically means the block is indented for -readability and the whitespace is unintentional. Blocks where -content starts on the same line as the opening tag are left alone, -since any inner newlines are likely intentional (e.g. in emails). - -The ``trimmed`` keyword is inserted directly after the tag name, -before any other arguments (e.g. ``with``). - -If any file is modified, the hook exits with a non-zero status -so pre-commit re-stages the fixed files. -""" - -import re -import sys -from pathlib import Path - -BLOCK_PATTERN = re.compile( - r""" - (\{%-?\s*(?:blocktrans|blocktranslate)\b) # opening tag incl. keyword - (.*?) # arguments (with, count, …) - (-?%\}) # close of opening tag - (.*?) # block body - (\{%-?\s*(?:endblocktrans|endblocktranslate)\s*-?%\}) # end tag - """, - re.VERBOSE | re.DOTALL, -) -TRIMMED_PATTERN = re.compile(r"\btrimmed\b") -LEADING_NEWLINE_PATTERN = re.compile(r"[ \t]*\n") - - -def fix_file(path: Path) -> bool: - original = path.read_text(encoding="utf-8") - - def replacer(match: re.Match) -> str: - opening = match.group(1) - args = match.group(2) - close = match.group(3) - body = match.group(4) - end_tag = match.group(5) - - if TRIMMED_PATTERN.search(args) or not LEADING_NEWLINE_PATTERN.match(body): - return match.group(0) - - return opening + " trimmed" + args + close + body + end_tag - - updated = BLOCK_PATTERN.sub(replacer, original) - - if updated != original: - path.write_text(updated, encoding="utf-8") - return True - - return False - - -def main(): - changed = False - for filename in sys.argv[1:]: - path = Path(filename) - if fix_file(path): - print(f"Fixed {filename}") - changed = True - - if changed: - sys.exit(1) - - -if __name__ == "__main__": - main() diff --git a/scripts/enforce_named_placeholders.py b/scripts/enforce_named_placeholders.py deleted file mode 100755 index ecde483e6..000000000 --- a/scripts/enforce_named_placeholders.py +++ /dev/null @@ -1,85 +0,0 @@ -#!/usr/bin/env python3 -""" -Pre-commit hook to enforce named placeholders in translatable strings. - -gettext versions disagree on whether unnamed placeholders like `{}` are -python-brace-format, so makemessages output would differ between machines. -""" - -import ast -import string -import sys -from pathlib import Path - -GETTEXT_FUNCTIONS = { - "_", - "gettext", - "gettext_lazy", - "gettext_noop", - "ngettext", - "ngettext_lazy", - "pgettext", - "pgettext_lazy", - "npgettext", - "npgettext_lazy", -} - - -def function_name(node: ast.Call) -> str | None: - if isinstance(node.func, ast.Name): - return node.func.id - if isinstance(node.func, ast.Attribute): - return node.func.attr - return None - - -def has_unnamed_placeholder(text: str) -> bool: - try: - return any(field == "" for _, field, _, _ in string.Formatter().parse(text)) - except ValueError: - return False - - -def check_file(path: Path) -> list[str]: - tree = ast.parse(path.read_text(encoding="utf-8"), filename=str(path)) - errors = [] - for node in ast.walk(tree): - if ( - not isinstance(node, ast.Call) - or function_name(node) not in GETTEXT_FUNCTIONS - ): - continue - for arg in node.args: - # _("…{}…".format(x)): xgettext still extracts the literal - if ( - isinstance(arg, ast.Call) - and isinstance(arg.func, ast.Attribute) - and arg.func.attr == "format" - ): - arg = arg.func.value - if ( - isinstance(arg, ast.Constant) - and isinstance(arg.value, str) - and has_unnamed_placeholder(arg.value) - ): - errors.append( - f"{path}:{arg.lineno}: unnamed placeholder in {arg.value!r}, " - "use a named placeholder like {name} instead" - ) - return errors - - -def main(): - errors = [] - for filename in sys.argv[1:]: - errors.extend(check_file(Path(filename))) - - for error in errors: - print(error) - - if errors: - sys.exit(1) - - -if __name__ == "__main__": - main() diff --git a/scripts/ensure_consistent_dependencies.py b/scripts/ensure_consistent_dependencies.py deleted file mode 100755 index e4b8934d5..000000000 --- a/scripts/ensure_consistent_dependencies.py +++ /dev/null @@ -1,60 +0,0 @@ -#!/usr/bin/env python3 - -import re -import tomllib - -import yaml - - -def main(): - def python_to_js(python_package: str) -> str | None: - if python_package == "django-filingcabinet": - return "@okfde/filingcabinet" - - if python_package.startswith("froide"): - return python_package.replace("-", "_") - - uv_commit_re = re.compile(r"#([0-9a-f]+)$") - pnpm_commit_re = re.compile(r"tar\.gz\/([0-9a-f]+)") - - with ( - open("uv.lock", "rb") as uv_lock_fd, - open(file="pnpm-lock.yaml", mode="r") as pnpm_lock_fd, - ): - pnpm_docs = yaml.load_all(pnpm_lock_fd, yaml.SafeLoader) - - pnpm_lock = list(pnpm_docs)[-1] - - npm_packages = pnpm_lock["importers"]["."]["dependencies"] - - uv_lock = tomllib.load(uv_lock_fd) - - for python_module in uv_lock["package"]: - if "git" not in python_module["source"]: - continue - - python_module_name = python_module["name"] - npm_package_name = python_to_js(python_module_name) - - if not npm_package_name: - continue - - print("checking", python_module_name) - - python_version = uv_commit_re.search(python_module["source"]["git"]) - assert python_version - python_version = python_version.group(1) - - npm_version = pnpm_commit_re.search( - npm_packages[npm_package_name]["version"] - ) - assert npm_version - npm_version = npm_version.group(1) - - assert npm_version == python_version, ( - f"{python_module_name} versions differ in uv.lock and pnpm-lock.yaml ({python_version[:8]} vs. {npm_version[:8]}). Run `make dependencies` to fix this." - ) - - -if __name__ == "__main__": - main() diff --git a/scripts/relink_frontend.sh b/scripts/relink_frontend.sh deleted file mode 100755 index ff9a0ab41..000000000 --- a/scripts/relink_frontend.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/bash - -if [ -f "node_modules/.linked" ]; then - pnpm link "$(< node_modules/.linked)" -fi diff --git a/scripts/unlink_frontend.sh b/scripts/unlink_frontend.sh deleted file mode 100755 index 33a486bf8..000000000 --- a/scripts/unlink_frontend.sh +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/bash - -linked=$(pnpm list --json | jq -r '.[0].dependencies.[]|select(.version | startswith("link:"))') -packages=$(echo $linked | jq -r '.from') -paths=$(echo $linked | jq -r '.version|sub("link:";"")') - -if [ -z "$paths" ]; then - exit 0; -fi - -echo "$paths" > node_modules/.linked - -pnpm unlink "$packages" -git add pnpm-lock.yaml pnpm-workspace.yaml From 8f6670d82064735f8988ce877d738cbca1cf1f0b Mon Sep 17 00:00:00 2001 From: krmax44 Date: Mon, 23 Nov 2026 11:57:32 +0100 Subject: [PATCH 04/11] =?UTF-8?q?=E2=AC=86=EF=B8=8F=20upgrade=20postgres?= =?UTF-8?q?=20and=20elasticsearch?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- compose-dev.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compose-dev.yaml b/compose-dev.yaml index fd3bebbb2..e96c32acc 100644 --- a/compose-dev.yaml +++ b/compose-dev.yaml @@ -1,6 +1,6 @@ services: db: - image: postgis/postgis:16-3.4 + image: postgis/postgis:18-3.7 volumes: - pg-data:/var/lib/postgresql/ environment: @@ -10,7 +10,7 @@ services: ports: - 127.0.0.1:5432:5432 elasticsearch: - image: docker.elastic.co/elasticsearch/elasticsearch:8.14.3 + image: docker.elastic.co/elasticsearch/elasticsearch:8.19.25 volumes: - es-data:/usr/share/elasticsearch/data - es-logs:/var/log From b04c0a39c2c9338195fd1253d2b57aa48d45ad35 Mon Sep 17 00:00:00 2001 From: krmax44 Date: Mon, 23 Nov 2026 11:58:13 +0100 Subject: [PATCH 05/11] =?UTF-8?q?=F0=9F=91=B7=20upgrade=20and=20fix=20ci?= =?UTF-8?q?=20actions?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci.yml | 27 +++++++-------------------- 1 file changed, 7 insertions(+), 20 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9aa9f1e37..672094904 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,13 +10,13 @@ jobs: lint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v7 - uses: pnpm/setup@v3 with: cache: true - - uses: j178/prek-action@v1 + - uses: j178/prek-action@v3.1.1 env: - SKIP: makemessages-de + SKIP: checkmessages-de test: runs-on: ubuntu-latest @@ -24,11 +24,13 @@ jobs: matrix: python-version: ['3.12', '3.13', '3.14'] steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v7 - name: Install system-level dependencies run: sudo apt-get update && sudo apt-get install libgdal-dev gdal-bin libmagic-dev libmagickwand-dev libpoppler-cpp-dev poppler-utils ghostscript gettext + - name: Start services + run: docker compose -f compose-dev.yaml up --wait - name: Setup uv - uses: astral-sh/setup-uv@v8.0.0 + uses: astral-sh/setup-uv@v10.3.3 with: python-version: ${{ matrix.python-version }} activate-environment: true @@ -55,18 +57,3 @@ jobs: coverage report --format=markdown >> $GITHUB_STEP_SUMMARY env: DATABASE_URL: postgis://postgres:postgres@localhost/froide - - services: - postgres: - image: postgis/postgis:16-3.4 - env: - POSTGRES_USER: postgres - POSTGRES_PASSWORD: postgres - POSTGRES_DB: froide - ports: - - 5432:5432 - elasticsearch: - image: elasticsearch:8.14.3 - options: -e "discovery.type=single-node" -e "xpack.security.enabled=false" --expose 9200 --health-cmd "curl localhost:9200/_cluster/health" --health-interval 10s --health-timeout 5s --health-retries 10 - ports: - - 9200:9200 From 182ace3466423f420a357aba72f5ec200eb84d09 Mon Sep 17 00:00:00 2001 From: krmax44 Date: Mon, 23 Nov 2026 12:41:43 +0100 Subject: [PATCH 06/11] =?UTF-8?q?=F0=9F=9A=A8=20fix=20djlint=20errors?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .pre-commit-config.yaml | 2 +- .../templates/account/admin_send_mail.html | 4 +- .../account/templates/account/confirmed.html | 2 +- .../account/emails/confirmation_mail.html | 22 +- .../includes/change_password_form.html | 4 +- froide/account/templates/account/login.html | 6 +- froide/account/templates/account/new.html | 2 +- .../account/templates/account/new_terms.html | 2 +- .../account/password_reset_confirm.html | 8 +- froide/account/templates/account/profile.html | 13 +- froide/account/templates/account/reauth.html | 11 +- .../account/templates/account/settings.html | 33 +-- .../templates/account/settings_base.html | 9 +- froide/account/templates/account/show.html | 2 +- froide/account/templates/account/signup.html | 3 +- .../templates/campaign/request_banner.html | 3 +- .../templates/froide_comments/comment.html | 3 +- froide/document/templates/document/base.html | 2 +- .../templates/document/result_item.html | 14 +- .../filingcabinet/_set_description_form.html | 2 +- .../filingcabinet/_set_title_form.html | 2 +- .../filingcabinet/document_detail.html | 8 +- .../foirequest/foimessage/change_form.html | 3 +- .../templates/foirequest/_request_search.html | 5 +- .../foirequest/account/list_requests.html | 91 +++---- .../account/list_subscriptions.html | 2 +- .../foirequest/admin/add_to_project.html | 32 +-- .../foirequest/admin/decrypt_pdf.html | 32 +-- .../foirequest/admin/mark_same_as.html | 32 +-- .../templates/foirequest/admin_redeliver.html | 4 +- .../foirequest/attachment/manage.html | 2 +- .../templates/foirequest/attachment/show.html | 37 +-- .../foirequest/templates/foirequest/base.html | 2 +- .../foirequest/body/actions/escalate.html | 3 +- .../foirequest/body/actions/send_message.html | 26 +- .../foirequest/body/correspondence.html | 3 +- .../body/message/attachments/attachments.html | 4 +- .../body/message/attachments/item.html | 21 +- .../foirequest/body/message/message.html | 10 +- .../body/message/meta_container.html | 6 +- .../templates/foirequest/body/settings.html | 3 +- .../foirequest/foiproject_detail.html | 175 +++++++------ .../foirequest/header/breadcrumb.html | 1 + .../templates/foirequest/header/header.html | 11 +- .../templates/foirequest/header/info-box.html | 12 +- .../templates/foirequest/header/tabs.html | 2 - .../templates/foirequest/header/tour.html | 8 +- .../foirequest/templates/foirequest/list.html | 2 +- .../foirequest/pdf/message_letter.html | 4 +- .../foirequest/publicbody_upload.html | 5 +- .../templates/foirequest/redact.html | 11 +- .../templates/foirequest/request.html | 21 +- .../foirequest/templates/foirequest/show.html | 2 +- .../snippets/make_same_request.html | 4 +- .../foirequest/snippets/message_redact.html | 6 +- .../snippets/request_item_inner.html | 20 +- .../snippets/request_item_mini.html | 2 +- .../snippets/request_item_mini_pb.html | 2 +- .../admin/guide/guidance/change_form.html | 3 +- .../templates/helper/admin_base_action.html | 8 +- .../helper/forms/bootstrap_field.html | 6 +- .../helper/forms/bootstrap_field_stacked.html | 6 +- .../templates/helper/forms/field_footer.html | 4 +- .../helper/forms/widgets/input_option.html | 8 +- .../templates/helper/forms/widgets/radio.html | 10 +- froide/letter/templates/letter/default.html | 21 +- .../letter/templates/letter/pdf/default.html | 8 +- froide/letter/templates/letter/sent.html | 3 +- froide/locale/de/LC_MESSAGES/django.po | 38 ++- .../organization/organization_detail.html | 4 +- .../organization/organization_join.html | 2 +- .../organization/organization_list.html | 2 +- .../organization/organization_list_own.html | 13 +- .../organization_update_form.html | 3 +- .../problem/message_toolbar_item.html | 16 +- .../proof/templates/proof/proof_settings.html | 50 ++-- .../publicbody/publicbody/change_form.html | 6 +- .../publicbody/accept_proposals.html | 2 +- .../templates/publicbody/add_proposal.html | 2 +- .../publicbody/admin/match_georegions.html | 6 +- .../publicbody/admin/show_georegions.html | 4 +- .../publicbody/templates/publicbody/base.html | 2 +- .../templates/publicbody/jurisdiction.html | 9 +- .../publicbody/templates/publicbody/list.html | 2 +- .../publicbody/templates/publicbody/show.html | 10 +- .../templates/publicbody/show_foilaw.html | 6 +- .../publicbody/snippets/publicbody_item.html | 20 +- .../snippets/publicbody_proposals.html | 6 +- .../templates/searchalert/_alert_form.html | 3 +- froide/team/templates/team/team_detail.html | 8 +- froide/team/templates/team/team_join.html | 2 +- froide/team/templates/team/team_list.html | 11 +- .../templates/admin_utils/admin_tag_all.html | 4 +- froide/templates/django_json_widget.html | 2 +- froide/templates/emails/footer.html | 2 +- froide/templates/header.html | 14 +- froide/templates/help/base.html | 2 +- froide/templates/help/full_page.html | 2 +- froide/templates/index.html | 48 ++-- froide/templates/leaflet/widget.html | 6 +- froide/templates/mfa/auth_FIDO2.html | 5 +- froide/templates/mfa/auth_TOTP.html | 2 +- froide/templates/mfa/auth_recovery.html | 5 +- froide/templates/mfa/base.html | 2 +- froide/templates/mfa/base_create.html | 7 +- froide/templates/mfa/create_FIDO2.html | 2 +- froide/templates/mfa/create_TOTP.html | 2 +- .../templates/mfa/mfakey_confirm_delete.html | 2 +- froide/templates/mfa/mfakey_list.html | 3 +- froide/templates/scaffold.html | 3 +- froide/templates/snippets/breadcrumbs.html | 44 ++-- froide/templates/snippets/homepage_hero.html | 7 +- froide/templates/snippets/share_buttons.html | 39 +-- pyproject.toml | 5 +- uv.lock | 246 ++++++++++++++++++ 115 files changed, 911 insertions(+), 610 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6789e25b8..28fb5c861 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -16,7 +16,7 @@ repos: args: [--no-warn-ignored] - repo: https://github.com/Riverside-Healthcare/djLint - rev: v1.50.4 + rev: v1.54.0 hooks: - id: djlint-reformat-django - id: djlint-django diff --git a/froide/account/templates/account/admin_send_mail.html b/froide/account/templates/account/admin_send_mail.html index 1511851fd..04f96c398 100644 --- a/froide/account/templates/account/admin_send_mail.html +++ b/froide/account/templates/account/admin_send_mail.html @@ -1,10 +1,10 @@ {% extends "helper/admin_base_action.html" %} {% load i18n l10n %} {% block action_title %} - {% trans 'Send mail to users' %} + {% trans "Send mail to users" %} {% endblock %} {% block breadcrumbs_action_label %} - {% trans 'Send mail to users' %} + {% trans "Send mail to users" %} {% endblock %} {% block action_content %}
diff --git a/froide/account/templates/account/confirmed.html b/froide/account/templates/account/confirmed.html index 7240ee7bf..65458575a 100644 --- a/froide/account/templates/account/confirmed.html +++ b/froide/account/templates/account/confirmed.html @@ -1,4 +1,4 @@ -{% extends 'account/base.html' %} +{% extends "account/base.html" %} {% load i18n %} {% load static %} {% block title %} diff --git a/froide/account/templates/account/emails/confirmation_mail.html b/froide/account/templates/account/emails/confirmation_mail.html index 9cbde6cc3..c382fe5ec 100644 --- a/froide/account/templates/account/emails/confirmation_mail.html +++ b/froide/account/templates/account/emails/confirmation_mail.html @@ -1,13 +1,15 @@ {% load i18n %} -

{% blocktrans %}Hello {{ name }},

- -

This is an email from {{ site_name }} to confirm your email address.
-Please visit the link below:

-

Click here to confirm your email address

- -{% endblocktrans %} +{% blocktrans trimmed %} +

Hello {{ name }},

- {% blocktrans %}Cheers,
-{{ site_name }}{% endblocktrans %} + This is an email from {{ site_name }} to confirm your email address. +
+ Please visit the link below:

- {% include "emails/footer.html" %} +

Click here to confirm your email address

+{% endblocktrans %} +

+ {% blocktrans %}Cheers,
+{{ site_name }}{% endblocktrans %} +

+{% include "emails/footer.html" %} diff --git a/froide/account/templates/account/includes/change_password_form.html b/froide/account/templates/account/includes/change_password_form.html index 682655e2a..eba2614f9 100644 --- a/froide/account/templates/account/includes/change_password_form.html +++ b/froide/account/templates/account/includes/change_password_form.html @@ -29,6 +29,6 @@

{% if next %}{% endif %} - {% endrecentauthrequired %} - + {% endrecentauthrequired %} + diff --git a/froide/account/templates/account/login.html b/froide/account/templates/account/login.html index 47cd3c531..f37dd9395 100644 --- a/froide/account/templates/account/login.html +++ b/froide/account/templates/account/login.html @@ -23,7 +23,8 @@

{% blocktrans %}Log in{% endblocktrans %}

{% if next %}{% endif %} {% render_form form %}
- +
@@ -39,7 +40,8 @@

{% blocktrans %}In case you forgot your password...{% {% if next %}{% endif %} {% render_form reset_form %}
- +
diff --git a/froide/account/templates/account/new.html b/froide/account/templates/account/new.html index e41ba5447..ff01ffb2c 100644 --- a/froide/account/templates/account/new.html +++ b/froide/account/templates/account/new.html @@ -1,4 +1,4 @@ -{% extends 'account/base.html' %} +{% extends "account/base.html" %} {% load i18n %} {% load static %} {% load frontendbuild %} diff --git a/froide/account/templates/account/new_terms.html b/froide/account/templates/account/new_terms.html index 6924b7c6e..bbff59e66 100644 --- a/froide/account/templates/account/new_terms.html +++ b/froide/account/templates/account/new_terms.html @@ -1,4 +1,4 @@ -{% extends 'simple_base.html' %} +{% extends "simple_base.html" %} {% load i18n %} {% load form_helper %} {% block body %} diff --git a/froide/account/templates/account/password_reset_confirm.html b/froide/account/templates/account/password_reset_confirm.html index 62989ab70..93b0579fb 100644 --- a/froide/account/templates/account/password_reset_confirm.html +++ b/froide/account/templates/account/password_reset_confirm.html @@ -2,26 +2,26 @@ {% load i18n %} {% load form_helper %} {% block title %} - {% trans 'Password reset' %} + {% trans "Password reset" %} {% endblock %} {% block navbar %}{% endblock %} {% block app_body %} {% if validlink %}
-

{% trans 'Enter new password' %}

+

{% trans "Enter new password" %}

{% trans "Please enter your new password twice so we can verify you typed it in correctly." %}

{% csrf_token %} {% render_form form %}

- +

{% else %} -

{% trans 'Password reset unsuccessful' %}

+

{% trans "Password reset unsuccessful" %}

{% trans "The password reset link was invalid, possibly because it has already been used. Please request a new password reset." %}

diff --git a/froide/account/templates/account/profile.html b/froide/account/templates/account/profile.html index ae72c8393..6ce256331 100644 --- a/froide/account/templates/account/profile.html +++ b/froide/account/templates/account/profile.html @@ -1,4 +1,4 @@ -{% extends 'account/base.html' %} +{% extends "account/base.html" %} {% load i18n %} {% load markup %} {% load humanize %} @@ -26,7 +26,8 @@

{{ object.get_full_name }}

{% if object.organization_url and object.organization_name %}

- {{ object.organization_name }} + {{ object.organization_name }}

{% elif object.organization_name %} @@ -84,7 +85,9 @@

{{ object.get_full_name }}

{% translate "Most followed requests" %}

    {% for foirequest in top_followers %} -
  • {% include "foirequest/snippets/request_item.html" with object=foirequest heading_tag="h3" %}
  • +
  • + {% include "foirequest/snippets/request_item.html" with object=foirequest heading_tag="h3" %} +
  • {% endfor %}
@@ -117,7 +120,9 @@

{% translate "Last requests" %}

    {% for foirequest in foirequests %} -
  • {% include "foirequest/snippets/request_item.html" with object=foirequest heading_tag="h3" %}
  • +
  • + {% include "foirequest/snippets/request_item.html" with object=foirequest heading_tag="h3" %} +
  • {% endfor %}
diff --git a/froide/account/templates/account/reauth.html b/froide/account/templates/account/reauth.html index 9d07095c4..5f08983a7 100644 --- a/froide/account/templates/account/reauth.html +++ b/froide/account/templates/account/reauth.html @@ -26,12 +26,13 @@

{% if "FIDO2" in mfa_methods %}
  • {% translate "Use hardware security key" %}

    -
    + {% csrf_token %} {{ form.code.as_hidden }} {% if next %}{% endif %} - +
  • {% endif %} @@ -43,7 +44,8 @@

    {% translate "Use your authenticator app" %}

    {% render_field form.code %} {% if next %}{% endif %} - + {% endif %} @@ -56,7 +58,8 @@

    {% translate "Use your password" %}

    {{ form.hidden_email }} {% if next %}{% endif %} - + {% endif %} diff --git a/froide/account/templates/account/settings.html b/froide/account/templates/account/settings.html index b6765bbb1..473e05b9f 100644 --- a/froide/account/templates/account/settings.html +++ b/froide/account/templates/account/settings.html @@ -42,7 +42,8 @@

    {% trans "Account Settings" %}

    {% trans "You are still responsible for redacting attachments when they contain your personal information." %}

    - +
    @@ -95,7 +96,8 @@

    {% trans "Public profile" %}

    {% else %} {% render_form request.user.get_profile_form %} {% endif %} - + @@ -130,10 +132,11 @@

    {% translate "Setup two-factor login" %}

    {% else %}

    {% translate "You have not setup any two-factor login methods." %}

    {% endif %} -
    {% translate "Manage two-factor login methods" %} + {% translate "Manage two-factor login methods" %} {% endif %} - {% endrecentauthrequired %} - +{% endrecentauthrequired %} + {% block post_password %} {% endblock post_password %} @@ -142,8 +145,8 @@

    {% translate "Proofs" %}

    {% recentauthrequired "proofs" %} {% include "proof/proof_settings.html" %} - {% endrecentauthrequired %} -
    + {% endrecentauthrequired %} +
    @@ -153,8 +156,8 @@

    {% trans "External apps" %}

    {% trans "Show external apps with access to your account" %} - {% endrecentauthrequired %} -
    + {% endrecentauthrequired %} +
    @@ -166,8 +169,8 @@

    {% trans "Export your data" %}

    {% trans "We will generate a data export and notify you by email when it is ready." %}

    - {% endrecentauthrequired %} -
    + {% endrecentauthrequired %} +
    @@ -192,8 +195,8 @@

    - {% endrecentauthrequired %} - + {% endrecentauthrequired %} +

    {% blocktrans %}Developer{% endblocktrans %}

    @@ -202,7 +205,7 @@

    {% blocktrans %}Developer{% endblocktrans %}

    {% recentauthrequired "developer" %} {% trans "Your OAuth Applications" %} {% endrecentauthrequired %} - {% endif %} -
    + {% endif %} + {% endblock settings_body %} diff --git a/froide/account/templates/account/settings_base.html b/froide/account/templates/account/settings_base.html index 69d3eb9ce..7c8cbbdec 100644 --- a/froide/account/templates/account/settings_base.html +++ b/froide/account/templates/account/settings_base.html @@ -10,16 +10,19 @@