MCPcopy
hub / github.com/XPoet/picx / createManagementImageObject

Function createManagementImageObject

src/utils/image-utils.ts:61–74  ·  view source on GitHub ↗
(item: any, selectedDir: string)

Source from the content-addressed store, hash-verified

59 * @param selectedDir
60 */
61export const createManagementImageObject = (item: any, selectedDir: string): UploadedImageModel => {
62 return {
63 type: 'image',
64 uuid: getUuid(),
65 dir: selectedDir,
66 name: item.name,
67 sha: item.sha,
68 path: item.path,
69 deleting: false,
70 size: item.size,
71 checked: false,
72 deployed: true
73 }
74}
75
76/**
77 * 从 GitHub 中删除单张图片

Callers 1

getRepoPathContentFunction · 0.90

Calls 1

getUuidFunction · 0.90

Tested by

no test coverage detected