Skip to content

Commit f0ed3ef

Browse files
committed
ran prettier
1 parent ccee65c commit f0ed3ef

12 files changed

Lines changed: 38 additions & 48 deletions

File tree

‎README.md‎

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
<div align="center">
2-
3-
<a href="">![GitHub Releases](https://img.shields.io/github/v/release/GTBitsOfGood/juno?include_prereleases&style=for-the-badge)</a>
4-
<a href="">![TypeScript](https://img.shields.io/badge/typescript-%23007ACC.svg?style=for-the-badge&logo=typescript&logoColor=white)</a>
5-
<a href="">![Next.js](https://img.shields.io/badge/next.js-000000?style=for-the-badge&logo=nextdotjs&logoColor=white)</a>
6-
2+
3+
<a href="">![GitHub Releases](https://img.shields.io/github/v/release/GTBitsOfGood/juno?include_prereleases&style=for-the-badge)</a>
4+
<a href="">![TypeScript](https://img.shields.io/badge/typescript-%23007ACC.svg?style=for-the-badge&logo=typescript&logoColor=white)</a>
5+
<a href="">![Next.js](https://img.shields.io/badge/next.js-000000?style=for-the-badge&logo=nextdotjs&logoColor=white)</a>
6+
77
</div>
8-
8+
99
<h3 align="center">
1010
Juno Dashboard
1111
</h3>
1212

1313
<div align="center">
14-
14+
1515
[Juno](https://github.com/GTBitsOfGood/juno)'s official microservice dashboard.
1616

1717
</div>
1818

1919
# Project Description
2020

21-
This is the dashboard code for easily interacting with [Juno](https://github.com/GTBitsOfGood/juno), [Bits of Good](https://bitsofgood.org/)'s central microservice architecture. See the main repository for more details.
21+
This is the dashboard code for easily interacting with [Juno](https://github.com/GTBitsOfGood/juno), [Bits of Good](https://bitsofgood.org/)'s central microservice architecture. See the main repository for more details.
2222

2323
## Prequisites
2424

@@ -32,7 +32,7 @@ Installing all needed packages:
3232
bun install
3333
```
3434

35-
## Development
35+
## Development
3636

3737
### Running locally
3838

@@ -66,6 +66,6 @@ Now, you should be able to enter API request fields. The username and password s
6666

6767
or if you are using a different project, then replace with that project name.
6868

69-
### Components
69+
### Components
7070

7171
This repository uses [shadcn/ui](https://ui.shadcn.com/) for streamlining component development.

‎components.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@
1818
"hooks": "@/hooks"
1919
},
2020
"iconLibrary": "lucide"
21-
}
21+
}

‎next.config.ts‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import type { NextConfig } from "next";
22

3-
const nextConfig: NextConfig = {
4-
};
3+
const nextConfig: NextConfig = {};
54

65
export default nextConfig;

‎src/app/(dashboard)/projects/[projectId]/keys/page.tsx‎

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@ import {
1616
import { Separator } from "@/components/ui/separator";
1717
import { getApiKeysAction, deleteApiKeyByIdAction } from "@/lib/actions";
1818
import { getProjectById } from "@/lib/project";
19-
import { UserType, useUserSession } from "@/components/providers/SessionProvider";
19+
import {
20+
UserType,
21+
useUserSession,
22+
} from "@/components/providers/SessionProvider";
2023
import { useQuery } from "@tanstack/react-query";
2124
import { ProjectResponse } from "juno-sdk/build/main/internal/index";
2225
import { useParams } from "next/navigation";
@@ -38,14 +41,15 @@ export default function ProjectKeysPage() {
3841
const { projectId } = useParams<{ projectId: string }>();
3942
const { user } = useUserSession();
4043

41-
const { isLoading: projectLoading, data: project } = useQuery<ProjectResponse>({
42-
queryKey: ["project", projectId],
43-
queryFn: async () => {
44-
const result = await getProjectById(Number(projectId));
45-
if (!result.success) throw new Error(result.error);
46-
return result.project;
47-
},
48-
});
44+
const { isLoading: projectLoading, data: project } =
45+
useQuery<ProjectResponse>({
46+
queryKey: ["project", projectId],
47+
queryFn: async () => {
48+
const result = await getProjectById(Number(projectId));
49+
if (!result.success) throw new Error(result.error);
50+
return result.project;
51+
},
52+
});
4953

5054
const [apiKeys, setApiKeys] = useState<ApiKeyColumn[]>([]);
5155
const [isLoading, setIsLoading] = useState(true);

‎src/components/analytics/types.ts‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,7 @@ export interface Event {
1313
}
1414

1515
export type EventMetric =
16-
| "click_events"
17-
| "input_events"
18-
| "visit_events"
19-
| "custom_events";
16+
"click_events" | "input_events" | "visit_events" | "custom_events";
2017

2118
export interface EventProperties {
2219
objectId?: string;

‎src/components/apiKeyTable/columns.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,4 +190,4 @@ export const apiKeyColumns = (
190190
!("accessorKey" in column && column.accessorKey === "linkedProject"),
191191
)
192192
: columns;
193-
};
193+
};

‎src/components/forms/CreateAPIKeyForm.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ type CreateAPIKeyFormProps = {
5959
onKeyAdd: (newKey: APIKey) => void;
6060
onClose?: () => void;
6161
projects?: string[];
62-
lockedProjectName?: string;
62+
lockedProjectName?: string;
6363
};
6464

6565
const CreateAPIKeyForm = ({

‎src/components/forms/EditUserForm.tsx‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,7 @@ const EditUserForm = ({
7878
defaultValues: {
7979
userEmail: initialUserData.email,
8080
userType: initialUserData.role as unknown as
81-
| "SUPERADMIN"
82-
| "ADMIN"
83-
| "USER",
81+
"SUPERADMIN" | "ADMIN" | "USER",
8482
projects: initialUserData.projects || [],
8583
},
8684
});

‎src/components/ui/badge.tsx‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ const badgeVariants = cva(
2424
);
2525

2626
export interface BadgeProps
27-
extends React.HTMLAttributes<HTMLDivElement>,
27+
extends
28+
React.HTMLAttributes<HTMLDivElement>,
2829
VariantProps<typeof badgeVariants> {}
2930

3031
function Badge({ className, variant, ...props }: BadgeProps) {

‎src/components/ui/button.tsx‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ const buttonVariants = cva(
3535
);
3636

3737
export interface ButtonProps
38-
extends React.ButtonHTMLAttributes<HTMLButtonElement>,
38+
extends
39+
React.ButtonHTMLAttributes<HTMLButtonElement>,
3940
VariantProps<typeof buttonVariants> {
4041
asChild?: boolean;
4142
}

0 commit comments

Comments
 (0)