code
stringlengths
41
34.3k
lang
stringclasses
8 values
review
stringlengths
1
4.74k
@@ -0,0 +1,43 @@ +import java.util.ArrayList; +import java.util.List; + +public class LottoTicket { + private Money ticketPrice; + private Lottos autoLottos; + private Lottos manualLottos; + + public LottoTicket(Money ticketPrice, Lottos autoLottos, Lottos manualLottos) { + this.ticketPrice = ticketP...
Java
์—ฌ๊ธฐ๋„ ํ–‰์œ„๊ฐ€ ์—†๊ณ  ๋ฐ์ดํ„ฐ + getter ๋ฟ์ด๋„ค์š”. ๊ทธ๋Ÿฐ๋ฐ ์ด๋ ‡๊ฒŒ ํด๋ž˜์Šค๋ฅผ ๋‚˜๋ˆ ๋ณด๋ ค๊ณ  ์ตœ๋Œ€ํ•œ ์‹œ๋„ํ•˜์‹  ์  ๐Ÿ‘
@@ -0,0 +1,35 @@ +import java.util.List; + +public class LottoUser { + private Money investMoney; + private int countOfManualLotto; + private List<List<LottoNo>> numbersOfManualLottos; + + private LottoTicket lottoTicket; + + public LottoUser(Money investMoney, int countOfManualLotto, List<List<LottoNo>>...
Java
์—ฌ๊ธฐ๋„ setter getter ๋ฟ ์ด๋„ค์š” ใ… 
@@ -0,0 +1,65 @@ +import java.util.ArrayList; +import java.util.Collections; +import java.util.List; + +public final class LottoPurchaseService { + public final static Money LOTTO_PRICE = Money.valueOf(1000); + + public static Money validatePurchase(Money inputMoney, int countOfManualLotto) throws OutOfConditionE...
Java
๋ฐ์ดํ„ฐ์™€ ํ”„๋กœ์„ธ์Šค๊ฐ€ ๋”ฐ๋กœ ์žˆ๋Š” ๊ฒƒ == ์ ˆ์ฐจ์ง€ํ–ฅ ํ”„๋กœ๊ทธ๋ž˜๋ฐ ํ˜„ ์ƒํ™ฉ : ๋ฐ์ดํ„ฐ = LottoSeller, Ticket, User ๋“ฑ (๋ฐ์ดํ„ฐ + getter) ํ”„๋กœ์„ธ์Šค = Service (๋ฐ์ดํ„ฐ get ํ•ด์„œ ๋กœ์ง ์ฒ˜๋ฆฌ) ๋‹ต : MVC์™€ layered architecture๋ฅผ ์žŠ๊ณ  view ์™€ ๋น„์ฆˆ๋‹ˆ์Šค ๋กœ์ง์„ ๋ถ„๋ฆฌํ•˜๋Š” ๊ฒƒ๋งŒ ๊ธฐ์–ตํ•˜๊ณ  ์งœ๋ณด๊ธฐ
@@ -0,0 +1,65 @@ +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import java.util.Scanner; +import java.util.stream.Collectors; + +public final class InputView { + + public static Money scanMoney(Scanner scanner) { + System.out.println("\n๊ตฌ์ž…๊ธˆ์•ก์„ ์ž…๋ ฅํ•ด ์ฃผ์„ธ์š”."); + + return Mon...
Java
view ์—์„œ๋Š” ๋ฐ์ดํ„ฐ๋ฅผ scan ํ•ด์˜ค๋Š” ์ฑ…์ž„๋งŒ ์žˆ์Šต๋‹ˆ๋‹ค. ์ง€๊ธˆ์€ ๋ณ€ํ™˜ ๋กœ์ง๊นŒ์ง€ ์—ฌ๊ธฐ์„œ ์ฒ˜๋ฆฌํ•˜๊ณ  ์žˆ๋„ค์š”~!
@@ -0,0 +1,29 @@ +public final class PurchaseResultView { + public void notifyIfChangeLeft(LottoSeller seller) { + if (!seller.getChange().equals(Money.ZERO)) { + System.out.println("์ž”๋ˆ " + seller.getChange() + "์›์ด ๋‚จ์•˜์Šต๋‹ˆ๋‹ค."); + System.out.println(); + } + } + + public void pr...
Java
finall class ๋กœ ํ•˜์‹  ์ด์œ ๊ฐ€ ๊ถ๊ธˆํ•ฉ๋‹ˆ๋‹ค~
@@ -0,0 +1,77 @@ +import React, { useState } from "react"; +import styled from "styled-components"; +import { Star as StarIcon } from "lucide-react"; + +interface StarRatingProps { + totalStars?: number; + initialRating?: number; + onRatingChange?: (rating: number) => void; +} + +const BackgroundContainer = styled.d...
Unknown
filled ์•ˆ์ชฝ์— String์œผ๋กœ ๊ฐ์‹ธ์ฃผ์„ธ์š”
@@ -0,0 +1,77 @@ +import React, { useState } from "react"; +import styled from "styled-components"; +import { Star as StarIcon } from "lucide-react"; + +interface StarRatingProps { + totalStars?: number; + initialRating?: number; + onRatingChange?: (rating: number) => void; +} + +const BackgroundContainer = styled.d...
Unknown
์ œ๊ฐ€ ํ›„๊ธฐ ํŽ˜์ด์ง€ ๋งŒ๋“ค๋ฉด์„œ ์ด ๋ถ€๋ถ„ ์ˆ˜์ •ํ•ด์„œ ํ•œ๊บผ๋ฒˆ์— PR ์˜ฌ๋ฆฌ๊ฒ ์Šต๋‹ˆ๋‹ค
@@ -0,0 +1,91 @@ +package christmas.Controller; + +import christmas.Domain.EventBenefitSettler; +import christmas.Domain.EventPlanner; +import christmas.Event.EventBadge; +import christmas.View.InputView; +import christmas.View.OutputView; +import java.util.Map; + +public class EventController { + public EventPlanne...
Java
```suggestion public void takeVisitDate() { try { String visitDate = InputView.readVisitDate(); eventBenefitSettler = new EventBenefitSettler(visitDate); } catch (IllegalArgumentException e) { OutputView.printException(e); takeVisitDate(); ...
@@ -0,0 +1,92 @@ +package christmas.Util; + +import static christmas.Event.EventOption.EVENT_END_DATE; +import static christmas.Event.EventOption.EVENT_START_DATE; +import static christmas.Event.EventOption.MAX_ORDER_QUANTITY; +import static christmas.Message.OutputMessage.NOT_A_VALID_DATE; + +import christmas.Domain.M...
Java
์ •๊ทœํ‘œํ˜„์‹์„ ์ •๋ง ์ž˜ ํ™œ์šฉํ•˜์‹œ๋Š”๊ตฐ์š”!๐Ÿ‘๐Ÿ‘ ๊ทธ๋Ÿฐ๋ฐ `(?:,|$)` ๋Š” ์–ด๋–ค ์—ญํ• ์„ ํ•˜๋Š”์ง€ ๊ถ๊ธˆํ•ฉ๋‹ˆ๋‹ค!
@@ -0,0 +1,92 @@ +package christmas.Util; + +import static christmas.Event.EventOption.EVENT_END_DATE; +import static christmas.Event.EventOption.EVENT_START_DATE; +import static christmas.Event.EventOption.MAX_ORDER_QUANTITY; +import static christmas.Message.OutputMessage.NOT_A_VALID_DATE; + +import christmas.Domain.M...
Java
`isDrinkMenu` ๋Š” `MenuBoard` ์—๊ฒŒ ๋„˜๊ฒจ์ฃผ๋ฉด ์–ด๋–จ๊นŒ์š”?? ์Œ๋ฃŒ๋ฅผ ํ™•์ธํ•˜๋Š” ์ฑ…์ž„์€ `MenuBoard` ๊ฐ€ ๊ฐ€์ง€๊ณ  ์žˆ๋Š”๊ฒŒ ๋” ์–ด์šธ๋ฆด ๊ฒƒ ๊ฐ™์•„์š”! ๐Ÿ˜
@@ -0,0 +1,92 @@ +package christmas.Util; + +import static christmas.Event.EventOption.EVENT_END_DATE; +import static christmas.Event.EventOption.EVENT_START_DATE; +import static christmas.Event.EventOption.MAX_ORDER_QUANTITY; +import static christmas.Message.OutputMessage.NOT_A_VALID_DATE; + +import christmas.Domain.M...
Java
ํ•ด๋‹น ์ •๊ทœํ‘œํ˜„์‹์ด ๋ฐ˜๋ณต๋˜๋Š” ๊ฒƒ ๊ฐ™์•„์š”! ๊ทธ๋ ‡๋‹ค๋ฉด Pattern ๊ฐ์ฒด๋ฅผ ์บ์‹ฑํ•ด์ฃผ๋ฉด ์–ด๋–จ๊นŒ์š”?? ๋””์Šค์ฝ”๋“œ ํ•จ๊ป˜ ๋‚˜๋ˆ„๊ธฐ์— ํ˜„์ง€๋‹˜์ด[ ๊ณต์œ ํ•˜์‹  ๊ธ€](https://velog.io/@dlguswl936/%EA%B3%B5%EB%B6%80%ED%95%9C-%EA%B2%83-String.matches%EB%8A%94-%EC%99%9C-%EC%84%B1%EB%8A%A5%EC%97%90-%EC%95%88-%EC%A2%8B%EC%9D%84%EA%B9%8C#%EA%B2%B0%EB%A1%A0-pattern-%EA%B0%9D%EC%B2%B4%EB%A5%BC-%EC%BA%90%EC%8B%B1...
@@ -0,0 +1,30 @@ +package christmas.Util; + +public class CommaFormatter { + public static String formatWithComma(int number) { + String numberStr = Integer.toString(number); + int length = numberStr.length(); + + if (length <= 3) { + return numberStr; + } + String resul...
Java
์ฝค๋งˆ๋ฅผ ์œ„ํ•ด ์ „์šฉ ๊ฐ์ฒด๋ฅผ ๋งŒ๋“ค์–ด์ฃผ์…จ๊ตฐ์š”! ์ง์ ‘ ๋งŒ๋“ค์–ด์ฃผ๋Š” ๊ฒƒ๋„ ์ข‹๋„ค์š”! ๊ทธ๋Ÿฐ๋ฐ ๋ˆ ๋‹จ์œ„๋ฅผ ์œ„ํ•œ ์ฝค๋งˆ๋ฅผ ๋„ฃ์–ด์ฃผ๋Š” ๊ธฐ๋Šฅ์„ ์ž๋ฐ”์—์„œ ์ œ๊ณตํ•˜๊ณ  ์žˆ๋‹ต๋‹ˆ๋‹ค! ใ…Žใ…Ž DecimalFormat ์— ๋Œ€ํ•ด์„œ ์•Œ์•„๋ณด์‹œ๋ฉด ์ข‹์„ ๊ฒƒ ๊ฐ™์•„์š”! ์ œ๊ฐ€ [์ฐธ๊ณ ํ–ˆ๋˜ ๊ธ€](https://jamesdreaming.tistory.com/203)์„ ๊ณต์œ ํ•ฉ๋‹ˆ๋‹ค!
@@ -0,0 +1,67 @@ +package christmas.Domain; + +import christmas.Util.OrderMenuValidator; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.regex.Matcher; +import java.util.regex.Pattern; + +public class EventPlanner { + private final List<Menu> o...
Java
```suggestion public Map<String, Integer> calculateCategoryCount() { Map<String, Integer> categoryCount = new HashMap<>(); int count = 0; for (Menu menu : orderMenu) { String menuCategory = menu.getMenuCategory(); categoryCount.put(menuCategory, categoryCount.ge...
@@ -0,0 +1,102 @@ +package christmas.Domain; + +import christmas.Event.EventBenefit; +import christmas.Event.EventOption; +import christmas.Event.SpecialDiscountDay; +import christmas.Util.OrderMenuValidator; +import java.time.DayOfWeek; +import java.time.LocalDate; +import java.util.HashMap; +import java.util.Map; + +...
Java
`LocalDate` ๋ฅผ ํ™œ์šฉํ•˜๋ฉด ์š”์ผ์„ ํŒŒ์•…ํ•  ์ˆ˜ ์žˆ๊ตฐ์š”! ๋ฐฐ์›Œ๊ฐ‘๋‹ˆ๋‹ค! ๐Ÿ˜
@@ -1,23 +1,20 @@ <template> - <button - @click=" - () => { - if (!props.disabled) props.onClick(); - } - " - :class="getNextButtonStyle()" - > - <slot></slot> + <button @click="handleNextButtonClick" :class="getNextButtonStyle()"> + <slot /> </button> </template> <script setu...
Unknown
๋‹จ์ˆœ ๊ถ๊ธˆ์ฆ์œผ๋กœ ์งˆ๋ฌธ๋“œ๋ฆฝ๋‹ˆ๋‹ค. undefined๋ฅผ ํƒ€์ž…์œผ๋กœ ์ง€์ •ํ•˜์‹  ์ด์œ ๊ฐ€ ์žˆ์„๊นŒ์š”? NextButton.vue์˜ ๋ถ€๋ชจ ์ปดํฌ๋„ŒํŠธ์—์„œ isPrimary ๊ฐ’์„ ๋ถ€์—ฌํ•˜์ง€ ์•Š์„ ๋•Œ๊ฐ€ ์žˆ์–ด undefined๋ฅผ ํฌํ•จํ•œ ๊ฒƒ์œผ๋กœ ๋ณด์ด๋Š”๋ฐ, ์ด ๊ฒฝ์šฐ๋Š” ? ๋งŒ์œผ๋กœ๋„ ์ถฉ๋ถ„ํžˆ ํ‘œํ˜„์ด ๋œ ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค. ํŠนํžˆ boolean์ด๊ธฐ๋•Œ๋ฌธ์— undefined์ผ ๋•Œ falsyํ•˜๊ฒŒ ์ธ์‹์ด ๋  ๊ฒƒ ๊ฐ™์€๋ฐ ์ถ”๊ฐ€ํ•˜์‹  ์ด์œ ๊ฐ€ ๊ถ๊ธˆํ•ฉ๋‹ˆ๋‹ค~
@@ -3,8 +3,8 @@ <p class="text-medium font-semi_bold">{{ title }}</p> <div class="flex gap-x-3"> <button - v-for="size in sizes" - :key="size.id" + v-for="(size, index) in sizes" + :key="getButtonKey(size, index)" class="flex flex-col items-center justify-between ga...
Unknown
storeToRefs ๋ฅผ ์‚ฌ์šฉํ•ด์„œ ๋ฐ˜์‘์„ฑ์„ ์‚ด๋ฆฌ์…จ๋„ค์š” ๐Ÿ‘
@@ -3,16 +3,12 @@ <section class="mx-auto flex h-full flex-col items-center justify-between bg-gray_00-light text-gray_05-light dark:bg-gray_00-dark dark:text-gray_05-dark sm:w-screen md:w-96" > - <ProgressNavBar prevPage="/size" pageName="ingredient" /> - <div v-if="isLoading">๋กœ๋”ฉ์ค‘์ž…๋‹ˆ๋‹ค.</div> ...
Unknown
์„œ๋ฒ„ ์ƒํƒœ๊ด€๋ฆฌ์™€ ํด๋ผ์ด์–ธํŠธ ์ƒํƒœ๊ด€๋ฆฌ๋ฅผ ๋ถ„๋ฆฌํ•˜์—ฌ ๊ด€๋ฆฌํ•˜์…จ๊ตฐ์š” ๐Ÿ‘
@@ -1,23 +1,20 @@ <template> - <button - @click=" - () => { - if (!props.disabled) props.onClick(); - } - " - :class="getNextButtonStyle()" - > - <slot></slot> + <button @click="handleNextButtonClick" :class="getNextButtonStyle()"> + <slot /> </button> </template> <script setu...
Unknown
์‚ฌ์‹ค ์ €๋„ ์ถ”๊ฐ€ํ•˜์ง€ ์•Š์•˜๋‹ค๊ฐ€, ์ข€๋” ๊ฐ€์‹œ์ ์œผ๋กœ ํ‘œํ˜„ํ•˜๋ ค๊ณ  ์ž‘์„ฑ์„ ํ–ˆ์–ด์š”! ์Œ, ๋ฉ”์ด๋ธŒ๋‹˜ ๋ง์”€๋“ฃ๊ณ  ๋‹ค์‹œ ์ƒ๊ฐํ•ด๋ณด๋‹ˆ ๊ฐ€์‹œ์„ฑ๋งŒ์œผ๋กœ ์ถ”๊ฐ€ํ•˜๋Š” ๊ฑด ์ข€ ์˜๋ฏธ๊ฐ€ ์—†๋Š” ๊ฒƒ ๊ฐ™๊ธดํ•˜๋„ค์š”!!
@@ -3,20 +3,18 @@ class="text-gray_05-light dark:text-gray_05-dark w-6 h-6" @click="goBack" > - <slot></slot> + <slot /> </button> </template> <script setup lang="ts"> -import { useRouter } from 'vue-router'; +import { pushPage } from '@router/route.helper'; const props = defineProps<{ p...
Unknown
ํ™”์‚ดํ‘œ ํ•จ์ˆ˜๋กœ ํ•ด์ฃผ์„ธ์š”~
@@ -0,0 +1,19 @@ +package nextstep.security.authentication; + +import nextstep.security.role.GrantedAuthority; + +import java.util.List; + +public interface Authentication { + String getPrincipal(); + + String getCredentials(); + + boolean isAuthenticated(); + + List<GrantedAuthority> getAuthorities(); + + ...
Java
app ํŒจํ‚ค์ง€๋Š” ์ผ๋ฐ˜์ ์œผ๋กœ ๊ตฌํ˜„ํ•˜๋Š” ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜์ด๊ณ , security ํŒจํ‚ค์ง€๋Š” ํ”„๋ ˆ์ž„์›Œํฌ์˜ ์„ค๊ณ„๋ฅผ ๊ฐ€์ง€๊ฒŒ ๋˜๋Š”๋ฐ์š”. ๊ทธ๋Ÿฐ ๊ด€์ ์—์„œ ์ง€๊ธˆ์˜ Role์€ NORMAL, ADMIN๋งŒ ์ง€์›ํ•˜๊ณ  ์žˆ๋Š”๋ฐ, ํ”„๋ ˆ์ž„์›Œํฌ๋ฅผ ์‚ฌ์šฉํ•˜๋Š” ์ž…์žฅ์—์„œ๋Š” ๋‘ ํƒ€์ž… ์ด์™ธ์— ๋งŽ์€ ์ผ€์ด์Šค๊ฐ€ ์กด์žฌํ•  ๊ฒƒ ๊ฐ™์•„์š”. ํ”„๋ ˆ์ž„์›Œํฌ๋ผ๋Š” ๊ด€์ ์—์„œ ์–ด๋–ป๊ฒŒ ํ™•์žฅ ํฌ์ธํŠธ๋ฅผ ๊ฐ€์ ธ๊ฐˆ ์ˆ˜ ์žˆ์„๊นŒ์š”?
@@ -0,0 +1,86 @@ +package nextstep.app; + +import nextstep.app.domain.CustomUserDetailsService; +import nextstep.app.domain.MemberRepository; +import nextstep.security.role.Role; +import nextstep.security.core.context.HttpSessionSecurityContextRepository; +import nextstep.security.core.context.SecurityContextRepository...
Java
> DefaultSecurityFilterChain์˜ match ๊ธฐ์ค€์ด ๋ญ˜๊นŒ์š”? ์—ฌ๋Ÿฌ ํ•„ํ„ฐ ์ฒด์ธ์ด ์กด์žฌํ•  ์ˆ˜ ์žˆ๊ณ , ํ•„ํ„ฐ ์ฒด์ธ๋งˆ๋‹ค ์กฐ๊ฑด์„ ์„ค์ •ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ์˜ˆ๋ฅผ ๋“ค์–ด AuthorizationFilter์˜ "/members"๊ฐ€ ์ผ์น˜ํ•˜๋Š”์ง€์˜ ์กฐ๊ฑด๋„ DefaultSecurityFilterChain์˜ match๋กœ ์˜ฎ๊ธฐ๋Š” ๊ฒƒ๋„ ํ•˜๋‚˜์˜ ์˜ˆ์‹œ๊ฐ€ ๋  ์ˆ˜ ์žˆ์„ ๊ฒƒ ๊ฐ™์€๋ฐ์š”. ์ด๋ฒˆ ๋ฏธ์…˜์—์„œ ์ค‘์š”ํ•œ ํฌ์ธํŠธ๋Š” ์•„๋‹ˆ๊ธฐ๋„ ํ•˜๊ณ  ์ง€๊ธˆ ๊ตฌํ˜„ํ•˜๋Š” ๊ทœ๋ชจ์—์„  Filter์—์„œ ๊ฒ€์ฆํ•˜๋Š” ๊ฒƒ๊ณผ ์ฐจ์ด๋ฅผ ๋А๋ผ์ง€ ํž˜๋“ค ์ˆ˜ ์žˆ์„ ๊ฒƒ ๊ฐ™์•„์„œ 4์ฃผ ์ฐจ ๋ฆฌํŒฉํ„ฐ๋ง ๋•Œ ์ž์„ธํžˆ ๊ตฌํ˜„ํ•ด๋ณด๋ฉด ์ข‹์„ ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค ใ…Žใ…Ž ...
@@ -0,0 +1,30 @@ +package nextstep.app.domain; + +import nextstep.security.core.uesrdetails.UserDetails; +import nextstep.security.core.uesrdetails.UserDetailsService; +import nextstep.security.exception.AuthenticationException; +import nextstep.security.role.Role; + +public class CustomUserDetailsService implements Us...
Java
```suggestion return memberRepository.findByEmail(username) .map(CustomMember::new) .orElseThrow(() -> new IllegalArgumentException("ํ•ด๋‹นํ•˜๋Š” ์‚ฌ์šฉ์ž๋ฅผ ์ฐพ์„ ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค.")); ``` ์†Œ์†Œํ•œ ๊ฐ€๋…์„ฑ ์ƒ์Šน์„ ํ•ด๋ณผ ์ˆ˜ ์žˆ๊ฒ ๋„ค์š”~
@@ -0,0 +1,81 @@ +package nextstep.security.filter; + +import jakarta.servlet.FilterChain; +import jakarta.servlet.ServletException; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletResponse; +import nextstep.security.authentication.Authentication; +import nextstep.security.authe...
Java
SecurityContextRepository์˜ ๊ตฌํ˜„์ฒด๋ฅผ Filter์—์„œ ์ฃผ์ž…๋ฐ›์•„ ์ฒ˜๋ฆฌํ•˜๊ฒŒ ๊ตฌํ˜„ํ•ด์ฃผ์…จ๋„ค์š”! ์Šคํ”„๋ง์€ ๋‹ค๋ฅธ Filter์—์„œ SecurityContextRepository์˜ ๋‚ด๋ถ€ ๊ตฌํ˜„์„ ๋ชฐ๋ผ๋„ `SecurityContextHolder.getContext()`๋ฅผ ํ†ตํ•ด ์ธ์ฆ ์ •๋ณด๋ฅผ ํ™œ์šฉํ•  ์ˆ˜ ์žˆ๋„๋ก ์„ค๊ณ„๋˜์–ด ์žˆ๋Š”๋ฐ์š”. ์ด๋ ‡๊ฒŒ ๊ตฌ์กฐ๋ฅผ ์„ค๊ณ„ํ•œ ์ด์œ ์— ๋Œ€ํ•ด ๊ณ ๋ฏผํ•ด๋ณด์‹œ๋ฉด ์ข‹๊ฒ ์Šต๋‹ˆ๋‹ค!
@@ -0,0 +1,48 @@ +package nextstep.security.filter; + +import jakarta.servlet.FilterChain; +import jakarta.servlet.ServletException; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletResponse; +import nextstep.security.authentication.Authentication; +import nextstep.security.core....
Java
์ผ๋ฐ˜์ ์œผ๋กœ ํ•œ ํด๋ž˜์Šค ๋‚ด์—์„œ ์—ฃ์ง€ ์ผ€์ด์Šค๋ฅผ ํŒ๋‹จํ•  ๋•Œ๋Š” try-catch๋กœ ์˜ˆ์™ธ๋ฅผ ์ฒ˜๋ฆฌํ•˜๊ธฐ๋ณด๋‹ค, boolean์„ ํ™œ์šฉํ•ด ์‚ฌ์ „์— ์ฒดํฌํ•˜๊ณ  ํ•ธ๋“ค๋งํ•˜๋Š” ๊ฒƒ์ด ๊ฐ€๋…์„ฑ๊ณผ ์„ฑ๋Šฅ ๋ฉด์—์„œ ๋” ์ข‹์€๋ฐ์š”. ์ง€๊ธˆ ์ผ€์ด์Šค๋„ ์œ„ ์ผ€์ด์Šค์— ํ•ด๋‹นํ•˜๋Š” ๊ฒƒ ๊ฐ™์€๋ฐ ์–ด๋–ป๊ฒŒ ์ƒ๊ฐํ•˜์‹œ๋‚˜์š”?
@@ -0,0 +1,81 @@ +package nextstep.security.filter; + +import jakarta.servlet.FilterChain; +import jakarta.servlet.ServletException; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletResponse; +import nextstep.security.authentication.Authentication; +import nextstep.security.authe...
Java
> ์ธ์ฆ ๋ฏธ์…˜์˜ 4๋‹จ๊ณ„์—์„œ user_login_after_members ์ด ํ…Œ์ŠคํŠธ ํ†ต๊ณผ๊ฐ€ ์•ˆ๋˜์„œ ๊ณ ๋ฏผํ•˜๋‹ค๊ฐ€ ์ž„์˜๋กœ authorizationFilter๋ฅผ๏ฟฝ ๊ตฌํ˜„ํ•˜์˜€์Šต๋‹ˆ๋‹ค. > (ํ˜„๋‹จ๊ณ„์—์„œ ์–ด๋–ป๊ฒŒ ํ†ต๊ณผํ•˜๊ฒŒ ํ•˜๋Š”๊ฑธ๊นŒ์š”??) ๋กœ๊ทธ์ธ ๋ฐฉ์‹์— ๋”ฐ๋ผ Role์„ ๋‹ค๋ฅด๊ฒŒ ์„ค์ •ํ•˜์‹  ์ด์œ ๋Š” ์œ„ ์ด์œ  ๋•Œ๋ฌธ์ด๊ฒ ์ฃ ..?ใ…‹ใ…‹ ์ธ๊ฐ€์— ๋Œ€ํ•œ ๋ถ€๋ถ„์€ 2์ฃผ ์ฐจ์—์„œ ๋‹ค๋ฃจ๋Š” ๊ฒƒ์œผ๋กœ ์•Œ๊ณ  ์žˆ์–ด์„œ, ์ผ๋‹จ ์ธ๊ฐ€์— ๋Œ€ํ•œ ๋ถ€๋ถ„์€ ์‹ ๊ฒฝ์“ฐ์ง€ ์•Š๊ณ  ์ธ์ฆ๋œ ์‚ฌ์šฉ์ž๋ฅผ ํ™•์ธํ•œ๋‹ค! ๋ผ๋Š” ๊ฐœ๋…์œผ๋กœ ํ™•์ธํ•ด์ฃผ์‹œ๋ฉด ๋  ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค (๋งŒ์•ฝ ์•„๋‹ˆ๋ฉด DM ๋“œ๋ฆด๊ฒŒ์š”..! ์†๋‹ฅ์†๋‹ฅ..)
@@ -0,0 +1,69 @@ +package nextstep.security.filter; + +import jakarta.servlet.FilterChain; +import jakarta.servlet.ServletException; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletResponse; +import nextstep.security.authentication.Authentication; +import nextstep.security.authe...
Java
ํ•„ํ„ฐ์—์„œ๋Š” ๋งˆ์ง€๋ง‰์— doFilter()๋ฅผ ํ˜ธ์ถœํ•ด์•ผ ์ •์ƒ์ ์ธ ์š”์ฒญ ํ๋ฆ„์„ ์œ ์ง€ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค~
@@ -0,0 +1,19 @@ +package nextstep.security.authentication; + +import nextstep.security.role.GrantedAuthority; + +import java.util.List; + +public interface Authentication { + String getPrincipal(); + + String getCredentials(); + + boolean isAuthenticated(); + + List<GrantedAuthority> getAuthorities(); + + ...
Java
์• ํ”Œ๋ฆฌ์ผ€์ด์…˜์—์„œ Role ์„ ์ฃผ์ž…์‹œ์ผœ์•ผ ํ• ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค :)
@@ -0,0 +1,86 @@ +package nextstep.app; + +import nextstep.app.domain.CustomUserDetailsService; +import nextstep.app.domain.MemberRepository; +import nextstep.security.role.Role; +import nextstep.security.core.context.HttpSessionSecurityContextRepository; +import nextstep.security.core.context.SecurityContextRepository...
Java
๋„ต:) ๊ฐ€๋ณ€์ธ์ž๋กœ ์„ค์ •ํ•˜๋Š”๊ฒŒ ์‚ฌ์šฉํ•˜๋Š” ์ž…์žฅ์—์„œ ํ›จ์”ฌ ํŽธ๋ฆฌํ•  ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค ๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค ๐Ÿ‘ --- ์žฌ์—ฐ๋‹˜ ๋ง์”€์ด๋ž‘ ์‹œํ๋ฆฌํ‹ฐ ์ฝ”๋“œ ๋ณด๋ฉด์„œ ๋œฏ์–ด๋ณด๋‹ˆ ์‹ค์ œ ์‹œํ๋ฆฌํ‹ฐ๋ฅผ ์‚ฌ์šฉํ• ๋•Œ ์‚ฌ์šฉํ•˜๋˜ securityMatcher(), authorizeHttpRequests() ๋“ฑ์œผ๋กœ filterChain์ด ์„ ํƒ๋˜๊ณ  ์ธ๊ฐ€๋ฅผ ๋ฐœ์ƒ์‹œํ‚ค๋Š”๊ตฐ์š”! ์–ด๋–ค ๋ง์”€ํ•˜์‹œ๋Š”๊ฑด์ง€ ์•ฝ๊ฐ„ ๊ฐ์ด ์žกํžˆ๋Š”๊ฑฐ ๊ฐ™์Šต๋‹ˆ๋‹ค! ๐Ÿ‘ (์•„๋‹์ˆ˜๋„)
@@ -0,0 +1,81 @@ +package nextstep.security.filter; + +import jakarta.servlet.FilterChain; +import jakarta.servlet.ServletException; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletResponse; +import nextstep.security.authentication.Authentication; +import nextstep.security.authe...
Java
~~repository์— context์ €์žฅ์„ ์ธ์ฆํ•„ํ„ฐ ์™„๋ฃŒ ์‹œ์ ์ด ์•„๋‹Œ SecurityHolderFilter ์ข…๋ฃŒ์‹œ์— ํ•˜๋ฉด ๋  ๊ฑฐ๊ฐ™์Šต๋‹ˆ๋‹ค! ๐Ÿ‘~~ ์ถ”๊ฐ€๋กœ ์ธ์ฆํ•„ํ„ฐ์—์„œ SecurityContextHolder๋‚ด๋ถ€์— context๊ฐ€ ์žˆ๋‹ค๋ฉด ์ธ์ฆํ•„ํ„ฐ๋ฅผ ํ†ต๊ณผํ•˜๊ฒŒ ์ถ”๊ฐ€ํ•˜์˜€์Šต๋‹ˆ๋‹ค !
@@ -0,0 +1,81 @@ +package nextstep.security.filter; + +import jakarta.servlet.FilterChain; +import jakarta.servlet.ServletException; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletResponse; +import nextstep.security.authentication.Authentication; +import nextstep.security.authe...
Java
์Œ.. ์ž˜๋ชป์งš์€๊ฑฐ ๊ฐ™๋„ค์š”.. security ์ฝ”๋“œ๋ฅผ ๋ณด๋ฉด ์ธ์ฆ ํ›„์— ๋ฐ”๋กœ ์ €์žฅ์„ ํ•˜๋Š”๋ฐ, filter ๋‚ด๋ถ€์—์„œ ๊ฐ SecurityContextRepository ๊ตฌํ˜„์ฒด์— ์˜์กดํ•˜๊ณ  ์žˆ๋„ค์š”!
@@ -0,0 +1,69 @@ +package nextstep.security.filter; + +import jakarta.servlet.FilterChain; +import jakarta.servlet.ServletException; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletResponse; +import nextstep.security.authentication.Authentication; +import nextstep.security.authe...
Java
์žฌ์—ฐ๋‹˜! ์ œ๊ฐ€ ์ž‘์„ฑํ•œ BasicAuthFilter์™€ FormAuthFilter๋Š” security ์˜ UsernamePasswordAuthenticationFilter์™€ BasicAuthenticationFilter๋ฅผ ์ฐธ๊ณ ํ•˜์—ฌ ์ž‘์„ฑํ•˜์˜€๋Š”๋ฐ์š”. form์š”์ฒญ์˜ ๊ฒฝ์šฐ 'login '์š”์ฒญ์— ๋Œ€ํ•ด์„œ๋งŒ ํ•„ํ„ฐ๊ฐ€ ์ž‘๋™ํ•˜๊ณ  ์ธ์ฆ์ด ์„ฑ๊ณต ํ–ˆ์„๋•Œ ํ•ด๋‹น filter์—์„œ ์‘๋‹ต์„ ๋ฐ˜ํ™˜ํ•˜๊ณ  Basic์š”์ฒญ์˜ ๊ฒฝ์šฐ ์œ ํšจํ•œ Authorization ํ—ค๋”๊ฐ€ ์žˆ๋Š” ๊ฒฝ์šฐ ์ธ์ฆ์„ ์„ฑ๊ณตํ•ด๋„ filterchain์˜ doFilter๋ฅผ ํ˜ธ์ถœ ํ•˜๋Š”๊ฒƒ์œผ๋กœ ๋ด์„œ ๋‘ ํ•„ํ„ฐ๊ฐ„์˜ filterChain.do...
@@ -0,0 +1,48 @@ +package nextstep.security.filter; + +import jakarta.servlet.FilterChain; +import jakarta.servlet.ServletException; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletResponse; +import nextstep.security.authentication.Authentication; +import nextstep.security.core....
Java
๋„ค ์žฌ์—ฐ๋‹˜ ๋ง์”€์— ๋™์˜ํ•ฉ๋‹ˆ๋‹ค ! ๊ทธ๋Ÿฐ๋ฐ ์˜ˆ์™ธ๋ฅผ ์ฒ˜๋ฆฌํ• ๋•Œ ๊ฐ€๋Šฅํ•œ ์ตœ์ƒ์œ„ ๊ณ„์ธต์—์„œ ์ฒ˜๋ฆฌํ•˜๋ฉด ๋น„์ฆˆ๋‹ˆ์Šค ๋กœ์ง์— ๋„ˆ๋ฌด๋งŽ์€ ์˜ˆ์™ธ์ฒ˜๋ฆฌ ์ฝ”๋“œ๊ฐ€ ํฌํ•จ๋˜์ง€ ์•Š์•„ ๋” ์ข‹์€๊ฒƒ์œผ๋กœ ์•Œ๊ณ ์žˆ๋Š”๋ฐ์š”. authorizationFilter์—์„œ ๋ฐœ์ƒํ•˜๋Š” ์ธ์ฆ ์—๋Ÿฌ, AuthorizationFilter์—์„œ ๋ฐœ์ƒํ•˜๋Š” ์ธ๊ฐ€ ์—๋Ÿฌ ๋“ฑ์„ ์ฒ˜๋ฆฌ ํ• ๋•Œ ์–ด๋А ๋‹จ๊ณ„์—์„œ ์—๋Ÿฌ์ฒ˜๋ฆฌ๋ฅผ ํ•˜๋Š”๊ฒŒ ์ข‹์„์ง€ ์กฐ๊ธˆ ์–ด๋ ต๋„ค์š”! security์ฝ”๋“œ๋„ filter์—์„œ ์˜ˆ์™ธ์ฒ˜๋ฆฌ๋ฅผ ํ•˜๊ณ ์žˆ์–ด์„œ .. ๊ฐ€๋ น makeAuthentication ๊ฐ™์€ ๋ฉ”์†Œ๋“œ์—์„œ ์š”์ฒญ์— ๋Œ€ํ•œ ํŒŒ๋ผ๋ฏธํ„ฐ๋กœ authentication๊ฐ์ฒด๋ฅผ ๋งŒ๋“ค๋•Œ ์˜ˆ์™ธ๊ฐ€ ๋ฐœ์ƒํ•˜๋ฉด ์ฒ˜๋ฆฌ...
@@ -0,0 +1,19 @@ +package nextstep.security.authentication; + +import nextstep.security.role.GrantedAuthority; + +import java.util.List; + +public interface Authentication { + String getPrincipal(); + + String getCredentials(); + + boolean isAuthenticated(); + + List<GrantedAuthority> getAuthorities(); + + ...
Java
๋งž์Šต๋‹ˆ๋‹ค! ํ•ต์‹ฌ์€ Role์„ ์ •ํ•˜๋Š” ์—ญํ• ์€ ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜์ด ๋ผ์•ผ ํ•˜๋Š”๋ฐ์š”. ํ˜„์žฌ Role์€ ํ”„๋ ˆ์ž„์›Œํฌ ๋ ˆ๋ฒจ์˜ enum ํƒ€์ž…์œผ๋กœ ์ •์˜๋˜์–ด ์žˆ๋„ค์š”. Role์— ๋Œ€ํ•œ ํ™•์žฅ์„ฑ์„ ์—ด์–ด์ฃผ๊ธฐ ์œ„ํ•ด์„  Enum์ด ์•„๋‹Œ ์กฐ๊ธˆ ๋” ํ™•์žฅ์„ฑ ์žˆ๋Š” ํ˜•ํƒœ๋กœ ๋ณ€๊ฒฝํ•œ๋‹ค๋ฉด ํ”„๋ ˆ์ž„์›Œํฌ ๋ ˆ๋ฒจ์ด ์•„๋‹Œ ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜ ๋ ˆ๋ฒจ์—์„œ ์‚ฌ์šฉํ•˜๊ธฐ ์ข‹์•„์งˆ ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค!
@@ -0,0 +1,48 @@ +package nextstep.security.filter; + +import jakarta.servlet.FilterChain; +import jakarta.servlet.ServletException; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletResponse; +import nextstep.security.authentication.Authentication; +import nextstep.security.core....
Java
> ๋„ค ์žฌ์—ฐ๋‹˜ ๋ง์”€์— ๋™์˜ํ•ฉ๋‹ˆ๋‹ค ! > ๊ทธ๋Ÿฐ๋ฐ ์˜ˆ์™ธ๋ฅผ ์ฒ˜๋ฆฌํ• ๋•Œ ๊ฐ€๋Šฅํ•œ ์ตœ์ƒ์œ„ ๊ณ„์ธต์—์„œ ์ฒ˜๋ฆฌํ•˜๋ฉด ๋น„์ฆˆ๋‹ˆ์Šค ๋กœ์ง์— ๋„ˆ๋ฌด๋งŽ์€ ์˜ˆ์™ธ์ฒ˜๋ฆฌ ์ฝ”๋“œ๊ฐ€ ํฌํ•จ๋˜์ง€ ์•Š์•„ ๋” ์ข‹์€๊ฒƒ์œผ๋กœ ์•Œ๊ณ ์žˆ๋Š”๋ฐ์š”. > authorizationFilter์—์„œ ๋ฐœ์ƒํ•˜๋Š” ์ธ์ฆ ์—๋Ÿฌ, AuthorizationFilter์—์„œ ๋ฐœ์ƒํ•˜๋Š” ์ธ๊ฐ€ ์—๋Ÿฌ ๋“ฑ์„ ์ฒ˜๋ฆฌ ํ• ๋•Œ ์–ด๋А ๋‹จ๊ณ„์—์„œ ์—๋Ÿฌ์ฒ˜๋ฆฌ๋ฅผ ํ•˜๋Š”๊ฒŒ ์ข‹์„์ง€ ์กฐ๊ธˆ ์–ด๋ ต๋„ค์š”! > security์ฝ”๋“œ๋„ filter์—์„œ ์˜ˆ์™ธ์ฒ˜๋ฆฌ๋ฅผ ํ•˜๊ณ ์žˆ์–ด์„œ .. ๊ฐ€๋ น makeAuthentication ๊ฐ™์€ ๋ฉ”์†Œ๋“œ์—์„œ ์š”์ฒญ์— ๋Œ€ํ•œ ํŒŒ๋ผ๋ฏธํ„ฐ๋กœ authentication๊ฐ์ฒด๋ฅผ ๋งŒ๋“ค๋•Œ ์˜ˆ์™ธ๊ฐ€ ...
@@ -0,0 +1,69 @@ +package nextstep.security.filter; + +import jakarta.servlet.FilterChain; +import jakarta.servlet.ServletException; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletResponse; +import nextstep.security.authentication.Authentication; +import nextstep.security.authe...
Java
๊ธฐ์กด์˜ ํžŒํŠธ ์ฝ”๋“œ๋ฅผ ๊ผญ ๊ทธ๋Œ€๋กœ ์‚ฌ์šฉํ•˜์ง€ ์•Š์œผ์…”๋„ ๋˜๊ณ , ๋ฌธ์ œ๊ฐ€ ์žˆ๋‹ค๋ฉด ์ˆ˜์ •ํ•˜์…”๋„ ๋ฉ๋‹ˆ๋‹ค ใ…Žใ…Ž Filter์˜ ๊ตฌ์กฐ๋Š” ๋””์ž์ธํŒจํ„ด ์ค‘ ํ•˜๋‚˜์ธ ์—ฐ์‡„ ์ฑ…์ž„ ํŒจํ„ด์˜ ํ˜•ํƒœ๋ฅผ ๊ฐ€์ง€๊ณ  ์žˆ๋Š”๋ฐ์š”. Filter๋Š” ๋‹ค๋ฅธ ํ•„ํ„ฐ์— ๋Œ€ํ•œ ์ •๋ณด๋ฅผ ๋ชจ๋ฅด๋Š” ์ƒํƒœ์—์„œ ์ž์‹ ์˜ ์—ญํ• ๋งŒ ์ˆ˜ํ–‰ํ•˜๊ณ , ๋ฌธ์ œ๊ฐ€ ์—†๋‹ค๋ฉด ๋ฐ˜๋“œ์‹œ ๋‹ค์Œ ํ•„ํ„ฐ๋กœ ์œ„์ž„ํ•˜๋Š” ๊ฒƒ์ด ์ •ํ•ด์ง„ ๊ทœ์น™์„ ๊ฐ€์ง€๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋งŒ์•ฝ ๊ตฌํ˜„ ๋ฐฉ์‹์— ๋”ฐ๋ผ doFilter() ํ˜ธ์ถœ ์—ฌ๋ถ€๊ฐ€ ๋‹ฌ๋ผ์ง„๋‹ค๋ฉด, ์„ค๊ณ„๋ฅผ ๋‹ค์‹œ ๊ณ ๋ฏผํ•ด๋ณผ ํ•„์š”๊ฐ€ ์žˆ์„ ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค!
@@ -0,0 +1,81 @@ +package nextstep.security.filter; + +import jakarta.servlet.FilterChain; +import jakarta.servlet.ServletException; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletResponse; +import nextstep.security.authentication.Authentication; +import nextstep.security.authe...
Java
```suggestion authentication.getAuthorities().add(Role.ADMIN); filterChain.doFilter(request, response); ``` > SecurityContextRepository์˜ ๊ตฌํ˜„์ฒด๋ฅผ Filter์—์„œ ์ฃผ์ž…๋ฐ›์•„ ์ฒ˜๋ฆฌํ•˜๊ฒŒ ๊ตฌํ˜„ํ•ด์ฃผ์…จ๋„ค์š”! > ์Šคํ”„๋ง์€ ๋‹ค๋ฅธ Filter์—์„œ SecurityContextRepository์˜ ๋‚ด๋ถ€ ๊ตฌํ˜„์„ ๋ชฐ๋ผ๋„ SecurityContextHolder.getContext()๋ฅผ ํ†ตํ•ด ์ธ์ฆ ์ •๋ณด๋ฅผ ํ™œ์šฉํ•  ์ˆ˜ ์žˆ๋„๋ก ์„ค๊ณ„๋˜์–ด ์žˆ๋Š”๋ฐ์š”. ...
@@ -0,0 +1,81 @@ +package nextstep.security.filter; + +import jakarta.servlet.FilterChain; +import jakarta.servlet.ServletException; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletResponse; +import nextstep.security.authentication.Authentication; +import nextstep.security.authe...
Java
์•„! ๊ณฐ๊ณฐํžˆ ์ƒ๊ฐํ•ด๋ณด๋‹ˆ ์ธ์ฆ ์„ฑ๊ณต์‹œ filter์—์„œ๋Š” SecurityContextHolder์— ์ด๋ฏธ context๋ฅผ ์ €์žฅํ•˜์—ฌ ์–ด๋–ค ํ•„ํ„ฐ์—์„œ๋„ ์‚ฌ์šฉ๊ฐ€๋Šฅํ•˜๊ณ  repository๋Š” securiyContextHolderFilter์—์„œ ์‘๋‹ต์‹œ ์ €์žฅํ•ด์ฃผ๋ฉด ๋ ๊ฑฐ๊ฐ™์Šต๋‹ˆ๋‹ค! ์ธ์ฆํ•„ํ„ฐ๊ฐ€ repository๋ฅผ ์˜์กดํ•˜์ง€ ์•Š์•„๋„ ๋˜๊ฒ ๋„ค์š”!
@@ -0,0 +1,29 @@ +package nextstep.security.filter; + +import jakarta.servlet.FilterChain; +import jakarta.servlet.ServletException; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletResponse; +import nextstep.security.core.context.SecurityContextHolder; +import nextstep.security....
Java
์˜ˆ์™ธ๋ฅผ ๊ณตํ†ต์œผ๋กœ ์ฒ˜๋ฆฌํ•  ์ˆ˜ ์žˆ์–ด์„œ ์ข‹๋„ค์š” ๐Ÿ‘
@@ -0,0 +1,29 @@ +package nextstep.security.filter; + +import jakarta.servlet.FilterChain; +import jakarta.servlet.ServletException; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletResponse; +import nextstep.security.core.context.SecurityContextHolder; +import nextstep.security....
Java
๋ฌธ์ œ๋Š” ์—†์ง€๋งŒ, SecurityContextHolder์˜ ์ดˆ๊ธฐํ™” ์—ญํ• ์€ SecurityContextHolder๋ฅผ ๋‹ด๋‹นํ•˜๋Š” Filter์—์„œ ํ•˜๋Š” ๊ทœ์น™์„ ๊ฐ€์ ธ๊ฐ€๋ฉด ๋‹ค๋ฅธ Filter์—์„œ๋Š” SecurityContextHolder์— ๋Œ€ํ•œ ์‹ ๊ฒฝ์„ ์•ˆ์จ๋„ ๋  ๊ฒƒ ๊ฐ™์•„์š”~
@@ -0,0 +1,69 @@ +package nextstep.security.filter; + +import jakarta.servlet.FilterChain; +import jakarta.servlet.ServletException; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletResponse; +import nextstep.security.authentication.Authentication; +import nextstep.security.authe...
Java
๊ธฐ์กด ์Šคํ”„๋ง ์‹œํ๋ฆฌํ‹ฐ ์ฝ”๋“œ๊ฐ€ ๋ ˆ๊ฑฐ์‹œ ํ˜•ํƒœ๊ณ  ๋‘ ํ•„ํ„ฐ ๋ชจ๋‘ doFilter๋ฅผ ํ˜ธ์ถœํ•˜๋Š” ๊ฒƒ์ด ๋งž๋‹ค๊ณ  ์ƒ๊ฐํ–ˆ๋Š”๋ฐ์š”. ๊ทธ ๊ทผ๊ฑฐ๋กœ ๋งŒ์•ฝ ๋กœ๊ทธ์ธ ํ›„ ์ดํ›„ ์š”์ฒญ์€ ์ฒ˜๋ฆฌํ•˜์ง€ ์•Š๋Š” ๊ฒƒ์ด ํ•ด๋‹น ํด๋ž˜์Šค์˜ ์—ญํ• ์ด๋ผ๋ฉด UsernamePasswordAuthenticationFilter์™€ BasicAuthenticationFilter ๋‘ ํด๋ž˜์Šค ๋ชจ๋‘ doFilter๋ฅผ ํ˜ธ์ถœํ•˜์ง€ ์•Š์•„์•ผ ํ•œ๋‹ค๊ณ  ์ƒ๊ฐํ–ˆ์Šต๋‹ˆ๋‹ค. ๊ทผ๋ฐ ์ƒ๊ฐํ•ด๋ณด๋‹ˆ.. UsernamePasswordAuthenticationFilter ํ•„ํ„ฐ๋Š” ๋กœ๊ทธ์ธ์„ ์œ„ํ•œ ํ•„ํ„ฐ๊ณ  BasicAuthenticationFilter๋Š” ํ† ํฐ์„ ๊ฒ€์ฆํ•˜๋Š” ์—ญํ• ์ด๋ผ ...
@@ -1,8 +1,79 @@ import React, { Component } from 'react'; +import { Link } from 'react-router-dom'; + +import './Login.scss'; class Login extends Component { + constructor() { + super(); + this.state = { + id: '', + pw: '', + }; + } + + handleInput = event => { + const { name, value } = ev...
JavaScript
์˜ค ๊ตฌ์กฐ๋ถ„ํ•ด ํ• ๋‹น~
@@ -1,8 +1,79 @@ import React, { Component } from 'react'; +import { Link } from 'react-router-dom'; + +import './Login.scss'; class Login extends Component { + constructor() { + super(); + this.state = { + id: '', + pw: '', + }; + } + + handleInput = event => { + const { name, value } = ev...
JavaScript
this.state.id.includes('@') && this.state.id.length >= 5 && this.state.pw.length >= 8 ์ด๊ฑธ true/false Boolean?? ์ด๊ฐ’์„ ์‚ฌ์šฉํ•ด์„œ ์‚ผํ•ญ์—ฐ์‚ฐ์ž๋กœ ํ•ด๋„ ๋˜์ง€ ์•Š์„๊นŒ์š” ์ˆ˜์ •๋‹˜์€ ์ž˜ํ•˜์‹œ๋‹ˆ ์•„๋งˆ๊ฐ€๋Šฅํ•˜์‹ค๋“ฏ!
@@ -0,0 +1,61 @@ +.Login { + display: flex; + justify-content: center; + align-items: center; + height: 100vh; + + main { + display: flex; + flex-direction: column; + justify-content: space-around; + width: 350px; + height: 380px; + padding: 40px; + border: 1px solid #ccc; + + header { + ...
Unknown
์ด๊ฑด ์™œ ์ฃผ์„์œผ๋กœ ๋˜์žˆ๋‚˜์š”???
@@ -0,0 +1,134 @@ +[ + { + "id": 1, + "userName": "eessoo__", + "src": "../images/soojeongLee/user2.jpg", + "feedText": "๐Ÿ’Ÿ", + "commentData": [ + { + "id": 1, + "userName": "wecode", + "content": "Welcome to world best coding bootcamp!", + "commnetLike": false + },...
Unknown
์ œ์ด์Šจ ํŒŒ์ผ๋„ ์žˆ์—ˆ๊ตฐ์š”!
@@ -0,0 +1,175 @@ +import React, { Component } from 'react'; +import { Link } from 'react-router-dom'; + +import Comment from './Comment/Comment'; + +import '../Feed/Feed.scss'; + +export class Feed extends Component { + constructor() { + super(); + this.state = { + comment: '', + // commentList: [], +...
JavaScript
์˜ค ์ด๋ ‡๊ฒŒ ๋‹ค์‹œ ๋ณผ ์ˆ˜ ์žˆ๋Š” ๋ฐฉ๋ฒ•๋„ ๋‚˜์˜์ง€ ์•Š์€ ๋“ฏ ? ๋‚˜์ค‘์— ๊ฐ€์„œ๋Š” ์ง€์›Œ์•ผ ๋  ์ˆ˜๋„ ์žˆ์ง€๋งŒ...?
@@ -0,0 +1,175 @@ +import React, { Component } from 'react'; +import { Link } from 'react-router-dom'; + +import Comment from './Comment/Comment'; + +import '../Feed/Feed.scss'; + +export class Feed extends Component { + constructor() { + super(); + this.state = { + comment: '', + // commentList: [], +...
JavaScript
๋ฒ„ํŠผ์œผ๋กœ ํ•œ ์ด์œ ๊ฐ€ ์žˆ๋‚˜์š”? ๊ถ๊ธˆ
@@ -0,0 +1,175 @@ +import React, { Component } from 'react'; +import { Link } from 'react-router-dom'; + +import Comment from './Comment/Comment'; + +import '../Feed/Feed.scss'; + +export class Feed extends Component { + constructor() { + super(); + this.state = { + comment: '', + // commentList: [], +...
JavaScript
autoComplete ์ด๊ฑฐ๋Š” ๋ญ”๊ฐ€์š”? ๊ถ๊ธˆ~
@@ -0,0 +1,128 @@ +@import '../../../../styles/variables.scss'; + +article { + margin-bottom: 20px; + background-color: #fff; + border-radius: 3px; + border: 1px solid $border-color; + + header { + @include flex-center; + justify-content: space-between; + align-content: center; + padding: 10px; + + ...
Unknown
์ด๋Ÿฐ scss ๊ธฐ๋Šฅ ์ €๋Š” ํ—ท๊ฐˆ๋ ค์„œ ์ž˜ ๋ชปํ•˜๊ฒ ๋˜๋ฐ ์ž˜ํ•˜์‹œ๋„ค์š”..
@@ -0,0 +1,23 @@ +//๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ +import React, { Component } from 'react'; +import { Link } from 'react-router-dom'; + +//์ปดํฌ๋„ŒํŠธ +import { FOOTLIST } from '../FootLists/footData'; + +// css +import './FootLists.scss'; + +export class FootLists extends Component { + render() { + return FOOTLIST.map(footlists => { + ret...
JavaScript
๋Œ“๊ธ€ ํ”„๋ž์Šค!
@@ -0,0 +1,46 @@ +export const FOOTLIST = [ + { + id: 1, + footlist: '์†Œ๊ฐœ', + }, + { + id: 2, + footlist: '๋„์›€๋ง', + }, + { + id: 3, + footlist: 'ํ™๋ณด ์„ผํ„ฐ', + }, + { + id: 4, + footlist: 'API', + }, + { + id: 5, + footlist: '์ฑ„์šฉ ์ •๋ณด', + }, + { + id: 6, + footlist: '๊ฐœ์ธ์ •๋ณด์ฒ˜๋ฆฌ๋ฐฉ์นจ', + }...
JavaScript
ํ™”์ดํŒ… ํ‘ธํ„ฐ ๋งŒ๋“ค์–ด์„œ ๊ฐ•์˜ ๋ถ€ํƒ๋“œ๋ ค์š”
@@ -1,14 +1,148 @@ -// ํ•„์ˆ˜ import React from 'react'; +import { Link } from 'react-router-dom'; -// ์ปดํฌ๋„ŒํŠธ import Nav from '../../../components/Nav/Nav'; +import Feed from '../Main/Feed/Feed'; +import OtherUserPro from './OtherUserPro/OtherUserPro'; +import FootLists from '../Main/Feed/FootLists/FootLists'; + +import ...
JavaScript
๋ฐ์ดํ„ฐ ํ™•์ธ ๋‹ค ํ•˜์…จ๋‚˜์š”~~?
@@ -1,14 +1,148 @@ -// ํ•„์ˆ˜ import React from 'react'; +import { Link } from 'react-router-dom'; -// ์ปดํฌ๋„ŒํŠธ import Nav from '../../../components/Nav/Nav'; +import Feed from '../Main/Feed/Feed'; +import OtherUserPro from './OtherUserPro/OtherUserPro'; +import FootLists from '../Main/Feed/FootLists/FootLists'; + +import ...
JavaScript
ํ”ผ์–ด ๋ฆฌ๋ทฐ ์ค‘ Return์˜ ๋น„๋ฐ€์„? ๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค.
@@ -1,8 +1,79 @@ import React, { Component } from 'react'; +import { Link } from 'react-router-dom'; + +import './Login.scss'; class Login extends Component { + constructor() { + super(); + this.state = { + id: '', + pw: '', + }; + } + + handleInput = event => { + const { name, value } = ev...
JavaScript
Boolean ๋ฐ์ดํ„ฐ ํƒ€์ž… ์ ์šฉ์‹œ์ผœ๋ณด์•˜์•„์š”. ์ž˜ ์„ธ์› ๋˜ ์ฝ”๋“œ๊ฐ€ ์ž‘๋™๋˜์ง€ ์•Š์„๊นŒ ์‹œ๋„ํ•˜๊ธฐ ์–ด๋ ค์› ๋Š”๋ฐ ๊ฒฉ๋ ค ๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹น~
@@ -0,0 +1,61 @@ +.Login { + display: flex; + justify-content: center; + align-items: center; + height: 100vh; + + main { + display: flex; + flex-direction: column; + justify-content: space-around; + width: 350px; + height: 380px; + padding: 40px; + border: 1px solid #ccc; + + header { + ...
Unknown
๊ธฐ์กด html ์ฝ”๋“œ๋ฅผ ์˜ฎ๊ธฐ๋‹ค ๋ณด๋‹ˆ ๋ฐœ์ƒํ•œ ๋ฌธ์ œ์˜€์–ด์š” :) ํ•ด๊ฒฐ๋˜์—ˆ๋‹ต๋‹ˆ๋‹น !!
@@ -0,0 +1,134 @@ +[ + { + "id": 1, + "userName": "eessoo__", + "src": "../images/soojeongLee/user2.jpg", + "feedText": "๐Ÿ’Ÿ", + "commentData": [ + { + "id": 1, + "userName": "wecode", + "content": "Welcome to world best coding bootcamp!", + "commnetLike": false + },...
Unknown
fetching ์„ ์—ฐ์Šตํ•ด๋ณด๋ ค๊ณ  ๋งŒ๋“ค์–ด๋ณด์•˜์–ด์š”
@@ -0,0 +1,175 @@ +import React, { Component } from 'react'; +import { Link } from 'react-router-dom'; + +import Comment from './Comment/Comment'; + +import '../Feed/Feed.scss'; + +export class Feed extends Component { + constructor() { + super(); + this.state = { + comment: '', + // commentList: [], +...
JavaScript
์ธ์Šคํƒ€๊ทธ๋žจ์—์„œ ์‹ค์ œ ์ข‹์•„์š”๋ฅผ ์ข‹์•„ํ•œ ์ˆซ์ž์— ์ ‘๊ทผํ•˜๊ฒŒ ๋˜๋ฉด ๋ˆ„๊ฐ€ ์ข‹์•„์š”๋ฅผ ๋ˆŒ๋ €๋Š”์ง€ ๋ชฉ๋ก์„ ๋ณผ ์ˆ˜ ์žˆ์–ด์„œ, ์ถ”ํ›„์— ๊ธฐ๋Šฅ์„ ๋„ฃ๊ฒŒ ๋œ๋‹ค๋ฉด button์„ ๋„ฃ์–ด์•ผ ํ•˜์ง€ ์•Š์„๊นŒ ์ƒ๊ฐ์ด ๋“ค์–ด์„œ ๋„ฃ์–ด๋ดค์Šต๋‹ˆ๋‹ค.
@@ -0,0 +1,23 @@ +//๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ +import React, { Component } from 'react'; +import { Link } from 'react-router-dom'; + +//์ปดํฌ๋„ŒํŠธ +import { FOOTLIST } from '../FootLists/footData'; + +// css +import './FootLists.scss'; + +export class FootLists extends Component { + render() { + return FOOTLIST.map(footlists => { + ret...
JavaScript
๊ผญ ํ’‹ ๋ฆฌ์ŠคํŠธ๋ฅผ... ์ปดํฌ๋„ŒํŠธํ™”ํ•ด๋ณด๊ฒ ์–ด์š”...!!!!
@@ -1,14 +1,148 @@ -// ํ•„์ˆ˜ import React from 'react'; +import { Link } from 'react-router-dom'; -// ์ปดํฌ๋„ŒํŠธ import Nav from '../../../components/Nav/Nav'; +import Feed from '../Main/Feed/Feed'; +import OtherUserPro from './OtherUserPro/OtherUserPro'; +import FootLists from '../Main/Feed/FootLists/FootLists'; + +import ...
JavaScript
๋„ค..! ๋ฌด์—‡์ด ์–ด๋””์— ์ „๋‹ฌ๋˜์—ˆ๋Š”์ง€ ํ™•์ธํ•˜๊ธฐ๊ฐ€ ์–ด๋ ค์›Œ์„œ ๋„ฃ์–ด๋’€์–ด์š” ...!
@@ -1,14 +1,148 @@ -// ํ•„์ˆ˜ import React from 'react'; +import { Link } from 'react-router-dom'; -// ์ปดํฌ๋„ŒํŠธ import Nav from '../../../components/Nav/Nav'; +import Feed from '../Main/Feed/Feed'; +import OtherUserPro from './OtherUserPro/OtherUserPro'; +import FootLists from '../Main/Feed/FootLists/FootLists'; + +import ...
JavaScript
ใ…Žใ…Žใ…Ž Return ์€ ์ƒ๋žต๋  ์ˆ˜ ์žˆ๋‹ค ~
@@ -1,8 +1,79 @@ import React, { Component } from 'react'; +import { Link } from 'react-router-dom'; + +import './Login.scss'; class Login extends Component { + constructor() { + super(); + this.state = { + id: '', + pw: '', + }; + } + + handleInput = event => { + const { name, value } = ev...
JavaScript
๊ณ„์‚ฐ๋œ์†์„ฑ๋ช… ๊ตฟ
@@ -0,0 +1,175 @@ +import React, { Component } from 'react'; +import { Link } from 'react-router-dom'; + +import Comment from './Comment/Comment'; + +import '../Feed/Feed.scss'; + +export class Feed extends Component { + constructor() { + super(); + this.state = { + comment: '', + // commentList: [], +...
JavaScript
์˜ค....
@@ -0,0 +1,175 @@ +import React, { Component } from 'react'; +import { Link } from 'react-router-dom'; + +import Comment from './Comment/Comment'; + +import '../Feed/Feed.scss'; + +export class Feed extends Component { + constructor() { + super(); + this.state = { + comment: '', + // commentList: [], +...
JavaScript
์ด๋Ÿฐ๋ฐฉ๋ฒ•์ด.. ํ”ผ๋“œ๋งˆ๋‹ค ๋Œ“๊ธ€ ๋ฐ์ดํ„ฐ๋ฅผ ์Šคํ…Œ์ดํŠธ๋กœ ํฌํ•จํ•˜๊ฒŒ ํ•ด์ฃผ๋‹ˆ ๋ณด๊ธฐ ์‰ฝ๊ณ  ์ข‹๋„ค์š”
@@ -1,8 +1,79 @@ import React, { Component } from 'react'; +import { Link } from 'react-router-dom'; + +import './Login.scss'; class Login extends Component { + constructor() { + super(); + this.state = { + id: '', + pw: '', + }; + } + + handleInput = event => { + const { name, value } = ev...
JavaScript
์ด๋Ÿฐ ์ฃผ์„๋“ค์€ ๋ถˆํ•„์š”ํ•˜๋‹ˆ๊นŒ ์‚ญ์ œํ•ด์ฃผ์‹œ๋Š”๊ฒŒ ์ข‹์•„๋ณด์ž…๋‹ˆ๋‹ค!
@@ -1,8 +1,79 @@ import React, { Component } from 'react'; +import { Link } from 'react-router-dom'; + +import './Login.scss'; class Login extends Component { + constructor() { + super(); + this.state = { + id: '', + pw: '', + }; + } + + handleInput = event => { + const { name, value } = ev...
JavaScript
event.target ๋ฐ˜๋ณต๋˜๊ณ  ์žˆ๋Š”๋ฐ ๊ตฌ์กฐ๋ถ„ํ•ดํ•ด์„œ ํ™œ์šฉํ•ด๋ณผ ์ˆ˜ ์žˆ๊ฒ ๋„ค์š”! ```const {name,value} = event.target;```
@@ -1,14 +1,77 @@ -import React from "react"; -import "./PostAdd.scss"; +import React, { useState } from 'react'; +import { useNavigate } from 'react-router-dom'; +import './PostAdd.scss'; +import { Button } from '../PostAdd/components/Post.jsx'; const PostAdd = () => { + const [comment, setComment] = useState('');...
JavaScript
import ์ˆœ์„œ์—๋„ ์œ ์ง€๋ณด์ˆ˜ ๋ฐ ๊ฐ€๋…์„ฑ์„ ์œ„ํ•œ ์ปจ๋ฒค์…˜์ด ์žˆ์Šต๋‹ˆ๋‹ค. ์œ„์ฝ”๋“œ์˜ ์ปจ๋ฒค์…˜์€ ๊ฐ„๋žตํ•˜๊ฒŒ ์•„๋ž˜์™€ ๊ฐ™๊ณ , ์ฐธ๊ณ ํ•ด์„œ ์ˆ˜์ •ํ•ด ์ฃผ์„ธ์š”! - ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ - React ๊ด€๋ จ ํŒจํ‚ค์ง€ - ์™ธ๋ถ€ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ - ์ปดํฌ๋„ŒํŠธ - ๊ณตํ†ต ์ปดํฌ๋„ŒํŠธ โ†’ ๋จผ ์ปดํฌ๋„ŒํŠธ โ†’ ๊ฐ€๊นŒ์šด ์ปดํฌ๋„ŒํŠธ - ํ•จ์ˆ˜, ๋ณ€์ˆ˜ ๋ฐ ์„ค์ • ํŒŒ์ผ - ์‚ฌ์ง„ ๋“ฑ ๋ฏธ๋””์–ด ํŒŒ์ผ(`.png`) - css ํŒŒ์ผ (.`scss`)
@@ -1,14 +1,77 @@ -import React from "react"; -import "./PostAdd.scss"; +import React, { useState } from 'react'; +import { useNavigate } from 'react-router-dom'; +import './PostAdd.scss'; +import { Button } from '../PostAdd/components/Post.jsx'; const PostAdd = () => { + const [comment, setComment] = useState('');...
JavaScript
event ๊ฐ์ฒด์—๋Š” ์—ฌ๋Ÿฌ ๋ฐ์ดํ„ฐ๊ฐ€ ๋‹ด๊ฒจ์žˆ์Šต๋‹ˆ๋‹ค. ๊ทธ ์ค‘์—์„œ target์˜ value(input์— ์ž…๋ ฅํ•œ ๊ฐ’)๋งŒ์„ ์‚ฌ์šฉํ•˜๊ธฐ ๋•Œ๋ฌธ์—, ํ•จ์ˆ˜๋ฅผ ํ˜ธ์ถœํ•  ๋•Œ ์ธ์ž๋กœ ์•„์˜ˆ event.target.value๋งŒ์„ ์ธ์ž๋กœ ๋„˜๊ฒจ์„œ ์‚ฌ์šฉํ•˜๋ฉด ์ด ํ•จ์ˆ˜์˜ ์‚ฌ์šฉ์ด ์ข€ ๋” ๋ช…ํ™•ํ•˜๊ฒ ๋„ค์š”!
@@ -1,14 +1,77 @@ -import React from "react"; -import "./PostAdd.scss"; +import React, { useState } from 'react'; +import { useNavigate } from 'react-router-dom'; +import './PostAdd.scss'; +import { Button } from '../PostAdd/components/Post.jsx'; const PostAdd = () => { + const [comment, setComment] = useState('');...
JavaScript
์‹ค์ˆ˜๋กœ ๋ˆŒ๋ €์„ ๊ฒฝ์šฐ์—๋„ ๋ฌด์กฐ๊ฑด list ํŽ˜์ด์ง€๋กœ ์ด๋™ํ•˜๊ฒŒ ๋  ํ…๋ฐ, ์„ ํƒ๊ถŒ์„ ์ค„ ์ˆ˜๋„ ์žˆ๊ฒ ๋„ค์š”. `window.confirm` ํ•จ์ˆ˜์— ๋Œ€ํ•ด ์ฐพ์•„๋ณด๊ณ  ์ ์šฉํ•ด๋ณด์…”๋„ ์ข‹์„ ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค!
@@ -1,14 +1,77 @@ -import React from "react"; -import "./PostAdd.scss"; +import React, { useState } from 'react'; +import { useNavigate } from 'react-router-dom'; +import './PostAdd.scss'; +import { Button } from '../PostAdd/components/Post.jsx'; const PostAdd = () => { + const [comment, setComment] = useState('');...
JavaScript
fetch ํ•จ์ˆ˜์˜ ์ธ์ž๋Š” ๋ณดํ†ต 2๊ฐœ๊ฐ€ ๋“ค์–ด๊ฐ€๋Š”๋ฐ, ์ง€๊ธˆ์€ ์˜ต์…˜์— ๊ด€๋ จ๋œ ๋‘ ๋ฒˆ์งธ ์ธ์ž๋งŒ ์ž‘์„ฑ๋˜์–ด ์žˆ๋„ค์š”! ์‹ค์ œ๋กœ ํ†ต์‹ ํ•˜์‹ค ๋•Œ์—๋Š” ์ฒซ ๋ฒˆ์งธ ์ธ์ž์ธ `API` ๊ฐ’๋„ ์ž˜ ์ „๋‹ฌํ•ด ์ฃผ์„ธ์š”!
@@ -1,14 +1,77 @@ -import React from "react"; -import "./PostAdd.scss"; +import React, { useState } from 'react'; +import { useNavigate } from 'react-router-dom'; +import './PostAdd.scss'; +import { Button } from '../PostAdd/components/Post.jsx'; const PostAdd = () => { + const [comment, setComment] = useState('');...
JavaScript
๋ถˆํ•„์š”ํ•˜๊ฒŒ 3์ค‘์œผ๋กœ ๊ฐ์‹ธ๊ณ  ์žˆ๋Š” ๊ฒƒ ๊ฐ™์€๋ฐ, ์ผ๋‹จ ์ตœ์ƒ์œ„์˜ div๋Š” ๋ถˆํ•„์š”ํ•ด ๋ณด์ด๋„ค์š”! ์š”์†Œ๊ฐ€ ์ค‘์ฒฉ๋  ์ˆ˜๋ก, ํ”„๋กœ์ ํŠธ์˜ ๊ทœ๋ชจ๊ฐ€ ์ปค์งˆ ์ˆ˜๋ก ๋กœ๋”ฉ๋˜๋Š” ์‹œ๊ฐ„์ด ๊ธธ์–ด์ง€๊ธฐ ๋•Œ๋ฌธ์— ๋ถˆํ•„์š”ํ•˜๊ฒŒ ์ค‘์ฒฉ๋œ ์š”์†Œ๋Š” ์ง€์›Œ์ฃผ์…”์•ผ ํ•ฉ๋‹ˆ๋‹ค!
@@ -1,14 +1,77 @@ -import React from "react"; -import "./PostAdd.scss"; +import React, { useState } from 'react'; +import { useNavigate } from 'react-router-dom'; +import './PostAdd.scss'; +import { Button } from '../PostAdd/components/Post.jsx'; const PostAdd = () => { + const [comment, setComment] = useState('');...
JavaScript
img ํƒœ๊ทธ์˜ alt ๊ฐ’์€ ์–ด๋””์— ํ™œ์šฉ๋ ๊นŒ์š”? ์ฐพ์•„๋ณด์‹œ๊ณ  ์˜ฌ๋ฐ”๋ฅด๊ฒŒ ์ž‘์„ฑํ•ด ์ฃผ์„ธ์š”!
@@ -0,0 +1,79 @@ +.userBox { + margin: 20px; + gap: 0 24px; + display: flex; + justify-content: center; + flex-direction: column; + + .userWrap { + display: flex; + flex-direction: row; + justify-content: center; + + .user { + width: 50px; + height: 50px; + border-radius: 50%; + } + ...
Unknown
PR์ด ๋จธ์ง€๋œ๋‹ค๋ฉด, ์ด ํ”„๋กœ์ ํŠธ์˜ ๋ชจ๋“  button ํƒœ๊ทธ์— `width: 120px, height: 50px` ์†์„ฑ์ด ์ ์šฉ๋˜๊ฒ ๋„ค์š”! ์ด๋ฅผ ๋ฐฉ์ง€ํ•˜๊ธฐ ์œ„ํ•ด์„œ๋Š” ์œ„์— ์ž˜ ํ•ด์ฃผ์‹  ๊ฒƒ์ฒ˜๋Ÿผ nesting๋˜์–ด์•ผ ํ•ฉ๋‹ˆ๋‹ค. ์ถ”๊ฐ€๋กœ, ํƒœ๊ทธ ์„ ํƒ์ž์˜ ์‚ฌ์šฉ์€ ๋‹ค์Œ์˜ ๊ฒฝ์šฐ ์™ธ์—๋Š” ์ง€์–‘ํ•˜๋Š” ๊ฒŒ ์ข‹์Šต๋‹ˆ๋‹ค. 1. ์ „์—ญ์— ์ ์šฉ๋˜์–ด์•ผ ํ•˜๋Š” ์Šคํƒ€์ผ (e.g. common.scss, reset.scss) 2. ์•ž์œผ๋กœ๋„ ๋ณ€๊ฒฝ๋˜์ง€ ์•Š๋Š”๋‹ค๋Š” ํ™•์‹ ์ด ์žˆ๋Š” ์š”์†Œ className์„ ๋ถ€์—ฌํ•ด์„œ ์Šคํƒ€์ผ ์†์„ฑ ๋ถ€์—ฌํ•ด ์ฃผ์„ธ์š”!
@@ -1,7 +1,17 @@ @import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@100;300;400;500;700;900&display=swap'); - * { box-sizing: border-box; font-family: 'Noto Sans KR', sans-serif; -} \ No newline at end of file +} +body { + width: 100vw; + height: 100vh; + display: flex; + align-items:...
Unknown
๊ณต์šฉ ํŒŒ์ผ์„ ์ˆ˜์ •ํ•ด์„œ ์˜ฌ๋ ค์ฃผ์…จ๋Š”๋ฐ, ๊ณต์šฉ ํŒŒ์ผ์˜ ์ˆ˜์ •์€ 1. ํŒ€์›๊ณผ์˜ ์ถฉ๋ถ„ํ•œ ์ƒ์˜ ํ›„์— 2. ํ•ด๋‹น ํŒŒ์ผ๋งŒ ์ˆ˜์ •ํ•˜๋Š” ๋‚ด์šฉ์˜ PR ์„ ์˜ฌ๋ ค์ฃผ์…”์•ผ ํ•ฉ๋‹ˆ๋‹ค!
@@ -1,14 +1,77 @@ -import React from "react"; -import "./PostAdd.scss"; +import React, { useState } from 'react'; +import { useNavigate } from 'react-router-dom'; +import './PostAdd.scss'; +import { Button } from '../PostAdd/components/Post.jsx'; const PostAdd = () => { + const [comment, setComment] = useState('');...
JavaScript
๋ฉ˜ํ† ๋ฆฌ๋ทฐ ๋ฐ˜์˜ ์™„๋ฃŒ
@@ -1,14 +1,77 @@ -import React from "react"; -import "./PostAdd.scss"; +import React, { useState } from 'react'; +import { useNavigate } from 'react-router-dom'; +import './PostAdd.scss'; +import { Button } from '../PostAdd/components/Post.jsx'; const PostAdd = () => { + const [comment, setComment] = useState('');...
JavaScript
๋ฉ˜ํ†  ๋ฆฌ๋ทฐ ๋ฐ˜์˜ ์™„๋ฃŒ
@@ -1,14 +1,77 @@ -import React from "react"; -import "./PostAdd.scss"; +import React, { useState } from 'react'; +import { useNavigate } from 'react-router-dom'; +import './PostAdd.scss'; +import { Button } from '../PostAdd/components/Post.jsx'; const PostAdd = () => { + const [comment, setComment] = useState('');...
JavaScript
๋ฉ˜ํ†  ๋ฆฌ๋ทฐ ๋ฐ˜์˜์™„๋ฃŒ
@@ -1,14 +1,77 @@ -import React from "react"; -import "./PostAdd.scss"; +import React, { useState } from 'react'; +import { useNavigate } from 'react-router-dom'; +import './PostAdd.scss'; +import { Button } from '../PostAdd/components/Post.jsx'; const PostAdd = () => { + const [comment, setComment] = useState('');...
JavaScript
alt ์†์„ฑ์€ ํ™”๋ฉด์— ์ด๋ฏธ์ง€๊ฐ€ ํ‘œ์‹œ๋˜์ง€ ์•Š์„๋•Œ ์‚ฌ์šฉ์ž๊ฐ€ ์•Œ ์ˆ˜ ์žˆ๋„๋ก ๋Œ€์ฒด ํ…์ŠคํŠธ๋ฅผ ์ œ๊ณตํ•˜๋Š” ์—ญํ• ์„ ํ•˜๊ธฐ ๋–„๋ฌธ์— alt ๊ฐ’์— userPicture๋ฅผ ๋„ฃ๊ฒ ์๋‹ˆ๋‹ค..
@@ -0,0 +1,79 @@ +.userBox { + margin: 20px; + gap: 0 24px; + display: flex; + justify-content: center; + flex-direction: column; + + .userWrap { + display: flex; + flex-direction: row; + justify-content: center; + + .user { + width: 50px; + height: 50px; + border-radius: 50%; + } + ...
Unknown
๋ฉ˜ํ†  ๋ฆฌ๋ทฐ ๋ฐ˜์˜ ์™„๋ฃŒ
@@ -1,14 +1,77 @@ -import React from "react"; -import "./PostAdd.scss"; +import React, { useState } from 'react'; +import { useNavigate } from 'react-router-dom'; +import './PostAdd.scss'; +import { Button } from '../PostAdd/components/Post.jsx'; const PostAdd = () => { + const [comment, setComment] = useState('');...
JavaScript
๋„ต!
@@ -1,14 +1,77 @@ -import React from "react"; -import "./PostAdd.scss"; +import React, { useState } from 'react'; +import { useNavigate } from 'react-router-dom'; +import './PostAdd.scss'; +import { Button } from '../PostAdd/components/Post.jsx'; const PostAdd = () => { + const [comment, setComment] = useState('');...
JavaScript
๋ฉ˜ํ†  ๋ฆฌ๋ทฐ ๋ฐ˜์˜ ์™„๋ฃŒ(?)
@@ -0,0 +1,30 @@ +package nextstep.security.context; + +import jakarta.servlet.FilterChain; +import jakarta.servlet.ServletException; +import jakarta.servlet.ServletRequest; +import jakarta.servlet.ServletResponse; +import jakarta.servlet.http.HttpServletRequest; +import org.springframework.web.filter.GenericFilterBean...
Java
chain.doFilter(request, response) ์ค‘ ์˜ˆ์™ธ๊ฐ€ ๋ฐœ์ƒํ•˜๋ฉด clearContext()๊ฐ€ ํ˜ธ์ถœ๋˜์ง€ ์•Š์„ ์ˆ˜ ์žˆ๊ฒ ๋„ค์š” finally ๋ธ”๋ก์—์„œ ํ˜ธ์ถœํ•˜๋„๋ก ๋ณ€๊ฒฝํ•ด๋ณด๋ฉด ์–ด๋–จ๊นŒ์š”? ๐Ÿ˜„
@@ -0,0 +1,9 @@ +package nextstep.security.exception; + +public class AuthenticationException extends RuntimeException { + public AuthenticationException() {} + + public AuthenticationException(String message) { + super(message); + } +}
Java
ํ˜„์žฌ `AuthenticationException`์„ ์‹ฑ๊ธ€ํ„ด ์ธ์Šคํ„ด์Šค๋กœ ๋ฏธ๋ฆฌ ์ƒ์„ฑํ•ด๋‘๊ณ  ์žˆ๋Š”๋ฐ์š”. ์ด ๋ฐฉ์‹์€ ๋ถˆํ•„์š”ํ•œ ๊ฐ์ฒด ์ƒ์„ฑ์„ ๋ฐฉ์ง€ํ•˜๊ณ  ์ผ๊ด€๋œ ์˜ˆ์™ธ ๋ฉ”์‹œ์ง€ ์ œ๊ณต์ด๋ผ๋Š” ์žฅ์ ์ด ์žˆ์ง€๋งŒ, ์Šคํƒ ํŠธ๋ ˆ์ด์Šค๊ฐ€ ๋‚จ์ง€ ์•Š๋Š”๋‹ค๋Š” ๋ฌธ์ œ๊ฐ€ ์žˆ์Šต๋‹ˆ๋‹ค. ํ˜น์‹œ ์ด ๋ถ€๋ถ„์„ ์ธ์ง€ํ•˜๊ณ  ๊ณ„์‹ค๊นŒ์š”? ๐Ÿ˜„
@@ -0,0 +1,24 @@ +package nextstep.security.authentication.manager; + +import nextstep.security.authentication.Authentication; +import nextstep.security.authentication.provider.AuthenticationProvider; +import nextstep.security.exception.AuthenticationProviderException; + +import java.util.List; + +public class Provider...
Java
์†Œ์†Œํ•˜์ง€๋งŒ ๋‹ค์Œ๊ณผ ๊ฐ™์ด ๊ฐœํ–‰์„ ํ•˜๋ฉด ์ข€๋” ๊ฐ€๋…์„ฑ์ด ์ข‹์„ ๊ฒƒ ๊ฐ™์•„์š” ๐Ÿ˜„ ```suggestion @Override public Authentication authenticate(Authentication authenticationToken) { return providers.stream() .filter(provider -> provider.supports(authenticationToken.getClass())) .findFirst() .orElseThrow(Authenticati...
@@ -0,0 +1,9 @@ +package nextstep.security.exception; + +public class AuthenticationException extends RuntimeException { + public AuthenticationException() {} + + public AuthenticationException(String message) { + super(message); + } +}
Java
์•— ์Šคํƒ ํŠธ๋ ˆ์ด์Šค ๋ถ€๋ถ„์„ ์ƒ๊ฐ์„ ๋ชปํ–ˆ๋„ค์š”. [394ed26](https://github.com/next-step/spring-security-authentication/pull/28/commits/394ed26a7c3b3dea8c17c1192cbed19393315d0f) ์ปค๋ฐ‹์—์„œ ๋งค๋ฒˆ ์ƒˆ๋กœ์šด ๊ฐ์ฒด๋ฅผ ์ƒ์„ฑํ•˜๋„๋ก ์ˆ˜์ •ํ–ˆ์Šต๋‹ˆ๋‹ค. ํ•˜๋Š” ๊น€์— ์ปค์Šคํ…€ ์˜ˆ์™ธ๋ฅผ ๋” ์„ธ๋ถ„ํ™”ํ•  ์ˆ˜ ์žˆ๋„๋ก ํ•˜์˜€์Šต๋‹ˆ๋‹ค.
@@ -0,0 +1,24 @@ +package nextstep.security.authentication.manager; + +import nextstep.security.authentication.Authentication; +import nextstep.security.authentication.provider.AuthenticationProvider; +import nextstep.security.exception.AuthenticationProviderException; + +import java.util.List; + +public class Provider...
Java
[58614f1](https://github.com/next-step/spring-security-authentication/pull/28/commits/58614f1d4af41421b2f16d76eb1323fbf34c3bf9) ์ปค๋ฐ‹์—์„œ indentation ์Šคํƒ€์ผ ๋ณ€๊ฒฝ ๋ฐ˜์˜ํ–ˆ์Šต๋‹ˆ๋‹ค.
@@ -0,0 +1,30 @@ +package nextstep.security.context; + +import jakarta.servlet.FilterChain; +import jakarta.servlet.ServletException; +import jakarta.servlet.ServletRequest; +import jakarta.servlet.ServletResponse; +import jakarta.servlet.http.HttpServletRequest; +import org.springframework.web.filter.GenericFilterBean...
Java
์•— ์ •๋ง๋กœ ๊ทธ๋ ‡๊ฒ ๋„ค์š”. Filter ์—์„œ ์˜ˆ์™ธ์ฒ˜๋ฆฌ ๋•Œ๋ฌธ์— ๊ณ ์ƒํ•œ์ ์ด ์žˆ๋Š”๋ฐ, ์ง€์ ํ•ด์ฃผ์…”์„œ ๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค! โค๏ธ ํ•ญ์ƒ ๋™์ž‘ํ•ด์•ผํ•˜๋Š” ๋กœ์ง์€ finally ๋ฌธ๋ฒ• ํ™œ์šฉํ•˜๋Š” ์Šต๊ด€์„ ๊ฐ€์ ธ์•ผ๊ฒ ๋„ค์š”. ์‹ค๋ฌด์—์„œ ๋‹น์žฅ ํ™œ์šฉํ•ด์•ผ๊ฒ ๋‹ค๋Š” ์ƒ๊ฐ์ด ๋“œ๋Š” ์œ ์šฉํ•œ ํ”ผ๋“œ๋ฐฑ ๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค. [9e5ef93](https://github.com/next-step/spring-security-authentication/pull/28/commits/9e5ef934299204a6fd37b266e7dbb52f0e2b294a) ์ปค๋ฐ‹์—์„œ finally ๋ธ”๋ก์—์„œ clearContext ๊ฐ€ ํ˜ธ์ถœ๋˜๋„๋ก ๋ณ€๊ฒฝํ–ˆ์Šต๋‹ˆ๋‹ค...
@@ -0,0 +1,41 @@ +package nextstep.security.authentication.token; + +import jakarta.servlet.http.HttpServletRequest; +import nextstep.security.authentication.Authentication; +import nextstep.security.exception.AuthenticationTokenException; + +import java.util.Base64; + +import static org.springframework.http.HttpHeader...
Java
`HttpHeaders.AUTHORIZATION`๋ฅผ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ์„ ๊ฒƒ ๊ฐ™๋„ค์š” ๐Ÿ˜„
@@ -0,0 +1,41 @@ +package nextstep.security.authentication.token; + +import jakarta.servlet.http.HttpServletRequest; +import nextstep.security.authentication.Authentication; +import nextstep.security.exception.AuthenticationTokenException; + +import java.util.Base64; + +import static org.springframework.http.HttpHeader...
Java
[65922ab](https://github.com/next-step/spring-security-authentication/pull/28/commits/65922ab2a9189e06adb07bd8950a96416d723db0) ์ปค๋ฐ‹์—์„œ ๋ฐ˜์˜ ์™„๋ฃŒํ–ˆ์Šต๋‹ˆ๋‹ค!
@@ -2,7 +2,7 @@ import React, { useState, useEffect } from "react"; import styled from "@emotion/styled"; import { css, Theme } from "@emotion/react"; import CheckIcon from "components/inputs/TextInput/CheckIcon"; -import { TConditionCheck } from "./types/TConditionCheck"; +import { TConditionCheck } from "component...
Unknown
์‚ฌ์†Œํ•˜์ง€๋งŒ `height ?? "auto"` ๋„ ๊ดœ์ฐฎ์„ ๊ฒƒ ๊ฐ™์•„์š”!
@@ -0,0 +1,170 @@ +import styled from "@emotion/styled"; +import IconStarFilled from "components/rating/icons/IconStarFilled"; +import IconStarHalf from "components/rating/icons/IconStarHalf"; +import IconStarOutlined from "components/rating/icons/IconStarOutlined"; +import { HTMLAttributes, useEffect, useState, useRef...
Unknown
์˜ค ์ด ์ปดํฌ๋„ŒํŠธ๋Š” ์•„์ง Rating์ชฝ์ด ๋จธ์ง€ ๋˜์ง€ ์•Š์•„์„œ ์ผ๋ถ€ ๋‚ด์šฉ์„ ๊ทธ๋Œ€๋กœ ๊ฐ€์ง€๊ณ  ์˜ค์‹  ๋ถ€๋ถ„์ธ๊ฐ€์šฉ~? (+ `isInput` ๋ชจ๋“œ ์ถ”๊ฐ€๋กœ์š”?)
@@ -0,0 +1,170 @@ +import styled from "@emotion/styled"; +import IconStarFilled from "components/rating/icons/IconStarFilled"; +import IconStarHalf from "components/rating/icons/IconStarHalf"; +import IconStarOutlined from "components/rating/icons/IconStarOutlined"; +import { HTMLAttributes, useEffect, useState, useRef...
Unknown
์˜ค... ๋›ฐ์–ด๋‚œ ์‚ฌ์šฉ์„ฑ์ผ ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค ๐Ÿ˜† ์ˆ˜๊ณ ํ•˜์…จ์Šต๋‹ˆ๋‹ค!
@@ -0,0 +1,120 @@ +import styled from "@emotion/styled"; +import Image from "next/image"; +import { useState } from "react"; +import Rating from "components/rating/Rating"; +import IconEditFilledWhite from "components/icons/IconEditFilledWhite"; +import Link from "next/link"; +import dayjs from "dayjs"; + +interface Pr...
Unknown
์˜ค..! ์ €ํฌ๊ฐ€ `dayjs` ๋„ ์“ฐ๊ณ  ์žˆ์–ด์„œ ํ™œ์šฉํ•ด๋ณด์‹œ๋Š” ๊ฒƒ๋„ ์ข‹์„ ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค! ์ด๋Ÿฐ ๊ฒฝ์šฐ ```tsx import dayjs from 'dayjs'; const formattedDate= dayjs(date).format("YY/MM/DD") ``` ์ด๋ ‡๊ฒŒ ํ™œ์šฉํ•ด๋ณผ ์ˆ˜๋„ ์žˆ์„ ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค~
@@ -0,0 +1,120 @@ +import styled from "@emotion/styled"; +import Image from "next/image"; +import { useState } from "react"; +import Rating from "components/rating/Rating"; +import IconEditFilledWhite from "components/icons/IconEditFilledWhite"; +import Link from "next/link"; +import dayjs from "dayjs"; + +interface Pr...
Unknown
`className` ์€ ๋”ฐ๋กœ ์ปจ๋ฒค์…˜์ด ์žˆ๋Š” ๊ฒƒ์€ ์•„๋‹ˆ์ง€๋งŒ ๋Œ€๋ถ€๋ถ„ kebab case ๋ฅผ ์ ์šฉํ•˜๊ณ  ์žˆ์–ด `user-info-score-div` ์ด๋Ÿฐ ์‹์€ ์–ด๋–จ๊นŒ์š”~?
@@ -0,0 +1,105 @@ +import styled from "@emotion/styled"; +import RestaurantExternalLinkIcon from "feature/restaurants/restaurantsDetail/components/icons/RestaurantExternalLinkIcon"; +import Link from "next/link"; + +interface Props { + restaurantId: string; + userAuth?: number; + restaurantName: string; + restauran...
Unknown
์ด `restaurantId` ๊ฐ€ `string[]` ๋„ ๋ฐ›๊ฒŒ ํ•˜์‹  ์ด์œ ๊ฐ€ ์žˆ์„๊นŒ์š”~?
@@ -0,0 +1,105 @@ +import styled from "@emotion/styled"; +import RestaurantExternalLinkIcon from "feature/restaurants/restaurantsDetail/components/icons/RestaurantExternalLinkIcon"; +import Link from "next/link"; + +interface Props { + restaurantId: string; + userAuth?: number; + restaurantName: string; + restauran...
Unknown
์•— ์—ฌ๊ธฐ๋„ `over-title-div` ์ด๋ ‡๊ฒŒ ๊ฐ€ ์–ด๋–จ๊นŒ์š” !
@@ -0,0 +1,105 @@ +import styled from "@emotion/styled"; +import RestaurantExternalLinkIcon from "feature/restaurants/restaurantsDetail/components/icons/RestaurantExternalLinkIcon"; +import Link from "next/link"; + +interface Props { + restaurantId: string; + userAuth?: number; + restaurantName: string; + restauran...
Unknown
์—ฌ๊ธฐ๋Š” ์ด ํŽ˜์ด์ง€์—์„œ ๊ฑฐ์˜ ๋ฉ”์ธ ๊ธ‰ ์ œ๋ชฉ์ธ ๊ฒƒ ๊ฐ™์€๋ฐ `<h1 />` ํƒœ๊ทธ ์ •๋„๋กœ ์‚ฌ์šฉํ•˜๋ฉด ์–ด๋–จ๊นŒ์š”~? ์•„๋ž˜๋Š” ๋ ˆํผ๋Ÿฐ์Šค์šฉ [ํŽ˜์ด์Šค๋ถ] ์˜ ๋ฉค๋ฒ„ ์ƒ์„ธ ํŽ˜์ด์ง€์ธ๋ฐ ์„œ๋น„์Šค ์ œ๋ชฉ (์ €ํฌ๋กœ ์น˜๋ฉด '์ฉ์ฉ๋Œ€ํ•™') ์€ `<h2/>` ํƒœ๊ทธ, ์œ ์ € ์ด๋ฆ„์€ `<h1/>` ์œผ๋กœ ์‚ฌ์šฉํ•œ ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค. ์ €ํฌ๋„ ์˜คํžˆ๋ ค ์ƒ๋‹จ navbar ์—์„œ [์ฉ์ฉ๋Œ€ํ•™] ์„ `<h2 />` ๋กœ ๋ฐ”๊พธ๊ณ  ๋ง›์ง‘์ด๋‚˜ ๋‹จ์ฒด ์ƒ์„ธ ํŽ˜์ด์ง€์—์„œ ๋ง›์ง‘์ด๋ฆ„, ๋‹จ์ฒด์ด๋ฆ„์€ `<h1/>` ์— ๋„ฃ์œผ๋ฉด semantic tagging ๋ฟ๋งŒ ์•„๋‹ˆ๋ผ SEO ์—๋„ ๋„์›€์ด ๋  ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค! cc. @hoon5083 ![i...
@@ -0,0 +1,85 @@ +import styled from "@emotion/styled"; +import Image from "next/image"; +import { useState } from "react"; +import Button from "components/button/Button"; + +interface Props { + imgSrcList: string[]; +} + +const RestaurantDetailImgSection: React.FC<Props> = ({ imgSrcList }) => { + const [currentImgIn...
Unknown
ํ˜น์‹œ ์ด ๋ฒ„ํŠผ์€ ํ™”๋ฉด์ƒ์˜ ์–ด๋А ๋ถ€๋ถ„์ธ๊ฐ€์šฉ~? ๋กœ์ปฌ์—์„œ ๋Œ๋ ธ์„ ๋•Œ ๋…ธ์ถœ๋˜์ง€ ์•Š๋Š” ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค! ![image](https://github.com/SystemConsultantGroup/foodhub-frontend/assets/86560973/c705c6dd-3624-40d6-8639-8764bd45609d)
@@ -0,0 +1,70 @@ +import styled from "@emotion/styled"; +import RestaurantDetailImgSection from "feature/restaurants/restaurantsDetail/components/section/RestaurantDetailImgSection"; +import RestaurantDetailHeaderSection from "feature/restaurants/restaurantsDetail/components/section/RestaurantDetailHeaderSection"; +imp...
Unknown
์ž„์‹œ ์ฝ”๋“œ์ธ๊ฐ€์š”!? ๊ฐ์ฒด๊ตฌ์กฐ ๋ถ„ํ•ด๋กœ ๋ฐ›์•„์˜ค๋Š” ๊ฒƒ๋„ ์ข‹์„ ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค! ```tsx const { totalScore, totalCount, totalPages, scoreStatistics } = reviewPage1 ```
@@ -0,0 +1,137 @@ +import styled from "@emotion/styled"; +import Rating from "components/rating/Rating"; +import RestaurantDetailHeaderSection from "feature/restaurants/restaurantsDetail/components/section/RestaurantDetailHeaderSection"; +import Button from "components/button/Button"; +import TextInput from "components...
Unknown
์˜คํƒ€๊ฐ€ ์žˆ๋Š” ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค!
@@ -0,0 +1,137 @@ +import styled from "@emotion/styled"; +import Rating from "components/rating/Rating"; +import RestaurantDetailHeaderSection from "feature/restaurants/restaurantsDetail/components/section/RestaurantDetailHeaderSection"; +import Button from "components/button/Button"; +import TextInput from "components...
Unknown
์š” ๊ฐ’์„ `src/constant/limit.ts` ์—์„œ ๊ด€๋ฆฌํ•ด์ฃผ๋Š” ๊ฒƒ์€ ์–ด๋–จ๊นŒ์š”~? ํ•˜๋‚˜์˜ ํŒŒ์ผ์—์„œ ๊ฐ ์ตœ๋Œ€๊ธธ์ด๋‚˜ ์ตœ์†Œ๊ธธ์ด ์กฐ๊ฑด ๋“ฑ์„ ๊ด€๋ฆฌํ•ด์ฃผ๋ฉด ๋‚˜์ค‘์— ์ด๋ฅผ ์ฆ๊ฐ€ ๋˜๋Š” ๊ฐ์†Œ์‹œํ‚ฌ ์ผ์ด ์žˆ์„ ๋•Œ ๋Œ€์‘ํ•˜๊ธฐ ์šฉ์ดํ•  ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค!
@@ -0,0 +1,18 @@ +import styled from "@emotion/styled"; +import RestaurantsReviewForm from "feature/restaurants/restaurantsReview/components/form/RestaurantsReviewForm"; + +interface Props { + restaurantId: string; +} + +const ViewRestaurantReviewCreate: React.FC<Props> = ({ restaurantId }) => { + return ( + <Emot...
Unknown
์—ฌ๊ธฐ์„œ๋„ `string []` ์„ ํŠน๋ณ„ํžˆ ์ถ”๊ฐ€ํ•ด์ฃผ์‹  ์ด์œ ๊ฐ€ ์žˆ์„๊นŒ์š”~?