fix(ci): ESM import in tailwind, remove catch(_), add Tauri system deps
This commit is contained in:
parent
febcde0cfc
commit
233c3fe6f4
5
.github/workflows/ci.yml
vendored
5
.github/workflows/ci.yml
vendored
@ -35,6 +35,11 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- 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
|
- name: Install Rust toolchain
|
||||||
uses: dtolnay/rust-toolchain@stable
|
uses: dtolnay/rust-toolchain@stable
|
||||||
with:
|
with:
|
||||||
|
|||||||
@ -19,7 +19,7 @@ function RouteTracker() {
|
|||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
try {
|
try {
|
||||||
useAppStore.getState().setCurrentRoute(location.pathname);
|
useAppStore.getState().setCurrentRoute(location.pathname);
|
||||||
} catch (_) {}
|
} catch { /* ignored */ }
|
||||||
}, [location.pathname]);
|
}, [location.pathname]);
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -68,7 +68,7 @@ export function Layout({ children }: LayoutProps) {
|
|||||||
try {
|
try {
|
||||||
eventBus.emit(Events.NAVIGATE, { path });
|
eventBus.emit(Events.NAVIGATE, { path });
|
||||||
eventBus.emit(Events.ROUTE_CHANGED, { path });
|
eventBus.emit(Events.ROUTE_CHANGED, { path });
|
||||||
} catch (_) {}
|
} catch { /* ignored */ }
|
||||||
};
|
};
|
||||||
|
|
||||||
const navItems = [
|
const navItems = [
|
||||||
|
|||||||
@ -30,7 +30,7 @@ export function Dashboard() {
|
|||||||
try {
|
try {
|
||||||
eventBus.emit(Events.NAVIGATE, { path });
|
eventBus.emit(Events.NAVIGATE, { path });
|
||||||
addAuditEvent({ id: `nav-${Date.now()}`, event: 'navigation', timestamp: new Date().toISOString(), actor: 'user' });
|
addAuditEvent({ id: `nav-${Date.now()}`, event: 'navigation', timestamp: new Date().toISOString(), actor: 'user' });
|
||||||
} catch (_) {}
|
} catch { /* ignored */ }
|
||||||
navigate(path);
|
navigate(path);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -19,13 +19,13 @@ export function Diagnostics() {
|
|||||||
try {
|
try {
|
||||||
const info = await invoke<AppInfo>('get_app_info');
|
const info = await invoke<AppInfo>('get_app_info');
|
||||||
setAppInfo(info);
|
setAppInfo(info);
|
||||||
} catch (_) {
|
} catch {
|
||||||
setAppInfo(null);
|
setAppInfo(null);
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
const v = await getVersion();
|
const v = await getVersion();
|
||||||
setTauriVersion(v);
|
setTauriVersion(v);
|
||||||
} catch (_) {}
|
} catch { /* ignored */ }
|
||||||
})();
|
})();
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
|
|||||||
@ -1,3 +1,4 @@
|
|||||||
|
import tailwindcssAnimate from "tailwindcss-animate";
|
||||||
import type { Config } from "tailwindcss";
|
import type { Config } from "tailwindcss";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
@ -22,5 +23,5 @@ export default {
|
|||||||
borderRadius: { lg: "var(--radius)", md: "calc(var(--radius) - 2px)", sm: "calc(var(--radius) - 4px)" },
|
borderRadius: { lg: "var(--radius)", md: "calc(var(--radius) - 2px)", sm: "calc(var(--radius) - 4px)" },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
plugins: [require("tailwindcss-animate")],
|
plugins: [tailwindcssAnimate],
|
||||||
} satisfies Config;
|
} satisfies Config;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user