fix(frontend): export ui object, harmonize API signatures, and clean view switcher
This commit is contained in:
1 parent
718e9797eb
commit
640da1f27c
4 files changed
+138
-147
No files matched your search
@@ -4,7 +4,7 @@
|
||||
// =======================================================================
|
||||
|
||||
import { api } from './api.js';
|
||||
import { ui } from './ui.js';
|
||||
import { ui, escapeHtml, showToast, switchView } from './ui.js';
|
||||
|
||||
let presets = [];
|
||||
let currentPreset = null;
|
||||
@@ -1630,12 +1630,3 @@ async function openHistoryModal() {
|
||||
}
|
||||
}
|
||||
|
||||
function escapeHtml(str) {
|
||||
if (!str) return '';
|
||||
return String(str)
|
||||
.replace(/&/g, '&')
|
||||
.replace(/</g, '<')
|
||||
.replace(/>/g, '>')
|
||||
.replace(/"/g, '"')
|
||||
.replace(/'/g, ''');
|
||||
}
|
||||
Reference in new issue
Block a user