Skip to content

Commit cf10c3e

Browse files
committed
undo prettier
1 parent f0ed3ef commit cf10c3e

12 files changed

Lines changed: 48 additions & 38 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: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import type { NextConfig } from "next";
22

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

56
export default nextConfig;

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

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

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-
});
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+
});
5349

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

‎src/components/analytics/types.ts‎

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

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

1821
export interface EventProperties {
1922
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: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,9 @@ const EditUserForm = ({
7878
defaultValues: {
7979
userEmail: initialUserData.email,
8080
userType: initialUserData.role as unknown as
81-
"SUPERADMIN" | "ADMIN" | "USER",
81+
| "SUPERADMIN"
82+
| "ADMIN"
83+
| "USER",
8284
projects: initialUserData.projects || [],
8385
},
8486
});

‎src/components/ui/badge.tsx‎

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

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

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

‎src/components/ui/button.tsx‎

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

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

0 commit comments

Comments
 (0)