Skip to content

Commit 94dca1c

Browse files
authored
#556 redesign overall problem-creation-page UI (#585)
* Problem.vue 상수 추가 * 문제생성 페이지 UX/UI 변경사항 * 사용되지 않는 코드 주석 추가 * redesign overall problem creation page UI * change source imoji * remove duplicate problem initialization code
1 parent 64caf67 commit 94dca1c

4 files changed

Lines changed: 1853 additions & 440 deletions

File tree

frontend/src/i18n/admin/en-US.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,11 @@ export const m = {
175175
PruneTestCase_Delete_All: "전체 삭제",
176176

177177
// Problem.vue
178+
Question_Creation: "문제 생성",
178179
Display_ID: "문제 번호",
180+
Check_ID_Duplication: "중복 확인",
179181
Title: "제목",
182+
Question_Title: "문제 제목",
180183
Description: "문제 설명",
181184
Input_Description: "입력 설명",
182185
Output_Description: "출력 설명",
@@ -186,8 +189,8 @@ export const m = {
186189
Visible: "공개 여부",
187190
ShareSubmission: "제출 공유 여부",
188191
Languages: "언어",
189-
Input_Samples: "입력 예시",
190-
Output_Samples: "출력 예시",
192+
Input_Samples: "예제 입력",
193+
Output_Samples: "예제 출력",
191194
Add_Sample: "예시 추가",
192195
Code_Template: "코드 템플릿",
193196
Special_Judge: "스페셜 저지",

frontend/src/pages/admin/components/CodeMirror.vue

Lines changed: 33 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import { codemirror } from "vue-codemirror"
1111
import "codemirror/lib/codemirror.css"
1212
import "codemirror/mode/clike/clike.js"
1313
import "codemirror/mode/python/python.js"
14-
import "codemirror/theme/solarized.css"
1514
export default {
1615
name: "CodeMirror",
1716
data() {
@@ -21,12 +20,12 @@ export default {
2120
mode: "text/x-csrc",
2221
lineNumbers: true,
2322
lineWrapping: false,
24-
theme: "solarized",
23+
theme: "default",
2524
tabSize: 4,
2625
line: true,
2726
foldGutter: true,
2827
gutters: ["CodeMirror-linenumbers", "CodeMirror-foldgutter"],
29-
autofocus: true,
28+
autofocus: false,
3029
},
3130
}
3231
},
@@ -66,12 +65,40 @@ export default {
6665
}
6766
</script>
6867

69-
<style scoped>
68+
<style>
7069
.CodeMirror {
7170
height: auto !important;
71+
font-family: "Courier New", Courier, monospace !important;
72+
font-size: 14px;
73+
line-height: 1.6;
74+
background-color: #f8fafc !important;
75+
color: #334155 !important;
7276
}
77+
7378
.CodeMirror-scroll {
74-
min-height: 300px;
75-
max-height: 1000px;
79+
height: 300px;
80+
overflow-y: auto !important;
81+
}
82+
83+
.CodeMirror-lines {
84+
padding: 8px 0 !important;
85+
}
86+
87+
.CodeMirror-gutters {
88+
background-color: #f8fafc !important;
89+
border-right: 1px solid #e2e8f0 !important;
90+
padding-right: 5px;
91+
}
92+
93+
.CodeMirror-linenumber {
94+
color: #94a3b8 !important;
95+
}
96+
97+
.CodeMirror-activeline-background {
98+
background: #f1f5f9 !important;
99+
}
100+
101+
.CodeMirror-selected {
102+
background: #cbd5e1 !important;
76103
}
77104
</style>

0 commit comments

Comments
 (0)