copy files

This commit is contained in:
2025-07-30 23:35:30 +02:00
parent 956c0c6f65
commit ea09b9c470
21 changed files with 552 additions and 46 deletions

18
frontend/stores/copy.ts Normal file
View File

@@ -0,0 +1,18 @@
export const useCopyStore = defineStore('file-copy', {
state: () => ({
file: null as { warrenId: string; path: string; name: string } | null,
}),
actions: {
copyFile(warrenId: string, filePath: string, fileName: string) {
this.file = {
warrenId,
path: filePath,
name: fileName,
};
},
/** Removes the current file from the "clipboard" */
clearFile() {
this.file = null;
},
},
});