From e903cd8073e8b7ca6ee71a58612450d9e6ccbfca Mon Sep 17 00:00:00 2001 From: AkaraChen Date: Fri, 27 Dec 2024 14:31:50 +0800 Subject: [PATCH 1/2] fix: llm node --- web/package.json | 4 ++-- web/pnpm-lock.yaml | 20 ++++++++++++++++++-- 2 files changed, 20 insertions(+), 4 deletions(-) diff --git a/web/package.json b/web/package.json index 0dc8b5c0ee..9e5c025f74 100644 --- a/web/package.json +++ b/web/package.json @@ -67,7 +67,7 @@ "katex": "^0.16.11", "ky": "^1.7.2", "lamejs": "^1.2.1", - "lexical": "^0.16.0", + "lexical": "^0.18.0", "line-clamp": "^1.0.0", "lodash-es": "^4.17.21", "mermaid": "11.4.1", @@ -194,4 +194,4 @@ "eslint --fix" ] } -} \ No newline at end of file +} diff --git a/web/pnpm-lock.yaml b/web/pnpm-lock.yaml index cf94dde25c..e857736357 100644 --- a/web/pnpm-lock.yaml +++ b/web/pnpm-lock.yaml @@ -145,6 +145,9 @@ importers: lexical: specifier: ^0.18.0 version: 0.18.0 + line-clamp: + specifier: ^1.0.0 + version: 1.0.0 lodash-es: specifier: ^4.17.21 version: 4.17.21 @@ -266,10 +269,13 @@ importers: specifier: ^0.0.1 version: 0.0.1 sharp: - specifier: ^0.33.5 + specifier: ^0.33.2 version: 0.33.5 + shave: + specifier: ^5.0.4 + version: 5.0.4 sortablejs: - specifier: ^1.15.3 + specifier: ^1.15.0 version: 1.15.3 swr: specifier: ^2.1.0 @@ -5803,6 +5809,9 @@ packages: resolution: {integrity: sha512-eop+wDAvpItUys0FWkHIKeC9ybYrTGbU41U5K7+bttZZeohvnY7M9dZ5kB21GNWiFT2q1OoPTvncPCgSOVO5ow==} engines: {node: '>=14'} + line-clamp@1.0.0: + resolution: {integrity: sha512-dCDlvMj572RIRBQ3x9aIX0DTdt2St1bMdpi64jVTAi5vqBck7wf+J97//+J7+pS80rFJaYa8HiyXCTp0flpnBA==} + lines-and-columns@1.2.4: resolution: {integrity: sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==} @@ -7413,6 +7422,9 @@ packages: resolution: {integrity: sha512-haPVm1EkS9pgvHrQ/F3Xy+hgcuMV0Wm9vfIBSiwZ05k+xgb0PkBQpGsAA/oWdDobNaZTH5ppvHtzCFbnSEwHVw==} engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} + shave@5.0.4: + resolution: {integrity: sha512-AnvEI1wM2rQmrwCl364LVLLhzCzSHJ7DQmdd+fHJTnNzbD2mjsUAOcxWLLYKam7Q63skwyQf2CB2TCdJ2O5c8w==} + shebang-command@2.0.0: resolution: {integrity: sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==} engines: {node: '>=8'} @@ -15176,6 +15188,8 @@ snapshots: lilconfig@3.1.2: {} + line-clamp@1.0.0: {} + lines-and-columns@1.2.4: {} lint-staged@15.2.10: @@ -17297,6 +17311,8 @@ snapshots: '@img/sharp-win32-ia32': 0.33.5 '@img/sharp-win32-x64': 0.33.5 + shave@5.0.4: {} + shebang-command@2.0.0: dependencies: shebang-regex: 3.0.0 From ae42edb8d7a6ab7a9dac9892113f8bf922b821f3 Mon Sep 17 00:00:00 2001 From: JzoNg Date: Fri, 27 Dec 2024 14:42:40 +0800 Subject: [PATCH 2/2] remove test code --- .../components/header/account-setting/index.tsx | 4 ---- .../plugins/plugin-detail-panel/index.tsx | 16 +++++++++------- .../multiple-tool-selector/index.tsx | 13 +++++++++++++ 3 files changed, 22 insertions(+), 11 deletions(-) create mode 100644 web/app/components/plugins/plugin-detail-panel/multiple-tool-selector/index.tsx diff --git a/web/app/components/header/account-setting/index.tsx b/web/app/components/header/account-setting/index.tsx index 90a441a72d..b3409c226a 100644 --- a/web/app/components/header/account-setting/index.tsx +++ b/web/app/components/header/account-setting/index.tsx @@ -36,10 +36,6 @@ const iconClassName = ` w-5 h-5 mr-2 ` -const scrolledClassName = ` - border-b shadow-xs bg-white/[.98] -` - type IAccountSettingProps = { onCancel: () => void activeTab?: string diff --git a/web/app/components/plugins/plugin-detail-panel/index.tsx b/web/app/components/plugins/plugin-detail-panel/index.tsx index fcc31b938d..d14c0d96be 100644 --- a/web/app/components/plugins/plugin-detail-panel/index.tsx +++ b/web/app/components/plugins/plugin-detail-panel/index.tsx @@ -62,13 +62,15 @@ const PluginDetailPanel: FC = ({ {!!detail.declaration.agent_strategy && } {!!detail.declaration.endpoint && } {!!detail.declaration.model && } -
- testChange(item)} - onDelete={testDelete} - /> -
+ {false && ( +
+ testChange(item)} + onDelete={testDelete} + /> +
+ )} )} diff --git a/web/app/components/plugins/plugin-detail-panel/multiple-tool-selector/index.tsx b/web/app/components/plugins/plugin-detail-panel/multiple-tool-selector/index.tsx new file mode 100644 index 0000000000..bbf5a8a1ef --- /dev/null +++ b/web/app/components/plugins/plugin-detail-panel/multiple-tool-selector/index.tsx @@ -0,0 +1,13 @@ +import React from 'react' + +type Props = { + value: any[] +} + +const MultipleToolSelector = ({ value }: Props) => { + return ( +
+ ) +} + +export default MultipleToolSelector