MCPcopy
hub / github.com/Dimillian/CodexMonitor / pickImageFiles

Function pickImageFiles

src/services/tauri.ts:56–81  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

54}
55
56export async function pickImageFiles(): Promise<string[]> {
57 const selection = await open({
58 multiple: true,
59 filters: [
60 {
61 name: "Images",
62 extensions: [
63 "png",
64 "jpg",
65 "jpeg",
66 "gif",
67 "webp",
68 "bmp",
69 "tiff",
70 "tif",
71 "heic",
72 "heif",
73 ],
74 },
75 ],
76 });
77 if (!selection) {
78 return [];
79 }
80 return Array.isArray(selection) ? selection : [selection];
81}
82
83export async function exportMarkdownFile(
84 content: string,

Callers 2

useComposerImagesFunction · 0.90
tauri.test.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected