-
Notifications
You must be signed in to change notification settings - Fork 2
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 #42 from kanghanju/develop
fix: modify header
- Loading branch information
Showing
21 changed files
with
983 additions
and
684 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 |
---|---|---|
|
@@ -29,4 +29,7 @@ default RowMapper<User> userRowMapper() { | |
return user; | ||
}); | ||
} | ||
} | ||
|
||
void deleteUser(Long userId); | ||
|
||
} |
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 |
---|---|---|
@@ -1,61 +1,29 @@ | ||
function clickToGoMyCodingtestPost() { | ||
let id = document.getElementById('myPage_userName').getAttribute( | ||
'data-userid'); | ||
switchHighlight('coteType'); | ||
$.ajax({ | ||
//JS에 백틱을 써서 템플릿 리터럴을 사용했다 | ||
url: `/user/${id}/codingtest/posts`, | ||
type: "GET", | ||
success: function (data) { | ||
$('.show_user_wrote .table_container .postList').html(data); | ||
console.log(data); | ||
}, | ||
error: function (error) { | ||
console.log(error); | ||
} | ||
}); | ||
} | ||
|
||
function clickToGoMyQuizPost() { | ||
let id = document.getElementById('myPage_userName').getAttribute( | ||
'data-userid'); | ||
switchHighlight('quizType'); | ||
$.ajax({ | ||
url: `/user/${id}/quiz/posts`, | ||
type: "GET", | ||
success: function (data) { | ||
$('.show_user_wrote .table_container .postList').html(data); | ||
console.log(data); | ||
}, | ||
error: function (error) { | ||
console.log(error); | ||
} | ||
}); | ||
} | ||
function clickToGoLeaveMembership(event) { | ||
event.preventDefault(); | ||
|
||
function clickToGoMyCommentPost() { | ||
let id = document.getElementById('myPage_userName').getAttribute( | ||
'data-userid'); | ||
switchHighlight('commentType'); | ||
$.ajax({ | ||
url: `/user/${id}/comment/posts`, | ||
type: "GET", | ||
success: function (data) { | ||
$('.show_user_wrote .table_container .postList').html(data); | ||
console.log(data); | ||
}, | ||
error: function (error) { | ||
console.log(error); | ||
} | ||
}); | ||
} | ||
const isConfirmed = confirm("Bend Doumi에서 탈퇴하시겠습니까?"); | ||
|
||
function switchHighlight(selectedId) { | ||
let items = ['coteType', 'quizType', 'commentType']; | ||
if (isConfirmed) { | ||
// 사용자 ID 가져오기 | ||
let id = document.getElementById('myPage_userName').getAttribute( | ||
'data-userid'); | ||
|
||
items.forEach(function (id) { | ||
document.getElementById(id).style.color = ''; // 원래 색상으로 초기화 | ||
}); | ||
|
||
document.getElementById(selectedId).style.color = '#04B45F'; | ||
fetch(`/user/${id}/delete`, { | ||
method: 'DELETE', | ||
}) | ||
.then(response => { | ||
if (response.ok) { | ||
alert("탈퇴 처리가 완료되었습니다."); | ||
window.location.replace('/user/login'); | ||
} else { | ||
alert("탈퇴 처리 중 오류가 발생했습니다."); | ||
} | ||
}) | ||
.catch(error => { | ||
console.error('탈퇴 요청 실패:', error); | ||
alert("탈퇴 처리 중 문제가 발생했습니다."); | ||
}); | ||
} else { | ||
alert("탈퇴 절차가 취소되었습니다."); | ||
} | ||
} |
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 |
---|---|---|
|
@@ -16,7 +16,7 @@ body { | |
|
||
/*header 파트*/ | ||
.move_to_algorithm { | ||
/*color: #04B45F;*/ | ||
color: #04B45F; | ||
} | ||
|
||
|
||
|
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 |
---|---|---|
@@ -1,44 +1,44 @@ | ||
html, | ||
body { | ||
height: 100%; | ||
min-height: 100vh; | ||
} | ||
|
||
body { | ||
display: flex; | ||
flex-direction: column; | ||
display: flex; | ||
flex-direction: column; | ||
} | ||
|
||
main { | ||
flex: 1; | ||
width: 100%; | ||
flex: 1; | ||
width: 100%; | ||
} | ||
|
||
footer{ | ||
width: 100%; | ||
padding: 70px 0 40px 0; | ||
/*border-top: 1px solid #C4C4C4;*/ | ||
footer { | ||
width: 100%; | ||
padding: 70px 0 40px 0; | ||
/*border-top: 1px solid #C4C4C4;*/ | ||
} | ||
|
||
.footer-wrapper{ | ||
display: flex; | ||
justify-content: space-between; | ||
max-width: 900px; | ||
margin: 0 auto; | ||
.footer-wrapper { | ||
display: flex; | ||
justify-content: space-between; | ||
max-width: 900px; | ||
margin: 0 auto; | ||
} | ||
|
||
.boot-camp-info{ | ||
font-size: 13px; | ||
font-weight: 500; | ||
display: flex; | ||
align-items: center; | ||
.boot-camp-info { | ||
font-size: 13px; | ||
font-weight: 500; | ||
display: flex; | ||
align-items: center; | ||
} | ||
|
||
.footer-img{ | ||
width: 40px; | ||
.footer-img { | ||
width: 40px; | ||
} | ||
|
||
.helper{ | ||
font-size: 13px; | ||
display: flex; | ||
align-items: center; | ||
.helper { | ||
font-size: 13px; | ||
display: flex; | ||
align-items: center; | ||
} |
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
Oops, something went wrong.