code stringlengths 41 34.3k | lang stringclasses 8
values | review stringlengths 1 4.74k |
|---|---|---|
@@ -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 | ๋ฉํ ๋ฆฌ๋ทฐ ๋ฐ์ ์๋ฃ(?) |
@@ -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 []` ์ ํน๋ณํ ์ถ๊ฐํด์ฃผ์ ์ด์ ๊ฐ ์์๊น์~? |
@@ -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,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 | ์ ์ด๋ฏธ์ง ์ฌ๋ผ์ด๋๋ฅผ ๊ตฌํํ๋ ค๋ค๊ฐ ์ผ๋จ PR๋ถํฐ ์ฌ๋ ธ๋๋ฐ, ํด๋น ๋ฒํผ์ ๊ทธ ๊ณผ์ ์์ ์๊ธด ๋ณ ์๋ฏธ ์๋ ๋ฒํผ์
๋๋ค.. ์ญ์ ํ๋๋ก ํ๊ฒ ์ต๋๋ค! |
@@ -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 | ํ์ธ ๊ฐ์ฌํฉ๋๋ค. ์์ ํ์ต๋๋ค! |
@@ -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 | ๋ต ์ข์ต๋๋ค! ์์ ํ์ต๋๋ค. |
@@ -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,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 />`์ ์ฌ์ฉํ๋๋ก ์์ ํ๊ฒ ์ต๋๋ค.
์ผ๋จ ๋ง์ง ์์ธ ํ์ด์ง์์๋ ๋ง์ง ์ด๋ฆ์ `<h1 />` ํ๊ทธ๋ก ์์ ์๋ฃํ์์ต๋๋ค. |
@@ -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 | className์ ๋ชจ๋ kebab case๋ก ์์ ์๋ฃํ์์ต๋๋ค! |
@@ -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๋ก ์์ ์๋ฃํ์์ต๋๋ค! |
@@ -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 | ์ค ๋ต ๊ฐ์ฌํฉ๋๋ค. ํด๋น ๋ฐฉ์์ผ๋ก ์์ ์๋ฃํ์์ต๋๋ค! |
@@ -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 | ๋ต ์์ ํ์ต๋๋ค! |
@@ -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๋ฅผ ๋ฐ์์ฌ ๋ `const restaurantId = query.restaurantId ?? 0;` ์ด๋ ๊ฒ๋ง ํ๋๋ props๋ก ๋๊ฒจ์ค ๋ ํ์
์๋ฌ๊ฐ ๋ ์ ์ ๋ ๊ฒ ์ค์ ํ๊ฑด๋ฐ, ํ์ฌ๋ `const restaurantId = (query.restaurantId ?? 0) as string;` ์์ ์ด๋ฐ ์์ผ๋ก ํ์
์ ๋ช
์ํด์ฃผ์ด์ props๋ก ๋ฐ์์ฌ ๋์๋ string์ผ๋ก๋ง ๋ฐ์์ค๋๋ก ์์ ํ์ต๋๋ค! |
@@ -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 | [์ฌ๊ธฐ](https://github.com/SystemConsultantGroup/foodhub-frontend/pull/27#discussion_r1373127345)์์ ์ด์ ๋ฅผ ์ค๋ช
ํ์๊ณ , ํด๋น ๋ถ๋ถ string์ผ๋ก๋ง ๋ฐ์์ค๋๋ก ์์ ํ์ต๋๋ค! |
@@ -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 | ๋ณ์ ์ dragํ์ฌ ์
๋ ฅํ ์ ์๋๋ก ์ถ๊ฐ์ ์ผ๋ก ๊ตฌํํ์๋๋ฐ, ๋ฐ์คํฌํฑ์์๋ ์ ๋๋๋ฐ ๋ชจ๋ฐ์ผ์์๋ touchMove ์ด๋ฒคํธ๊ฐ ์ค๊ฐ์ ๋๊ธฐ๋ ํ์์ด ๋ฐ์ํ์์ต๋๋ค. ์ ํํ๋ touchMove ๋์ค์ state๋ฅผ ์ธํ
ํ๋ฉด, ํฐ์น๋ ์ด์ด์ง๊ณ ์๋ ์ํฉ์ธ๋ฐ๋ touchMove๊ฐ ์ธ์๋์ง ์์ต๋๋ค. selectedValue๊ฐ ๋ฐ๋๋ฉด์ star๋ค์ด ๋ค์ ๋ ๋๋ง๋๋ ๊ฒ ๋๋ฌธ์ธ ๊ฒ ๊ฐ์ง๋ง ์ ํํ ๋ญ ๋๋ฌธ์ธ์ง๋ ๋ชจ๋ฅด๊ฒ ์ต๋๋ค. ํ์ฌ ํด๊ฒฐ ๋ฐฉ์์ ์ฐพ๋ ์ค์ด๊ธด ํ๋ฐ, ํ๋ค๊ฐ ์๋๋ฉด ์ด์๋ก ์ฌ๋ฆฌ๋๋ก ํ๊ฒ ์ต๋๋ค.. @jaychang99 @hoon5083 |
@@ -1,8 +1,100 @@
import React from 'react';
+import { withRouter } from 'react-router-dom';
+import './Login.scss';
+
+class Login extends React.Component {
+ constructor() {
+ super();
+ this.state = {
+ id: '',
+ pw: '',
+ };
+ }
+
+ handleInput = e => {
+ const { value, name } = e.target;
... | JavaScript | ๋ฆฌ์กํธ ๊ด๋ จ ๋ผ์ด๋ธ๋ฌ๋ฆฌ import๊ฐ ๋ ์ฐ์ ์์์ ์์นํด์ผ ํ ๊ฒ ๊ฐ์ต๋๋ค! |
@@ -1,8 +1,100 @@
import React from 'react';
+import { withRouter } from 'react-router-dom';
+import './Login.scss';
+
+class Login extends React.Component {
+ constructor() {
+ super();
+ this.state = {
+ id: '',
+ pw: '',
+ };
+ }
+
+ handleInput = e => {
+ const { value, name } = e.target;
... | JavaScript | import './Login.scss'; ์๋ก ๊ฐ์ผ๋ ๊ฒ ๊ฐ์ต๋๋ค!! ๐ |
@@ -1,8 +1,100 @@
import React from 'react';
+import { withRouter } from 'react-router-dom';
+import './Login.scss';
+
+class Login extends React.Component {
+ constructor() {
+ super();
+ this.state = {
+ id: '',
+ pw: '',
+ };
+ }
+
+ handleInput = e => {
+ const { value, name } = e.target;
... | JavaScript | ์์ ์๋ฃ ๐ |
@@ -1,8 +1,100 @@
import React from 'react';
+import { withRouter } from 'react-router-dom';
+import './Login.scss';
+
+class Login extends React.Component {
+ constructor() {
+ super();
+ this.state = {
+ id: '',
+ pw: '',
+ };
+ }
+
+ handleInput = e => {
+ const { value, name } = e.target;
... | JavaScript | - variable.scss ๋ scss ํ์ผ์์ ์ฌ์ฉํ๋ ๊ฒ์ด๊ธฐ ๋๋ฌธ์ js ์์ import ๋ฅผ ํ๋ ๊ฒ์ด ์๋ฏธ๊ฐ ์์ต๋๋ค.
- scss ํ์ผ์์ ๋ณ์๋ฅผ ์ฌ์ฉํ๋ ๊ฒฝ์ฐ์ import ํด์ฃผ์ธ์! |
@@ -1,8 +1,100 @@
import React from 'react';
+import { withRouter } from 'react-router-dom';
+import './Login.scss';
+
+class Login extends React.Component {
+ constructor() {
+ super();
+ this.state = {
+ id: '',
+ pw: '',
+ };
+ }
+
+ handleInput = e => {
+ const { value, name } = e.target;
... | JavaScript | - ๋ ํจ์๋ ํ๋ ์ญํ ์ด ๋น์ทํ๊ธฐ ๋๋ฌธ์ ์ถฉ๋ถํ ํ๋์ ํจ์๋ก ํฉ์ณ๋ณผ ์ ์์ ๊ฒ ๊ฐ์ต๋๋ค.
- Refactoring CheckList ์ฐธ๊ณ ํด์ ์์ ํด ๋ณด์ธ์! |
@@ -1,8 +1,100 @@
import React from 'react';
+import { withRouter } from 'react-router-dom';
+import './Login.scss';
+
+class Login extends React.Component {
+ constructor() {
+ super();
+ this.state = {
+ id: '',
+ pw: '',
+ };
+ }
+
+ handleInput = e => {
+ const { value, name } = e.target;
... | JavaScript | - isActive ๋ id ์ pw ๋ก ๊ณ์ฐํ ์ ์๋ ๊ฐ์ด์ด๊ธฐ ๋๋ฌธ์ state ๋ก ๊ด๋ฆฌํ ํ์๊ฐ ์์ด ๋ณด์
๋๋ค!
- ์๋ ๊ณต์ ๋ฌธ์ ์ฐธ๊ณ ํ์
์ ์ด๋ค ๊ฐ๋ค์ด state ๋ก ์ ์ ํ์ง ์์์ง ํ์
ํด๋ณด์๊ธฐ ๋ฐ๋๋๋ค!
https://www.notion.so/wecode/Westagram-React-Refactoring-Checklist-aea297cf88ed4601b769e4b2c2cfd4e1#089493d6bfca438aa328226e327cff92 |
@@ -1,8 +1,100 @@
import React from 'react';
+import { withRouter } from 'react-router-dom';
+import './Login.scss';
+
+class Login extends React.Component {
+ constructor() {
+ super();
+ this.state = {
+ id: '',
+ pw: '',
+ };
+ }
+
+ handleInput = e => {
+ const { value, name } = e.target;
... | JavaScript | - isActive ๋ฅผ state ๋ก ๊ด๋ฆฌํ ํ์ ์์ด, ์ฌ๊ธฐ์ ๋ฐ๋ก true / false ๋ฅผ ๊ณ์ฐํ๋ฉด ๋ ๊ฒ ๊ฐ์ต๋๋ค! |
@@ -1,3 +1,106 @@
-*{
- margin: 0;
-}
\ No newline at end of file
+@import '../../../styles/variable.scss';
+
+.Login {
+ @include flexCenter;
+ flex-direction: column;
+ align-items: center;
+ height: 100vh;
+
+ .loginBox {
+ display: flex;
+ flex-direction: column;
+ justify-content: space-between;
+... | Unknown | - css ์์
์ ํ์ค๋ ๋ฐ๊นฅ ์์์ ํน์ ํ width / height ๊ฐ์ ๋ถ์ฌํ์๋ ๊ฒ ๋ณด๋ค, ๋ฐ๊นฅ ์์์ ํฌ๊ธฐ๋ ๋ด์ฉ๋ฌผ์ ํฌ๊ธฐ + margin / padding ๋ค์ ํฉ์ผ๋ก ์์ฐ์ค๋ฝ๊ฒ ํฌ๊ธฐ๊ฐ ๊ฒฐ์ ๋๋๋ก ํ์๋ ๊ฒ ๋ ์ข์ต๋๋ค.
- ํญ์ bottom up ๋ฐฉ์์ผ๋ก ์คํ์ผ๋ง ํ๋ ์ต๊ด์ ๋ค์ฌ์ฃผ์ธ์! |
@@ -0,0 +1,26 @@
+import React from 'react';
+import './Aside.scss';
+
+import ProfileWrap from './ProfileWrap/ProfileWrap';
+import StoryBox from './StoryBox/StoryBox';
+import RecommendBox from './RecommendBox/RecommendBox';
+import WestaInfoBox from './WestaInfoBox/WestaInfoBox';
+
+class Aside extends React.Compone... | JavaScript | - Import ์์ ์์ ํด์ฃผ์ธ์! ์ผ๋ฐ์ ์ธ convention์ ๋ฐ๋ฅด๋ ์ด์ ๋ ์์ง๋ง ์์๋ง ์ ์ง์ผ์ฃผ์
๋ ๊ฐ๋
์ฑ์ด ์ข์์ง๋๋ค. ์๋ ์์ ์ฐธ๊ณ ํด์ฃผ์ธ์.
- React โ Library(Package) โ Component โ ๋ณ์ / ์ด๋ฏธ์ง โ css ํ์ผ(scss ํ์ผ)
```suggestion
import React from 'react';
import ProfileWrap from './ProfileWrap/ProfileWrap';
import StoryBox from './StoryBox/StoryBox';
import RecommendBox f... |
@@ -0,0 +1,56 @@
+import React from 'react';
+import './Content.scss';
+
+import Feed from './Feed/Feed';
+import Aside from './Aside/Aside';
+
+class Content extends React.Component {
+ constructor() {
+ super();
+ this.state = {
+ feeds: [],
+ };
+ }
+
+ componentDidMount() {
+ fetch('http://local... | JavaScript | - `http://localhost:3000` ์ ์๋ต ๊ฐ๋ฅํฉ๋๋ค. ํฌํธ ๋ฒํธ๊ฐ ๋ฌ๋ผ์ง๋ฉด(ex. `localhost:3001`) fetch ํจ์๋ฅผ ์ผ์ผ์ด ์์ ํด์ฃผ์ด์ผ ํ๊ธฐ ๋๋ฌธ์ ์ ์ง๋ณด์๊ฐ ์ด๋ ค์์ง๋๋ค. ์๋ ์ฝ๋ ์ฐธ๊ณ ํด์ ์์ ํด์ฃผ์ธ์!
```jsx
const foo = () => {
// fetch("http://localhost:3000/images/1")
fetch("/images/1")
}
```
- fetchํจ์์ `get method`๋ method์ default ๊ฐ์
๋๋ค. ๋ฐ๋ผ์ ์๋ต์ด ๊ฐ๋ฅํฉ๋๋ค.
```jsx
const foo =... |
@@ -0,0 +1,56 @@
+import React from 'react';
+import './Content.scss';
+
+import Feed from './Feed/Feed';
+import Aside from './Aside/Aside';
+
+class Content extends React.Component {
+ constructor() {
+ super();
+ this.state = {
+ feeds: [],
+ };
+ }
+
+ componentDidMount() {
+ fetch('http://local... | JavaScript | - mock up ๋ฐ์ดํฐ์ ํค ๊ฐ์ ์ค๋ค์ดํฌ ์ผ์ด์ค๋ก ์ฌ์ฉํด์ฃผ์
๋ ๋์ง๋ง (๋ฐฑ์๋์์๋ ๋ณดํต ์ค๋ค์ดํฌ ์ผ์ด์ค๋ฅผ ์ฐ๊ธฐ ๋๋ฌธ์) props ์ ์ด๋ฆ์ ์นด๋ฉ ์ผ์ด์ค๋ก ํต์ผํด ์ฃผ์ธ์! |
@@ -1,26 +1,39 @@
package nextstep.app;
+import jakarta.servlet.http.HttpServletRequest;
+import java.util.ArrayList;
import nextstep.app.domain.Member;
import nextstep.app.domain.MemberRepository;
import nextstep.security.authentication.AuthenticationException;
import nextstep.security.authentication.BasicAuthe... | Java | ์ ์ถ๊ฐํด์ฃผ์
จ๋ค์ ๐ |
@@ -2,7 +2,10 @@
import nextstep.app.domain.Member;
import nextstep.app.domain.MemberRepository;
+import nextstep.security.authentication.Authentication;
+import nextstep.security.authentication.AuthenticationException;
import nextstep.security.authorization.Secured;
+import nextstep.security.context.SecurityConte... | Java | ์ด๋ฏธ Filter์์ ์ฒ๋ฆฌํ๊ณ ์๋๋ฐ ๋ถํ์ํ ๋ก์ง์ด ์๋๊น์? |
@@ -0,0 +1,20 @@
+package nextstep.security.util;
+
+import jakarta.servlet.http.HttpServletRequest;
+import org.springframework.http.HttpMethod;
+
+public class MvcRequestMatcher implements RequestMatcher {
+
+ private final HttpMethod method;
+ private final String pattern;
+
+ public MvcRequestMatcher(HttpM... | Java | ```suggestion
return this.method.equals(HttpMethod.valueOf(request.getMethod())) && pattern.equals(request.getRequestURI());
```
null-safe ๊ด์ ์์๋ ํ๋ผ๋ฏธํฐ๋ก ๋ค์ด์ค๋ `request.getRequestURI()`๋ null์ผ ์ ์๊ธฐ ๋๋ฌธ์ ๋ณ๋๋ก null ์ฒดํฌ๋ฅผ ํ์ง ์๋ ์ด์ ์์ ๊ฐ์ด ํํํ๋ ๊ฒ์ด npe๊ฐ ๋ฐ์ํ์ง ์๋ ์์ ํ ์ฝ๋๋ฅผ ๋ง๋ค ์ ์์ต๋๋ค. |
@@ -0,0 +1,14 @@
+package nextstep.security.authorization;
+
+import nextstep.security.authentication.Authentication;
+import nextstep.security.authorization.web.AuthorizationResult;
+
+@FunctionalInterface
+public interface AuthorizationManager<T> {
+ @Deprecated
+ AuthorizationDecision check(Authentication auth... | Java | ํ์ฌ spring security๋ฅผ ํ์ธํด๋ณด์๋ฉด `check`๋ deprecated๋์๋๋ฐ์. `AuthorizationDecision`์ด๋ผ๋ ํด๋์ค๋ ๊ตฌํํด์ฃผ์ ๊ฒ์ฒ๋ผ ๊ตฌํ์ฒด๋ก ๋์ด์๊ณ , ๋ณดํต์ ํ๋ ์์ํฌ๋ค์ ๊ท๋ชจ๊ฐ ์ปค์ง์๋ก ๋ง๋ค์ด๋ ๊ตฌํ์ฒด๋ค์ ์ถ์ํํ๋ ํํ๋ก ๊ฐ์ ํด๋๊ฐ๋๋ค.
`check`๊ฐ deprecated๋จ์ ๋ฐ๋ผ ํด๋น ๊ธฐ๋ฅ์ด ๋งํ ๊ฒ์ ์๋๊ณ ์ด๋ฅผ ์ถ์ํํ `AuthorizationResult`๋ฅผ ๋ฐํํ๋ ๋ฉ์๋ ์ฌ์ฉ์ ๊ถ์ฅํ๊ณ ์์ผ๋ ์ฐธ๊ณ ํด์ฃผ์๋ฉด ์ข์ ๊ฒ ๊ฐ์์ :)
https://github.com/franticticktick/spring-s... |
@@ -0,0 +1,14 @@
+package nextstep.security.authorization;
+
+import nextstep.security.authentication.Authentication;
+import nextstep.security.authorization.web.AuthorizationResult;
+
+@FunctionalInterface
+public interface AuthorizationManager<T> {
+ @Deprecated
+ AuthorizationDecision check(Authentication auth... | Java | ์คํ๋์ด ์๊ฐํ์๊ธฐ์ ์ ํ์ฌํญ์ผ๋ก ์ฃผ์ด์ง `verfiy`๋ `check`์ ๋น๊ตํ์ฌ ์ด๋ค ์ํฉ์์ ์ฌ์ฉํ๋ฉด ์ข์ ๊ฒ ๊ฐ์ผ์ ๊ฐ์? |
@@ -0,0 +1,22 @@
+package nextstep.security.authorization;
+
+import nextstep.security.authorization.web.AuthorizationResult;
+
+public class AuthorizationDecision implements AuthorizationResult {
+ public static final AuthorizationDecision ALLOW = new AuthorizationDecision(true);
+ public static final Authorizat... | Java | true ํน์ false๋ง ๊ฐ์ง๋ `AuthorizationDecision`์ด ์์ฃผ ์ฌ์ฉ๋๋๋ฐ ์ฌ์ฉ๋ ๋๋ง๋ค ์ธ์คํด์คํํ๊ธฐ๋ณด๋ค๋ ๋ถ๋ณ์์ ํ์ฉํ์ฌ ๋ฏธ๋ฆฌ ๋ง๋ค์ด์ค ์์๋ฅผ ์ฌ์ฉํ๋๋ก ์ ๋ํ ์ ์์ ๊ฒ ๊ฐ๋ค์. |
@@ -0,0 +1,38 @@
+package nextstep.security.authorization.web;
+
+import java.util.Collection;
+import nextstep.security.authentication.Authentication;
+import nextstep.security.authentication.AuthenticationException;
+import nextstep.security.authorization.AuthorizationDecision;
+import nextstep.security.authorization... | Java | ์ค์ spring security์์๋ ์ฑ๋ฅ์ ๋ฌธ์ ๋ก ์ธํด stream ์ฌ์ฉ์ ์ ํํ๊ณ ์์ต๋๋ค.
https://github.com/spring-projects/spring-security/issues/7154 |
@@ -0,0 +1,28 @@
+package nextstep.security.authorization.web;
+
+import jakarta.servlet.http.HttpServletRequest;
+import java.util.List;
+import nextstep.security.authentication.Authentication;
+import nextstep.security.authorization.AuthorizationDecision;
+import nextstep.security.authorization.AuthorizationManager;
... | Java | getter๋ก ํธ์ถํ์ฌ ์ผ์น ์ฌ๋ถ๋ฅผ ํ์ธํ๋ ๊ฒ๋ณด๋ค๋ `mapping`์์ ์ฒ๋ฆฌํ๋๋ก ์์ ํ๋ฉด ์ฑ
์์ด ๋ช
ํํ๊ฒ ๋์ด๊ฐ ์ ์๊ฒ ๋ค์ :) |
@@ -0,0 +1,43 @@
+package nextstep.security.authorization.method;
+
+import java.lang.reflect.Method;
+import java.util.Collection;
+import java.util.Collections;
+import java.util.Set;
+import nextstep.security.authentication.Authentication;
+import nextstep.security.authorization.AuthorizationDecision;
+import nextst... | Java | `AuthorityAuthorizationManager`์ ๋ก์ง๊ณผ ํจ๊ป๋ณด๋ฉด
```java
boolean hasAuthority = authentication.getAuthorities().stream()
.anyMatch(authorities::contains);
return new AuthorizationDecision(hasAuthority);
```
๋ถ๋ถ์ด ๋์ผํ ๊ฒ์ ํ์ธํด๋ณผ ์ ์์ด์. ๊ฐ `AuthorizatinManager`๋ ๋จ์ผ์์ ๊ฐ๊ฐ ๋ณธ์ธ์ ๊ฒ์ ๋ชจ๋ ๊ตฌ์ฑํ๋ ๊ฒ์ด ์๋ ์๋ก ์ ๊ธฐ์ ์ผ๋ก ๊ฒฐํฉ๋์ด ์ฌ์ฉํ๊ธฐ๋ ํ๋๋ฐ์.
... |
@@ -0,0 +1,18 @@
+package nextstep.security.fixture;
+
+import java.util.Base64;
+import java.util.Set;
+import nextstep.app.domain.Member;
+
+public class MemberTestFixture {
+ public static final Member TEST_ADMIN_MEMBER = new Member("a@a.com", "password", "a", "", Set.of("ADMIN"));
+ public static final Member... | Java | (๋ฐ์ํ์ง ์์ผ์
๋ ๋ฉ๋๋ค.) ๊ฐ์ธ์ ์ผ๋ก๋ enum์์ ์ง์๋๋ ๋ฉ์๋๋ค์ ํ์ฉํ๋ ๊ฒฝ์ฐ๋ ๋ง์ ํน์ ๋๋ฉ์ธ์ fixture๋ enum ์ผ๋ก ์์ฑํ๋ ํธ์
๋๋ค ๐ |
@@ -2,7 +2,10 @@
import nextstep.app.domain.Member;
import nextstep.app.domain.MemberRepository;
+import nextstep.security.authentication.Authentication;
+import nextstep.security.authentication.AuthenticationException;
import nextstep.security.authorization.Secured;
+import nextstep.security.context.SecurityConte... | Java | ์ ํด๋น appํจํค์ง์ ์ปจํธ๋กค๋ฌ๋
๊ฐ์์ค์์ ์ค์ต์ดํ ์ฒด๋ฆฌํฝ ํด์จ๊ฒ์ด๋ผ ์ด์ด๋ณผ ์๊ฐ์ ๋ชปํ๋ค์.
์์ ํด๋๊ฒ ์ต๋๋ค! |
@@ -0,0 +1,20 @@
+package nextstep.security.util;
+
+import jakarta.servlet.http.HttpServletRequest;
+import org.springframework.http.HttpMethod;
+
+public class MvcRequestMatcher implements RequestMatcher {
+
+ private final HttpMethod method;
+ private final String pattern;
+
+ public MvcRequestMatcher(HttpM... | Java | ๊ฐ๊ณผํ๊ณ ์์๋ค์. ์์ ํด๋๊ฒ ์ต๋๋ค! ๐ |
@@ -0,0 +1,14 @@
+package nextstep.security.authorization;
+
+import nextstep.security.authentication.Authentication;
+import nextstep.security.authorization.web.AuthorizationResult;
+
+@FunctionalInterface
+public interface AuthorizationManager<T> {
+ @Deprecated
+ AuthorizationDecision check(Authentication auth... | Java | ์ค.. ๋ถ๊ณผ 4๋ฌ์ ์ ์
๋ฐ์ดํธ๋ ๊ธฐ๋ฅ์ด๊ตฐ์!
ํผ๋๋ฐฑ ์ฃผ์ ๋๋ก ๋ฐ์ํด๋ณด๋ฉด์ ์ด๋ค ์์ผ๋ก
์คํ์์ค๊ฐ ๊ฐ์ ๋์ด ๋๊ฐ๋์ง ์ฒดํ ํด ๋ณผ ์ ์์๋ค์ ๊ฐ์ฌํฉ๋๋ค. |
@@ -0,0 +1,22 @@
+package nextstep.security.authorization;
+
+import nextstep.security.authorization.web.AuthorizationResult;
+
+public class AuthorizationDecision implements AuthorizationResult {
+ public static final AuthorizationDecision ALLOW = new AuthorizationDecision(true);
+ public static final Authorizat... | Java | ํ ์ํฉ์์ ๋ฉ๋ชจ๋ฆฌ ํจ์จ์ฑ์ ๋ ๋์ผ ์ ์๊ฒ ๋ค์! |
@@ -0,0 +1,38 @@
+package nextstep.security.authorization.web;
+
+import java.util.Collection;
+import nextstep.security.authentication.Authentication;
+import nextstep.security.authentication.AuthenticationException;
+import nextstep.security.authorization.AuthorizationDecision;
+import nextstep.security.authorization... | Java | ๊ฐ๋
์ฑ ๋๋ฌธ์ stream์ ์ ํธํ๋ ํธ์ธ๋ฐ, spring security๊ฐ์ ๋ผ์ด๋ธ๋ฌ๋ฆฌ๋ ์ฑ๋ฅ์ด ์ค์ํ๋ค๋ณด๋ ๊ทธ๋ ๊ฒ ๋๊ฑฐ๊ตฐ์..
๊ตฌํ์ฒด ์ฝ๋ ๋ณด๋ฉด์ ๊ฐ๋
์ฑ์ด ์๊ฐ๋งํผ์ ์๋๊ฒ ๊ฐ์๋๋ฐ, ๊ทธ ์ํ๊ฐ์ด ์ฌ๊ธฐ์ ๊ธฐ์ธํ ๊ฒ ๊ฐ์ต๋๋ค. |
@@ -0,0 +1,28 @@
+package nextstep.security.authorization.web;
+
+import jakarta.servlet.http.HttpServletRequest;
+import java.util.List;
+import nextstep.security.authentication.Authentication;
+import nextstep.security.authorization.AuthorizationDecision;
+import nextstep.security.authorization.AuthorizationManager;
... | Java | ์.. ์ ์๊ฐ์ผ๋ก๋ `mapping`์ธ `RequestMatcherEntry`๋ `RequestMatcher`๋ `AuthorizationManager`๋ฅผ
๋จ์ํ ๋ฌถ์ด์ฃผ๋ ์ญํ ์ ์ํํ๋ค๊ณ ์๊ฐํด์,
ํด๋น ๊ฐ์ฒด์ `matches()`์ ๋ก์ง๊น์ง ์์ผ๋ฉด ์คํ๋ ค ์ฑ
์์ด ๊ณผํด์ง๊ณ ,
์๋ RequestMatcher์ ์ญํ ์ด ํ๋ ค์ง๊ฒ ๊ฐ์ getter๋ก ํธ์ถํด์ ์ผ์น ์ฌ๋ถ๋ฅผ ํ์ธํ์ต๋๋ค.
์ ๊ฐ ์ ๋๋ก ์ดํดํ๊ฑฐ๋ผ๋ฉด ์ง์๋ ์๊ฐ์ด ๊ถ๊ธํฉ๋๋ค! |
@@ -0,0 +1,18 @@
+package nextstep.security.fixture;
+
+import java.util.Base64;
+import java.util.Set;
+import nextstep.app.domain.Member;
+
+public class MemberTestFixture {
+ public static final Member TEST_ADMIN_MEMBER = new Member("a@a.com", "password", "a", "", Set.of("ADMIN"));
+ public static final Member... | Java | 3๋จ๊ณ ์ํํ๋ฉด์ ๋ณ๊ฒฝํด ๋ณด๊ฒ ์ต๋๋ค! ๐ |
@@ -0,0 +1,43 @@
+package nextstep.security.authorization.method;
+
+import java.lang.reflect.Method;
+import java.util.Collection;
+import java.util.Collections;
+import java.util.Set;
+import nextstep.security.authentication.Authentication;
+import nextstep.security.authorization.AuthorizationDecision;
+import nextst... | Java | [83a4efd](https://github.com/next-step/spring-security-authorization/pull/15/commits/83a4efd95662b7e9d2590f72ee5a56173a16477d)
์ผ๋ก ๋ฐ์ํด๋ณด์์ต๋๋ค!
๊ฐ์์ Manager๊ฐ ๋จ์ผ ์ฑ
์์ด ์๋ ๊ฒฐํฉํด์ ์ฌ์ฉํ๊ธฐ๋ ํ๋๊ตฐ์!
์ ๋ ์์
ํ๋ฉด์ ๊ฐ์ ๋ก์ง์ด ๋ค์ด๊ฐ๋ค๊ณ ์๊ฐ์ด ๋ค์๋๋ฐ,
์ด๋ฐ์์ผ๋ก๋ ์ญํ ๊ณผ ์ฑ
์ ๋ถ๋ฐฐ๋ฅผ ๊ฐ์ ธ๊ฐ ์ ์๊ฒ ๋ค์!
ํ์ฌ ๋ง์ํด์ฃผ์ `AuthoritiesAuthorizationManager` ์ฒ๋ผ ๋ค์ํ ๊ถํ ์ฒด๊ณ๋ ์๊ธฐ ๋๋ฌธ์
๊ธฐ์กด `Se... |
@@ -0,0 +1,14 @@
+package nextstep.security.authorization;
+
+import nextstep.security.authentication.Authentication;
+import nextstep.security.authorization.web.AuthorizationResult;
+
+@FunctionalInterface
+public interface AuthorizationManager<T> {
+ @Deprecated
+ AuthorizationDecision check(Authentication auth... | Java | ์.. ๊ฒฐ๊ตญ์ **์ธ๊ฐ์คํจ์ ์์ธ๋ฅผ ๋ฐ์์ํจ๋ค.** ๊ฐ ํต์ฌ์ด๋ผ๊ณ ์๊ฐํด์.
check๋ก๋ null์ด ์ฌ ์๋ ์๊ณ , ๊ถํ์ด ์๋ค ํ ์ง์ด๋ ์๋ฌ์ฝ๋ ๋ฑ์์ ๊ฐ๋ฐ์ ๋ง์๋๋ก ํธ๋ค๋ง ํ ์ ์๋ ๋ฐ๋ฉด์,
verify๋ ์ธ๊ฐ์ ์คํจํ ๊ฒฝ์ฐ ๋์ผํ ์๋ฌ๊ฐ ๋ฐ์๋๋ค. ๋ผ๋ ์ ์์ ์ถ์ ์ ์ฉ์ดํ ๊ฒ ๊ฐ๊ณ , ์ธ์ ์ค๋ฅ๋ฅผ ์ต์ํ ํ ์ ์์ ๊ฒ ๊ฐ๋ค๊ณ ์๊ฐ์ด ๋๋ค์!
๋ฐ๋ผ์ ๊ด๋ฆฌ์ ์ ์ฉ API๋ฑ ๊ถํ์ด ์์ผ๋ฉด ์ถ๊ฐ์ ์ธ ๋ก์ง ์์ด ๋ฐ๋ก ์์ธ๋ฅผ ๋์ง๋ ์ฌ์ฉํ๋ฉด ์ข์ ๊ฒ ๊ฐ์ต๋๋ค~ |
@@ -0,0 +1,14 @@
+package nextstep.security.authorization;
+
+import nextstep.security.authentication.Authentication;
+import nextstep.security.authorization.web.AuthorizationResult;
+
+@FunctionalInterface
+public interface AuthorizationManager<T> {
+ @Deprecated
+ AuthorizationDecision check(Authentication auth... | Java | ๋ค ์ฌ์ค `verify`๋ฅผ ๋จ์ผ๋ก ์ฐ๋ฉด ์ ํฌ๊ฐ ํํ ์๊ณ ์๋ฏ ์์ธ๋ฅผ ๋ฐ์์ํฌ ์ ์๋ ๊ณณ์์ ์์ธ๋ฅผ ๋ฐ์์ํค๋ ๊ฒ์ด ๋ง๊ธฐ๋ ํฉ๋๋ค.
๋ค๋ง `AuthorizationManager`์ ์๋ ์ฑ
์์ ์ธ๊ฐ๊ฐ ๋ ์ ์ ์ธ์ง๋ฅผ ํ์ธํ๋ ๊ฒ์ด๊ณ ์ด๊ฑด ์ธ๊ฐ๊ฐ ์คํจ๋์๋ค๋ ๊ฒ์ด ์๋ฌ ์ํฉ์ด ์๋ ์ ์์ ์ธ ๋น์ฆ๋์ค์ ํ๋ฆ์ด๋ผ๊ณ ๋ณผ ์ ์์ด์. ์ธ๊ฐ๊ฐ ์คํจํ ๊ฒ์ ๋ํ ๊ฒฐ๊ณผ๊ฐ ์์ธ๊ฐ ๋๋ ๊ฒ์ `AuthorizationFilter`๊ฐ ์ธ๊ฐ ์คํจ์ ๊ฒฐ๊ณผ๊ฐ ์์ธ์ด๋ค๋ผ๋ ๊ฒ์ ์คํํ๋ ๊ฒ์ผ๋ฟ์ธ ๊ฒ์ด๊ตฌ์.
์ค์ `AuthorizationManager`๋ค์ ๊ตฌํ์ฒด๋ฅผ ๋ณด์๋ฉด ์ด๋ฐ ์ด์ ... |
@@ -0,0 +1,28 @@
+package nextstep.security.authorization.web;
+
+import jakarta.servlet.http.HttpServletRequest;
+import java.util.List;
+import nextstep.security.authentication.Authentication;
+import nextstep.security.authorization.AuthorizationDecision;
+import nextstep.security.authorization.AuthorizationManager;
... | Java | ```suggestion
if (mapping.matches(request)) {
```
์ ๊ฐ ์๋ ๋๋ ธ๋ ๋ด์ฉ์ getter๋ฅผ ๊บผ๋ด์์ ๋ค์ ํธ์ถํ๋ ๊ฒ์ด ์๋ ํด๋น ๊ฐ์ฒด ๋ด์์ ์ฒ๋ฆฌํ ์ ์๊ฒ ๋ฉ์์ง๋ฅผ ๋์ง๋ ํํ๋ฅผ ๋ง์๋๋ฆฐ ๊ฒ์ด์์ด์. getter๋ฅผ ํธ์ถํด์ ๋ฉ์๋ ์ฒด์ด๋์ด ๋๋ ๊ฒ์ ๊ฐ์ฒด์ ์ญํ ์ด ์๋ค๊ธฐ๋ณด๋จ ๋จ์ํ ๋ํํด๋์ค๊ฐ ๋์ด๋ฒ๋ ค ์ฑ
์๊ณผ ์ญํ ์ด ๋ถ๋ถ๋ช
ํด์ง ์ ์์ต๋๋ค.
```java
public boolean matches(HttpServletRequest request) {
return reque... |
@@ -0,0 +1,13 @@
+package nextstep.security.authorization.web;
+
+import jakarta.servlet.http.HttpServletRequest;
+import nextstep.security.authentication.Authentication;
+import nextstep.security.authorization.AuthorizationDecision;
+import nextstep.security.authorization.AuthorizationManager;
+
+public class DenyAllA... | Java | ```suggestion
public AuthorizationResult check(Authentication authentication, HttpServletRequest object) {
```
๋ฐํ ํ์
๋ค๋ ์ ์ถ์ํํด์ฃผ์ ํด๋์ค๋ก ๋ง๋ค์ด์ฃผ๋ฉด ์ข๊ฒ ๋ค์ :) |
@@ -0,0 +1,22 @@
+package nextstep.security.authorization;
+
+import nextstep.security.authorization.web.AuthorizationResult;
+
+public class AuthorizationDecision implements AuthorizationResult {
+ public static final AuthorizationDecision ALLOW = new AuthorizationDecision(true);
+ public static final Authorizat... | Java | ```suggestion
public static AuthorizationDecision from(boolean granted) {
```
๊ด์ต์ ์ผ๋ก ์ ์ ํฉํ ๋ฆฌ ๋ฉ์๋๋ ํ๋ผ๋ฏธํฐ๊ฐ ํ๋์ผ๋ from, ์ฌ๋ฌ๊ฐ์ผ๋ of๋ฅผ ํ์ฉํฉ๋๋ค. |
@@ -0,0 +1,125 @@
+import React from 'react';
+import Comment from '../Comment/Comment';
+import './Feed.scss';
+
+class Feed extends React.Component {
+ constructor(props) {
+ super(props);
+ const { comment } = this.props.data;
+ this.state = {
+ comment: comment,
+ commentInputValue: '',
+ };
... | JavaScript | ๊ตฌ์กฐ๋ถํดํ ๋น์ ์ ์ฐ์ ๊ฑฐ ๊ฐ์ต๋๋ค! |
@@ -0,0 +1,125 @@
+import React from 'react';
+import Comment from '../Comment/Comment';
+import './Feed.scss';
+
+class Feed extends React.Component {
+ constructor(props) {
+ super(props);
+ const { comment } = this.props.data;
+ this.state = {
+ comment: comment,
+ commentInputValue: '',
+ };
... | JavaScript | comment๊ด๋ จ ํจ์๋ฅผ ๊น๋ํ๊ฒ ์ ์ ๋ฆฌํ์ ๊ฑฐ ๊ฐ์ต๋๋ค |
@@ -0,0 +1,125 @@
+import React from 'react';
+import Comment from '../Comment/Comment';
+import './Feed.scss';
+
+class Feed extends React.Component {
+ constructor(props) {
+ super(props);
+ const { comment } = this.props.data;
+ this.state = {
+ comment: comment,
+ commentInputValue: '',
+ };
... | JavaScript | ์ปค๋ฉํธ ์ปดํฌ๋ํธ์ ํ๋กญ์ค ์ ๋ฌ์ ๊น๋ํ๊ฒ ์ ํ์ ๊ฑฐ ๊ฐ์ต๋๋ค |
@@ -1,10 +1,94 @@
import React from 'react';
+import { Link } from 'react-router-dom';
+
+import './Login.scss';
class Login extends React.Component {
+ constructor() {
+ super();
+ this.state = {
+ loginId: '',
+ loginPassword: '',
+ };
+ }
+
+ handleLoginInput = e => {
+ const { value, na... | JavaScript | ์ผํญ์ฐ์ฐ์ ์ฌ์ฉ์ ์ ํ์ ๊ฑฐ ๊ฐ์ต๋๋ค. |
@@ -1,10 +1,178 @@
import React from 'react';
+import Nav from '../../../components/Nav/Nav';
+import Feed from '../../../components/Feed/Feed';
+import './Main.scss';
+
class Main extends React.Component {
+ constructor() {
+ super();
+ this.state = {
+ feeds: [],
+ };
+ }
+
+ componentDidMount() ... | JavaScript | Lifecycle Method๋ฅผ ์ ์ฌ์ฉํ์ ๊ฑฐ ๊ฐ์ต๋๋ค. |
@@ -0,0 +1,125 @@
+import React from 'react';
+import Comment from '../Comment/Comment';
+import './Feed.scss';
+
+class Feed extends React.Component {
+ constructor(props) {
+ super(props);
+ const { comment } = this.props.data;
+ this.state = {
+ comment: comment,
+ commentInputValue: '',
+ };
... | JavaScript | ์ ๋ ์ ์ฉํด๋ณด๊ฒ ์ต๋๋ค!๐ |
@@ -1,10 +1,94 @@
import React from 'react';
+import { Link } from 'react-router-dom';
+
+import './Login.scss';
class Login extends React.Component {
+ constructor() {
+ super();
+ this.state = {
+ loginId: '',
+ loginPassword: '',
+ };
+ }
+
+ handleLoginInput = e => {
+ const { value, na... | JavaScript | ๋ฒํผ์ด ํ์ฑํ๋ ๋ ์์ ๋ณ๊ฒฝ๊ณผ ๋นํ์ฑํ ๊ธฐ๋ฅ๊น์ง ๊ตฌํํ์ ์ ๋ฐฐ์๊ฐ๋๋ค:) |
@@ -0,0 +1,74 @@
+[
+ {
+ "id": 1,
+ "userName": "bbangho",
+ "alt": "wecode",
+ "img": "/images/youngho/hanRiver.jpeg",
+ "comment": [
+ {
+ "id": 1,
+ "userName": "bbangho",
+ "content": "ํ๊ฐ ๋ค๋
๊ฐ~ โ๏ธ",
+ "isLiked": true
+ },
+ {
+ "id": 2,
+ "use... | Unknown | ๋ชฉ๋ฐ์ดํฐ ์ฌ์ฉ ๋๋ฌด ์ข์ต๋๋ค! :) |
@@ -1,10 +1,94 @@
import React from 'react';
+import { Link } from 'react-router-dom';
+
+import './Login.scss';
class Login extends React.Component {
+ constructor() {
+ super();
+ this.state = {
+ loginId: '',
+ loginPassword: '',
+ };
+ }
+
+ handleLoginInput = e => {
+ const { value, na... | JavaScript | ```suggestion
<button
onClick={this.handleLogin}
className={condition ? 'buttonActivate' : 'buttonDisabled'}
id="loginButton"
disabled={ condition ? false : true}
>
๋ก๊ทธ์ธ
</button>
```
ํด๋น ์กฐ๊ฑด... |
@@ -1,10 +1,94 @@
import React from 'react';
+import { Link } from 'react-router-dom';
+
+import './Login.scss';
class Login extends React.Component {
+ constructor() {
+ super();
+ this.state = {
+ loginId: '',
+ loginPassword: '',
+ };
+ }
+
+ handleLoginInput = e => {
+ const { value, na... | JavaScript | ์ฐธ๊ณ ๋ก ์์ ๋ณ์๋ render ํจ์ ๋ด์์ ์ ์ธํด์ฃผ์๋ฉด ๋ฉ๋๋ค!! |
@@ -0,0 +1,78 @@
+@import 'https://fonts.googleapis.com/css2?family=Lobster&display=swap';
+body {
+ background-color: #fafafa;
+}
+
+.container {
+ text-align: center;
+ width: 600px;
+ height: 600px;
+ margin: 50px auto 0 auto;
+ border: 1px solid #e6e6e6;
+ background-color: white;
+}
+
+.header {
+ padding:... | Unknown | ```suggestion
body {
background-color: #fafafa;
}
.container {
text-align: center;
border: 1px solid #e6e6e6;
background-color: white;
width: 600px;
height: 600px;
margin: 50px auto 0 auto;
}
.header {
font-family: 'Lobster', cursive;
font-size: 70px;
font-weight: 1px;
padding:... |
@@ -0,0 +1,78 @@
+@import 'https://fonts.googleapis.com/css2?family=Lobster&display=swap';
+body {
+ background-color: #fafafa;
+}
+
+.container {
+ text-align: center;
+ width: 600px;
+ height: 600px;
+ margin: 50px auto 0 auto;
+ border: 1px solid #e6e6e6;
+ background-color: white;
+}
+
+.header {
+ padding:... | Unknown | ์ํธ๋! ์ ์ฒด์ ์ผ๋ก CSS ์์ฑ ์์ ํ์ธํด์ ์ ์ฉํด์ฃผ์ธ์~
- ํ๋์ ์์์ ์ฌ๋ฌ๊ฐ์ง ์์ฑ์ ๋ถ์ฌํ๋ ๊ฒฝ์ฐ ์ค์๋, ๊ด๋ จ๋์ ๋ฐ๋ผ์ ๋๋ฆ์ convention์ ์ง์ผ์ ์์ฑํ๋ ๊ฒ์ด ์ข์ต๋๋ค.
- ์ผ๋ฐ์ ์ธ convention ์ ์๋์ ๊ฐ์ต๋๋ค. ์๋์ ๊ฐ์ด ์์ ์ ์ฉํด์ฃผ์ธ์.
[CSS property ์์]
- Layout Properties (position, float, clear, display)
- Box Model Properties (width, height, margin, padding)
- Visual ... |
@@ -1,10 +1,178 @@
import React from 'react';
+import Nav from '../../../components/Nav/Nav';
+import Feed from '../../../components/Feed/Feed';
+import './Main.scss';
+
class Main extends React.Component {
+ constructor() {
+ super();
+ this.state = {
+ feeds: [],
+ };
+ }
+
+ componentDidMount() ... | JavaScript | import ์์๋ ์ ๋ง์ถฐ์ฃผ์
จ๊ณ , ํด๋น ๋ถ๋ถ์์๋ ์ค๋ฐ๊ฟ ์์ด ์งํํด์ฃผ์ธ์~ |
@@ -1,10 +1,178 @@
import React from 'react';
+import Nav from '../../../components/Nav/Nav';
+import Feed from '../../../components/Feed/Feed';
+import './Main.scss';
+
class Main extends React.Component {
+ constructor() {
+ super();
+ this.state = {
+ feeds: [],
+ };
+ }
+
+ componentDidMount() ... | JavaScript | fetchํจ์์ `get method๋ method์ default` ๊ฐ์
๋๋ค. ๋ฐ๋ผ์ `์๋ต์ด ๊ฐ๋ฅ`ํฉ๋๋ค.
๊ณ ๋ก get method ์์ฒญ์์๋ ์๋์ ๊ฐ์ด ๋๋ฒ์งธ ์ธ์๊ฐ ์๋ต ๊ฐ๋ฅํฉ๋๋ค.
```jsx
const foo = () => {
fetch(`${cartAPI}/quantity`)
.then((res) => res.json())
``` |
@@ -1,10 +1,178 @@
import React from 'react';
+import Nav from '../../../components/Nav/Nav';
+import Feed from '../../../components/Feed/Feed';
+import './Main.scss';
+
class Main extends React.Component {
+ constructor() {
+ super();
+ this.state = {
+ feeds: [],
+ };
+ }
+
+ componentDidMount() ... | JavaScript | story ๋ถ๋ถ์ด ์ฌ๋ฌ๋ฒ ๋ฐ๋ณต๋๊ณ ์๋ค์!
์์ ๋ฐ์ดํฐ์ map์ ์ฌ์ฉํด์ ์ค๋ณต๋ ๋ถ๋ถ์ ์ค์ฌ์ฃผ์ธ์!
```
const STORIES = [
{img: "//", name: "wecorder1"}, {img: "//", name: "wecorder2"}, {img: "//", name: "wecorder3"}
];
STORIES.map();
``` |
@@ -0,0 +1,285 @@
+@import 'https://fonts.googleapis.com/css2?family=Lobster&display=swap';
+@media screen and (max-width: 1200px) {
+ .mainRight {
+ display: none;
+ }
+
+ .article {
+ width: 100%;
+ }
+}
+
+body {
+ margin: 0;
+ padding: 0;
+ border-collapse: collapse;
+}
+
+article {
+ width: 800px;
+ ... | Unknown | ๋ฐ์ํ ์์ฃผ ์ข๋ค์!!
๋ธ๋ ์ดํฌ ํฌ์ธํธ๋ ๊ธฐํ๋ง๋ค ๋ฌ๋ผ์ง์ง๋ง ๋ณดํต ํ๋ธ๋ฆฟ๊ณผ ๋ฐ์คํฌํ์ ๊ตฌ๋ถ์ ์ 1078px์ด๋ผ๋ ์ ์์๋์ธ์!
๋ชจ๋ฐ์ผ๊ณผ ํ๋ธ๋ฆฟ์ 768px์
๋๋ค! |
@@ -0,0 +1,285 @@
+@import 'https://fonts.googleapis.com/css2?family=Lobster&display=swap';
+@media screen and (max-width: 1200px) {
+ .mainRight {
+ display: none;
+ }
+
+ .article {
+ width: 100%;
+ }
+}
+
+body {
+ margin: 0;
+ padding: 0;
+ border-collapse: collapse;
+}
+
+article {
+ width: 800px;
+ ... | Unknown | ๊ฐ์ ์คํ์ผ์ ๊ฒฝ์ฐ์๋ ์ค๋ณตํ์ฌ ์ฃผ์์ง ๋ง๊ณ ๊ฐ์ ํด๋์ค๋ช
์ ์ฌ์ฉํ์
๋ ๋ฉ๋๋ค! |
@@ -0,0 +1,125 @@
+import React from 'react';
+import Comment from '../Comment/Comment';
+import './Feed.scss';
+
+class Feed extends React.Component {
+ constructor(props) {
+ super(props);
+ const { comment } = this.props.data;
+ this.state = {
+ comment: comment,
+ commentInputValue: '',
+ };
... | JavaScript | import ๊ตฌ๋ถ์ ๋๋ฌด ์ข์ง๋ง ์ค๋ฐ๊ฟ์ ์ํ์
๋ ๋ฉ๋๋ค!!! |
@@ -0,0 +1,125 @@
+import React from 'react';
+import Comment from '../Comment/Comment';
+import './Feed.scss';
+
+class Feed extends React.Component {
+ constructor(props) {
+ super(props);
+ const { comment } = this.props.data;
+ this.state = {
+ comment: comment,
+ commentInputValue: '',
+ };
... | JavaScript | ์ด๋ ๊ฒ ๊ตฌ์กฐ๋ถํดํ ๋น ๋๋ฌด ์ข๋ค์!! |
@@ -0,0 +1,74 @@
+[
+ {
+ "id": 1,
+ "userName": "bbangho",
+ "alt": "wecode",
+ "img": "/images/youngho/hanRiver.jpeg",
+ "comment": [
+ {
+ "id": 1,
+ "userName": "bbangho",
+ "content": "ํ๊ฐ ๋ค๋
๊ฐ~ โ๏ธ",
+ "isLiked": true
+ },
+ {
+ "id": 2,
+ "use... | Unknown | ๊ฐ์ฌํฉ๋๋ค! |
@@ -1,10 +1,94 @@
import React from 'react';
+import { Link } from 'react-router-dom';
+
+import './Login.scss';
class Login extends React.Component {
+ constructor() {
+ super();
+ this.state = {
+ loginId: '',
+ loginPassword: '',
+ };
+ }
+
+ handleLoginInput = e => {
+ const { value, na... | JavaScript | ๋ฐ์ ์๋ฃํ์ต๋๋ค! |
@@ -0,0 +1,78 @@
+@import 'https://fonts.googleapis.com/css2?family=Lobster&display=swap';
+body {
+ background-color: #fafafa;
+}
+
+.container {
+ text-align: center;
+ width: 600px;
+ height: 600px;
+ margin: 50px auto 0 auto;
+ border: 1px solid #e6e6e6;
+ background-color: white;
+}
+
+.header {
+ padding:... | Unknown | ๋ฐ์ ์๋ฃํ์ต๋๋ค! |
@@ -0,0 +1,78 @@
+@import 'https://fonts.googleapis.com/css2?family=Lobster&display=swap';
+body {
+ background-color: #fafafa;
+}
+
+.container {
+ text-align: center;
+ width: 600px;
+ height: 600px;
+ margin: 50px auto 0 auto;
+ border: 1px solid #e6e6e6;
+ background-color: white;
+}
+
+.header {
+ padding:... | Unknown | ๋ฐ์ ์๋ฃํ์ต๋๋ค! |
@@ -1,10 +1,178 @@
import React from 'react';
+import Nav from '../../../components/Nav/Nav';
+import Feed from '../../../components/Feed/Feed';
+import './Main.scss';
+
class Main extends React.Component {
+ constructor() {
+ super();
+ this.state = {
+ feeds: [],
+ };
+ }
+
+ componentDidMount() ... | JavaScript | ๋ฐ์ ์๋ฃํ์ต๋๋ค! |
@@ -1,10 +1,178 @@
import React from 'react';
+import Nav from '../../../components/Nav/Nav';
+import Feed from '../../../components/Feed/Feed';
+import './Main.scss';
+
class Main extends React.Component {
+ constructor() {
+ super();
+ this.state = {
+ feeds: [],
+ };
+ }
+
+ componentDidMount() ... | JavaScript | ๋ฐ์ ์๋ฃํ์ต๋๋ค! |
@@ -0,0 +1,285 @@
+@import 'https://fonts.googleapis.com/css2?family=Lobster&display=swap';
+@media screen and (max-width: 1200px) {
+ .mainRight {
+ display: none;
+ }
+
+ .article {
+ width: 100%;
+ }
+}
+
+body {
+ margin: 0;
+ padding: 0;
+ border-collapse: collapse;
+}
+
+article {
+ width: 800px;
+ ... | Unknown | ๊ฐ์ฌํฉ๋๋ค! |
@@ -0,0 +1,285 @@
+@import 'https://fonts.googleapis.com/css2?family=Lobster&display=swap';
+@media screen and (max-width: 1200px) {
+ .mainRight {
+ display: none;
+ }
+
+ .article {
+ width: 100%;
+ }
+}
+
+body {
+ margin: 0;
+ padding: 0;
+ border-collapse: collapse;
+}
+
+article {
+ width: 800px;
+ ... | Unknown | ๋ฐ์ ์๋ฃํ์ต๋๋ค! |
@@ -0,0 +1,125 @@
+import React from 'react';
+import Comment from '../Comment/Comment';
+import './Feed.scss';
+
+class Feed extends React.Component {
+ constructor(props) {
+ super(props);
+ const { comment } = this.props.data;
+ this.state = {
+ comment: comment,
+ commentInputValue: '',
+ };
... | JavaScript | ๋ฐ์ ์๋ฃํ์ต๋๋ค! |
@@ -0,0 +1,125 @@
+import React from 'react';
+import Comment from '../Comment/Comment';
+import './Feed.scss';
+
+class Feed extends React.Component {
+ constructor(props) {
+ super(props);
+ const { comment } = this.props.data;
+ this.state = {
+ comment: comment,
+ commentInputValue: '',
+ };
... | JavaScript | ๊ฐ์ฌํฉ๋๋ค ๐ |
@@ -0,0 +1,17 @@
+from django.db import models
+
+class User(models.Model):
+ email = models.EmailField(max_length=50, unique=True)
+ password = models.CharField(max_length=100)
+ relation = models.ManyToManyField('self', through='Follow', symmetrical=False)
+
+ class Meta:
+ db_table = "users"
+ ... | Python | ๋ค๋ฏผ๋! ์ ์์ฑํด์ฃผ์
จ๋๋ฐ `email` ์ ๊ฒน์น ์ ์๋ ์ ๋ณด์ด๊ธฐ ๋๋ฌธ์ ํด๋นํ๋ ์ต์
์ ์ถ๊ฐํด์ฃผ์๋๊ฒ ์ข์ต๋๋ค! ์์๋ณด์๊ณ ์๋ง์ ์ต์
์ ์ถ๊ฐํด์ฃผ์ธ์~ |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.