Initial miaojingAI project with image resolution guard

This commit is contained in:
FengLee
2026-05-09 11:32:34 +08:00
commit d499020d4e
264 changed files with 54160 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
'use client';
import type { ReactNode } from 'react';
import { usePathname } from 'next/navigation';
import { Toaster } from '@/components/ui/sonner';
import { Navbar } from '@/components/navbar';
import { SiteConfigSync } from '@/components/site-config-sync';
import { VisitTracker } from '@/components/visit-tracker';
import { AccountThemeSync } from '@/components/account-theme-sync';
export function AppShell({ children }: { children: ReactNode }) {
const pathname = usePathname();
const isConsole = pathname === '/console' || pathname.startsWith('/console/');
return (
<>
<SiteConfigSync />
<AccountThemeSync />
{!isConsole && <VisitTracker />}
{!isConsole && <Navbar />}
<main>{children}</main>
<Toaster />
</>
);
}