diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d3fc3a71..de6bf9d9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -493,6 +493,7 @@ jobs: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} tags: | type=ref,event=branch + type=ref,event=tag - name: Create multi-arch manifest and push working-directory: /tmp/digests diff --git a/AGENTS.md b/AGENTS.md index 3f9f6bf5..a14a2d41 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -88,7 +88,7 @@ Soft targets: file ≤ 500 lines, class ≤ 300, function ≤ 40, complexity ≤ - Conventional commits with scope: `feat(angular):`, `fix(python):`, `chore(build):`, `refactor(python):`, `docs:`, `ci:`. Reference issues (`(#123)`) in the subject or body. - **Never add AI attribution, advertising, or co-author lines** to commits, PR bodies, or comments. No `Co-Authored-By: Claude`, no "Generated with …" footers. - PR body: short summary, what was intentionally skipped and why, a test-plan checklist, and any size-delta or contract notes the issue asked for. Tick the corresponding checklist item in the tracking issue when a PR merges. -- CodeRabbit incremental reviews are off; trigger with a `@coderabbitai review` comment when a PR is ready. +- CodeRabbit incremental reviews are off. Do not trigger reviews (no `@coderabbitai review` comments) — the user triggers them. - Inline review comments must anchor to lines in the diff; verify a finding against current code before posting it. - Before each commit, review the diff for over-engineering. If the ponytail plugin () is installed, use its `ponytail:ponytail-review` skill; otherwise do a trim pass: remove speculative config, unused state, single-caller layers, and duplicate helpers. diff --git a/src/angular/package-lock.json b/src/angular/package-lock.json index 5503684f..ff01bd25 100644 --- a/src/angular/package-lock.json +++ b/src/angular/package-lock.json @@ -8,27 +8,27 @@ "name": "seedsync", "version": "1.0.3", "dependencies": { - "@angular/cdk": "^22.1.3", - "@angular/common": "^22.1.3", - "@angular/compiler": "^22.1.3", - "@angular/core": "^22.1.3", - "@angular/forms": "^22.1.3", - "@angular/platform-browser": "^22.1.3", - "@angular/router": "^22.1.3", + "@angular/cdk": "^22.1.4", + "@angular/common": "^22.1.4", + "@angular/compiler": "^22.1.4", + "@angular/core": "^22.1.4", + "@angular/forms": "^22.1.4", + "@angular/platform-browser": "^22.1.4", + "@angular/router": "^22.1.4", "bootstrap": "^5.3.8", "rxjs": "~7.8.0", "tslib": "^2.3.0" }, "devDependencies": { - "@angular/build": "^22.1.5", - "@angular/cli": "^22.1.5", - "@angular/compiler-cli": "^22.1.3", + "@angular/build": "^22.1.6", + "@angular/cli": "^22.1.6", + "@angular/compiler-cli": "^22.1.4", "@eslint/js": "^10.0.1", "angular-eslint": "22.1.0", - "eslint": "^10.8.1", + "eslint": "^10.9.1", "jsdom": "^30.0.1", "typescript": "~6.0.3", - "typescript-eslint": "8.67.0", + "typescript-eslint": "8.68.0", "vitest": "^4.1.11" } }, @@ -47,13 +47,13 @@ } }, "node_modules/@angular-devkit/architect": { - "version": "0.2201.5", - "resolved": "https://registry.npmjs.org/@angular-devkit/architect/-/architect-0.2201.5.tgz", - "integrity": "sha512-DAticcJ2tw3M+D1CH4HhlCgMK5tAb0CwSsnczNMJB9QgQsBC/JhOozQTvgnyCvagitX9u+408YcwEW/Wo2pnzA==", + "version": "0.2201.6", + "resolved": "https://registry.npmjs.org/@angular-devkit/architect/-/architect-0.2201.6.tgz", + "integrity": "sha512-oGQEdof2/1bZk58PN9dvpGi8pvtbgE5vkP1xRtCqN8dSVxwre1l0pKynOj/Uge1KxjCvs4c1QrQu0vsAnY0vpg==", "dev": true, "license": "MIT", "dependencies": { - "@angular-devkit/core": "22.1.5", + "@angular-devkit/core": "22.1.6", "rxjs": "7.8.2" }, "bin": { @@ -66,9 +66,9 @@ } }, "node_modules/@angular-devkit/core": { - "version": "22.1.5", - "resolved": "https://registry.npmjs.org/@angular-devkit/core/-/core-22.1.5.tgz", - "integrity": "sha512-HiY6d5dkIdJs5grP9OHvgkf14QOcDIo+hbuT7YKuLItQ++ZxCwUabJMLCCJ5R0KrstE5NqED0dNcyk5WD01t5Q==", + "version": "22.1.6", + "resolved": "https://registry.npmjs.org/@angular-devkit/core/-/core-22.1.6.tgz", + "integrity": "sha512-KLBsZoc2RhOy0xSdeYcLoSOqV/fBP3feBmhY9o12ry2IuyW/17sCmWr6XbIfTIYQN6M98Y1ewmwVNFsvV5b0gA==", "dev": true, "license": "MIT", "dependencies": { @@ -94,13 +94,13 @@ } }, "node_modules/@angular-devkit/schematics": { - "version": "22.1.5", - "resolved": "https://registry.npmjs.org/@angular-devkit/schematics/-/schematics-22.1.5.tgz", - "integrity": "sha512-HTmo9y8wjXKtJGVTYomTjZsjWzhirpu1pPRAzsVob3eiYOuxv1qDRAgWiHXNGp5CpnbHunZweXY/WffNGOFRyA==", + "version": "22.1.6", + "resolved": "https://registry.npmjs.org/@angular-devkit/schematics/-/schematics-22.1.6.tgz", + "integrity": "sha512-IbDO9KbQyQm20uinsfT8d9ZtQw41/WVutI/65mAw39WZfN8Ky+MOgOUJCGLiSccMprvZ9YdodBTnN9bLH149Ag==", "dev": true, "license": "MIT", "dependencies": { - "@angular-devkit/core": "22.1.5", + "@angular-devkit/core": "22.1.6", "jsonc-parser": "3.3.1", "magic-string": "1.0.0", "ora": "9.4.1", @@ -232,14 +232,14 @@ } }, "node_modules/@angular/build": { - "version": "22.1.5", - "resolved": "https://registry.npmjs.org/@angular/build/-/build-22.1.5.tgz", - "integrity": "sha512-YqsbHZK3/HFmLLhwxa5SpN+3ABoVo5GFLV0fiEXCQg2KC7gw2pL15x692jxrq8gEGzT7O27bnjWkvFZ0bBHCnw==", + "version": "22.1.6", + "resolved": "https://registry.npmjs.org/@angular/build/-/build-22.1.6.tgz", + "integrity": "sha512-J7JBd3hDAV4dlGNMavDC0KjtvbDd4KOddaom1inwkq92tYnD1ljmhDDigAsUBnRvQhJ82cvagD8zi0s9Ki4rTQ==", "dev": true, "license": "MIT", "dependencies": { "@ampproject/remapping": "2.3.0", - "@angular-devkit/architect": "0.2201.5", + "@angular-devkit/architect": "0.2201.6", "@babel/core": "8.0.1", "@babel/helper-annotate-as-pure": "8.0.0", "@babel/helper-split-export-declaration": "7.24.7", @@ -281,7 +281,7 @@ "@angular/platform-browser": "^22.0.0", "@angular/platform-server": "^22.0.0", "@angular/service-worker": "^22.0.0", - "@angular/ssr": "^22.1.5", + "@angular/ssr": "^22.1.6", "istanbul-lib-instrument": "^6.0.0", "karma": "^6.4.0", "less": "^4.2.0", @@ -349,9 +349,9 @@ } }, "node_modules/@angular/cdk": { - "version": "22.1.3", - "resolved": "https://registry.npmjs.org/@angular/cdk/-/cdk-22.1.3.tgz", - "integrity": "sha512-6N3S71J877j9zGpCqU0PDIP4AGQf+SjJrA1Pouy+xfC8GE8sfCyIVr0Y6qnpxr5D2k2lROykAMbQekZtKEiEeA==", + "version": "22.1.4", + "resolved": "https://registry.npmjs.org/@angular/cdk/-/cdk-22.1.4.tgz", + "integrity": "sha512-//KICh/rxeLbYLgNj8HawaliVAPNlSV0aRmki45Tf/YhoXVhzon9DfFqCs5u1cLvmMkMTHdFm5ghGTB8SUv3DA==", "license": "MIT", "dependencies": { "parse5": "^8.0.0", @@ -365,19 +365,19 @@ } }, "node_modules/@angular/cli": { - "version": "22.1.5", - "resolved": "https://registry.npmjs.org/@angular/cli/-/cli-22.1.5.tgz", - "integrity": "sha512-YZkhI64INQHJkZ13h2n0/0PBrQ5ZZvFGiprrDiCOLAD0y1fehguL0PGp9HxF3ZWf+xWRyP//tIte2gmyAaiWLw==", + "version": "22.1.6", + "resolved": "https://registry.npmjs.org/@angular/cli/-/cli-22.1.6.tgz", + "integrity": "sha512-HT3OzYkSpCyXMTgD5G1tsS7vkrY8cYJ/JgSjRjrpwOAooSMtKF1hv7BgBcn79sKg4eaiPLrDpQLXP93vHxgSFg==", "dev": true, "license": "MIT", "dependencies": { - "@angular-devkit/architect": "0.2201.5", - "@angular-devkit/core": "22.1.5", - "@angular-devkit/schematics": "22.1.5", + "@angular-devkit/architect": "0.2201.6", + "@angular-devkit/core": "22.1.6", + "@angular-devkit/schematics": "22.1.6", "@inquirer/prompts": "8.5.2", "@listr2/prompt-adapter-inquirer": "4.2.5", "@modelcontextprotocol/sdk": "1.30.0", - "@schematics/angular": "22.1.5", + "@schematics/angular": "22.1.6", "jsonc-parser": "3.3.1", "listr2": "11.0.0", "npm-package-arg": "14.0.0", @@ -396,9 +396,9 @@ } }, "node_modules/@angular/common": { - "version": "22.1.3", - "resolved": "https://registry.npmjs.org/@angular/common/-/common-22.1.3.tgz", - "integrity": "sha512-QtMkjhiRd0EnmKR50bw3WbCWYTi6CmA72nnSz1BLQPpaLSi2goloCrPPniHz8fP+w2ESrmmlOWxs1Da3COgnQg==", + "version": "22.1.4", + "resolved": "https://registry.npmjs.org/@angular/common/-/common-22.1.4.tgz", + "integrity": "sha512-UtWCloA/d0I5twV9Lu/Fcc7T6uQb40f/k0Hj5HLohIsiLTyvXVxWINBfa7LWWLtcq/0UOIY/yCs9Zq9Sj4dWqA==", "license": "MIT", "dependencies": { "tslib": "^2.3.0" @@ -407,14 +407,14 @@ "node": "^22.22.3 || ^24.15.0 || >=26.0.0" }, "peerDependencies": { - "@angular/core": "22.1.3", + "@angular/core": "22.1.4", "rxjs": "^6.5.3 || ^7.4.0" } }, "node_modules/@angular/compiler": { - "version": "22.1.3", - "resolved": "https://registry.npmjs.org/@angular/compiler/-/compiler-22.1.3.tgz", - "integrity": "sha512-L8Mw2r7bGG/obqgQC+RU3mdFJ3NtLgO5gWhEC1ylcHpLCMPIAXYsMKJIL8dnS78S1wXo/omXwmJ4FiIlCwWahg==", + "version": "22.1.4", + "resolved": "https://registry.npmjs.org/@angular/compiler/-/compiler-22.1.4.tgz", + "integrity": "sha512-o+W0shjR5KmPPWchFmqN9bLINYAy14zIW//g9T5WqKDMOqjt4IbeY6AKOoE1db/dXffprLEH9nyPOmi19iKNxg==", "license": "MIT", "dependencies": { "tslib": "^2.3.0" @@ -424,9 +424,9 @@ } }, "node_modules/@angular/compiler-cli": { - "version": "22.1.3", - "resolved": "https://registry.npmjs.org/@angular/compiler-cli/-/compiler-cli-22.1.3.tgz", - "integrity": "sha512-37lLaDp0RHWZ/lmJqCmIEr0HOM2D5ulHy61gqTBm7KRj3Y6ZaxR8B/JqZmeIpPzKFILVsga+NQ4A8apBUkmezw==", + "version": "22.1.4", + "resolved": "https://registry.npmjs.org/@angular/compiler-cli/-/compiler-cli-22.1.4.tgz", + "integrity": "sha512-h9CcVG614TJLbk+dswlzSjYARYJh2MLOEwcnpt9zUGtOffhrrSS9BFJGjSwzdDSVM3J5mvf5ZuW+0hPAuRRoOA==", "dev": true, "license": "MIT", "dependencies": { @@ -447,7 +447,7 @@ "node": "^22.22.3 || ^24.15.0 || >=26.0.0" }, "peerDependencies": { - "@angular/compiler": "22.1.3", + "@angular/compiler": "22.1.4", "typescript": ">=6.0 <6.1" }, "peerDependenciesMeta": { @@ -457,9 +457,9 @@ } }, "node_modules/@angular/core": { - "version": "22.1.3", - "resolved": "https://registry.npmjs.org/@angular/core/-/core-22.1.3.tgz", - "integrity": "sha512-313+Xkf970AmStJE0E/zNJW/9xvDExQG+6TNltBBl+KJsW0q5dffK2w2PQfV4mtTquBqYoeHSRsms4WgjBKL8g==", + "version": "22.1.4", + "resolved": "https://registry.npmjs.org/@angular/core/-/core-22.1.4.tgz", + "integrity": "sha512-0dW+lw8nHo6RGBUOXtjs02vjHIPJ8rEbw4fd0NH3Dii4p+gIB4ZaTw+o7Se3Nf4m1oZ8+2qAYmWVHXlfhKcCDg==", "license": "MIT", "dependencies": { "tslib": "^2.3.0" @@ -468,7 +468,7 @@ "node": "^22.22.3 || ^24.15.0 || >=26.0.0" }, "peerDependencies": { - "@angular/compiler": "22.1.3", + "@angular/compiler": "22.1.4", "rxjs": "^6.5.3 || ^7.4.0", "zone.js": "~0.15.0 || ~0.16.0" }, @@ -482,9 +482,9 @@ } }, "node_modules/@angular/forms": { - "version": "22.1.3", - "resolved": "https://registry.npmjs.org/@angular/forms/-/forms-22.1.3.tgz", - "integrity": "sha512-b4ual9pgfNqcnEHord50w960DDFIytG3Qb3bu2aCgzmagvRlg9wrtwQNqY+oqY2FVq7c9McNUN7MZRcWl9HNdQ==", + "version": "22.1.4", + "resolved": "https://registry.npmjs.org/@angular/forms/-/forms-22.1.4.tgz", + "integrity": "sha512-w8ZXe4oURrb/DS5zAFrR4AmGXC84sdLeOKXRM76ndRRgSCzyRLEe4wDU1KHnDejNVIGvoSZYJJjOajG1lpj8TA==", "license": "MIT", "dependencies": { "@standard-schema/spec": "^1.0.0", @@ -495,16 +495,16 @@ "node": "^22.22.3 || ^24.15.0 || >=26.0.0" }, "peerDependencies": { - "@angular/common": "22.1.3", - "@angular/core": "22.1.3", - "@angular/platform-browser": "22.1.3", + "@angular/common": "22.1.4", + "@angular/core": "22.1.4", + "@angular/platform-browser": "22.1.4", "rxjs": "^6.5.3 || ^7.4.0" } }, "node_modules/@angular/platform-browser": { - "version": "22.1.3", - "resolved": "https://registry.npmjs.org/@angular/platform-browser/-/platform-browser-22.1.3.tgz", - "integrity": "sha512-A8McE6AclwZa2ese4jMfZZu+qZfBFQ4Hl6CaMpzJ1C6Vv6+sXkLu9pouTosJEsUE+etVdepDsqau90lhzgw3Eg==", + "version": "22.1.4", + "resolved": "https://registry.npmjs.org/@angular/platform-browser/-/platform-browser-22.1.4.tgz", + "integrity": "sha512-zhEWnRShG6GjnEvCVROD68XfnrV6+HJ9bPjwZx4LsAz7spX823Nhiml8Uqpvijsa1w7UdWLU7nK/magr9IEMOQ==", "license": "MIT", "dependencies": { "tslib": "^2.3.0" @@ -513,9 +513,9 @@ "node": "^22.22.3 || ^24.15.0 || >=26.0.0" }, "peerDependencies": { - "@angular/animations": "22.1.3", - "@angular/common": "22.1.3", - "@angular/core": "22.1.3" + "@angular/animations": "22.1.4", + "@angular/common": "22.1.4", + "@angular/core": "22.1.4" }, "peerDependenciesMeta": { "@angular/animations": { @@ -524,9 +524,9 @@ } }, "node_modules/@angular/router": { - "version": "22.1.3", - "resolved": "https://registry.npmjs.org/@angular/router/-/router-22.1.3.tgz", - "integrity": "sha512-23owvZKCpdL7Yh3EzBj4OLf3x0z+jT9b57Qk96wdwI8Lsyf9L78/RJPYCutJ5r+zq3pFM/BHVKyd+2hkfH7N6Q==", + "version": "22.1.4", + "resolved": "https://registry.npmjs.org/@angular/router/-/router-22.1.4.tgz", + "integrity": "sha512-vCwJLRnFBSRH5LxSF8OXKBhdmJ526hVGb/5sfeLTQW/oWCdcfXb2RvHfB077m5cdqKX9sBwFVlkJ8Z8kgx/pLQ==", "license": "MIT", "dependencies": { "tslib": "^2.3.0" @@ -535,9 +535,9 @@ "node": "^22.22.3 || ^24.15.0 || >=26.0.0" }, "peerDependencies": { - "@angular/common": "22.1.3", - "@angular/core": "22.1.3", - "@angular/platform-browser": "22.1.3", + "@angular/common": "22.1.4", + "@angular/core": "22.1.4", + "@angular/platform-browser": "22.1.4", "rxjs": "^6.5.3 || ^7.4.0" } }, @@ -4069,390 +4069,15 @@ "dev": true, "license": "MIT" }, - "node_modules/@rollup/rollup-android-arm-eabi": { - "version": "4.60.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.60.2.tgz", - "integrity": "sha512-dnlp69efPPg6Uaw2dVqzWRfAWRnYVb1XJ8CyyhIbZeaq4CA5/mLeZ1IEt9QqQxmbdvagjLIm2ZL8BxXv5lH4Yw==", - "cpu": [ - "arm" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "android" - ], - "peer": true - }, - "node_modules/@rollup/rollup-android-arm64": { - "version": "4.60.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.60.2.tgz", - "integrity": "sha512-OqZTwDRDchGRHHm/hwLOL7uVPB9aUvI0am/eQuWMNyFHf5PSEQmyEeYYheA0EPPKUO/l0uigCp+iaTjoLjVoHg==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "android" - ], - "peer": true - }, - "node_modules/@rollup/rollup-darwin-arm64": { - "version": "4.60.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.60.2.tgz", - "integrity": "sha512-UwRE7CGpvSVEQS8gUMBe1uADWjNnVgP3Iusyda1nSRwNDCsRjnGc7w6El6WLQsXmZTbLZx9cecegumcitNfpmA==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "peer": true - }, - "node_modules/@rollup/rollup-darwin-x64": { - "version": "4.60.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.60.2.tgz", - "integrity": "sha512-gjEtURKLCC5VXm1I+2i1u9OhxFsKAQJKTVB8WvDAHF+oZlq0GTVFOlTlO1q3AlCTE/DF32c16ESvfgqR7343/g==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "peer": true - }, - "node_modules/@rollup/rollup-freebsd-arm64": { - "version": "4.60.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.60.2.tgz", - "integrity": "sha512-Bcl6CYDeAgE70cqZaMojOi/eK63h5Me97ZqAQoh77VPjMysA/4ORQBRGo3rRy45x4MzVlU9uZxs8Uwy7ZaKnBw==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "freebsd" - ], - "peer": true - }, - "node_modules/@rollup/rollup-freebsd-x64": { - "version": "4.60.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.60.2.tgz", - "integrity": "sha512-LU+TPda3mAE2QB0/Hp5VyeKJivpC6+tlOXd1VMoXV/YFMvk/MNk5iXeBfB4MQGRWyOYVJ01625vjkr0Az98OJQ==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "freebsd" - ], - "peer": true - }, - "node_modules/@rollup/rollup-linux-arm-gnueabihf": { - "version": "4.60.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.60.2.tgz", - "integrity": "sha512-2QxQrM+KQ7DAW4o22j+XZ6RKdxjLD7BOWTP0Bv0tmjdyhXSsr2Ul1oJDQqh9Zf5qOwTuTc7Ek83mOFaKnodPjg==", - "cpu": [ - "arm" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "peer": true - }, - "node_modules/@rollup/rollup-linux-arm-musleabihf": { - "version": "4.60.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.60.2.tgz", - "integrity": "sha512-TbziEu2DVsTEOPif2mKWkMeDMLoYjx95oESa9fkQQK7r/Orta0gnkcDpzwufEcAO2BLBsD7mZkXGFqEdMRRwfw==", - "cpu": [ - "arm" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "peer": true - }, - "node_modules/@rollup/rollup-linux-arm64-gnu": { - "version": "4.60.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.60.2.tgz", - "integrity": "sha512-bO/rVDiDUuM2YfuCUwZ1t1cP+/yqjqz+Xf2VtkdppefuOFS2OSeAfgafaHNkFn0t02hEyXngZkxtGqXcXwO8Rg==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "peer": true - }, - "node_modules/@rollup/rollup-linux-arm64-musl": { - "version": "4.60.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.60.2.tgz", - "integrity": "sha512-hr26p7e93Rl0Za+JwW7EAnwAvKkehh12BU1Llm9Ykiibg4uIr2rbpxG9WCf56GuvidlTG9KiiQT/TXT1yAWxTA==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "peer": true - }, - "node_modules/@rollup/rollup-linux-loong64-gnu": { - "version": "4.60.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.60.2.tgz", - "integrity": "sha512-pOjB/uSIyDt+ow3k/RcLvUAOGpysT2phDn7TTUB3n75SlIgZzM6NKAqlErPhoFU+npgY3/n+2HYIQVbF70P9/A==", - "cpu": [ - "loong64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "peer": true - }, - "node_modules/@rollup/rollup-linux-loong64-musl": { - "version": "4.60.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-musl/-/rollup-linux-loong64-musl-4.60.2.tgz", - "integrity": "sha512-2/w+q8jszv9Ww1c+6uJT3OwqhdmGP2/4T17cu8WuwyUuuaCDDJ2ojdyYwZzCxx0GcsZBhzi3HmH+J5pZNXnd+Q==", - "cpu": [ - "loong64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "peer": true - }, - "node_modules/@rollup/rollup-linux-ppc64-gnu": { - "version": "4.60.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.60.2.tgz", - "integrity": "sha512-11+aL5vKheYgczxtPVVRhdptAM2H7fcDR5Gw4/bTcteuZBlH4oP9f5s9zYO9aGZvoGeBpqXI/9TZZihZ609wKw==", - "cpu": [ - "ppc64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "peer": true - }, - "node_modules/@rollup/rollup-linux-ppc64-musl": { - "version": "4.60.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-musl/-/rollup-linux-ppc64-musl-4.60.2.tgz", - "integrity": "sha512-i16fokAGK46IVZuV8LIIwMdtqhin9hfYkCh8pf8iC3QU3LpwL+1FSFGej+O7l3E/AoknL6Dclh2oTdnRMpTzFQ==", - "cpu": [ - "ppc64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "peer": true - }, - "node_modules/@rollup/rollup-linux-riscv64-gnu": { - "version": "4.60.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.60.2.tgz", - "integrity": "sha512-49FkKS6RGQoriDSK/6E2GkAsAuU5kETFCh7pG4yD/ylj9rKhTmO3elsnmBvRD4PgJPds5W2PkhC82aVwmUcJ7A==", - "cpu": [ - "riscv64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "peer": true - }, - "node_modules/@rollup/rollup-linux-riscv64-musl": { - "version": "4.60.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.60.2.tgz", - "integrity": "sha512-mjYNkHPfGpUR00DuM1ZZIgs64Hpf4bWcz9Z41+4Q+pgDx73UwWdAYyf6EG/lRFldmdHHzgrYyge5akFUW0D3mQ==", - "cpu": [ - "riscv64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "peer": true - }, - "node_modules/@rollup/rollup-linux-s390x-gnu": { - "version": "4.60.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.60.2.tgz", - "integrity": "sha512-ALyvJz965BQk8E9Al/JDKKDLH2kfKFLTGMlgkAbbYtZuJt9LU8DW3ZoDMCtQpXAltZxwBHevXz5u+gf0yA0YoA==", - "cpu": [ - "s390x" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "peer": true - }, - "node_modules/@rollup/rollup-linux-x64-gnu": { - "version": "4.60.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.60.2.tgz", - "integrity": "sha512-UQjrkIdWrKI626Du8lCQ6MJp/6V1LAo2bOK9OTu4mSn8GGXIkPXk/Vsp4bLHCd9Z9Iz2OTEaokUE90VweJgIYQ==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "peer": true - }, - "node_modules/@rollup/rollup-linux-x64-musl": { - "version": "4.60.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.60.2.tgz", - "integrity": "sha512-bTsRGj6VlSdn/XD4CGyzMnzaBs9bsRxy79eTqTCBsA8TMIEky7qg48aPkvJvFe1HyzQ5oMZdg7AnVlWQSKLTnw==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "peer": true - }, - "node_modules/@rollup/rollup-openbsd-x64": { - "version": "4.60.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-openbsd-x64/-/rollup-openbsd-x64-4.60.2.tgz", - "integrity": "sha512-6d4Z3534xitaA1FcMWP7mQPq5zGwBmGbhphh2DwaA1aNIXUu3KTOfwrWpbwI4/Gr0uANo7NTtaykFyO2hPuFLg==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "openbsd" - ], - "peer": true - }, - "node_modules/@rollup/rollup-openharmony-arm64": { - "version": "4.60.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.60.2.tgz", - "integrity": "sha512-NetAg5iO2uN7eB8zE5qrZ3CSil+7IJt4WDFLcC75Ymywq1VZVD6qJ6EvNLjZ3rEm6gB7XW5JdT60c6MN35Z85Q==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "openharmony" - ], - "peer": true - }, - "node_modules/@rollup/rollup-win32-arm64-msvc": { - "version": "4.60.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.60.2.tgz", - "integrity": "sha512-NCYhOotpgWZ5kdxCZsv6Iudx0wX8980Q/oW4pNFNihpBKsDbEA1zpkfxJGC0yugsUuyDZ7gL37dbzwhR0VI7pQ==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ], - "peer": true - }, - "node_modules/@rollup/rollup-win32-ia32-msvc": { - "version": "4.60.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.60.2.tgz", - "integrity": "sha512-RXsaOqXxfoUBQoOgvmmijVxJnW2IGB0eoMO7F8FAjaj0UTywUO/luSqimWBJn04WNgUkeNhh7fs7pESXajWmkg==", - "cpu": [ - "ia32" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ], - "peer": true - }, - "node_modules/@rollup/rollup-win32-x64-gnu": { - "version": "4.60.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-gnu/-/rollup-win32-x64-gnu-4.60.2.tgz", - "integrity": "sha512-qdAzEULD+/hzObedtmV6iBpdL5TIbKVztGiK7O3/KYSf+HIzU257+MX1EXJcyIiDbMAqmbwaufcYPvyRryeZtA==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ], - "peer": true - }, - "node_modules/@rollup/rollup-win32-x64-msvc": { - "version": "4.60.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.60.2.tgz", - "integrity": "sha512-Nd/SgG27WoA9e+/TdK74KnHz852TLa94ovOYySo/yMPuTmpckK/jIF2jSwS3g7ELSKXK13/cVdmg1Z/DaCWKxA==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ], - "peer": true - }, "node_modules/@schematics/angular": { - "version": "22.1.5", - "resolved": "https://registry.npmjs.org/@schematics/angular/-/angular-22.1.5.tgz", - "integrity": "sha512-3UXlO4YoGgQ6nEBbCTGRRHTfQuDcKgHbRaiivzSinHzOYigsskwvloMsa0LCBCO/3uJpDIjJIyTW0XKhDti0iA==", + "version": "22.1.6", + "resolved": "https://registry.npmjs.org/@schematics/angular/-/angular-22.1.6.tgz", + "integrity": "sha512-RiD4OZJ4yuaM1aXb3pt1gjDSWwkP0jrgiCuoaBls1eabcrDmlsNuQv0ekxbcGgCRPdSJvmHRZIHHmFPzei8w3Q==", "dev": true, "license": "MIT", "dependencies": { - "@angular-devkit/core": "22.1.5", - "@angular-devkit/schematics": "22.1.5", + "@angular-devkit/core": "22.1.6", + "@angular-devkit/schematics": "22.1.6", "jsonc-parser": "3.3.1", "typescript": "6.0.3" }, @@ -4533,17 +4158,17 @@ "license": "MIT" }, "node_modules/@typescript-eslint/eslint-plugin": { - "version": "8.67.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.67.0.tgz", - "integrity": "sha512-Un7Heoyj65NREbKAyIrFxeM143NZpExWmy1Nep4DLeQOeLlTeumPjoNKnBrU5D5moWXbPJgRa5Uwcdu0faVNGQ==", + "version": "8.68.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.68.0.tgz", + "integrity": "sha512-WASHDpCm6qO5jj9g1a+8NiW5+GCkAyLReR56/4VruYmNgfUmqpxOfZ2Yfb8xGfJPWv5Qi6LSD8sXdces3vbp/Q==", "dev": true, "license": "MIT", "dependencies": { "@eslint-community/regexpp": "^4.12.2", - "@typescript-eslint/scope-manager": "8.67.0", - "@typescript-eslint/type-utils": "8.67.0", - "@typescript-eslint/utils": "8.67.0", - "@typescript-eslint/visitor-keys": "8.67.0", + "@typescript-eslint/scope-manager": "8.68.0", + "@typescript-eslint/type-utils": "8.68.0", + "@typescript-eslint/utils": "8.68.0", + "@typescript-eslint/visitor-keys": "8.68.0", "ignore": "^7.0.5", "natural-compare": "^1.4.0", "ts-api-utils": "^2.5.0" @@ -4556,22 +4181,22 @@ "url": "https://opencollective.com/typescript-eslint" }, "peerDependencies": { - "@typescript-eslint/parser": "^8.67.0", + "@typescript-eslint/parser": "^8.68.0", "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0", "typescript": ">=4.8.4 <6.1.0" } }, "node_modules/@typescript-eslint/parser": { - "version": "8.67.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.67.0.tgz", - "integrity": "sha512-fUBfTuuEulWqX6V8+O3PtScV01tzYYRUDTAirHFKoRAt7nOzoGiPt0M/bB47wWNy0coOOcgEwAMUtBpykMxl6w==", + "version": "8.68.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.68.0.tgz", + "integrity": "sha512-fHq2VC1kpyYfvEcbiMjOpySY4WS7voEp89yAThrHRX5sm9j2lzYppCb2umFMEed4fWcyeLjHxrz0mpjNBaBxMQ==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/scope-manager": "8.67.0", - "@typescript-eslint/types": "8.67.0", - "@typescript-eslint/typescript-estree": "8.67.0", - "@typescript-eslint/visitor-keys": "8.67.0", + "@typescript-eslint/scope-manager": "8.68.0", + "@typescript-eslint/types": "8.68.0", + "@typescript-eslint/typescript-estree": "8.68.0", + "@typescript-eslint/visitor-keys": "8.68.0", "debug": "^4.4.3" }, "engines": { @@ -4587,14 +4212,14 @@ } }, "node_modules/@typescript-eslint/project-service": { - "version": "8.67.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.67.0.tgz", - "integrity": "sha512-cvE8c7ulYeXN9fYuszhCeCsbzyVEXuhrRCybnBre7TUmqb5nRmBfQAwCj0O3WJFDeyAZt4VYv51vMCC9LHSdYw==", + "version": "8.68.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.68.0.tgz", + "integrity": "sha512-5GQtWZCXFcFYux955pvoS02WLc49pXNlvIxocKjS0clvwo3in1RdlzVKyiqQH9vE5AKWFLTaUgeQkOrTS+0Qxw==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/tsconfig-utils": "^8.67.0", - "@typescript-eslint/types": "^8.67.0", + "@typescript-eslint/tsconfig-utils": "^8.68.0", + "@typescript-eslint/types": "^8.68.0", "debug": "^4.4.3" }, "engines": { @@ -4609,14 +4234,14 @@ } }, "node_modules/@typescript-eslint/scope-manager": { - "version": "8.67.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.67.0.tgz", - "integrity": "sha512-EgvsleTwS4E+WzzSvem8fAUubLwatMNF1B5hHSLQxcvs7q2dtRhGyujHwLJSYlG41niJ7GP24Aha2+0mb1b2kg==", + "version": "8.68.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.68.0.tgz", + "integrity": "sha512-T5eXpcaJNg8bhjHJ8Rjp68Vq/QBteYtTKY8TZqVNPaUbuz0f6jI9t6aDkylwvalpAB9XTTFeFOjrjXAZ3YvmVA==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/types": "8.67.0", - "@typescript-eslint/visitor-keys": "8.67.0" + "@typescript-eslint/types": "8.68.0", + "@typescript-eslint/visitor-keys": "8.68.0" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -4627,9 +4252,9 @@ } }, "node_modules/@typescript-eslint/tsconfig-utils": { - "version": "8.67.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.67.0.tgz", - "integrity": "sha512-vV+LUSv5njUWsknE71fqKTlXUva+R76SaeORd6Zojcunk/6DvKFXONU3BrAs2H49mbygUXt6gbYunzwqNwlhdg==", + "version": "8.68.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.68.0.tgz", + "integrity": "sha512-F7zrGQfiJHojPwi8vhxZQC1tWtJzvL74cK/nqri2lk8YUXvYaYwl263xOJ69jDWPUk1hmcdoayFwk9lX09npVw==", "dev": true, "license": "MIT", "engines": { @@ -4644,15 +4269,15 @@ } }, "node_modules/@typescript-eslint/type-utils": { - "version": "8.67.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.67.0.tgz", - "integrity": "sha512-aVWDXbRmdXO9siTfX4ditQI1T9+zVcNazT48EJCD0v40/9RIFoUgZ05CmGEq9H2gixRpjUn/iplwvlcvutJW/Q==", + "version": "8.68.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.68.0.tgz", + "integrity": "sha512-X77zqoY1EjeWGs/0JNxeaMfp5C5lIz4Tw8y66F1Ne8Faq6g424sBNYM6xBAqElfGZPLpWS+CZAp0DXyKDzWiHg==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/types": "8.67.0", - "@typescript-eslint/typescript-estree": "8.67.0", - "@typescript-eslint/utils": "8.67.0", + "@typescript-eslint/types": "8.68.0", + "@typescript-eslint/typescript-estree": "8.68.0", + "@typescript-eslint/utils": "8.68.0", "debug": "^4.4.3", "ts-api-utils": "^2.5.0" }, @@ -4669,9 +4294,9 @@ } }, "node_modules/@typescript-eslint/types": { - "version": "8.67.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.67.0.tgz", - "integrity": "sha512-sBtgslww8nsMYUjhdPBiSyUqSzT8uR6g93A2QXnQC8+cGdjz0CyaOdqHDRJb1AtORbZCNUJBBeFA/tNR2uQmww==", + "version": "8.68.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.68.0.tgz", + "integrity": "sha512-9RnpsGJjrAllCMefGVVsImJM24YurhC0Q1h4UbvivtvOqXmR/vEJge2OoE++z9m6hyg8T1Q8t5SNT6tHSbrxcg==", "dev": true, "license": "MIT", "engines": { @@ -4683,16 +4308,16 @@ } }, "node_modules/@typescript-eslint/typescript-estree": { - "version": "8.67.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.67.0.tgz", - "integrity": "sha512-EKQBCE9yNlRJYm7jdTW5AhDacDUmSwQb0FAJAmK2EKYrNXIsa2vxcSZx6PvJ/dEdI6lS+Y9W+EXckLj0iPFGcw==", + "version": "8.68.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.68.0.tgz", + "integrity": "sha512-OKKsD0tYmoNiU5PW2zehO1yO56jYOm1ShYlxon/Z0SJNidAkdVg86eg9ruRuoXf8xfnuWZGbwDsStkoXbZtIIA==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/project-service": "8.67.0", - "@typescript-eslint/tsconfig-utils": "8.67.0", - "@typescript-eslint/types": "8.67.0", - "@typescript-eslint/visitor-keys": "8.67.0", + "@typescript-eslint/project-service": "8.68.0", + "@typescript-eslint/tsconfig-utils": "8.68.0", + "@typescript-eslint/types": "8.68.0", + "@typescript-eslint/visitor-keys": "8.68.0", "debug": "^4.4.3", "minimatch": "^10.2.2", "semver": "^7.7.3", @@ -4711,16 +4336,16 @@ } }, "node_modules/@typescript-eslint/utils": { - "version": "8.67.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.67.0.tgz", - "integrity": "sha512-U9D1FdwEWBwok3hxxSdhclMb0twvt9QnjIQ0VfQ1AiX2epnpSgv2ubVDsayOFyY8K6FX+AQ7E0FKWVG3iKsj1A==", + "version": "8.68.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.68.0.tgz", + "integrity": "sha512-PB5gJMMOg0Q5P1tsgWtEAqQacJXq0qEqRHDX/YJ4FaTMLfZPpHB3gjl2EJuiZyPABxmj4ZQYiY9m1bdAJ5y7tQ==", "dev": true, "license": "MIT", "dependencies": { "@eslint-community/eslint-utils": "^4.9.1", - "@typescript-eslint/scope-manager": "8.67.0", - "@typescript-eslint/types": "8.67.0", - "@typescript-eslint/typescript-estree": "8.67.0" + "@typescript-eslint/scope-manager": "8.68.0", + "@typescript-eslint/types": "8.68.0", + "@typescript-eslint/typescript-estree": "8.68.0" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -4735,13 +4360,13 @@ } }, "node_modules/@typescript-eslint/visitor-keys": { - "version": "8.67.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.67.0.tgz", - "integrity": "sha512-fkv8dHRDqfGtTHuJeebdrQ7cX6Ad4WAS00rgHh9UGvMycF1mjBfsxry1XsLIFhWZ6Judlh6UdzK+TYlbpCXgnA==", + "version": "8.68.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.68.0.tgz", + "integrity": "sha512-YR65gGdGvTUAWLldC3xLOvOzamdGzB4A5/N8rehEaHs3Zvoe39BhgY+u0SPch1OvrVTfLcc55wsSgK2NcnTS/A==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/types": "8.67.0", + "@typescript-eslint/types": "8.68.0", "eslint-visitor-keys": "^5.0.0" }, "engines": { @@ -5912,9 +5537,9 @@ } }, "node_modules/eslint": { - "version": "10.8.1", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-10.8.1.tgz", - "integrity": "sha512-wqA7W2jbsC/BnV9Iv1UZpKVFkO1AdNoSmYW8NWG4HNOBbkAMvIqDZ27pI2f07dqn583NcIC44ckjAcOXDL1QbQ==", + "version": "10.9.1", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-10.9.1.tgz", + "integrity": "sha512-9VaAkDURekixUQJy0oJYl2DcN6oKMfxay7XzaGYAWQwsb6qfKf+x76R2k1L8kb1boc+FyCAaTA9GmiKaaiaF+A==", "dev": true, "license": "MIT", "workspaces": [ @@ -8260,62 +7885,6 @@ "url": "https://github.com/sponsors/Boshen" } }, - "node_modules/rollup": { - "version": "4.60.2", - "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.60.2.tgz", - "integrity": "sha512-J9qZyW++QK/09NyN/zeO0dG/1GdGfyp9lV8ajHnRVLfo/uFsbji5mHnDgn/qYdUHyCkM2N+8VyspgZclfAh0eQ==", - "dev": true, - "license": "MIT", - "optional": true, - "peer": true, - "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.60.2", - "@rollup/rollup-android-arm64": "4.60.2", - "@rollup/rollup-darwin-arm64": "4.60.2", - "@rollup/rollup-darwin-x64": "4.60.2", - "@rollup/rollup-freebsd-arm64": "4.60.2", - "@rollup/rollup-freebsd-x64": "4.60.2", - "@rollup/rollup-linux-arm-gnueabihf": "4.60.2", - "@rollup/rollup-linux-arm-musleabihf": "4.60.2", - "@rollup/rollup-linux-arm64-gnu": "4.60.2", - "@rollup/rollup-linux-arm64-musl": "4.60.2", - "@rollup/rollup-linux-loong64-gnu": "4.60.2", - "@rollup/rollup-linux-loong64-musl": "4.60.2", - "@rollup/rollup-linux-ppc64-gnu": "4.60.2", - "@rollup/rollup-linux-ppc64-musl": "4.60.2", - "@rollup/rollup-linux-riscv64-gnu": "4.60.2", - "@rollup/rollup-linux-riscv64-musl": "4.60.2", - "@rollup/rollup-linux-s390x-gnu": "4.60.2", - "@rollup/rollup-linux-x64-gnu": "4.60.2", - "@rollup/rollup-linux-x64-musl": "4.60.2", - "@rollup/rollup-openbsd-x64": "4.60.2", - "@rollup/rollup-openharmony-arm64": "4.60.2", - "@rollup/rollup-win32-arm64-msvc": "4.60.2", - "@rollup/rollup-win32-ia32-msvc": "4.60.2", - "@rollup/rollup-win32-x64-gnu": "4.60.2", - "@rollup/rollup-win32-x64-msvc": "4.60.2", - "fsevents": "~2.3.2" - } - }, - "node_modules/rollup/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==", - "dev": true, - "license": "MIT", - "optional": true, - "peer": true - }, "node_modules/router": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/router/-/router-2.2.0.tgz", @@ -8897,16 +8466,16 @@ } }, "node_modules/typescript-eslint": { - "version": "8.67.0", - "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.67.0.tgz", - "integrity": "sha512-S2udFs8tCKEKffuJ4TB1idGUZiXdCPGi3IPBGWXarbLQ5UPXORV8QEVzJ4gCRduURMb5EkpNCdjbk0eDIuI8Yg==", + "version": "8.68.0", + "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.68.0.tgz", + "integrity": "sha512-MHy0Y0ynqeEbx/S45+i/bBssdy3X6KNBfmJAP35GrgtNxu2TQ5K5xsFDhAnmsq1jvpdoZOPG1LGtJo0HWqYCrQ==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/eslint-plugin": "8.67.0", - "@typescript-eslint/parser": "8.67.0", - "@typescript-eslint/typescript-estree": "8.67.0", - "@typescript-eslint/utils": "8.67.0" + "@typescript-eslint/eslint-plugin": "8.68.0", + "@typescript-eslint/parser": "8.68.0", + "@typescript-eslint/typescript-estree": "8.68.0", + "@typescript-eslint/utils": "8.68.0" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" diff --git a/src/angular/package.json b/src/angular/package.json index 7a18ae0e..c36c10c9 100644 --- a/src/angular/package.json +++ b/src/angular/package.json @@ -24,27 +24,27 @@ "private": true, "packageManager": "npm@10.9.2", "dependencies": { - "@angular/cdk": "^22.1.3", - "@angular/common": "^22.1.3", - "@angular/compiler": "^22.1.3", - "@angular/core": "^22.1.3", - "@angular/forms": "^22.1.3", - "@angular/platform-browser": "^22.1.3", - "@angular/router": "^22.1.3", + "@angular/cdk": "^22.1.4", + "@angular/common": "^22.1.4", + "@angular/compiler": "^22.1.4", + "@angular/core": "^22.1.4", + "@angular/forms": "^22.1.4", + "@angular/platform-browser": "^22.1.4", + "@angular/router": "^22.1.4", "bootstrap": "^5.3.8", "rxjs": "~7.8.0", "tslib": "^2.3.0" }, "devDependencies": { - "@angular/build": "^22.1.5", - "@angular/cli": "^22.1.5", - "@angular/compiler-cli": "^22.1.3", + "@angular/build": "^22.1.6", + "@angular/cli": "^22.1.6", + "@angular/compiler-cli": "^22.1.4", "@eslint/js": "^10.0.1", "angular-eslint": "22.1.0", - "eslint": "^10.8.1", + "eslint": "^10.9.1", "jsdom": "^30.0.1", "typescript": "~6.0.3", - "typescript-eslint": "8.67.0", + "typescript-eslint": "8.68.0", "vitest": "^4.1.11" } } diff --git a/src/angular/src/app/models/file-action.ts b/src/angular/src/app/models/file-action.ts new file mode 100644 index 00000000..adf171f2 --- /dev/null +++ b/src/angular/src/app/models/file-action.ts @@ -0,0 +1,61 @@ +import { ViewFile } from './view-file'; + +/** The six per-file commands the backend exposes. */ +export enum FileAction { + QUEUE, + STOP, + EXTRACT, + VALIDATE, + DELETE_LOCAL, + DELETE_REMOTE +} + +export interface FileActionSpec { + /** URL verb in `/server/command//` — a backend contract. */ + readonly urlSegment: string; + /** Noun used in debug logs (" model file: ..."). */ + readonly logNoun: string; + /** Capability flag gating the action for a view file. */ + readonly isAllowed: (file: ViewFile) => boolean; + /** Max concurrent requests for the bulk variant. */ + readonly bulkConcurrency: number; +} + +export const FILE_ACTIONS: Record = { + [FileAction.QUEUE]: { + urlSegment: 'queue', + logNoun: 'Queue', + isAllowed: (f) => f.isQueueable, + bulkConcurrency: Infinity, + }, + [FileAction.STOP]: { + urlSegment: 'stop', + logNoun: 'Stop', + isAllowed: (f) => f.isStoppable, + bulkConcurrency: Infinity, + }, + [FileAction.EXTRACT]: { + urlSegment: 'extract', + logNoun: 'Extract', + isAllowed: (f) => f.isExtractable && f.isArchive, + bulkConcurrency: Infinity, + }, + [FileAction.VALIDATE]: { + urlSegment: 'validate', + logNoun: 'Validate', + isAllowed: (f) => f.isValidatable, + bulkConcurrency: Infinity, + }, + [FileAction.DELETE_LOCAL]: { + urlSegment: 'delete_local', + logNoun: 'Locally delete', + isAllowed: (f) => f.isLocallyDeletable, + bulkConcurrency: 4, + }, + [FileAction.DELETE_REMOTE]: { + urlSegment: 'delete_remote', + logNoun: 'Remotely delete', + isAllowed: (f) => f.isRemotelyDeletable, + bulkConcurrency: 4, + }, +}; diff --git a/src/angular/src/app/pages/files/bulk-action-bar.component.spec.ts b/src/angular/src/app/pages/files/bulk-action-bar.component.spec.ts index 1e9a55e3..de70968c 100644 --- a/src/angular/src/app/pages/files/bulk-action-bar.component.spec.ts +++ b/src/angular/src/app/pages/files/bulk-action-bar.component.spec.ts @@ -1,6 +1,7 @@ import { describe, it, expect, beforeEach, afterEach, vi } from 'vitest'; import { TestBed, ComponentFixture } from '@angular/core/testing'; import { BulkActionBarComponent } from './bulk-action-bar.component'; +import { FileAction } from '../../models/file-action'; describe('BulkActionBarComponent', () => { let fixture: ComponentFixture; @@ -45,52 +46,52 @@ describe('BulkActionBarComponent', () => { expect(countSpan.textContent).toContain('7 selected'); }); - it('should emit queueEvent when Queue button is clicked', () => { - let emitted = false; - component.queueEvent.subscribe(() => (emitted = true)); + it('should emit QUEUE when Queue button is clicked', () => { + let emitted: FileAction | null = null; + component.actionEvent.subscribe((a) => (emitted = a)); const btn = findButtonByText('Queue'); btn.click(); - expect(emitted).toBe(true); + expect(emitted).toBe(FileAction.QUEUE); }); - it('should emit stopEvent when Stop button is clicked', () => { - let emitted = false; - component.stopEvent.subscribe(() => (emitted = true)); + it('should emit STOP when Stop button is clicked', () => { + let emitted: FileAction | null = null; + component.actionEvent.subscribe((a) => (emitted = a)); const btn = findButtonByText('Stop'); btn.click(); - expect(emitted).toBe(true); + expect(emitted).toBe(FileAction.STOP); }); - it('should emit deleteLocalEvent only on the second Delete Local click', () => { - let emitCount = 0; - component.deleteLocalEvent.subscribe(() => (emitCount += 1)); + it('should emit DELETE_LOCAL only on the second Delete Local click', () => { + const emitted: FileAction[] = []; + component.actionEvent.subscribe((a) => emitted.push(a)); // First click arms the confirm, does NOT emit findButtonByText('Delete Local').click(); - expect(emitCount).toBe(0); + expect(emitted).toEqual([]); // Second click emits fixture.detectChanges(); findButtonByText('Confirm?').click(); - expect(emitCount).toBe(1); + expect(emitted).toEqual([FileAction.DELETE_LOCAL]); }); - it('should emit deleteRemoteEvent only on the second Delete Remote click', () => { - let emitCount = 0; - component.deleteRemoteEvent.subscribe(() => (emitCount += 1)); + it('should emit DELETE_REMOTE only on the second Delete Remote click', () => { + const emitted: FileAction[] = []; + component.actionEvent.subscribe((a) => emitted.push(a)); // First click arms the confirm, does NOT emit findButtonByText('Delete Remote').click(); - expect(emitCount).toBe(0); + expect(emitted).toEqual([]); // Second click emits fixture.detectChanges(); findButtonByText('Confirm?').click(); - expect(emitCount).toBe(1); + expect(emitted).toEqual([FileAction.DELETE_REMOTE]); }); it('should emit clearEvent when Clear button is clicked', () => { @@ -140,7 +141,7 @@ describe('BulkActionBarComponent inline bulk delete confirmation', () => { } it('first click on Delete Local sets confirming state and does not emit', () => { - const spy = vi.spyOn(component.deleteLocalEvent, 'emit'); + const spy = vi.spyOn(component.actionEvent, 'emit'); component.onDeleteLocal(); @@ -149,7 +150,7 @@ describe('BulkActionBarComponent inline bulk delete confirmation', () => { }); it('second click on Delete Local emits event and clears state', () => { - const spy = vi.spyOn(component.deleteLocalEvent, 'emit'); + const spy = vi.spyOn(component.actionEvent, 'emit'); component.onDeleteLocal(); expect(component.confirmingDelete).toBe('local'); @@ -160,7 +161,7 @@ describe('BulkActionBarComponent inline bulk delete confirmation', () => { }); it('first click on Delete Remote sets confirming state and does not emit', () => { - const spy = vi.spyOn(component.deleteRemoteEvent, 'emit'); + const spy = vi.spyOn(component.actionEvent, 'emit'); component.onDeleteRemote(); @@ -169,7 +170,7 @@ describe('BulkActionBarComponent inline bulk delete confirmation', () => { }); it('second click on Delete Remote emits event and clears state', () => { - const spy = vi.spyOn(component.deleteRemoteEvent, 'emit'); + const spy = vi.spyOn(component.actionEvent, 'emit'); component.onDeleteRemote(); expect(component.confirmingDelete).toBe('remote'); diff --git a/src/angular/src/app/pages/files/bulk-action-bar.component.ts b/src/angular/src/app/pages/files/bulk-action-bar.component.ts index 8dba8107..0117b663 100644 --- a/src/angular/src/app/pages/files/bulk-action-bar.component.ts +++ b/src/angular/src/app/pages/files/bulk-action-bar.component.ts @@ -2,6 +2,7 @@ import { Component, ChangeDetectionStrategy, ChangeDetectorRef, OnDestroy, input, output, inject } from '@angular/core'; import { DoubleClickConfirm } from '../../common/double-click-confirm'; +import { FileAction } from '../../models/file-action'; @Component({ selector: 'app-bulk-action-bar', @@ -9,8 +10,8 @@ import { DoubleClickConfirm } from '../../common/double-click-confirm'; template: `
{{ count() }} selected - - + +
diff --git a/src/angular/src/app/pages/files/file-list.component.spec.ts b/src/angular/src/app/pages/files/file-list.component.spec.ts index 96a8bd14..70891704 100644 --- a/src/angular/src/app/pages/files/file-list.component.spec.ts +++ b/src/angular/src/app/pages/files/file-list.component.spec.ts @@ -13,27 +13,20 @@ import { ViewFile, ViewFileStatus } from '../../models/view-file'; import { ViewFileOptions, SortMethod } from '../../models/view-file-options'; import { fileKey } from '../../services/files/file-key'; import { FileActionEvent } from './file.component'; +import { FileAction } from '../../models/file-action'; interface MockViewFileService { filteredFiles$: Observable; checked$: Observable>; setSelected: ReturnType; unsetSelected: ReturnType; - queue: ReturnType; - stop: ReturnType; - extract: ReturnType; - validate: ReturnType; - deleteLocal: ReturnType; - deleteRemote: ReturnType; + command: ReturnType; cleanupLocal: ReturnType; toggleCheck: ReturnType; shiftCheck: ReturnType; checkAll: ReturnType; uncheckAll: ReturnType; - bulkQueue: ReturnType; - bulkStop: ReturnType; - bulkDeleteLocal: ReturnType; - bulkDeleteRemote: ReturnType; + bulkCommand: ReturnType; } interface MockNotificationService { @@ -41,8 +34,8 @@ interface MockNotificationService { hide: ReturnType; } -function makeActionEvent(file: ViewFile): FileActionEvent { - return { file, clearActiveAction: vi.fn() }; +function makeActionEvent(file: ViewFile, action: FileAction = FileAction.QUEUE): FileActionEvent { + return { action, file, clearActiveAction: vi.fn() }; } function makeViewFile(overrides: Partial = {}): ViewFile { @@ -103,21 +96,13 @@ describe('FileListComponent', () => { checked$: checkedSubject.asObservable(), setSelected: vi.fn(), unsetSelected: vi.fn(), - queue: vi.fn().mockReturnValue(EMPTY), - stop: vi.fn().mockReturnValue(EMPTY), - extract: vi.fn().mockReturnValue(EMPTY), - validate: vi.fn().mockReturnValue(EMPTY), - deleteLocal: vi.fn().mockReturnValue(EMPTY), - deleteRemote: vi.fn().mockReturnValue(EMPTY), + command: vi.fn().mockReturnValue(EMPTY), cleanupLocal: vi.fn().mockReturnValue(EMPTY), toggleCheck: vi.fn(), shiftCheck: vi.fn(), checkAll: vi.fn(), uncheckAll: vi.fn(), - bulkQueue: vi.fn().mockReturnValue(EMPTY), - bulkStop: vi.fn().mockReturnValue(EMPTY), - bulkDeleteLocal: vi.fn().mockReturnValue(EMPTY), - bulkDeleteRemote: vi.fn().mockReturnValue(EMPTY), + bulkCommand: vi.fn().mockReturnValue(EMPTY), }; mockNotifService = { show: vi.fn(), hide: vi.fn() }; @@ -352,58 +337,20 @@ describe('FileListComponent', () => { // --- Individual file actions --- - it('should call viewFileService.queue on onQueue', () => { - const file = makeViewFile({ name: 'queue-me.txt' }); - mockViewFileService.queue.mockReturnValue(of({ success: true, data: 'ok', errorMessage: null })); + it.each([ + ['QUEUE', FileAction.QUEUE], + ['STOP', FileAction.STOP], + ['EXTRACT', FileAction.EXTRACT], + ['VALIDATE', FileAction.VALIDATE], + ['DELETE_LOCAL', FileAction.DELETE_LOCAL], + ['DELETE_REMOTE', FileAction.DELETE_REMOTE], + ] as const)('should dispatch %s through viewFileService.command on onAction', (_label, action) => { + const file = makeViewFile({ name: 'act-on-me.txt' }); + mockViewFileService.command.mockReturnValue(of({ success: true, data: 'ok', errorMessage: null })); - component.onQueue(makeActionEvent(file)); + component.onAction(makeActionEvent(file, action)); - expect(mockViewFileService.queue).toHaveBeenCalledWith(file); - }); - - it('should call viewFileService.stop on onStop', () => { - const file = makeViewFile({ name: 'stop-me.txt' }); - mockViewFileService.stop.mockReturnValue(of({ success: true, data: 'ok', errorMessage: null })); - - component.onStop(makeActionEvent(file)); - - expect(mockViewFileService.stop).toHaveBeenCalledWith(file); - }); - - it('should call viewFileService.extract on onExtract', () => { - const file = makeViewFile({ name: 'extract-me.txt' }); - mockViewFileService.extract.mockReturnValue(of({ success: true, data: 'ok', errorMessage: null })); - - component.onExtract(makeActionEvent(file)); - - expect(mockViewFileService.extract).toHaveBeenCalledWith(file); - }); - - it('should call viewFileService.validate on onValidate', () => { - const file = makeViewFile({ name: 'validate-me.txt' }); - mockViewFileService.validate.mockReturnValue(of({ success: true, data: 'ok', errorMessage: null })); - - component.onValidate(makeActionEvent(file)); - - expect(mockViewFileService.validate).toHaveBeenCalledWith(file); - }); - - it('should call viewFileService.deleteLocal on onDeleteLocal', () => { - const file = makeViewFile({ name: 'del-local.txt' }); - mockViewFileService.deleteLocal.mockReturnValue(of({ success: true, data: 'ok', errorMessage: null })); - - component.onDeleteLocal(makeActionEvent(file)); - - expect(mockViewFileService.deleteLocal).toHaveBeenCalledWith(file); - }); - - it('should call viewFileService.deleteRemote on onDeleteRemote', () => { - const file = makeViewFile({ name: 'del-remote.txt' }); - mockViewFileService.deleteRemote.mockReturnValue(of({ success: true, data: 'ok', errorMessage: null })); - - component.onDeleteRemote(makeActionEvent(file)); - - expect(mockViewFileService.deleteRemote).toHaveBeenCalledWith(file); + expect(mockViewFileService.command).toHaveBeenCalledWith(action, file); }); it('should call viewFileService.cleanupLocal on onCleanupLocal', () => { @@ -420,11 +367,11 @@ describe('FileListComponent', () => { it('shows a DANGER banner and clears activeAction when an action fails', () => { const file = makeViewFile({ name: 'fail-me.txt' }); const event = makeActionEvent(file); - mockViewFileService.queue.mockReturnValue( + mockViewFileService.command.mockReturnValue( of({ success: false, data: null, errorMessage: 'Boom' }), ); - component.onQueue(event); + component.onAction(event); expect(mockNotifService.show).toHaveBeenCalledTimes(1); const notif = mockNotifService.show.mock.calls[0][0]; @@ -435,11 +382,11 @@ describe('FileListComponent', () => { it('falls back to a generic message when a failed reaction has no errorMessage', () => { const event = makeActionEvent(makeViewFile()); - mockViewFileService.stop.mockReturnValue( + mockViewFileService.command.mockReturnValue( of({ success: false, data: null, errorMessage: null }), ); - component.onStop(event); + component.onAction(event); expect(mockNotifService.show).toHaveBeenCalledTimes(1); expect(mockNotifService.show.mock.calls[0][0].text).toBe('Action failed'); @@ -449,11 +396,11 @@ describe('FileListComponent', () => { it('does not show a banner or clear activeAction on a successful action', () => { const logger = TestBed.inject(LoggerService); const event = makeActionEvent(makeViewFile()); - mockViewFileService.validate.mockReturnValue( + mockViewFileService.command.mockReturnValue( of({ success: true, data: 'ok', errorMessage: null }), ); - component.onValidate(event); + component.onAction(event); expect(mockNotifService.show).not.toHaveBeenCalled(); expect(event.clearActiveAction).not.toHaveBeenCalled(); @@ -462,11 +409,11 @@ describe('FileListComponent', () => { it('shows a DANGER banner and clears activeAction when the action stream errors', () => { const event = makeActionEvent(makeViewFile()); - mockViewFileService.deleteRemote.mockReturnValue( + mockViewFileService.command.mockReturnValue( throwError(() => new Error('net')), ); - component.onDeleteRemote(event); + component.onAction(event); expect(mockNotifService.show).toHaveBeenCalledTimes(1); expect(mockNotifService.show.mock.calls[0][0].level).toBe(NotificationLevel.DANGER); @@ -475,36 +422,17 @@ describe('FileListComponent', () => { // --- Bulk actions --- - it('should call viewFileService.bulkQueue on onBulkQueue', () => { - mockViewFileService.bulkQueue.mockReturnValue(of([])); - - component.onBulkQueue(); - - expect(mockViewFileService.bulkQueue).toHaveBeenCalled(); - }); - - it('should call viewFileService.bulkStop on onBulkStop', () => { - mockViewFileService.bulkStop.mockReturnValue(of([])); - - component.onBulkStop(); - - expect(mockViewFileService.bulkStop).toHaveBeenCalled(); - }); - - it('should call viewFileService.bulkDeleteLocal on onBulkDeleteLocal', () => { - mockViewFileService.bulkDeleteLocal.mockReturnValue(of([])); - - component.onBulkDeleteLocal(); - - expect(mockViewFileService.bulkDeleteLocal).toHaveBeenCalled(); - }); - - it('should call viewFileService.bulkDeleteRemote on onBulkDeleteRemote', () => { - mockViewFileService.bulkDeleteRemote.mockReturnValue(of([])); + it.each([ + ['QUEUE', FileAction.QUEUE], + ['STOP', FileAction.STOP], + ['DELETE_LOCAL', FileAction.DELETE_LOCAL], + ['DELETE_REMOTE', FileAction.DELETE_REMOTE], + ] as const)('should dispatch bulk %s through viewFileService.bulkCommand on onBulkAction', (_label, action) => { + mockViewFileService.bulkCommand.mockReturnValue(of([])); - component.onBulkDeleteRemote(); + component.onBulkAction(action); - expect(mockViewFileService.bulkDeleteRemote).toHaveBeenCalled(); + expect(mockViewFileService.bulkCommand).toHaveBeenCalledWith(action); }); // --- Track-by function --- @@ -523,12 +451,12 @@ describe('FileListComponent', () => { it('should log failures and show a DANGER banner from bulk action responses', () => { const logger = TestBed.inject(LoggerService); - mockViewFileService.bulkQueue.mockReturnValue(of([ + mockViewFileService.bulkCommand.mockReturnValue(of([ { success: true, data: 'ok', errorMessage: null }, { success: false, data: null, errorMessage: 'Failed' }, ])); - component.onBulkQueue(); + component.onBulkAction(FileAction.QUEUE); expect(logger.error).toHaveBeenCalled(); expect(logger.warn).toHaveBeenCalled(); @@ -539,23 +467,23 @@ describe('FileListComponent', () => { }); it('should not show a banner when all bulk items succeed', () => { - mockViewFileService.bulkDeleteLocal.mockReturnValue(of([ + mockViewFileService.bulkCommand.mockReturnValue(of([ { success: true, data: 'ok', errorMessage: null }, { success: true, data: 'ok2', errorMessage: null }, ])); - component.onBulkDeleteLocal(); + component.onBulkAction(FileAction.DELETE_LOCAL); expect(mockNotifService.show).not.toHaveBeenCalled(); }); it('should log info for successful bulk items', () => { const logger = TestBed.inject(LoggerService); - mockViewFileService.bulkStop.mockReturnValue(of([ + mockViewFileService.bulkCommand.mockReturnValue(of([ { success: true, data: 'stopped', errorMessage: null }, ])); - component.onBulkStop(); + component.onBulkAction(FileAction.STOP); expect(logger.info).toHaveBeenCalledWith('stopped'); }); diff --git a/src/angular/src/app/pages/files/file-list.component.ts b/src/angular/src/app/pages/files/file-list.component.ts index 27876184..de9dc253 100644 --- a/src/angular/src/app/pages/files/file-list.component.ts +++ b/src/angular/src/app/pages/files/file-list.component.ts @@ -24,7 +24,8 @@ import { LoggerService } from '../../services/utils/logger.service'; import { NotificationService } from '../../services/utils/notification.service'; import { NotificationLevel, createNotification } from '../../models/notification'; import { fileKey } from '../../services/files/file-key'; -import { FileComponent, FileActionEvent } from './file.component'; +import { FileAction } from '../../models/file-action'; +import { FileComponent, FileActionEvent, FileCleanupEvent } from './file.component'; import { BulkActionBarComponent } from './bulk-action-bar.component'; const MOBILE_FILE_LIST_QUERY = '(max-width: 600px)'; @@ -144,8 +145,8 @@ export class FileListComponent implements AfterViewInit, OnDestroy { } } - onQueue(event: FileActionEvent): void { - this.viewFileService.queue(event.file).pipe( + onAction(event: FileActionEvent): void { + this.viewFileService.command(event.action, event.file).pipe( takeUntilDestroyed(this.destroyRef), ).subscribe({ next: (data) => this.handleActionResponse(data, event), @@ -153,52 +154,7 @@ export class FileListComponent implements AfterViewInit, OnDestroy { }); } - onStop(event: FileActionEvent): void { - this.viewFileService.stop(event.file).pipe( - takeUntilDestroyed(this.destroyRef), - ).subscribe({ - next: (data) => this.handleActionResponse(data, event), - error: (err) => this.handleActionError(err, event), - }); - } - - onExtract(event: FileActionEvent): void { - this.viewFileService.extract(event.file).pipe( - takeUntilDestroyed(this.destroyRef), - ).subscribe({ - next: (data) => this.handleActionResponse(data, event), - error: (err) => this.handleActionError(err, event), - }); - } - - onValidate(event: FileActionEvent): void { - this.viewFileService.validate(event.file).pipe( - takeUntilDestroyed(this.destroyRef), - ).subscribe({ - next: (data) => this.handleActionResponse(data, event), - error: (err) => this.handleActionError(err, event), - }); - } - - onDeleteLocal(event: FileActionEvent): void { - this.viewFileService.deleteLocal(event.file).pipe( - takeUntilDestroyed(this.destroyRef), - ).subscribe({ - next: (data) => this.handleActionResponse(data, event), - error: (err) => this.handleActionError(err, event), - }); - } - - onDeleteRemote(event: FileActionEvent): void { - this.viewFileService.deleteRemote(event.file).pipe( - takeUntilDestroyed(this.destroyRef), - ).subscribe({ - next: (data) => this.handleActionResponse(data, event), - error: (err) => this.handleActionError(err, event), - }); - } - - onCleanupLocal(event: FileActionEvent): void { + onCleanupLocal(event: FileCleanupEvent): void { this.viewFileService.cleanupLocal(event.file).pipe( takeUntilDestroyed(this.destroyRef), ).subscribe({ @@ -207,7 +163,7 @@ export class FileListComponent implements AfterViewInit, OnDestroy { }); } - private handleActionResponse(reaction: WebReaction, event: FileActionEvent): void { + private handleActionResponse(reaction: WebReaction, event: Pick): void { if (reaction.success) { this.logger.info(reaction.data); } else { @@ -215,7 +171,7 @@ export class FileListComponent implements AfterViewInit, OnDestroy { } } - private handleActionError(err: unknown, event: FileActionEvent): void { + private handleActionError(err: unknown, event: Pick): void { this.failAction('Action failed', event); this.logger.error('Action failed:', err); } @@ -223,7 +179,7 @@ export class FileListComponent implements AfterViewInit, OnDestroy { // A backend rejection leaves the file model unchanged, so the child's // ngOnChanges can't recover the row. Surface the error and clear the child's // activeAction so the buttons re-enable and the spinner stops without a reload. - private failAction(text: string, event: FileActionEvent): void { + private failAction(text: string, event: Pick): void { this.notifService.show(createNotification(NotificationLevel.DANGER, text, true)); event.clearActiveAction(); this.logger.error(text); @@ -245,10 +201,9 @@ export class FileListComponent implements AfterViewInit, OnDestroy { this.viewFileService.uncheckAll(); } - onBulkQueue(): void { this.handleBulkResponse(this.viewFileService.bulkQueue()); } - onBulkStop(): void { this.handleBulkResponse(this.viewFileService.bulkStop()); } - onBulkDeleteLocal(): void { this.handleBulkResponse(this.viewFileService.bulkDeleteLocal()); } - onBulkDeleteRemote(): void { this.handleBulkResponse(this.viewFileService.bulkDeleteRemote()); } + onBulkAction(action: FileAction): void { + this.handleBulkResponse(this.viewFileService.bulkCommand(action)); + } private handleBulkResponse(action$: Observable): void { action$.pipe( diff --git a/src/angular/src/app/pages/files/file.component.html b/src/angular/src/app/pages/files/file.component.html index cfa17278..e912f424 100644 --- a/src/angular/src/app/pages/files/file.component.html +++ b/src/angular/src/app/pages/files/file.component.html @@ -141,41 +141,41 @@