Skip to content

Commit

Permalink
fix-qbobl5: 마무리
Browse files Browse the repository at this point in the history
  • Loading branch information
qbobl5 committed Dec 21, 2023
1 parent 60921be commit 189f2e8
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 14 deletions.
2 changes: 1 addition & 1 deletion src/components/profile/MyCode.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
:id="'code.' + code.quizNo"
>
<span class="opposing-name">{{ code.quizCorrect === 1 ? '성공' : '실패' }}</span>
<span class="opposing-name">{{ code.quizTitle }}</span>
<span class="opposing-name" :title="''+code.quizTitle">{{ code.quizTitle }}</span>
<span class="opposing-name">{{ code.quizDt }}</span>
<button id="codeInfo" :data-quizno="code.quizNo" @click="codeClickHandler($event)">
조회
Expand Down
2 changes: 1 addition & 1 deletion src/components/room/AddRoom.vue
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ textarea {
}
.quizTitle {
width: 55%;
width: 350px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
Expand Down
1 change: 1 addition & 0 deletions src/views/admin/AdminPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ export default {
}
.content-area {
width: 1000px;
height: 650px;
}
Expand Down
10 changes: 5 additions & 5 deletions src/views/code/Rank.vue
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ export default {
quizContent: '',
quizTitle: '',
timerRunning: true,
minutes: 60,
seconds: 0,
minutes: 0,
seconds: 10,
socket: null,
buttonValue: '',
buttonValuePlayer1: '',
Expand Down Expand Up @@ -332,9 +332,9 @@ export default {
setTimeout(this.updateTimer, 1000) // 1초마다 업데이트
}
if (this.seconds === 0 && this.minutes === 0) {
if (confirm('시간이 초과되어 메인으로 이동합니다')) {
this.$router.push({ path: `/` })
}
SweetAlert.warning('시간이 초과되어\n게임을 종료합니다', '랭크는 무승부처리로 인정됩니다', '확인').then(()=>{
this.$router.push({ path: `/` })
})
}
},
// /n을 <br> 태그로 대체하는 메서드
Expand Down
4 changes: 2 additions & 2 deletions src/views/quiz/AddQuiz.vue
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,8 @@ export default {
})
}
if (this.testcase.length < 10) {
SweetAlert.warning('테스트케이스를\n 10개 이상 작성하세요', '', '확인')
if (this.testcase.length < 5) {
SweetAlert.warning('테스트케이스를\n 5개 이상 작성하세요', '', '확인')
return
}
Expand Down
12 changes: 7 additions & 5 deletions src/views/quiz/QuizView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -173,12 +173,13 @@ export default {
if (e.target.id == 'modify-button') {
this.modifyBt = true
} else if (e.target.id == 'cancle-button') {
var result = confirm('문제 수정을 취소하시겠습니까?')
if (result) window.history.go(0)
SweetAlert.question('문제 수정을 취소하시겠습니까?', '', '확인', '취소').then((res)=>{
if(res.isConfirmed) window.history.go(0)
})
} else if (e.target.id == 'save-button') {
result = confirm('문제를 저장하시겠습니까?')
if (!result) return
const data = {
SweetAlert.question('문제를 저장하시겠습니까?', '', '확인', '취소').then((res)=>{
if(!res.isConfirmed) return
const data = {
quizTitle: this.quizTitle,
quizContent: this.quizContent,
quizInput: this.inputInfo,
Expand All @@ -203,6 +204,7 @@ export default {
window.history.go(0)
})
})
})
}
},
codeFile() {
Expand Down

0 comments on commit 189f2e8

Please sign in to comment.