Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/offline main page #18

Merged
merged 6 commits into from
Jan 17, 2021
Merged

Feature/offline main page #18

merged 6 commits into from
Jan 17, 2021

Conversation

hywook4
Copy link
Contributor

@hywook4 hywook4 commented Jan 10, 2021

resolves #15

로그인이 되어있지 않은 유저에 대한 메인 페이지

  • 최신 영상
  • 인기 영상

스크롤 시 추가 영상 불러오기 기능.

@hywook4 hywook4 requested a review from zych1751 January 10, 2021 07:26
src/api/home.ts Outdated
const getRecentVideoPosts = async (pageToken:number|null): Promise<videoPostsResponse> => {
const res = await axios.request<videoPostsResponse>({
baseURL: API_URL,
url: '/v1/post-list/recent-videos',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

webdonalds/YAS-backend#30 에서는 /v1/logoffed-post-list라고 되어있는데 여기선 v1/post-list 로 쓰고 있습니다.
둘중에 하나는 고쳐져야겠네요.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

앗 그렇네요 지적 감사합니다.

src/api/home.ts Outdated
const getHotVideoPosts = async (): Promise<videoPostsResponse> => {
const res = await axios.request<videoPostsResponse>({
baseURL: API_URL,
url: '/v1/post-list/hot-videos',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

여기도 고쳐져야 합니다.

Comment on lines 6 to 8
const getYoutubeThumbnailUrl = (id: string) => {
return `https://img.youtube.com/vi/${id}/0.jpg`;
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

다른 곳에서도 사용되는 함수같은데 util.ts 파일 같은것을 만들어서 따로 관리해도 좋지 않을까요?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이건 말하신대로 따로 빼면 좋을 것 같습니다. 앞으로도 여러곳에서 사용될 예정입니다.

@hywook4
Copy link
Contributor Author

hywook4 commented Jan 15, 2021

모두 변경 완료

@hywook4 hywook4 merged commit 0ea75be into master Jan 17, 2021
@hywook4 hywook4 deleted the feature/offline-main-page branch January 30, 2021 08:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

로그인이 안되어있는 유저들의 메인페이지
2 participants