From 55d1c833a2707b7d59c689e6bdac2fdeee2d56b6 Mon Sep 17 00:00:00 2001 From: Renan Alves de Oliveira Date: Sun, 26 Apr 2026 23:30:56 -0300 Subject: [PATCH 1/8] chore: update package dependencies and remove unused packages - removed @mui/x-data-grid and recoil from dependencies - added package-lock.json for dependency management --- dashboard/package-lock.json | 268 +----------------------------------- dashboard/package.json | 4 +- package-lock.json | 6 + 3 files changed, 8 insertions(+), 270 deletions(-) create mode 100644 package-lock.json diff --git a/dashboard/package-lock.json b/dashboard/package-lock.json index 708526a..4abd71d 100644 --- a/dashboard/package-lock.json +++ b/dashboard/package-lock.json @@ -12,11 +12,9 @@ "@emotion/styled": "^11.13.0", "@mui/icons-material": "^6.0.0", "@mui/material": "^6.0.0", - "@mui/x-data-grid": "^8.11.1", "@tanstack/react-query": "^5.56.2", "react": "^18.3.1", - "react-dom": "^18.3.1", - "recoil": "^0.7.7" + "react-dom": "^18.3.1" }, "devDependencies": { "@eslint/compat": "^1.3.2", @@ -1439,229 +1437,6 @@ } } }, - "node_modules/@mui/x-data-grid": { - "version": "8.11.1", - "resolved": "https://registry.npmjs.org/@mui/x-data-grid/-/x-data-grid-8.11.1.tgz", - "integrity": "sha512-+DUdiQC07BD4PrxvDeP31toTUb+BNF2jSJuhXsUdmg8mEC2F9m2A7VSXbeZVYaz+IOs/MPeM03BpLCN637owRg==", - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.28.2", - "@mui/utils": "^7.3.1", - "@mui/x-internals": "8.11.1", - "@mui/x-virtualizer": "0.1.5", - "clsx": "^2.1.1", - "prop-types": "^15.8.1", - "use-sync-external-store": "^1.5.0" - }, - "engines": { - "node": ">=14.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/mui-org" - }, - "peerDependencies": { - "@emotion/react": "^11.9.0", - "@emotion/styled": "^11.8.1", - "@mui/material": "^5.15.14 || ^6.0.0 || ^7.0.0", - "@mui/system": "^5.15.14 || ^6.0.0 || ^7.0.0", - "react": "^17.0.0 || ^18.0.0 || ^19.0.0", - "react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0" - }, - "peerDependenciesMeta": { - "@emotion/react": { - "optional": true - }, - "@emotion/styled": { - "optional": true - } - } - }, - "node_modules/@mui/x-data-grid/node_modules/@mui/types": { - "version": "7.4.6", - "resolved": "https://registry.npmjs.org/@mui/types/-/types-7.4.6.tgz", - "integrity": "sha512-NVBbIw+4CDMMppNamVxyTccNv0WxtDb7motWDlMeSC8Oy95saj1TIZMGynPpFLePt3yOD8TskzumeqORCgRGWw==", - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.28.3" - }, - "peerDependencies": { - "@types/react": "^17.0.0 || ^18.0.0 || ^19.0.0" - }, - "peerDependenciesMeta": { - "@types/react": { - "optional": true - } - } - }, - "node_modules/@mui/x-data-grid/node_modules/@mui/utils": { - "version": "7.3.2", - "resolved": "https://registry.npmjs.org/@mui/utils/-/utils-7.3.2.tgz", - "integrity": "sha512-4DMWQGenOdLnM3y/SdFQFwKsCLM+mqxzvoWp9+x2XdEzXapkznauHLiXtSohHs/mc0+5/9UACt1GdugCX2te5g==", - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.28.3", - "@mui/types": "^7.4.6", - "@types/prop-types": "^15.7.15", - "clsx": "^2.1.1", - "prop-types": "^15.8.1", - "react-is": "^19.1.1" - }, - "engines": { - "node": ">=14.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/mui-org" - }, - "peerDependencies": { - "@types/react": "^17.0.0 || ^18.0.0 || ^19.0.0", - "react": "^17.0.0 || ^18.0.0 || ^19.0.0" - }, - "peerDependenciesMeta": { - "@types/react": { - "optional": true - } - } - }, - "node_modules/@mui/x-internals": { - "version": "8.11.1", - "resolved": "https://registry.npmjs.org/@mui/x-internals/-/x-internals-8.11.1.tgz", - "integrity": "sha512-/l0VpgdgYhC7DzqdWaQcuv3wX7cr+o3DBnoKa/t/Vze3y/Wh2VeNSJY/TsW2dIVkFAA9dsjUEMjclT7ScZTDqA==", - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.28.2", - "@mui/utils": "^7.3.1", - "reselect": "^5.1.1", - "use-sync-external-store": "^1.5.0" - }, - "engines": { - "node": ">=14.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/mui-org" - }, - "peerDependencies": { - "react": "^17.0.0 || ^18.0.0 || ^19.0.0" - } - }, - "node_modules/@mui/x-internals/node_modules/@mui/types": { - "version": "7.4.6", - "resolved": "https://registry.npmjs.org/@mui/types/-/types-7.4.6.tgz", - "integrity": "sha512-NVBbIw+4CDMMppNamVxyTccNv0WxtDb7motWDlMeSC8Oy95saj1TIZMGynPpFLePt3yOD8TskzumeqORCgRGWw==", - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.28.3" - }, - "peerDependencies": { - "@types/react": "^17.0.0 || ^18.0.0 || ^19.0.0" - }, - "peerDependenciesMeta": { - "@types/react": { - "optional": true - } - } - }, - "node_modules/@mui/x-internals/node_modules/@mui/utils": { - "version": "7.3.2", - "resolved": "https://registry.npmjs.org/@mui/utils/-/utils-7.3.2.tgz", - "integrity": "sha512-4DMWQGenOdLnM3y/SdFQFwKsCLM+mqxzvoWp9+x2XdEzXapkznauHLiXtSohHs/mc0+5/9UACt1GdugCX2te5g==", - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.28.3", - "@mui/types": "^7.4.6", - "@types/prop-types": "^15.7.15", - "clsx": "^2.1.1", - "prop-types": "^15.8.1", - "react-is": "^19.1.1" - }, - "engines": { - "node": ">=14.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/mui-org" - }, - "peerDependencies": { - "@types/react": "^17.0.0 || ^18.0.0 || ^19.0.0", - "react": "^17.0.0 || ^18.0.0 || ^19.0.0" - }, - "peerDependenciesMeta": { - "@types/react": { - "optional": true - } - } - }, - "node_modules/@mui/x-virtualizer": { - "version": "0.1.5", - "resolved": "https://registry.npmjs.org/@mui/x-virtualizer/-/x-virtualizer-0.1.5.tgz", - "integrity": "sha512-Dph10sn5DztOTORk+PTxiVONKfDQOtLRoQXpln2PxjP5DWiYeUkLU8fJRQGth5U7UhYf3AFm29j5K64oN4pVFw==", - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.28.2", - "@mui/utils": "^7.3.1", - "@mui/x-internals": "8.11.1" - }, - "engines": { - "node": ">=14.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/mui-org" - }, - "peerDependencies": { - "react": "^17.0.0 || ^18.0.0 || ^19.0.0", - "react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0" - } - }, - "node_modules/@mui/x-virtualizer/node_modules/@mui/types": { - "version": "7.4.6", - "resolved": "https://registry.npmjs.org/@mui/types/-/types-7.4.6.tgz", - "integrity": "sha512-NVBbIw+4CDMMppNamVxyTccNv0WxtDb7motWDlMeSC8Oy95saj1TIZMGynPpFLePt3yOD8TskzumeqORCgRGWw==", - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.28.3" - }, - "peerDependencies": { - "@types/react": "^17.0.0 || ^18.0.0 || ^19.0.0" - }, - "peerDependenciesMeta": { - "@types/react": { - "optional": true - } - } - }, - "node_modules/@mui/x-virtualizer/node_modules/@mui/utils": { - "version": "7.3.2", - "resolved": "https://registry.npmjs.org/@mui/utils/-/utils-7.3.2.tgz", - "integrity": "sha512-4DMWQGenOdLnM3y/SdFQFwKsCLM+mqxzvoWp9+x2XdEzXapkznauHLiXtSohHs/mc0+5/9UACt1GdugCX2te5g==", - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.28.3", - "@mui/types": "^7.4.6", - "@types/prop-types": "^15.7.15", - "clsx": "^2.1.1", - "prop-types": "^15.8.1", - "react-is": "^19.1.1" - }, - "engines": { - "node": ">=14.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/mui-org" - }, - "peerDependencies": { - "@types/react": "^17.0.0 || ^18.0.0 || ^19.0.0", - "react": "^17.0.0 || ^18.0.0 || ^19.0.0" - }, - "peerDependenciesMeta": { - "@types/react": { - "optional": true - } - } - }, "node_modules/@nodelib/fs.scandir": { "version": "2.1.5", "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", @@ -3959,12 +3734,6 @@ "dev": true, "license": "MIT" }, - "node_modules/hamt_plus": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/hamt_plus/-/hamt_plus-1.0.2.tgz", - "integrity": "sha512-t2JXKaehnMb9paaYA7J0BX8QQAY8lwfQ9Gjf4pg/mk4krt+cmwmU652HOoWonf+7+EQV97ARPMhhVgU1ra2GhA==", - "license": "MIT" - }, "node_modules/has-bigints": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.1.0.tgz", @@ -5216,26 +4985,6 @@ "react-dom": ">=16.6.0" } }, - "node_modules/recoil": { - "version": "0.7.7", - "resolved": "https://registry.npmjs.org/recoil/-/recoil-0.7.7.tgz", - "integrity": "sha512-8Og5KPQW9LwC577Vc7Ug2P0vQshkv1y3zG3tSSkWMqkWSwHmE+by06L8JtnGocjW6gcCvfwB3YtrJG6/tWivNQ==", - "license": "MIT", - "dependencies": { - "hamt_plus": "1.0.2" - }, - "peerDependencies": { - "react": ">=16.13.1" - }, - "peerDependenciesMeta": { - "react-dom": { - "optional": true - }, - "react-native": { - "optional": true - } - } - }, "node_modules/reflect.getprototypeof": { "version": "1.0.10", "resolved": "https://registry.npmjs.org/reflect.getprototypeof/-/reflect.getprototypeof-1.0.10.tgz", @@ -5280,12 +5029,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/reselect": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/reselect/-/reselect-5.1.1.tgz", - "integrity": "sha512-K/BG6eIky/SBpzfHZv/dd+9JBFiS4SWV7FIujVyJRux6e45+73RaUHXLmIR1f7WOMaQ0U1km6qwklRQxpJJY0w==", - "license": "MIT" - }, "node_modules/resolve": { "version": "1.22.10", "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.10.tgz", @@ -6053,15 +5796,6 @@ "punycode": "^2.1.0" } }, - "node_modules/use-sync-external-store": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/use-sync-external-store/-/use-sync-external-store-1.5.0.tgz", - "integrity": "sha512-Rb46I4cGGVBmjamjphe8L/UnvJD+uPPtTkNvX5mZgqdbavhI4EbgIWJiIHXJ8bc/i9EQGPRh4DwEURJ552Do0A==", - "license": "MIT", - "peerDependencies": { - "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" - } - }, "node_modules/vite": { "version": "5.4.19", "resolved": "https://registry.npmjs.org/vite/-/vite-5.4.19.tgz", diff --git a/dashboard/package.json b/dashboard/package.json index ec79157..a6d14ea 100644 --- a/dashboard/package.json +++ b/dashboard/package.json @@ -14,11 +14,9 @@ "@emotion/styled": "^11.13.0", "@mui/icons-material": "^6.0.0", "@mui/material": "^6.0.0", - "@mui/x-data-grid": "^8.11.1", "@tanstack/react-query": "^5.56.2", "react": "^18.3.1", - "react-dom": "^18.3.1", - "recoil": "^0.7.7" + "react-dom": "^18.3.1" }, "devDependencies": { "@eslint/compat": "^1.3.2", diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..221d8d1 --- /dev/null +++ b/package-lock.json @@ -0,0 +1,6 @@ +{ + "name": "slcomp", + "lockfileVersion": 3, + "requires": true, + "packages": {} +} From 5998107d92996bac2d5503cba35fff1a3e353fb1 Mon Sep 17 00:00:00 2001 From: Renan Alves de Oliveira Date: Sun, 26 Apr 2026 23:31:15 -0300 Subject: [PATCH 2/8] chore: update content security policy and clean dependencies - refine content security policy for improved security - remove unused dependencies from Vite configuration --- dashboard/index.html | 2 +- dashboard/vite.config.ts | 7 ++----- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/dashboard/index.html b/dashboard/index.html index 1e556f6..59ddf76 100644 --- a/dashboard/index.html +++ b/dashboard/index.html @@ -5,7 +5,7 @@ - + The LaStBeRu Explorer