fix(core): resolve 68 compiler errors and stabilize Svelte 5 reactivity
- Fixed 'Captured initial value' warnings in 65+ components by implementing proper sync effects with 'untrack' and derived states. - Hardened Event Settings JSON editors using a temporary string-buffer pattern to safely decouple object-based data from CodeMirror's string requirements. - Resolved strict TypeScript mismatches across core routes (Accounts, Sites, etc.) and improved property indexing safety in views. - Patched Flowbite-Svelte Drawer transitions for Svelte 5 compatibility using prop spreading. - Added comprehensive safety comments to high-risk reactivity blocks. - Synchronized 'ae_types.ts' with V3 backend models.
This commit is contained in:
@@ -297,7 +297,7 @@
|
||||
return processed_file_list;
|
||||
}
|
||||
|
||||
function remove_file_from_filelist(index) {
|
||||
function remove_file_from_filelist(index: number) {
|
||||
console.log('*** remove_file_from_filelist() ***');
|
||||
|
||||
// Can not use something like this because it is readonly:
|
||||
@@ -306,7 +306,7 @@
|
||||
|
||||
let input_element = document.querySelector(
|
||||
'input[type="file"].svelte_input_file_element'
|
||||
);
|
||||
) as HTMLInputElement;
|
||||
|
||||
if (!input_element) {
|
||||
console.error('Could not find the input element.');
|
||||
|
||||
Reference in New Issue
Block a user