feat(doctor): add system diagnostics feature

This commit is contained in:
Will Miao
2026-04-11 16:02:13 +08:00
parent 25fa175aa2
commit 1817142a7b
28 changed files with 2231 additions and 6 deletions

View File

@@ -84,6 +84,18 @@ export class ModalManager {
});
}
const doctorModal = document.getElementById('doctorModal');
if (doctorModal) {
this.registerModal('doctorModal', {
element: doctorModal,
onClose: () => {
this.getModal('doctorModal').element.style.display = 'none';
document.body.classList.remove('modal-open');
},
closeOnOutsideClick: true
});
}
// Add moveModal registration
const moveModal = document.getElementById('moveModal');
if (moveModal) {
@@ -451,4 +463,4 @@ export class ModalManager {
}
// Create and export a singleton instance
export const modalManager = new ModalManager();
export const modalManager = new ModalManager();