Update js/app.js
Browse files
js/app.js
CHANGED
|
@@ -1,29 +1,3 @@
|
|
| 1 |
-
import './js/utils/error_logger.js';
|
| 2 |
-
|
| 3 |
-
// در تابع initialize
|
| 4 |
-
initialize() {
|
| 5 |
-
try {
|
| 6 |
-
console.log('🚀 Initializing Learning Platform...');
|
| 7 |
-
|
| 8 |
-
// مقداردهی اولیه سیستم خطاگیری
|
| 9 |
-
if (typeof errorLogger !== 'undefined') {
|
| 10 |
-
errorLogger.init();
|
| 11 |
-
}
|
| 12 |
-
|
| 13 |
-
// بقیه کدها...
|
| 14 |
-
} catch (error) {
|
| 15 |
-
console.error('❌ Failed to initialize platform:', error);
|
| 16 |
-
// خطا را نیز لاگ کنیم
|
| 17 |
-
if (typeof errorLogger !== 'undefined') {
|
| 18 |
-
errorLogger.logError({
|
| 19 |
-
type: 'app_initialization_error',
|
| 20 |
-
message: error.message,
|
| 21 |
-
stack: error.stack,
|
| 22 |
-
timestamp: new Date().toISOString()
|
| 23 |
-
});
|
| 24 |
-
}
|
| 25 |
-
}
|
| 26 |
-
}
|
| 27 |
class LearningPlatform {
|
| 28 |
constructor() {
|
| 29 |
this.currentDay = 1;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
class LearningPlatform {
|
| 2 |
constructor() {
|
| 3 |
this.currentDay = 1;
|