Remove site.webmanifest and refactor state initialization in RecipeManager and HeaderManager

- Deleted the site.webmanifest file as it is no longer needed.
- Simplified state management by removing initPageState from RecipeManager and integrating it into HeaderManager.
- Cleaned up console logging in loraApi.js to reduce unnecessary output.
- Minor formatting adjustments in FilterManager to enhance code readability.
This commit is contained in:
Will Miao
2025-03-21 05:22:20 +08:00
parent 34078d8a60
commit 644ee31654
5 changed files with 4 additions and 8 deletions

View File

@@ -3,13 +3,10 @@ import { appCore } from './core.js';
import { ImportManager } from './managers/ImportManager.js';
import { RecipeCard } from './components/RecipeCard.js';
import { RecipeModal } from './components/RecipeModal.js';
import { state, getCurrentPageState, setCurrentPageType, initPageState } from './state/index.js';
import { getCurrentPageState } from './state/index.js';
class RecipeManager {
constructor() {
// Initialize recipe page state
initPageState('recipes');
// Get page state
this.pageState = getCurrentPageState();