upload new files

This commit is contained in:
Andrew Trokhymenko
2024-11-27 14:30:09 -05:00
parent 074161024d
commit 809b54e04a
3 changed files with 139 additions and 5 deletions

View File

@@ -80,6 +80,10 @@ export class FilesStore {
this.#modifiedFiles.clear();
}
markFileAsNew(filePath: string) {
this.#modifiedFiles.set(filePath, '');
}
async saveFile(filePath: string, content: string) {
const webcontainer = await this.#webcontainer;