feat(onboarding): implement onboarding tutorial with language selection and step guidance

This commit is contained in:
Will Miao
2025-09-03 15:42:36 +08:00
parent ca6f45b359
commit 2bcf341f04
5 changed files with 628 additions and 1 deletions

View File

@@ -14,6 +14,7 @@ import { initTheme, initBackToTop } from './utils/uiHelpers.js';
import { initializeInfiniteScroll } from './utils/infiniteScroll.js';
import { migrateStorageItems } from './utils/storageHelpers.js';
import { i18n } from './i18n/index.js';
import { onboardingManager } from './managers/OnboardingManager.js';
// Core application class
export class AppCore {
@@ -65,6 +66,11 @@ export class AppCore {
// Mark as initialized
this.initialized = true;
// Start onboarding if needed (after everything is initialized)
setTimeout(() => {
onboardingManager.start();
}, 1000); // Small delay to ensure all elements are rendered
// Return the core instance for chaining
return this;
}