Showing
10 changed files
with
193 additions
and
28 deletions
... | @@ -7141,6 +7141,19 @@ | ... | @@ -7141,6 +7141,19 @@ |
7141 | "resolved": "https://registry.npmjs.org/hex-color-regex/-/hex-color-regex-1.1.0.tgz", | 7141 | "resolved": "https://registry.npmjs.org/hex-color-regex/-/hex-color-regex-1.1.0.tgz", |
7142 | "integrity": "sha512-l9sfDFsuqtOqKDsQdqrMRk0U85RZc0RtOR9yPI7mRVOa4FsR/BVnZ0shmQRM96Ji99kYZP/7hn1cedc1+ApsTQ==" | 7142 | "integrity": "sha512-l9sfDFsuqtOqKDsQdqrMRk0U85RZc0RtOR9yPI7mRVOa4FsR/BVnZ0shmQRM96Ji99kYZP/7hn1cedc1+ApsTQ==" |
7143 | }, | 7143 | }, |
7144 | + "history": { | ||
7145 | + "version": "4.10.1", | ||
7146 | + "resolved": "https://registry.npmjs.org/history/-/history-4.10.1.tgz", | ||
7147 | + "integrity": "sha512-36nwAD620w12kuzPAsyINPWJqlNbij+hpK1k9XRloDtym8mxzGYl2c17LnV6IAGB2Dmg4tEa7G7DlawS0+qjew==", | ||
7148 | + "requires": { | ||
7149 | + "@babel/runtime": "^7.1.2", | ||
7150 | + "loose-envify": "^1.2.0", | ||
7151 | + "resolve-pathname": "^3.0.0", | ||
7152 | + "tiny-invariant": "^1.0.2", | ||
7153 | + "tiny-warning": "^1.0.0", | ||
7154 | + "value-equal": "^1.0.1" | ||
7155 | + } | ||
7156 | + }, | ||
7144 | "hmac-drbg": { | 7157 | "hmac-drbg": { |
7145 | "version": "1.0.1", | 7158 | "version": "1.0.1", |
7146 | "resolved": "https://registry.npmjs.org/hmac-drbg/-/hmac-drbg-1.0.1.tgz", | 7159 | "resolved": "https://registry.npmjs.org/hmac-drbg/-/hmac-drbg-1.0.1.tgz", |
... | @@ -7151,6 +7164,14 @@ | ... | @@ -7151,6 +7164,14 @@ |
7151 | "minimalistic-crypto-utils": "^1.0.1" | 7164 | "minimalistic-crypto-utils": "^1.0.1" |
7152 | } | 7165 | } |
7153 | }, | 7166 | }, |
7167 | + "hoist-non-react-statics": { | ||
7168 | + "version": "3.3.2", | ||
7169 | + "resolved": "https://registry.npmjs.org/hoist-non-react-statics/-/hoist-non-react-statics-3.3.2.tgz", | ||
7170 | + "integrity": "sha512-/gGivxi8JPKWNm/W0jSmzcMPpfpPLc3dY/6GxhX2hQ9iGj3aDfklV4ET7NjKpSinLpJ5vafa9iiGIEZg10SfBw==", | ||
7171 | + "requires": { | ||
7172 | + "react-is": "^16.7.0" | ||
7173 | + } | ||
7174 | + }, | ||
7154 | "hoopy": { | 7175 | "hoopy": { |
7155 | "version": "0.1.4", | 7176 | "version": "0.1.4", |
7156 | "resolved": "https://registry.npmjs.org/hoopy/-/hoopy-0.1.4.tgz", | 7177 | "resolved": "https://registry.npmjs.org/hoopy/-/hoopy-0.1.4.tgz", |
... | @@ -9998,6 +10019,15 @@ | ... | @@ -9998,6 +10019,15 @@ |
9998 | "resolved": "https://registry.npmjs.org/min-indent/-/min-indent-1.0.1.tgz", | 10019 | "resolved": "https://registry.npmjs.org/min-indent/-/min-indent-1.0.1.tgz", |
9999 | "integrity": "sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==" | 10020 | "integrity": "sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==" |
10000 | }, | 10021 | }, |
10022 | + "mini-create-react-context": { | ||
10023 | + "version": "0.4.1", | ||
10024 | + "resolved": "https://registry.npmjs.org/mini-create-react-context/-/mini-create-react-context-0.4.1.tgz", | ||
10025 | + "integrity": "sha512-YWCYEmd5CQeHGSAKrYvXgmzzkrvssZcuuQDDeqkT+PziKGMgE+0MCCtcKbROzocGBG1meBLl2FotlRwf4gAzbQ==", | ||
10026 | + "requires": { | ||
10027 | + "@babel/runtime": "^7.12.1", | ||
10028 | + "tiny-warning": "^1.0.3" | ||
10029 | + } | ||
10030 | + }, | ||
10001 | "mini-css-extract-plugin": { | 10031 | "mini-css-extract-plugin": { |
10002 | "version": "0.11.3", | 10032 | "version": "0.11.3", |
10003 | "resolved": "https://registry.npmjs.org/mini-css-extract-plugin/-/mini-css-extract-plugin-0.11.3.tgz", | 10033 | "resolved": "https://registry.npmjs.org/mini-css-extract-plugin/-/mini-css-extract-plugin-0.11.3.tgz", |
... | @@ -12486,6 +12516,52 @@ | ... | @@ -12486,6 +12516,52 @@ |
12486 | "resolved": "https://registry.npmjs.org/react-refresh/-/react-refresh-0.8.3.tgz", | 12516 | "resolved": "https://registry.npmjs.org/react-refresh/-/react-refresh-0.8.3.tgz", |
12487 | "integrity": "sha512-X8jZHc7nCMjaCqoU+V2I0cOhNW+QMBwSUkeXnTi8IPe6zaRWfn60ZzvFDZqWPfmSJfjub7dDW1SP0jaHWLu/hg==" | 12517 | "integrity": "sha512-X8jZHc7nCMjaCqoU+V2I0cOhNW+QMBwSUkeXnTi8IPe6zaRWfn60ZzvFDZqWPfmSJfjub7dDW1SP0jaHWLu/hg==" |
12488 | }, | 12518 | }, |
12519 | + "react-router": { | ||
12520 | + "version": "5.2.0", | ||
12521 | + "resolved": "https://registry.npmjs.org/react-router/-/react-router-5.2.0.tgz", | ||
12522 | + "integrity": "sha512-smz1DUuFHRKdcJC0jobGo8cVbhO3x50tCL4icacOlcwDOEQPq4TMqwx3sY1TP+DvtTgz4nm3thuo7A+BK2U0Dw==", | ||
12523 | + "requires": { | ||
12524 | + "@babel/runtime": "^7.1.2", | ||
12525 | + "history": "^4.9.0", | ||
12526 | + "hoist-non-react-statics": "^3.1.0", | ||
12527 | + "loose-envify": "^1.3.1", | ||
12528 | + "mini-create-react-context": "^0.4.0", | ||
12529 | + "path-to-regexp": "^1.7.0", | ||
12530 | + "prop-types": "^15.6.2", | ||
12531 | + "react-is": "^16.6.0", | ||
12532 | + "tiny-invariant": "^1.0.2", | ||
12533 | + "tiny-warning": "^1.0.0" | ||
12534 | + }, | ||
12535 | + "dependencies": { | ||
12536 | + "isarray": { | ||
12537 | + "version": "0.0.1", | ||
12538 | + "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", | ||
12539 | + "integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8=" | ||
12540 | + }, | ||
12541 | + "path-to-regexp": { | ||
12542 | + "version": "1.8.0", | ||
12543 | + "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-1.8.0.tgz", | ||
12544 | + "integrity": "sha512-n43JRhlUKUAlibEJhPeir1ncUID16QnEjNpwzNdO3Lm4ywrBpBZ5oLD0I6br9evr1Y9JTqwRtAh7JLoOzAQdVA==", | ||
12545 | + "requires": { | ||
12546 | + "isarray": "0.0.1" | ||
12547 | + } | ||
12548 | + } | ||
12549 | + } | ||
12550 | + }, | ||
12551 | + "react-router-dom": { | ||
12552 | + "version": "5.2.0", | ||
12553 | + "resolved": "https://registry.npmjs.org/react-router-dom/-/react-router-dom-5.2.0.tgz", | ||
12554 | + "integrity": "sha512-gxAmfylo2QUjcwxI63RhQ5G85Qqt4voZpUXSEqCwykV0baaOTQDR1f0PmY8AELqIyVc0NEZUj0Gov5lNGcXgsA==", | ||
12555 | + "requires": { | ||
12556 | + "@babel/runtime": "^7.1.2", | ||
12557 | + "history": "^4.9.0", | ||
12558 | + "loose-envify": "^1.3.1", | ||
12559 | + "prop-types": "^15.6.2", | ||
12560 | + "react-router": "5.2.0", | ||
12561 | + "tiny-invariant": "^1.0.2", | ||
12562 | + "tiny-warning": "^1.0.0" | ||
12563 | + } | ||
12564 | + }, | ||
12489 | "react-scripts": { | 12565 | "react-scripts": { |
12490 | "version": "4.0.3", | 12566 | "version": "4.0.3", |
12491 | "resolved": "https://registry.npmjs.org/react-scripts/-/react-scripts-4.0.3.tgz", | 12567 | "resolved": "https://registry.npmjs.org/react-scripts/-/react-scripts-4.0.3.tgz", |
... | @@ -12850,6 +12926,11 @@ | ... | @@ -12850,6 +12926,11 @@ |
12850 | "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", | 12926 | "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", |
12851 | "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==" | 12927 | "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==" |
12852 | }, | 12928 | }, |
12929 | + "resolve-pathname": { | ||
12930 | + "version": "3.0.0", | ||
12931 | + "resolved": "https://registry.npmjs.org/resolve-pathname/-/resolve-pathname-3.0.0.tgz", | ||
12932 | + "integrity": "sha512-C7rARubxI8bXFNB/hqcp/4iUeIXJhJZvFPFPiSPRnhU5UPxzMFIl+2E6yY6c4k9giDJAhtV+enfA+G89N6Csng==" | ||
12933 | + }, | ||
12853 | "resolve-url": { | 12934 | "resolve-url": { |
12854 | "version": "0.2.1", | 12935 | "version": "0.2.1", |
12855 | "resolved": "https://registry.npmjs.org/resolve-url/-/resolve-url-0.2.1.tgz", | 12936 | "resolved": "https://registry.npmjs.org/resolve-url/-/resolve-url-0.2.1.tgz", |
... | @@ -14485,6 +14566,16 @@ | ... | @@ -14485,6 +14566,16 @@ |
14485 | "resolved": "https://registry.npmjs.org/timsort/-/timsort-0.3.0.tgz", | 14566 | "resolved": "https://registry.npmjs.org/timsort/-/timsort-0.3.0.tgz", |
14486 | "integrity": "sha1-QFQRqOfmM5/mTbmiNN4R3DHgK9Q=" | 14567 | "integrity": "sha1-QFQRqOfmM5/mTbmiNN4R3DHgK9Q=" |
14487 | }, | 14568 | }, |
14569 | + "tiny-invariant": { | ||
14570 | + "version": "1.1.0", | ||
14571 | + "resolved": "https://registry.npmjs.org/tiny-invariant/-/tiny-invariant-1.1.0.tgz", | ||
14572 | + "integrity": "sha512-ytxQvrb1cPc9WBEI/HSeYYoGD0kWnGEOR8RY6KomWLBVhqz0RgTwVO9dLrGz7dC+nN9llyI7OKAgRq8Vq4ZBSw==" | ||
14573 | + }, | ||
14574 | + "tiny-warning": { | ||
14575 | + "version": "1.0.3", | ||
14576 | + "resolved": "https://registry.npmjs.org/tiny-warning/-/tiny-warning-1.0.3.tgz", | ||
14577 | + "integrity": "sha512-lBN9zLN/oAf68o3zNXYrdCt1kP8WsiGW8Oo2ka41b2IM5JL/S1CTyX1rW0mb/zSuJun0ZUrDxx4sqvYS2FWzPA==" | ||
14578 | + }, | ||
14488 | "tmpl": { | 14579 | "tmpl": { |
14489 | "version": "1.0.4", | 14580 | "version": "1.0.4", |
14490 | "resolved": "https://registry.npmjs.org/tmpl/-/tmpl-1.0.4.tgz", | 14581 | "resolved": "https://registry.npmjs.org/tmpl/-/tmpl-1.0.4.tgz", |
... | @@ -14945,6 +15036,11 @@ | ... | @@ -14945,6 +15036,11 @@ |
14945 | "spdx-expression-parse": "^3.0.0" | 15036 | "spdx-expression-parse": "^3.0.0" |
14946 | } | 15037 | } |
14947 | }, | 15038 | }, |
15039 | + "value-equal": { | ||
15040 | + "version": "1.0.1", | ||
15041 | + "resolved": "https://registry.npmjs.org/value-equal/-/value-equal-1.0.1.tgz", | ||
15042 | + "integrity": "sha512-NOJ6JZCAWr0zlxZt+xqCHNTEKOsrks2HQd4MqhP1qy4z1SkbEP467eNx6TgDKXMvUOb+OENfJCZwM+16n7fRfw==" | ||
15043 | + }, | ||
14948 | "vary": { | 15044 | "vary": { |
14949 | "version": "1.1.2", | 15045 | "version": "1.1.2", |
14950 | "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", | 15046 | "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", | ... | ... |
... | @@ -8,6 +8,7 @@ | ... | @@ -8,6 +8,7 @@ |
8 | "@testing-library/user-event": "^12.8.3", | 8 | "@testing-library/user-event": "^12.8.3", |
9 | "react": "^17.0.2", | 9 | "react": "^17.0.2", |
10 | "react-dom": "^17.0.2", | 10 | "react-dom": "^17.0.2", |
11 | + "react-router-dom": "^5.2.0", | ||
11 | "react-scripts": "4.0.3", | 12 | "react-scripts": "4.0.3", |
12 | "web-vitals": "^1.1.2" | 13 | "web-vitals": "^1.1.2" |
13 | }, | 14 | }, | ... | ... |
1 | -import logo from './logo.svg'; | ||
2 | -import './App.css'; | ||
3 | 1 | ||
4 | -function App() { | 2 | +import React from "react"; |
3 | +import { | ||
4 | + BrowserRouter as Router, | ||
5 | + Switch, | ||
6 | + Route, | ||
7 | + Link | ||
8 | +} from "react-router-dom"; | ||
9 | + | ||
10 | +import LandingPage from './components/views/LandingPage/LandingPage' | ||
11 | +import LoginPage from './components/views/LoginPage/LoginPage' | ||
12 | +import RegisterPage from './components/views/RegisterPage/RegisterPage' | ||
13 | + | ||
14 | + | ||
15 | +function App() { | ||
5 | return ( | 16 | return ( |
6 | - <div className="App"> | 17 | + <Router> |
7 | - <header className="App-header"> | 18 | + <div> |
8 | - <img src={logo} className="App-logo" alt="logo" /> | 19 | + {/* |
9 | - <p> | 20 | + A <Switch> looks through all its children <Route> |
10 | - Edit <code>src/App.js</code> and save to reload. | 21 | + elements and renders the first one whose path |
11 | - </p> | 22 | + matches the current URL. Use a <Switch> any time |
12 | - <a | 23 | + you have multiple routes, but you want only one |
13 | - className="App-link" | 24 | + of them to render at a time |
14 | - href="https://reactjs.org" | 25 | + */} |
15 | - target="_blank" | 26 | + <Switch> |
16 | - rel="noopener noreferrer" | 27 | + <Route exact path="/"> |
17 | - > | 28 | + <LandingPage /> |
18 | - Learn React | 29 | + </Route> {/* |
19 | - </a> | 30 | + <Route exact path="/" component={LandingPage} /> 로 해도 똑같은 결과가 나옴! |
20 | - </header> | 31 | + */} |
21 | - </div> | 32 | + |
33 | + <Route path="/login"> | ||
34 | + <LoginPage /> | ||
35 | + </Route> | ||
36 | + | ||
37 | + <Route path="/register"> | ||
38 | + <RegisterPage /> | ||
39 | + </Route> | ||
40 | + </Switch> | ||
41 | + </div> | ||
42 | + </Router> | ||
22 | ); | 43 | ); |
23 | } | 44 | } |
24 | 45 | ... | ... |
boiler-plate/client/src/App.test.js
deleted
100644 → 0
boiler-plate/client/src/logo.svg
deleted
100644 → 0
1 | -<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 841.9 595.3"><g fill="#61DAFB"><path d="M666.3 296.5c0-32.5-40.7-63.3-103.1-82.4 14.4-63.6 8-114.2-20.2-130.4-6.5-3.8-14.1-5.6-22.4-5.6v22.3c4.6 0 8.3.9 11.4 2.6 13.6 7.8 19.5 37.5 14.9 75.7-1.1 9.4-2.9 19.3-5.1 29.4-19.6-4.8-41-8.5-63.5-10.9-13.5-18.5-27.5-35.3-41.6-50 32.6-30.3 63.2-46.9 84-46.9V78c-27.5 0-63.5 19.6-99.9 53.6-36.4-33.8-72.4-53.2-99.9-53.2v22.3c20.7 0 51.4 16.5 84 46.6-14 14.7-28 31.4-41.3 49.9-22.6 2.4-44 6.1-63.6 11-2.3-10-4-19.7-5.2-29-4.7-38.2 1.1-67.9 14.6-75.8 3-1.8 6.9-2.6 11.5-2.6V78.5c-8.4 0-16 1.8-22.6 5.6-28.1 16.2-34.4 66.7-19.9 130.1-62.2 19.2-102.7 49.9-102.7 82.3 0 32.5 40.7 63.3 103.1 82.4-14.4 63.6-8 114.2 20.2 130.4 6.5 3.8 14.1 5.6 22.5 5.6 27.5 0 63.5-19.6 99.9-53.6 36.4 33.8 72.4 53.2 99.9 53.2 8.4 0 16-1.8 22.6-5.6 28.1-16.2 34.4-66.7 19.9-130.1 62-19.1 102.5-49.9 102.5-82.3zm-130.2-66.7c-3.7 12.9-8.3 26.2-13.5 39.5-4.1-8-8.4-16-13.1-24-4.6-8-9.5-15.8-14.4-23.4 14.2 2.1 27.9 4.7 41 7.9zm-45.8 106.5c-7.8 13.5-15.8 26.3-24.1 38.2-14.9 1.3-30 2-45.2 2-15.1 0-30.2-.7-45-1.9-8.3-11.9-16.4-24.6-24.2-38-7.6-13.1-14.5-26.4-20.8-39.8 6.2-13.4 13.2-26.8 20.7-39.9 7.8-13.5 15.8-26.3 24.1-38.2 14.9-1.3 30-2 45.2-2 15.1 0 30.2.7 45 1.9 8.3 11.9 16.4 24.6 24.2 38 7.6 13.1 14.5 26.4 20.8 39.8-6.3 13.4-13.2 26.8-20.7 39.9zm32.3-13c5.4 13.4 10 26.8 13.8 39.8-13.1 3.2-26.9 5.9-41.2 8 4.9-7.7 9.8-15.6 14.4-23.7 4.6-8 8.9-16.1 13-24.1zM421.2 430c-9.3-9.6-18.6-20.3-27.8-32 9 .4 18.2.7 27.5.7 9.4 0 18.7-.2 27.8-.7-9 11.7-18.3 22.4-27.5 32zm-74.4-58.9c-14.2-2.1-27.9-4.7-41-7.9 3.7-12.9 8.3-26.2 13.5-39.5 4.1 8 8.4 16 13.1 24 4.7 8 9.5 15.8 14.4 23.4zM420.7 163c9.3 9.6 18.6 20.3 27.8 32-9-.4-18.2-.7-27.5-.7-9.4 0-18.7.2-27.8.7 9-11.7 18.3-22.4 27.5-32zm-74 58.9c-4.9 7.7-9.8 15.6-14.4 23.7-4.6 8-8.9 16-13 24-5.4-13.4-10-26.8-13.8-39.8 13.1-3.1 26.9-5.8 41.2-7.9zm-90.5 125.2c-35.4-15.1-58.3-34.9-58.3-50.6 0-15.7 22.9-35.6 58.3-50.6 8.6-3.7 18-7 27.7-10.1 5.7 19.6 13.2 40 22.5 60.9-9.2 20.8-16.6 41.1-22.2 60.6-9.9-3.1-19.3-6.5-28-10.2zM310 490c-13.6-7.8-19.5-37.5-14.9-75.7 1.1-9.4 2.9-19.3 5.1-29.4 19.6 4.8 41 8.5 63.5 10.9 13.5 18.5 27.5 35.3 41.6 50-32.6 30.3-63.2 46.9-84 46.9-4.5-.1-8.3-1-11.3-2.7zm237.2-76.2c4.7 38.2-1.1 67.9-14.6 75.8-3 1.8-6.9 2.6-11.5 2.6-20.7 0-51.4-16.5-84-46.6 14-14.7 28-31.4 41.3-49.9 22.6-2.4 44-6.1 63.6-11 2.3 10.1 4.1 19.8 5.2 29.1zm38.5-66.7c-8.6 3.7-18 7-27.7 10.1-5.7-19.6-13.2-40-22.5-60.9 9.2-20.8 16.6-41.1 22.2-60.6 9.9 3.1 19.3 6.5 28.1 10.2 35.4 15.1 58.3 34.9 58.3 50.6-.1 15.7-23 35.6-58.4 50.6zM320.8 78.4z"/><circle cx="420.9" cy="296.5" r="45.7"/><path d="M520.5 78.1z"/></g></svg> | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
-
Please register or login to post a comment