-
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.
Merge pull request #213 from woowacourse-teams/develop
버전 1.2 릴리즈
- Loading branch information
Showing
56 changed files
with
1,168 additions
and
72 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import ApiService from '@/api'; | ||
|
||
const BASE_URL = '/member'; | ||
|
||
const Member = { | ||
delete() { | ||
return ApiService.delete(`${BASE_URL}`); | ||
} | ||
}; | ||
|
||
export default Member; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<template> | ||
<v-container justify="center"> | ||
<v-dialog max-width="290" persistent v-model="isShowRequestLoginModal"> | ||
<v-card> | ||
<v-card-title class="headline"> | ||
반가워요👋 | ||
</v-card-title> | ||
<v-card-text> | ||
새벽이 마음에 들었나요?<br /> | ||
소셜 로그인으로 간단하게 회원가입하고 모든 기능을 사용해보세요! | ||
</v-card-text> | ||
<v-card-actions> | ||
<v-spacer></v-spacer> | ||
<v-btn @click="goToFeed" color="grey darken-1" text> | ||
돌아가기 | ||
</v-btn> | ||
<v-btn @click="goToSignIn" color="deep-purple darken-1" text> | ||
로그인 | ||
</v-btn> | ||
</v-card-actions> | ||
</v-card> | ||
</v-dialog> | ||
</v-container> | ||
</template> | ||
|
||
<script> | ||
import { mapGetters, mapMutations } from 'vuex'; | ||
import { HIDE_REQUEST_LOGIN_MODAL } from '@/store/shared/mutationTypes'; | ||
export default { | ||
name: 'Login', | ||
computed: { | ||
...mapGetters(['isShowRequestLoginModal']) | ||
}, | ||
methods: { | ||
...mapMutations([HIDE_REQUEST_LOGIN_MODAL]), | ||
goToFeed() { | ||
this.hideRequestLoginModal(); | ||
this.$router.push('/feed'); | ||
}, | ||
goToSignIn() { | ||
this.hideRequestLoginModal(); | ||
this.$router.push('/signin'); | ||
} | ||
} | ||
}; | ||
</script> | ||
|
||
<style scoped></style> |
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,91 @@ | ||
<template> | ||
<v-menu bottom left> | ||
<template v-slot:activator="{ on, attrs }"> | ||
<v-btn icon v-bind="attrs" v-on="on"> | ||
<v-icon>mdi-account-settings</v-icon> | ||
</v-btn> | ||
</template> | ||
|
||
<v-list> | ||
<v-list-item @click.stop="logoutDialog = true"> | ||
<v-list-item-title>로그아웃</v-list-item-title> | ||
<v-dialog v-model="logoutDialog" max-width="290"> | ||
<v-card> | ||
<v-card-title class="text-h6" | ||
>정말 로그아웃 하시겠어요? | ||
</v-card-title> | ||
<v-card-actions> | ||
<v-spacer></v-spacer> | ||
<v-btn color="#B2A4D4" text @click="logoutDialog = false" | ||
>아니요 | ||
</v-btn> | ||
<v-btn color="#B2A4D4" text @click="logout">네, 할게요</v-btn> | ||
</v-card-actions> | ||
</v-card> | ||
</v-dialog> | ||
</v-list-item> | ||
<v-list-item @click.stop="dialog = true"> | ||
<v-list-item-title>탈퇴</v-list-item-title> | ||
<v-dialog v-model="dialog" max-width="290"> | ||
<v-card> | ||
<v-card-title class="text-h6">정말 떠나시는 거예요?😭</v-card-title> | ||
<v-card-text> | ||
* 탈퇴 시 작성하신 게시글은 자동으로 삭제되지 않습니다. <br /> | ||
* 개인정보(소셜 로그인 식별 번호)는 삭제되며, 추후 같은 소셜 | ||
로그인 아이디로 다시 가입하시더라도 작성하셨던 게시글을 열람이나 | ||
삭제할 수 없습니다. | ||
</v-card-text> | ||
<v-card-actions> | ||
<v-spacer></v-spacer> | ||
<v-btn color="#B2A4D4" text @click="dialog = false">아니요</v-btn> | ||
<v-btn color="red darken-4" text @click="unregister" | ||
>탈퇴하기 | ||
</v-btn> | ||
</v-card-actions> | ||
</v-card> | ||
</v-dialog> | ||
</v-list-item> | ||
</v-list> | ||
</v-menu> | ||
</template> | ||
|
||
<script> | ||
import { mapActions, mapMutations } from 'vuex'; | ||
import { SHOW_SNACKBAR } from '@/store/shared/mutationTypes'; | ||
import { DELETE_MEMBER } from '@/store/shared/actionTypes'; | ||
export default { | ||
data() { | ||
return { | ||
dialog: false, | ||
logoutDialog: false | ||
}; | ||
}, | ||
methods: { | ||
...mapActions([DELETE_MEMBER]), | ||
...mapMutations([SHOW_SNACKBAR]), | ||
logout() { | ||
if (this.$router.currentRoute.name === 'Feed') { | ||
this.$router.go(); | ||
} else { | ||
this.$router.push('/feed').catch(() => {}); | ||
} | ||
localStorage.removeItem('token'); | ||
this.showSnackbar('성공적으로 로그아웃되었어요. 안녕히 가세요👋'); | ||
}, | ||
unregister() { | ||
this.deleteMember() | ||
.then(() => { | ||
localStorage.clear(); | ||
this.showSnackbar('성공적으로 탈퇴되었어요. 안녕히 가세요👋'); | ||
this.$router.replace({ name: 'SignIn' }); | ||
}) | ||
.catch(() => { | ||
location.href = '/error'; | ||
}); | ||
} | ||
} | ||
}; | ||
</script> | ||
|
||
<style></style> |
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
Oops, something went wrong.