Commit 8a6ea78
committed
feat: implement file system persistence and text operations
- Add IndexedDB + localStorage persistence for file system
- Implement incremental merge: default filesystem.json + user changes
- Add file upload/download functionality for text files
- Complete Notepad file operations: New, Open, Save, Save As
- Fix copy operation in Explorer (was incorrectly using cut)
- Persist recycle bin contents across sessions
- Track original paths for recycle bin restore
Key changes:
- src/utils/storage.ts: New persistence utilities
- src/context/FileSystemContext.tsx: Integrated persistence layer
- src/apps/Notepad.tsx: Full file menu implementation
- src/apps/Explorer.tsx: Upload functionality + copy fix1 parent e033486 commit 8a6ea78
File tree
4 files changed
+841
-103
lines changed- src
- apps
- context
- utils
4 files changed
+841
-103
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
121 | | - | |
| 121 | + | |
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
| |||
317 | 317 | | |
318 | 318 | | |
319 | 319 | | |
320 | | - | |
| 320 | + | |
321 | 321 | | |
322 | 322 | | |
323 | 323 | | |
324 | 324 | | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
325 | 345 | | |
326 | 346 | | |
327 | 347 | | |
| |||
387 | 407 | | |
388 | 408 | | |
389 | 409 | | |
| 410 | + | |
| 411 | + | |
390 | 412 | | |
391 | 413 | | |
392 | 414 | | |
| |||
0 commit comments