244 lines
5.2 KiB
HTML
244 lines
5.2 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="ko">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>금지어 관리</title>
|
|
<style>
|
|
* { box-sizing: border-box; }
|
|
body {
|
|
margin: 0;
|
|
font-family: 'Segoe UI', sans-serif;
|
|
background: #f4f6f9;
|
|
padding: 20px;
|
|
}
|
|
|
|
h2 {
|
|
text-align: center;
|
|
margin-bottom: 20px;
|
|
color: #2c3e50;
|
|
}
|
|
|
|
/* 통계 정보 스타일 */
|
|
.stats-info {
|
|
background: #f8f9fa;
|
|
border: 1px solid #dee2e6;
|
|
border-radius: 6px;
|
|
padding: 15px;
|
|
margin-bottom: 20px;
|
|
font-size: 14px;
|
|
font-weight: bold;
|
|
color: #495057;
|
|
text-align: center;
|
|
}
|
|
|
|
/* 테이블 스타일 */
|
|
.banned-words-table-container {
|
|
overflow-x: auto;
|
|
margin-top: 20px;
|
|
background: white;
|
|
border-radius: 8px;
|
|
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
|
|
}
|
|
|
|
#banned-words-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
font-size: 14px;
|
|
}
|
|
|
|
#banned-words-table th,
|
|
#banned-words-table td {
|
|
border: 1px solid #ddd;
|
|
padding: 12px 8px;
|
|
text-align: left;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
#banned-words-table th {
|
|
background-color: #f8f9fa;
|
|
font-weight: bold;
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 1;
|
|
}
|
|
|
|
#banned-words-table tr:nth-child(even) {
|
|
background-color: #f9f9f9;
|
|
}
|
|
|
|
/* 순번 열 스타일 */
|
|
#banned-words-table th:first-child,
|
|
#banned-words-table td:first-child {
|
|
width: 60px;
|
|
text-align: center;
|
|
}
|
|
|
|
/* 액션 버튼 스타일 */
|
|
.action-btn {
|
|
padding: 6px 10px;
|
|
margin: 2px;
|
|
border: none;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
font-size: 12px;
|
|
white-space: nowrap;
|
|
display: inline-block;
|
|
min-width: 40px;
|
|
}
|
|
|
|
.view-btn {
|
|
background: #3498db;
|
|
color: white;
|
|
}
|
|
|
|
.edit-btn {
|
|
background: #f39c12;
|
|
color: white;
|
|
}
|
|
|
|
.delete-btn {
|
|
background: #e74c3c;
|
|
color: white;
|
|
}
|
|
|
|
.action-btn:hover {
|
|
opacity: 0.8;
|
|
}
|
|
|
|
/* 등급 표시 스타일 */
|
|
.grade-display {
|
|
display: inline-block;
|
|
padding: 4px 8px;
|
|
background-color: #f8f9fa;
|
|
border: 1px solid #dee2e6;
|
|
border-radius: 4px;
|
|
font-size: 12px;
|
|
font-weight: bold;
|
|
color: #495057;
|
|
min-width: 60px;
|
|
text-align: center;
|
|
}
|
|
|
|
/* 로딩 표시 */
|
|
.loading {
|
|
text-align: center;
|
|
padding: 20px;
|
|
font-size: 14px;
|
|
color: #3498db;
|
|
}
|
|
|
|
/* 키프리스 모달 스타일 */
|
|
.modal {
|
|
display: none;
|
|
position: fixed;
|
|
z-index: 1000;
|
|
left: 0;
|
|
top: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background-color: rgba(0,0,0,0.5);
|
|
}
|
|
|
|
.modal-content {
|
|
position: relative;
|
|
background-color: #fefefe;
|
|
margin: 15px auto;
|
|
padding: 20px;
|
|
border: 1px solid #888;
|
|
width: 80%;
|
|
max-width: 800px;
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.modal-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 20px;
|
|
padding-bottom: 10px;
|
|
border-bottom: 1px solid #dee2e6;
|
|
}
|
|
|
|
.modal-header h3 {
|
|
margin: 0;
|
|
}
|
|
|
|
.close {
|
|
font-size: 24px;
|
|
font-weight: bold;
|
|
cursor: pointer;
|
|
color: #666;
|
|
}
|
|
|
|
.close:hover {
|
|
color: #000;
|
|
}
|
|
|
|
/* 디버그 정보 */
|
|
.debug-info {
|
|
margin-top: 20px;
|
|
padding: 10px;
|
|
background: #f8f9fa;
|
|
border: 1px solid #dee2e6;
|
|
border-radius: 4px;
|
|
font-size: 12px;
|
|
color: #6c757d;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<h2>🚫 금지어 관리</h2>
|
|
|
|
<!-- 디버그 정보 -->
|
|
<div class="debug-info" id="debug-info" style="display: block;">
|
|
초기화 중...
|
|
<br>
|
|
<button id="token-check-btn" style="margin-top: 10px; padding: 5px 10px; font-size: 12px;">🔍 토큰 상태 확인</button>
|
|
</div>
|
|
|
|
<!-- 통계 정보 -->
|
|
<div id="banned-words-stats" class="stats-info">
|
|
<!-- 통계 정보가 여기에 표시됩니다 -->
|
|
</div>
|
|
|
|
<!-- 금지어 테이블 -->
|
|
<div class="banned-words-table-container">
|
|
<table id="banned-words-table">
|
|
<thead>
|
|
<tr>
|
|
<th>순번</th>
|
|
<th>금지어</th>
|
|
<th>등급</th>
|
|
<th>작업</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody id="banned-words-tbody">
|
|
<!-- 동적으로 생성됨 -->
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="loading" id="banned-words-loading" style="display: none;">
|
|
🔄 금지어 목록을 불러오는 중...
|
|
</div>
|
|
|
|
<!-- 키프리스 결과 모달 -->
|
|
<div id="kipris-modal" class="modal">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<h3>🔍 키프리스 검색 결과</h3>
|
|
<span class="close" id="close-kipris">×</span>
|
|
</div>
|
|
<div id="kipris-word-title"></div>
|
|
<div id="kipris-results">
|
|
<!-- 동적으로 생성됨 -->
|
|
</div>
|
|
<div class="loading" id="kipris-loading" style="display: none;">
|
|
🔄 키프리스 결과를 불러오는 중...
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<script src="bannedWords.js"></script>
|
|
</body>
|
|
</html> |