Skip to content

Commit

Permalink
feat: add board model in about tab
Browse files Browse the repository at this point in the history
  • Loading branch information
barrenechea committed May 23, 2024
1 parent 4a23871 commit c610757
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/components/skeletons/about.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export default function AboutSkeleton() {
return (
<TabView>
<dl className="flex flex-col">
<TableItem term="Board model"><div className="h-6 w-48 animate-pulse bg-neutral-200 dark:bg-neutral-700"></div></TableItem>
<TableItem term="Host name"><div className="h-6 w-48 animate-pulse bg-neutral-200 dark:bg-neutral-700"></div></TableItem>
<TableItem term="Daemon version"><div className="h-6 w-48 animate-pulse bg-neutral-200 dark:bg-neutral-700"></div></TableItem>
<TableItem term="Build time"><div className="h-6 w-48 animate-pulse bg-neutral-200 dark:bg-neutral-700"></div>
Expand Down
9 changes: 5 additions & 4 deletions src/lib/api/get.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,13 @@ interface PowerTabResponse {
}

interface AboutTabResponse {
api: string;
build_version: string;
buildroot: string;
buildtime: Date;
model: string;
hostname: string;
api: string;
version: string;
buildtime: Date;
buildroot: string;
build_version: string;
}

interface FlashStatus {
Expand Down
1 change: 1 addition & 0 deletions src/routes/_tabLayout/about.lazy.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ function About() {
return (
<TabView>
<dl className="flex flex-col">
<TableItem term="Board model">{data.model}</TableItem>
<TableItem term="Host name">{data.hostname}</TableItem>
<TableItem term="Daemon version">{`v${data.version}`}</TableItem>
<TableItem term="Build time">
Expand Down

0 comments on commit c610757

Please sign in to comment.