From c169fafb2ec8d57bac3d67a437f099fae76a5f99 Mon Sep 17 00:00:00 2001 From: gautier Date: Fri, 8 May 2026 13:18:11 +0200 Subject: [PATCH] split files + restrict public context --- index.html | 648 +-------------------------- package-lock.json | 1003 ++++++++++++++++++++++++++++++++++++++++++ package.json | 6 +- public/css/style.css | 106 +++++ public/js/script.js | 535 ++++++++++++++++++++++ server.js | 23 +- 6 files changed, 1674 insertions(+), 647 deletions(-) create mode 100644 package-lock.json create mode 100644 public/css/style.css create mode 100644 public/js/script.js diff --git a/index.html b/index.html index 6189ebb..c57b601 100644 --- a/index.html +++ b/index.html @@ -6,114 +6,7 @@ Jira Ticket Extractor - +
@@ -205,542 +98,7 @@
- - + + \ No newline at end of file diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..d0ed003 --- /dev/null +++ b/package-lock.json @@ -0,0 +1,1003 @@ +{ + "name": "jira-extractor", + "version": "1.0.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "jira-extractor", + "version": "1.0.0", + "license": "ISC", + "dependencies": { + "axios": "^1.7.0", + "express": "^4.21.0", + "https-proxy-agent": "^9.0.0" + } + }, + "node_modules/accepts": { + "version": "1.3.8", + "resolved": "https://repo.gcloud.belgium.be/artifactory/api/npm/smals-npm-central/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/agent-base": { + "version": "9.0.0", + "resolved": "https://repo.gcloud.belgium.be/artifactory/api/npm/smals-npm-central/agent-base/-/agent-base-9.0.0.tgz", + "integrity": "sha512-TQf59BsZnytt8GdJKLPfUZ54g/iaUL2OWDSFCCvMOhsHduDQxO8xC4PNeyIkVcA5KwL2phPSv0douC0fgWzmnA==", + "license": "MIT", + "engines": { + "node": ">= 20" + } + }, + "node_modules/array-flatten": { + "version": "1.1.1", + "resolved": "https://repo.gcloud.belgium.be/artifactory/api/npm/smals-npm-central/array-flatten/-/array-flatten-1.1.1.tgz", + "integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==", + "license": "MIT" + }, + "node_modules/asynckit": { + "version": "0.4.0", + "resolved": "https://repo.gcloud.belgium.be/artifactory/api/npm/smals-npm-central/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==", + "license": "MIT" + }, + "node_modules/axios": { + "version": "1.16.0", + "resolved": "https://repo.gcloud.belgium.be/artifactory/api/npm/smals-npm-central/axios/-/axios-1.16.0.tgz", + "integrity": "sha512-6hp5CwvTPlN2A31g5dxnwAX0orzM7pmCRDLnZSX772mv8WDqICwFjowHuPs04Mc8deIld1+ejhtaMn5vp6b+1w==", + "license": "MIT", + "dependencies": { + "follow-redirects": "^1.16.0", + "form-data": "^4.0.5", + "proxy-from-env": "^2.1.0" + } + }, + "node_modules/body-parser": { + "version": "1.20.5", + "resolved": "https://repo.gcloud.belgium.be/artifactory/api/npm/smals-npm-central/body-parser/-/body-parser-1.20.5.tgz", + "integrity": "sha512-3grm+/2tUOvu2cjJkvsIxrv/wVpfXQW4PsQHYm7yk4vfpu7Ekl6nEsYBoJUL6qDwZUx8wUhQ8tR2qz+ad9c9OA==", + "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.15.1", + "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/body-parser/node_modules/qs": { + "version": "6.15.1", + "resolved": "https://repo.gcloud.belgium.be/artifactory/api/npm/smals-npm-central/qs/-/qs-6.15.1.tgz", + "integrity": "sha512-6YHEFRL9mfgcAvql/XhwTvf5jKcOiiupt2FiJxHkiX1z4j7WL8J/jRHYLluORvc1XxB5rV20KoeK00gVJamspg==", + "license": "BSD-3-Clause", + "dependencies": { + "side-channel": "^1.1.0" + }, + "engines": { + "node": ">=0.6" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/bytes": { + "version": "3.1.2", + "resolved": "https://repo.gcloud.belgium.be/artifactory/api/npm/smals-npm-central/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://repo.gcloud.belgium.be/artifactory/api/npm/smals-npm-central/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://repo.gcloud.belgium.be/artifactory/api/npm/smals-npm-central/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/combined-stream": { + "version": "1.0.8", + "resolved": "https://repo.gcloud.belgium.be/artifactory/api/npm/smals-npm-central/combined-stream/-/combined-stream-1.0.8.tgz", + "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", + "license": "MIT", + "dependencies": { + "delayed-stream": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/content-disposition": { + "version": "0.5.4", + "resolved": "https://repo.gcloud.belgium.be/artifactory/api/npm/smals-npm-central/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://repo.gcloud.belgium.be/artifactory/api/npm/smals-npm-central/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://repo.gcloud.belgium.be/artifactory/api/npm/smals-npm-central/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://repo.gcloud.belgium.be/artifactory/api/npm/smals-npm-central/cookie-signature/-/cookie-signature-1.0.7.tgz", + "integrity": "sha512-NXdYc3dLr47pBkpUCHtKSwIOQXLVn8dZEuywboCOJY/osA0wFSLlSawr3KN8qXJEyX66FcONTH8EIlVuK0yyFA==", + "license": "MIT" + }, + "node_modules/debug": { + "version": "2.6.9", + "resolved": "https://repo.gcloud.belgium.be/artifactory/api/npm/smals-npm-central/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "license": "MIT", + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/delayed-stream": { + "version": "1.0.0", + "resolved": "https://repo.gcloud.belgium.be/artifactory/api/npm/smals-npm-central/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", + "license": "MIT", + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/depd": { + "version": "2.0.0", + "resolved": "https://repo.gcloud.belgium.be/artifactory/api/npm/smals-npm-central/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://repo.gcloud.belgium.be/artifactory/api/npm/smals-npm-central/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/dunder-proto": { + "version": "1.0.1", + "resolved": "https://repo.gcloud.belgium.be/artifactory/api/npm/smals-npm-central/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://repo.gcloud.belgium.be/artifactory/api/npm/smals-npm-central/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://repo.gcloud.belgium.be/artifactory/api/npm/smals-npm-central/encodeurl/-/encodeurl-2.0.0.tgz", + "integrity": "sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/es-define-property": { + "version": "1.0.1", + "resolved": "https://repo.gcloud.belgium.be/artifactory/api/npm/smals-npm-central/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://repo.gcloud.belgium.be/artifactory/api/npm/smals-npm-central/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://repo.gcloud.belgium.be/artifactory/api/npm/smals-npm-central/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/es-set-tostringtag": { + "version": "2.1.0", + "resolved": "https://repo.gcloud.belgium.be/artifactory/api/npm/smals-npm-central/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz", + "integrity": "sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.6", + "has-tostringtag": "^1.0.2", + "hasown": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/escape-html": { + "version": "1.0.3", + "resolved": "https://repo.gcloud.belgium.be/artifactory/api/npm/smals-npm-central/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://repo.gcloud.belgium.be/artifactory/api/npm/smals-npm-central/etag/-/etag-1.8.1.tgz", + "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/express": { + "version": "4.22.1", + "resolved": "https://repo.gcloud.belgium.be/artifactory/api/npm/smals-npm-central/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/finalhandler": { + "version": "1.3.2", + "resolved": "https://repo.gcloud.belgium.be/artifactory/api/npm/smals-npm-central/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/follow-redirects": { + "version": "1.16.0", + "resolved": "https://repo.gcloud.belgium.be/artifactory/api/npm/smals-npm-central/follow-redirects/-/follow-redirects-1.16.0.tgz", + "integrity": "sha512-y5rN/uOsadFT/JfYwhxRS5R7Qce+g3zG97+JrtFZlC9klX/W5hD7iiLzScI4nZqUS7DNUdhPgw4xI8W2LuXlUw==", + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/RubenVerborgh" + } + ], + "license": "MIT", + "engines": { + "node": ">=4.0" + }, + "peerDependenciesMeta": { + "debug": { + "optional": true + } + } + }, + "node_modules/form-data": { + "version": "4.0.5", + "resolved": "https://repo.gcloud.belgium.be/artifactory/api/npm/smals-npm-central/form-data/-/form-data-4.0.5.tgz", + "integrity": "sha512-8RipRLol37bNs2bhoV67fiTEvdTrbMUYcFTiy3+wuuOnUog2QBHCZWXDRijWQfAkhBj2Uf5UnVaiWwA5vdd82w==", + "license": "MIT", + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "es-set-tostringtag": "^2.1.0", + "hasown": "^2.0.2", + "mime-types": "^2.1.12" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/forwarded": { + "version": "0.2.0", + "resolved": "https://repo.gcloud.belgium.be/artifactory/api/npm/smals-npm-central/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://repo.gcloud.belgium.be/artifactory/api/npm/smals-npm-central/fresh/-/fresh-0.5.2.tgz", + "integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/function-bind": { + "version": "1.1.2", + "resolved": "https://repo.gcloud.belgium.be/artifactory/api/npm/smals-npm-central/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://repo.gcloud.belgium.be/artifactory/api/npm/smals-npm-central/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://repo.gcloud.belgium.be/artifactory/api/npm/smals-npm-central/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/gopd": { + "version": "1.2.0", + "resolved": "https://repo.gcloud.belgium.be/artifactory/api/npm/smals-npm-central/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-symbols": { + "version": "1.1.0", + "resolved": "https://repo.gcloud.belgium.be/artifactory/api/npm/smals-npm-central/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/has-tostringtag": { + "version": "1.0.2", + "resolved": "https://repo.gcloud.belgium.be/artifactory/api/npm/smals-npm-central/has-tostringtag/-/has-tostringtag-1.0.2.tgz", + "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==", + "license": "MIT", + "dependencies": { + "has-symbols": "^1.0.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/hasown": { + "version": "2.0.3", + "resolved": "https://repo.gcloud.belgium.be/artifactory/api/npm/smals-npm-central/hasown/-/hasown-2.0.3.tgz", + "integrity": "sha512-ej4AhfhfL2Q2zpMmLo7U1Uv9+PyhIZpgQLGT1F9miIGmiCJIoCgSmczFdrc97mWT4kVY72KA+WnnhJ5pghSvSg==", + "license": "MIT", + "dependencies": { + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/http-errors": { + "version": "2.0.1", + "resolved": "https://repo.gcloud.belgium.be/artifactory/api/npm/smals-npm-central/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/https-proxy-agent": { + "version": "9.0.0", + "resolved": "https://repo.gcloud.belgium.be/artifactory/api/npm/smals-npm-central/https-proxy-agent/-/https-proxy-agent-9.0.0.tgz", + "integrity": "sha512-/MVmHp58WkOypgFhCLk4fzpPcFQvTJ/e6LBI7irpIO2HfxUbpmYoHF+KzipzJpxxzJu7aJNWQ0xojJ/dzV2G5g==", + "license": "MIT", + "dependencies": { + "agent-base": "9.0.0", + "debug": "^4.3.4" + }, + "engines": { + "node": ">= 20" + } + }, + "node_modules/https-proxy-agent/node_modules/debug": { + "version": "4.4.3", + "resolved": "https://repo.gcloud.belgium.be/artifactory/api/npm/smals-npm-central/debug/-/debug-4.4.3.tgz", + "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==", + "license": "MIT", + "dependencies": { + "ms": "^2.1.3" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/https-proxy-agent/node_modules/ms": { + "version": "2.1.3", + "resolved": "https://repo.gcloud.belgium.be/artifactory/api/npm/smals-npm-central/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "license": "MIT" + }, + "node_modules/iconv-lite": { + "version": "0.4.24", + "resolved": "https://repo.gcloud.belgium.be/artifactory/api/npm/smals-npm-central/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/inherits": { + "version": "2.0.4", + "resolved": "https://repo.gcloud.belgium.be/artifactory/api/npm/smals-npm-central/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "license": "ISC" + }, + "node_modules/ipaddr.js": { + "version": "1.9.1", + "resolved": "https://repo.gcloud.belgium.be/artifactory/api/npm/smals-npm-central/ipaddr.js/-/ipaddr.js-1.9.1.tgz", + "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==", + "license": "MIT", + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/math-intrinsics": { + "version": "1.1.0", + "resolved": "https://repo.gcloud.belgium.be/artifactory/api/npm/smals-npm-central/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://repo.gcloud.belgium.be/artifactory/api/npm/smals-npm-central/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://repo.gcloud.belgium.be/artifactory/api/npm/smals-npm-central/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://repo.gcloud.belgium.be/artifactory/api/npm/smals-npm-central/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://repo.gcloud.belgium.be/artifactory/api/npm/smals-npm-central/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://repo.gcloud.belgium.be/artifactory/api/npm/smals-npm-central/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://repo.gcloud.belgium.be/artifactory/api/npm/smals-npm-central/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/ms": { + "version": "2.0.0", + "resolved": "https://repo.gcloud.belgium.be/artifactory/api/npm/smals-npm-central/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", + "license": "MIT" + }, + "node_modules/negotiator": { + "version": "0.6.3", + "resolved": "https://repo.gcloud.belgium.be/artifactory/api/npm/smals-npm-central/negotiator/-/negotiator-0.6.3.tgz", + "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/object-inspect": { + "version": "1.13.4", + "resolved": "https://repo.gcloud.belgium.be/artifactory/api/npm/smals-npm-central/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://repo.gcloud.belgium.be/artifactory/api/npm/smals-npm-central/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/parseurl": { + "version": "1.3.3", + "resolved": "https://repo.gcloud.belgium.be/artifactory/api/npm/smals-npm-central/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.13", + "resolved": "https://repo.gcloud.belgium.be/artifactory/api/npm/smals-npm-central/path-to-regexp/-/path-to-regexp-0.1.13.tgz", + "integrity": "sha512-A/AGNMFN3c8bOlvV9RreMdrv7jsmF9XIfDeCd87+I8RNg6s78BhJxMu69NEMHBSJFxKidViTEdruRwEk/WIKqA==", + "license": "MIT" + }, + "node_modules/proxy-addr": { + "version": "2.0.7", + "resolved": "https://repo.gcloud.belgium.be/artifactory/api/npm/smals-npm-central/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/proxy-from-env": { + "version": "2.1.0", + "resolved": "https://repo.gcloud.belgium.be/artifactory/api/npm/smals-npm-central/proxy-from-env/-/proxy-from-env-2.1.0.tgz", + "integrity": "sha512-cJ+oHTW1VAEa8cJslgmUZrc+sjRKgAKl3Zyse6+PV38hZe/V6Z14TbCuXcan9F9ghlz4QrFr2c92TNF82UkYHA==", + "license": "MIT", + "engines": { + "node": ">=10" + } + }, + "node_modules/qs": { + "version": "6.14.2", + "resolved": "https://repo.gcloud.belgium.be/artifactory/api/npm/smals-npm-central/qs/-/qs-6.14.2.tgz", + "integrity": "sha512-V/yCWTTF7VJ9hIh18Ugr2zhJMP01MY7c5kh4J870L7imm6/DIzBsNLTXzMwUA3yZ5b/KBqLx8Kp3uRvd7xSe3Q==", + "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://repo.gcloud.belgium.be/artifactory/api/npm/smals-npm-central/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://repo.gcloud.belgium.be/artifactory/api/npm/smals-npm-central/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/safe-buffer": { + "version": "5.2.1", + "resolved": "https://repo.gcloud.belgium.be/artifactory/api/npm/smals-npm-central/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://repo.gcloud.belgium.be/artifactory/api/npm/smals-npm-central/safer-buffer/-/safer-buffer-2.1.2.tgz", + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", + "license": "MIT" + }, + "node_modules/send": { + "version": "0.19.2", + "resolved": "https://repo.gcloud.belgium.be/artifactory/api/npm/smals-npm-central/send/-/send-0.19.2.tgz", + "integrity": "sha512-VMbMxbDeehAxpOtWJXlcUS5E8iXh6QmN+BkRX1GARS3wRaXEEgzCcB10gTQazO42tpNIya8xIyNx8fll1OFPrg==", + "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.1", + "mime": "1.6.0", + "ms": "2.1.3", + "on-finished": "~2.4.1", + "range-parser": "~1.2.1", + "statuses": "~2.0.2" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/send/node_modules/ms": { + "version": "2.1.3", + "resolved": "https://repo.gcloud.belgium.be/artifactory/api/npm/smals-npm-central/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "license": "MIT" + }, + "node_modules/serve-static": { + "version": "1.16.3", + "resolved": "https://repo.gcloud.belgium.be/artifactory/api/npm/smals-npm-central/serve-static/-/serve-static-1.16.3.tgz", + "integrity": "sha512-x0RTqQel6g5SY7Lg6ZreMmsOzncHFU7nhnRWkKgWuMTu5NN0DR5oruckMqRvacAN9d5w6ARnRBXl9xhDCgfMeA==", + "license": "MIT", + "dependencies": { + "encodeurl": "~2.0.0", + "escape-html": "~1.0.3", + "parseurl": "~1.3.3", + "send": "~0.19.1" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/setprototypeof": { + "version": "1.2.0", + "resolved": "https://repo.gcloud.belgium.be/artifactory/api/npm/smals-npm-central/setprototypeof/-/setprototypeof-1.2.0.tgz", + "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==", + "license": "ISC" + }, + "node_modules/side-channel": { + "version": "1.1.0", + "resolved": "https://repo.gcloud.belgium.be/artifactory/api/npm/smals-npm-central/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.1", + "resolved": "https://repo.gcloud.belgium.be/artifactory/api/npm/smals-npm-central/side-channel-list/-/side-channel-list-1.0.1.tgz", + "integrity": "sha512-mjn/0bi/oUURjc5Xl7IaWi/OJJJumuoJFQJfDDyO46+hBWsfaVM65TBHq2eoZBhzl9EchxOijpkbRC8SVBQU0w==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "object-inspect": "^1.13.4" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel-map": { + "version": "1.0.1", + "resolved": "https://repo.gcloud.belgium.be/artifactory/api/npm/smals-npm-central/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://repo.gcloud.belgium.be/artifactory/api/npm/smals-npm-central/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/statuses": { + "version": "2.0.2", + "resolved": "https://repo.gcloud.belgium.be/artifactory/api/npm/smals-npm-central/statuses/-/statuses-2.0.2.tgz", + "integrity": "sha512-DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/toidentifier": { + "version": "1.0.1", + "resolved": "https://repo.gcloud.belgium.be/artifactory/api/npm/smals-npm-central/toidentifier/-/toidentifier-1.0.1.tgz", + "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==", + "license": "MIT", + "engines": { + "node": ">=0.6" + } + }, + "node_modules/type-is": { + "version": "1.6.18", + "resolved": "https://repo.gcloud.belgium.be/artifactory/api/npm/smals-npm-central/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/unpipe": { + "version": "1.0.0", + "resolved": "https://repo.gcloud.belgium.be/artifactory/api/npm/smals-npm-central/unpipe/-/unpipe-1.0.0.tgz", + "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/utils-merge": { + "version": "1.0.1", + "resolved": "https://repo.gcloud.belgium.be/artifactory/api/npm/smals-npm-central/utils-merge/-/utils-merge-1.0.1.tgz", + "integrity": "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==", + "license": "MIT", + "engines": { + "node": ">= 0.4.0" + } + }, + "node_modules/vary": { + "version": "1.1.2", + "resolved": "https://repo.gcloud.belgium.be/artifactory/api/npm/smals-npm-central/vary/-/vary-1.1.2.tgz", + "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + } + } +} diff --git a/package.json b/package.json index d375ab7..6ea5579 100644 --- a/package.json +++ b/package.json @@ -9,5 +9,9 @@ "axios": "^1.7.0", "express": "^4.21.0", "https-proxy-agent": "^9.0.0" - } + }, + "description": "Les labels sont maintenant automatiquement extraits et affichés dans le tableau avec un design visuel distinctif (badges verts).", + "main": "server.js", + "author": "", + "license": "ISC" } diff --git a/public/css/style.css b/public/css/style.css new file mode 100644 index 0000000..709befc --- /dev/null +++ b/public/css/style.css @@ -0,0 +1,106 @@ +:root { + --bg: #0f0a0f; --bg-elevated: #111a16; --bg-card: #152019; --bg-input: #0d1511; + --fg: #e8f0ec; --fg-muted: #7a9488; --fg-dim: #4a6558; + --accent: #00e68a; --accent-dim: #00b36b; --accent-glow: rgba(0,230,138,0.15); --accent-glow-strong: rgba(0,230,138,0.3); + --border: #1e3028; --danger: #ff4d6a; --warning: #ffb84d; --info: #4dc8ff; + --radius: 10px; --radius-lg: 16px; --shadow: 0 4px 24px rgba(0,0,0,0.4); +} +* { margin: 0; padding: 0; box-sizing: border-box; } +body { font-family: 'DM Sans', sans-serif; background: var(--bg); color: var(--fg); min-height: 100vh; } +.bg-grid { position: fixed; inset: 0; z-index: 0; pointer-events: none; background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size: 60px 60px; opacity: 0.3; mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 20%, transparent 70%); } +.bg-glow { position: fixed; z-index: 0; pointer-events: none; width: 600px; height: 600px; border-radius: 50%; filter: blur(120px); opacity: 0.12; } +.bg-glow--1 { top: -200px; right: -100px; background: var(--accent); animation: gf 12s ease-in-out infinite; } +@keyframes gf { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(30px,-40px) scale(1.1)} } + +.app { position: relative; z-index: 1; max-width: 1280px; margin: 0 auto; padding: 32px 24px 80px; } +.header { display: flex; align-items: center; gap: 16px; margin-bottom: 40px; padding-bottom: 24px; border-bottom: 1px solid var(--border); } +.header-icon { width: 52px; height: 52px; background: linear-gradient(135deg, var(--accent), var(--accent-dim)); border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 22px; color: var(--bg); box-shadow: 0 0 30px var(--accent-glow-strong); } +.header-text h1 { font-size: 26px; font-weight: 900; letter-spacing: -0.5px; } +.header-text p { color: var(--fg-muted); font-size: 14px; margin-top: 4px; } +.badge-api { background: var(--accent-glow); color: var(--accent); font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 20px; border: 1px solid rgba(0,230,138,0.2); margin-left: auto; font-family: 'JetBrains Mono', monospace; } + +.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; margin-bottom: 24px; box-shadow: var(--shadow); } +.card-title { font-size: 16px; font-weight: 700; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; } +.card-title i { color: var(--accent); font-size: 14px; } + +.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; } +.form-grid .full { grid-column: 1 / -1; } +.form-group { display: flex; flex-direction: column; gap: 6px; } +.form-group label { font-size: 12px; font-weight: 600; color: var(--fg-muted); text-transform: uppercase; letter-spacing: 0.8px; } +.form-group input, .form-group textarea { background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius); padding: 11px 14px; color: var(--fg); font-family: 'DM Sans', sans-serif; font-size: 14px; outline: none; transition: border-color 0.25s, box-shadow 0.25s; } +.form-group input:focus, .form-group textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); } +.form-group textarea { resize: vertical; min-height: 60px; font-family: 'JetBrains Mono', monospace; font-size: 12px; } +.hint { font-size: 11px; color: var(--fg-dim); font-style: italic; } + +.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: var(--radius); border: none; font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.25s; outline: none; } +.btn:focus-visible { box-shadow: 0 0 0 3px var(--accent-glow-strong); } +.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-dim)); color: var(--bg); box-shadow: 0 4px 20px var(--accent-glow-strong); } +.btn-primary:hover { transform: translateY(-1px); } +.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; } +.btn-secondary { background: var(--bg-input); color: var(--fg); border: 1px solid var(--border); } +.btn-secondary:hover { border-color: var(--fg-dim); } +.btn-danger { background: rgba(255,77,106,0.1); color: var(--danger); border: 1px solid rgba(255,77,106,0.2); } +.btn-group { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; } + +.alert { padding: 14px 18px; border-radius: var(--radius); font-size: 13px; display: flex; align-items: flex-start; gap: 10px; margin-bottom: 16px; animation: fadeIn 0.3s ease; } +@keyframes fadeIn { from{opacity:0;transform:translateY(-8px)} to{opacity:1;transform:translateY(0)} } +.alert-info { background: rgba(77,200,255,0.1); border: 1px solid rgba(77,200,255,0.2); color: var(--info); } +.alert-danger { background: rgba(255,77,106,0.1); border: 1px solid rgba(255,77,106,0.2); color: var(--danger); } + +.spinner { display: inline-block; width: 18px; height: 18px; border: 2px solid transparent; border-top-color: currentColor; border-radius: 50%; animation: spin 0.7s linear infinite; } +@keyframes spin { to{transform:rotate(360deg)} } + +.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 24px; } +.stat-card { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; text-align: center; transition: transform 0.25s; } +.stat-card:hover { transform: translateY(-2px); } +.stat-value { font-size: 28px; font-weight: 900; color: var(--accent); font-family: 'JetBrains Mono', monospace; } +.stat-label { font-size: 11px; color: var(--fg-muted); text-transform: uppercase; letter-spacing: 0.8px; margin-top: 4px; } + +.tabs { display: flex; gap: 4px; background: var(--bg-input); border-radius: var(--radius); padding: 4px; margin-bottom: 20px; border: 1px solid var(--border); width: fit-content; } +.tab-btn { padding: 9px 20px; border: none; background: transparent; color: var(--fg-muted); font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 600; border-radius: 7px; cursor: pointer; transition: all 0.25s; outline: none; } +.tab-btn.active { background: var(--accent); color: var(--bg); box-shadow: 0 2px 12px var(--accent-glow-strong); } +.tab-panel { display: none; } .tab-panel.active { display: block; animation: fadeIn 0.3s ease; } + +.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); } +table { width: 100%; border-collapse: collapse; font-size: 13px; } +thead { background: var(--bg-elevated); position: sticky; top: 0; z-index: 2; } +th { padding: 12px 14px; text-align: left; font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: 0.8px; color: var(--fg-muted); border-bottom: 2px solid var(--border); white-space: nowrap; } +td { padding: 10px 14px; border-bottom: 1px solid var(--border); color: var(--fg); max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } +tr:hover td { background: rgba(0,230,138,0.03); } +.ticket-key { font-family: 'JetBrains Mono', monospace; font-weight: 700; color: var(--accent); font-size: 12px; } +.status-badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; white-space: nowrap; } +.s-done { background: rgba(0,230,138,0.15); color: #00e68a; } .s-progress { background: rgba(77,200,255,0.15); color: #4dc8ff; } +.s-todo { background: rgba(255,184,77,0.15); color: #ffb84d; } .s-blocked { background: rgba(255,77,106,0.15); color: #ff4d6a; } .s-other { background: rgba(122,148,136,0.15); color: #7a9488; } +.empty-cell { color: var(--fg-dim); font-style: italic; } + +/* Date input styling */ +.date-input { background: var(--bg-input); border: 1px solid var(--border); border-radius: 6px; padding: 4px 8px; color: var(--fg); font-family: 'DM Sans', sans-serif; font-size: 12px; outline: none; transition: border-color 0.25s, box-shadow 0.25s; width: 100px; } +.date-input:focus { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-glow); } +.date-input::-webkit-calendar-picker-indicator { filter: invert(1); opacity: 0.6; cursor: pointer; } +.date-input::-webkit-calendar-picker-indicator:hover { opacity: 1; } + +/* Update button styling */ +.btn-update { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 6px; border: none; font-family: 'DM Sans', sans-serif; font-size: 11px; font-weight: 600; cursor: pointer; transition: all 0.25s; background: linear-gradient(135deg, var(--accent), var(--accent-dim)); color: var(--bg); } +.btn-update:hover { transform: translateY(-1px); box-shadow: 0 2px 8px var(--accent-glow-strong); } +.btn-update:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; } +.btn-update .spinner { width: 12px; height: 12px; border-width: 2px; } +.btn-update i { font-size: 10px; } + +.json-viewer { background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; max-height: 600px; overflow: auto; font-family: 'JetBrains Mono', monospace; font-size: 12px; line-height: 1.7; white-space: pre-wrap; word-break: break-all; } +.json-key { color: #4dc8ff; } .json-string { color: #00e68a; } .json-number { color: #ffb84d; } .json-bool { color: #ff4d6a; } .json-null { color: var(--fg-dim); } + +.search-bar { position: relative; margin-bottom: 16px; } +.search-bar i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--fg-dim); } +.search-bar input { width: 100%; background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius); padding: 11px 14px 11px 38px; color: var(--fg); font-family: 'DM Sans', sans-serif; font-size: 14px; outline: none; transition: border-color 0.25s, box-shadow 0.25s; } +.search-bar input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); } + +#results-section { display: none; } #results-section.visible { display: block; animation: fadeIn 0.4s ease; } +.toast-container { position: fixed; top: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; } +.toast { padding: 14px 20px; border-radius: var(--radius); font-size: 13px; font-weight: 500; display: flex; align-items: center; gap: 10px; box-shadow: 0 8px 30px rgba(0,0,0,0.5); animation: tIn 0.35s ease, tOut 0.35s ease 3s forwards; max-width: 400px; } +.toast-success { background: #0d2818; border: 1px solid rgba(0,230,138,0.3); color: var(--accent); } +.toast-error { background: #280d14; border: 1px solid rgba(255,77,106,0.3); color: var(--danger); } +@keyframes tIn { from{opacity:0;transform:translateX(40px)} to{opacity:1;transform:translateX(0)} } +@keyframes tOut { to{opacity:0;transform:translateX(40px)} } + +@media (max-width: 768px) { .form-grid { grid-template-columns: 1fr; } .btn-group { flex-direction: column; } .btn { width: 100%; justify-content: center; } } +@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } } \ No newline at end of file diff --git a/public/js/script.js b/public/js/script.js new file mode 100644 index 0000000..7d27fb0 --- /dev/null +++ b/public/js/script.js @@ -0,0 +1,535 @@ + +const API_BASE = ''; +let allTickets = []; +let filteredTickets = []; +let customFieldsMap = []; +let lastUsername = ''; +let lastApiToken = ''; + +function showToast(msg, type='success') { + const c = document.getElementById('toastContainer'); + const t = document.createElement('div'); + t.className = `toast toast-${type}`; + t.innerHTML = `${msg}`; + c.appendChild(t); + setTimeout(() => t.remove(), 3500); +} + +function autoJql() { + const key = document.getElementById('projectKey').value.trim().toUpperCase(); + const jql = document.getElementById('jqlQuery'); + if (!jql.value.trim() || jql.value.trim().startsWith('project =')) { + jql.value = `project = "${key}" ORDER BY created DESC`; + } +} + +async function pingApi() { + const btn = event.target.closest('.btn'); + const orig = btn.innerHTML; btn.innerHTML = ' Test...'; btn.disabled = true; + try { + const r = await fetch(`${API_BASE}/api/extract`, { method: 'POST', headers: {'Content-Type':'application/json'}, body: JSON.stringify({username:'_', apiToken:'_', projectKey:'_'}) }); + const d = await r.json(); + if (r.status === 400) showToast('API locale connectée ! (Erreur 400 = normal, on a envoyé de fausses données)', 'success'); + else showToast('API répond : ' + r.status, 'success'); + } catch(e) { + showToast('API inaccessible. Lancez "npm start" dans le dossier du serveur.', 'error'); + } finally { btn.innerHTML = orig; btn.disabled = false; } +} + +async function startExtraction() { + const btn = document.getElementById('extractBtn'); + const user = document.getElementById('username').value.trim(); + const token = document.getElementById('apiToken').value.trim(); + const project = document.getElementById('projectKey').value.trim().toUpperCase(); + const jql = document.getElementById('jqlQuery').value.trim(); + const custom = document.getElementById('customFields').value.trim(); + + if (!user || !token || !project) { showToast('Remplissez utilisateur, token et clé du projet.', 'error'); return; } + + btn.innerHTML = ' Extraction via API...'; btn.disabled = true; + + try { + const resp = await fetch(`${API_BASE}/api/extract`, { + method: 'POST', + headers: { 'Content-Type': 'application/json' }, + body: JSON.stringify({ username: user, apiToken: token, projectKey: project, jql: jql, customFields: custom }) + }); + const data = await resp.json(); + + if (!resp.ok) { + throw new Error(data.error || `Erreur HTTP ${resp.status}`); + } + + allTickets = data.tickets; + filteredTickets = [...allTickets]; + customFieldsMap = parseCustomFields(custom); + lastUsername = user; + lastApiToken = token; + renderResults(); + showToast(`${allTickets.length} tickets extraits avec succès.`, 'success'); + + } catch (err) { + showToast(err.message, 'error'); + } finally { + btn.innerHTML = ' Lancer l\'extraction'; btn.disabled = false; + } +} + +function parseCustomFields(customFields) { + const map = []; + if (customFields) { + customFields.split(',').forEach(cf => { + const [id, label] = cf.split(':').map(s => s.trim()); + if (id) map.push({ id, label: label || id }); + }); + } + return map; +} + +async function updateTicket(ticketKey, dueDate, goLiveDate) { + if (!lastUsername || !lastApiToken) { + showToast('Veuillez d\'abord extraire les tickets.', 'error'); + return; + } + + const btn = document.querySelector(`[data-ticket="${ticketKey}"]`); + const orig = btn.innerHTML; + btn.innerHTML = ''; + btn.disabled = true; + + const goLiveField = customFieldsMap.find(cf => cf.label.toLowerCase().includes('go live')); + + const updates = {}; + if (dueDate !== undefined) updates.duedate = dueDate; + if (goLiveDate !== undefined && goLiveField) { + updates[goLiveField.id] = goLiveDate; + } + + try { + const resp = await fetch(`${API_BASE}/api/update`, { + method: 'PUT', + headers: { 'Content-Type': 'application/json' }, + body: JSON.stringify({ + username: lastUsername, + apiToken: lastApiToken, + ticketKey, + updates + }) + }); + const data = await resp.json(); + + if (!resp.ok) { + throw new Error(data.error || `Erreur HTTP ${resp.status}`); + } + + const ticket = allTickets.find(t => t.key === ticketKey); + if (ticket) { + if (updates.duedate !== undefined) ticket.dueDate = updates.duedate; + if (goLiveField && updates[goLiveField.id] !== undefined) ticket[goLiveField.label] = updates[goLiveField.id]; + } + + renderTable(); + showToast(`Ticket ${ticketKey} mis à jour avec succès !`, 'success'); + + } catch (err) { + showToast(err.message, 'error'); + } finally { + btn.innerHTML = orig; + btn.disabled = false; + } +} + +function renderResults() { + document.getElementById('results-section').classList.add('visible'); + renderStats(); renderTable(); renderJSON(); +} + +function renderStats() { + const unassigned = allTickets.filter(t => !t.assignee).length; + const now = new Date(); + const overdue = allTickets.filter(t => t.dueDate && t.statusCategory !== 'Done' && new Date(t.dueDate) < now).length; + document.getElementById('statsRow').innerHTML = ` +
${allTickets.length}
Tickets
+
${new Set(allTickets.map(t=>t.status)).size}
Statuts
+
${unassigned}
Non assignés
+
${overdue}
En retard
+ `; +} + +function escHtml(s) { if(!s) return ''; const d=document.createElement('div'); d.textContent=String(s); return d.innerHTML; } +function fmtDate(d) { if(!d) return '-'; try { return new Date(d).toLocaleDateString('fr-FR',{day:'2-digit',month:'short',year:'numeric'}); } catch { return escHtml(d); } } +function getStatusClass(s) { if(!s) return 's-other'; const l=s.toLowerCase(); if(l.includes('done')||l.includes('ferm')||l.includes('résolu')) return 's-done'; if(l.includes('progress')||l.includes('en cours')||l.includes('review')) return 's-progress'; if(l.includes('to do')||l.includes('open')||l.includes('backlog')) return 's-todo'; if(l.includes('block')) return 's-blocked'; return 's-other'; } + +function renderTable() { + // Trouver le champ Go Live Date + let goLiveColName = null; + if (allTickets.length > 0) { + Object.keys(allTickets[0]).forEach(key => { + if (!['key','url','summary','description','status','statusCategory','assignee','reporter','priority','issueType','created','updated','dueDate','resolution','resolutionDate','labels','components','fixVersions','projectName'].includes(key)) { + goLiveColName = key; + } + }); + } + + const cols = ['Ticket','Summary','Statut','Assigné','Priorité','Type','Due Date','Créé le','Résolu le','Actions']; + if (goLiveColName) { + cols.splice(cols.indexOf('Résolu le'), 0, goLiveColName, 'Actions'); + } + document.getElementById('tableHead').innerHTML = '' + cols.map(c=>`${c}`).join('') + ''; + let body = ''; + filteredTickets.forEach(t => { + // Due Date éditable + const dueDateValue = t.dueDate ? t.dueDate.substring(0, 10) : ''; + const dueDateInput = ``; + + body += ` + ${escHtml(t.key)} + ${escHtml(t.summary)} + ${escHtml(t.status)} + ${escHtml(t.assignee) || '-'} + ${escHtml(t.priority)} + ${escHtml(t.issueType)} + ${dueDateInput} + ${fmtDate(t.created)} + ${fmtDate(t.resolutionDate)}`; + + if (goLiveColName) { + const goLiveDateValue = t[goLiveColName] ? t[goLiveColName].substring(0, 10) : ''; + const goLiveDateInput = ``; + body += `${goLiveDateInput}`; + } + + body += ` + + `; + }); + if(!filteredTickets.length) body = `Aucun ticket`; + document.getElementById('tableBody').innerHTML = body; +} + +function enableUpdateBtn(ticketKey) { + const btn = document.getElementById(`update-${ticketKey}`); + if (btn) btn.disabled = false; +} + +function handleUpdateClick(ticketKey, goLiveColName) { + const dueInput = document.getElementById(`due-${ticketKey}`); + const dueDate = dueInput && dueInput.value ? dueInput.value : null; + + let goLiveDate = null; + if (goLiveColName) { + const goLiveInput = document.getElementById(`${goLiveColName.replace(/\s+/g, '-')}-${ticketKey}`); + goLiveDate = goLiveInput && goLiveInput.value ? goLiveInput.value : null; + } + + updateTicket(ticketKey, dueDate, goLiveDate); +} + +function renderJSON() { + document.getElementById('jsonViewer').innerHTML = syntaxHL(JSON.stringify(allTickets, null, 2)); +} + +function syntaxHL(json) { + json = json.replace(/&/g,'&').replace(//g,'>'); + return json.replace(/("(\\u[\da-fA-F]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)/g, m => { + let c = 'json-number'; if(/^"/.test(m)) c = /:$/.test(m)?'json-key':'json-string'; else if(/true|false/.test(m)) c='json-bool'; else if(/null/.test(m)) c='json-null'; + return `${m}`; + }); +} + +function switchTab(id, btn) { + document.querySelectorAll('.tab-btn').forEach(b=>b.classList.remove('active')); + document.querySelectorAll('.tab-panel').forEach(p=>p.classList.remove('active')); + btn.classList.add('active'); document.getElementById(`panel-${id}`).classList.add('active'); +} + +function filterTable() { + const q = document.getElementById('searchInput').value.toLowerCase(); + filteredTickets = q ? allTickets.filter(t => Object.values(t).some(v => v && typeof v === 'string' && v.toLowerCase().includes(q))) : [...allTickets]; + renderTable(); +} + +function copyJSON() { + navigator.clipboard.writeText(JSON.stringify(allTickets, null, 2)).then(()=>showToast('JSON copié.')).catch(()=>showToast('Erreur copie.','error')); +} + +function downloadJSON() { + const blob = new Blob([JSON.stringify(allTickets, null, 2)], {type:'application/json'}); + const a = document.createElement('a'); a.href = URL.createObjectURL(blob); + a.download = `jira-${document.getElementById('projectKey').value||'export'}-${Date.now()}.json`; + a.click(); URL.revokeObjectURL(a.href); showToast('Fichier téléchargé.'); +} + +function clearResults() { + allTickets=[]; filteredTickets=[]; document.getElementById('results-section').classList.remove('visible'); + document.getElementById('searchInput').value=''; +} + +// Fonction d'arrondi par mois pour la roadmap +function roundToMonth(date) { + if (!date) return null; + const d = new Date(date); + // Arrondir au 1er jour du mois + return new Date(d.getFullYear(), d.getMonth(), 1).toISOString().split('T')[0]; +} + +function getStatusColor(status) { + const s = (status || '').toLowerCase(); + if (s.includes('done') || s.includes('ferm') || s.includes('rsolu')) return '#00e68a'; + if (s.includes('progress') || s.includes('en cours') || s.includes('review')) return '#4dc8ff'; + if (s.includes('to do') || s.includes('open') || s.includes('backlog')) return '#ffb84d'; + if (s.includes('block')) return '#ff4d6a'; + return '#7a9488'; +} + +function renderRoadmap() { + const preview = document.getElementById('roadmapPreview'); + if (filteredTickets.length === 0) { + preview.innerHTML = `

Aucun ticket a afficher

`; + return; + } + + // Trouver le champ Go Live Date + const goLiveColName = filteredTickets.length > 0 ? Object.keys(filteredTickets[0]).find(k => k.toLowerCase().includes('go live')) : null; + + // Calculer les dates min et max avec arrondi par mois + const allDates = filteredTickets.flatMap(t => [t.dueDate, goLiveColName ? t[goLiveColName] : null].filter(d => d)); + if (allDates.length === 0) { + preview.innerHTML = `

Aucune date disponible pour la roadmap

`; + return; + } + + const minDate = new Date(Math.min(...allDates.map(d => new Date(d)))); + const maxDate = new Date(Math.max(...allDates.map(d => new Date(d)))); + + // Arrondir aux mois entiers + minDate.setDate(1); + maxDate.setMonth(maxDate.getMonth() + 1); + maxDate.setDate(0); + + // Calculer le nombre de mois + const totalMonths = (maxDate.getFullYear() - minDate.getFullYear()) * 12 + (maxDate.getMonth() - minDate.getMonth()); + const monthWidth = 120; + const rowHeight = 60; + const headerHeight = 40; + const leftWidth = 280; + const canvasWidth = leftWidth + totalMonths * monthWidth + 50; + + // Grouper les tickets par mois de début et fin + const monthlyTickets = {}; + filteredTickets.forEach(ticket => { + const due = ticket.dueDate ? new Date(ticket.dueDate) : null; + const goLive = goLiveColName && ticket[goLiveColName] ? new Date(ticket[goLiveColName]) : null; + if (!due && !goLive) return; + + const start = due ? due : goLive; + const end = goLive ? goLive : due; + + const startMonth = `${start.getFullYear()}-${start.getMonth()}`; + const endMonth = `${end.getFullYear()}-${end.getMonth()}`; + + if (!monthlyTickets[startMonth]) monthlyTickets[startMonth] = []; + monthlyTickets[startMonth].push({ ticket, start, end }); + }); + + let html = `
`; + + // En-tête avec noms de mois + html += `
Mois
`; + + const months = []; + const currentMonth = new Date(minDate); + for (let m = 0; m <= totalMonths; m++) { + const monthKey = `${currentMonth.getFullYear()}-${currentMonth.getMonth()}`; + months.push(monthKey); + + const monthName = currentMonth.toLocaleDateString('fr-FR', { month: 'long', year: 'numeric' }); + html += `
${monthName}
`; + + currentMonth.setMonth(currentMonth.getMonth() + 1); + } + + // Afficher les tickets par ligne (chaque ligne = un mois de début) + Object.keys(monthlyTickets).forEach((monthKey, idx) => { + const y = headerHeight + idx * rowHeight + 20; + const [year, month] = monthKey.split('-').map(Number); + const monthName = new Date(year, month, 1).toLocaleDateString('fr-FR', { month: 'long', year: 'numeric' }); + + // Ligne de séparation du mois + html += `
${monthName}
`; + + // Tickets de ce mois + const monthTickets = monthlyTickets[monthKey] || []; + monthTickets.forEach(({ticket, start, end}) => { + const startMonthIdx = months.indexOf(`${start.getFullYear()}-${start.getMonth()}`); + const endMonthIdx = months.indexOf(`${end.getFullYear()}-${end.getMonth()}`); + const barLeft = leftWidth + startMonthIdx * monthWidth + 10; + const barWidth = (endMonthIdx - startMonthIdx + 1) * monthWidth - 20; + + const color = getStatusColor(ticket.status); + + html += `
+
${escHtml(ticket.key)}
+
${escHtml(ticket.summary.substring(0, 40))}
+
${escHtml(ticket.assignee || 'N/A')} - ${escHtml(ticket.status || 'N/A')}
+
`; + }); + }); + + html += `
`; + preview.innerHTML = html; +} + +function generateDrawioXML(tickets) { + // Trouver le champ Go Live Date + const goLiveColName = tickets.length > 0 ? Object.keys(tickets[0]).find(k => k.toLowerCase().includes('go live')) : null; + + // Calculer les dates min et max avec arrondi par mois + const allDates = tickets.flatMap(t => [t.dueDate, goLiveColName ? t[goLiveColName] : null].filter(d => d)); + if (allDates.length === 0) return null; + + const minDate = new Date(Math.min(...allDates.map(d => new Date(d)))); + const maxDate = new Date(Math.max(...allDates.map(d => new Date(d)))); + + // Arrondir aux mois entiers + minDate.setDate(1); + maxDate.setMonth(maxDate.getMonth() + 1); + maxDate.setDate(0); + + const totalMonths = (maxDate.getFullYear() - minDate.getFullYear()) * 12 + (maxDate.getMonth() - minDate.getMonth()); + const monthWidth = 100; + const rowHeight = 70; + const headerHeight = 50; + const leftWidth = 200; + const canvasWidth = Math.max(827, leftWidth + totalMonths * monthWidth + 100); + const canvasHeight = Math.max(1169, headerHeight + tickets.length * rowHeight + 50); + + let cellId = 2; + let cells = []; + + // Header background + cells.push({ + id: 'header', + value: 'Roadmap Jira (par mois)', + style: 'rounded=0;whiteSpace=wrap;html=1;fillColor=#111a16;strokeColor=#1e3028;fontColor=#e8f0ec;fontSize=14;fontStyle=1', + x: 0, + y: 0, + width: canvasWidth, + height: headerHeight + }); + + // En-têtes de mois + const months = []; + const currentMonth = new Date(minDate); + for (let m = 0; m <= totalMonths; m++) { + const monthName = currentMonth.toLocaleDateString('fr-FR', { month: 'long', year: 'numeric' }); + cells.push({ + id: `month${cellId}`, + value: monthName, + style: 'rounded=0;whiteSpace=wrap;html=1;fillColor=#152019;strokeColor=#1e3028;fontColor=#7a9488;fontSize=10;align=center;', + x: leftWidth + m * monthWidth, + y: headerHeight + 10, + width: monthWidth, + height: 30 + }); + cellId++; + currentMonth.setMonth(currentMonth.getMonth() + 1); + } + + // Tickets + tickets.forEach((ticket, idx) => { + const y = headerHeight + idx * rowHeight + 50; + const due = ticket.dueDate ? new Date(ticket.dueDate) : null; + const goLive = goLiveColName && ticket[goLiveColName] ? new Date(ticket[goLiveColName]) : null; + + if (due || goLive) { + const start = due ? due : goLive; + const end = goLive ? goLive : due; + + const startMonthIdx = months.indexOf(`${start.getFullYear()}-${start.getMonth()}`); + const endMonthIdx = months.indexOf(`${end.getFullYear()}-${end.getMonth()}`); + const barWidth = Math.max(monthWidth, (endMonthIdx - startMonthIdx + 1) * monthWidth); + + const color = getStatusColor(ticket.status); + const labelParts = [ + `${ticket.key}: ${ticket.summary.substring(0, 40)}`, + `${ticket.assignee || 'N/A'} - ${ticket.status || 'N/A'}` + ]; + const label = labelParts.join('\\n'); + + cells.push({ + id: `ticket${cellId}`, + value: label, + style: `rounded=1;whiteSpace=wrap;html=1;fillColor=${color};strokeColor=#000000;strokeWidth=2;fontColor=#e8f0ec;fontSize=11;align=left;verticalAlign=top;spacingLeft=8;spacingTop=4;`, + x: leftWidth + startMonthIdx * monthWidth + 10, + y: y, + width: barWidth - 20, + height: rowHeight - 10 + }); + cellId++; + } + }); + + // Construire le XML + let xml = ` + + + + + +`; + + // Background + xml += ` + + +`; + + // Ajouter toutes les cells + cells.forEach(cell => { + const safeValue = cell.value + .replace(/&/g, '\x26amp;') + .replace(//g, '\x26gt;') + .replace(/"/g, '\x26quot;') + .replace(/'/g, '\x26apos;'); + xml += ` + + +`; + }); + + xml += ` + + + +`; + + return xml; +} + +function downloadRoadmap() { + if (allTickets.length === 0) { + showToast('Aucun ticket a exporter.', 'error'); + return; + } + + const xml = generateDrawioXML(filteredTickets); + + if (!xml) { + showToast('Impossible de generer la roadmap : aucune date disponible.', 'error'); + return; + } + + const blob = new Blob([xml], { type: 'text/xml;charset=utf-8' }); + const a = document.createElement('a'); + a.href = URL.createObjectURL(blob); + a.download = `roadmap-${document.getElementById('projectKey').value || 'export'}.xml`; + a.click(); + URL.revokeObjectURL(a.href); + showToast('Roadmap Draw.io telechargee avec succes !'); +} + +document.addEventListener('keydown', e => { if((e.ctrlKey||e.metaKey)&&e.key==='Enter'){e.preventDefault();startExtraction()} }); diff --git a/server.js b/server.js index abce94c..935272b 100644 --- a/server.js +++ b/server.js @@ -2,7 +2,12 @@ import fs from 'fs'; import express from 'express'; import axios from 'axios'; import https from 'https'; +import path from 'path'; import { HttpsProxyAgent } from 'https-proxy-agent'; // <-- AJOUT +import { fileURLToPath } from 'url'; + +const __filename = fileURLToPath(import.meta.url); +const __dirname = path.dirname(__filename); // ========================================== // Lecture du fichier config.ini (inchangé) @@ -81,10 +86,26 @@ jiraClient.interceptors.response.use( // ========================================== // Serveur Express // ========================================== +// const app = express(); +//app.use(express.json({ limit: '10mb' })); + +//app.use(express.static('.')); // Sert index.html à / + + const app = express(); + +// 1. Middlewares app.use(express.json({ limit: '10mb' })); -app.use(express.static('.')); // Sert index.html à / +// 2. Fichiers statiques (CSS, JS client, Images) +// On ne sert QUE le contenu du dossier public +app.use(express.static(path.join(__dirname, 'public'))); + +// 3. Routes HTML +app.get('/', (req, res) => { + // On va chercher l'index dans /views/ + res.sendFile(path.join(__dirname, 'index.html')); +}); // Endpoint d'extraction