-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
28 changed files
with
1,487 additions
and
25 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
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,71 @@ | ||
interface UserProfileType { | ||
id: number; | ||
profileImageUrl: string; | ||
nickname: string; | ||
} | ||
|
||
const generateMockData = (count: number): UserProfileType[] => { | ||
const mockData: UserProfileType[] = []; | ||
|
||
mockData.push({ | ||
id: 101, | ||
profileImageUrl: `/images/mock_profile.png`, | ||
nickname: '안유진', | ||
}); | ||
|
||
mockData.push({ | ||
id: 102, | ||
profileImageUrl: `/images/mock_profile.png`, | ||
nickname: '강나현', | ||
}); | ||
|
||
mockData.push({ | ||
id: 103, | ||
profileImageUrl: `/images/mock_profile.png`, | ||
nickname: '민서영', | ||
}); | ||
|
||
mockData.push({ | ||
id: 104, | ||
profileImageUrl: `/images/mock_profile.png`, | ||
nickname: '박소현', | ||
}); | ||
|
||
mockData.push({ | ||
id: 105, | ||
profileImageUrl: `/images/mock_profile.png`, | ||
nickname: '강현지', | ||
}); | ||
|
||
mockData.push({ | ||
id: 106, | ||
profileImageUrl: `/images/mock_profile.png`, | ||
nickname: '신은서', | ||
}); | ||
|
||
mockData.push({ | ||
id: 107, | ||
profileImageUrl: `/images/mock_profile.png`, | ||
nickname: '동호', | ||
}); | ||
|
||
mockData.push({ | ||
id: 108, | ||
profileImageUrl: `/images/mock_profile.png`, | ||
nickname: 'JJUNGSU', | ||
}); | ||
|
||
for (let i = 1; i <= count; i++) { | ||
const user: UserProfileType = { | ||
id: i, | ||
profileImageUrl: '', | ||
nickname: `User${i}`, | ||
}; | ||
|
||
mockData.push(user); | ||
} | ||
|
||
return mockData; | ||
}; | ||
|
||
export default generateMockData(20); |
Oops, something went wrong.