Geplante Requests
-Automationen
-| Name | -Nächster Lauf | -Letzter Lauf | -Status | -#Läufe | -Aktionen | -
|---|---|---|---|---|---|
| - | - | - | - - | -- | - |
diff --git a/backend/Dockerfile b/backend/Dockerfile index ef04ec6..2bd7794 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -1,7 +1,9 @@ -FROM node:22-alpine +FROM node:24-alpine WORKDIR /app +ENV CXXFLAGS="-std=c++20" + COPY package*.json ./ RUN apk add --no-cache python3 make g++ \ diff --git a/backend/package-lock.json b/backend/package-lock.json new file mode 100644 index 0000000..0b8d133 --- /dev/null +++ b/backend/package-lock.json @@ -0,0 +1,1752 @@ +{ + "name": "fb-tracker-backend", + "version": "1.0.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "fb-tracker-backend", + "version": "1.0.0", + "dependencies": { + "better-sqlite3": "^12.5.0", + "cors": "^2.8.5", + "express": "^4.18.2", + "nodemailer": "^7.0.11", + "uuid": "^9.0.1" + }, + "devDependencies": { + "nodemon": "^3.0.2" + } + }, + "node_modules/accepts": { + "version": "1.3.8", + "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz", + "integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==", + "license": "MIT", + "dependencies": { + "mime-types": "~2.1.34", + "negotiator": "0.6.3" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/anymatch": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", + "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", + "dev": true, + "license": "ISC", + "dependencies": { + "normalize-path": "^3.0.0", + "picomatch": "^2.0.4" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/array-flatten": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", + "integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==", + "license": "MIT" + }, + "node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "dev": true, + "license": "MIT" + }, + "node_modules/base64-js": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", + "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT" + }, + "node_modules/better-sqlite3": { + "version": "12.5.0", + "resolved": "https://registry.npmjs.org/better-sqlite3/-/better-sqlite3-12.5.0.tgz", + "integrity": "sha512-WwCZ/5Diz7rsF29o27o0Gcc1Du+l7Zsv7SYtVPG0X3G/uUI1LqdxrQI7c9Hs2FWpqXXERjW9hp6g3/tH7DlVKg==", + "hasInstallScript": true, + "license": "MIT", + "dependencies": { + "bindings": "^1.5.0", + "prebuild-install": "^7.1.1" + }, + "engines": { + "node": "20.x || 22.x || 23.x || 24.x || 25.x" + } + }, + "node_modules/binary-extensions": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.3.0.tgz", + "integrity": "sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/bindings": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/bindings/-/bindings-1.5.0.tgz", + "integrity": "sha512-p2q/t/mhvuOj/UeLlV6566GD/guowlr0hHxClI0W9m7MWYkL1F0hLo+0Aexs9HSPCtR1SXQ0TD3MMKrXZajbiQ==", + "license": "MIT", + "dependencies": { + "file-uri-to-path": "1.0.0" + } + }, + "node_modules/bl": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/bl/-/bl-4.1.0.tgz", + "integrity": "sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==", + "license": "MIT", + "dependencies": { + "buffer": "^5.5.0", + "inherits": "^2.0.4", + "readable-stream": "^3.4.0" + } + }, + "node_modules/body-parser": { + "version": "1.20.4", + "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.4.tgz", + "integrity": "sha512-ZTgYYLMOXY9qKU/57FAo8F+HA2dGX7bqGc71txDRC1rS4frdFI5R7NhluHxH6M0YItAP0sHB4uqAOcYKxO6uGA==", + "license": "MIT", + "dependencies": { + "bytes": "~3.1.2", + "content-type": "~1.0.5", + "debug": "2.6.9", + "depd": "2.0.0", + "destroy": "~1.2.0", + "http-errors": "~2.0.1", + "iconv-lite": "~0.4.24", + "on-finished": "~2.4.1", + "qs": "~6.14.0", + "raw-body": "~2.5.3", + "type-is": "~1.6.18", + "unpipe": "~1.0.0" + }, + "engines": { + "node": ">= 0.8", + "npm": "1.2.8000 || >= 1.4.16" + } + }, + "node_modules/brace-expansion": { + "version": "1.1.12", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz", + "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/braces": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", + "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", + "dev": true, + "license": "MIT", + "dependencies": { + "fill-range": "^7.1.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/buffer": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", + "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT", + "dependencies": { + "base64-js": "^1.3.1", + "ieee754": "^1.1.13" + } + }, + "node_modules/bytes": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", + "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/call-bind-apply-helpers": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz", + "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/call-bound": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.4.tgz", + "integrity": "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==", + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.2", + "get-intrinsic": "^1.3.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/chokidar": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz", + "integrity": "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==", + "dev": true, + "license": "MIT", + "dependencies": { + "anymatch": "~3.1.2", + "braces": "~3.0.2", + "glob-parent": "~5.1.2", + "is-binary-path": "~2.1.0", + "is-glob": "~4.0.1", + "normalize-path": "~3.0.0", + "readdirp": "~3.6.0" + }, + "engines": { + "node": ">= 8.10.0" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + }, + "optionalDependencies": { + "fsevents": "~2.3.2" + } + }, + "node_modules/chownr": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/chownr/-/chownr-1.1.4.tgz", + "integrity": "sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg==", + "license": "ISC" + }, + "node_modules/concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", + "dev": true, + "license": "MIT" + }, + "node_modules/content-disposition": { + "version": "0.5.4", + "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz", + "integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==", + "license": "MIT", + "dependencies": { + "safe-buffer": "5.2.1" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/content-type": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz", + "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/cookie": { + "version": "0.7.2", + "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.7.2.tgz", + "integrity": "sha512-yki5XnKuf750l50uGTllt6kKILY4nQ1eNIQatoXEByZ5dWgnKqbnqmTrBE5B4N7lrMJKQ2ytWMiTO2o0v6Ew/w==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/cookie-signature": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.7.tgz", + "integrity": "sha512-NXdYc3dLr47pBkpUCHtKSwIOQXLVn8dZEuywboCOJY/osA0wFSLlSawr3KN8qXJEyX66FcONTH8EIlVuK0yyFA==", + "license": "MIT" + }, + "node_modules/cors": { + "version": "2.8.5", + "resolved": "https://registry.npmjs.org/cors/-/cors-2.8.5.tgz", + "integrity": "sha512-KIHbLJqu73RGr/hnbrO9uBeixNGuvSQjul/jdFvS/KFSIH1hWVd1ng7zOHx+YrEfInLG7q4n6GHQ9cDtxv/P6g==", + "license": "MIT", + "dependencies": { + "object-assign": "^4", + "vary": "^1" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "license": "MIT", + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/decompress-response": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-6.0.0.tgz", + "integrity": "sha512-aW35yZM6Bb/4oJlZncMH2LCoZtJXTRxES17vE3hoRiowU2kWHaJKFkSBDnDR+cm9J+9QhXmREyIfv0pji9ejCQ==", + "license": "MIT", + "dependencies": { + "mimic-response": "^3.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/deep-extend": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz", + "integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==", + "license": "MIT", + "engines": { + "node": ">=4.0.0" + } + }, + "node_modules/depd": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", + "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/destroy": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz", + "integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==", + "license": "MIT", + "engines": { + "node": ">= 0.8", + "npm": "1.2.8000 || >= 1.4.16" + } + }, + "node_modules/detect-libc": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz", + "integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==", + "license": "Apache-2.0", + "engines": { + "node": ">=8" + } + }, + "node_modules/dunder-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", + "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==", + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.1", + "es-errors": "^1.3.0", + "gopd": "^1.2.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/ee-first": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", + "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==", + "license": "MIT" + }, + "node_modules/encodeurl": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-2.0.0.tgz", + "integrity": "sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/end-of-stream": { + "version": "1.4.5", + "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.5.tgz", + "integrity": "sha512-ooEGc6HP26xXq/N+GCGOT0JKCLDGrq2bQUZrQ7gyrJiZANJ/8YDTxTpQBXGMn+WbIQXNVpyWymm7KYVICQnyOg==", + "license": "MIT", + "dependencies": { + "once": "^1.4.0" + } + }, + "node_modules/es-define-property": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz", + "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-errors": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", + "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-object-atoms": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz", + "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/escape-html": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", + "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==", + "license": "MIT" + }, + "node_modules/etag": { + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", + "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/expand-template": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/expand-template/-/expand-template-2.0.3.tgz", + "integrity": "sha512-XYfuKMvj4O35f/pOXLObndIRvyQ+/+6AhODh+OKWj9S9498pHHn/IMszH+gt0fBCRWMNfk1ZSp5x3AifmnI2vg==", + "license": "(MIT OR WTFPL)", + "engines": { + "node": ">=6" + } + }, + "node_modules/express": { + "version": "4.22.1", + "resolved": "https://registry.npmjs.org/express/-/express-4.22.1.tgz", + "integrity": "sha512-F2X8g9P1X7uCPZMA3MVf9wcTqlyNp7IhH5qPCI0izhaOIYXaW9L535tGA3qmjRzpH+bZczqq7hVKxTR4NWnu+g==", + "license": "MIT", + "dependencies": { + "accepts": "~1.3.8", + "array-flatten": "1.1.1", + "body-parser": "~1.20.3", + "content-disposition": "~0.5.4", + "content-type": "~1.0.4", + "cookie": "~0.7.1", + "cookie-signature": "~1.0.6", + "debug": "2.6.9", + "depd": "2.0.0", + "encodeurl": "~2.0.0", + "escape-html": "~1.0.3", + "etag": "~1.8.1", + "finalhandler": "~1.3.1", + "fresh": "~0.5.2", + "http-errors": "~2.0.0", + "merge-descriptors": "1.0.3", + "methods": "~1.1.2", + "on-finished": "~2.4.1", + "parseurl": "~1.3.3", + "path-to-regexp": "~0.1.12", + "proxy-addr": "~2.0.7", + "qs": "~6.14.0", + "range-parser": "~1.2.1", + "safe-buffer": "5.2.1", + "send": "~0.19.0", + "serve-static": "~1.16.2", + "setprototypeof": "1.2.0", + "statuses": "~2.0.1", + "type-is": "~1.6.18", + "utils-merge": "1.0.1", + "vary": "~1.1.2" + }, + "engines": { + "node": ">= 0.10.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/file-uri-to-path": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/file-uri-to-path/-/file-uri-to-path-1.0.0.tgz", + "integrity": "sha512-0Zt+s3L7Vf1biwWZ29aARiVYLx7iMGnEUl9x33fbB/j3jR81u/O2LbqK+Bm1CDSNDKVtJ/YjwY7TUd5SkeLQLw==", + "license": "MIT" + }, + "node_modules/fill-range": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", + "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", + "dev": true, + "license": "MIT", + "dependencies": { + "to-regex-range": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/finalhandler": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.3.2.tgz", + "integrity": "sha512-aA4RyPcd3badbdABGDuTXCMTtOneUCAYH/gxoYRTZlIJdF0YPWuGqiAsIrhNnnqdXGswYk6dGujem4w80UJFhg==", + "license": "MIT", + "dependencies": { + "debug": "2.6.9", + "encodeurl": "~2.0.0", + "escape-html": "~1.0.3", + "on-finished": "~2.4.1", + "parseurl": "~1.3.3", + "statuses": "~2.0.2", + "unpipe": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/forwarded": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz", + "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/fresh": { + "version": "0.5.2", + "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", + "integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/fs-constants": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs-constants/-/fs-constants-1.0.0.tgz", + "integrity": "sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==", + "license": "MIT" + }, + "node_modules/fsevents": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/function-bind": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", + "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/get-intrinsic": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz", + "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==", + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.2", + "es-define-property": "^1.0.1", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.1.1", + "function-bind": "^1.1.2", + "get-proto": "^1.0.1", + "gopd": "^1.2.0", + "has-symbols": "^1.1.0", + "hasown": "^2.0.2", + "math-intrinsics": "^1.1.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/get-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz", + "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==", + "license": "MIT", + "dependencies": { + "dunder-proto": "^1.0.1", + "es-object-atoms": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/github-from-package": { + "version": "0.0.0", + "resolved": "https://registry.npmjs.org/github-from-package/-/github-from-package-0.0.0.tgz", + "integrity": "sha512-SyHy3T1v2NUXn29OsWdxmK6RwHD+vkj3v8en8AOBZ1wBQ/hCAQ5bAQTD02kW4W9tUp/3Qh6J8r9EvntiyCmOOw==", + "license": "MIT" + }, + "node_modules/glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dev": true, + "license": "ISC", + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/gopd": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", + "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/has-symbols": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", + "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/hasown": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", + "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", + "license": "MIT", + "dependencies": { + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/http-errors": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.1.tgz", + "integrity": "sha512-4FbRdAX+bSdmo4AUFuS0WNiPz8NgFt+r8ThgNWmlrjQjt1Q7ZR9+zTlce2859x4KSXrwIsaeTqDoKQmtP8pLmQ==", + "license": "MIT", + "dependencies": { + "depd": "~2.0.0", + "inherits": "~2.0.4", + "setprototypeof": "~1.2.0", + "statuses": "~2.0.2", + "toidentifier": "~1.0.1" + }, + "engines": { + "node": ">= 0.8" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/iconv-lite": { + "version": "0.4.24", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", + "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", + "license": "MIT", + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/ieee754": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", + "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "BSD-3-Clause" + }, + "node_modules/ignore-by-default": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/ignore-by-default/-/ignore-by-default-1.0.1.tgz", + "integrity": "sha512-Ius2VYcGNk7T90CppJqcIkS5ooHUZyIQK+ClZfMfMNFEF9VSE73Fq+906u/CWu92x4gzZMWOwfFYckPObzdEbA==", + "dev": true, + "license": "ISC" + }, + "node_modules/inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "license": "ISC" + }, + "node_modules/ini": { + "version": "1.3.8", + "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz", + "integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==", + "license": "ISC" + }, + "node_modules/ipaddr.js": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", + "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==", + "license": "MIT", + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/is-binary-path": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", + "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", + "dev": true, + "license": "MIT", + "dependencies": { + "binary-extensions": "^2.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-glob": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-extglob": "^2.1.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.12.0" + } + }, + "node_modules/math-intrinsics": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz", + "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/media-typer": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", + "integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/merge-descriptors": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.3.tgz", + "integrity": "sha512-gaNvAS7TZ897/rVaZ0nMtAyxNyi/pdbjbAwUpFQpN70GqnVfOiXpeUUMKRBmzXaSQ8DdTX4/0ms62r2K+hE6mQ==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/methods": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", + "integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", + "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==", + "license": "MIT", + "bin": { + "mime": "cli.js" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "license": "MIT", + "dependencies": { + "mime-db": "1.52.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mimic-response": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-3.1.0.tgz", + "integrity": "sha512-z0yWI+4FDrrweS8Zmt4Ej5HdJmky15+L2e6Wgn3+iK5fWzb6T3fhNFq2+MeTRb064c6Wr4N/wv0DzQTjNzHNGQ==", + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/minimist": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", + "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/mkdirp-classic": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/mkdirp-classic/-/mkdirp-classic-0.5.3.tgz", + "integrity": "sha512-gKLcREMhtuZRwRAfqP3RFW+TK4JqApVBtOIftVgjuABpAtpxhPGaDcfvbhNvD0B8iD1oUr/txX35NjcaY6Ns/A==", + "license": "MIT" + }, + "node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", + "license": "MIT" + }, + "node_modules/napi-build-utils": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/napi-build-utils/-/napi-build-utils-2.0.0.tgz", + "integrity": "sha512-GEbrYkbfF7MoNaoh2iGG84Mnf/WZfB0GdGEsM8wz7Expx/LlWf5U8t9nvJKXSp3qr5IsEbK04cBGhol/KwOsWA==", + "license": "MIT" + }, + "node_modules/negotiator": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz", + "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/node-abi": { + "version": "3.85.0", + "resolved": "https://registry.npmjs.org/node-abi/-/node-abi-3.85.0.tgz", + "integrity": "sha512-zsFhmbkAzwhTft6nd3VxcG0cvJsT70rL+BIGHWVq5fi6MwGrHwzqKaxXE+Hl2GmnGItnDKPPkO5/LQqjVkIdFg==", + "license": "MIT", + "dependencies": { + "semver": "^7.3.5" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/nodemailer": { + "version": "7.0.11", + "resolved": "https://registry.npmjs.org/nodemailer/-/nodemailer-7.0.11.tgz", + "integrity": "sha512-gnXhNRE0FNhD7wPSCGhdNh46Hs6nm+uTyg+Kq0cZukNQiYdnCsoQjodNP9BQVG9XrcK/v6/MgpAPBUFyzh9pvw==", + "license": "MIT-0", + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/nodemon": { + "version": "3.1.11", + "resolved": "https://registry.npmjs.org/nodemon/-/nodemon-3.1.11.tgz", + "integrity": "sha512-is96t8F/1//UHAjNPHpbsNY46ELPpftGUoSVNXwUfMk/qdjSylYrWSu1XavVTBOn526kFiOR733ATgNBCQyH0g==", + "dev": true, + "license": "MIT", + "dependencies": { + "chokidar": "^3.5.2", + "debug": "^4", + "ignore-by-default": "^1.0.1", + "minimatch": "^3.1.2", + "pstree.remy": "^1.1.8", + "semver": "^7.5.3", + "simple-update-notifier": "^2.0.0", + "supports-color": "^5.5.0", + "touch": "^3.1.0", + "undefsafe": "^2.0.5" + }, + "bin": { + "nodemon": "bin/nodemon.js" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/nodemon" + } + }, + "node_modules/nodemon/node_modules/debug": { + "version": "4.4.3", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz", + "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==", + "dev": true, + "license": "MIT", + "dependencies": { + "ms": "^2.1.3" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/nodemon/node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "dev": true, + "license": "MIT" + }, + "node_modules/normalize-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", + "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object-assign": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object-inspect": { + "version": "1.13.4", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.4.tgz", + "integrity": "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/on-finished": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz", + "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==", + "license": "MIT", + "dependencies": { + "ee-first": "1.1.1" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", + "license": "ISC", + "dependencies": { + "wrappy": "1" + } + }, + "node_modules/parseurl": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", + "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/path-to-regexp": { + "version": "0.1.12", + "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.12.tgz", + "integrity": "sha512-RA1GjUVMnvYFxuqovrEqZoxxW5NUZqbwKtYz/Tt7nXerk0LbLblQmrsgdeOxV5SFHf0UDggjS/bSeOZwt1pmEQ==", + "license": "MIT" + }, + "node_modules/picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/prebuild-install": { + "version": "7.1.3", + "resolved": "https://registry.npmjs.org/prebuild-install/-/prebuild-install-7.1.3.tgz", + "integrity": "sha512-8Mf2cbV7x1cXPUILADGI3wuhfqWvtiLA1iclTDbFRZkgRQS0NqsPZphna9V+HyTEadheuPmjaJMsbzKQFOzLug==", + "license": "MIT", + "dependencies": { + "detect-libc": "^2.0.0", + "expand-template": "^2.0.3", + "github-from-package": "0.0.0", + "minimist": "^1.2.3", + "mkdirp-classic": "^0.5.3", + "napi-build-utils": "^2.0.0", + "node-abi": "^3.3.0", + "pump": "^3.0.0", + "rc": "^1.2.7", + "simple-get": "^4.0.0", + "tar-fs": "^2.0.0", + "tunnel-agent": "^0.6.0" + }, + "bin": { + "prebuild-install": "bin.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/proxy-addr": { + "version": "2.0.7", + "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz", + "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==", + "license": "MIT", + "dependencies": { + "forwarded": "0.2.0", + "ipaddr.js": "1.9.1" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/pstree.remy": { + "version": "1.1.8", + "resolved": "https://registry.npmjs.org/pstree.remy/-/pstree.remy-1.1.8.tgz", + "integrity": "sha512-77DZwxQmxKnu3aR542U+X8FypNzbfJ+C5XQDk3uWjWxn6151aIMGthWYRXTqT1E5oJvg+ljaa2OJi+VfvCOQ8w==", + "dev": true, + "license": "MIT" + }, + "node_modules/pump": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.3.tgz", + "integrity": "sha512-todwxLMY7/heScKmntwQG8CXVkWUOdYxIvY2s0VWAAMh/nd8SoYiRaKjlr7+iCs984f2P8zvrfWcDDYVb73NfA==", + "license": "MIT", + "dependencies": { + "end-of-stream": "^1.1.0", + "once": "^1.3.1" + } + }, + "node_modules/qs": { + "version": "6.14.0", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.14.0.tgz", + "integrity": "sha512-YWWTjgABSKcvs/nWBi9PycY/JiPJqOD4JA6o9Sej2AtvSGarXxKC3OQSk4pAarbdQlKAh5D4FCQkJNkW+GAn3w==", + "license": "BSD-3-Clause", + "dependencies": { + "side-channel": "^1.1.0" + }, + "engines": { + "node": ">=0.6" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/range-parser": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", + "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/raw-body": { + "version": "2.5.3", + "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.3.tgz", + "integrity": "sha512-s4VSOf6yN0rvbRZGxs8Om5CWj6seneMwK3oDb4lWDH0UPhWcxwOWw5+qk24bxq87szX1ydrwylIOp2uG1ojUpA==", + "license": "MIT", + "dependencies": { + "bytes": "~3.1.2", + "http-errors": "~2.0.1", + "iconv-lite": "~0.4.24", + "unpipe": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/rc": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.8.tgz", + "integrity": "sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==", + "license": "(BSD-2-Clause OR MIT OR Apache-2.0)", + "dependencies": { + "deep-extend": "^0.6.0", + "ini": "~1.3.0", + "minimist": "^1.2.0", + "strip-json-comments": "~2.0.1" + }, + "bin": { + "rc": "cli.js" + } + }, + "node_modules/readable-stream": { + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", + "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", + "license": "MIT", + "dependencies": { + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/readdirp": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", + "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", + "dev": true, + "license": "MIT", + "dependencies": { + "picomatch": "^2.2.1" + }, + "engines": { + "node": ">=8.10.0" + } + }, + "node_modules/safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT" + }, + "node_modules/safer-buffer": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", + "license": "MIT" + }, + "node_modules/semver": { + "version": "7.7.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.3.tgz", + "integrity": "sha512-SdsKMrI9TdgjdweUSR9MweHA4EJ8YxHn8DFaDisvhVlUOe4BF1tLD7GAj0lIqWVl+dPb/rExr0Btby5loQm20Q==", + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/send": { + "version": "0.19.1", + "resolved": "https://registry.npmjs.org/send/-/send-0.19.1.tgz", + "integrity": "sha512-p4rRk4f23ynFEfcD9LA0xRYngj+IyGiEYyqqOak8kaN0TvNmuxC2dcVeBn62GpCeR2CpWqyHCNScTP91QbAVFg==", + "license": "MIT", + "dependencies": { + "debug": "2.6.9", + "depd": "2.0.0", + "destroy": "1.2.0", + "encodeurl": "~2.0.0", + "escape-html": "~1.0.3", + "etag": "~1.8.1", + "fresh": "0.5.2", + "http-errors": "2.0.0", + "mime": "1.6.0", + "ms": "2.1.3", + "on-finished": "2.4.1", + "range-parser": "~1.2.1", + "statuses": "2.0.1" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/send/node_modules/http-errors": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz", + "integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==", + "license": "MIT", + "dependencies": { + "depd": "2.0.0", + "inherits": "2.0.4", + "setprototypeof": "1.2.0", + "statuses": "2.0.1", + "toidentifier": "1.0.1" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/send/node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "license": "MIT" + }, + "node_modules/send/node_modules/statuses": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz", + "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/serve-static": { + "version": "1.16.2", + "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.16.2.tgz", + "integrity": "sha512-VqpjJZKadQB/PEbEwvFdO43Ax5dFBZ2UECszz8bQ7pi7wt//PWe1P6MN7eCnjsatYtBT6EuiClbjSWP2WrIoTw==", + "license": "MIT", + "dependencies": { + "encodeurl": "~2.0.0", + "escape-html": "~1.0.3", + "parseurl": "~1.3.3", + "send": "0.19.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/serve-static/node_modules/http-errors": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz", + "integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==", + "license": "MIT", + "dependencies": { + "depd": "2.0.0", + "inherits": "2.0.4", + "setprototypeof": "1.2.0", + "statuses": "2.0.1", + "toidentifier": "1.0.1" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/serve-static/node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "license": "MIT" + }, + "node_modules/serve-static/node_modules/send": { + "version": "0.19.0", + "resolved": "https://registry.npmjs.org/send/-/send-0.19.0.tgz", + "integrity": "sha512-dW41u5VfLXu8SJh5bwRmyYUbAoSB3c9uQh6L8h/KtsFREPWpbX1lrljJo186Jc4nmci/sGUZ9a0a0J2zgfq2hw==", + "license": "MIT", + "dependencies": { + "debug": "2.6.9", + "depd": "2.0.0", + "destroy": "1.2.0", + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "etag": "~1.8.1", + "fresh": "0.5.2", + "http-errors": "2.0.0", + "mime": "1.6.0", + "ms": "2.1.3", + "on-finished": "2.4.1", + "range-parser": "~1.2.1", + "statuses": "2.0.1" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/serve-static/node_modules/send/node_modules/encodeurl": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", + "integrity": "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/serve-static/node_modules/statuses": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz", + "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/setprototypeof": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz", + "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==", + "license": "ISC" + }, + "node_modules/side-channel": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.0.tgz", + "integrity": "sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "object-inspect": "^1.13.3", + "side-channel-list": "^1.0.0", + "side-channel-map": "^1.0.1", + "side-channel-weakmap": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel-list": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.0.tgz", + "integrity": "sha512-FCLHtRD/gnpCiCHEiJLOwdmFP+wzCmDEkc9y7NsYxeF4u7Btsn1ZuwgwJGxImImHicJArLP4R0yX4c2KCrMrTA==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "object-inspect": "^1.13.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel-map": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz", + "integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==", + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.5", + "object-inspect": "^1.13.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel-weakmap": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz", + "integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==", + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.5", + "object-inspect": "^1.13.3", + "side-channel-map": "^1.0.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/simple-concat": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/simple-concat/-/simple-concat-1.0.1.tgz", + "integrity": "sha512-cSFtAPtRhljv69IK0hTVZQ+OfE9nePi/rtJmw5UjHeVyVroEqJXP1sFztKUy1qU+xvz3u/sfYJLa947b7nAN2Q==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT" + }, + "node_modules/simple-get": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/simple-get/-/simple-get-4.0.1.tgz", + "integrity": "sha512-brv7p5WgH0jmQJr1ZDDfKDOSeWWg+OVypG99A/5vYGPqJ6pxiaHLy8nxtFjBA7oMa01ebA9gfh1uMCFqOuXxvA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT", + "dependencies": { + "decompress-response": "^6.0.0", + "once": "^1.3.1", + "simple-concat": "^1.0.0" + } + }, + "node_modules/simple-update-notifier": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/simple-update-notifier/-/simple-update-notifier-2.0.0.tgz", + "integrity": "sha512-a2B9Y0KlNXl9u/vsW6sTIu9vGEpfKu2wRV6l1H3XEas/0gUIzGzBoP/IouTcUQbm9JWZLH3COxyn03TYlFax6w==", + "dev": true, + "license": "MIT", + "dependencies": { + "semver": "^7.5.3" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/statuses": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.2.tgz", + "integrity": "sha512-DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/string_decoder": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", + "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", + "license": "MIT", + "dependencies": { + "safe-buffer": "~5.2.0" + } + }, + "node_modules/strip-json-comments": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", + "integrity": "sha512-4gB8na07fecVVkOI6Rs4e7T6NOTki5EmL7TUduTs6bu3EdnSycntVJ4re8kgZA+wx9IueI2Y11bfbgwtzuE0KQ==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, + "license": "MIT", + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/tar-fs": { + "version": "2.1.4", + "resolved": "https://registry.npmjs.org/tar-fs/-/tar-fs-2.1.4.tgz", + "integrity": "sha512-mDAjwmZdh7LTT6pNleZ05Yt65HC3E+NiQzl672vQG38jIrehtJk/J3mNwIg+vShQPcLF/LV7CMnDW6vjj6sfYQ==", + "license": "MIT", + "dependencies": { + "chownr": "^1.1.1", + "mkdirp-classic": "^0.5.2", + "pump": "^3.0.0", + "tar-stream": "^2.1.4" + } + }, + "node_modules/tar-stream": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-2.2.0.tgz", + "integrity": "sha512-ujeqbceABgwMZxEJnk2HDY2DlnUZ+9oEcb1KzTVfYHio0UE6dG71n60d8D2I4qNvleWrrXpmjpt7vZeF1LnMZQ==", + "license": "MIT", + "dependencies": { + "bl": "^4.0.3", + "end-of-stream": "^1.4.1", + "fs-constants": "^1.0.0", + "inherits": "^2.0.3", + "readable-stream": "^3.1.1" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-number": "^7.0.0" + }, + "engines": { + "node": ">=8.0" + } + }, + "node_modules/toidentifier": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz", + "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==", + "license": "MIT", + "engines": { + "node": ">=0.6" + } + }, + "node_modules/touch": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/touch/-/touch-3.1.1.tgz", + "integrity": "sha512-r0eojU4bI8MnHr8c5bNo7lJDdI2qXlWWJk6a9EAFG7vbhTjElYhBVS3/miuE0uOuoLdb8Mc/rVfsmm6eo5o9GA==", + "dev": true, + "license": "ISC", + "bin": { + "nodetouch": "bin/nodetouch.js" + } + }, + "node_modules/tunnel-agent": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", + "integrity": "sha512-McnNiV1l8RYeY8tBgEpuodCC1mLUdbSN+CYBL7kJsJNInOP8UjDDEwdk6Mw60vdLLrr5NHKZhMAOSrR2NZuQ+w==", + "license": "Apache-2.0", + "dependencies": { + "safe-buffer": "^5.0.1" + }, + "engines": { + "node": "*" + } + }, + "node_modules/type-is": { + "version": "1.6.18", + "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz", + "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==", + "license": "MIT", + "dependencies": { + "media-typer": "0.3.0", + "mime-types": "~2.1.24" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/undefsafe": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/undefsafe/-/undefsafe-2.0.5.tgz", + "integrity": "sha512-WxONCrssBM8TSPRqN5EmsjVrsv4A8X12J4ArBiiayv3DyyG3ZlIg6yysuuSYdZsVz3TKcTg2fd//Ujd4CHV1iA==", + "dev": true, + "license": "MIT" + }, + "node_modules/unpipe": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", + "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/util-deprecate": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", + "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", + "license": "MIT" + }, + "node_modules/utils-merge": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", + "integrity": "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==", + "license": "MIT", + "engines": { + "node": ">= 0.4.0" + } + }, + "node_modules/uuid": { + "version": "9.0.1", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.1.tgz", + "integrity": "sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA==", + "funding": [ + "https://github.com/sponsors/broofa", + "https://github.com/sponsors/ctavan" + ], + "license": "MIT", + "bin": { + "uuid": "dist/bin/uuid" + } + }, + "node_modules/vary": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", + "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", + "license": "ISC" + } + } +} diff --git a/backend/package.json b/backend/package.json index 4459b4c..cbec7b3 100644 --- a/backend/package.json +++ b/backend/package.json @@ -10,9 +10,9 @@ "dependencies": { "express": "^4.18.2", "cors": "^2.8.5", - "better-sqlite3": "^9.2.2", + "better-sqlite3": "^12.5.0", "uuid": "^9.0.1", - "nodemailer": "^6.9.14" + "nodemailer": "^7.0.11" }, "devDependencies": { "nodemon": "^3.0.2" diff --git a/backend/server.js b/backend/server.js index f9d46d3..f8cf51a 100644 --- a/backend/server.js +++ b/backend/server.js @@ -747,6 +747,24 @@ function normalizeDailyBookmarkMarker(value) { return marker; } +function normalizeDailyBookmarkActive(value) { + if (value === undefined || value === null) { + return 1; + } + + if (typeof value === 'string') { + const trimmed = value.trim().toLowerCase(); + if (trimmed === 'false' || trimmed === '0' || trimmed === 'off') { + return 0; + } + if (trimmed === 'true' || trimmed === '1' || trimmed === 'on') { + return 1; + } + } + + return value ? 1 : 0; +} + function serializeDailyBookmark(row, dayKey) { if (!row) { return null; @@ -760,6 +778,7 @@ function serializeDailyBookmark(row, dayKey) { title: row.title, url_template: row.url_template, marker: row.marker || '', + is_active: Number(row.is_active ?? 1) !== 0, resolved_url: resolvedUrl, notes: row.notes || '', created_at: sqliteTimestampToUTC(row.created_at), @@ -1218,6 +1237,7 @@ db.exec(` title TEXT NOT NULL, url_template TEXT NOT NULL, notes TEXT, + is_active INTEGER NOT NULL DEFAULT 1, marker TEXT DEFAULT '', created_at DATETIME DEFAULT CURRENT_TIMESTAMP, updated_at DATETIME DEFAULT CURRENT_TIMESTAMP @@ -1246,6 +1266,7 @@ db.exec(` `); ensureColumn('daily_bookmarks', 'marker', 'marker TEXT DEFAULT \'\''); +ensureColumn('daily_bookmarks', 'is_active', 'is_active INTEGER NOT NULL DEFAULT 1'); const listDailyBookmarksStmt = db.prepare(` SELECT @@ -1253,6 +1274,7 @@ const listDailyBookmarksStmt = db.prepare(` b.title, b.url_template, b.notes, + b.is_active, b.marker, b.created_at, b.updated_at, @@ -1277,6 +1299,7 @@ const getDailyBookmarkStmt = db.prepare(` b.title, b.url_template, b.notes, + b.is_active, b.marker, b.created_at, b.updated_at, @@ -1296,8 +1319,8 @@ const getDailyBookmarkStmt = db.prepare(` `); const insertDailyBookmarkStmt = db.prepare(` - INSERT INTO daily_bookmarks (id, title, url_template, notes, marker) - VALUES (@id, @title, @url_template, @notes, @marker) + INSERT INTO daily_bookmarks (id, title, url_template, notes, marker, is_active) + VALUES (@id, @title, @url_template, @notes, @marker, @is_active) `); const findDailyBookmarkByUrlStmt = db.prepare(` @@ -1321,6 +1344,7 @@ const updateDailyBookmarkStmt = db.prepare(` url_template = @url_template, notes = @notes, marker = @marker, + is_active = @is_active, updated_at = CURRENT_TIMESTAMP WHERE id = @id `); @@ -3942,6 +3966,9 @@ app.post('/api/daily-bookmarks', (req, res) => { const normalizedTitle = normalizeDailyBookmarkTitle(payload.title || payload.label, normalizedUrl); const normalizedNotes = normalizeDailyBookmarkNotes(payload.notes); const normalizedMarker = normalizeDailyBookmarkMarker(payload.marker || payload.tag); + const normalizedActive = normalizeDailyBookmarkActive( + payload.is_active ?? payload.active ?? true + ); if (!normalizedUrl) { return res.status(400).json({ error: 'URL-Template ist erforderlich' }); @@ -3958,7 +3985,8 @@ app.post('/api/daily-bookmarks', (req, res) => { title: normalizedTitle, url_template: normalizedUrl, notes: normalizedNotes, - marker: normalizedMarker + marker: normalizedMarker, + is_active: normalizedActive }); upsertDailyBookmarkCheckStmt.run({ bookmarkId: id, dayKey }); const saved = getDailyBookmarkStmt.get({ bookmarkId: id, dayKey }); @@ -3978,6 +4006,9 @@ app.post('/api/daily-bookmarks/import', (req, res) => { } const normalizedMarker = normalizeDailyBookmarkMarker(payload.marker || payload.tag); + const normalizedActive = normalizeDailyBookmarkActive( + payload.is_active ?? payload.active ?? true + ); const collected = []; const addValue = (value) => { if (typeof value !== 'string') { @@ -4030,7 +4061,8 @@ app.post('/api/daily-bookmarks/import', (req, res) => { title, url_template: template, notes: '', - marker: normalizedMarker + marker: normalizedMarker, + is_active: normalizedActive }); const saved = getDailyBookmarkStmt.get({ bookmarkId: id, dayKey }); if (saved) { @@ -4087,6 +4119,9 @@ app.put('/api/daily-bookmarks/:bookmarkId', (req, res) => { const normalizedMarker = normalizeDailyBookmarkMarker( payload.marker ?? existing.marker ?? '' ); + const normalizedActive = normalizeDailyBookmarkActive( + payload.is_active ?? payload.active ?? Number(existing.is_active ?? 1) + ); if (!normalizedUrl) { return res.status(400).json({ error: 'URL-Template ist erforderlich' }); @@ -4106,7 +4141,8 @@ app.put('/api/daily-bookmarks/:bookmarkId', (req, res) => { title: normalizedTitle, url_template: normalizedUrl, notes: normalizedNotes, - marker: normalizedMarker + marker: normalizedMarker, + is_active: normalizedActive }); const updated = getDailyBookmarkStmt.get({ bookmarkId, dayKey }); res.json(serializeDailyBookmark(updated, dayKey)); @@ -4151,6 +4187,9 @@ app.post('/api/daily-bookmarks/:bookmarkId/check', (req, res) => { if (!existing) { return res.status(404).json({ error: 'Bookmark nicht gefunden' }); } + if (Number(existing.is_active ?? 1) === 0) { + return res.status(400).json({ error: 'Bookmark ist deaktiviert' }); + } upsertDailyBookmarkCheckStmt.run({ bookmarkId, dayKey }); const updated = getDailyBookmarkStmt.get({ bookmarkId, dayKey }); @@ -4178,6 +4217,9 @@ app.delete('/api/daily-bookmarks/:bookmarkId/check', (req, res) => { if (!existing) { return res.status(404).json({ error: 'Bookmark nicht gefunden' }); } + if (Number(existing.is_active ?? 1) === 0) { + return res.status(400).json({ error: 'Bookmark ist deaktiviert' }); + } deleteDailyBookmarkCheckStmt.run({ bookmarkId, dayKey }); const updated = getDailyBookmarkStmt.get({ bookmarkId, dayKey }); diff --git a/web/automation.css b/web/automation.css index e0ed921..9a0f01c 100644 --- a/web/automation.css +++ b/web/automation.css @@ -1,50 +1,58 @@ :root { - --bg: #0b1020; - --card: #0f172a; - --card-soft: #131c35; - --border: rgba(255, 255, 255, 0.08); - --muted: #94a3b8; - --text: #e2e8f0; - --accent: #10b981; - --accent-2: #0ea5e9; - --danger: #ef4444; - --success: #22c55e; - --shadow: 0 20px 60px rgba(0, 0, 0, 0.25); + --automation-bg: #f0f2f5; + --automation-card: #ffffff; + --automation-card-soft: #f7f8fa; + --automation-border: #e4e6eb; + --automation-muted: #6b7280; + --automation-text: #0f172a; + --automation-accent: #1877f2; + --automation-accent-2: #2563eb; + --automation-danger: #dc2626; + --automation-success: #059669; + --automation-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08); + --automation-shadow-md: 0 14px 45px rgba(15, 23, 42, 0.12); } -* { +.automation-view * { box-sizing: border-box; } -body { - margin: 0; - font-family: 'Manrope', 'Inter', system-ui, -apple-system, sans-serif; - background: radial-gradient(120% 120% at 10% 20%, rgba(16, 185, 129, 0.12), transparent 40%), - radial-gradient(120% 120% at 80% 0%, rgba(14, 165, 233, 0.12), transparent 40%), - var(--bg); - color: var(--text); - min-height: 100vh; - padding: 32px 18px 48px; +.automation-view { + color: var(--automation-text); } -.auto-shell { - max-width: 1500px; - margin: 0 auto; +.automation-view .auto-shell { display: flex; flex-direction: column; - gap: 18px; + gap: 16px; + padding-bottom: 32px; } -.auto-hero { - background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(14, 165, 233, 0.08)), - var(--card); - border: 1px solid var(--border); - border-radius: 18px; - padding: 22px 22px 18px; - box-shadow: var(--shadow); +.automation-view .auto-hero { + position: relative; + overflow: hidden; + background: var(--automation-card); + border: 1px solid var(--automation-border); + border-radius: 14px; + padding: 18px 20px; + box-shadow: var(--automation-shadow-sm); + margin: 0; } -.hero-head { +.automation-view .auto-hero::after { + content: ""; + position: absolute; + inset: 0; + background: linear-gradient(120deg, rgba(24, 119, 242, 0.08), rgba(37, 99, 235, 0.05)); + pointer-events: none; +} + +.automation-view .auto-hero > * { + position: relative; + z-index: 1; +} + +.automation-view .hero-head { display: flex; align-items: flex-start; justify-content: space-between; @@ -52,91 +60,78 @@ body { flex-wrap: wrap; } -.hero-text h1 { +.automation-view .hero-text h1 { margin: 4px 0; - font-size: 28px; - letter-spacing: -0.02em; + font-size: 24px; + letter-spacing: -0.01em; + color: var(--automation-text); } -.subline { - margin: 6px 0 10px; - color: var(--muted); -} - -.eyebrow { - font-size: 13px; +.automation-view .eyebrow { + font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; - color: var(--accent-2); + color: var(--automation-accent-2); margin: 0; + font-weight: 700; } -.hero-pills { +.automation-view .back-link { + color: var(--automation-accent); + text-decoration: none; + font-size: 13px; + font-weight: 600; +} + +.automation-view .back-link:hover { + text-decoration: underline; +} + +.automation-view .hero-actions { display: flex; - gap: 10px; + gap: 8px; + align-items: center; flex-wrap: wrap; } -.pill { - background: rgba(255, 255, 255, 0.04); - color: var(--text); - border: 1px solid var(--border); - border-radius: 999px; - padding: 8px 12px; - font-size: 13px; -} - -.hero-actions { - display: flex; - gap: 10px; - align-items: center; -} - -.back-link { - color: var(--muted); - text-decoration: none; - font-size: 14px; -} - -.hero-stats { - margin-top: 14px; +.automation-view .hero-stats { + margin-top: 12px; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; } -.stat { - background: rgba(255, 255, 255, 0.03); - border: 1px solid var(--border); +.automation-view .stat { + background: var(--automation-card-soft); + border: 1px solid var(--automation-border); border-radius: 12px; padding: 12px; + box-shadow: var(--automation-shadow-sm); } -.stat-label { - color: var(--muted); - font-size: 13px; +.automation-view .stat-label { + color: var(--automation-muted); + font-size: 12px; + text-transform: uppercase; + letter-spacing: 0.06em; + margin: 0 0 4px; } -.stat-value { +.automation-view .stat-value { font-size: 22px; font-weight: 700; + margin: 0; } -.auto-grid { - display: grid; - grid-template-columns: 1fr; - gap: 18px; +.automation-view .panel { + background: var(--automation-card); + border: 1px solid var(--automation-border); + border-radius: 12px; + padding: 18px 18px 16px; + box-shadow: var(--automation-shadow-sm); } -.panel { - background: var(--card); - border: 1px solid var(--border); - border-radius: 16px; - padding: 18px; - box-shadow: var(--shadow); -} - -.panel-header { +.automation-view .panel-header { display: flex; align-items: center; justify-content: space-between; @@ -145,137 +140,147 @@ body { margin-bottom: 12px; } -.panel-eyebrow { +.automation-view .panel-eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 12px; - color: var(--muted); + color: var(--automation-muted); margin: 0; + font-weight: 700; } -.panel-actions { +.automation-view .panel-actions { display: flex; + align-items: center; gap: 8px; + flex-wrap: wrap; } -.form-grid { +.automation-view .form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } -.field { +.automation-view .field { display: flex; flex-direction: column; gap: 6px; } -.field.full { +.automation-view .field.full { grid-column: 1 / -1; } -.field.inline { +.automation-view .field.inline { min-width: 0; } -.field[data-section] { + +.automation-view .field[data-section] { display: grid; } -label { +.automation-view label { font-weight: 600; - color: var(--text); + color: var(--automation-text); } -input, -textarea, -select { +.automation-view input, +.automation-view textarea, +.automation-view select { width: 100%; border-radius: 10px; - border: 1px solid var(--border); + border: 1px solid var(--automation-border); padding: 10px 12px; - background: #0c1427; - color: var(--text); + background: #fff; + color: var(--automation-text); font-family: inherit; font-size: 14px; outline: none; transition: border-color 0.2s ease, box-shadow 0.2s ease; } -input:focus, -textarea:focus, -select:focus { - border-color: var(--accent-2); - box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.15); +.automation-view input:focus, +.automation-view textarea:focus, +.automation-view select:focus { + border-color: var(--automation-accent-2); + box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12); } -textarea { +.automation-view textarea { resize: vertical; } -small { - color: var(--muted); +.automation-view small { + color: var(--automation-muted); } -.template-hint { - border: 1px dashed var(--border); - background: rgba(255, 255, 255, 0.02); +.automation-view .template-hint { + border: 1px dashed var(--automation-border); + background: #f8fafc; border-radius: 12px; padding: 10px 12px; - font-family: 'JetBrains Mono', monospace; - color: var(--muted); + font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; + color: var(--automation-muted); } -.template-title { +.automation-view .template-title { margin: 0 0 6px; - color: var(--text); - font-weight: 600; + color: var(--automation-text); + font-weight: 700; } -.template-copy { +.automation-view .template-copy { margin: 0; word-break: break-all; } -.form-status { +.automation-view .form-status { min-height: 22px; - color: var(--muted); + color: var(--automation-muted); } -.form-status.error { - color: var(--danger); +.automation-view .form-status.error { + color: var(--automation-danger); } -.form-status.success { - color: var(--success); +.automation-view .form-status.success { + color: var(--automation-success); } -.auto-table { +.automation-view .table-wrap { + overflow-x: auto; +} + +.automation-view .auto-table { width: 100%; border-collapse: collapse; + min-width: 720px; } -.auto-table th, -.auto-table td { +.automation-view .auto-table th, +.automation-view .auto-table td { padding: 10px 8px; text-align: left; - border-bottom: 1px solid var(--border); + border-bottom: 1px solid var(--automation-border); font-size: 14px; white-space: nowrap; } -.auto-table th { - color: var(--muted); - font-weight: 600; +.automation-view .auto-table th { + color: var(--automation-muted); + font-weight: 700; + background: var(--automation-card-soft); } -.auto-table th[data-sort-column="runs"], -.auto-table td.runs-count { +.automation-view .auto-table th[data-sort-column="runs"], +.automation-view .auto-table td.runs-count { width: 1%; white-space: nowrap; text-align: right; } -.auto-table .sort-indicator { +.automation-view .auto-table .sort-indicator { display: inline-block; margin-left: 6px; width: 10px; @@ -284,108 +289,112 @@ small { border-bottom: 0; border-left: 0; transform: rotate(45deg); - opacity: 0.35; + opacity: 0.25; } -.auto-table th.sort-asc .sort-indicator { - border-top: 6px solid var(--accent-2); +.automation-view .auto-table th.sort-asc .sort-indicator { + border-top: 6px solid var(--automation-accent-2); transform: rotate(225deg); opacity: 0.9; } -.auto-table th.sort-desc .sort-indicator { - border-top: 6px solid var(--accent-2); +.automation-view .auto-table th.sort-desc .sort-indicator { + border-top: 6px solid var(--automation-accent-2); transform: rotate(45deg); opacity: 0.9; } -.table-filter-row input, -.table-filter-row select { +.automation-view .table-filter-row th { + background: var(--automation-card); +} + +.automation-view .table-filter-row input, +.automation-view .table-filter-row select { width: 100%; border-radius: 8px; - border: 1px solid var(--border); + border: 1px solid var(--automation-border); padding: 8px 10px; - background: #0c1427; - color: var(--text); + background: #fff; + color: var(--automation-text); font-size: 13px; } -.auto-table tr.is-selected { - background: rgba(14, 165, 233, 0.08); +.automation-view .auto-table tr.is-selected td { + background: #eef2ff; } -.row-title { +.automation-view .row-title { font-weight: 700; - color: var(--text); + color: var(--automation-text); } -.row-sub { - color: var(--muted); +.automation-view .row-sub { + color: var(--automation-muted); font-size: 13px; word-break: break-all; } -.table-wrap { - overflow-x: auto; -} - -.badge { +.automation-view .badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; font-size: 12px; - background: rgba(255, 255, 255, 0.04); - border: 1px solid var(--border); + background: #eef2ff; + color: var(--automation-accent-2); + border: 1px solid rgba(37, 99, 235, 0.28); } -.badge.success { - color: var(--success); - border-color: rgba(34, 197, 94, 0.35); +.automation-view .badge.success { + background: rgba(5, 150, 105, 0.12); + color: var(--automation-success); + border-color: rgba(5, 150, 105, 0.35); } -.badge.error { - color: var(--danger); - border-color: rgba(239, 68, 68, 0.35); +.automation-view .badge.error { + background: rgba(220, 38, 38, 0.12); + color: var(--automation-danger); + border-color: rgba(220, 38, 38, 0.35); } -.row-actions { +.automation-view .row-actions { display: flex; gap: 6px; flex-wrap: nowrap; } -.hidden-value { +.automation-view .hidden-value { display: none; } -.icon-btn { - border: 1px solid var(--border); - background: rgba(255, 255, 255, 0.04); - color: var(--text); +.automation-view .icon-btn { + border: 1px solid var(--automation-border); + background: var(--automation-card-soft); + color: var(--automation-text); border-radius: 8px; padding: 6px 8px; cursor: pointer; font-size: 14px; line-height: 1; - transition: transform 0.15s ease, opacity 0.15s ease, border-color 0.15s ease; + transition: transform 0.15s ease, opacity 0.15s ease, border-color 0.15s ease, box-shadow 0.2s ease; } -.icon-btn:hover { +.automation-view .icon-btn:hover { transform: translateY(-1px); opacity: 0.95; - border-color: rgba(255, 255, 255, 0.2); + border-color: #d1d5db; + box-shadow: var(--automation-shadow-sm); } -.icon-btn.danger { - color: #ef4444; - border-color: rgba(239, 68, 68, 0.35); +.automation-view .icon-btn.danger { + color: var(--automation-danger); + border-color: rgba(220, 38, 38, 0.35); } -.primary-btn, -.secondary-btn, -.ghost-btn { +.automation-view .primary-btn, +.automation-view .secondary-btn, +.automation-view .ghost-btn { border: 1px solid transparent; border-radius: 10px; padding: 10px 14px; @@ -395,49 +404,50 @@ small { transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease; } -.primary-btn { - background: linear-gradient(135deg, var(--accent), var(--accent-2)); - color: #0b1020; - box-shadow: 0 10px 30px rgba(14, 165, 233, 0.35); +.automation-view .primary-btn { + background: linear-gradient(135deg, var(--automation-accent-2), var(--automation-accent)); + color: #fff; + box-shadow: 0 10px 30px rgba(24, 119, 242, 0.25); + border: none; } -.secondary-btn { - background: rgba(255, 255, 255, 0.06); - color: var(--text); - border-color: var(--border); +.automation-view .secondary-btn { + background: #e4e6eb; + color: var(--automation-text); + border-color: #d1d5db; } -.ghost-btn { +.automation-view .ghost-btn { background: transparent; - color: var(--text); - border-color: var(--border); + color: var(--automation-text); + border-color: var(--automation-border); } -.primary-btn:hover, -.secondary-btn:hover, -.ghost-btn:hover { +.automation-view .primary-btn:hover, +.automation-view .secondary-btn:hover, +.automation-view .ghost-btn:hover { transform: translateY(-1px); opacity: 0.95; } -.list-status, -.runs-status, -.import-status { +.automation-view .list-status, +.automation-view .runs-status, +.automation-view .import-status { min-height: 20px; - color: var(--muted); + color: var(--automation-muted); margin-bottom: 8px; } -.filter-input { +.automation-view .filter-input { border-radius: 10px; - border: 1px solid var(--border); + border: 1px solid var(--automation-border); padding: 8px 10px; - background: #0c1427; - color: var(--text); + background: #fff; + color: var(--automation-text); min-width: 200px; } -.runs-list { +.automation-view .runs-list { list-style: none; padding: 0; margin: 0; @@ -445,14 +455,15 @@ small { gap: 10px; } -.run-item { - border: 1px solid var(--border); +.automation-view .run-item { + border: 1px solid var(--automation-border); border-radius: 12px; padding: 12px; - background: #0c1427; + background: var(--automation-card-soft); + box-shadow: var(--automation-shadow-sm); } -.run-top { +.automation-view .run-top { display: flex; align-items: center; justify-content: space-between; @@ -460,58 +471,57 @@ small { flex-wrap: wrap; } -.run-meta { +.automation-view .run-meta { display: flex; gap: 8px; align-items: center; - color: var(--muted); + color: var(--automation-muted); + font-size: 13px; } -.run-body { +.automation-view .run-body { margin: 8px 0 0; - color: var(--text); - font-family: 'JetBrains Mono', monospace; + color: var(--automation-text); + font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: 13px; white-space: pre-wrap; word-break: break-all; } -.runs-hint { - color: var(--muted); +.automation-view .runs-hint { + color: var(--automation-muted); margin: 0; } -.import-panel textarea { - width: 100%; -} - -.import-hint { - color: var(--muted); +.automation-view .import-hint { + color: var(--automation-muted); margin: 0 0 8px; } -.switch { +.automation-view .switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; + font-weight: 600; + color: var(--automation-text); } -.switch input { +.automation-view .switch input { display: none; } -.switch-slider { +.automation-view .switch-slider { width: 42px; height: 22px; - background: rgba(255, 255, 255, 0.2); + background: #d1d5db; border-radius: 999px; position: relative; transition: background 0.2s ease; } -.switch-slider::after { - content: ''; +.automation-view .switch-slider::after { + content: ""; width: 18px; height: 18px; background: #fff; @@ -519,51 +529,52 @@ small { position: absolute; top: 2px; left: 2px; + box-shadow: 0 1px 3px rgba(15, 23, 42, 0.25); transition: transform 0.2s ease; } -.switch input:checked + .switch-slider { - background: var(--accent); +.automation-view .switch input:checked + .switch-slider { + background: var(--automation-accent); } -.switch input:checked + .switch-slider::after { +.automation-view .switch input:checked + .switch-slider::after { transform: translateX(20px); } -.switch-label { - color: var(--muted); +.automation-view .switch-label { + color: var(--automation-muted); font-weight: 600; } -.modal { +.automation-view .modal { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; - background: rgba(0, 0, 0, 0.45); - backdrop-filter: blur(2px); + padding: 24px; + background: rgba(15, 23, 42, 0.55); z-index: 900; } -.modal__backdrop { +.automation-view .modal__backdrop { position: absolute; inset: 0; } -.modal__content { +.automation-view .modal__content { position: relative; - background: var(--card); - border: 1px solid var(--border); - border-radius: 16px; - padding: 18px; + background: var(--automation-card); + border: 1px solid var(--automation-border); + border-radius: 14px; + padding: 20px 20px 16px; width: min(1100px, 96vw); max-height: 92vh; overflow-y: auto; - box-shadow: var(--shadow); + box-shadow: var(--automation-shadow-md); } -.modal__header { +.automation-view .modal__header { display: flex; align-items: center; justify-content: space-between; @@ -571,25 +582,25 @@ small { margin-bottom: 10px; } -.modal-actions { +.automation-view .modal-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; } -.modal[hidden] { +.automation-view .modal[hidden] { display: none; } -.preview-panel { - border: 1px solid var(--border); +.automation-view .preview-panel { + border: 1px solid var(--automation-border); border-radius: 12px; padding: 12px; - background: rgba(255, 255, 255, 0.02); + background: var(--automation-card-soft); } -.preview-header { +.automation-view .preview-header { display: flex; align-items: center; justify-content: space-between; @@ -597,29 +608,29 @@ small { margin-bottom: 8px; } -.preview-grid { +.automation-view .preview-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; } -.preview-block { - border: 1px dashed var(--border); +.automation-view .preview-block { + border: 1px dashed var(--automation-border); border-radius: 10px; padding: 8px; - background: #0c1427; + background: #fff; } -.preview-label { +.automation-view .preview-label { margin: 0 0 4px; - color: var(--muted); + color: var(--automation-muted); font-size: 13px; } -.preview-value { +.automation-view .preview-value { margin: 0; - color: var(--text); - font-family: 'JetBrains Mono', monospace; + color: var(--automation-text); + font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: 13px; white-space: pre-wrap; word-break: break-all; @@ -627,65 +638,65 @@ small { overflow: auto; } -.preview-hint { - color: var(--muted); +.automation-view .preview-hint { + color: var(--automation-muted); margin: 8px 0 0; font-size: 13px; } -.placeholder-table { +.automation-view .placeholder-table { width: 100%; border-collapse: collapse; margin-top: 6px; } -.placeholder-table td { +.automation-view .placeholder-table td { padding: 6px 8px; - border-bottom: 1px solid var(--border); - font-family: 'JetBrains Mono', monospace; + border-bottom: 1px solid var(--automation-border); + font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: 13px; - color: var(--text); + color: var(--automation-text); vertical-align: top; } -.placeholder-table td.placeholder-key { +.automation-view .placeholder-table td.placeholder-key { width: 30%; - color: var(--muted); + color: var(--automation-muted); } -.placeholder-hint { - color: var(--muted); +.automation-view .placeholder-hint { + color: var(--automation-muted); font-size: 12px; margin: 6px 0 0; } @media (max-width: 1050px) { - .auto-grid { + .automation-view .form-grid { grid-template-columns: 1fr; } } @media (max-width: 720px) { - body { - padding: 16px 12px 32px; + .automation-view .auto-shell { + gap: 12px; } - .panel-header { + .automation-view .panel-header { flex-direction: column; align-items: flex-start; } - .panel-actions { + .automation-view .panel-actions { width: 100%; justify-content: flex-start; } - .form-grid { - grid-template-columns: 1fr; - } - - .hero-head { + .automation-view .hero-head { flex-direction: column; align-items: flex-start; } + + .automation-view .modal { + padding: 12px; + } } diff --git a/web/automation.html b/web/automation.html index 484efd1..8118030 100644 --- a/web/automation.html +++ b/web/automation.html @@ -2,299 +2,20 @@
-Geplante Requests
-| Name | -Nächster Lauf | -Letzter Lauf | -Status | -#Läufe | -Aktionen | -
|---|---|---|---|---|---|
| - | - | - | - - | -- | - |
Verlauf
-Letzte Läufe der ausgewählten Automation.
-Neue Automation
-Import
-Füge hier "Copy as cURL", "Copy as fetch" oder Powershell ein. Header, Methode, Body und URL werden übernommen.
- -Weiterleitung zur Automations-Ansicht…
diff --git a/web/automation.js b/web/automation.js index 2dbc9b7..4c6dbb6 100644 --- a/web/automation.js +++ b/web/automation.js @@ -1,4 +1,6 @@ (function () { + let active = false; + let initialized = false; const API_URL = (() => { if (window.API_URL) return window.API_URL; try { @@ -455,6 +457,7 @@ } async function loadRequests() { + if (!active) return; if (!state.loading) { setStatus(listStatus, 'Lade Automationen...'); } @@ -511,6 +514,7 @@ } function updateRelativeTimes() { + if (!active) return; renderHero(); if (!requestTableBody || !state.requests.length) return; const byId = new Map(state.requests.map((req) => [String(req.id), req])); @@ -1105,9 +1109,16 @@ } function handleSseMessage(payload) { + if (!active) return; if (!payload || !payload.type) return; + const { type, request_id: requestId } = payload; switch (payload.type) { case 'automation-run': + loadRequests(); + if (requestId && state.selectedId && String(requestId) === String(state.selectedId)) { + loadRuns(state.selectedId); + } + break; case 'automation-upsert': loadRequests(); break; @@ -1117,6 +1128,7 @@ } function startSse() { + if (!active) return; if (sse || typeof EventSource === 'undefined') return; try { sse = new EventSource(`${API_URL}/events`, { withCredentials: true }); @@ -1143,19 +1155,33 @@ }); } - function init() { - applyPresetDisabling(); - resetForm(); - loadRequests(); + function ensureRelativeTimer() { if (!relativeTimer) { updateRelativeTimes(); relativeTimer = setInterval(updateRelativeTimes, 60000); - document.addEventListener('visibilitychange', () => { - if (!document.hidden) { - updateRelativeTimes(); - } - }); } + } + + function cleanup(options = {}) { + const { keepActive = false } = options; + if (!keepActive) { + active = false; + } + if (relativeTimer) { + clearInterval(relativeTimer); + relativeTimer = null; + } + if (sse) { + sse.close(); + sse = null; + } + } + + function init() { + if (initialized) return; + applyPresetDisabling(); + resetForm(); + ensureRelativeTimer(); form.addEventListener('submit', handleSubmit); intervalPreset.addEventListener('change', applyPresetDisabling); @@ -1217,8 +1243,32 @@ } } }); - startSse(); + document.addEventListener('visibilitychange', () => { + if (document.hidden) { + cleanup({ keepActive: true }); + } else { + if (active) { + ensureRelativeTimer(); + startSse(); + } + } + }); + window.addEventListener('beforeunload', cleanup); + window.addEventListener('pagehide', cleanup); + window.addEventListener('unload', cleanup); + initialized = true; } - init(); + function activate() { + init(); + active = true; + ensureRelativeTimer(); + startSse(); + loadRequests(); + } + + window.AutomationPage = { + activate, + deactivate: cleanup + }; })(); diff --git a/web/daily-bookmarks.css b/web/daily-bookmarks.css index 13006e5..5bc642e 100644 --- a/web/daily-bookmarks.css +++ b/web/daily-bookmarks.css @@ -14,13 +14,13 @@ --radius: 16px; } -*, -*::before, -*::after { +.daily-bookmarks-view *, +.daily-bookmarks-view *::before, +.daily-bookmarks-view *::after { box-sizing: border-box; } -body { +.daily-bookmarks-view { margin: 0; font-family: 'Space Grotesk', 'Inter', system-ui, -apple-system, sans-serif; background: var(--bg); @@ -29,12 +29,12 @@ body { min-height: 100vh; } -a { +.daily-bookmarks-view a { color: var(--accent-2); text-decoration: none; } -a:hover { +.daily-bookmarks-view a:hover { text-decoration: underline; } @@ -49,13 +49,13 @@ a:hover { border: 0; } -.daily-shell { - max-width: 1600px; +.daily-bookmarks-view .daily-shell { + max-width: var(--content-max-width, 1600px); margin: 0 auto; - padding: 28px 18px 50px; + padding: 0 18px 36px; } -.hero { +.daily-bookmarks-view .hero { background: var(--panel); border: 1px solid var(--border); border-radius: 20px; @@ -366,6 +366,39 @@ a:hover { box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.2); } +.field__hint { + margin: 0; + color: var(--muted); + font-size: 13px; +} + +.field--switch { + align-items: flex-start; +} + +.switch-control { + display: inline-flex; + align-items: center; + gap: 10px; + padding: 10px 12px; + border-radius: 12px; + background: rgba(255, 255, 255, 0.06); + border: 1px solid rgba(255, 255, 255, 0.14); +} + +.switch-control__label { + color: var(--text); + font-weight: 600; +} + +.field--switch input[type='checkbox'] { + width: auto; + min-width: 18px; + height: 18px; + accent-color: var(--accent); + margin: 0; +} + .form-preview { margin-top: 8px; display: flex; @@ -446,6 +479,15 @@ a:hover { border-color: var(--accent); } +.primary-btn:disabled, +.secondary-btn:disabled, +.ghost-btn:disabled { + opacity: 0.55; + cursor: not-allowed; + transform: none; + box-shadow: none; +} + .ghost-btn--tiny { padding: 6px 8px; font-size: 12px; @@ -588,11 +630,26 @@ a:hover { border-bottom-color: rgba(16, 185, 129, 0.3); } +.bookmark-table td:last-child { + white-space: nowrap; + text-align: right; +} + .bookmark-table tr.is-open td { background: rgba(37, 99, 235, 0.08); border-bottom-color: rgba(37, 99, 235, 0.2); } +.bookmark-table tr.is-inactive td { + background: rgba(107, 114, 128, 0.16); + border-bottom-color: rgba(107, 114, 128, 0.28); + color: var(--muted); +} + +.bookmark-table tr.is-inactive a { + color: var(--muted); +} + .chip { border-radius: 12px; padding: 6px 8px; @@ -611,6 +668,13 @@ a:hover { border-color: rgba(37, 99, 235, 0.2); } +.chip--inactive { + background: rgba(107, 114, 128, 0.22); + color: #0f172a; + border-color: rgba(107, 114, 128, 0.32); + margin-left: 8px; +} + .list-summary { color: var(--muted); font-size: 14px; @@ -631,9 +695,10 @@ a:hover { } .table-actions { - display: flex; + display: inline-flex; gap: 6px; - flex-wrap: wrap; + flex-wrap: nowrap; + justify-content: flex-end; } .table-actions .ghost-btn { diff --git a/web/daily-bookmarks.html b/web/daily-bookmarks.html index 976f614..7ca8341 100644 --- a/web/daily-bookmarks.html +++ b/web/daily-bookmarks.html @@ -2,208 +2,20 @@ -Tägliche Liste
-| - - | -- - | -- - | -- - | -Aktionen | -
|---|---|---|---|---|
| - - - | -- - - | -- | - | - - | -
Neues Bookmark
-Titel optional, URL-Template erforderlich. Platzhalter werden für den gewählten Tag aufgelöst.
-Masseneingabe
-Füge hunderte Links gleichzeitig hinzu und vergebe einen gemeinsamen Marker.
-Weiterleitung zu Daily Bookmarks…
diff --git a/web/daily-bookmarks.js b/web/daily-bookmarks.js index d7c1fe9..e8af87f 100644 --- a/web/daily-bookmarks.js +++ b/web/daily-bookmarks.js @@ -1,4 +1,6 @@ (function () { + let active = false; + let initialized = false; const API_URL = window.API_URL || 'https://fb.srv.medeba-media.de/api'; const BULK_COUNT_STORAGE_KEY = 'dailyBookmarkBulkCount'; const FILTER_STORAGE_KEY = 'dailyBookmarkFilters'; @@ -27,55 +29,63 @@ let editingId = null; - const dayLabel = document.getElementById('dayLabel'); - const daySubLabel = document.getElementById('daySubLabel'); - const prevDayBtn = document.getElementById('prevDayBtn'); - const nextDayBtn = document.getElementById('nextDayBtn'); - const todayBtn = document.getElementById('todayBtn'); - const refreshBtn = document.getElementById('refreshBtn'); - const heroStats = document.getElementById('heroStats'); - const listSummary = document.getElementById('listSummary'); - const listStatus = document.getElementById('listStatus'); - const tableBody = document.getElementById('tableBody'); - const bulkCountSelect = document.getElementById('bulkCountSelect'); - const bulkOpenBtn = document.getElementById('bulkOpenBtn'); - const autoOpenToggle = document.getElementById('autoOpenToggle'); - const autoOpenOverlay = document.getElementById('autoOpenOverlay'); - const autoOpenOverlayPanel = document.getElementById('autoOpenOverlayPanel'); - const autoOpenCountdown = document.getElementById('autoOpenCountdown'); - const openCreateBtn = document.getElementById('openCreateBtn'); + const dailyDayLabel = document.getElementById('dailyDayLabel'); + const dailyDaySubLabel = document.getElementById('dailyDaySubLabel'); + const dailyPrevDayBtn = document.getElementById('dailyPrevDayBtn'); + const dailyNextDayBtn = document.getElementById('dailyNextDayBtn'); + const dailyTodayBtn = document.getElementById('dailyTodayBtn'); + const dailyRefreshBtn = document.getElementById('dailyRefreshBtn'); + const dailyHeroStats = document.getElementById('dailyHeroStats'); + const dailyListSummary = document.getElementById('dailyListSummary'); + const dailyListStatus = document.getElementById('dailyListStatus'); + const dailyTableBody = document.getElementById('dailyTableBody'); + const dailyBulkCountSelect = document.getElementById('dailyBulkCountSelect'); + const dailyBulkOpenBtn = document.getElementById('dailyBulkOpenBtn'); + const dailyAutoOpenToggle = document.getElementById('dailyAutoOpenToggle'); + const dailyAutoOpenOverlay = document.getElementById('dailyAutoOpenOverlay'); + const dailyAutoOpenOverlayPanel = document.getElementById('dailyAutoOpenOverlayPanel'); + const dailyAutoOpenCountdown = document.getElementById('dailyAutoOpenCountdown'); + const dailyOpenCreateBtn = document.getElementById('dailyOpenCreateBtn'); - const modal = document.getElementById('bookmarkModal'); - const modalCloseBtn = document.getElementById('modalCloseBtn'); - const modalBackdrop = modal ? modal.querySelector('.modal__backdrop') : null; - const formEl = document.getElementById('bookmarkForm'); - const titleInput = document.getElementById('titleInput'); - const urlInput = document.getElementById('urlInput'); - const notesInput = document.getElementById('notesInput'); - const resetBtn = document.getElementById('resetBtn'); - const submitBtn = document.getElementById('submitBtn'); - const previewLink = document.getElementById('previewLink'); - const formStatus = document.getElementById('formStatus'); - const formModeLabel = document.getElementById('formModeLabel'); - const urlSuggestionBox = document.getElementById('urlSuggestionBox'); - const markerInput = document.getElementById('markerInput'); - const markerFilterSelect = document.getElementById('markerFilter'); - const urlFilterInput = document.getElementById('urlFilter'); - const resetViewBtn = document.getElementById('resetViewBtn'); + const modal = document.getElementById('dailyBookmarkModal'); + const dailyModalCloseBtn = document.getElementById('dailyModalCloseBtn'); + const dailyModalBackdrop = modal ? modal.querySelector('.modal__backdrop') : null; + const formEl = document.getElementById('dailyBookmarkForm'); + const dailyTitleInput = document.getElementById('dailyTitleInput'); + const dailyUrlInput = document.getElementById('dailyUrlInput'); + const dailyNotesInput = document.getElementById('dailyNotesInput'); + const dailyResetBtn = document.getElementById('dailyResetBtn'); + const dailySubmitBtn = document.getElementById('dailySubmitBtn'); + const dailyPreviewLink = document.getElementById('dailyPreviewLink'); + const dailyFormStatus = document.getElementById('dailyFormStatus'); + const dailyFormModeLabel = document.getElementById('dailyFormModeLabel'); + const dailyUrlSuggestionBox = document.getElementById('dailyUrlSuggestionBox'); + const dailyMarkerInput = document.getElementById('dailyMarkerInput'); + const dailyActiveInput = document.getElementById('dailyActiveInput'); + const markerFilterSelect = document.getElementById('dailyMarkerFilter'); + const urlFilterInput = document.getElementById('dailyUrlFilter'); + const dailyResetViewBtn = document.getElementById('dailyResetViewBtn'); const sortButtons = Array.from(document.querySelectorAll('[data-sort-key]')); - const openImportBtn = document.getElementById('openImportBtn'); - const importModal = document.getElementById('importModal'); - const importCloseBtn = document.getElementById('importCloseBtn'); - const importBackdrop = importModal ? importModal.querySelector('.modal__backdrop') : null; - const importForm = document.getElementById('importForm'); - const importInput = document.getElementById('importInput'); - const importMarkerInput = document.getElementById('importMarkerInput'); - const importResetBtn = document.getElementById('importResetBtn'); - const importSubmitBtn = document.getElementById('importSubmitBtn'); - const importStatus = document.getElementById('importStatus'); + const dailyOpenImportBtn = document.getElementById('dailyOpenImportBtn'); + const dailyImportModal = document.getElementById('dailyImportModal'); + const dailyImportCloseBtn = document.getElementById('dailyImportCloseBtn'); + const dailyImportBackdrop = dailyImportModal ? dailyImportModal.querySelector('.modal__backdrop') : null; + const dailyImportForm = document.getElementById('dailyImportForm'); + const dailyImportInput = document.getElementById('dailyImportInput'); + const dailyImportMarkerInput = document.getElementById('dailyImportMarkerInput'); + const dailyImportResetBtn = document.getElementById('dailyImportResetBtn'); + const dailyImportSubmitBtn = document.getElementById('dailyImportSubmitBtn'); + const dailyImportStatus = document.getElementById('dailyImportStatus'); const PLACEHOLDER_PATTERN = /\{\{\s*([^}]+)\s*\}\}/gi; + function ensureStyles(enabled) { + const link = document.getElementById('dailyBookmarksCss'); + if (link) { + link.disabled = !enabled; + } + } + function formatDayKey(date) { const d = date instanceof Date ? date : new Date(); const year = d.getFullYear(); @@ -214,6 +224,16 @@ } } + function normalizeItem(item) { + if (!item || typeof item !== 'object') { + return null; + } + return { + ...item, + is_active: Number(item.is_active ?? 1) !== 0 + }; + } + function resolveTemplate(template, dayKey) { if (typeof template !== 'string') { return ''; @@ -343,32 +363,32 @@ } function renderUrlSuggestions() { - if (!urlSuggestionBox) { + if (!dailyUrlSuggestionBox) { return; } - const suggestions = buildUrlSuggestions(urlInput ? urlInput.value : ''); - urlSuggestionBox.innerHTML = ''; + const suggestions = buildUrlSuggestions(dailyUrlInput ? dailyUrlInput.value : ''); + dailyUrlSuggestionBox.innerHTML = ''; if (!suggestions.length) { - urlSuggestionBox.hidden = true; + dailyUrlSuggestionBox.hidden = true; return; } const text = document.createElement('span'); text.className = 'suggestion-box__text'; text.textContent = 'Mögliche Platzhalter:'; - urlSuggestionBox.appendChild(text); + dailyUrlSuggestionBox.appendChild(text); const applySuggestion = (value) => { - if (!urlInput) { + if (!dailyUrlInput) { return; } - urlInput.value = value; + dailyUrlInput.value = value; updatePreviewLink(); renderUrlSuggestions(); - const end = urlInput.value.length; - urlInput.focus(); + const end = dailyUrlInput.value.length; + dailyUrlInput.focus(); try { - urlInput.setSelectionRange(end, end); + dailyUrlInput.setSelectionRange(end, end); } catch (error) { // ignore if not supported } @@ -400,10 +420,10 @@ }); item.appendChild(preview); - urlSuggestionBox.appendChild(item); + dailyUrlSuggestionBox.appendChild(item); }); - urlSuggestionBox.hidden = false; + dailyUrlSuggestionBox.hidden = false; } async function apiFetch(url, options = {}) { @@ -438,60 +458,64 @@ } function updateDayUI() { - if (dayLabel) { - dayLabel.textContent = formatDayLabel(state.dayKey); + if (dailyDayLabel) { + dailyDayLabel.textContent = formatDayLabel(state.dayKey); } - if (daySubLabel) { - daySubLabel.textContent = formatRelativeDay(state.dayKey); + if (dailyDaySubLabel) { + dailyDaySubLabel.textContent = formatRelativeDay(state.dayKey); } updatePreviewLink(); } function setDayKey(dayKey) { state.dayKey = formatDayKey(parseDayKey(dayKey)); + if (!active) return; updateDayUI(); loadDailyBookmarks(); } function setFormStatus(message, isError = false) { - if (!formStatus) { + if (!dailyFormStatus) { return; } - formStatus.textContent = message || ''; - formStatus.classList.toggle('form-status--error', !!isError); + dailyFormStatus.textContent = message || ''; + dailyFormStatus.classList.toggle('form-status--error', !!isError); } function setListStatus(message, isError = false) { - if (!listStatus) { + if (!dailyListStatus) { return; } - listStatus.textContent = message || ''; - listStatus.classList.toggle('list-status--error', !!isError); + dailyListStatus.textContent = message || ''; + dailyListStatus.classList.toggle('list-status--error', !!isError); } function updatePreviewLink() { - if (!previewLink || !urlInput) { + if (!dailyPreviewLink || !dailyUrlInput) { return; } - const resolved = resolveTemplate(urlInput.value || '', state.dayKey); - previewLink.textContent = resolved || '–'; + const resolved = resolveTemplate(dailyUrlInput.value || '', state.dayKey); + dailyPreviewLink.textContent = resolved || '–'; if (resolved) { - previewLink.href = resolved; - previewLink.target = '_blank'; - previewLink.rel = 'noopener'; + dailyPreviewLink.href = resolved; + dailyPreviewLink.target = '_blank'; + dailyPreviewLink.rel = 'noopener'; } else { - previewLink.removeAttribute('href'); + dailyPreviewLink.removeAttribute('href'); } renderUrlSuggestions(); } function resetForm() { editingId = null; - formModeLabel.textContent = 'Neues Bookmark'; - submitBtn.textContent = 'Speichern'; + dailyFormModeLabel.textContent = 'Neues Bookmark'; + dailySubmitBtn.textContent = 'Speichern'; formEl.reset(); - if (markerInput) { - markerInput.value = ''; + if (dailyMarkerInput) { + dailyMarkerInput.value = ''; + } + if (dailyActiveInput) { + dailyActiveInput.checked = true; } setFormStatus(''); updatePreviewLink(); @@ -499,18 +523,21 @@ } function openModal(mode, bookmark) { - if (importModal && !importModal.hidden) { + if (dailyImportModal && !dailyImportModal.hidden) { closeImportModal(); } if (mode === 'edit' && bookmark) { editingId = bookmark.id; - formModeLabel.textContent = 'Bookmark bearbeiten'; - submitBtn.textContent = 'Aktualisieren'; - titleInput.value = bookmark.title || ''; - urlInput.value = bookmark.url_template || ''; - notesInput.value = bookmark.notes || ''; - if (markerInput) { - markerInput.value = bookmark.marker || ''; + dailyFormModeLabel.textContent = 'Bookmark bearbeiten'; + dailySubmitBtn.textContent = 'Aktualisieren'; + dailyTitleInput.value = bookmark.title || ''; + dailyUrlInput.value = bookmark.url_template || ''; + dailyNotesInput.value = bookmark.notes || ''; + if (dailyMarkerInput) { + dailyMarkerInput.value = bookmark.marker || ''; + } + if (dailyActiveInput) { + dailyActiveInput.checked = bookmark.is_active !== false; } setFormStatus('Bearbeite vorhandenes Bookmark'); } else { @@ -522,10 +549,10 @@ modal.focus(); } updatePreviewLink(); - if (mode === 'edit' && titleInput) { - titleInput.focus(); - } else if (urlInput) { - urlInput.focus(); + if (mode === 'edit' && dailyTitleInput) { + dailyTitleInput.focus(); + } else if (dailyUrlInput) { + dailyUrlInput.focus(); } } @@ -572,22 +599,22 @@ } function getFilteredItems() { - const markerFilter = state.filters.marker || ''; - const urlFilter = (state.filters.url || '').toLowerCase(); + const dailyMarkerFilter = state.filters.marker || ''; + const dailyUrlFilter = (state.filters.url || '').toLowerCase(); return state.items.filter((item) => { const currentMarker = normalizeMarkerValue(item.marker).toLowerCase(); - if (markerFilter === '__none') { + if (dailyMarkerFilter === '__none') { if (currentMarker) { return false; } - } else if (markerFilter) { - if (currentMarker !== markerFilter.toLowerCase()) { + } else if (dailyMarkerFilter) { + if (currentMarker !== dailyMarkerFilter.toLowerCase()) { return false; } } - if (urlFilter) { + if (dailyUrlFilter) { const urlValue = (item.resolved_url || item.url_template || '').toLowerCase(); - if (!urlValue.includes(urlFilter)) { + if (!urlValue.includes(dailyUrlFilter)) { return false; } } @@ -676,11 +703,11 @@ } function renderTable() { - if (!tableBody) { + if (!dailyTableBody) { return; } - tableBody.innerHTML = ''; + dailyTableBody.innerHTML = ''; updateSortIndicators(); if (state.loading) { @@ -706,7 +733,12 @@ visibleItems.forEach((item) => { const tr = document.createElement('tr'); - tr.classList.add(item.completed_for_day ? 'is-done' : 'is-open'); + const isActive = item.is_active !== false; + if (isActive) { + tr.classList.add(item.completed_for_day ? 'is-done' : 'is-open'); + } else { + tr.classList.add('is-inactive'); + } const urlTd = document.createElement('td'); urlTd.className = 'url-cell'; @@ -722,14 +754,23 @@ const markerTd = document.createElement('td'); markerTd.className = 'marker-cell'; + markerTd.textContent = ''; if (normalizeMarkerValue(item.marker)) { const markerChip = document.createElement('span'); markerChip.className = 'chip chip--marker'; markerChip.textContent = item.marker; markerTd.appendChild(markerChip); } else { - markerTd.textContent = '–'; - markerTd.classList.add('muted'); + const placeholder = document.createElement('span'); + placeholder.textContent = '–'; + placeholder.classList.add('muted'); + markerTd.appendChild(placeholder); + } + if (!isActive) { + const inactiveChip = document.createElement('span'); + inactiveChip.className = 'chip chip--inactive'; + inactiveChip.textContent = 'Deaktiviert'; + markerTd.appendChild(inactiveChip); } tr.appendChild(markerTd); @@ -748,9 +789,11 @@ openBtn.className = 'ghost-btn'; openBtn.type = 'button'; openBtn.textContent = '🔗'; - openBtn.title = 'Öffnen'; + openBtn.title = isActive ? 'Öffnen' : 'Deaktiviert'; + openBtn.disabled = !isActive; openBtn.addEventListener('click', () => { const target = item.resolved_url || item.url_template; + if (!isActive) return; if (target) { window.open(target, '_blank', 'noopener'); } @@ -761,7 +804,10 @@ toggleBtn.className = 'ghost-btn'; toggleBtn.type = 'button'; toggleBtn.textContent = item.completed_for_day ? '↩️' : '✅'; - toggleBtn.title = item.completed_for_day ? 'Zurücksetzen' : 'Heute erledigt'; + toggleBtn.title = isActive + ? (item.completed_for_day ? 'Zurücksetzen' : 'Heute erledigt') + : 'Deaktiviert'; + toggleBtn.disabled = !isActive; toggleBtn.addEventListener('click', () => { if (item.completed_for_day) { undoDailyBookmark(item.id); @@ -792,7 +838,7 @@ actionsTd.appendChild(deleteBtn); tr.appendChild(actionsTd); - tableBody.appendChild(tr); + dailyTableBody.appendChild(tr); }); } @@ -803,16 +849,20 @@ td.className = className; td.textContent = text; tr.appendChild(td); - tableBody.appendChild(tr); + dailyTableBody.appendChild(tr); } function updateHeroStats() { - const total = state.items.length; - const done = state.items.filter((item) => item.completed_for_day).length; - const visibleItems = getFilteredItems(); + const activeItems = state.items.filter((item) => item.is_active !== false); + const totalActive = activeItems.length; + const inactiveCount = state.items.length - totalActive; + const done = activeItems.filter((item) => item.completed_for_day).length; + const visibleItems = getFilteredItems().filter((item) => item.is_active !== false); const visibleDone = visibleItems.filter((item) => item.completed_for_day).length; - const filterSuffix = visibleItems.length !== total ? ` · Gefiltert: ${visibleDone}/${visibleItems.length}` : ''; - const text = total ? `${done}/${total} erledigt${filterSuffix}` : 'Keine Bookmarks vorhanden'; + const filterSuffix = visibleItems.length !== totalActive ? ` · Gefiltert: ${visibleDone}/${visibleItems.length}` : ''; + const inactiveSuffix = inactiveCount ? ` · ${inactiveCount} deaktiviert` : ''; + const baseText = totalActive ? `${done}/${totalActive} erledigt${filterSuffix}` : 'Keine aktiven Bookmarks'; + const text = `${baseText}${inactiveSuffix}`; const filterParts = []; if (state.filters.marker) { filterParts.push(state.filters.marker === '__none' ? 'ohne Marker' : `Marker: ${state.filters.marker}`); @@ -821,11 +871,11 @@ filterParts.push(`URL enthält „${state.filters.url}“`); } const filterText = filterParts.length ? ` · Filter: ${filterParts.join(' · ')}` : ''; - if (heroStats) { - heroStats.textContent = `${text}${filterText}`; + if (dailyHeroStats) { + dailyHeroStats.textContent = `${text}${filterText}`; } - if (listSummary) { - listSummary.textContent = `${text} – Tag ${state.dayKey}${filterText}`; + if (dailyListSummary) { + dailyListSummary.textContent = `${text} – Tag ${state.dayKey}${filterText}`; } } @@ -837,27 +887,27 @@ } function updateAutoOpenCountdownLabel(remainingMs) { - if (!autoOpenCountdown) return; + if (!dailyAutoOpenCountdown) return; const safeMs = Math.max(0, remainingMs); const seconds = safeMs / 1000; const formatted = seconds >= 10 ? seconds.toFixed(0) : seconds.toFixed(1); - autoOpenCountdown.textContent = formatted; + dailyAutoOpenCountdown.textContent = formatted; } function hideAutoOpenOverlay() { clearAutoOpenCountdown(); - if (autoOpenOverlay) { - autoOpenOverlay.classList.remove('visible'); - autoOpenOverlay.hidden = true; + if (dailyAutoOpenOverlay) { + dailyAutoOpenOverlay.classList.remove('visible'); + dailyAutoOpenOverlay.hidden = true; } } function showAutoOpenOverlay(delayMs) { - if (!autoOpenOverlay) return; + if (!dailyAutoOpenOverlay) return; const duration = Math.max(0, delayMs); hideAutoOpenOverlay(); - autoOpenOverlay.hidden = false; - requestAnimationFrame(() => autoOpenOverlay.classList.add('visible')); + dailyAutoOpenOverlay.hidden = false; + requestAnimationFrame(() => dailyAutoOpenOverlay.classList.add('visible')); updateAutoOpenCountdownLabel(duration); const start = Date.now(); state.autoOpenCountdownIntervalId = setInterval(() => { @@ -882,13 +932,19 @@ } function maybeAutoOpen(reason = '', delayMs = AUTO_OPEN_DELAY_MS) { + if (!active) { + hideAutoOpenOverlay(); + return; + } if (!state.autoOpenEnabled) { hideAutoOpenOverlay(); return; } if (state.processingBatch) return; if (state.autoOpenTriggered) return; - const undone = getVisibleItems().filter((item) => !item.completed_for_day); + const undone = getVisibleItems().filter( + (item) => item.is_active !== false && !item.completed_for_day + ); if (!undone.length) { hideAutoOpenOverlay(); return; @@ -921,6 +977,7 @@ } async function loadDailyBookmarks() { + if (!active) return; state.loading = true; if (state.autoOpenTimerId) { clearTimeout(state.autoOpenTimerId); @@ -933,7 +990,8 @@ renderTable(); try { const data = await apiFetch(`${API_URL}/daily-bookmarks?day=${encodeURIComponent(state.dayKey)}`); - state.items = Array.isArray(data) ? data : []; + const rows = Array.isArray(data) ? data : []; + state.items = rows.map((item) => normalizeItem(item)).filter(Boolean); state.loading = false; updateHeroStats(); renderMarkerFilterOptions(); @@ -949,13 +1007,19 @@ async function completeDailyBookmark(id) { if (!id) return; + const target = state.items.find((item) => item.id === id); + if (target && target.is_active === false) { + setListStatus('Bookmark ist deaktiviert.', true); + return; + } state.error = ''; try { const updated = await apiFetch(`${API_URL}/daily-bookmarks/${encodeURIComponent(id)}/check`, { method: 'POST', body: JSON.stringify({ day: state.dayKey }) }); - state.items = state.items.map((item) => (item.id === id ? updated : item)); + const normalized = normalizeItem(updated); + state.items = state.items.map((item) => (item.id === id ? normalized || item : item)); updateHeroStats(); renderTable(); } catch (error) { @@ -967,12 +1031,18 @@ async function undoDailyBookmark(id) { if (!id) return; + const target = state.items.find((item) => item.id === id); + if (target && target.is_active === false) { + setListStatus('Bookmark ist deaktiviert.', true); + return; + } state.error = ''; try { const updated = await apiFetch(`${API_URL}/daily-bookmarks/${encodeURIComponent(id)}/check?day=${encodeURIComponent(state.dayKey)}`, { method: 'DELETE' }); - state.items = state.items.map((item) => (item.id === id ? updated : item)); + const normalized = normalizeItem(updated); + state.items = state.items.map((item) => (item.id === id ? normalized || item : item)); updateHeroStats(); renderTable(); } catch (error) { @@ -1007,19 +1077,19 @@ event.preventDefault(); if (state.saving) return; - const title = titleInput.value.trim(); - const url = urlInput.value.trim(); - const notes = notesInput.value.trim(); - const marker = markerInput ? markerInput.value.trim() : ''; + const title = dailyTitleInput.value.trim(); + const url = dailyUrlInput.value.trim(); + const notes = dailyNotesInput.value.trim(); + const marker = dailyMarkerInput ? dailyMarkerInput.value.trim() : ''; if (!url) { setFormStatus('URL-Template ist Pflicht.', true); - urlInput.focus(); + dailyUrlInput.focus(); return; } state.saving = true; - submitBtn.disabled = true; + dailySubmitBtn.disabled = true; setFormStatus(''); const payload = { @@ -1027,6 +1097,7 @@ url_template: url, notes, marker, + is_active: dailyActiveInput ? dailyActiveInput.checked : true, day: state.dayKey }; @@ -1040,10 +1111,11 @@ method, body: JSON.stringify(payload) }); + const normalized = normalizeItem(saved); if (editingId) { - state.items = state.items.map((item) => (item.id === editingId ? saved : item)); - } else { - state.items = [saved, ...state.items]; + state.items = state.items.map((item) => (item.id === editingId ? normalized || item : item)); + } else if (normalized) { + state.items = [normalized, ...state.items]; } updateHeroStats(); renderMarkerFilterOptions(); @@ -1053,7 +1125,7 @@ setFormStatus('Speichern fehlgeschlagen.', true); } finally { state.saving = false; - submitBtn.disabled = false; + dailySubmitBtn.disabled = false; } } @@ -1062,7 +1134,9 @@ if (!auto) { cancelAutoOpen(false); } - const undone = getVisibleItems().filter((item) => !item.completed_for_day); + const undone = getVisibleItems().filter( + (item) => item.is_active !== false && !item.completed_for_day + ); if (!undone.length) { if (!auto) { setListStatus('Keine offenen Bookmarks für den gewählten Tag.', true); @@ -1074,8 +1148,8 @@ const selection = undone.slice(0, count); state.processingBatch = true; - if (bulkOpenBtn) { - bulkOpenBtn.disabled = true; + if (dailyBulkOpenBtn) { + dailyBulkOpenBtn.disabled = true; } if (!auto) { setListStatus(''); @@ -1093,15 +1167,16 @@ method: 'POST', body: JSON.stringify({ day: state.dayKey }) }); - state.items = state.items.map((entry) => (entry.id === item.id ? updated : entry)); + const normalized = normalizeItem(updated); + state.items = state.items.map((entry) => (entry.id === item.id ? normalized || entry : entry)); } catch (error) { setListStatus('Einige Bookmarks konnten nicht abgehakt werden.', true); } } state.processingBatch = false; - if (bulkOpenBtn) { - bulkOpenBtn.disabled = false; + if (dailyBulkOpenBtn) { + dailyBulkOpenBtn.disabled = false; } if (auto) { setListStatus(''); @@ -1111,20 +1186,20 @@ } function setImportStatus(message, isError = false) { - if (!importStatus) { + if (!dailyImportStatus) { return; } - importStatus.textContent = message || ''; - importStatus.classList.toggle('form-status--error', !!isError); + dailyImportStatus.textContent = message || ''; + dailyImportStatus.classList.toggle('form-status--error', !!isError); } function resetImportForm() { - if (importForm) { - importForm.reset(); + if (dailyImportForm) { + dailyImportForm.reset(); } const suggestedMarker = state.filters.marker && state.filters.marker !== '__none' ? state.filters.marker : ''; - if (importMarkerInput) { - importMarkerInput.value = suggestedMarker; + if (dailyImportMarkerInput) { + dailyImportMarkerInput.value = suggestedMarker; } setImportStatus(''); } @@ -1134,18 +1209,18 @@ closeModal(); } resetImportForm(); - if (importModal) { - importModal.hidden = false; - importModal.focus(); + if (dailyImportModal) { + dailyImportModal.hidden = false; + dailyImportModal.focus(); } - if (importInput) { - importInput.focus(); + if (dailyImportInput) { + dailyImportInput.focus(); } } function closeImportModal() { - if (importModal) { - importModal.hidden = true; + if (dailyImportModal) { + dailyImportModal.hidden = true; } resetImportForm(); } @@ -1154,12 +1229,12 @@ event.preventDefault(); if (state.importing) return; - const rawText = importInput ? importInput.value.trim() : ''; - const marker = importMarkerInput ? importMarkerInput.value.trim() : ''; + const rawText = dailyImportInput ? dailyImportInput.value.trim() : ''; + const marker = dailyImportMarkerInput ? dailyImportMarkerInput.value.trim() : ''; if (!rawText) { setImportStatus('Bitte füge mindestens eine URL ein.', true); - if (importInput) { - importInput.focus(); + if (dailyImportInput) { + dailyImportInput.focus(); } return; } @@ -1175,8 +1250,8 @@ } state.importing = true; - if (importSubmitBtn) { - importSubmitBtn.disabled = true; + if (dailyImportSubmitBtn) { + dailyImportSubmitBtn.disabled = true; } setImportStatus('Import läuft...'); @@ -1186,7 +1261,8 @@ body: JSON.stringify({ urls, marker, day: state.dayKey }) }); - const importedItems = Array.isArray(result && result.items) ? result.items : []; + const importedItemsRaw = Array.isArray(result && result.items) ? result.items : []; + const importedItems = importedItemsRaw.map((item) => normalizeItem(item)).filter(Boolean); const importedIds = new Set(importedItems.map((entry) => entry.id)); const remaining = state.items.filter((item) => !importedIds.has(item.id)); state.items = [...importedItems, ...remaining]; @@ -1207,30 +1283,30 @@ setImportStatus(error && error.message ? error.message : 'Import fehlgeschlagen.', true); } finally { state.importing = false; - if (importSubmitBtn) { - importSubmitBtn.disabled = false; + if (dailyImportSubmitBtn) { + dailyImportSubmitBtn.disabled = false; } } } function setupEvents() { - if (prevDayBtn) { - prevDayBtn.addEventListener('click', () => setDayKey(formatDayKey(addDays(parseDayKey(state.dayKey), -1)))); + if (dailyPrevDayBtn) { + dailyPrevDayBtn.addEventListener('click', () => setDayKey(formatDayKey(addDays(parseDayKey(state.dayKey), -1)))); } - if (nextDayBtn) { - nextDayBtn.addEventListener('click', () => setDayKey(formatDayKey(addDays(parseDayKey(state.dayKey), 1)))); + if (dailyNextDayBtn) { + dailyNextDayBtn.addEventListener('click', () => setDayKey(formatDayKey(addDays(parseDayKey(state.dayKey), 1)))); } - if (todayBtn) { - todayBtn.addEventListener('click', () => setDayKey(formatDayKey(new Date()))); + if (dailyTodayBtn) { + dailyTodayBtn.addEventListener('click', () => setDayKey(formatDayKey(new Date()))); } - if (refreshBtn) { - refreshBtn.addEventListener('click', () => loadDailyBookmarks()); + if (dailyRefreshBtn) { + dailyRefreshBtn.addEventListener('click', () => loadDailyBookmarks()); } - if (openCreateBtn) { - openCreateBtn.addEventListener('click', () => openModal('create')); + if (dailyOpenCreateBtn) { + dailyOpenCreateBtn.addEventListener('click', () => openModal('create')); } - if (modalCloseBtn) { - modalCloseBtn.addEventListener('click', closeModal); + if (dailyModalCloseBtn) { + dailyModalCloseBtn.addEventListener('click', closeModal); } if (modal) { modal.addEventListener('click', (event) => { @@ -1239,49 +1315,50 @@ } }); } - if (modalBackdrop) { - modalBackdrop.addEventListener('click', closeModal); + if (dailyModalBackdrop) { + dailyModalBackdrop.addEventListener('click', closeModal); } document.addEventListener('keydown', (event) => { + if (!active) return; if (event.key === 'Escape') { if (modal && !modal.hidden) { closeModal(); } - if (importModal && !importModal.hidden) { + if (dailyImportModal && !dailyImportModal.hidden) { closeImportModal(); } } }); - if (urlInput) { - urlInput.addEventListener('input', updatePreviewLink); - urlInput.addEventListener('blur', renderUrlSuggestions); + if (dailyUrlInput) { + dailyUrlInput.addEventListener('input', updatePreviewLink); + dailyUrlInput.addEventListener('blur', renderUrlSuggestions); } if (formEl) { formEl.addEventListener('submit', submitForm); } - if (resetBtn) { - resetBtn.addEventListener('click', resetForm); + if (dailyResetBtn) { + dailyResetBtn.addEventListener('click', resetForm); } - if (bulkCountSelect) { - bulkCountSelect.value = String(state.bulkCount); - bulkCountSelect.addEventListener('change', () => { - const value = parseInt(bulkCountSelect.value, 10); + if (dailyBulkCountSelect) { + dailyBulkCountSelect.value = String(state.bulkCount); + dailyBulkCountSelect.addEventListener('change', () => { + const value = parseInt(dailyBulkCountSelect.value, 10); if (!Number.isNaN(value)) { state.bulkCount = value; persistBulkCount(value); } }); } - if (bulkOpenBtn) { - bulkOpenBtn.addEventListener('click', () => openBatch()); + if (dailyBulkOpenBtn) { + dailyBulkOpenBtn.addEventListener('click', () => openBatch()); } - if (autoOpenOverlayPanel) { - autoOpenOverlayPanel.addEventListener('click', () => cancelAutoOpen(true)); + if (dailyAutoOpenOverlayPanel) { + dailyAutoOpenOverlayPanel.addEventListener('click', () => cancelAutoOpen(true)); } - if (autoOpenToggle) { - autoOpenToggle.checked = !!state.autoOpenEnabled; - autoOpenToggle.addEventListener('change', () => { - state.autoOpenEnabled = autoOpenToggle.checked; + if (dailyAutoOpenToggle) { + dailyAutoOpenToggle.checked = !!state.autoOpenEnabled; + dailyAutoOpenToggle.addEventListener('change', () => { + state.autoOpenEnabled = dailyAutoOpenToggle.checked; persistAutoOpenEnabled(state.autoOpenEnabled); state.autoOpenTriggered = false; if (!state.autoOpenEnabled && state.autoOpenTimerId) { @@ -1322,8 +1399,8 @@ renderTable(); }); } - if (resetViewBtn) { - resetViewBtn.addEventListener('click', () => { + if (dailyResetViewBtn) { + dailyResetViewBtn.addEventListener('click', () => { state.filters = { marker: '', url: '' }; state.sort = { ...DEFAULT_SORT }; persistFilters(state.filters); @@ -1352,36 +1429,54 @@ }); }); } - if (openImportBtn) { - openImportBtn.addEventListener('click', openImportModal); + if (dailyOpenImportBtn) { + dailyOpenImportBtn.addEventListener('click', openImportModal); } - if (importCloseBtn) { - importCloseBtn.addEventListener('click', closeImportModal); + if (dailyImportCloseBtn) { + dailyImportCloseBtn.addEventListener('click', closeImportModal); } - if (importModal) { - importModal.addEventListener('click', (event) => { - if (event.target === importModal) { + if (dailyImportModal) { + dailyImportModal.addEventListener('click', (event) => { + if (event.target === dailyImportModal) { closeImportModal(); } }); } - if (importBackdrop) { - importBackdrop.addEventListener('click', closeImportModal); + if (dailyImportBackdrop) { + dailyImportBackdrop.addEventListener('click', closeImportModal); } - if (importForm) { - importForm.addEventListener('submit', submitImportForm); + if (dailyImportForm) { + dailyImportForm.addEventListener('submit', submitImportForm); } - if (importResetBtn) { - importResetBtn.addEventListener('click', resetImportForm); + if (dailyImportResetBtn) { + dailyImportResetBtn.addEventListener('click', resetImportForm); } } function init() { - updateDayUI(); + if (initialized) return; setupEvents(); - loadDailyBookmarks(); - updatePreviewLink(); + initialized = true; } - init(); + function cleanup() { + active = false; + cancelAutoOpen(false); + ensureStyles(false); + hideAutoOpenOverlay(); + } + + function activate() { + ensureStyles(true); + init(); + active = true; + updateDayUI(); + updatePreviewLink(); + loadDailyBookmarks(); + } + + window.DailyBookmarksPage = { + activate, + deactivate: cleanup + }; })(); diff --git a/web/index.html b/web/index.html index affadea..9ff0616 100644 --- a/web/index.html +++ b/web/index.html @@ -10,6 +10,8 @@ + +Geplante Requests
+| Name | +Nächster Lauf | +Letzter Lauf | +Status | +#Läufe | +Aktionen | +
|---|---|---|---|---|---|
| + | + | + | + + | ++ | + |
Verlauf
+Letzte Läufe der ausgewählten Automation.
+Neue Automation
+Import
+Füge hier "Copy as cURL", "Copy as fetch" oder Powershell ein. Header, Methode, Body und URL werden übernommen.
+ +Tägliche Liste
+| + + | ++ + | ++ + | ++ + | +Aktionen | +
|---|---|---|---|---|
| + + + | ++ + + | ++ | + | + + | +
Neues Bookmark
+Titel optional, URL-Template erforderlich. Platzhalter werden für den gewählten Tag aufgelöst.
+Masseneingabe
+Füge hunderte Links gleichzeitig hinzu und vergebe einen gemeinsamen Marker.
+