cursor done.

This commit is contained in:
2025-11-11 14:36:09 +08:00
parent 7a5fb889c5
commit 9b1eb6cafd
27 changed files with 4748 additions and 552 deletions

24
public/js/main.js Normal file
View File

@@ -0,0 +1,24 @@
import CalendarView from './calendar.js';
import ServerManager from './serverManager.js';
import AuthManager from './auth.js';
let authManagerRef = null;
window.addEventListener('DOMContentLoaded', () => {
const calendarView = new CalendarView({
onUnauthorized: () => authManagerRef && authManagerRef.logout()
});
calendarView.init();
const serverManager = new ServerManager();
serverManager.init();
authManagerRef = new AuthManager(calendarView, serverManager);
authManagerRef.init();
serverManager.onChange((server) => {
authManagerRef.handleServerSelection(server);
});
authManagerRef.checkExistingSession();
});