diff --git a/frontend/packages/admin/src/utils/index.ts b/frontend/packages/admin/src/utils/index.ts index 3176835..00f39fc 100644 --- a/frontend/packages/admin/src/utils/index.ts +++ b/frontend/packages/admin/src/utils/index.ts @@ -1,4 +1,4 @@ -export { downloadLearnware } from "./download.js"; -export { fetchex } from "./fetchex.js"; -export { default as saveContentToFile } from "./saveContentToFile.js"; -export { hex_md5 } from "./encrypt.js"; +export { downloadLearnware } from "./download"; +export { fetchex } from "./fetchex"; +export { default as saveContentToFile } from "@main/utils/saveContentToFile"; +export { hex_md5 } from "./encrypt"; diff --git a/frontend/packages/main/src/utils/index.ts b/frontend/packages/main/src/utils/index.ts index 9a6b278..5cbcbd5 100644 --- a/frontend/packages/main/src/utils/index.ts +++ b/frontend/packages/main/src/utils/index.ts @@ -1,5 +1,6 @@ -export { downloadLearnwareSync } from "./download.js"; -export { hex_md5 } from "./encrypt.js"; -export { verifyLearnware } from "./verifyLearnware.js"; -export { promiseReadFile } from "./promiseReadFile.js"; -export { debounce, throttle } from "./control.js"; +export { downloadLearnwareSync } from "./download"; +export { hex_md5 } from "./encrypt"; +export { verifyLearnware } from "./verifyLearnware"; +export { promiseReadFile } from "./promiseReadFile"; +export { debounce, throttle } from "./control"; +export { default as saveContentToFile } from "./saveContentToFile"; diff --git a/frontend/packages/admin/src/utils/saveContentToFile.ts b/frontend/packages/main/src/utils/saveContentToFile.ts similarity index 100% rename from frontend/packages/admin/src/utils/saveContentToFile.ts rename to frontend/packages/main/src/utils/saveContentToFile.ts