fix(ui): CommandPalette outside Router context — white page fix; remove PWA; fix CSP for Google Fonts

This commit is contained in:
Agent Zero
2026-08-16 13:50:39 +02:00
parent db97a39133
commit e25a1b4fec
4 changed files with 5 additions and 57 deletions
+1 -3
View File
@@ -7,8 +7,7 @@ import { useThemeStore } from '@/store/themeStore';
import { ErrorBoundary } from '@/components/common/ErrorBoundary';
import { useToast } from '@/components/ui/Toast';
import { useOnlineStatus } from '@/hooks/useOnlineStatus';
import { CommandPalette } from '@/components/search/CommandPalette';
import { useCommandPalette } from '@/hooks/useCommandPalette';
function QueryClientWrapper({ children }: { children: React.ReactNode }) {
const toast = useToast();
@@ -81,7 +80,6 @@ export default function App() {
<ErrorBoundary>
<AppRouter />
</ErrorBoundary>
<CommandPalette />
</QueryClientWrapper>
);
}
@@ -9,6 +9,7 @@ import { ToastContainer } from '@/components/ui/Toast';
import { PluginRegistry } from '@/components/plugins/PluginRegistry';
import { ErrorBoundary } from '@/components/common/ErrorBoundary';
import { Outlet } from 'react-router-dom';
import { CommandPalette } from '@/components/search/CommandPalette';
export function StartLayout() {
return (
@@ -22,6 +23,7 @@ export function StartLayout() {
</ErrorBoundary>
</div>
</div>
<CommandPalette />
<ToastContainer />
</div>
);