This commit is contained in:
Raven Scott
2025-12-17 20:05:50 -05:00
commit 742e27d3f7
276 changed files with 89838 additions and 0 deletions
@@ -0,0 +1,21 @@
// Interfaces UI functions
function cleanupInterfaces() {
if (window.showConfirm) {
window.showConfirm('Cleanup interfaces?', async () => {
try {
const response = await fetch('/api/cleanup-interfaces', { method: 'POST' });
if (!response.ok) {
throw new Error(await response.text());
}
if (window.showNotification) window.showNotification('Interfaces cleaned up successfully');
if (window.genericFetch) window.genericFetch('interfaces', true);
} catch (err) {
console.error('Failed to cleanup interfaces:', err);
if (window.showNotification) window.showNotification('Failed to cleanup interfaces: ' + err.message, 'error');
}
});
}
}
window.cleanupInterfaces = cleanupInterfaces;