-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of github.com:devyunja/kafuncha-frontend into yunja
- Loading branch information
Showing
28 changed files
with
421 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"extends": ["react-app", "eslint:recommended"], | ||
"ignorePatterns": ["node_modules"], | ||
"rules": { | ||
"no-use-before-define": ["error"], | ||
"no-unused-vars": [ | ||
"error", | ||
{ | ||
"vars": "all", | ||
"varsIgnorePattern": "^_", | ||
"argsIgnorePattern": "^_", | ||
"args": "all", | ||
"ignoreRestSiblings": false | ||
} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"semi": false, | ||
"singleQuote": true, | ||
"arrowParens": "avoid", | ||
"endOfLine": "auto", | ||
"jsxSingleQuote": false, | ||
"jsxBracketSameLine": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"editor.formatOnSave": true, | ||
"editor.tabSize": 2, | ||
"files.insertFinalNewline": true, | ||
"files.trimFinalNewlines": true, | ||
"files.trimTrailingWhitespace": true, | ||
"javascript.validate.enable": false, | ||
"prettier.configPath": ".prettierrc", | ||
"prettier.prettierPath": "node_modules/prettier", | ||
"editor.defaultFormatter": "esbenp.prettier-vscode", | ||
"eslint.alwaysShowStatus": true | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,18 @@ | ||
import axios from 'axios'; | ||
import { useEffect, useState } from 'react'; | ||
|
||
function App() { | ||
const [history, setHistory] = useState([]); | ||
|
||
useEffect(() => { | ||
fetchChatHistory(); | ||
}, []); | ||
|
||
const fetchChatHistory = async () => { | ||
const res = await axios('https://programming.coffee/history'); | ||
setHistory(res.data); | ||
}; | ||
import Intro from './pages/Intro'; | ||
import Dashboard from './pages/Dashboard'; | ||
import {BrowserRouter,Route, Switch} from 'react-router-dom'; | ||
|
||
export default function App(){ | ||
return ( | ||
<div> | ||
{history.map((history, index) => <div key={index}>[{history.date}] {history.user}: {history.message}</div>)} | ||
</div> | ||
<BrowserRouter> | ||
<Switch> | ||
<Route exact path ="/"> | ||
<Intro /> | ||
</Route> | ||
<Route path="/dashboard"> | ||
<Dashboard /> | ||
</Route> | ||
</Switch> | ||
</BrowserRouter> | ||
); | ||
} | ||
|
||
export default App; |
This file was deleted.
Oops, something went wrong.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import React from 'react'; | ||
import './CardHeader.css' | ||
|
||
const CardHeader = (props) => { | ||
return( | ||
<div> | ||
채팅 랭킹 | ||
</div> | ||
) | ||
}; | ||
|
||
export default CardHeader; |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import React from 'react'; | ||
import './ChatMembersIntro.css' | ||
|
||
const ChatMembersIntro = (props) => { | ||
return( | ||
<div> | ||
안녕하세요.<br /> | ||
현재 채팅에 참여중인 사람은 <br /> | ||
모두 30명 입니다 :)<br /><br /> | ||
그럼 굿바이~ | ||
</div> | ||
) | ||
}; | ||
|
||
export default ChatMembersIntro; |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import React from 'react'; | ||
import './ChattingCount.css'; | ||
|
||
const ChattingCount = (props) => { | ||
return( | ||
<div> | ||
전체 채팅 횟수 : | ||
</div> | ||
) | ||
}; | ||
|
||
export default ChattingCount; |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import React from 'react'; | ||
import './CircleGraph.css' | ||
|
||
const CircleGraph = (props) => { | ||
return( | ||
<div></div> | ||
) | ||
}; | ||
|
||
export default CircleGraph; |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import React from 'react'; | ||
import './Header.css' | ||
|
||
const Header = () => { | ||
return ( | ||
<div> | ||
Kafuncha | ||
</div> | ||
); | ||
}; | ||
|
||
export default Header; |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import React from 'react'; | ||
import './Members.css' | ||
|
||
const Members = (props) => { | ||
return( | ||
<div> | ||
김코순님 | ||
</div> | ||
) | ||
}; | ||
|
||
export default Members; |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import React from 'react'; | ||
import './RankMember.css' | ||
|
||
const RankMember = (props) => { | ||
return( | ||
<div>1위</div> | ||
) | ||
}; | ||
|
||
export default RankMember; |
Empty file.
Oops, something went wrong.