Skip to content

Commit ecf1b9b

Browse files
committed
remove unused packages and code
1 parent ff8807c commit ecf1b9b

File tree

5 files changed

+5
-101
lines changed

5 files changed

+5
-101
lines changed

package.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,7 @@
4040
"esbuild-loader": "^4.0.3",
4141
"flexsearch": "^0.7.43",
4242
"gray-matter": "^4.0.3",
43-
"hast-util-is-element": "1.1.0",
4443
"http-proxy-middleware": "3.0.3",
45-
"katex": "^0.16.21",
4644
"node-fetch": "^3.3.2",
4745
"prism-react-renderer": "^2.4.1",
4846
"react": "^18.2.0",
@@ -60,7 +58,6 @@
6058
"@docusaurus/module-type-aliases": "3.7.0",
6159
"@playwright/test": "^1.49.1",
6260
"@types/react": "^19.0.4",
63-
"cheerio": "^1.0.0",
6461
"rsync": "^0.6.1",
6562
"typescript": "^5.7.3"
6663
},

src/hooks/index.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import useDebounce from './useDebounce'
2-
import useThrottle from './useThrottle'
31
import useClickOutside from './useClickOutside'
42

5-
export { useDebounce, useThrottle, useClickOutside }
3+
export { useClickOutside }

src/hooks/useDebounce.js

Lines changed: 0 additions & 14 deletions
This file was deleted.

src/hooks/useThrottle.js

Lines changed: 0 additions & 13 deletions
This file was deleted.

yarn.lock

Lines changed: 4 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -4447,23 +4447,6 @@ [email protected]:
44474447
parse5 "^7.0.0"
44484448
parse5-htmlparser2-tree-adapter "^7.0.0"
44494449

4450-
cheerio@^1.0.0:
4451-
version "1.0.0"
4452-
resolved "https://registry.yarnpkg.com/cheerio/-/cheerio-1.0.0.tgz#1ede4895a82f26e8af71009f961a9b8cb60d6a81"
4453-
integrity sha512-quS9HgjQpdaXOvsZz82Oz7uxtXiy6UIsIQcpBj7HRw2M63Skasm9qlDocAM7jNuaxdhpPU7c4kJN+gA5MCu4ww==
4454-
dependencies:
4455-
cheerio-select "^2.1.0"
4456-
dom-serializer "^2.0.0"
4457-
domhandler "^5.0.3"
4458-
domutils "^3.1.0"
4459-
encoding-sniffer "^0.2.0"
4460-
htmlparser2 "^9.1.0"
4461-
parse5 "^7.1.2"
4462-
parse5-htmlparser2-tree-adapter "^7.0.0"
4463-
parse5-parser-stream "^7.1.2"
4464-
undici "^6.19.5"
4465-
whatwg-mimetype "^4.0.0"
4466-
44674450
chevrotain-allstar@~0.3.0:
44684451
version "0.3.1"
44694452
resolved "https://registry.yarnpkg.com/chevrotain-allstar/-/chevrotain-allstar-0.3.1.tgz#b7412755f5d83cc139ab65810cdb00d8db40e6ca"
@@ -5591,7 +5574,7 @@ domutils@^2.5.2, domutils@^2.8.0:
55915574
domelementtype "^2.2.0"
55925575
domhandler "^4.2.0"
55935576

5594-
domutils@^3.0.1, domutils@^3.1.0:
5577+
domutils@^3.0.1:
55955578
version "3.2.2"
55965579
resolved "https://registry.yarnpkg.com/domutils/-/domutils-3.2.2.tgz#edbfe2b668b0c1d97c24baf0f1062b132221bc78"
55975580
integrity sha512-6kZKyUajlDuqlHKVX1w7gyslj9MPIXzIFiz/rGu35uC1wMi+kMhQwGhl4lt9unC9Vb9INnY9Z3/ZA3+FhASLaw==
@@ -5691,14 +5674,6 @@ encodeurl@~2.0.0:
56915674
resolved "https://registry.yarnpkg.com/encodeurl/-/encodeurl-2.0.0.tgz#7b8ea898077d7e409d3ac45474ea38eaf0857a58"
56925675
integrity sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==
56935676

5694-
encoding-sniffer@^0.2.0:
5695-
version "0.2.0"
5696-
resolved "https://registry.yarnpkg.com/encoding-sniffer/-/encoding-sniffer-0.2.0.tgz#799569d66d443babe82af18c9f403498365ef1d5"
5697-
integrity sha512-ju7Wq1kg04I3HtiYIOrUrdfdDvkyO9s5XM8QAj/bN61Yo/Vb4vgJxy5vi4Yxk01gWHbrofpPtpxM8bKger9jhg==
5698-
dependencies:
5699-
iconv-lite "^0.6.3"
5700-
whatwg-encoding "^3.1.1"
5701-
57025677
enhanced-resolve@^5.17.1:
57035678
version "5.18.1"
57045679
resolved "https://registry.yarnpkg.com/enhanced-resolve/-/enhanced-resolve-5.18.1.tgz#728ab082f8b7b6836de51f1637aab5d3b9568faf"
@@ -6587,11 +6562,6 @@ hast-util-from-parse5@^8.0.0:
65876562
vfile-location "^5.0.0"
65886563
web-namespaces "^2.0.0"
65896564

6590-
6591-
version "1.1.0"
6592-
resolved "https://registry.yarnpkg.com/hast-util-is-element/-/hast-util-is-element-1.1.0.tgz#3b3ed5159a2707c6137b48637fbfe068e175a425"
6593-
integrity sha512-oUmNua0bFbdrD/ELDSSEadRVtWZOf3iF6Lbv81naqsIV99RnSCieTbWuWCY8BAeEfKJTKl0gRdokv+dELutHGQ==
6594-
65956565
hast-util-is-element@^3.0.0:
65966566
version "3.0.0"
65976567
resolved "https://registry.yarnpkg.com/hast-util-is-element/-/hast-util-is-element-3.0.0.tgz#6e31a6532c217e5b533848c7e52c9d9369ca0932"
@@ -6820,16 +6790,6 @@ htmlparser2@^8.0.1:
68206790
domutils "^3.0.1"
68216791
entities "^4.4.0"
68226792

6823-
htmlparser2@^9.1.0:
6824-
version "9.1.0"
6825-
resolved "https://registry.yarnpkg.com/htmlparser2/-/htmlparser2-9.1.0.tgz#cdb498d8a75a51f739b61d3f718136c369bc8c23"
6826-
integrity sha512-5zfg6mHUoaer/97TxnGpxmbR7zJtPwIYFMZ/H5ucTlPZhKvtum05yiPK3Mgai3a0DyVxv7qYqoweaEd2nrYQzQ==
6827-
dependencies:
6828-
domelementtype "^2.3.0"
6829-
domhandler "^5.0.3"
6830-
domutils "^3.1.0"
6831-
entities "^4.5.0"
6832-
68336793
http-cache-semantics@^4.1.1:
68346794
version "4.1.1"
68356795
resolved "https://registry.yarnpkg.com/http-cache-semantics/-/http-cache-semantics-4.1.1.tgz#abe02fcb2985460bf0323be664436ec3476a6d5a"
@@ -6918,7 +6878,7 @@ [email protected]:
69186878
dependencies:
69196879
safer-buffer ">= 2.1.2 < 3"
69206880

6921-
6881+
69226882
version "0.6.3"
69236883
resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.6.3.tgz#a52f80bf38da1952eb5c681790719871a1a72501"
69246884
integrity sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==
@@ -7392,7 +7352,7 @@ jsonfile@^6.0.1:
73927352
optionalDependencies:
73937353
graceful-fs "^4.1.6"
73947354

7395-
katex@^0.16.0, katex@^0.16.21, katex@^0.16.9:
7355+
katex@^0.16.0, katex@^0.16.9:
73967356
version "0.16.21"
73977357
resolved "https://registry.yarnpkg.com/katex/-/katex-0.16.21.tgz#8f63c659e931b210139691f2cc7bb35166b792a3"
73987358
integrity sha512-XvqR7FgOHtWupfMiigNzmh+MgUVmDGU2kXZm899ZkPfcuoPuFxyHmXsgATDpFZDAXCI8tvinaVcDo8PIIJSo4A==
@@ -8915,14 +8875,7 @@ parse5-htmlparser2-tree-adapter@^7.0.0:
89158875
domhandler "^5.0.3"
89168876
parse5 "^7.0.0"
89178877

8918-
parse5-parser-stream@^7.1.2:
8919-
version "7.1.2"
8920-
resolved "https://registry.yarnpkg.com/parse5-parser-stream/-/parse5-parser-stream-7.1.2.tgz#d7c20eadc37968d272e2c02660fff92dd27e60e1"
8921-
integrity sha512-JyeQc9iwFLn5TbvvqACIF/VXG6abODeB3Fwmv/TGdLk2LfbWkaySGY72at4+Ty7EkPZj854u4CrICqNk2qIbow==
8922-
dependencies:
8923-
parse5 "^7.0.0"
8924-
8925-
parse5@^7.0.0, parse5@^7.1.2:
8878+
parse5@^7.0.0:
89268879
version "7.2.1"
89278880
resolved "https://registry.yarnpkg.com/parse5/-/parse5-7.2.1.tgz#8928f55915e6125f430cc44309765bf17556a33a"
89288881
integrity sha512-BuBYQYlv1ckiPdQi/ohiivi9Sagc9JG+Ozs0r7b/0iK3sKmrb0b9FdWdBbOdx6hBCM/F9Ir82ofnBhtZOjCRPQ==
@@ -11107,11 +11060,6 @@ undici-types@~6.20.0:
1110711060
resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-6.20.0.tgz#8171bf22c1f588d1554d55bf204bc624af388433"
1110811061
integrity sha512-Ny6QZ2Nju20vw1SRHe3d9jVu6gJ+4e3+MMpqu7pqE5HT6WsTSlce++GQmK5UXS8mzV8DSYHrQH+Xrf2jVcuKNg==
1110911062

11110-
undici@^6.19.5:
11111-
version "6.21.1"
11112-
resolved "https://registry.yarnpkg.com/undici/-/undici-6.21.1.tgz#336025a14162e6837e44ad7b819b35b6c6af0e05"
11113-
integrity sha512-q/1rj5D0/zayJB2FraXdaWxbhWiNKDvu8naDT2dl1yTlvJp4BLtOcp2a5BvgGNQpYYJzau7tf1WgKv3b+7mqpQ==
11114-
1111511063
unicode-canonical-property-names-ecmascript@^2.0.0:
1111611064
version "2.0.1"
1111711065
resolved "https://registry.yarnpkg.com/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-2.0.1.tgz#cb3173fe47ca743e228216e4a3ddc4c84d628cc2"
@@ -11614,18 +11562,6 @@ websocket-extensions@>=0.1.1:
1161411562
resolved "https://registry.yarnpkg.com/websocket-extensions/-/websocket-extensions-0.1.4.tgz#7f8473bc839dfd87608adb95d7eb075211578a42"
1161511563
integrity sha512-OqedPIGOfsDlo31UNwYbCFMSaO9m9G/0faIHj5/dZFDMFqPTcx6UwqyOy3COEaEOg/9VsGIpdqn62W5KhoKSpg==
1161611564

11617-
whatwg-encoding@^3.1.1:
11618-
version "3.1.1"
11619-
resolved "https://registry.yarnpkg.com/whatwg-encoding/-/whatwg-encoding-3.1.1.tgz#d0f4ef769905d426e1688f3e34381a99b60b76e5"
11620-
integrity sha512-6qN4hJdMwfYBtE3YBTTHhoeuUrDBPZmbQaxWAqSALV/MeEnR5z1xd8UKud2RAkFoPkmB+hli1TZSnyi84xz1vQ==
11621-
dependencies:
11622-
iconv-lite "0.6.3"
11623-
11624-
whatwg-mimetype@^4.0.0:
11625-
version "4.0.0"
11626-
resolved "https://registry.yarnpkg.com/whatwg-mimetype/-/whatwg-mimetype-4.0.0.tgz#bc1bf94a985dc50388d54a9258ac405c3ca2fc0a"
11627-
integrity sha512-QaKxh0eNIi2mE9p2vEdzfagOKHCcj1pJ56EEHGQOVxp8r9/iszLUUV7v89x9O1p/T+NlTM5W7jW6+cz4Fq1YVg==
11628-
1162911565
when-exit@^2.1.1:
1163011566
version "2.1.4"
1163111567
resolved "https://registry.yarnpkg.com/when-exit/-/when-exit-2.1.4.tgz#e2a0e998f7ad67eb0d2ce37e9794386663cc96f7"

0 commit comments

Comments
 (0)