Skip to content

Commit 97b67ca

Browse files
authored
Merge pull request #43 from modelcontextprotocol/davidsp/prettier
run prettier
2 parents 752631f + 216c8a1 commit 97b67ca

File tree

12 files changed

+102
-101
lines changed

12 files changed

+102
-101
lines changed

client/components.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@
1717
"lib": "@/lib",
1818
"hooks": "@/hooks"
1919
}
20-
}
20+
}

client/postcss.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ export default {
33
tailwindcss: {},
44
autoprefixer: {},
55
},
6-
}
6+
};

client/src/components/ResourcesTab.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert";
22
import { Button } from "@/components/ui/button";
33
import { TabsContent } from "@/components/ui/tabs";
4-
import { ListResourcesResult, Resource } from "@modelcontextprotocol/sdk/types.js";
4+
import {
5+
ListResourcesResult,
6+
Resource,
7+
} from "@modelcontextprotocol/sdk/types.js";
58
import { AlertCircle, ChevronRight, FileText, RefreshCw } from "lucide-react";
69
import ListPane from "./ListPane";
710

client/src/components/ui/alert.tsx

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import * as React from "react"
2-
import { cva, type VariantProps } from "class-variance-authority"
1+
import * as React from "react";
2+
import { cva, type VariantProps } from "class-variance-authority";
33

4-
import { cn } from "@/lib/utils"
4+
import { cn } from "@/lib/utils";
55

66
const alertVariants = cva(
77
"relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",
@@ -16,8 +16,8 @@ const alertVariants = cva(
1616
defaultVariants: {
1717
variant: "default",
1818
},
19-
}
20-
)
19+
},
20+
);
2121

2222
const Alert = React.forwardRef<
2323
HTMLDivElement,
@@ -29,8 +29,8 @@ const Alert = React.forwardRef<
2929
className={cn(alertVariants({ variant }), className)}
3030
{...props}
3131
/>
32-
))
33-
Alert.displayName = "Alert"
32+
));
33+
Alert.displayName = "Alert";
3434

3535
const AlertTitle = React.forwardRef<
3636
HTMLParagraphElement,
@@ -41,8 +41,8 @@ const AlertTitle = React.forwardRef<
4141
className={cn("mb-1 font-medium leading-none tracking-tight", className)}
4242
{...props}
4343
/>
44-
))
45-
AlertTitle.displayName = "AlertTitle"
44+
));
45+
AlertTitle.displayName = "AlertTitle";
4646

4747
const AlertDescription = React.forwardRef<
4848
HTMLParagraphElement,
@@ -53,7 +53,7 @@ const AlertDescription = React.forwardRef<
5353
className={cn("text-sm [&_p]:leading-relaxed", className)}
5454
{...props}
5555
/>
56-
))
57-
AlertDescription.displayName = "AlertDescription"
56+
));
57+
AlertDescription.displayName = "AlertDescription";
5858

59-
export { Alert, AlertTitle, AlertDescription }
59+
export { Alert, AlertTitle, AlertDescription };

client/src/components/ui/button.tsx

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import * as React from "react"
2-
import { Slot } from "@radix-ui/react-slot"
3-
import { cva, type VariantProps } from "class-variance-authority"
1+
import * as React from "react";
2+
import { Slot } from "@radix-ui/react-slot";
3+
import { cva, type VariantProps } from "class-variance-authority";
44

5-
import { cn } from "@/lib/utils"
5+
import { cn } from "@/lib/utils";
66

77
const buttonVariants = cva(
88
"inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",
@@ -31,27 +31,27 @@ const buttonVariants = cva(
3131
variant: "default",
3232
size: "default",
3333
},
34-
}
35-
)
34+
},
35+
);
3636

3737
export interface ButtonProps
3838
extends React.ButtonHTMLAttributes<HTMLButtonElement>,
3939
VariantProps<typeof buttonVariants> {
40-
asChild?: boolean
40+
asChild?: boolean;
4141
}
4242

4343
const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(
4444
({ className, variant, size, asChild = false, ...props }, ref) => {
45-
const Comp = asChild ? Slot : "button"
45+
const Comp = asChild ? Slot : "button";
4646
return (
4747
<Comp
4848
className={cn(buttonVariants({ variant, size, className }))}
4949
ref={ref}
5050
{...props}
5151
/>
52-
)
53-
}
54-
)
55-
Button.displayName = "Button"
52+
);
53+
},
54+
);
55+
Button.displayName = "Button";
5656

57-
export { Button, buttonVariants }
57+
export { Button, buttonVariants };

client/src/components/ui/input.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import * as React from "react"
1+
import * as React from "react";
22

3-
import { cn } from "@/lib/utils"
3+
import { cn } from "@/lib/utils";
44

55
export interface InputProps
66
extends React.InputHTMLAttributes<HTMLInputElement> {}
@@ -12,14 +12,14 @@ const Input = React.forwardRef<HTMLInputElement, InputProps>(
1212
type={type}
1313
className={cn(
1414
"flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",
15-
className
15+
className,
1616
)}
1717
ref={ref}
1818
{...props}
1919
/>
20-
)
21-
}
22-
)
23-
Input.displayName = "Input"
20+
);
21+
},
22+
);
23+
Input.displayName = "Input";
2424

25-
export { Input }
25+
export { Input };

client/src/components/ui/label.tsx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import * as React from "react"
2-
import * as LabelPrimitive from "@radix-ui/react-label"
3-
import { cva, type VariantProps } from "class-variance-authority"
1+
import * as React from "react";
2+
import * as LabelPrimitive from "@radix-ui/react-label";
3+
import { cva, type VariantProps } from "class-variance-authority";
44

5-
import { cn } from "@/lib/utils"
5+
import { cn } from "@/lib/utils";
66

77
const labelVariants = cva(
8-
"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
9-
)
8+
"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",
9+
);
1010

1111
const Label = React.forwardRef<
1212
React.ElementRef<typeof LabelPrimitive.Root>,
@@ -18,7 +18,7 @@ const Label = React.forwardRef<
1818
className={cn(labelVariants(), className)}
1919
{...props}
2020
/>
21-
))
22-
Label.displayName = LabelPrimitive.Root.displayName
21+
));
22+
Label.displayName = LabelPrimitive.Root.displayName;
2323

24-
export { Label }
24+
export { Label };

client/src/components/ui/select.tsx

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
import * as React from "react"
1+
import * as React from "react";
22
import {
33
CaretSortIcon,
44
CheckIcon,
55
ChevronDownIcon,
66
ChevronUpIcon,
7-
} from "@radix-ui/react-icons"
8-
import * as SelectPrimitive from "@radix-ui/react-select"
7+
} from "@radix-ui/react-icons";
8+
import * as SelectPrimitive from "@radix-ui/react-select";
99

10-
import { cn } from "@/lib/utils"
10+
import { cn } from "@/lib/utils";
1111

12-
const Select = SelectPrimitive.Root
12+
const Select = SelectPrimitive.Root;
1313

14-
const SelectGroup = SelectPrimitive.Group
14+
const SelectGroup = SelectPrimitive.Group;
1515

16-
const SelectValue = SelectPrimitive.Value
16+
const SelectValue = SelectPrimitive.Value;
1717

1818
const SelectTrigger = React.forwardRef<
1919
React.ElementRef<typeof SelectPrimitive.Trigger>,
@@ -23,7 +23,7 @@ const SelectTrigger = React.forwardRef<
2323
ref={ref}
2424
className={cn(
2525
"flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",
26-
className
26+
className,
2727
)}
2828
{...props}
2929
>
@@ -32,8 +32,8 @@ const SelectTrigger = React.forwardRef<
3232
<CaretSortIcon className="h-4 w-4 opacity-50" />
3333
</SelectPrimitive.Icon>
3434
</SelectPrimitive.Trigger>
35-
))
36-
SelectTrigger.displayName = SelectPrimitive.Trigger.displayName
35+
));
36+
SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
3737

3838
const SelectScrollUpButton = React.forwardRef<
3939
React.ElementRef<typeof SelectPrimitive.ScrollUpButton>,
@@ -43,14 +43,14 @@ const SelectScrollUpButton = React.forwardRef<
4343
ref={ref}
4444
className={cn(
4545
"flex cursor-default items-center justify-center py-1",
46-
className
46+
className,
4747
)}
4848
{...props}
4949
>
5050
<ChevronUpIcon />
5151
</SelectPrimitive.ScrollUpButton>
52-
))
53-
SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName
52+
));
53+
SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
5454

5555
const SelectScrollDownButton = React.forwardRef<
5656
React.ElementRef<typeof SelectPrimitive.ScrollDownButton>,
@@ -60,15 +60,15 @@ const SelectScrollDownButton = React.forwardRef<
6060
ref={ref}
6161
className={cn(
6262
"flex cursor-default items-center justify-center py-1",
63-
className
63+
className,
6464
)}
6565
{...props}
6666
>
6767
<ChevronDownIcon />
6868
</SelectPrimitive.ScrollDownButton>
69-
))
69+
));
7070
SelectScrollDownButton.displayName =
71-
SelectPrimitive.ScrollDownButton.displayName
71+
SelectPrimitive.ScrollDownButton.displayName;
7272

7373
const SelectContent = React.forwardRef<
7474
React.ElementRef<typeof SelectPrimitive.Content>,
@@ -81,7 +81,7 @@ const SelectContent = React.forwardRef<
8181
"relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
8282
position === "popper" &&
8383
"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
84-
className
84+
className,
8585
)}
8686
position={position}
8787
{...props}
@@ -91,16 +91,16 @@ const SelectContent = React.forwardRef<
9191
className={cn(
9292
"p-1",
9393
position === "popper" &&
94-
"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"
94+
"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]",
9595
)}
9696
>
9797
{children}
9898
</SelectPrimitive.Viewport>
9999
<SelectScrollDownButton />
100100
</SelectPrimitive.Content>
101101
</SelectPrimitive.Portal>
102-
))
103-
SelectContent.displayName = SelectPrimitive.Content.displayName
102+
));
103+
SelectContent.displayName = SelectPrimitive.Content.displayName;
104104

105105
const SelectLabel = React.forwardRef<
106106
React.ElementRef<typeof SelectPrimitive.Label>,
@@ -111,8 +111,8 @@ const SelectLabel = React.forwardRef<
111111
className={cn("px-2 py-1.5 text-sm font-semibold", className)}
112112
{...props}
113113
/>
114-
))
115-
SelectLabel.displayName = SelectPrimitive.Label.displayName
114+
));
115+
SelectLabel.displayName = SelectPrimitive.Label.displayName;
116116

117117
const SelectItem = React.forwardRef<
118118
React.ElementRef<typeof SelectPrimitive.Item>,
@@ -122,7 +122,7 @@ const SelectItem = React.forwardRef<
122122
ref={ref}
123123
className={cn(
124124
"relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
125-
className
125+
className,
126126
)}
127127
{...props}
128128
>
@@ -133,8 +133,8 @@ const SelectItem = React.forwardRef<
133133
</span>
134134
<SelectPrimitive.ItemText>{children}</SelectPrimitive.ItemText>
135135
</SelectPrimitive.Item>
136-
))
137-
SelectItem.displayName = SelectPrimitive.Item.displayName
136+
));
137+
SelectItem.displayName = SelectPrimitive.Item.displayName;
138138

139139
const SelectSeparator = React.forwardRef<
140140
React.ElementRef<typeof SelectPrimitive.Separator>,
@@ -145,8 +145,8 @@ const SelectSeparator = React.forwardRef<
145145
className={cn("-mx-1 my-1 h-px bg-muted", className)}
146146
{...props}
147147
/>
148-
))
149-
SelectSeparator.displayName = SelectPrimitive.Separator.displayName
148+
));
149+
SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
150150

151151
export {
152152
Select,
@@ -159,4 +159,4 @@ export {
159159
SelectSeparator,
160160
SelectScrollUpButton,
161161
SelectScrollDownButton,
162-
}
162+
};

0 commit comments

Comments
 (0)