diff --git a/apps/recorder/src/app/core.rs b/apps/recorder/src/app/core.rs index fb3087a..7b07359 100644 --- a/apps/recorder/src/app/core.rs +++ b/apps/recorder/src/app/core.rs @@ -78,12 +78,25 @@ impl App { .await; }; + #[cfg(all(unix, debug_assertions))] + let quit = async { + signal::unix::signal(signal::unix::SignalKind::quit()) + .expect("Failed to install SIGQUIT handler") + .recv() + .await; + println!("Received SIGQUIT"); + }; + #[cfg(not(unix))] let terminate = std::future::pending::<()>(); + #[cfg(all(not(unix), debug_assertions))] + let quit = std::future::pending::<()>(); + tokio::select! { () = ctrl_c => {}, () = terminate => {}, + () = quit => {}, } } } diff --git a/apps/webui/src/app.css b/apps/webui/src/app.css index 11ec438..cafedda 100644 --- a/apps/webui/src/app.css +++ b/apps/webui/src/app.css @@ -138,4 +138,9 @@ body { @apply bg-background text-foreground; } + + button:not(:disabled), + [role="button"]:not(:disabled) { + cursor: pointer; + } } \ No newline at end of file diff --git a/apps/webui/src/components/layout/app-icon.tsx b/apps/webui/src/components/layout/app-icon.tsx index b34be10..9526392 100644 --- a/apps/webui/src/components/layout/app-icon.tsx +++ b/apps/webui/src/components/layout/app-icon.tsx @@ -23,7 +23,7 @@ export function AppIcon() { /> -
+
Konobangu @dumtruck
diff --git a/apps/webui/src/components/layout/app-not-found.tsx b/apps/webui/src/components/layout/app-not-found.tsx index 49cbf49..6b9d62f 100644 --- a/apps/webui/src/components/layout/app-not-found.tsx +++ b/apps/webui/src/components/layout/app-not-found.tsx @@ -33,7 +33,7 @@ export function AppNotFoundComponent() {
Return to website diff --git a/apps/webui/src/components/layout/nav-user.tsx b/apps/webui/src/components/layout/nav-user.tsx index 6afed55..f138ae2 100644 --- a/apps/webui/src/components/layout/nav-user.tsx +++ b/apps/webui/src/components/layout/nav-user.tsx @@ -50,7 +50,7 @@ export function NavUser({ CN -
+
{user.name} {user.email}
@@ -64,12 +64,12 @@ export function NavUser({ sideOffset={4} > -
+
CN -
+
{user.name} {user.email}
diff --git a/apps/webui/src/components/ui/card.tsx b/apps/webui/src/components/ui/card.tsx index 254281e..e04c9a3 100644 --- a/apps/webui/src/components/ui/card.tsx +++ b/apps/webui/src/components/ui/card.tsx @@ -1,84 +1,84 @@ -import * as React from "react" +import type * as React from 'react'; -import { cn } from "@/styles/utils" +import { cn } from '@/styles/utils'; -function Card({ className, ...props }: React.ComponentProps<"div">) { +function Card({ className, ...props }: React.ComponentProps<'div'>) { return (
- ) + ); } -function CardHeader({ className, ...props }: React.ComponentProps<"div">) { +function CardHeader({ className, ...props }: React.ComponentProps<'div'>) { return (
- ) + ); } -function CardTitle({ className, ...props }: React.ComponentProps<"div">) { +function CardTitle({ className, ...props }: React.ComponentProps<'div'>) { return (
- ) + ); } -function CardDescription({ className, ...props }: React.ComponentProps<"div">) { +function CardDescription({ className, ...props }: React.ComponentProps<'div'>) { return (
- ) + ); } -function CardAction({ className, ...props }: React.ComponentProps<"div">) { +function CardAction({ className, ...props }: React.ComponentProps<'div'>) { return (
- ) + ); } -function CardContent({ className, ...props }: React.ComponentProps<"div">) { +function CardContent({ className, ...props }: React.ComponentProps<'div'>) { return (
- ) + ); } -function CardFooter({ className, ...props }: React.ComponentProps<"div">) { +function CardFooter({ className, ...props }: React.ComponentProps<'div'>) { return (
- ) + ); } export { @@ -89,4 +89,4 @@ export { CardAction, CardDescription, CardContent, -} +}; diff --git a/dev.kdl b/dev.kdl index 0d1139a..bf4a8eb 100644 --- a/dev.kdl +++ b/dev.kdl @@ -31,8 +31,8 @@ layout { } } tab name="Recorder" { - pane command="cargo" { - args "watch" "-w" "apps/recorder" "-x" "run -p recorder --bin recorder_cli -- --environment development" + pane command="watchexec" { + args "-w" "apps/recorder" "--" "cargo" "run" "-p" "recorder" "--bin" "recorder_cli" "--" "--environment" "development" } } tab name="Deps" { diff --git a/justfile b/justfile index aaa2db9..3f6ca25 100644 --- a/justfile +++ b/justfile @@ -13,7 +13,7 @@ dev-proxy: # bacon recorder # crash on windows dev-recorder: - cargo watch -w "apps/recorder" -x "run -p recorder --bin recorder_cli -- --environment development" + watchexec -w apps/recorder -- cargo run -p recorder --bin recorder_cli -- --environment development dev-deps: docker compose -f devdeps.compose.yaml up