From 64fb2fc297d89743531cfef76b6faf2a1dc7453c Mon Sep 17 00:00:00 2001 From: Xi Xu Date: Mon, 14 Jul 2025 12:40:36 +0800 Subject: [PATCH] Refactor: use 'app' instead of 'application' Updated terminology in README and app.js to use 'app' instead of 'application' for consistency and brevity across documentation and code comments. --- README.md | 2 +- src/scripts/app.js | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index fae041c..31dc3ac 100644 --- a/README.md +++ b/README.md @@ -123,7 +123,7 @@ The META.js Customizer follows a modern, modular architecture designed for maint #### **🎯 MetaJSCustomizer (Main Controller)** -- Application lifecycle management and component orchestration +- App lifecycle management and component orchestration - Global error handling with user-friendly feedback - Performance monitoring and optimization - Loading state management and initialization coordination diff --git a/src/scripts/app.js b/src/scripts/app.js index ca6ad2b..41385fe 100644 --- a/src/scripts/app.js +++ b/src/scripts/app.js @@ -1,5 +1,5 @@ /** - * META.js Customizer - Main Application Controller + * META.js Customizer - Main App Controller * * Modern, accessible web app for generating custom META.js * using service rulesets from the xixu-me/RFM repository. @@ -30,7 +30,7 @@ export class MetaJSCustomizer { } /** - * Initialize the application + * Initialize the app */ async init() { try { @@ -56,7 +56,7 @@ export class MetaJSCustomizer { } /** - * Initialize all application components + * Initialize all app components */ async initializeComponents() { // Initialize theme manager first (no dependencies) @@ -142,7 +142,7 @@ export class MetaJSCustomizer { } /** - * Show application loading state + * Show app loading state */ showLoadingState() { const container = document.querySelector(".container"); @@ -165,7 +165,7 @@ export class MetaJSCustomizer { } /** - * Hide application loading state + * Hide app loading state */ hideLoadingState() { const container = document.querySelector(".container"); @@ -250,7 +250,7 @@ export class MetaJSCustomizer { } /** - * Check if application is ready + * Check if app is ready * @returns {boolean} True if initialized */ isReady() { @@ -258,7 +258,7 @@ export class MetaJSCustomizer { } /** - * Destroy application and cleanup + * Destroy app and cleanup */ destroy() { // Cleanup components if they have destroy methods @@ -273,7 +273,7 @@ export class MetaJSCustomizer { } } -// Initialize application when DOM is ready +// Initialize app when DOM is ready document.addEventListener("DOMContentLoaded", () => { // Make app instance globally available for debugging window.metaJSCustomizer = new MetaJSCustomizer();