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 | ํน์ ์ด ๋ฒํผ์ ํ๋ฉด์์ ์ด๋ ๋ถ๋ถ์ธ๊ฐ์ฉ~?
๋ก์ปฌ์์ ๋๋ ธ์ ๋ ๋
ธ์ถ๋์ง ์๋ ๊ฒ ๊ฐ์ต๋๋ค!
 |
@@ -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 []` ์ ํน๋ณํ ์ถ๊ฐํด์ฃผ์ ์ด์ ๊ฐ ์์๊น์~? |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.