cap nhat auth he thong de nhung voi chebichat

This commit is contained in:
quangdn-ght
2025-07-07 21:37:16 +07:00
parent 972f957633
commit b42c5154e3
25 changed files with 2970 additions and 28 deletions

View File

@@ -1458,7 +1458,7 @@ function _Chat() {
const autoFocus = isIOS() ? false : !isMobileScreen; // wont auto focus on mobile screen
console.log("tu dong focus:", autoFocus);
// console.log("tu dong focus:", autoFocus);
const showMaxIcon = !isMobileScreen && !clientConfig?.isApp;

View File

@@ -0,0 +1,29 @@
"use client";
import { useEffect } from "react";
export default function StorageInitializer() {
useEffect(() => {
// Initialize storage migration and debugging in development
if (process.env.NODE_ENV === "development") {
// Import and initialize storage utilities
Promise.all([
import("../utils/storage-debug"),
import("../utils/storage-migration"),
])
.then(([storageDebug, storageMigration]) => {
console.log("🔧 Storage utilities loaded");
// Run a quick health check
if ((window as any).debugStorage?.checkStorageHealth) {
(window as any).debugStorage.checkStorageHealth();
}
})
.catch((error) => {
console.error("Failed to load storage utilities:", error);
});
}
}, []);
return null; // This component doesn't render anything
}