refactor(frontend): extract NotesTab safely
- New component: frontend/src/lib/components/notes/NotesTab.svelte - Owns notes list UI, create-note form, note cards with rename/delete - Props: notes array, formatDate - Events: submitCreateNote, openNote, startRename, deleteNote - App.svelte changes: - Removed inline notes tab markup (replaced with <NotesTab>) - Removed showCreateNote, newNoteTitle state variables - Removed openCreateNote, cancelCreateNote, submitCreateNote functions - Added _handleSubmitCreateNote() event handler from NotesTab - Removed notes-related CSS (notes-tab, note-card, note-action-*) - Fixed import paths in FilesTab (../../ instead of ../ for lib/ files) - Build: npm run build ✅, go test ./... ✅, build.sh gui ✅
This commit is contained in:
+1
-1
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -19,8 +19,8 @@
|
||||
background: #13131f;
|
||||
}
|
||||
</style>
|
||||
<script type="module" crossorigin src="/assets/main-Da3BSkUM.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/assets/main-bQpH1es2.css">
|
||||
<script type="module" crossorigin src="/assets/main-nSPvOkeD.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/assets/main-CUROQg6p.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
|
||||
Reference in New Issue
Block a user