add umami analytics integration

This commit is contained in:
jeffvli
2025-11-26 01:16:17 -08:00
parent c77d38fca0
commit 778d878349
13 changed files with 594 additions and 19 deletions
@@ -144,9 +144,15 @@ export const MainContent = ({ shell }: { shell?: boolean }) => {
/>
</>
)}
<Suspense fallback={<Spinner container />}>
<Outlet />
</Suspense>
<MainContentBody />
</motion.div>
);
};
function MainContentBody() {
return (
<Suspense fallback={<Spinner container />}>
<Outlet />
</Suspense>
);
}
@@ -1,6 +1,7 @@
import isElectron from 'is-electron';
import { useNavigate } from 'react-router';
import { useAppTracker } from '/@/renderer/features/analytics/hooks/use-app-tracker';
import { CommandPalette } from '/@/renderer/features/search/components/command-palette';
import { useIsMobile } from '/@/renderer/hooks/use-is-mobile';
import { DefaultLayout } from '/@/renderer/layouts/default-layout';
@@ -29,6 +30,8 @@ const ResponsiveLayoutBase = ({ shell }: ResponsiveLayoutProps) => {
};
export const ResponsiveLayout = ({ shell }: ResponsiveLayoutProps) => {
useAppTracker();
return (
<>
<ResponsiveLayoutBase shell={shell} />