@lobehub/lobehub 2.0.0-next.264 → 2.0.0-next.266
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/manual-build-desktop.yml +16 -37
- package/CHANGELOG.md +52 -0
- package/apps/desktop/native-deps.config.mjs +19 -3
- package/apps/desktop/src/main/controllers/__tests__/SystemCtr.test.ts +13 -0
- package/apps/desktop/src/main/utils/permissions.ts +86 -22
- package/changelog/v1.json +18 -0
- package/locales/ar/chat.json +1 -0
- package/locales/ar/modelProvider.json +20 -0
- package/locales/ar/models.json +33 -10
- package/locales/ar/plugin.json +1 -0
- package/locales/ar/providers.json +1 -0
- package/locales/ar/setting.json +2 -0
- package/locales/bg-BG/chat.json +1 -0
- package/locales/bg-BG/modelProvider.json +20 -0
- package/locales/bg-BG/models.json +27 -7
- package/locales/bg-BG/plugin.json +1 -0
- package/locales/bg-BG/providers.json +1 -0
- package/locales/bg-BG/setting.json +2 -0
- package/locales/de-DE/chat.json +1 -0
- package/locales/de-DE/modelProvider.json +20 -0
- package/locales/de-DE/models.json +44 -10
- package/locales/de-DE/plugin.json +1 -0
- package/locales/de-DE/providers.json +1 -0
- package/locales/de-DE/setting.json +2 -0
- package/locales/en-US/chat.json +1 -0
- package/locales/en-US/modelProvider.json +20 -0
- package/locales/en-US/models.json +10 -10
- package/locales/en-US/providers.json +1 -0
- package/locales/en-US/setting.json +2 -1
- package/locales/es-ES/chat.json +1 -0
- package/locales/es-ES/modelProvider.json +20 -0
- package/locales/es-ES/models.json +53 -10
- package/locales/es-ES/plugin.json +1 -0
- package/locales/es-ES/providers.json +1 -0
- package/locales/es-ES/setting.json +2 -0
- package/locales/fa-IR/chat.json +1 -0
- package/locales/fa-IR/modelProvider.json +20 -0
- package/locales/fa-IR/models.json +33 -10
- package/locales/fa-IR/plugin.json +1 -0
- package/locales/fa-IR/providers.json +1 -0
- package/locales/fa-IR/setting.json +2 -0
- package/locales/fr-FR/chat.json +1 -0
- package/locales/fr-FR/modelProvider.json +20 -0
- package/locales/fr-FR/models.json +27 -7
- package/locales/fr-FR/plugin.json +1 -0
- package/locales/fr-FR/providers.json +1 -0
- package/locales/fr-FR/setting.json +2 -0
- package/locales/it-IT/chat.json +1 -0
- package/locales/it-IT/modelProvider.json +20 -0
- package/locales/it-IT/models.json +10 -10
- package/locales/it-IT/plugin.json +1 -0
- package/locales/it-IT/providers.json +1 -0
- package/locales/it-IT/setting.json +2 -0
- package/locales/ja-JP/chat.json +1 -0
- package/locales/ja-JP/modelProvider.json +20 -0
- package/locales/ja-JP/models.json +5 -10
- package/locales/ja-JP/plugin.json +1 -0
- package/locales/ja-JP/providers.json +1 -0
- package/locales/ja-JP/setting.json +2 -0
- package/locales/ko-KR/chat.json +1 -0
- package/locales/ko-KR/modelProvider.json +20 -0
- package/locales/ko-KR/models.json +36 -10
- package/locales/ko-KR/plugin.json +1 -0
- package/locales/ko-KR/providers.json +1 -0
- package/locales/ko-KR/setting.json +2 -0
- package/locales/nl-NL/chat.json +1 -0
- package/locales/nl-NL/modelProvider.json +20 -0
- package/locales/nl-NL/models.json +35 -4
- package/locales/nl-NL/plugin.json +1 -0
- package/locales/nl-NL/providers.json +1 -0
- package/locales/nl-NL/setting.json +2 -0
- package/locales/pl-PL/chat.json +1 -0
- package/locales/pl-PL/modelProvider.json +20 -0
- package/locales/pl-PL/models.json +37 -7
- package/locales/pl-PL/plugin.json +1 -0
- package/locales/pl-PL/providers.json +1 -0
- package/locales/pl-PL/setting.json +2 -0
- package/locales/pt-BR/chat.json +1 -0
- package/locales/pt-BR/modelProvider.json +20 -0
- package/locales/pt-BR/models.json +51 -9
- package/locales/pt-BR/plugin.json +1 -0
- package/locales/pt-BR/providers.json +1 -0
- package/locales/pt-BR/setting.json +2 -0
- package/locales/ru-RU/chat.json +1 -0
- package/locales/ru-RU/modelProvider.json +20 -0
- package/locales/ru-RU/models.json +48 -7
- package/locales/ru-RU/plugin.json +1 -0
- package/locales/ru-RU/providers.json +1 -0
- package/locales/ru-RU/setting.json +2 -0
- package/locales/tr-TR/chat.json +1 -0
- package/locales/tr-TR/modelProvider.json +20 -0
- package/locales/tr-TR/models.json +48 -7
- package/locales/tr-TR/plugin.json +1 -0
- package/locales/tr-TR/providers.json +1 -0
- package/locales/tr-TR/setting.json +2 -0
- package/locales/vi-VN/chat.json +1 -0
- package/locales/vi-VN/modelProvider.json +20 -0
- package/locales/vi-VN/models.json +5 -5
- package/locales/vi-VN/plugin.json +1 -0
- package/locales/vi-VN/providers.json +1 -0
- package/locales/vi-VN/setting.json +2 -0
- package/locales/zh-CN/modelProvider.json +20 -20
- package/locales/zh-CN/models.json +49 -8
- package/locales/zh-CN/providers.json +1 -0
- package/locales/zh-CN/setting.json +2 -1
- package/locales/zh-TW/chat.json +1 -0
- package/locales/zh-TW/modelProvider.json +20 -0
- package/locales/zh-TW/models.json +29 -10
- package/locales/zh-TW/plugin.json +1 -0
- package/locales/zh-TW/providers.json +1 -0
- package/locales/zh-TW/setting.json +2 -0
- package/package.json +2 -2
- package/packages/database/src/models/__tests__/agent.test.ts +165 -4
- package/packages/database/src/models/agent.ts +46 -0
- package/packages/database/src/repositories/agentGroup/index.test.ts +498 -0
- package/packages/database/src/repositories/agentGroup/index.ts +150 -0
- package/packages/database/src/repositories/home/__tests__/index.test.ts +113 -1
- package/packages/database/src/repositories/home/index.ts +48 -67
- package/pnpm-workspace.yaml +1 -0
- package/src/app/[variants]/(main)/agent/_layout/Sidebar/Body.tsx +1 -1
- package/src/app/[variants]/(main)/agent/_layout/Sidebar/Cron/CronTopicGroup.tsx +84 -0
- package/src/app/[variants]/(main)/agent/_layout/Sidebar/{Topic/CronTopicList → Cron}/CronTopicItem.tsx +1 -1
- package/src/app/[variants]/(main)/agent/_layout/Sidebar/{Topic/CronTopicList → Cron}/index.tsx +23 -33
- package/src/app/[variants]/(main)/agent/_layout/Sidebar/Topic/List/Item/Editing.tsx +12 -49
- package/src/app/[variants]/(main)/agent/_layout/Sidebar/Topic/List/index.tsx +3 -1
- package/src/app/[variants]/(main)/agent/_layout/Sidebar/Topic/TopicListContent/ThreadList/ThreadItem/Editing.tsx +12 -40
- package/src/app/[variants]/(main)/agent/_layout/Sidebar/Topic/hooks/useTopicNavigation.ts +5 -1
- package/src/app/[variants]/(main)/agent/features/Conversation/MainChatInput/index.tsx +2 -2
- package/src/app/[variants]/(main)/agent/profile/features/AgentCronJobs/CronJobCards.tsx +1 -1
- package/src/app/[variants]/(main)/agent/profile/features/AgentCronJobs/CronJobForm.tsx +1 -1
- package/src/app/[variants]/(main)/group/_layout/Sidebar/AddGroupMemberModal/AvailableAgentList.tsx +0 -1
- package/src/app/[variants]/(main)/group/_layout/Sidebar/AddGroupMemberModal/index.tsx +5 -1
- package/src/app/[variants]/(main)/home/_layout/Body/Agent/List/AgentGroupItem/index.tsx +2 -6
- package/src/app/[variants]/(main)/home/_layout/Body/Agent/List/AgentGroupItem/useDropdownMenu.tsx +100 -0
- package/src/app/[variants]/(main)/home/_layout/Body/Agent/List/AgentItem/index.tsx +2 -4
- package/src/app/[variants]/(main)/home/_layout/Body/Agent/List/AgentItem/useDropdownMenu.tsx +149 -0
- package/src/app/[variants]/(main)/home/_layout/hooks/index.ts +0 -1
- package/src/app/[variants]/(main)/home/features/InputArea/index.tsx +1 -1
- package/src/components/InlineRename/index.tsx +121 -0
- package/src/features/ChatInput/InputEditor/index.tsx +1 -0
- package/src/features/EditorCanvas/DiffAllToolbar.tsx +1 -1
- package/src/features/NavPanel/components/NavItem.tsx +1 -1
- package/src/locales/default/setting.ts +2 -0
- package/src/server/routers/lambda/agent.ts +15 -0
- package/src/server/routers/lambda/agentGroup.ts +16 -0
- package/src/services/agent.ts +11 -0
- package/src/services/chatGroup/index.ts +11 -0
- package/src/store/agent/slices/cron/action.ts +108 -0
- package/src/store/agent/slices/cron/index.ts +1 -0
- package/src/store/agent/store.ts +3 -0
- package/src/store/home/slices/sidebarUI/action.test.ts +23 -22
- package/src/store/home/slices/sidebarUI/action.ts +37 -9
- package/src/app/[variants]/(main)/agent/_layout/Sidebar/Topic/CronTopicList/CronTopicGroup.tsx +0 -74
- package/src/app/[variants]/(main)/group/features/ChangelogModal.tsx +0 -11
- package/src/app/[variants]/(main)/home/_layout/Body/Agent/List/Item/useDropdownMenu.tsx +0 -62
- package/src/app/[variants]/(main)/home/_layout/hooks/useSessionItemMenuItems.tsx +0 -238
- package/src/hooks/useFetchCronTopicsWithJobInfo.ts +0 -56
|
@@ -1,238 +0,0 @@
|
|
|
1
|
-
import { SessionDefaultGroup } from '@lobechat/types';
|
|
2
|
-
import { Icon } from '@lobehub/ui';
|
|
3
|
-
import { App } from 'antd';
|
|
4
|
-
import { createStaticStyles } from 'antd-style';
|
|
5
|
-
import { type ItemType } from 'antd/es/menu/interface';
|
|
6
|
-
import isEqual from 'fast-deep-equal';
|
|
7
|
-
import {
|
|
8
|
-
Check,
|
|
9
|
-
FolderInputIcon,
|
|
10
|
-
LucideCopy,
|
|
11
|
-
LucidePlus,
|
|
12
|
-
Pen,
|
|
13
|
-
PictureInPicture2Icon,
|
|
14
|
-
Pin,
|
|
15
|
-
PinOff,
|
|
16
|
-
Trash,
|
|
17
|
-
} from 'lucide-react';
|
|
18
|
-
import { useCallback } from 'react';
|
|
19
|
-
import { useTranslation } from 'react-i18next';
|
|
20
|
-
|
|
21
|
-
import { useGlobalStore } from '@/store/global';
|
|
22
|
-
import { useHomeStore } from '@/store/home';
|
|
23
|
-
import { homeAgentListSelectors } from '@/store/home/selectors';
|
|
24
|
-
|
|
25
|
-
const styles = createStaticStyles(({ css }) => ({
|
|
26
|
-
modalRoot: css`
|
|
27
|
-
z-index: 2000;
|
|
28
|
-
`,
|
|
29
|
-
}));
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* Hook for generating menu items for individual session/agent items
|
|
33
|
-
* Used in List/Item/Actions.tsx
|
|
34
|
-
*/
|
|
35
|
-
export const useSessionItemMenuItems = () => {
|
|
36
|
-
const { t } = useTranslation('chat');
|
|
37
|
-
const { modal, message } = App.useApp();
|
|
38
|
-
|
|
39
|
-
const openAgentInNewWindow = useGlobalStore((s) => s.openAgentInNewWindow);
|
|
40
|
-
const sessionCustomGroups = useHomeStore(homeAgentListSelectors.agentGroups, isEqual);
|
|
41
|
-
|
|
42
|
-
const [pinAgent, pinAgentGroup, duplicateAgent, updateAgentGroup, removeAgent, removeAgentGroup] =
|
|
43
|
-
useHomeStore((s) => [
|
|
44
|
-
s.pinAgent,
|
|
45
|
-
s.pinAgentGroup,
|
|
46
|
-
s.duplicateAgent,
|
|
47
|
-
s.updateAgentGroup,
|
|
48
|
-
s.removeAgent,
|
|
49
|
-
s.removeAgentGroup,
|
|
50
|
-
]);
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
* Pin/Unpin menu item
|
|
54
|
-
*/
|
|
55
|
-
const pinMenuItem = useCallback(
|
|
56
|
-
(id: string, isPinned: boolean, parentType: 'agent' | 'group'): ItemType => {
|
|
57
|
-
const iconElement = <Icon icon={isPinned ? PinOff : Pin} />;
|
|
58
|
-
return {
|
|
59
|
-
icon: iconElement,
|
|
60
|
-
key: 'pin',
|
|
61
|
-
label: t(isPinned ? 'pinOff' : 'pin'),
|
|
62
|
-
onClick: () => {
|
|
63
|
-
if (parentType === 'group') {
|
|
64
|
-
pinAgentGroup(id, !isPinned);
|
|
65
|
-
} else {
|
|
66
|
-
pinAgent(id, !isPinned);
|
|
67
|
-
}
|
|
68
|
-
},
|
|
69
|
-
};
|
|
70
|
-
},
|
|
71
|
-
[t, pinAgentGroup, pinAgent],
|
|
72
|
-
);
|
|
73
|
-
|
|
74
|
-
/**
|
|
75
|
-
* Rename session menu item
|
|
76
|
-
*/
|
|
77
|
-
const renameMenuItem = useCallback(
|
|
78
|
-
(onToggleEdit: (visible?: boolean) => void): ItemType => {
|
|
79
|
-
const iconElement = <Icon icon={Pen} />;
|
|
80
|
-
return {
|
|
81
|
-
icon: iconElement,
|
|
82
|
-
key: 'rename',
|
|
83
|
-
label: t('rename', { ns: 'common' }),
|
|
84
|
-
onClick: (info: any) => {
|
|
85
|
-
info.domEvent?.stopPropagation();
|
|
86
|
-
onToggleEdit(true);
|
|
87
|
-
},
|
|
88
|
-
};
|
|
89
|
-
},
|
|
90
|
-
[t],
|
|
91
|
-
);
|
|
92
|
-
|
|
93
|
-
/**
|
|
94
|
-
* Duplicate session menu item
|
|
95
|
-
*/
|
|
96
|
-
const duplicateMenuItem = useCallback(
|
|
97
|
-
(id: string): ItemType => {
|
|
98
|
-
const iconElement = <Icon icon={LucideCopy} />;
|
|
99
|
-
return {
|
|
100
|
-
icon: iconElement,
|
|
101
|
-
key: 'duplicate',
|
|
102
|
-
label: t('duplicate', { ns: 'common' }),
|
|
103
|
-
onClick: ({ domEvent }: any) => {
|
|
104
|
-
domEvent.stopPropagation();
|
|
105
|
-
duplicateAgent(id);
|
|
106
|
-
},
|
|
107
|
-
};
|
|
108
|
-
},
|
|
109
|
-
[t, duplicateAgent],
|
|
110
|
-
);
|
|
111
|
-
|
|
112
|
-
/**
|
|
113
|
-
* Open in new window menu item
|
|
114
|
-
* Desktop: Opens in a new electron window
|
|
115
|
-
* Browser: Opens in a popup window
|
|
116
|
-
*/
|
|
117
|
-
const openInNewWindowMenuItem = useCallback(
|
|
118
|
-
(id: string): ItemType => {
|
|
119
|
-
const iconElement = <Icon icon={PictureInPicture2Icon} />;
|
|
120
|
-
return {
|
|
121
|
-
icon: iconElement,
|
|
122
|
-
key: 'openInNewWindow',
|
|
123
|
-
label: t('openInNewWindow'),
|
|
124
|
-
onClick: ({ domEvent }: any) => {
|
|
125
|
-
domEvent.stopPropagation();
|
|
126
|
-
openAgentInNewWindow(id);
|
|
127
|
-
},
|
|
128
|
-
};
|
|
129
|
-
},
|
|
130
|
-
[t, openAgentInNewWindow],
|
|
131
|
-
);
|
|
132
|
-
|
|
133
|
-
/**
|
|
134
|
-
* Move to group submenu item
|
|
135
|
-
* Contains all custom groups, default list, and create new group option
|
|
136
|
-
*/
|
|
137
|
-
const moveToGroupMenuItem = useCallback(
|
|
138
|
-
(
|
|
139
|
-
id: string,
|
|
140
|
-
currentGroup: string | undefined,
|
|
141
|
-
onOpenCreateGroupModal: () => void,
|
|
142
|
-
): ItemType => {
|
|
143
|
-
const isDefault = currentGroup === SessionDefaultGroup.Default;
|
|
144
|
-
|
|
145
|
-
const children = [
|
|
146
|
-
...sessionCustomGroups.map(({ id: groupId, name }) => {
|
|
147
|
-
const checkIcon = currentGroup === groupId ? <Icon icon={Check} /> : <div />;
|
|
148
|
-
return {
|
|
149
|
-
icon: checkIcon,
|
|
150
|
-
key: groupId,
|
|
151
|
-
label: name,
|
|
152
|
-
onClick: () => {
|
|
153
|
-
updateAgentGroup(id, groupId);
|
|
154
|
-
},
|
|
155
|
-
};
|
|
156
|
-
}),
|
|
157
|
-
{
|
|
158
|
-
icon: isDefault ? <Icon icon={Check} /> : <div />,
|
|
159
|
-
key: 'defaultList',
|
|
160
|
-
label: t('defaultList'),
|
|
161
|
-
onClick: () => {
|
|
162
|
-
updateAgentGroup(id, SessionDefaultGroup.Default);
|
|
163
|
-
},
|
|
164
|
-
},
|
|
165
|
-
{
|
|
166
|
-
type: 'divider' as const,
|
|
167
|
-
},
|
|
168
|
-
{
|
|
169
|
-
icon: <Icon icon={LucidePlus} />,
|
|
170
|
-
key: 'createGroup',
|
|
171
|
-
label: <div>{t('sessionGroup.createGroup')}</div>,
|
|
172
|
-
onClick: ({ domEvent }: any) => {
|
|
173
|
-
domEvent.stopPropagation();
|
|
174
|
-
onOpenCreateGroupModal();
|
|
175
|
-
},
|
|
176
|
-
},
|
|
177
|
-
];
|
|
178
|
-
|
|
179
|
-
const folderIcon = <Icon icon={FolderInputIcon} />;
|
|
180
|
-
return {
|
|
181
|
-
children,
|
|
182
|
-
icon: folderIcon,
|
|
183
|
-
key: 'moveGroup',
|
|
184
|
-
label: t('sessionGroup.moveGroup'),
|
|
185
|
-
};
|
|
186
|
-
},
|
|
187
|
-
[t, sessionCustomGroups, updateAgentGroup],
|
|
188
|
-
);
|
|
189
|
-
|
|
190
|
-
/**
|
|
191
|
-
* Delete menu item with confirmation modal
|
|
192
|
-
* Handles both session and group types
|
|
193
|
-
*/
|
|
194
|
-
const deleteMenuItem = useCallback(
|
|
195
|
-
(id: string, parentType: 'agent' | 'group', sessionType?: string): ItemType => {
|
|
196
|
-
const trashIcon = <Icon icon={Trash} />;
|
|
197
|
-
return {
|
|
198
|
-
danger: true,
|
|
199
|
-
icon: trashIcon,
|
|
200
|
-
key: 'delete',
|
|
201
|
-
label: t('delete', { ns: 'common' }),
|
|
202
|
-
onClick: ({ domEvent }: any) => {
|
|
203
|
-
domEvent.stopPropagation();
|
|
204
|
-
modal.confirm({
|
|
205
|
-
centered: true,
|
|
206
|
-
classNames: {
|
|
207
|
-
root: styles.modalRoot,
|
|
208
|
-
},
|
|
209
|
-
okButtonProps: { danger: true },
|
|
210
|
-
onOk: async () => {
|
|
211
|
-
if (parentType === 'group') {
|
|
212
|
-
await removeAgentGroup(id);
|
|
213
|
-
message.success(t('confirmRemoveGroupSuccess'));
|
|
214
|
-
} else {
|
|
215
|
-
await removeAgent(id);
|
|
216
|
-
message.success(t('confirmRemoveSessionSuccess'));
|
|
217
|
-
}
|
|
218
|
-
},
|
|
219
|
-
title:
|
|
220
|
-
sessionType === 'group'
|
|
221
|
-
? t('confirmRemoveChatGroupItemAlert')
|
|
222
|
-
: t('confirmRemoveSessionItemAlert'),
|
|
223
|
-
});
|
|
224
|
-
},
|
|
225
|
-
};
|
|
226
|
-
},
|
|
227
|
-
[t, modal, styles.modalRoot, removeAgentGroup, message, removeAgent],
|
|
228
|
-
);
|
|
229
|
-
|
|
230
|
-
return {
|
|
231
|
-
deleteMenuItem,
|
|
232
|
-
duplicateMenuItem,
|
|
233
|
-
moveToGroupMenuItem,
|
|
234
|
-
openInNewWindowMenuItem,
|
|
235
|
-
pinMenuItem,
|
|
236
|
-
renameMenuItem,
|
|
237
|
-
};
|
|
238
|
-
};
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { ENABLE_BUSINESS_FEATURES } from '@lobechat/business-const';
|
|
2
|
-
import useSWR from 'swr';
|
|
3
|
-
|
|
4
|
-
import { lambdaClient } from '@/libs/trpc/client/lambda';
|
|
5
|
-
import { useAgentStore } from '@/store/agent';
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Fetch cron topics grouped by cronJob with job information
|
|
9
|
-
*/
|
|
10
|
-
export const useFetchCronTopicsWithJobInfo = () => {
|
|
11
|
-
const agentId = useAgentStore((s) => s.activeAgentId);
|
|
12
|
-
|
|
13
|
-
const { data, isLoading, error, mutate } = useSWR(
|
|
14
|
-
ENABLE_BUSINESS_FEATURES && agentId ? ['cronTopicsWithJobInfo', agentId] : null,
|
|
15
|
-
async () => {
|
|
16
|
-
if (!agentId) return [];
|
|
17
|
-
|
|
18
|
-
const [cronJobsResult, cronTopicsGroups] = await Promise.all([
|
|
19
|
-
lambdaClient.agentCronJob.findByAgent.query({ agentId }),
|
|
20
|
-
lambdaClient.topic.getCronTopicsGroupedByCronJob.query({ agentId }),
|
|
21
|
-
]);
|
|
22
|
-
|
|
23
|
-
const cronJobs = cronJobsResult.success ? cronJobsResult.data : [];
|
|
24
|
-
const topicsByCronId = new Map(
|
|
25
|
-
cronTopicsGroups.map((group) => [group.cronJobId, group.topics]),
|
|
26
|
-
);
|
|
27
|
-
const cronJobIds = new Set(cronJobs.map((job) => job.id));
|
|
28
|
-
|
|
29
|
-
const groupsWithJobs = cronJobs.map((job) => ({
|
|
30
|
-
cronJob: job,
|
|
31
|
-
cronJobId: job.id,
|
|
32
|
-
topics: topicsByCronId.get(job.id) || [],
|
|
33
|
-
}));
|
|
34
|
-
|
|
35
|
-
const orphanGroups = cronTopicsGroups
|
|
36
|
-
.filter((group) => !cronJobIds.has(group.cronJobId))
|
|
37
|
-
.map((group) => ({
|
|
38
|
-
cronJob: null,
|
|
39
|
-
cronJobId: group.cronJobId,
|
|
40
|
-
topics: group.topics,
|
|
41
|
-
}));
|
|
42
|
-
|
|
43
|
-
return [...groupsWithJobs, ...orphanGroups];
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
revalidateOnFocus: false,
|
|
47
|
-
},
|
|
48
|
-
);
|
|
49
|
-
|
|
50
|
-
return {
|
|
51
|
-
cronTopicsGroupsWithJobInfo: data || [],
|
|
52
|
-
error,
|
|
53
|
-
isLoading,
|
|
54
|
-
mutate,
|
|
55
|
-
};
|
|
56
|
-
};
|