chore: code formatting
This commit is contained in:
@@ -9,12 +9,12 @@ export default function({faker, url, body, login = faker.internet.userName()}) {
|
||||
status: 200,
|
||||
data: {
|
||||
data: {
|
||||
matchedUser:{
|
||||
languageProblemCount:new Array(6).fill(null).map(_ => ({
|
||||
languageName:faker.hacker.noun(),
|
||||
problemsSolved:faker.datatype.number(200)
|
||||
}))
|
||||
}
|
||||
matchedUser: {
|
||||
languageProblemCount: new Array(6).fill(null).map(_ => ({
|
||||
languageName: faker.hacker.noun(),
|
||||
problemsSolved: faker.datatype.number(200),
|
||||
})),
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
||||
@@ -26,25 +26,25 @@ export default function({faker, url, body, login = faker.internet.userName()}) {
|
||||
status: 200,
|
||||
data: {
|
||||
data: {
|
||||
matchedUser:{
|
||||
tagProblemCounts:{
|
||||
advanced:new Array(6).fill(null).map(_ => ({
|
||||
tagName:faker.hacker.noun(),
|
||||
tagSlug:faker.lorem.slug(),
|
||||
problemsSolved:faker.datatype.number(200)
|
||||
matchedUser: {
|
||||
tagProblemCounts: {
|
||||
advanced: new Array(6).fill(null).map(_ => ({
|
||||
tagName: faker.hacker.noun(),
|
||||
tagSlug: faker.lorem.slug(),
|
||||
problemsSolved: faker.datatype.number(200),
|
||||
})),
|
||||
intermediate:new Array(6).fill(null).map(_ => ({
|
||||
tagName:faker.hacker.noun(),
|
||||
tagSlug:faker.lorem.slug(),
|
||||
problemsSolved:faker.datatype.number(200)
|
||||
intermediate: new Array(6).fill(null).map(_ => ({
|
||||
tagName: faker.hacker.noun(),
|
||||
tagSlug: faker.lorem.slug(),
|
||||
problemsSolved: faker.datatype.number(200),
|
||||
})),
|
||||
fundamental:new Array(6).fill(null).map(_ => ({
|
||||
tagName:faker.hacker.noun(),
|
||||
tagSlug:faker.lorem.slug(),
|
||||
problemsSolved:faker.datatype.number(200)
|
||||
}))
|
||||
}
|
||||
}
|
||||
fundamental: new Array(6).fill(null).map(_ => ({
|
||||
tagName: faker.hacker.noun(),
|
||||
tagSlug: faker.lorem.slug(),
|
||||
problemsSolved: faker.datatype.number(200),
|
||||
})),
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
||||
@@ -56,27 +56,27 @@ export default function({faker, url, body, login = faker.internet.userName()}) {
|
||||
status: 200,
|
||||
data: {
|
||||
data: {
|
||||
allQuestionsCount:[
|
||||
{difficulty:"All", count:2402},
|
||||
{difficulty:"Easy", count:592},
|
||||
{difficulty:"Medium", count:1283},
|
||||
{difficulty:"Hard", count:527},
|
||||
allQuestionsCount: [
|
||||
{difficulty: "All", count: 2402},
|
||||
{difficulty: "Easy", count: 592},
|
||||
{difficulty: "Medium", count: 1283},
|
||||
{difficulty: "Hard", count: 527},
|
||||
],
|
||||
matchedUser:{
|
||||
problemsSolvedBeatsStats:[
|
||||
{difficulty:"Easy", percentage:faker.datatype.float({max:100})},
|
||||
{difficulty:"Medium", percentage:faker.datatype.float({max:100})},
|
||||
{difficulty:"Hard", percentage:faker.datatype.float({max:100})},
|
||||
matchedUser: {
|
||||
problemsSolvedBeatsStats: [
|
||||
{difficulty: "Easy", percentage: faker.datatype.float({max: 100})},
|
||||
{difficulty: "Medium", percentage: faker.datatype.float({max: 100})},
|
||||
{difficulty: "Hard", percentage: faker.datatype.float({max: 100})},
|
||||
],
|
||||
submitStatsGlobal:{
|
||||
acSubmissionNum:[
|
||||
{difficulty:"All", count:faker.datatype.number(2402)},
|
||||
{difficulty:"Easy", count:faker.datatype.number(592)},
|
||||
{difficulty:"Medium", count:faker.datatype.number(1283)},
|
||||
{difficulty:"Hard", count:faker.datatype.number(527)},
|
||||
]
|
||||
}
|
||||
}
|
||||
submitStatsGlobal: {
|
||||
acSubmissionNum: [
|
||||
{difficulty: "All", count: faker.datatype.number(2402)},
|
||||
{difficulty: "Easy", count: faker.datatype.number(592)},
|
||||
{difficulty: "Medium", count: faker.datatype.number(1283)},
|
||||
{difficulty: "Hard", count: faker.datatype.number(527)},
|
||||
],
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
||||
@@ -88,11 +88,11 @@ export default function({faker, url, body, login = faker.internet.userName()}) {
|
||||
status: 200,
|
||||
data: {
|
||||
data: {
|
||||
recentAcSubmissionList:new Array(6).fill(null).map(_ => ({
|
||||
id:`${faker.datatype.number(10000)}`,
|
||||
title:faker.lorem.sentence(),
|
||||
titleSlug:faker.lorem.slug(),
|
||||
timestamp:`${Math.round(faker.date.recent().getTime()/1000)}`,
|
||||
recentAcSubmissionList: new Array(6).fill(null).map(_ => ({
|
||||
id: `${faker.datatype.number(10000)}`,
|
||||
title: faker.lorem.sentence(),
|
||||
titleSlug: faker.lorem.slug(),
|
||||
timestamp: `${Math.round(faker.date.recent().getTime() / 1000)}`,
|
||||
})),
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user