diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a4bd55b..9f81df5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -35,6 +35,11 @@ jobs: steps: - uses: actions/checkout@v4 + - name: Install system dependencies + run: | + sudo apt-get update + sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf libgtk-3-dev libsoup-3.0-dev libjavascriptcoregtk-4.1-dev + - name: Install Rust toolchain uses: dtolnay/rust-toolchain@stable with: diff --git a/desktop/ui/src/App.tsx b/desktop/ui/src/App.tsx index 08f45ba..08e3239 100644 --- a/desktop/ui/src/App.tsx +++ b/desktop/ui/src/App.tsx @@ -19,7 +19,7 @@ function RouteTracker() { useEffect(() => { try { useAppStore.getState().setCurrentRoute(location.pathname); - } catch (_) {} + } catch { /* ignored */ } }, [location.pathname]); return null; } diff --git a/desktop/ui/src/components/layout/Layout.tsx b/desktop/ui/src/components/layout/Layout.tsx index 6528e5b..4804cf1 100644 --- a/desktop/ui/src/components/layout/Layout.tsx +++ b/desktop/ui/src/components/layout/Layout.tsx @@ -68,7 +68,7 @@ export function Layout({ children }: LayoutProps) { try { eventBus.emit(Events.NAVIGATE, { path }); eventBus.emit(Events.ROUTE_CHANGED, { path }); - } catch (_) {} + } catch { /* ignored */ } }; const navItems = [ diff --git a/desktop/ui/src/pages/Dashboard.tsx b/desktop/ui/src/pages/Dashboard.tsx index d95fd15..307231c 100644 --- a/desktop/ui/src/pages/Dashboard.tsx +++ b/desktop/ui/src/pages/Dashboard.tsx @@ -30,7 +30,7 @@ export function Dashboard() { try { eventBus.emit(Events.NAVIGATE, { path }); addAuditEvent({ id: `nav-${Date.now()}`, event: 'navigation', timestamp: new Date().toISOString(), actor: 'user' }); - } catch (_) {} + } catch { /* ignored */ } navigate(path); }; diff --git a/desktop/ui/src/pages/Diagnostics.tsx b/desktop/ui/src/pages/Diagnostics.tsx index 1baf115..90e65c6 100644 --- a/desktop/ui/src/pages/Diagnostics.tsx +++ b/desktop/ui/src/pages/Diagnostics.tsx @@ -19,13 +19,13 @@ export function Diagnostics() { try { const info = await invoke('get_app_info'); setAppInfo(info); - } catch (_) { + } catch { setAppInfo(null); } try { const v = await getVersion(); setTauriVersion(v); - } catch (_) {} + } catch { /* ignored */ } })(); }, []); diff --git a/desktop/ui/tailwind.config.ts b/desktop/ui/tailwind.config.ts index 47bfa88..7889f76 100644 --- a/desktop/ui/tailwind.config.ts +++ b/desktop/ui/tailwind.config.ts @@ -1,3 +1,4 @@ +import tailwindcssAnimate from "tailwindcss-animate"; import type { Config } from "tailwindcss"; export default { @@ -22,5 +23,5 @@ export default { borderRadius: { lg: "var(--radius)", md: "calc(var(--radius) - 2px)", sm: "calc(var(--radius) - 4px)" }, }, }, - plugins: [require("tailwindcss-animate")], + plugins: [tailwindcssAnimate], } satisfies Config;