-
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.
Browse files
Browse the repository at this point in the history
Feat/#114/indicator api
- Loading branch information
Showing
17 changed files
with
190 additions
and
204 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,8 @@ | ||
import { get } from '@/api/index'; | ||
|
||
const getDrawHistory = (page, limit, sort = 'desc') => | ||
get(`/admin/draw-history?page=${page}&limit=${limit}&sort=${sort}`); | ||
|
||
const getDrawRemaining = () => get('/admin/draw-remaining'); | ||
|
||
export { getDrawHistory, getDrawRemaining }; |
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,5 @@ | ||
import { get } from '@/api/index'; | ||
|
||
const getIndicator = () => get('/admin/indicator'); | ||
|
||
export { getIndicator }; |
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,13 +1,5 @@ | ||
import { post } from '@/api/_index'; | ||
import { post } from '@/api/index'; | ||
|
||
const postQuizReward = (file, quizDate) => | ||
post( | ||
'/admin/quiz-reward', | ||
{ | ||
file, | ||
quizDate, | ||
}, | ||
true, | ||
); | ||
const postQuizReward = body => post('/admin/quiz-reward', body); | ||
|
||
export { postQuizReward }; |
This file was deleted.
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
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
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
|
||
function Dau({ data }) { | ||
return ( | ||
<div className="flex bg-[#363636] text-neutral-white"> | ||
<div className="set-center min-w-[157px] min-h-[70px] border">Dau</div> | ||
<div className="set-center min-w-[157px] min-h-[70px] border"> | ||
시작일 기준 | ||
</div> | ||
{data.map((value, index) => ( | ||
<div | ||
key={index} | ||
className="set-center bg-[#363636] min-w-[157px] min-h-[70px] border" | ||
> | ||
{/* 추후 null은 0으로 변경되어 올 예정 지금은 임시방편 */} | ||
{value === null ? 0 : value} | ||
</div> | ||
))} | ||
</div> | ||
); | ||
} | ||
|
||
Dau.propTypes = { | ||
data: PropTypes.array.isRequired, | ||
}; | ||
|
||
export default Dau; |
Oops, something went wrong.