MCPcopy Index your code
hub / github.com/scriptscat/scriptcat / importScripts

Function importScripts

src/pages/import/App.tsx:211–219  ·  view source on GitHub ↗
(scripts: ScriptData[])

Source from the content-addressed store, hash-verified

209 };
210
211 const importScripts = async (scripts: ScriptData[]) => {
212 const promises: Promise<any>[] = [];
213 for (const item of scripts) {
214 if (item.install && !item.error) {
215 promises.push(scriptImportAsync(item));
216 }
217 }
218 return Promise.all(promises);
219 };
220
221 const handleScriptToggle = (index: number) => {
222 let bool: boolean;

Callers 1

AppFunction · 0.85

Calls 2

scriptImportAsyncFunction · 0.85
pushMethod · 0.80

Tested by

no test coverage detected