mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2026-10-08 08:00:31 +00:00
feat: 完成镜像构建功能
This commit is contained in:
@@ -23,7 +23,7 @@ export const getImagePage = (params: ReqPage) => {
|
||||
return http.post<ResPage<Container.ImageInfo>>(`/containers/image/search`, params);
|
||||
};
|
||||
export const imageBuild = (params: Container.ImageBuild) => {
|
||||
return http.post(`/containers/image/build`, params);
|
||||
return http.post<string>(`/containers/image/build`, params);
|
||||
};
|
||||
export const imagePull = (params: Container.ImagePull) => {
|
||||
return http.post(`/containers/image/pull`, params);
|
||||
|
||||
@@ -22,6 +22,10 @@ export const ChangeFileMode = (form: File.FileCreate) => {
|
||||
return http.post<File.File>('files/mode', form);
|
||||
};
|
||||
|
||||
export const LoadFile = (form: File.FilePath) => {
|
||||
return http.post<string>('files/loadfile', form);
|
||||
};
|
||||
|
||||
export const CompressFile = (form: File.FileCompress) => {
|
||||
return http.post<File.File>('files/compress', form);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user