提交 2636972b authored 作者: 王鹏飞's avatar 王鹏飞

chore: update

上级 1b3cb1c4
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
"version": "0.0.0", "version": "0.0.0",
"dependencies": { "dependencies": {
"@ant-design/charts": "^2.2.7", "@ant-design/charts": "^2.2.7",
"@ant-design/icons": "^5.6.1", "@ant-design/icons": "^6.0.0",
"@antv/g2": "^5.2.12", "@antv/g2": "^5.2.12",
"@dnd-kit/core": "^6.3.1", "@dnd-kit/core": "^6.3.1",
"@dnd-kit/modifiers": "^9.0.0", "@dnd-kit/modifiers": "^9.0.0",
...@@ -18,16 +18,15 @@ ...@@ -18,16 +18,15 @@
"@fortaine/fetch-event-source": "^3.0.6", "@fortaine/fetch-event-source": "^3.0.6",
"@tanstack/react-query": "^5.69.0", "@tanstack/react-query": "^5.69.0",
"@tanstack/react-query-devtools": "^5.69.0", "@tanstack/react-query-devtools": "^5.69.0",
"antd": "^5.24.4", "antd": "^5.24.5",
"axios": "^1.8.4", "axios": "^1.8.4",
"blueimp-md5": "^2.19.0", "blueimp-md5": "^2.19.0",
"lodash-es": "^4.17.21", "lodash-es": "^4.17.21",
"lucide-react": "^0.477.0", "lucide-react": "^0.484.0",
"openai": "^4.87.3",
"react": "^18.3.1", "react": "^18.3.1",
"react-dom": "^18.3.1", "react-dom": "^18.3.1",
"react-markdown": "^10.0.0", "react-markdown": "^10.1.0",
"react-router": "^7.3.0", "react-router": "^7.4.0",
"react-syntax-highlighter": "^15.6.1", "react-syntax-highlighter": "^15.6.1",
"remark-gfm": "^4.0.1", "remark-gfm": "^4.0.1",
"xlsx": "https://cdn.sheetjs.com/xlsx-0.20.3/xlsx-0.20.3.tgz", "xlsx": "https://cdn.sheetjs.com/xlsx-0.20.3/xlsx-0.20.3.tgz",
...@@ -47,7 +46,7 @@ ...@@ -47,7 +46,7 @@
"eslint-plugin-react-refresh": "^0.4.19", "eslint-plugin-react-refresh": "^0.4.19",
"sass-embedded": "^1.85.1", "sass-embedded": "^1.85.1",
"typescript": "^5.2.2", "typescript": "^5.2.2",
"vite": "^6.2.2", "vite": "^6.2.3",
"vite-plugin-mkcert": "^1.17.8" "vite-plugin-mkcert": "^1.17.8"
} }
}, },
...@@ -157,16 +156,15 @@ ...@@ -157,16 +156,15 @@
} }
}, },
"node_modules/@ant-design/icons": { "node_modules/@ant-design/icons": {
"version": "5.6.1", "version": "6.0.0",
"resolved": "https://registry.npmjs.org/@ant-design/icons/-/icons-5.6.1.tgz", "resolved": "https://registry.npmjs.org/@ant-design/icons/-/icons-6.0.0.tgz",
"integrity": "sha512-0/xS39c91WjPAZOWsvi1//zjx6kAp4kxWwctR6kuU6p133w8RU0D2dSCvZC19uQyharg/sAvYxGYWl01BbZZfg==", "integrity": "sha512-o0aCCAlHc1o4CQcapAwWzHeaW2x9F49g7P3IDtvtNXgHowtRWYb7kiubt8sQPFvfVIVU/jLw2hzeSlNt0FU+Uw==",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@ant-design/colors": "^7.0.0", "@ant-design/colors": "^8.0.0",
"@ant-design/icons-svg": "^4.4.0", "@ant-design/icons-svg": "^4.4.0",
"@babel/runtime": "^7.24.8", "@rc-component/util": "^1.2.1",
"classnames": "^2.2.6", "classnames": "^2.2.6"
"rc-util": "^5.31.1"
}, },
"engines": { "engines": {
"node": ">=8" "node": ">=8"
...@@ -182,6 +180,24 @@ ...@@ -182,6 +180,24 @@
"integrity": "sha512-vHbT+zJEVzllwP+CM+ul7reTEfBR0vgxFe7+lREAsAA7YGsYpboiq2sQNeQeRvh09GfQgs/GyFEvZpJ9cLXpXA==", "integrity": "sha512-vHbT+zJEVzllwP+CM+ul7reTEfBR0vgxFe7+lREAsAA7YGsYpboiq2sQNeQeRvh09GfQgs/GyFEvZpJ9cLXpXA==",
"license": "MIT" "license": "MIT"
}, },
"node_modules/@ant-design/icons/node_modules/@ant-design/colors": {
"version": "8.0.0",
"resolved": "https://registry.npmjs.org/@ant-design/colors/-/colors-8.0.0.tgz",
"integrity": "sha512-6YzkKCw30EI/E9kHOIXsQDHmMvTllT8STzjMb4K2qzit33RW2pqCJP0sk+hidBntXxE+Vz4n1+RvCTfBw6OErw==",
"license": "MIT",
"dependencies": {
"@ant-design/fast-color": "^3.0.0"
}
},
"node_modules/@ant-design/icons/node_modules/@ant-design/fast-color": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/@ant-design/fast-color/-/fast-color-3.0.0.tgz",
"integrity": "sha512-eqvpP7xEDm2S7dUzl5srEQCBTXZMmY3ekf97zI+M2DHOYyKdJGH0qua0JACHTqbkRnD/KHFQP9J1uMJ/XWVzzA==",
"license": "MIT",
"engines": {
"node": ">=8.x"
}
},
"node_modules/@ant-design/plots": { "node_modules/@ant-design/plots": {
"version": "2.3.3", "version": "2.3.3",
"resolved": "https://registry.npmjs.org/@ant-design/plots/-/plots-2.3.3.tgz", "resolved": "https://registry.npmjs.org/@ant-design/plots/-/plots-2.3.3.tgz",
...@@ -1666,6 +1682,19 @@ ...@@ -1666,6 +1682,19 @@
"react-dom": ">=16.9.0" "react-dom": ">=16.9.0"
} }
}, },
"node_modules/@rc-component/util": {
"version": "1.2.1",
"resolved": "https://registry.npmjs.org/@rc-component/util/-/util-1.2.1.tgz",
"integrity": "sha512-AUVu6jO+lWjQnUOOECwu8iR0EdElQgWW5NBv5vP/Uf9dWbAX3udhMutRlkVXjuac2E40ghkFy+ve00mc/3Fymg==",
"license": "MIT",
"dependencies": {
"react-is": "^18.2.0"
},
"peerDependencies": {
"react": ">=18.0.0",
"react-dom": ">=18.0.0"
}
},
"node_modules/@rollup/rollup-android-arm-eabi": { "node_modules/@rollup/rollup-android-arm-eabi": {
"version": "4.34.9", "version": "4.34.9",
"resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.34.9.tgz", "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.34.9.tgz",
...@@ -2456,16 +2485,6 @@ ...@@ -2456,16 +2485,6 @@
"undici-types": "~6.20.0" "undici-types": "~6.20.0"
} }
}, },
"node_modules/@types/node-fetch": {
"version": "2.6.12",
"resolved": "https://registry.npmjs.org/@types/node-fetch/-/node-fetch-2.6.12.tgz",
"integrity": "sha512-8nneRWKCg3rMtF69nLQJnOYUcbafYeFSjqkw3jCRLsqkWFlHaoQrr5mXmofFGOx3DKn7UfmBMyov8ySvLRVldA==",
"license": "MIT",
"dependencies": {
"@types/node": "*",
"form-data": "^4.0.0"
}
},
"node_modules/@types/prop-types": { "node_modules/@types/prop-types": {
"version": "15.7.14", "version": "15.7.14",
"resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.14.tgz", "resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.14.tgz",
...@@ -2891,18 +2910,6 @@ ...@@ -2891,18 +2910,6 @@
"license": "Apache-2.0", "license": "Apache-2.0",
"peer": true "peer": true
}, },
"node_modules/abort-controller": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/abort-controller/-/abort-controller-3.0.0.tgz",
"integrity": "sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==",
"license": "MIT",
"dependencies": {
"event-target-shim": "^5.0.0"
},
"engines": {
"node": ">=6.5"
}
},
"node_modules/acorn": { "node_modules/acorn": {
"version": "8.14.1", "version": "8.14.1",
"resolved": "https://registry.npmjs.org/acorn/-/acorn-8.14.1.tgz", "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.14.1.tgz",
...@@ -2925,18 +2932,6 @@ ...@@ -2925,18 +2932,6 @@
"acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0"
} }
}, },
"node_modules/agentkeepalive": {
"version": "4.6.0",
"resolved": "https://registry.npmjs.org/agentkeepalive/-/agentkeepalive-4.6.0.tgz",
"integrity": "sha512-kja8j7PjmncONqaTsB8fQ+wE2mSU2DJ9D4XKoJ5PFWIdRMa6SLSN1ff4mOr4jCbfRSsxR4keIiySJU0N9T5hIQ==",
"license": "MIT",
"dependencies": {
"humanize-ms": "^1.2.1"
},
"engines": {
"node": ">= 8.0.0"
}
},
"node_modules/ajv": { "node_modules/ajv": {
"version": "6.12.6", "version": "6.12.6",
"resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz",
...@@ -3046,9 +3041,9 @@ ...@@ -3046,9 +3041,9 @@
} }
}, },
"node_modules/antd": { "node_modules/antd": {
"version": "5.24.4", "version": "5.24.5",
"resolved": "https://registry.npmjs.org/antd/-/antd-5.24.4.tgz", "resolved": "https://registry.npmjs.org/antd/-/antd-5.24.5.tgz",
"integrity": "sha512-s89666DcoWeekJFaIqbtz2vRlIvgPR28GuDYYGUpW1mVP08bV7HZAPBH5lFJKYNGKrN3dHbZGgRK5aNRD2iPHg==", "integrity": "sha512-1lAv/G+9ewQanyoAo3JumQmIlVxwo5QwWGb6QCHYc40Cq0NxC/EzITcjsgq1PSaTUpLkKq8A2l7Fjtu47vqQBg==",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@ant-design/colors": "^7.2.0", "@ant-design/colors": "^7.2.0",
...@@ -3073,7 +3068,7 @@ ...@@ -3073,7 +3068,7 @@
"rc-drawer": "~7.2.0", "rc-drawer": "~7.2.0",
"rc-dropdown": "~4.2.1", "rc-dropdown": "~4.2.1",
"rc-field-form": "~2.7.0", "rc-field-form": "~2.7.0",
"rc-image": "~7.11.0", "rc-image": "~7.11.1",
"rc-input": "~1.7.3", "rc-input": "~1.7.3",
"rc-input-number": "~9.4.0", "rc-input-number": "~9.4.0",
"rc-mentions": "~2.19.1", "rc-mentions": "~2.19.1",
...@@ -3110,6 +3105,26 @@ ...@@ -3110,6 +3105,26 @@
"react-dom": ">=16.9.0" "react-dom": ">=16.9.0"
} }
}, },
"node_modules/antd/node_modules/@ant-design/icons": {
"version": "5.6.1",
"resolved": "https://registry.npmjs.org/@ant-design/icons/-/icons-5.6.1.tgz",
"integrity": "sha512-0/xS39c91WjPAZOWsvi1//zjx6kAp4kxWwctR6kuU6p133w8RU0D2dSCvZC19uQyharg/sAvYxGYWl01BbZZfg==",
"license": "MIT",
"dependencies": {
"@ant-design/colors": "^7.0.0",
"@ant-design/icons-svg": "^4.4.0",
"@babel/runtime": "^7.24.8",
"classnames": "^2.2.6",
"rc-util": "^5.31.1"
},
"engines": {
"node": ">=8"
},
"peerDependencies": {
"react": ">=16.0.0",
"react-dom": ">=16.0.0"
}
},
"node_modules/argparse": { "node_modules/argparse": {
"version": "2.0.1", "version": "2.0.1",
"resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz",
...@@ -4691,15 +4706,6 @@ ...@@ -4691,15 +4706,6 @@
"node": ">=0.10.0" "node": ">=0.10.0"
} }
}, },
"node_modules/event-target-shim": {
"version": "5.0.1",
"resolved": "https://registry.npmjs.org/event-target-shim/-/event-target-shim-5.0.1.tgz",
"integrity": "sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ==",
"license": "MIT",
"engines": {
"node": ">=6"
}
},
"node_modules/eventemitter3": { "node_modules/eventemitter3": {
"version": "5.0.1", "version": "5.0.1",
"resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-5.0.1.tgz", "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-5.0.1.tgz",
...@@ -5033,12 +5039,6 @@ ...@@ -5033,12 +5039,6 @@
"node": ">= 6" "node": ">= 6"
} }
}, },
"node_modules/form-data-encoder": {
"version": "1.7.2",
"resolved": "https://registry.npmjs.org/form-data-encoder/-/form-data-encoder-1.7.2.tgz",
"integrity": "sha512-qfqtYan3rxrnCk1VYaA4H+Ms9xdpPqvLZa6xmMgFvhO32x7/3J/ExcTd6qpxM0vH2GdMI+poehyBZvqfMTto8A==",
"license": "MIT"
},
"node_modules/format": { "node_modules/format": {
"version": "0.2.2", "version": "0.2.2",
"resolved": "https://registry.npmjs.org/format/-/format-0.2.2.tgz", "resolved": "https://registry.npmjs.org/format/-/format-0.2.2.tgz",
...@@ -5047,19 +5047,6 @@ ...@@ -5047,19 +5047,6 @@
"node": ">=0.4.x" "node": ">=0.4.x"
} }
}, },
"node_modules/formdata-node": {
"version": "4.4.1",
"resolved": "https://registry.npmjs.org/formdata-node/-/formdata-node-4.4.1.tgz",
"integrity": "sha512-0iirZp3uVDjVGt9p49aTaqjk84TrglENEDuqfdlZQ1roC9CWlPk6Avf8EEnZNcAqPonwkG35x4n3ww/1THYAeQ==",
"license": "MIT",
"dependencies": {
"node-domexception": "1.0.0",
"web-streams-polyfill": "4.0.0-beta.3"
},
"engines": {
"node": ">= 12.20"
}
},
"node_modules/fs.realpath": { "node_modules/fs.realpath": {
"version": "1.0.0", "version": "1.0.0",
"resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz",
...@@ -5594,15 +5581,6 @@ ...@@ -5594,15 +5581,6 @@
"deprecated": "This package is unmaintained and vulnerable. Do not use it.", "deprecated": "This package is unmaintained and vulnerable. Do not use it.",
"license": "BSD" "license": "BSD"
}, },
"node_modules/humanize-ms": {
"version": "1.2.1",
"resolved": "https://registry.npmjs.org/humanize-ms/-/humanize-ms-1.2.1.tgz",
"integrity": "sha512-Fl70vYtsAFb/C06PTS9dZBo7ihau+Tu/DNCk/OyHhea07S+aeMWpFFkUaXRa8fI+ScZbEI8dfSxwY7gxZ9SAVQ==",
"license": "MIT",
"dependencies": {
"ms": "^2.0.0"
}
},
"node_modules/iconv-lite": { "node_modules/iconv-lite": {
"version": "0.6.3", "version": "0.6.3",
"resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz",
...@@ -6436,9 +6414,9 @@ ...@@ -6436,9 +6414,9 @@
} }
}, },
"node_modules/lucide-react": { "node_modules/lucide-react": {
"version": "0.477.0", "version": "0.484.0",
"resolved": "https://registry.npmjs.org/lucide-react/-/lucide-react-0.477.0.tgz", "resolved": "https://registry.npmjs.org/lucide-react/-/lucide-react-0.484.0.tgz",
"integrity": "sha512-yCf7aYxerFZAbd8jHJxjwe1j7jEMPptjnaOqdYeirFnEy85cNR3/L+o0I875CYFYya+eEVzZSbNuRk8BZPDpVw==", "integrity": "sha512-oZy8coK9kZzvqhSgfbGkPtTgyjpBvs3ukLgDPv14dSOZtBtboryWF5o8i3qen7QbGg7JhiJBz5mK1p8YoMZTLQ==",
"license": "ISC", "license": "ISC",
"peerDependencies": { "peerDependencies": {
"react": "^16.5.1 || ^17.0.0 || ^18.0.0 || ^19.0.0" "react": "^16.5.1 || ^17.0.0 || ^18.0.0 || ^19.0.0"
...@@ -7482,45 +7460,6 @@ ...@@ -7482,45 +7460,6 @@
"license": "MIT", "license": "MIT",
"peer": true "peer": true
}, },
"node_modules/node-domexception": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/node-domexception/-/node-domexception-1.0.0.tgz",
"integrity": "sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ==",
"funding": [
{
"type": "github",
"url": "https://github.com/sponsors/jimmywarting"
},
{
"type": "github",
"url": "https://paypal.me/jimmywarting"
}
],
"license": "MIT",
"engines": {
"node": ">=10.5.0"
}
},
"node_modules/node-fetch": {
"version": "2.7.0",
"resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz",
"integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==",
"license": "MIT",
"dependencies": {
"whatwg-url": "^5.0.0"
},
"engines": {
"node": "4.x || >=6.0.0"
},
"peerDependencies": {
"encoding": "^0.1.0"
},
"peerDependenciesMeta": {
"encoding": {
"optional": true
}
}
},
"node_modules/node-releases": { "node_modules/node-releases": {
"version": "2.0.19", "version": "2.0.19",
"resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.19.tgz", "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.19.tgz",
...@@ -7591,51 +7530,6 @@ ...@@ -7591,51 +7530,6 @@
"wrappy": "1" "wrappy": "1"
} }
}, },
"node_modules/openai": {
"version": "4.87.3",
"resolved": "https://registry.npmjs.org/openai/-/openai-4.87.3.tgz",
"integrity": "sha512-d2D54fzMuBYTxMW8wcNmhT1rYKcTfMJ8t+4KjH2KtvYenygITiGBgHoIrzHwnDQWW+C5oCA+ikIR2jgPCFqcKQ==",
"license": "Apache-2.0",
"dependencies": {
"@types/node": "^18.11.18",
"@types/node-fetch": "^2.6.4",
"abort-controller": "^3.0.0",
"agentkeepalive": "^4.2.1",
"form-data-encoder": "1.7.2",
"formdata-node": "^4.3.2",
"node-fetch": "^2.6.7"
},
"bin": {
"openai": "bin/cli"
},
"peerDependencies": {
"ws": "^8.18.0",
"zod": "^3.23.8"
},
"peerDependenciesMeta": {
"ws": {
"optional": true
},
"zod": {
"optional": true
}
}
},
"node_modules/openai/node_modules/@types/node": {
"version": "18.19.80",
"resolved": "https://registry.npmjs.org/@types/node/-/node-18.19.80.tgz",
"integrity": "sha512-kEWeMwMeIvxYkeg1gTc01awpwLbfMRZXdIhwRcakd/KlK53jmRC26LqcbIt7fnAQTu5GzlnWmzA3H6+l1u6xxQ==",
"license": "MIT",
"dependencies": {
"undici-types": "~5.26.4"
}
},
"node_modules/openai/node_modules/undici-types": {
"version": "5.26.5",
"resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz",
"integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==",
"license": "MIT"
},
"node_modules/optionator": { "node_modules/optionator": {
"version": "0.9.4", "version": "0.9.4",
"resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz", "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz",
...@@ -8063,9 +7957,9 @@ ...@@ -8063,9 +7957,9 @@
} }
}, },
"node_modules/rc-image": { "node_modules/rc-image": {
"version": "7.11.0", "version": "7.11.1",
"resolved": "https://registry.npmjs.org/rc-image/-/rc-image-7.11.0.tgz", "resolved": "https://registry.npmjs.org/rc-image/-/rc-image-7.11.1.tgz",
"integrity": "sha512-aZkTEZXqeqfPZtnSdNUnKQA0N/3MbgR7nUnZ+/4MfSFWPFHZau4p5r5ShaI0KPEMnNjv4kijSCFq/9wtJpwykw==", "integrity": "sha512-XuoWx4KUXg7hNy5mRTy1i8c8p3K8boWg6UajbHpDXS5AlRVucNfTi5YxTtPBTBzegxAZpvuLfh3emXFt6ybUdA==",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@babel/runtime": "^7.11.2", "@babel/runtime": "^7.11.2",
...@@ -8584,9 +8478,9 @@ ...@@ -8584,9 +8478,9 @@
"license": "MIT" "license": "MIT"
}, },
"node_modules/react-markdown": { "node_modules/react-markdown": {
"version": "10.0.0", "version": "10.1.0",
"resolved": "https://registry.npmjs.org/react-markdown/-/react-markdown-10.0.0.tgz", "resolved": "https://registry.npmjs.org/react-markdown/-/react-markdown-10.1.0.tgz",
"integrity": "sha512-4mTz7Sya/YQ1jYOrkwO73VcFdkFJ8L8I9ehCxdcV0XrClHyOJGKbBk5FR4OOOG+HnyKw5u+C/Aby9TwinCteYA==", "integrity": "sha512-qKxVopLT/TyA6BX3Ue5NwabOsAzm0Q7kAPwq6L+wWDwisYs7R8vZ0nRXqq6rkueboxpkjvLGU9fWifiX/ZZFxQ==",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@types/hast": "^3.0.0", "@types/hast": "^3.0.0",
...@@ -8611,9 +8505,9 @@ ...@@ -8611,9 +8505,9 @@
} }
}, },
"node_modules/react-router": { "node_modules/react-router": {
"version": "7.3.0", "version": "7.4.0",
"resolved": "https://registry.npmjs.org/react-router/-/react-router-7.3.0.tgz", "resolved": "https://registry.npmjs.org/react-router/-/react-router-7.4.0.tgz",
"integrity": "sha512-466f2W7HIWaNXTKM5nHTqNxLrHTyXybm7R0eBlVSt0k/u55tTCDO194OIx/NrYD4TS5SXKTNekXfT37kMKUjgw==", "integrity": "sha512-Y2g5ObjkvX3VFeVt+0CIPuYd9PpgqCslG7ASSIdN73LwA1nNWzcMLaoMRJfP3prZFI92svxFwbn7XkLJ+UPQ6A==",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@types/cookie": "^0.6.0", "@types/cookie": "^0.6.0",
...@@ -10330,12 +10224,6 @@ ...@@ -10330,12 +10224,6 @@
"integrity": "sha512-BiZS+C1OS8g/q2RRbJmy59xpyghNBqrr6k5L/uKBGRsTfxmu3ffiRnd8mlGPUVayg8pvfi5urfnu8TU7DVOkLQ==", "integrity": "sha512-BiZS+C1OS8g/q2RRbJmy59xpyghNBqrr6k5L/uKBGRsTfxmu3ffiRnd8mlGPUVayg8pvfi5urfnu8TU7DVOkLQ==",
"license": "MIT" "license": "MIT"
}, },
"node_modules/tr46": {
"version": "0.0.3",
"resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz",
"integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==",
"license": "MIT"
},
"node_modules/trim-lines": { "node_modules/trim-lines": {
"version": "3.0.1", "version": "3.0.1",
"resolved": "https://registry.npmjs.org/trim-lines/-/trim-lines-3.0.1.tgz", "resolved": "https://registry.npmjs.org/trim-lines/-/trim-lines-3.0.1.tgz",
...@@ -10709,9 +10597,9 @@ ...@@ -10709,9 +10597,9 @@
} }
}, },
"node_modules/vite": { "node_modules/vite": {
"version": "6.2.2", "version": "6.2.3",
"resolved": "https://registry.npmjs.org/vite/-/vite-6.2.2.tgz", "resolved": "https://registry.npmjs.org/vite/-/vite-6.2.3.tgz",
"integrity": "sha512-yW7PeMM+LkDzc7CgJuRLMW2Jz0FxMOsVJ8Lv3gpgW9WLcb9cTW+121UEr1hvmfR7w3SegR5ItvYyzVz1vxNJgQ==", "integrity": "sha512-IzwM54g4y9JA/xAeBPNaDXiBF8Jsgl3VBQ2YQ/wOY6fyW3xMdSoltIV3Bo59DErdqdE6RxUfv8W69DvUorE4Eg==",
"dev": true, "dev": true,
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
...@@ -10812,21 +10700,6 @@ ...@@ -10812,21 +10700,6 @@
"node": ">=10.13.0" "node": ">=10.13.0"
} }
}, },
"node_modules/web-streams-polyfill": {
"version": "4.0.0-beta.3",
"resolved": "https://registry.npmjs.org/web-streams-polyfill/-/web-streams-polyfill-4.0.0-beta.3.tgz",
"integrity": "sha512-QW95TCTaHmsYfHDybGMwO5IJIM93I/6vTRk+daHTWFPhwh+C8Cg7j7XyKrwrj8Ib6vYXe0ocYNrmzY4xAAN6ug==",
"license": "MIT",
"engines": {
"node": ">= 14"
}
},
"node_modules/webidl-conversions": {
"version": "3.0.1",
"resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz",
"integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==",
"license": "BSD-2-Clause"
},
"node_modules/webpack": { "node_modules/webpack": {
"version": "5.98.0", "version": "5.98.0",
"resolved": "https://registry.npmjs.org/webpack/-/webpack-5.98.0.tgz", "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.98.0.tgz",
...@@ -10908,16 +10781,6 @@ ...@@ -10908,16 +10781,6 @@
"node": ">=4.0" "node": ">=4.0"
} }
}, },
"node_modules/whatwg-url": {
"version": "5.0.0",
"resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz",
"integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==",
"license": "MIT",
"dependencies": {
"tr46": "~0.0.3",
"webidl-conversions": "^3.0.0"
}
},
"node_modules/which": { "node_modules/which": {
"version": "2.0.2", "version": "2.0.2",
"resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz",
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
}, },
"dependencies": { "dependencies": {
"@ant-design/charts": "^2.2.7", "@ant-design/charts": "^2.2.7",
"@ant-design/icons": "^5.6.1", "@ant-design/icons": "^6.0.0",
"@antv/g2": "^5.2.12", "@antv/g2": "^5.2.12",
"@dnd-kit/core": "^6.3.1", "@dnd-kit/core": "^6.3.1",
"@dnd-kit/modifiers": "^9.0.0", "@dnd-kit/modifiers": "^9.0.0",
...@@ -20,16 +20,15 @@ ...@@ -20,16 +20,15 @@
"@fortaine/fetch-event-source": "^3.0.6", "@fortaine/fetch-event-source": "^3.0.6",
"@tanstack/react-query": "^5.69.0", "@tanstack/react-query": "^5.69.0",
"@tanstack/react-query-devtools": "^5.69.0", "@tanstack/react-query-devtools": "^5.69.0",
"antd": "^5.24.4", "antd": "^5.24.5",
"axios": "^1.8.4", "axios": "^1.8.4",
"blueimp-md5": "^2.19.0", "blueimp-md5": "^2.19.0",
"lodash-es": "^4.17.21", "lodash-es": "^4.17.21",
"lucide-react": "^0.477.0", "lucide-react": "^0.484.0",
"openai": "^4.87.3",
"react": "^18.3.1", "react": "^18.3.1",
"react-dom": "^18.3.1", "react-dom": "^18.3.1",
"react-markdown": "^10.0.0", "react-markdown": "^10.1.0",
"react-router": "^7.3.0", "react-router": "^7.4.0",
"react-syntax-highlighter": "^15.6.1", "react-syntax-highlighter": "^15.6.1",
"remark-gfm": "^4.0.1", "remark-gfm": "^4.0.1",
"xlsx": "https://cdn.sheetjs.com/xlsx-0.20.3/xlsx-0.20.3.tgz", "xlsx": "https://cdn.sheetjs.com/xlsx-0.20.3/xlsx-0.20.3.tgz",
...@@ -49,7 +48,7 @@ ...@@ -49,7 +48,7 @@
"eslint-plugin-react-refresh": "^0.4.19", "eslint-plugin-react-refresh": "^0.4.19",
"sass-embedded": "^1.85.1", "sass-embedded": "^1.85.1",
"typescript": "^5.2.2", "typescript": "^5.2.2",
"vite": "^6.2.2", "vite": "^6.2.3",
"vite-plugin-mkcert": "^1.17.8" "vite-plugin-mkcert": "^1.17.8"
} }
} }
...@@ -27,17 +27,6 @@ export default function DataWrap({ ...@@ -27,17 +27,6 @@ export default function DataWrap({
} }
}) })
const Header = () => {
if (headerRender) return headerRender(data)
return (
<Flex justify="space-between" style={{ marginBottom: '20px' }}>
<Flex wrap gap={10}>
{buttons}
</Flex>
<ViewDataFiledButtonModal></ViewDataFiledButtonModal>
</Flex>
)
}
return ( return (
<Flex gap={20} style={{ height: '100%' }}> <Flex gap={20} style={{ height: '100%' }}>
<Card className="app-card" title={title} style={{ flex: 1, overflowX: 'hidden' }}> <Card className="app-card" title={title} style={{ flex: 1, overflowX: 'hidden' }}>
...@@ -45,7 +34,16 @@ export default function DataWrap({ ...@@ -45,7 +34,16 @@ export default function DataWrap({
empty empty
) : ( ) : (
<> <>
<Header /> {headerRender ? (
headerRender(data)
) : (
<Flex justify="space-between" style={{ marginBottom: '20px' }}>
<Flex wrap gap={10}>
{buttons}
</Flex>
<ViewDataFiledButtonModal></ViewDataFiledButtonModal>
</Flex>
)}
<DataRender rowKey={'pk_id'} loading={isPending} dataSource={data.list} columns={columns} /> <DataRender rowKey={'pk_id'} loading={isPending} dataSource={data.list} columns={columns} />
</> </>
)} )}
......
...@@ -358,7 +358,7 @@ json ...@@ -358,7 +358,7 @@ json
</div> </div>
))} ))}
</Form> </Form>
{step >= 3 && ( {current === 2 && step >= 3 && (
<Card style={{ marginTop: '20px' }}> <Card style={{ marginTop: '20px' }}>
<p>计算结束!</p> <p>计算结束!</p>
<p>计算结果如下:</p> <p>计算结果如下:</p>
......
...@@ -304,7 +304,7 @@ json ...@@ -304,7 +304,7 @@ json
</div> </div>
))} ))}
</Form> </Form>
{step >= 3 && ( {current === 2 && step >= 3 && (
<Card style={{ marginTop: '20px' }}> <Card style={{ marginTop: '20px' }}>
<p>计算结束!</p> <p>计算结束!</p>
<p>计算结果如下:</p> <p>计算结果如下:</p>
......
...@@ -292,7 +292,7 @@ json ...@@ -292,7 +292,7 @@ json
</div> </div>
))} ))}
</Form> </Form>
{step >= 3 && ( {current === 2 && step >= 3 && (
<Card style={{ marginTop: '20px' }}> <Card style={{ marginTop: '20px' }}>
<p>计算结束!</p> <p>计算结束!</p>
<p>计算结果如下:</p> <p>计算结果如下:</p>
......
...@@ -320,7 +320,7 @@ json ...@@ -320,7 +320,7 @@ json
</div> </div>
))} ))}
</Form> </Form>
{step >= 3 && ( {current === 2 && step >= 3 && (
<Card style={{ marginTop: '20px' }}> <Card style={{ marginTop: '20px' }}>
<p>计算结束!</p> <p>计算结束!</p>
<p>计算结果如下:</p> <p>计算结果如下:</p>
......
...@@ -271,7 +271,7 @@ json ...@@ -271,7 +271,7 @@ json
</div> </div>
))} ))}
</Form> </Form>
{step >= 3 && ( {current === 2 && step >= 3 && (
<Card style={{ marginTop: '20px' }}> <Card style={{ marginTop: '20px' }}>
<p>计算结束!</p> <p>计算结束!</p>
<p>计算结果如下:</p> <p>计算结果如下:</p>
......
...@@ -341,7 +341,7 @@ json ...@@ -341,7 +341,7 @@ json
</div> </div>
))} ))}
</Form> </Form>
{step >= 3 && ( {current === 2 && step >= 3 && (
<Card style={{ marginTop: '20px' }}> <Card style={{ marginTop: '20px' }}>
<p>计算结束!</p> <p>计算结束!</p>
<p>计算结果如下:</p> <p>计算结果如下:</p>
......
...@@ -300,7 +300,7 @@ json ...@@ -300,7 +300,7 @@ json
</div> </div>
))} ))}
</Form> </Form>
{step >= 3 && ( {current === 2 && step >= 3 && (
<Card style={{ marginTop: '20px' }}> <Card style={{ marginTop: '20px' }}>
<p>计算结束!</p> <p>计算结束!</p>
<p>计算结果如下:</p> <p>计算结果如下:</p>
......
...@@ -354,7 +354,7 @@ json ...@@ -354,7 +354,7 @@ json
</div> </div>
))} ))}
</Form> </Form>
{step >= 3 && ( {current === 2 && step >= 3 && (
<Card style={{ marginTop: '20px' }}> <Card style={{ marginTop: '20px' }}>
<p>计算结束!</p> <p>计算结束!</p>
<p>计算结果如下:</p> <p>计算结果如下:</p>
......
...@@ -309,7 +309,7 @@ json ...@@ -309,7 +309,7 @@ json
</div> </div>
))} ))}
</Form> </Form>
{step >= 3 && ( {current === 2 && step >= 3 && (
<Card style={{ marginTop: '20px' }}> <Card style={{ marginTop: '20px' }}>
<p>计算结束!</p> <p>计算结束!</p>
<p>计算结果如下:</p> <p>计算结果如下:</p>
......
...@@ -302,7 +302,7 @@ json ...@@ -302,7 +302,7 @@ json
</div> </div>
))} ))}
</Form> </Form>
{step >= 3 && ( {current === 2 && step >= 3 && (
<Card style={{ marginTop: '20px' }}> <Card style={{ marginTop: '20px' }}>
<p>计算结束!</p> <p>计算结束!</p>
<p>计算结果如下:</p> <p>计算结果如下:</p>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论