echo-dimigo/echo-front

View on GitHub

Showing 9 of 9 total issues

Similar blocks of code found in 2 locations. Consider refactoring.
Open

export const Afterschool = afsc => ({
idx: afsc['idx'],
name: afsc['name'],
startDate: afsc['request_start_date'],
endDate: afsc['request_end_date'],
Severity: Major
Found in src/api/struct.js and 1 other location - About 3 hrs to fix
src/api/struct.js on lines 13..25

Similar blocks of code found in 2 locations. Consider refactoring.
Open

export const User = user => ({
idx: user['idx'],
type: user['user_type'],
email: user['email'],
id: user['id'],
Severity: Major
Found in src/api/struct.js and 1 other location - About 3 hrs to fix
src/api/struct.js on lines 91..103

Similar blocks of code found in 2 locations. Consider refactoring.
Open

async getTodayAfterschools () {
let { afterschools } = await deliverier(() => axios.get('/afterschools/student/today'))
return afterschools.map(Afterschool)
}
Severity: Minor
Found in src/api/dimigoin/afterschool.js and 1 other location - About 40 mins to fix
src/api/dimigoin/ingang.js on lines 6..9

Similar blocks of code found in 2 locations. Consider refactoring.
Open

async getTodayIngangRooms () {
let { ingangs } = await deliverier(() => axios.get('/ingang'))
return ingangs.map(Ingang)
},
Severity: Minor
Found in src/api/dimigoin/ingang.js and 1 other location - About 40 mins to fix
src/api/dimigoin/afterschool.js on lines 6..9

Similar blocks of code found in 2 locations. Consider refactoring.
Open

async getPostById (idx) {
const { data: post } = await axios.get(`/echo/post/${idx}`)
return Post(post)
},
Severity: Minor
Found in src/api/post/user.js and 1 other location - About 40 mins to fix
src/api/tag/user.js on lines 10..13

Similar blocks of code found in 3 locations. Consider refactoring.
Open

async getAllTag () {
const { data: { tags } } = await axios.get('/echo/tags')
return tags.map(Tag)
},
Severity: Minor
Found in src/api/tag/user.js and 2 other locations - About 40 mins to fix
src/api/comment/user.js on lines 19..23
src/api/tag/user.js on lines 19..23

Similar blocks of code found in 3 locations. Consider refactoring.
Open

async getAllInvitations () {
const { data: { tags } } =
await axios.get('/echo/user_tag/my/invitations')
return tags.map(Tag)
},
Severity: Minor
Found in src/api/tag/user.js and 2 other locations - About 40 mins to fix
src/api/comment/user.js on lines 19..23
src/api/tag/user.js on lines 5..8

Similar blocks of code found in 2 locations. Consider refactoring.
Open

async getTagByIdx (idx) {
const { data: tag } = await axios.get(`/echo/tag/${idx}`)
return Tag(tag)
},
Severity: Minor
Found in src/api/tag/user.js and 1 other location - About 40 mins to fix
src/api/post/user.js on lines 10..13

Similar blocks of code found in 3 locations. Consider refactoring.
Open

async getCommentNotice () {
const { data: { comments } } =
await axios.get('/echo/comment/notices')
return comments.map(Comment)
}
Severity: Minor
Found in src/api/comment/user.js and 2 other locations - About 40 mins to fix
src/api/tag/user.js on lines 5..8
src/api/tag/user.js on lines 19..23
Severity
Category
Status
Source
Language