Spaces:
Sleeping
Sleeping
fix mathjax
Browse files- web/package-lock.json +1 -342
- web/package.json +1 -4
- web/src/App.tsx +11 -3
- web/vite.config.ts +2 -2
web/package-lock.json
CHANGED
|
@@ -10,14 +10,11 @@
|
|
| 10 |
"dependencies": {
|
| 11 |
"axios": "^1.6.2",
|
| 12 |
"better-react-mathjax": "^2.4.0-beta-1",
|
| 13 |
-
"katex": "^0.16.27",
|
| 14 |
"react": "^18.2.0",
|
| 15 |
"react-dom": "^18.2.0",
|
| 16 |
"react-markdown": "^9.0.1",
|
| 17 |
"react-syntax-highlighter": "^15.5.0",
|
| 18 |
-
"
|
| 19 |
-
"remark-gfm": "^4.0.1",
|
| 20 |
-
"remark-math": "^6.0.0"
|
| 21 |
},
|
| 22 |
"devDependencies": {
|
| 23 |
"@types/react": "^18.2.43",
|
|
@@ -1192,12 +1189,6 @@
|
|
| 1192 |
"@types/unist": "*"
|
| 1193 |
}
|
| 1194 |
},
|
| 1195 |
-
"node_modules/@types/katex": {
|
| 1196 |
-
"version": "0.16.7",
|
| 1197 |
-
"resolved": "https://registry.npmjs.org/@types/katex/-/katex-0.16.7.tgz",
|
| 1198 |
-
"integrity": "sha512-HMwFiRujE5PjrgwHQ25+bsLJgowjGjm5Z8FVSf0N6PwgJrwxH0QxzHYDcKsTfV3wva0vzrpqMTJS2jXPr5BMEQ==",
|
| 1199 |
-
"license": "MIT"
|
| 1200 |
-
},
|
| 1201 |
"node_modules/@types/mdast": {
|
| 1202 |
"version": "4.0.4",
|
| 1203 |
"resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-4.0.4.tgz",
|
|
@@ -1481,15 +1472,6 @@
|
|
| 1481 |
"url": "https://github.com/sponsors/wooorm"
|
| 1482 |
}
|
| 1483 |
},
|
| 1484 |
-
"node_modules/commander": {
|
| 1485 |
-
"version": "8.3.0",
|
| 1486 |
-
"resolved": "https://registry.npmjs.org/commander/-/commander-8.3.0.tgz",
|
| 1487 |
-
"integrity": "sha512-OkTL9umf+He2DZkUq8f8J9of7yL6RJKI24dVITBmNfZBmri9zYZQrKkuXiKhyfPSu8tUhnVBB1iKXevvnlR4Ww==",
|
| 1488 |
-
"license": "MIT",
|
| 1489 |
-
"engines": {
|
| 1490 |
-
"node": ">= 12"
|
| 1491 |
-
}
|
| 1492 |
-
},
|
| 1493 |
"node_modules/convert-source-map": {
|
| 1494 |
"version": "2.0.0",
|
| 1495 |
"resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz",
|
|
@@ -1585,18 +1567,6 @@
|
|
| 1585 |
"dev": true,
|
| 1586 |
"license": "ISC"
|
| 1587 |
},
|
| 1588 |
-
"node_modules/entities": {
|
| 1589 |
-
"version": "6.0.1",
|
| 1590 |
-
"resolved": "https://registry.npmjs.org/entities/-/entities-6.0.1.tgz",
|
| 1591 |
-
"integrity": "sha512-aN97NXWF6AWBTahfVOIrB/NShkzi5H7F9r1s9mD3cDj4Ko5f2qhhVoYMibXF7GlLveb/D2ioWay8lxI97Ven3g==",
|
| 1592 |
-
"license": "BSD-2-Clause",
|
| 1593 |
-
"engines": {
|
| 1594 |
-
"node": ">=0.12"
|
| 1595 |
-
},
|
| 1596 |
-
"funding": {
|
| 1597 |
-
"url": "https://github.com/fb55/entities?sponsor=1"
|
| 1598 |
-
}
|
| 1599 |
-
},
|
| 1600 |
"node_modules/es-define-property": {
|
| 1601 |
"version": "1.0.1",
|
| 1602 |
"resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz",
|
|
@@ -1924,148 +1894,6 @@
|
|
| 1924 |
"node": ">= 0.4"
|
| 1925 |
}
|
| 1926 |
},
|
| 1927 |
-
"node_modules/hast-util-from-dom": {
|
| 1928 |
-
"version": "5.0.1",
|
| 1929 |
-
"resolved": "https://registry.npmjs.org/hast-util-from-dom/-/hast-util-from-dom-5.0.1.tgz",
|
| 1930 |
-
"integrity": "sha512-N+LqofjR2zuzTjCPzyDUdSshy4Ma6li7p/c3pA78uTwzFgENbgbUrm2ugwsOdcjI1muO+o6Dgzp9p8WHtn/39Q==",
|
| 1931 |
-
"license": "ISC",
|
| 1932 |
-
"dependencies": {
|
| 1933 |
-
"@types/hast": "^3.0.0",
|
| 1934 |
-
"hastscript": "^9.0.0",
|
| 1935 |
-
"web-namespaces": "^2.0.0"
|
| 1936 |
-
},
|
| 1937 |
-
"funding": {
|
| 1938 |
-
"type": "opencollective",
|
| 1939 |
-
"url": "https://opencollective.com/unified"
|
| 1940 |
-
}
|
| 1941 |
-
},
|
| 1942 |
-
"node_modules/hast-util-from-dom/node_modules/hast-util-parse-selector": {
|
| 1943 |
-
"version": "4.0.0",
|
| 1944 |
-
"resolved": "https://registry.npmjs.org/hast-util-parse-selector/-/hast-util-parse-selector-4.0.0.tgz",
|
| 1945 |
-
"integrity": "sha512-wkQCkSYoOGCRKERFWcxMVMOcYE2K1AaNLU8DXS9arxnLOUEWbOXKXiJUNzEpqZ3JOKpnha3jkFrumEjVliDe7A==",
|
| 1946 |
-
"license": "MIT",
|
| 1947 |
-
"dependencies": {
|
| 1948 |
-
"@types/hast": "^3.0.0"
|
| 1949 |
-
},
|
| 1950 |
-
"funding": {
|
| 1951 |
-
"type": "opencollective",
|
| 1952 |
-
"url": "https://opencollective.com/unified"
|
| 1953 |
-
}
|
| 1954 |
-
},
|
| 1955 |
-
"node_modules/hast-util-from-dom/node_modules/hastscript": {
|
| 1956 |
-
"version": "9.0.1",
|
| 1957 |
-
"resolved": "https://registry.npmjs.org/hastscript/-/hastscript-9.0.1.tgz",
|
| 1958 |
-
"integrity": "sha512-g7df9rMFX/SPi34tyGCyUBREQoKkapwdY/T04Qn9TDWfHhAYt4/I0gMVirzK5wEzeUqIjEB+LXC/ypb7Aqno5w==",
|
| 1959 |
-
"license": "MIT",
|
| 1960 |
-
"dependencies": {
|
| 1961 |
-
"@types/hast": "^3.0.0",
|
| 1962 |
-
"comma-separated-tokens": "^2.0.0",
|
| 1963 |
-
"hast-util-parse-selector": "^4.0.0",
|
| 1964 |
-
"property-information": "^7.0.0",
|
| 1965 |
-
"space-separated-tokens": "^2.0.0"
|
| 1966 |
-
},
|
| 1967 |
-
"funding": {
|
| 1968 |
-
"type": "opencollective",
|
| 1969 |
-
"url": "https://opencollective.com/unified"
|
| 1970 |
-
}
|
| 1971 |
-
},
|
| 1972 |
-
"node_modules/hast-util-from-html": {
|
| 1973 |
-
"version": "2.0.3",
|
| 1974 |
-
"resolved": "https://registry.npmjs.org/hast-util-from-html/-/hast-util-from-html-2.0.3.tgz",
|
| 1975 |
-
"integrity": "sha512-CUSRHXyKjzHov8yKsQjGOElXy/3EKpyX56ELnkHH34vDVw1N1XSQ1ZcAvTyAPtGqLTuKP/uxM+aLkSPqF/EtMw==",
|
| 1976 |
-
"license": "MIT",
|
| 1977 |
-
"dependencies": {
|
| 1978 |
-
"@types/hast": "^3.0.0",
|
| 1979 |
-
"devlop": "^1.1.0",
|
| 1980 |
-
"hast-util-from-parse5": "^8.0.0",
|
| 1981 |
-
"parse5": "^7.0.0",
|
| 1982 |
-
"vfile": "^6.0.0",
|
| 1983 |
-
"vfile-message": "^4.0.0"
|
| 1984 |
-
},
|
| 1985 |
-
"funding": {
|
| 1986 |
-
"type": "opencollective",
|
| 1987 |
-
"url": "https://opencollective.com/unified"
|
| 1988 |
-
}
|
| 1989 |
-
},
|
| 1990 |
-
"node_modules/hast-util-from-html-isomorphic": {
|
| 1991 |
-
"version": "2.0.0",
|
| 1992 |
-
"resolved": "https://registry.npmjs.org/hast-util-from-html-isomorphic/-/hast-util-from-html-isomorphic-2.0.0.tgz",
|
| 1993 |
-
"integrity": "sha512-zJfpXq44yff2hmE0XmwEOzdWin5xwH+QIhMLOScpX91e/NSGPsAzNCvLQDIEPyO2TXi+lBmU6hjLIhV8MwP2kw==",
|
| 1994 |
-
"license": "MIT",
|
| 1995 |
-
"dependencies": {
|
| 1996 |
-
"@types/hast": "^3.0.0",
|
| 1997 |
-
"hast-util-from-dom": "^5.0.0",
|
| 1998 |
-
"hast-util-from-html": "^2.0.0",
|
| 1999 |
-
"unist-util-remove-position": "^5.0.0"
|
| 2000 |
-
},
|
| 2001 |
-
"funding": {
|
| 2002 |
-
"type": "opencollective",
|
| 2003 |
-
"url": "https://opencollective.com/unified"
|
| 2004 |
-
}
|
| 2005 |
-
},
|
| 2006 |
-
"node_modules/hast-util-from-parse5": {
|
| 2007 |
-
"version": "8.0.3",
|
| 2008 |
-
"resolved": "https://registry.npmjs.org/hast-util-from-parse5/-/hast-util-from-parse5-8.0.3.tgz",
|
| 2009 |
-
"integrity": "sha512-3kxEVkEKt0zvcZ3hCRYI8rqrgwtlIOFMWkbclACvjlDw8Li9S2hk/d51OI0nr/gIpdMHNepwgOKqZ/sy0Clpyg==",
|
| 2010 |
-
"license": "MIT",
|
| 2011 |
-
"dependencies": {
|
| 2012 |
-
"@types/hast": "^3.0.0",
|
| 2013 |
-
"@types/unist": "^3.0.0",
|
| 2014 |
-
"devlop": "^1.0.0",
|
| 2015 |
-
"hastscript": "^9.0.0",
|
| 2016 |
-
"property-information": "^7.0.0",
|
| 2017 |
-
"vfile": "^6.0.0",
|
| 2018 |
-
"vfile-location": "^5.0.0",
|
| 2019 |
-
"web-namespaces": "^2.0.0"
|
| 2020 |
-
},
|
| 2021 |
-
"funding": {
|
| 2022 |
-
"type": "opencollective",
|
| 2023 |
-
"url": "https://opencollective.com/unified"
|
| 2024 |
-
}
|
| 2025 |
-
},
|
| 2026 |
-
"node_modules/hast-util-from-parse5/node_modules/hast-util-parse-selector": {
|
| 2027 |
-
"version": "4.0.0",
|
| 2028 |
-
"resolved": "https://registry.npmjs.org/hast-util-parse-selector/-/hast-util-parse-selector-4.0.0.tgz",
|
| 2029 |
-
"integrity": "sha512-wkQCkSYoOGCRKERFWcxMVMOcYE2K1AaNLU8DXS9arxnLOUEWbOXKXiJUNzEpqZ3JOKpnha3jkFrumEjVliDe7A==",
|
| 2030 |
-
"license": "MIT",
|
| 2031 |
-
"dependencies": {
|
| 2032 |
-
"@types/hast": "^3.0.0"
|
| 2033 |
-
},
|
| 2034 |
-
"funding": {
|
| 2035 |
-
"type": "opencollective",
|
| 2036 |
-
"url": "https://opencollective.com/unified"
|
| 2037 |
-
}
|
| 2038 |
-
},
|
| 2039 |
-
"node_modules/hast-util-from-parse5/node_modules/hastscript": {
|
| 2040 |
-
"version": "9.0.1",
|
| 2041 |
-
"resolved": "https://registry.npmjs.org/hastscript/-/hastscript-9.0.1.tgz",
|
| 2042 |
-
"integrity": "sha512-g7df9rMFX/SPi34tyGCyUBREQoKkapwdY/T04Qn9TDWfHhAYt4/I0gMVirzK5wEzeUqIjEB+LXC/ypb7Aqno5w==",
|
| 2043 |
-
"license": "MIT",
|
| 2044 |
-
"dependencies": {
|
| 2045 |
-
"@types/hast": "^3.0.0",
|
| 2046 |
-
"comma-separated-tokens": "^2.0.0",
|
| 2047 |
-
"hast-util-parse-selector": "^4.0.0",
|
| 2048 |
-
"property-information": "^7.0.0",
|
| 2049 |
-
"space-separated-tokens": "^2.0.0"
|
| 2050 |
-
},
|
| 2051 |
-
"funding": {
|
| 2052 |
-
"type": "opencollective",
|
| 2053 |
-
"url": "https://opencollective.com/unified"
|
| 2054 |
-
}
|
| 2055 |
-
},
|
| 2056 |
-
"node_modules/hast-util-is-element": {
|
| 2057 |
-
"version": "3.0.0",
|
| 2058 |
-
"resolved": "https://registry.npmjs.org/hast-util-is-element/-/hast-util-is-element-3.0.0.tgz",
|
| 2059 |
-
"integrity": "sha512-Val9mnv2IWpLbNPqc/pUem+a7Ipj2aHacCwgNfTiK0vJKl0LF+4Ba4+v1oPHFpf3bLYmreq0/l3Gud9S5OH42g==",
|
| 2060 |
-
"license": "MIT",
|
| 2061 |
-
"dependencies": {
|
| 2062 |
-
"@types/hast": "^3.0.0"
|
| 2063 |
-
},
|
| 2064 |
-
"funding": {
|
| 2065 |
-
"type": "opencollective",
|
| 2066 |
-
"url": "https://opencollective.com/unified"
|
| 2067 |
-
}
|
| 2068 |
-
},
|
| 2069 |
"node_modules/hast-util-parse-selector": {
|
| 2070 |
"version": "2.2.5",
|
| 2071 |
"resolved": "https://registry.npmjs.org/hast-util-parse-selector/-/hast-util-parse-selector-2.2.5.tgz",
|
|
@@ -2103,22 +1931,6 @@
|
|
| 2103 |
"url": "https://opencollective.com/unified"
|
| 2104 |
}
|
| 2105 |
},
|
| 2106 |
-
"node_modules/hast-util-to-text": {
|
| 2107 |
-
"version": "4.0.2",
|
| 2108 |
-
"resolved": "https://registry.npmjs.org/hast-util-to-text/-/hast-util-to-text-4.0.2.tgz",
|
| 2109 |
-
"integrity": "sha512-KK6y/BN8lbaq654j7JgBydev7wuNMcID54lkRav1P0CaE1e47P72AWWPiGKXTJU271ooYzcvTAn/Zt0REnvc7A==",
|
| 2110 |
-
"license": "MIT",
|
| 2111 |
-
"dependencies": {
|
| 2112 |
-
"@types/hast": "^3.0.0",
|
| 2113 |
-
"@types/unist": "^3.0.0",
|
| 2114 |
-
"hast-util-is-element": "^3.0.0",
|
| 2115 |
-
"unist-util-find-after": "^5.0.0"
|
| 2116 |
-
},
|
| 2117 |
-
"funding": {
|
| 2118 |
-
"type": "opencollective",
|
| 2119 |
-
"url": "https://opencollective.com/unified"
|
| 2120 |
-
}
|
| 2121 |
-
},
|
| 2122 |
"node_modules/hast-util-whitespace": {
|
| 2123 |
"version": "3.0.0",
|
| 2124 |
"resolved": "https://registry.npmjs.org/hast-util-whitespace/-/hast-util-whitespace-3.0.0.tgz",
|
|
@@ -2316,22 +2128,6 @@
|
|
| 2316 |
"node": ">=6"
|
| 2317 |
}
|
| 2318 |
},
|
| 2319 |
-
"node_modules/katex": {
|
| 2320 |
-
"version": "0.16.27",
|
| 2321 |
-
"resolved": "https://registry.npmjs.org/katex/-/katex-0.16.27.tgz",
|
| 2322 |
-
"integrity": "sha512-aeQoDkuRWSqQN6nSvVCEFvfXdqo1OQiCmmW1kc9xSdjutPv7BGO7pqY9sQRJpMOGrEdfDgF2TfRXe5eUAD2Waw==",
|
| 2323 |
-
"funding": [
|
| 2324 |
-
"https://opencollective.com/katex",
|
| 2325 |
-
"https://github.com/sponsors/katex"
|
| 2326 |
-
],
|
| 2327 |
-
"license": "MIT",
|
| 2328 |
-
"dependencies": {
|
| 2329 |
-
"commander": "^8.3.0"
|
| 2330 |
-
},
|
| 2331 |
-
"bin": {
|
| 2332 |
-
"katex": "cli.js"
|
| 2333 |
-
}
|
| 2334 |
-
},
|
| 2335 |
"node_modules/longest-streak": {
|
| 2336 |
"version": "3.1.0",
|
| 2337 |
"resolved": "https://registry.npmjs.org/longest-streak/-/longest-streak-3.1.0.tgz",
|
|
@@ -2580,25 +2376,6 @@
|
|
| 2580 |
"url": "https://opencollective.com/unified"
|
| 2581 |
}
|
| 2582 |
},
|
| 2583 |
-
"node_modules/mdast-util-math": {
|
| 2584 |
-
"version": "3.0.0",
|
| 2585 |
-
"resolved": "https://registry.npmjs.org/mdast-util-math/-/mdast-util-math-3.0.0.tgz",
|
| 2586 |
-
"integrity": "sha512-Tl9GBNeG/AhJnQM221bJR2HPvLOSnLE/T9cJI9tlc6zwQk2nPk/4f0cHkOdEixQPC/j8UtKDdITswvLAy1OZ1w==",
|
| 2587 |
-
"license": "MIT",
|
| 2588 |
-
"dependencies": {
|
| 2589 |
-
"@types/hast": "^3.0.0",
|
| 2590 |
-
"@types/mdast": "^4.0.0",
|
| 2591 |
-
"devlop": "^1.0.0",
|
| 2592 |
-
"longest-streak": "^3.0.0",
|
| 2593 |
-
"mdast-util-from-markdown": "^2.0.0",
|
| 2594 |
-
"mdast-util-to-markdown": "^2.1.0",
|
| 2595 |
-
"unist-util-remove-position": "^5.0.0"
|
| 2596 |
-
},
|
| 2597 |
-
"funding": {
|
| 2598 |
-
"type": "opencollective",
|
| 2599 |
-
"url": "https://opencollective.com/unified"
|
| 2600 |
-
}
|
| 2601 |
-
},
|
| 2602 |
"node_modules/mdast-util-mdx-expression": {
|
| 2603 |
"version": "2.0.1",
|
| 2604 |
"resolved": "https://registry.npmjs.org/mdast-util-mdx-expression/-/mdast-util-mdx-expression-2.0.1.tgz",
|
|
@@ -2924,25 +2701,6 @@
|
|
| 2924 |
"url": "https://opencollective.com/unified"
|
| 2925 |
}
|
| 2926 |
},
|
| 2927 |
-
"node_modules/micromark-extension-math": {
|
| 2928 |
-
"version": "3.1.0",
|
| 2929 |
-
"resolved": "https://registry.npmjs.org/micromark-extension-math/-/micromark-extension-math-3.1.0.tgz",
|
| 2930 |
-
"integrity": "sha512-lvEqd+fHjATVs+2v/8kg9i5Q0AP2k85H0WUOwpIVvUML8BapsMvh1XAogmQjOCsLpoKRCVQqEkQBB3NhVBcsOg==",
|
| 2931 |
-
"license": "MIT",
|
| 2932 |
-
"dependencies": {
|
| 2933 |
-
"@types/katex": "^0.16.0",
|
| 2934 |
-
"devlop": "^1.0.0",
|
| 2935 |
-
"katex": "^0.16.0",
|
| 2936 |
-
"micromark-factory-space": "^2.0.0",
|
| 2937 |
-
"micromark-util-character": "^2.0.0",
|
| 2938 |
-
"micromark-util-symbol": "^2.0.0",
|
| 2939 |
-
"micromark-util-types": "^2.0.0"
|
| 2940 |
-
},
|
| 2941 |
-
"funding": {
|
| 2942 |
-
"type": "opencollective",
|
| 2943 |
-
"url": "https://opencollective.com/unified"
|
| 2944 |
-
}
|
| 2945 |
-
},
|
| 2946 |
"node_modules/micromark-factory-destination": {
|
| 2947 |
"version": "2.0.1",
|
| 2948 |
"resolved": "https://registry.npmjs.org/micromark-factory-destination/-/micromark-factory-destination-2.0.1.tgz",
|
|
@@ -3433,18 +3191,6 @@
|
|
| 3433 |
"integrity": "sha512-CmBKiL6NNo/OqgmMn95Fk9Whlp2mtvIv+KNpQKN2F4SjvrEesubTRWGYSg+BnWZOnlCaSTU1sMpsBOzgbYhnsA==",
|
| 3434 |
"license": "MIT"
|
| 3435 |
},
|
| 3436 |
-
"node_modules/parse5": {
|
| 3437 |
-
"version": "7.3.0",
|
| 3438 |
-
"resolved": "https://registry.npmjs.org/parse5/-/parse5-7.3.0.tgz",
|
| 3439 |
-
"integrity": "sha512-IInvU7fabl34qmi9gY8XOVxhYyMyuH2xUNpb2q8/Y+7552KlejkRvqvD19nMoUW/uQGGbqNpA6Tufu5FL5BZgw==",
|
| 3440 |
-
"license": "MIT",
|
| 3441 |
-
"dependencies": {
|
| 3442 |
-
"entities": "^6.0.0"
|
| 3443 |
-
},
|
| 3444 |
-
"funding": {
|
| 3445 |
-
"url": "https://github.com/inikulin/parse5?sponsor=1"
|
| 3446 |
-
}
|
| 3447 |
-
},
|
| 3448 |
"node_modules/path-scurry": {
|
| 3449 |
"version": "2.0.1",
|
| 3450 |
"resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-2.0.1.tgz",
|
|
@@ -3726,25 +3472,6 @@
|
|
| 3726 |
"node": ">=6"
|
| 3727 |
}
|
| 3728 |
},
|
| 3729 |
-
"node_modules/rehype-katex": {
|
| 3730 |
-
"version": "7.0.1",
|
| 3731 |
-
"resolved": "https://registry.npmjs.org/rehype-katex/-/rehype-katex-7.0.1.tgz",
|
| 3732 |
-
"integrity": "sha512-OiM2wrZ/wuhKkigASodFoo8wimG3H12LWQaH8qSPVJn9apWKFSH3YOCtbKpBorTVw/eI7cuT21XBbvwEswbIOA==",
|
| 3733 |
-
"license": "MIT",
|
| 3734 |
-
"dependencies": {
|
| 3735 |
-
"@types/hast": "^3.0.0",
|
| 3736 |
-
"@types/katex": "^0.16.0",
|
| 3737 |
-
"hast-util-from-html-isomorphic": "^2.0.0",
|
| 3738 |
-
"hast-util-to-text": "^4.0.0",
|
| 3739 |
-
"katex": "^0.16.0",
|
| 3740 |
-
"unist-util-visit-parents": "^6.0.0",
|
| 3741 |
-
"vfile": "^6.0.0"
|
| 3742 |
-
},
|
| 3743 |
-
"funding": {
|
| 3744 |
-
"type": "opencollective",
|
| 3745 |
-
"url": "https://opencollective.com/unified"
|
| 3746 |
-
}
|
| 3747 |
-
},
|
| 3748 |
"node_modules/remark-gfm": {
|
| 3749 |
"version": "4.0.1",
|
| 3750 |
"resolved": "https://registry.npmjs.org/remark-gfm/-/remark-gfm-4.0.1.tgz",
|
|
@@ -3763,22 +3490,6 @@
|
|
| 3763 |
"url": "https://opencollective.com/unified"
|
| 3764 |
}
|
| 3765 |
},
|
| 3766 |
-
"node_modules/remark-math": {
|
| 3767 |
-
"version": "6.0.0",
|
| 3768 |
-
"resolved": "https://registry.npmjs.org/remark-math/-/remark-math-6.0.0.tgz",
|
| 3769 |
-
"integrity": "sha512-MMqgnP74Igy+S3WwnhQ7kqGlEerTETXMvJhrUzDikVZ2/uogJCb+WHUg97hK9/jcfc0dkD73s3LN8zU49cTEtA==",
|
| 3770 |
-
"license": "MIT",
|
| 3771 |
-
"dependencies": {
|
| 3772 |
-
"@types/mdast": "^4.0.0",
|
| 3773 |
-
"mdast-util-math": "^3.0.0",
|
| 3774 |
-
"micromark-extension-math": "^3.0.0",
|
| 3775 |
-
"unified": "^11.0.0"
|
| 3776 |
-
},
|
| 3777 |
-
"funding": {
|
| 3778 |
-
"type": "opencollective",
|
| 3779 |
-
"url": "https://opencollective.com/unified"
|
| 3780 |
-
}
|
| 3781 |
-
},
|
| 3782 |
"node_modules/remark-parse": {
|
| 3783 |
"version": "11.0.0",
|
| 3784 |
"resolved": "https://registry.npmjs.org/remark-parse/-/remark-parse-11.0.0.tgz",
|
|
@@ -4035,20 +3746,6 @@
|
|
| 4035 |
"url": "https://opencollective.com/unified"
|
| 4036 |
}
|
| 4037 |
},
|
| 4038 |
-
"node_modules/unist-util-find-after": {
|
| 4039 |
-
"version": "5.0.0",
|
| 4040 |
-
"resolved": "https://registry.npmjs.org/unist-util-find-after/-/unist-util-find-after-5.0.0.tgz",
|
| 4041 |
-
"integrity": "sha512-amQa0Ep2m6hE2g72AugUItjbuM8X8cGQnFoHk0pGfrFeT9GZhzN5SW8nRsiGKK7Aif4CrACPENkA6P/Lw6fHGQ==",
|
| 4042 |
-
"license": "MIT",
|
| 4043 |
-
"dependencies": {
|
| 4044 |
-
"@types/unist": "^3.0.0",
|
| 4045 |
-
"unist-util-is": "^6.0.0"
|
| 4046 |
-
},
|
| 4047 |
-
"funding": {
|
| 4048 |
-
"type": "opencollective",
|
| 4049 |
-
"url": "https://opencollective.com/unified"
|
| 4050 |
-
}
|
| 4051 |
-
},
|
| 4052 |
"node_modules/unist-util-is": {
|
| 4053 |
"version": "6.0.1",
|
| 4054 |
"resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-6.0.1.tgz",
|
|
@@ -4075,20 +3772,6 @@
|
|
| 4075 |
"url": "https://opencollective.com/unified"
|
| 4076 |
}
|
| 4077 |
},
|
| 4078 |
-
"node_modules/unist-util-remove-position": {
|
| 4079 |
-
"version": "5.0.0",
|
| 4080 |
-
"resolved": "https://registry.npmjs.org/unist-util-remove-position/-/unist-util-remove-position-5.0.0.tgz",
|
| 4081 |
-
"integrity": "sha512-Hp5Kh3wLxv0PHj9m2yZhhLt58KzPtEYKQQ4yxfYFEO7EvHwzyDYnduhHnY1mDxoqr7VUwVuHXk9RXKIiYS1N8Q==",
|
| 4082 |
-
"license": "MIT",
|
| 4083 |
-
"dependencies": {
|
| 4084 |
-
"@types/unist": "^3.0.0",
|
| 4085 |
-
"unist-util-visit": "^5.0.0"
|
| 4086 |
-
},
|
| 4087 |
-
"funding": {
|
| 4088 |
-
"type": "opencollective",
|
| 4089 |
-
"url": "https://opencollective.com/unified"
|
| 4090 |
-
}
|
| 4091 |
-
},
|
| 4092 |
"node_modules/unist-util-stringify-position": {
|
| 4093 |
"version": "4.0.0",
|
| 4094 |
"resolved": "https://registry.npmjs.org/unist-util-stringify-position/-/unist-util-stringify-position-4.0.0.tgz",
|
|
@@ -4176,20 +3859,6 @@
|
|
| 4176 |
"url": "https://opencollective.com/unified"
|
| 4177 |
}
|
| 4178 |
},
|
| 4179 |
-
"node_modules/vfile-location": {
|
| 4180 |
-
"version": "5.0.3",
|
| 4181 |
-
"resolved": "https://registry.npmjs.org/vfile-location/-/vfile-location-5.0.3.tgz",
|
| 4182 |
-
"integrity": "sha512-5yXvWDEgqeiYiBe1lbxYF7UMAIm/IcopxMHrMQDq3nvKcjPKIhZklUKL+AE7J7uApI4kwe2snsK+eI6UTj9EHg==",
|
| 4183 |
-
"license": "MIT",
|
| 4184 |
-
"dependencies": {
|
| 4185 |
-
"@types/unist": "^3.0.0",
|
| 4186 |
-
"vfile": "^6.0.0"
|
| 4187 |
-
},
|
| 4188 |
-
"funding": {
|
| 4189 |
-
"type": "opencollective",
|
| 4190 |
-
"url": "https://opencollective.com/unified"
|
| 4191 |
-
}
|
| 4192 |
-
},
|
| 4193 |
"node_modules/vfile-message": {
|
| 4194 |
"version": "4.0.3",
|
| 4195 |
"resolved": "https://registry.npmjs.org/vfile-message/-/vfile-message-4.0.3.tgz",
|
|
@@ -4264,16 +3933,6 @@
|
|
| 4264 |
}
|
| 4265 |
}
|
| 4266 |
},
|
| 4267 |
-
"node_modules/web-namespaces": {
|
| 4268 |
-
"version": "2.0.1",
|
| 4269 |
-
"resolved": "https://registry.npmjs.org/web-namespaces/-/web-namespaces-2.0.1.tgz",
|
| 4270 |
-
"integrity": "sha512-bKr1DkiNa2krS7qxNtdrtHAmzuYGFQLiQ13TsorsdT6ULTkPLKuu5+GsFpDlg6JFjUTwX2DyhMPG2be8uPrqsQ==",
|
| 4271 |
-
"license": "MIT",
|
| 4272 |
-
"funding": {
|
| 4273 |
-
"type": "github",
|
| 4274 |
-
"url": "https://github.com/sponsors/wooorm"
|
| 4275 |
-
}
|
| 4276 |
-
},
|
| 4277 |
"node_modules/wicked-good-xpath": {
|
| 4278 |
"version": "1.3.0",
|
| 4279 |
"resolved": "https://registry.npmjs.org/wicked-good-xpath/-/wicked-good-xpath-1.3.0.tgz",
|
|
|
|
| 10 |
"dependencies": {
|
| 11 |
"axios": "^1.6.2",
|
| 12 |
"better-react-mathjax": "^2.4.0-beta-1",
|
|
|
|
| 13 |
"react": "^18.2.0",
|
| 14 |
"react-dom": "^18.2.0",
|
| 15 |
"react-markdown": "^9.0.1",
|
| 16 |
"react-syntax-highlighter": "^15.5.0",
|
| 17 |
+
"remark-gfm": "^4.0.1"
|
|
|
|
|
|
|
| 18 |
},
|
| 19 |
"devDependencies": {
|
| 20 |
"@types/react": "^18.2.43",
|
|
|
|
| 1189 |
"@types/unist": "*"
|
| 1190 |
}
|
| 1191 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1192 |
"node_modules/@types/mdast": {
|
| 1193 |
"version": "4.0.4",
|
| 1194 |
"resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-4.0.4.tgz",
|
|
|
|
| 1472 |
"url": "https://github.com/sponsors/wooorm"
|
| 1473 |
}
|
| 1474 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1475 |
"node_modules/convert-source-map": {
|
| 1476 |
"version": "2.0.0",
|
| 1477 |
"resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz",
|
|
|
|
| 1567 |
"dev": true,
|
| 1568 |
"license": "ISC"
|
| 1569 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1570 |
"node_modules/es-define-property": {
|
| 1571 |
"version": "1.0.1",
|
| 1572 |
"resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz",
|
|
|
|
| 1894 |
"node": ">= 0.4"
|
| 1895 |
}
|
| 1896 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1897 |
"node_modules/hast-util-parse-selector": {
|
| 1898 |
"version": "2.2.5",
|
| 1899 |
"resolved": "https://registry.npmjs.org/hast-util-parse-selector/-/hast-util-parse-selector-2.2.5.tgz",
|
|
|
|
| 1931 |
"url": "https://opencollective.com/unified"
|
| 1932 |
}
|
| 1933 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1934 |
"node_modules/hast-util-whitespace": {
|
| 1935 |
"version": "3.0.0",
|
| 1936 |
"resolved": "https://registry.npmjs.org/hast-util-whitespace/-/hast-util-whitespace-3.0.0.tgz",
|
|
|
|
| 2128 |
"node": ">=6"
|
| 2129 |
}
|
| 2130 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2131 |
"node_modules/longest-streak": {
|
| 2132 |
"version": "3.1.0",
|
| 2133 |
"resolved": "https://registry.npmjs.org/longest-streak/-/longest-streak-3.1.0.tgz",
|
|
|
|
| 2376 |
"url": "https://opencollective.com/unified"
|
| 2377 |
}
|
| 2378 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2379 |
"node_modules/mdast-util-mdx-expression": {
|
| 2380 |
"version": "2.0.1",
|
| 2381 |
"resolved": "https://registry.npmjs.org/mdast-util-mdx-expression/-/mdast-util-mdx-expression-2.0.1.tgz",
|
|
|
|
| 2701 |
"url": "https://opencollective.com/unified"
|
| 2702 |
}
|
| 2703 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2704 |
"node_modules/micromark-factory-destination": {
|
| 2705 |
"version": "2.0.1",
|
| 2706 |
"resolved": "https://registry.npmjs.org/micromark-factory-destination/-/micromark-factory-destination-2.0.1.tgz",
|
|
|
|
| 3191 |
"integrity": "sha512-CmBKiL6NNo/OqgmMn95Fk9Whlp2mtvIv+KNpQKN2F4SjvrEesubTRWGYSg+BnWZOnlCaSTU1sMpsBOzgbYhnsA==",
|
| 3192 |
"license": "MIT"
|
| 3193 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3194 |
"node_modules/path-scurry": {
|
| 3195 |
"version": "2.0.1",
|
| 3196 |
"resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-2.0.1.tgz",
|
|
|
|
| 3472 |
"node": ">=6"
|
| 3473 |
}
|
| 3474 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3475 |
"node_modules/remark-gfm": {
|
| 3476 |
"version": "4.0.1",
|
| 3477 |
"resolved": "https://registry.npmjs.org/remark-gfm/-/remark-gfm-4.0.1.tgz",
|
|
|
|
| 3490 |
"url": "https://opencollective.com/unified"
|
| 3491 |
}
|
| 3492 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3493 |
"node_modules/remark-parse": {
|
| 3494 |
"version": "11.0.0",
|
| 3495 |
"resolved": "https://registry.npmjs.org/remark-parse/-/remark-parse-11.0.0.tgz",
|
|
|
|
| 3746 |
"url": "https://opencollective.com/unified"
|
| 3747 |
}
|
| 3748 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3749 |
"node_modules/unist-util-is": {
|
| 3750 |
"version": "6.0.1",
|
| 3751 |
"resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-6.0.1.tgz",
|
|
|
|
| 3772 |
"url": "https://opencollective.com/unified"
|
| 3773 |
}
|
| 3774 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3775 |
"node_modules/unist-util-stringify-position": {
|
| 3776 |
"version": "4.0.0",
|
| 3777 |
"resolved": "https://registry.npmjs.org/unist-util-stringify-position/-/unist-util-stringify-position-4.0.0.tgz",
|
|
|
|
| 3859 |
"url": "https://opencollective.com/unified"
|
| 3860 |
}
|
| 3861 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3862 |
"node_modules/vfile-message": {
|
| 3863 |
"version": "4.0.3",
|
| 3864 |
"resolved": "https://registry.npmjs.org/vfile-message/-/vfile-message-4.0.3.tgz",
|
|
|
|
| 3933 |
}
|
| 3934 |
}
|
| 3935 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3936 |
"node_modules/wicked-good-xpath": {
|
| 3937 |
"version": "1.3.0",
|
| 3938 |
"resolved": "https://registry.npmjs.org/wicked-good-xpath/-/wicked-good-xpath-1.3.0.tgz",
|
web/package.json
CHANGED
|
@@ -11,14 +11,11 @@
|
|
| 11 |
"dependencies": {
|
| 12 |
"axios": "^1.6.2",
|
| 13 |
"better-react-mathjax": "^2.4.0-beta-1",
|
| 14 |
-
"katex": "^0.16.27",
|
| 15 |
"react": "^18.2.0",
|
| 16 |
"react-dom": "^18.2.0",
|
| 17 |
"react-markdown": "^9.0.1",
|
| 18 |
"react-syntax-highlighter": "^15.5.0",
|
| 19 |
-
"
|
| 20 |
-
"remark-gfm": "^4.0.1",
|
| 21 |
-
"remark-math": "^6.0.0"
|
| 22 |
},
|
| 23 |
"devDependencies": {
|
| 24 |
"@types/react": "^18.2.43",
|
|
|
|
| 11 |
"dependencies": {
|
| 12 |
"axios": "^1.6.2",
|
| 13 |
"better-react-mathjax": "^2.4.0-beta-1",
|
|
|
|
| 14 |
"react": "^18.2.0",
|
| 15 |
"react-dom": "^18.2.0",
|
| 16 |
"react-markdown": "^9.0.1",
|
| 17 |
"react-syntax-highlighter": "^15.5.0",
|
| 18 |
+
"remark-gfm": "^4.0.1"
|
|
|
|
|
|
|
| 19 |
},
|
| 20 |
"devDependencies": {
|
| 21 |
"@types/react": "^18.2.43",
|
web/src/App.tsx
CHANGED
|
@@ -286,9 +286,17 @@ function App() {
|
|
| 286 |
});
|
| 287 |
|
| 288 |
if (response.ok) {
|
| 289 |
-
|
| 290 |
-
|
| 291 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 292 |
} else {
|
| 293 |
localStorage.removeItem('session_id');
|
| 294 |
setSessionId(null);
|
|
|
|
| 286 |
});
|
| 287 |
|
| 288 |
if (response.ok) {
|
| 289 |
+
// Check if response has content before parsing
|
| 290 |
+
const text = await response.text();
|
| 291 |
+
if (text) {
|
| 292 |
+
const data = JSON.parse(text);
|
| 293 |
+
setUser(data.user);
|
| 294 |
+
setIsAuthenticated(true);
|
| 295 |
+
} else {
|
| 296 |
+
console.warn('Empty response from auth verification');
|
| 297 |
+
localStorage.removeItem('session_id');
|
| 298 |
+
setSessionId(null);
|
| 299 |
+
}
|
| 300 |
} else {
|
| 301 |
localStorage.removeItem('session_id');
|
| 302 |
setSessionId(null);
|
web/vite.config.ts
CHANGED
|
@@ -4,10 +4,10 @@ import react from '@vitejs/plugin-react';
|
|
| 4 |
export default defineConfig({
|
| 5 |
plugins: [react()],
|
| 6 |
server: {
|
| 7 |
-
port:
|
| 8 |
proxy: {
|
| 9 |
'/api': {
|
| 10 |
-
target: 'http://localhost:
|
| 11 |
changeOrigin: true,
|
| 12 |
},
|
| 13 |
},
|
|
|
|
| 4 |
export default defineConfig({
|
| 5 |
plugins: [react()],
|
| 6 |
server: {
|
| 7 |
+
port: 5173,
|
| 8 |
proxy: {
|
| 9 |
'/api': {
|
| 10 |
+
target: 'http://localhost:3000',
|
| 11 |
changeOrigin: true,
|
| 12 |
},
|
| 13 |
},
|