-
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 #198 from woowacourse-teams/develop
버전 1.1 릴리즈
- Loading branch information
Showing
70 changed files
with
905 additions
and
719 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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.
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 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 = '/report'; | ||
|
||
const ReportService = { | ||
getCategories() { | ||
return ApiService.get(`${BASE_URL}/category`); | ||
} | ||
}; | ||
|
||
export default ReportService; |
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,129 @@ | ||
<template> | ||
<div> | ||
<v-icon | ||
@click.stop="onClickAlarmButton()" | ||
color="red darken-4" | ||
style="font-size:20px;" | ||
>mdi-alarm-light-outline</v-icon | ||
> | ||
<v-dialog v-model="dialog" max-width="400"> | ||
<v-card> | ||
<v-card-title class="text-h7 pl-3"> | ||
이 {{ getReportTypeText() }}을 신고하시겠어요? | ||
</v-card-title> | ||
|
||
<v-card-actions> | ||
<v-row> | ||
<v-col cols="12" align="center" justify="end"> | ||
<v-chip-group | ||
active-class="deep-purple--text text--accent-4" | ||
column | ||
align="center" | ||
justify="end" | ||
v-model="choiceCategory" | ||
> | ||
<v-chip | ||
class="ma-1" | ||
style="font-size: 12px; padding: 5px" | ||
v-for="reportCategory in this.reportCategories" | ||
@click="invalidCategoryChoice = false" | ||
:key="reportCategory.id" | ||
> | ||
{{ reportCategory.name }} | ||
</v-chip> | ||
</v-chip-group> | ||
|
||
<div style="padding-left: 10px;"> | ||
<h5 | ||
v-if="this.invalidCategoryChoice" | ||
style="color: red; font-weight: lighter" | ||
align="left" | ||
> | ||
신고하시는 이유를 선택해 주세요 | ||
</h5> | ||
</div> | ||
</v-col> | ||
<v-col cols="12"> | ||
<v-textarea | ||
solo | ||
auto-grow | ||
hide-details | ||
rows="1" | ||
name="input-7-4" | ||
label="상세한 내용을 적어주세요" | ||
v-model="textContent" | ||
/> | ||
</v-col> | ||
<v-col cols="12" align="right" justify="end"> | ||
<v-btn color="#B2A4D4" text @click="dialog = false">아니요</v-btn> | ||
<v-btn color="#B2A4D4" text @click="onReport">네, 할게요</v-btn> | ||
</v-col> | ||
</v-row> | ||
</v-card-actions> | ||
</v-card> | ||
</v-dialog> | ||
</div> | ||
</template> | ||
<script> | ||
import { REPORT_TYPE } from '@/utils/ReportType.js'; | ||
import { mapMutations } from 'vuex'; | ||
import { SHOW_SNACKBAR } from '@/store/shared/mutationTypes'; | ||
export default { | ||
name: 'ReportButton', | ||
data() { | ||
return { | ||
dialog: false, | ||
reportCategories: [ | ||
{ id: 1, name: '광고 목적 게시' }, | ||
{ id: 2, name: '모욕적인 표현' }, | ||
{ id: 3, name: '불쾌한 표현' } | ||
], | ||
choiceCategory: undefined, | ||
invalidCategoryChoice: false, | ||
textContent: '' | ||
}; | ||
}, | ||
methods: { | ||
...mapMutations([SHOW_SNACKBAR]), | ||
onReport() { | ||
if (this.choiceCategory === undefined) { | ||
this.invalidCategoryChoice = true; | ||
return; | ||
} | ||
//todo : 여기에 신고 연산이 들어간다 | ||
this.dialog = false; | ||
this.showSnackbar('신고가 접수되었습니다. 감사합니다.'); | ||
}, | ||
onClickAlarmButton() { | ||
this.invalidCategoryChoice = false; | ||
this.choiceCategory = undefined; | ||
this.textContent = ''; | ||
this.dialog = true; | ||
}, | ||
getReportTypeText() { | ||
switch (this.reportType) { | ||
case REPORT_TYPE.ARTICLE: | ||
return '게시물'; | ||
case REPORT_TYPE.COMMENT: | ||
return '댓글'; | ||
default: | ||
return '게시물'; | ||
} | ||
} | ||
}, | ||
props: { | ||
reportType: { | ||
type: String, | ||
required: true, | ||
default: '' | ||
}, | ||
reportedId: { | ||
type: Number, | ||
required: true, | ||
default: 0 | ||
} | ||
} | ||
}; | ||
</script> |
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,64 @@ | ||
<template> | ||
<v-row justify="center"> | ||
<v-dialog v-model="dialog" persistent max-width="400"> | ||
<v-card> | ||
<v-carousel :continuous="false" hide-delimiters height="auto"> | ||
<v-carousel-item | ||
v-for="(item, i) in items" | ||
:key="i" | ||
reverse-transition="fade-transition" | ||
transition="fade-transition" | ||
eager | ||
><v-img :src="item.src" height="100%" eager /> | ||
</v-carousel-item> | ||
</v-carousel> | ||
<v-card-actions> | ||
<v-spacer></v-spacer> | ||
<v-btn color="purple darken-5" text @click="closeTutorial()" | ||
>시작해볼게요</v-btn | ||
> | ||
<v-spacer></v-spacer> | ||
</v-card-actions> | ||
</v-card> | ||
</v-dialog> | ||
</v-row> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
props: ['dialog'], | ||
data() { | ||
return { | ||
items: [ | ||
{ | ||
src: '/img/tutorial_1.png' | ||
}, | ||
{ | ||
src: '/img/tutorial_2.png' | ||
}, | ||
{ | ||
src: '/img/tutorial_3.png' | ||
}, | ||
{ | ||
src: '/img/tutorial_4.png' | ||
}, | ||
{ | ||
src: '/img/tutorial_5.png' | ||
}, | ||
{ | ||
src: '/img/tutorial_6.png' | ||
}, | ||
{ | ||
src: '/img/tutorial_7.png' | ||
} | ||
] | ||
}; | ||
}, | ||
methods: { | ||
closeTutorial() { | ||
localStorage.setItem('tutorial_check', 'yes'); | ||
this.dialog = false; | ||
} | ||
} | ||
}; | ||
</script> |
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.