mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2026-10-26 08:00:12 +00:00
feat(ai): support benchmark node options and report integration (#14145)
This commit is contained in:
@@ -10,8 +10,13 @@ export type FileUploadRequestConfig = AxiosRequestConfig & {
|
||||
skipErrorMessage?: boolean;
|
||||
};
|
||||
|
||||
export const getFilesList = (params: File.ReqFile) => {
|
||||
return http.post<File.File>('files/search', params, TimeoutEnum.T_5M);
|
||||
export const getFilesList = (params: File.ReqFile, currentNode?: string) => {
|
||||
return http.post<File.File>(
|
||||
'files/search',
|
||||
params,
|
||||
TimeoutEnum.T_5M,
|
||||
currentNode ? { CurrentNode: currentNode } : undefined,
|
||||
);
|
||||
};
|
||||
|
||||
export const fileAiSearch = (params: File.FileAISearchReq) => {
|
||||
@@ -217,8 +222,13 @@ export const checkFileShare = (params: File.FileShareCheck, headers?: AxiosReque
|
||||
return http.get('files/share/check', params, { headers });
|
||||
};
|
||||
|
||||
export const computeDirSize = (params: File.DirSizeReq) => {
|
||||
return http.post<File.DirSizeRes>('files/size', params, TimeoutEnum.T_5M);
|
||||
export const computeDirSize = (params: File.DirSizeReq, currentNode?: string) => {
|
||||
return http.post<File.DirSizeRes>(
|
||||
'files/size',
|
||||
params,
|
||||
TimeoutEnum.T_5M,
|
||||
currentNode ? { CurrentNode: currentNode } : undefined,
|
||||
);
|
||||
};
|
||||
|
||||
export const computeDepthDirSize = (params: File.DirSizeReq) => {
|
||||
@@ -241,8 +251,13 @@ export const clearRecycle = () => {
|
||||
return http.post<any>('files/recycle/clear');
|
||||
};
|
||||
|
||||
export const searchFavorite = (params: ReqPage) => {
|
||||
return http.post<ResPage<File.Favorite>>('files/favorite/search', params);
|
||||
export const searchFavorite = (params: ReqPage, currentNode?: string) => {
|
||||
return http.post<ResPage<File.Favorite>>(
|
||||
'files/favorite/search',
|
||||
params,
|
||||
undefined,
|
||||
currentNode ? { CurrentNode: currentNode } : undefined,
|
||||
);
|
||||
};
|
||||
|
||||
export const addFavorite = (path: string) => {
|
||||
|
||||
Reference in New Issue
Block a user