mirror of
https://github.com/R0m1k3/noteflow.git
synced 2026-10-23 07:08:17 +02:00
[dyad] wrote 3 file(s)
This commit is contained in:
1 parent
3c0bd5adf2
commit
b8a19a25bf
3 files changed
+449
No files matched your search
@@ -0,0 +1,21 @@
|
||||
class App {
|
||||
constructor() {
|
||||
// Initialize app components
|
||||
this.auth = window.auth;
|
||||
this.notes = window.notes;
|
||||
this.admin = window.admin;
|
||||
}
|
||||
|
||||
init() {
|
||||
// Load initial data if authenticated
|
||||
if (this.auth.token) {
|
||||
this.notes.loadNotes();
|
||||
if (this.auth.user.is_admin) {
|
||||
this.admin.loadUsers();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Initialize main app
|
||||
window.app = new App();
|
||||
Reference in new issue
Block a user