fix: Remove debug logs & fix favicon for production
- Remove all debug logs (127.0.0.1:7242) that cause errors in production - Fix site.webmanifest to use existing SVG icons instead of missing PNG files - Build erfolgreich
This commit is contained in:
@@ -80,23 +80,11 @@ interface Subscription {
|
||||
}
|
||||
|
||||
export function Settings() {
|
||||
// #region agent log
|
||||
try {
|
||||
fetch('http://127.0.0.1:7242/ingest/4fa7412d-6f79-4871-8728-29c37c9e5772',{method:'POST',headers:{'Content-Type':'application/json'},body:JSON.stringify({location:'Settings.tsx:52',message:'Settings component rendering',data:{},timestamp:Date.now(),sessionId:'debug-session',runId:'run1',hypothesisId:'A'})}).catch(()=>{});
|
||||
} catch(e) {}
|
||||
// #endregion
|
||||
|
||||
const { user } = useAuth()
|
||||
const navigate = useNavigate()
|
||||
const [searchParams, setSearchParams] = useSearchParams()
|
||||
|
||||
const activeTab = (searchParams.get('tab') as TabType) || 'profile'
|
||||
|
||||
// #region agent log
|
||||
try {
|
||||
fetch('http://127.0.0.1:7242/ingest/4fa7412d-6f79-4871-8728-29c37c9e5772',{method:'POST',headers:{'Content-Type':'application/json'},body:JSON.stringify({location:'Settings.tsx:60',message:'Settings state initialized',data:{hasUser:!!user,activeTab},timestamp:Date.now(),sessionId:'debug-session',runId:'run1',hypothesisId:'A'})}).catch(()=>{});
|
||||
} catch(e) {}
|
||||
// #endregion
|
||||
const [loading, setLoading] = useState(false)
|
||||
const [saving, setSaving] = useState(false)
|
||||
const [message, setMessage] = useState<{ type: 'success' | 'error'; text: string } | null>(null)
|
||||
@@ -192,11 +180,6 @@ export function Settings() {
|
||||
}
|
||||
|
||||
const loadData = async () => {
|
||||
// #region agent log
|
||||
try {
|
||||
fetch('http://127.0.0.1:7242/ingest/4fa7412d-6f79-4871-8728-29c37c9e5772',{method:'POST',headers:{'Content-Type':'application/json'},body:JSON.stringify({location:'Settings.tsx:84',message:'loadData called',data:{hasUser:!!user,userId:user?.$id},timestamp:Date.now(),sessionId:'debug-session',runId:'run1',hypothesisId:'E'})}).catch(()=>{});
|
||||
} catch(e) {}
|
||||
// #endregion
|
||||
|
||||
if (!user?.$id) return
|
||||
setLoading(true)
|
||||
@@ -265,18 +248,7 @@ export function Settings() {
|
||||
enabled: enabledCategories.includes(cat.key),
|
||||
}))
|
||||
setCategories(updatedCategories)
|
||||
|
||||
// #region agent log
|
||||
try {
|
||||
fetch('http://127.0.0.1:7242/ingest/4fa7412d-6f79-4871-8728-29c37c9e5772',{method:'POST',headers:{'Content-Type':'application/json'},body:JSON.stringify({location:'Settings.tsx:122',message:'loadData success',data:{accountsCount:accountsRes.data?.length||0,categoriesCount:updatedCategories.length},timestamp:Date.now(),sessionId:'debug-session',runId:'run1',hypothesisId:'E'})}).catch(()=>{});
|
||||
} catch(e) {}
|
||||
// #endregion
|
||||
} catch (error) {
|
||||
// #region agent log
|
||||
try {
|
||||
fetch('http://127.0.0.1:7242/ingest/4fa7412d-6f79-4871-8728-29c37c9e5772',{method:'POST',headers:{'Content-Type':'application/json'},body:JSON.stringify({location:'Settings.tsx:123',message:'loadData error',data:{errorMessage:error instanceof Error?error.message:String(error),errorStack:error instanceof Error?error.stack:undefined},timestamp:Date.now(),sessionId:'debug-session',runId:'run1',hypothesisId:'E'})}).catch(()=>{});
|
||||
} catch(e) {}
|
||||
// #endregion
|
||||
console.error('Failed to load settings data:', error)
|
||||
} finally {
|
||||
setLoading(false)
|
||||
@@ -570,12 +542,6 @@ export function Settings() {
|
||||
{ id: 'privacy' as TabType, label: 'Privacy & Security', icon: Lock },
|
||||
]
|
||||
|
||||
// #region agent log
|
||||
try {
|
||||
fetch('http://127.0.0.1:7242/ingest/4fa7412d-6f79-4871-8728-29c37c9e5772',{method:'POST',headers:{'Content-Type':'application/json'},body:JSON.stringify({location:'Settings.tsx:243',message:'Settings render starting',data:{loading,activeTab,hasUser:!!user},timestamp:Date.now(),sessionId:'debug-session',runId:'run1',hypothesisId:'A'})}).catch(()=>{});
|
||||
} catch(e) {}
|
||||
// #endregion
|
||||
|
||||
return (
|
||||
<div className="min-h-screen bg-slate-50 dark:bg-slate-900">
|
||||
<header className="bg-white dark:bg-slate-900 border-b border-slate-200 dark:border-slate-700 sticky top-0 z-40">
|
||||
|
||||
Reference in New Issue
Block a user