Skip to content

Commit c57c512

Browse files
authored
Merge branch 'main' into feat/getcloser/frontend-waiting
2 parents faa7849 + c479d8a commit c57c512

11 files changed

Lines changed: 80 additions & 72 deletions

File tree

getcloser/frontend/eslint.config.mjs

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { dirname } from "path";
2-
import { fileURLToPath } from "url";
3-
import { FlatCompat } from "@eslint/eslintrc";
1+
import { dirname } from 'path';
2+
import { fileURLToPath } from 'url';
3+
import { FlatCompat } from '@eslint/eslintrc';
44

55
const __filename = fileURLToPath(import.meta.url);
66
const __dirname = dirname(__filename);
@@ -10,14 +10,22 @@ const compat = new FlatCompat({
1010
});
1111

1212
const eslintConfig = [
13-
...compat.extends("next/core-web-vitals", "next/typescript"),
13+
...compat.extends('next/core-web-vitals', 'next/typescript'),
1414
{
15+
rules: {
16+
indent: ['error', 2, { SwitchCase: 1 }], // Enforce 2-space indentation
17+
'linebreak-style': ['error', 'unix'],
18+
quotes: ['error', 'single'],
19+
semi: ['error', 'always'],
20+
'object-curly-spacing': ['error', 'always'],
21+
'key-spacing': ['error', { beforeColon: false, afterColon: true }],
22+
},
1523
ignores: [
16-
"node_modules/**",
17-
".next/**",
18-
"out/**",
19-
"build/**",
20-
"next-env.d.ts",
24+
'node_modules/**',
25+
'.next/**',
26+
'out/**',
27+
'build/**',
28+
'next-env.d.ts',
2129
],
2230
},
2331
];
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const config = {
2-
plugins: ["@tailwindcss/postcss"],
2+
plugins: ['@tailwindcss/postcss'],
33
};
44

55
export default config;

getcloser/frontend/src/app/layout.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
'use client';
22

33

4-
import { Geist, Geist_Mono, Dongle } from "next/font/google";
5-
import "./globals.css";
4+
import { Geist, Geist_Mono, Dongle } from 'next/font/google';
5+
import './globals.css';
66
import { Providers } from './providers';
77
import { usePathname } from 'next/navigation';
88
import Header from '@/components/Header';
99

1010
const geistSans = Geist({
11-
variable: "--font-geist-sans",
12-
subsets: ["latin"],
11+
variable: '--font-geist-sans',
12+
subsets: ['latin'],
1313
});
1414

1515
const geistMono = Geist_Mono({
16-
variable: "--font-geist-mono",
17-
subsets: ["latin"],
16+
variable: '--font-geist-mono',
17+
subsets: ['latin'],
1818
});
1919

2020
const dongle = Dongle({

getcloser/frontend/src/app/page1/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ export default function Page1() {
6767
<div className="container mx-auto p-4 min-h-screen flex items-center justify-center">
6868
<main className="max-w-md mx-auto bg-card text-card-foreground p-6 rounded-lg shadow-md">
6969
<h1 className="text-5xl font-bold">친해지길바라</h1>
70-
<Image src="/logo.png" alt="Fail" width={52} height={58} style={{marginTop: 36, marginBottom: 36}} className="mx-auto block" />
71-
<div className="items-center text-center" style={{marginBottom: 36}}>
70+
<Image src="/logo.png" alt="Fail" width={52} height={58} style={{ marginTop: 36, marginBottom: 36 }} className="mx-auto block" />
71+
<div className="items-center text-center" style={{ marginBottom: 36 }}>
7272
<p className="text-md mt-1">Pseudo Lab</p>
7373
<p className="text-md">2nd Grand Gathering</p>
7474
<p className="text-md">2025. 12. 20</p>

getcloser/frontend/src/app/page4/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export default function Page4() {
4949
throw new Error(`HTTP error! status: ${response.status}`);
5050
}
5151

52-
alert("수령 완료!");
52+
alert('수령 완료!');
5353

5454
}
5555
};

getcloser/frontend/src/components/Modal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"use client";
1+
'use client';
22

33
import React from 'react';
44

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,37 @@
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(
8-
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
8+
'inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0',
99
{
1010
variants: {
1111
variant: {
12-
default: "bg-yellow-100 text-emerald-900 hover:bg-primary/90",
12+
default: 'bg-yellow-100 text-emerald-900 hover:bg-primary/90',
1313
destructive:
14-
"bg-destructive text-destructive-foreground hover:bg-destructive/90",
14+
'bg-destructive text-destructive-foreground hover:bg-destructive/90',
1515
outline:
16-
"border border-input text-yellow-100 hover:bg-accent hover:text-accent-foreground",
16+
'border border-input text-yellow-100 hover:bg-accent hover:text-accent-foreground',
1717
secondary:
18-
"bg-secondary text-secondary-foreground hover:bg-secondary/80",
19-
ghost: "hover:bg-accent hover:text-accent-foreground",
20-
link: "text-primary underline-offset-4 hover:underline",
18+
'bg-secondary text-secondary-foreground hover:bg-secondary/80',
19+
ghost: 'hover:bg-accent hover:text-accent-foreground',
20+
link: 'text-primary underline-offset-4 hover:underline',
2121
},
2222
size: {
23-
default: "h-10 px-4 py-2",
24-
sm: "h-9 rounded-md px-3",
25-
lg: "h-11 rounded-md px-8",
26-
icon: "h-10 w-10",
23+
default: 'h-10 px-4 py-2',
24+
sm: 'h-9 rounded-md px-3',
25+
lg: 'h-11 rounded-md px-8',
26+
icon: 'h-10 w-10',
2727
},
2828
},
2929
defaultVariants: {
30-
variant: "default",
31-
size: "default",
30+
variant: 'default',
31+
size: 'default',
3232
},
3333
}
34-
)
34+
);
3535

3636
export interface ButtonProps
3737
extends React.ButtonHTMLAttributes<HTMLButtonElement>,
@@ -41,16 +41,16 @@ export interface ButtonProps
4141

4242
const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(
4343
({ className, variant, size, asChild = false, ...props }, ref) => {
44-
const Comp = asChild ? Slot : "button"
44+
const Comp = asChild ? Slot : 'button';
4545
return (
4646
<Comp
4747
className={cn(buttonVariants({ variant, size, className }))}
4848
ref={ref}
4949
{...props}
5050
/>
51-
)
51+
);
5252
}
53-
)
54-
Button.displayName = "Button"
53+
);
54+
Button.displayName = 'Button';
5555

56-
export { Button, buttonVariants }
56+
export { Button, buttonVariants };
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
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

5-
const Input = React.forwardRef<HTMLInputElement, React.ComponentProps<"input">>(
5+
const Input = React.forwardRef<HTMLInputElement, React.ComponentProps<'input'>>(
66
({ className, type, ...props }, ref) => {
77
return (
88
<input
99
type={type}
1010
className={cn(
11-
"flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background 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-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
11+
'flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background 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-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm',
1212
className
1313
)}
1414
ref={ref}
1515
{...props}
1616
/>
17-
)
17+
);
1818
}
19-
)
20-
Input.displayName = "Input"
19+
);
20+
Input.displayName = 'Input';
2121

22-
export { Input }
22+
export { Input };
Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
"use client"
1+
'use client';
22

3-
import * as React from "react"
4-
import * as LabelPrimitive from "@radix-ui/react-label"
5-
import { cva, type VariantProps } from "class-variance-authority"
3+
import * as React from 'react';
4+
import * as LabelPrimitive from '@radix-ui/react-label';
5+
import { cva, type VariantProps } from 'class-variance-authority';
66

7-
import { cn } from "@/lib/utils"
7+
import { cn } from '@/lib/utils';
88

99
const labelVariants = cva(
10-
"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
11-
)
10+
'text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70'
11+
);
1212

1313
const Label = React.forwardRef<
1414
React.ElementRef<typeof LabelPrimitive.Root>,
@@ -20,7 +20,7 @@ const Label = React.forwardRef<
2020
className={cn(labelVariants(), className)}
2121
{...props}
2222
/>
23-
))
24-
Label.displayName = LabelPrimitive.Root.displayName
23+
));
24+
Label.displayName = LabelPrimitive.Root.displayName;
2525

26-
export { Label }
26+
export { Label };
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
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
const Textarea = React.forwardRef<
66
HTMLTextAreaElement,
7-
React.ComponentProps<"textarea">
7+
React.ComponentProps<'textarea'>
88
>(({ className, ...props }, ref) => {
99
return (
1010
<textarea
1111
className={cn(
12-
"flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
12+
'flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm',
1313
className
1414
)}
1515
ref={ref}
1616
{...props}
1717
/>
18-
)
19-
})
20-
Textarea.displayName = "Textarea"
18+
);
19+
});
20+
Textarea.displayName = 'Textarea';
2121

22-
export { Textarea }
22+
export { Textarea };

0 commit comments

Comments
 (0)