removed unused package

Massimo Melina committed Oct 6, 2025 at 00:22 UTC 4ff5b7b0202d97f5388b746ac4a7e4a542233db8
9 files changed +8 -106
admin/package.json
+1 -3
@@ -30,9 +30,7 @@
30 "tssrp6a": "^3.0.0",
31 "valtio": "^1.13.0",
32 "immer": "*",
33 - "usehooks-ts": "^2.9.5",
34 - "watch-size": "^2.0.0",
35 - "web-vitals": "^2.1.4"
33 + "usehooks-ts": "^2.9.5"
34 },
35 "devDependencies": {
36 "@types/prismjs": "^1.26.5",
admin/src/VfsPage.ts
+1 -1
@@ -173,7 +173,7 @@ export function reloadVfs(pleaseSelect?: string[]) {
173 state.vfs = undefined
174 }
175
176 -export async function deleteFiles() {
176 +async function deleteFiles() {
177 const f = state.selectedFiles
178 if (!f.length) return
179 if (!await confirmDialog(`Delete ${f.length} item(s)?`)) return
admin/src/misc.ts
-8
@@ -8,14 +8,6 @@ export * from '@hfs/shared'
8
9 ;(MD_TAGS as any).a = Link
10
11 -export async function manipulateConfig(k: string, work:(data:any) => any) {
12 - const cfg = await apiCall('get_config', { only: [k] })
13 - const was = cfg[k]
14 - const will = await work(was)
15 - if (JSON.stringify(was) !== JSON.stringify(will))
16 - await apiCall('set_config', { values: { [k]: will } })
17 -}
18 -
11 export function err2msg(code: string | number) {
12 const permPath = typeof code === 'string' && code.split("Error: EPERM: operation not permitted, access ")[1]?.split('\n')[0]
13 if (permPath)
admin/src/reportWebVitals.ts deleted
-15
@@ -1,15 +0,0 @@
1 -import { ReportHandler } from 'web-vitals';
2 -
3 -const reportWebVitals = (onPerfEntry?: ReportHandler) => {
4 - if (onPerfEntry && onPerfEntry instanceof Function) {
5 - import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => {
6 - getCLS(onPerfEntry);
7 - getFID(onPerfEntry);
8 - getFCP(onPerfEntry);
9 - getLCP(onPerfEntry);
10 - getTTFB(onPerfEntry);
11 - });
12 - }
13 -};
14 -
15 -export default reportWebVitals;
frontend/package.json
-2
@@ -16,7 +16,6 @@
16 "tssrp6a": "^3.0.0",
17 "usehooks-ts": "^2.6.0",
18 "valtio": "^1.13.0",
19 - "web-vitals": "^2.1.4",
19 "xxhashjs": "^0.2.2"
20 },
21 "devDependencies": {
@@ -25,7 +24,6 @@
24 "@types/react-dom": "^18.3.2",
25 "@types/xxhashjs": "^0.2.4",
26 "@vitejs/plugin-legacy": "^6.0.0",
28 - "cross-env": "^7.0.3",
27 "sass": "^1.54.5",
28 "vite": "*"
29 },
frontend/src/reportWebVitals.ts deleted
-15
@@ -1,15 +0,0 @@
1 -import { ReportHandler } from 'web-vitals';
2 -
3 -const reportWebVitals = (onPerfEntry?: ReportHandler) => {
4 - if (onPerfEntry) {
5 - import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => {
6 - getCLS(onPerfEntry);
7 - getFID(onPerfEntry);
8 - getFCP(onPerfEntry);
9 - getLCP(onPerfEntry);
10 - getTTFB(onPerfEntry);
11 - });
12 - }
13 -};
14 -
15 -export default reportWebVitals;
package-lock.json
+4 -60
@@ -99,9 +99,7 @@
99 "react-window": "^1.8.10",
100 "tssrp6a": "^3.0.0",
101 "usehooks-ts": "^2.9.5",
102 - "valtio": "^1.13.0",
103 - "watch-size": "^2.0.0",
104 - "web-vitals": "^2.1.4"
102 + "valtio": "^1.13.0"
103 },
104 "devDependencies": {
105 "@types/prismjs": "^1.26.5",
@@ -153,7 +151,6 @@
151 "tssrp6a": "^3.0.0",
152 "usehooks-ts": "^2.6.0",
153 "valtio": "^1.13.0",
156 - "web-vitals": "^2.1.4",
154 "xxhashjs": "^0.2.2"
155 },
156 "devDependencies": {
@@ -162,7 +159,6 @@
159 "@types/react-dom": "^18.3.2",
160 "@types/xxhashjs": "^0.2.4",
161 "@vitejs/plugin-legacy": "^6.0.0",
165 - "cross-env": "^7.0.3",
162 "sass": "^1.54.5",
163 "vite": "*"
164 }
@@ -194,25 +190,6 @@
190 "vite": "^6.0.0"
191 }
192 },
197 - "frontend/node_modules/cross-env": {
198 - "version": "7.0.3",
199 - "resolved": "https://registry.npmjs.org/cross-env/-/cross-env-7.0.3.tgz",
200 - "integrity": "sha512-+/HKd6EgcQCJGh2PSjZuUitQBQynKor4wrFbRg4DtAgS1aWO+gU52xpH7M9ScGgXSYmAVS9bIJ8EzuaGw0oNAw==",
201 - "dev": true,
202 - "license": "MIT",
203 - "dependencies": {
204 - "cross-spawn": "^7.0.1"
205 - },
206 - "bin": {
207 - "cross-env": "src/bin/cross-env.js",
208 - "cross-env-shell": "src/bin/cross-env-shell.js"
209 - },
210 - "engines": {
211 - "node": ">=10.14",
212 - "npm": ">=6",
213 - "yarn": ">=1"
214 - }
215 - },
193 "mui-grid-form": {
194 "name": "@hfs/mui-grid-form",
195 "dependencies": {
@@ -8949,16 +8926,6 @@
8926 "lodash.isundefined": "^3.0.1"
8927 }
8928 },
8952 - "node_modules/watch-size": {
8953 - "version": "2.0.0",
8954 - "resolved": "https://registry.npmjs.org/watch-size/-/watch-size-2.0.0.tgz",
8955 - "integrity": "sha512-M92R89dNoTPWyCD+HuUEDdhaDnh9jxPGOwlDc0u51jAgmjUvzqaEMynXSr3BaWs+QdHYk4KzibPy1TFtjLmOZQ=="
8956 - },
8957 - "node_modules/web-vitals": {
8958 - "version": "2.1.4",
8959 - "resolved": "https://registry.npmjs.org/web-vitals/-/web-vitals-2.1.4.tgz",
8960 - "integrity": "sha512-sVWcwhU5mX6crfI5Vd2dC4qchyTqxV8URinzt25XqVh+bHEPGH4C3NPrNionCP7Obx59wrYEbNlw4Z8sjALzZg=="
8961 - },
8929 "node_modules/webidl-conversions": {
8930 "version": "3.0.1",
8931 "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz",
@@ -9112,7 +9079,7 @@
9079 "name": "@hfs/shared",
9080 "dependencies": {
9081 "js-sha512": "^0.8.0",
9115 - "tssrp6a": "^3.0.0"
9082 + "usehooks-ts": "*"
9083 },
9084 "devDependencies": {
9085 "react": "*",
@@ -10522,9 +10489,7 @@
10489 "tssrp6a": "^3.0.0",
10490 "usehooks-ts": "^2.9.5",
10491 "valtio": "^1.13.0",
10525 - "vite": "^6.2.4",
10526 - "watch-size": "^2.0.0",
10527 - "web-vitals": "^2.1.4"
10492 + "vite": "^6.2.4"
10493 },
10494 "dependencies": {
10495 "@mui/x-data-grid": {
@@ -10555,7 +10520,6 @@
10520 "@types/react-dom": "^18.3.2",
10521 "@types/xxhashjs": "^0.2.4",
10522 "@vitejs/plugin-legacy": "^6.0.0",
10558 - "cross-env": "^7.0.3",
10523 "lodash": "^4.17.21",
10524 "react": "^18.3.1",
10525 "react-dom": "^18.3.1",
@@ -10565,7 +10529,6 @@
10529 "usehooks-ts": "^2.6.0",
10530 "valtio": "^1.13.0",
10531 "vite": "*",
10568 - "web-vitals": "^2.1.4",
10532 "xxhashjs": "^0.2.2"
10533 },
10534 "dependencies": {
@@ -10584,15 +10547,6 @@
10547 "regenerator-runtime": "^0.14.1",
10548 "systemjs": "^6.15.1"
10549 }
10587 - },
10588 - "cross-env": {
10589 - "version": "7.0.3",
10590 - "resolved": "https://registry.npmjs.org/cross-env/-/cross-env-7.0.3.tgz",
10591 - "integrity": "sha512-+/HKd6EgcQCJGh2PSjZuUitQBQynKor4wrFbRg4DtAgS1aWO+gU52xpH7M9ScGgXSYmAVS9bIJ8EzuaGw0oNAw==",
10592 - "dev": true,
10593 - "requires": {
10594 - "cross-spawn": "^7.0.1"
10595 - }
10550 }
10551 }
10552 },
@@ -10614,7 +10568,7 @@
10568 "js-sha512": "^0.8.0",
10569 "react": "*",
10570 "react-dom": "*",
10617 - "tssrp6a": "^3.0.0"
10571 + "usehooks-ts": "*"
10572 }
10573 },
10574 "@isaacs/cliui": {
@@ -14990,16 +14944,6 @@
14944 "lodash.isundefined": "^3.0.1"
14945 }
14946 },
14993 - "watch-size": {
14994 - "version": "2.0.0",
14995 - "resolved": "https://registry.npmjs.org/watch-size/-/watch-size-2.0.0.tgz",
14996 - "integrity": "sha512-M92R89dNoTPWyCD+HuUEDdhaDnh9jxPGOwlDc0u51jAgmjUvzqaEMynXSr3BaWs+QdHYk4KzibPy1TFtjLmOZQ=="
14997 - },
14998 - "web-vitals": {
14999 - "version": "2.1.4",
15000 - "resolved": "https://registry.npmjs.org/web-vitals/-/web-vitals-2.1.4.tgz",
15001 - "integrity": "sha512-sVWcwhU5mX6crfI5Vd2dC4qchyTqxV8URinzt25XqVh+bHEPGH4C3NPrNionCP7Obx59wrYEbNlw4Z8sjALzZg=="
15002 - },
14947 "webidl-conversions": {
14948 "version": "3.0.1",
14949 "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz",
plugins/antibrute/plugin.js
+1 -1
@@ -41,5 +41,5 @@ exports.init = api => {
41 if (ctx.state.account)
42 delete byIp[ctx.ip] // reset if login was successful
43 }
44 - })
44 + })
45 }
shared/package.json
+1 -1
@@ -3,7 +3,7 @@
3 "main": "index.ts",
4 "dependencies": {
5 "js-sha512": "^0.8.0",
6 - "tssrp6a": "^3.0.0"
6 + "usehooks-ts": "*"
7 },
8 "devDependencies": {
9 "react": "*",