MCPcopy Create free account
hub / github.com/experdot/pointer / generateId

Function generateId

src/renderer/src/hooks/useAttachment.ts:22–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20
21// 生成唯一 ID
22function generateId(): string {
23 return Date.now().toString(36) + Math.random().toString(36).slice(2, 9)
24}
25
26// 读取 File 对象为 base64
27function readFileAsBase64(file: File): Promise<string> {

Callers 2

useAttachmentFunction · 0.70
selectAndSaveAttachmentsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected