-
-
- {t('已安装')}
+
+ {t('已安装')}
-
- {_uniqBy([...builtinPlugins, ...installedPluginList], 'name').map(
- (plugin) => (
-
- )
- )}
-
-
+
+ {_uniqBy(
+ [...builtinPlugins, ...installedPluginList],
+ 'name'
+ ).map((plugin) => (
+
+ ))}
+
+ >
+ ),
+ },
+ {
+ key: '2',
+ label: t('全部'),
+ children: (
+ <>
+ {t('内置插件')}
-
- {t('内置插件')}
+
+ {builtinPlugins.map((plugin) => (
+
+ ))}
+
-
- {builtinPlugins.map((plugin) => (
-
- ))}
-
+ {t('插件中心')}
- {t('插件中心')}
-
-
- {allPlugins
- .filter((p) => !builtinPluginNameList.includes(p.name)) // 插件中心只显示不包含内置插件的插件
- .map((plugin) => (
-
- ))}
-
-
-
- {t('手动安装')}}
- key="3"
- >
-
-
-
+
+ {allPlugins
+ .filter((p) => !builtinPluginNameList.includes(p.name)) // 插件中心只显示不包含内置插件的插件
+ .map((plugin) => (
+
+ ))}
+
+ >
+ ),
+ },
+ {
+ key: '3',
+ label:
{t('手动安装')},
+ children:
,
+ },
+ ]}
+ />
);
});
diff --git a/client/web/src/routes/Main/Content/Inbox/Sidebar.tsx b/client/web/src/routes/Main/Content/Inbox/Sidebar.tsx
index 5f078d35..654b45e5 100644
--- a/client/web/src/routes/Main/Content/Inbox/Sidebar.tsx
+++ b/client/web/src/routes/Main/Content/Inbox/Sidebar.tsx
@@ -136,14 +136,20 @@ export const InboxSidebar: React.FC = React.memo(() => {
-
-
-
-
-
- {!disableAddFriend && (
- <>
-
- {t('已发送')}
-
- }
- key="2"
- >
-
-
-
- {t('待处理')}
-
- }
- key="3"
- >
-
-
- {t('添加好友')}}
- key="add"
- >
-
-
- >
- )}
-
+
+ ),
+ },
+ !disableAddFriend && {
+ key: '2',
+ label: (
+
+ {t('已发送')}
+
+ ),
+ children:
,
+ },
+ !disableAddFriend && {
+ key: '3',
+ label: (
+
+ {t('待处理')}
+
+ ),
+ children:
,
+ },
+ !disableAddFriend && {
+ key: '4',
+ label:
{t('添加好友')},
+ children:
,
+ },
+ ])}
+ />
);
});
diff --git a/server/plugins/com.msgbyte.tasks/web/plugins/com.msgbyte.tasks/src/TasksPanel/index.tsx b/server/plugins/com.msgbyte.tasks/web/plugins/com.msgbyte.tasks/src/TasksPanel/index.tsx
index 026d0095..1b73f156 100644
--- a/server/plugins/com.msgbyte.tasks/web/plugins/com.msgbyte.tasks/src/TasksPanel/index.tsx
+++ b/server/plugins/com.msgbyte.tasks/web/plugins/com.msgbyte.tasks/src/TasksPanel/index.tsx
@@ -1,6 +1,6 @@
import React, { useEffect } from 'react';
import { useAsyncFn } from '@capital/common';
-import { PillTabs, PillTabPane } from '@capital/component';
+import { PillTabs } from '@capital/component';
import type { TaskItemType } from './type';
import { TaskItem } from './TaskItem';
import { NewTask } from './NewTask';
@@ -25,27 +25,36 @@ const TasksPanel: React.FC = React.memo(() => {