
Merge branch 'master' of http://210.180.118.83/jichoi/lms_front
@9d0e2016f98bbe7da0fe04aaf40dc85fee31fbfd
--- client/views/pages/AppRouter.js
+++ client/views/pages/AppRouter.js
... | ... | @@ -1,19 +1,20 @@ |
1 | 1 |
import { createWebHistory, createRouter } from "vue-router"; |
2 | 2 |
|
3 | 3 |
// import App from "../App.vue"; |
4 |
-import login from "../Login.vue" |
|
5 |
-import Join from "../Join.vue" |
|
6 |
-import MyPage from './main/MyPage.vue'; |
|
7 |
-import MyPlan from './main/MyPlan.vue'; |
|
8 |
-import MyPlan2 from './main/MyPlan2.vue'; |
|
9 |
-import PhotoBook from './main/PhotoBook.vue'; |
|
10 |
-import Dashboard from './main/Dashboard.vue'; |
|
11 |
-import AIDashboard from './main/AIDashboard.vue'; |
|
12 |
-import Camera from "./main/Camera.vue" |
|
13 |
-import PhotoDesign from "./main/PhotoDesign.vue" |
|
14 |
-import PhotoEdit from "./main/PhotoEdit.vue" |
|
15 |
-import PreviewNote from './main/PreviewNote.vue'; |
|
4 |
+import login from "../Login.vue"; |
|
5 |
+import Join from "../Join.vue"; |
|
6 |
+import MyPage from "./main/MyPage.vue"; |
|
7 |
+import MyPlan from "./main/MyPlan.vue"; |
|
8 |
+import MyPlan2 from "./main/MyPlan2.vue"; |
|
9 |
+import PhotoBook from "./main/PhotoBook.vue"; |
|
10 |
+import Dashboard from "./main/Dashboard.vue"; |
|
11 |
+import AIDashboard from "./main/AIDashboard.vue"; |
|
12 |
+import Camera from "./main/Camera.vue"; |
|
13 |
+import PhotoDesign from "./main/PhotoDesign.vue"; |
|
14 |
+import PhotoEdit from "./main/PhotoEdit.vue"; |
|
15 |
+import PreviewNote from "./main/PreviewNote.vue"; |
|
16 | 16 |
import Main from "./main/Main.vue"; |
17 |
+import Main_c from "./main/Main_c.vue"; |
|
17 | 18 |
import Chapter1 from "./main/Chapter/Chapter1.vue"; |
18 | 19 |
import Chapter1_1 from "./main/Chapter/Chapter1_1.vue"; |
19 | 20 |
import Chapter1_2 from "./main/Chapter/Chapter1_2.vue"; |
... | ... | @@ -96,9 +97,9 @@ |
96 | 97 |
import RoadMap from "./teacher/RoadMap.vue"; |
97 | 98 |
|
98 | 99 |
const routes = [ |
99 |
- { path: '/login.page', name: 'login', component: login }, |
|
100 |
- { path: '/Join.page', name: 'Join', component: Join }, |
|
101 |
- |
|
100 |
+ { path: "/login.page", name: "login", component: login }, |
|
101 |
+ { path: "/Join.page", name: "Join", component: Join }, |
|
102 |
+ |
|
102 | 103 |
// { path: '/App.page', name: 'App', component: App, |
103 | 104 |
// children:[ |
104 | 105 |
// ] |
... | ... | @@ -106,115 +107,304 @@ |
106 | 107 |
// { path: '/Main.page', name: 'Main', component: Main}, |
107 | 108 |
/* 학생 */ |
108 | 109 |
{ |
109 |
- path: '/', |
|
110 |
- name: 'Main', |
|
110 |
+ path: "/", |
|
111 |
+ name: "Main", |
|
111 | 112 |
component: Main, |
112 | 113 |
children: [ |
113 |
- { path: '/Dashboard.page', name: 'Dashboard', component: Dashboard }, |
|
114 |
- { path: '/AIDashboard.page', name: 'AIDashboard', component: AIDashboard }, |
|
115 |
- { path: '/MyPage.page', name: 'MyPage', component: MyPage }, |
|
116 |
- { path: '/MyPlan.page', name: 'MyPlan', component: MyPlan }, |
|
117 |
- { path: '/MyPlan2.page', name: 'MyPlan2', component: MyPlan2 }, |
|
118 |
- { path: '/PhotoBook.page', name: 'PhotoBook', component: PhotoBook }, |
|
119 |
- { path: '/PreviewNote.page', name: 'PreviewNote', component: PreviewNote }, |
|
120 |
- ] |
|
114 |
+ { |
|
115 |
+ path: "/Dashboard.page", |
|
116 |
+ name: "Dashboard", |
|
117 |
+ component: Dashboard, |
|
118 |
+ }, |
|
119 |
+ { path: "/MyPage.page", name: "MyPage", component: MyPage }, |
|
120 |
+ { path: "/MyPlan.page", name: "MyPlan", component: MyPlan }, |
|
121 |
+ { path: "/MyPlan2.page", name: "MyPlan2", component: MyPlan2 }, |
|
122 |
+ { |
|
123 |
+ path: "/PhotoBook.page", |
|
124 |
+ name: "PhotoBook", |
|
125 |
+ component: PhotoBook, |
|
126 |
+ }, |
|
127 |
+ { |
|
128 |
+ path: "/PreviewNote.page", |
|
129 |
+ name: "PreviewNote", |
|
130 |
+ component: PreviewNote, |
|
131 |
+ }, |
|
132 |
+ ], |
|
121 | 133 |
}, |
122 |
- { path: '/Camera.page', name: 'Camera', component: Camera }, |
|
123 |
- { path: '/PhotoDesign.page', name: 'PhotoDesign', component: PhotoDesign }, |
|
124 |
- { path: '/PhotoEdit.page', name: 'PhotoEdit', component: PhotoEdit }, |
|
134 |
+ { path: "/Camera.page", name: "Camera", component: Camera }, |
|
135 |
+ { path: "/PhotoDesign.page", name: "PhotoDesign", component: PhotoDesign }, |
|
136 |
+ { path: "/PhotoEdit.page", name: "PhotoEdit", component: PhotoEdit }, |
|
125 | 137 |
/* 지문 */ |
126 |
- { path: '/Chapter1.page', name: 'Chapter1', component: Chapter1 }, |
|
127 |
- { path: '/Chapter1_1.page', name: 'Chapter1_1', component: Chapter1_1 }, |
|
128 |
- { path: '/Chapter1_2.page', name: 'Chapter1_2', component: Chapter1_2 }, |
|
129 |
- { path: '/Chapter1_3.page', name: 'Chapter1_3', component: Chapter1_3 }, |
|
138 |
+ { path: "/Chapter1.page", name: "Chapter1", component: Chapter1 }, |
|
139 |
+ { path: "/Chapter1_1.page", name: "Chapter1_1", component: Chapter1_1 }, |
|
140 |
+ { path: "/Chapter1_2.page", name: "Chapter1_2", component: Chapter1_2 }, |
|
141 |
+ { path: "/Chapter1_3.page", name: "Chapter1_3", component: Chapter1_3 }, |
|
130 | 142 |
|
131 | 143 |
/* 단어장 및 지문 문제 */ |
132 |
- { path: '/Chapter2.page', name: 'Chapter2', component: Chapter2 }, |
|
133 |
- { path: '/Chapter2_1.page', name: 'Chapter2_1', component: Chapter2_1 }, |
|
134 |
- { path: '/Chapter2_2.page', name: 'Chapter2_2', component: Chapter2_2 }, |
|
135 |
- { path: '/Chapter2_3.page', name: 'Chapter2_3', component: Chapter2_3 }, |
|
136 |
- { path: '/Chapter2_4.page', name: 'Chapter2_4', component: Chapter2_4 }, |
|
137 |
- { path: '/Chapter2_5.page', name: 'Chapter2_5', component: Chapter2_5 }, |
|
138 |
- { path: '/Chapter2_6.page', name: 'Chapter2_6', component: Chapter2_6 }, |
|
139 |
- { path: '/Chapter2_7.page', name: 'Chapter2_7', component: Chapter2_7 }, |
|
140 |
- { path: '/Chapter2_8.page', name: 'Chapter2_8', component: Chapter2_8 }, |
|
141 |
- { path: '/Chapter2_9.page', name: 'Chapter2_9', component: Chapter2_9 }, |
|
142 |
- { path: '/Chapter2_10.page', name: 'Chapter2_10', component: Chapter2_10 }, |
|
143 |
- { path: '/Chapter2_11.page', name: 'Chapter2_11', component: Chapter2_11 }, |
|
144 |
- { path: '/Chapter2_12.page', name: 'Chapter2_12', component: Chapter2_12 }, |
|
145 |
- { path: '/Chapter2_13.page', name: 'Chapter2_13', component: Chapter2_13 }, |
|
144 |
+ { path: "/Chapter2.page", name: "Chapter2", component: Chapter2 }, |
|
145 |
+ { path: "/Chapter2_1.page", name: "Chapter2_1", component: Chapter2_1 }, |
|
146 |
+ { path: "/Chapter2_2.page", name: "Chapter2_2", component: Chapter2_2 }, |
|
147 |
+ { path: "/Chapter2_3.page", name: "Chapter2_3", component: Chapter2_3 }, |
|
148 |
+ { path: "/Chapter2_4.page", name: "Chapter2_4", component: Chapter2_4 }, |
|
149 |
+ { path: "/Chapter2_5.page", name: "Chapter2_5", component: Chapter2_5 }, |
|
150 |
+ { path: "/Chapter2_6.page", name: "Chapter2_6", component: Chapter2_6 }, |
|
151 |
+ { path: "/Chapter2_7.page", name: "Chapter2_7", component: Chapter2_7 }, |
|
152 |
+ { path: "/Chapter2_8.page", name: "Chapter2_8", component: Chapter2_8 }, |
|
153 |
+ { path: "/Chapter2_9.page", name: "Chapter2_9", component: Chapter2_9 }, |
|
154 |
+ { path: "/Chapter2_10.page", name: "Chapter2_10", component: Chapter2_10 }, |
|
155 |
+ { path: "/Chapter2_11.page", name: "Chapter2_11", component: Chapter2_11 }, |
|
156 |
+ { path: "/Chapter2_12.page", name: "Chapter2_12", component: Chapter2_12 }, |
|
157 |
+ { path: "/Chapter2_13.page", name: "Chapter2_13", component: Chapter2_13 }, |
|
146 | 158 |
|
147 | 159 |
/* 평가 문제 */ |
148 |
- { path: '/Chapter3.page', name: 'Chapter3', component: Chapter3 }, |
|
149 |
- { path: '/Chapter3_1.page', name: 'Chapter3_1', component: Chapter3_1 }, |
|
150 |
- { path: '/Chapter3_2.page', name: 'Chapter3_2', component: Chapter3_2 }, |
|
151 |
- { path: '/Chapter3_3.page', name: 'Chapter3_3', component: Chapter3_3 }, |
|
152 |
- { path: '/Chapter3_3_1.page', name: 'Chapter3_3_1', component: Chapter3_3_1 }, |
|
153 |
- { path: '/Chapter3_4.page', name: 'Chapter3_4', component: Chapter3_4 }, |
|
154 |
- { path: '/Chapter3_5.page', name: 'Chapter3_5', component: Chapter3_5 }, |
|
155 |
- { path: '/Chapter3_6.page', name: 'Chapter3_6', component: Chapter3_6 }, |
|
156 |
- { path: '/Chapter3_7.page', name: 'Chapter3_7', component: Chapter3_7 }, |
|
157 |
- { path: '/Chapter3_8.page', name: 'Chapter3_8', component: Chapter3_8 }, |
|
158 |
- { path: '/Chapter3_9.page', name: 'Chapter3_9', component: Chapter3_9 }, |
|
159 |
- { path: '/Chapter3_10.page', name: 'Chapter3_10', component: Chapter3_10 }, |
|
160 |
- { path: '/Chapter3_11.page', name: 'Chapter3_11', component: Chapter3_11 }, |
|
161 |
- { path: '/Chapter3_12.page', name: 'Chapter3_12', component: Chapter3_12 }, |
|
162 |
- { path: '/Chapter3_13.page', name: 'Chapter3_13', component: Chapter3_13 }, |
|
163 |
- { path: '/Chapter3_14.page', name: 'Chapter3_14', component: Chapter3_14 }, |
|
164 |
- { path: '/Chapter3_15.page', name: 'Chapter3_15', component: Chapter3_15 }, |
|
160 |
+ { |
|
161 |
+ path: "/Main_c.page", |
|
162 |
+ name: "Main_c", |
|
163 |
+ component: Main_c, |
|
164 |
+ children: [ |
|
165 |
+ { path: "/Chapter3.page", name: "Chapter3", component: Chapter3 }, |
|
166 |
+ { |
|
167 |
+ path: "/Chapter3_1.page", |
|
168 |
+ name: "Chapter3_1", |
|
169 |
+ component: Chapter3_1, |
|
170 |
+ }, |
|
171 |
+ { |
|
172 |
+ path: "/Chapter3_2.page", |
|
173 |
+ name: "Chapter3_2", |
|
174 |
+ component: Chapter3_2, |
|
175 |
+ }, |
|
176 |
+ { |
|
177 |
+ path: "/Chapter3_3.page", |
|
178 |
+ name: "Chapter3_3", |
|
179 |
+ component: Chapter3_3, |
|
180 |
+ }, |
|
181 |
+ { |
|
182 |
+ path: "/Chapter3_3_1.page", |
|
183 |
+ name: "Chapter3_3_1", |
|
184 |
+ component: Chapter3_3_1, |
|
185 |
+ }, |
|
186 |
+ { |
|
187 |
+ path: "/Chapter3_4.page", |
|
188 |
+ name: "Chapter3_4", |
|
189 |
+ component: Chapter3_4, |
|
190 |
+ }, |
|
191 |
+ { |
|
192 |
+ path: "/Chapter3_5.page", |
|
193 |
+ name: "Chapter3_5", |
|
194 |
+ component: Chapter3_5, |
|
195 |
+ }, |
|
196 |
+ { |
|
197 |
+ path: "/Chapter3_6.page", |
|
198 |
+ name: "Chapter3_6", |
|
199 |
+ component: Chapter3_6, |
|
200 |
+ }, |
|
201 |
+ { |
|
202 |
+ path: "/Chapter3_7.page", |
|
203 |
+ name: "Chapter3_7", |
|
204 |
+ component: Chapter3_7, |
|
205 |
+ }, |
|
206 |
+ { |
|
207 |
+ path: "/Chapter3_8.page", |
|
208 |
+ name: "Chapter3_8", |
|
209 |
+ component: Chapter3_8, |
|
210 |
+ }, |
|
211 |
+ { |
|
212 |
+ path: "/Chapter3_9.page", |
|
213 |
+ name: "Chapter3_9", |
|
214 |
+ component: Chapter3_9, |
|
215 |
+ }, |
|
216 |
+ { |
|
217 |
+ path: "/Chapter3_10.page", |
|
218 |
+ name: "Chapter3_10", |
|
219 |
+ component: Chapter3_10, |
|
220 |
+ }, |
|
221 |
+ { |
|
222 |
+ path: "/Chapter3_11.page", |
|
223 |
+ name: "Chapter3_11", |
|
224 |
+ component: Chapter3_11, |
|
225 |
+ }, |
|
226 |
+ { |
|
227 |
+ path: "/Chapter3_12.page", |
|
228 |
+ name: "Chapter3_12", |
|
229 |
+ component: Chapter3_12, |
|
230 |
+ }, |
|
231 |
+ { |
|
232 |
+ path: "/Chapter3_13.page", |
|
233 |
+ name: "Chapter3_13", |
|
234 |
+ component: Chapter3_13, |
|
235 |
+ }, |
|
236 |
+ { |
|
237 |
+ path: "/Chapter3_14.page", |
|
238 |
+ name: "Chapter3_14", |
|
239 |
+ component: Chapter3_14, |
|
240 |
+ }, |
|
241 |
+ { |
|
242 |
+ path: "/Chapter3_15.page", |
|
243 |
+ name: "Chapter3_15", |
|
244 |
+ component: Chapter3_15, |
|
245 |
+ }, |
|
246 |
+ ], |
|
247 |
+ }, |
|
165 | 248 |
/* 설문 조사 페이지*/ |
166 |
- { path: '/Chapter3_16.page', name: 'Chapter3_16', component: Chapter3_16 }, |
|
167 |
-/* 평가 결과 페이지*/ |
|
168 |
- { path: '/Chapter4.page', name: 'Chapter4', component: Chapter4 }, |
|
249 |
+ { path: "/Chapter3_16.page", name: "Chapter3_16", component: Chapter3_16 }, |
|
250 |
+ /* 평가 결과 페이지*/ |
|
251 |
+ { path: "/Chapter4.page", name: "Chapter4", component: Chapter4 }, |
|
169 | 252 |
|
170 |
- { path: '/Chapter5.page', name: 'Chapter5', component: Chapter5 }, |
|
171 |
- { path: '/Chapter6.page', name: 'Chapter6', component: Chapter6 }, |
|
172 |
- { path: '/Chapter7.page', name: 'Chapter7', component: Chapter7 }, |
|
173 |
- { path: '/Chapter8.page', name: 'Chapter8', component: Chapter8 }, |
|
174 |
- { path: '/Chapter9.page', name: 'Chapter9', component: Chapter9 }, |
|
175 |
- { path: '/Chapter10.page', name: 'Chapter10', component: Chapter10 }, |
|
176 |
- { path: '/Chapter11.page', name: 'Chapter11', component: Chapter11 }, |
|
253 |
+ { path: "/Chapter5.page", name: "Chapter5", component: Chapter5 }, |
|
254 |
+ { path: "/Chapter6.page", name: "Chapter6", component: Chapter6 }, |
|
255 |
+ { path: "/Chapter7.page", name: "Chapter7", component: Chapter7 }, |
|
256 |
+ { path: "/Chapter8.page", name: "Chapter8", component: Chapter8 }, |
|
257 |
+ { path: "/Chapter9.page", name: "Chapter9", component: Chapter9 }, |
|
258 |
+ { path: "/Chapter10.page", name: "Chapter10", component: Chapter10 }, |
|
259 |
+ { path: "/Chapter11.page", name: "Chapter11", component: Chapter11 }, |
|
177 | 260 |
|
178 | 261 |
/* 부모님 */ |
179 |
- { path: '/Main_p.page', name: 'Main_p', component: Main_p }, |
|
262 |
+ { path: "/Main_p.page", name: "Main_p", component: Main_p }, |
|
180 | 263 |
/* 선생님 */ |
181 |
- { path: '/Main_t.page', name: 'Main_t', component: Main_t , |
|
264 |
+ { |
|
265 |
+ path: "/Main_t.page", |
|
266 |
+ name: "Main_t", |
|
267 |
+ component: Main_t, |
|
182 | 268 |
children: [ |
183 |
- { path: '/Board.page', name: 'Board', component: Board }, |
|
184 |
- { path: '/noticeInsert.page', name: 'noticeInsert', component: noticeInsert }, |
|
185 |
- { path: '/noticeDetail.page', name: 'noticeDetail', component: noticeDetail }, |
|
186 |
- { path: '/Home.page', name: 'Home', component: Home }, |
|
187 |
- { path: '/ClassDetail.page', name: 'ClassDetail', component: ClassDetail }, |
|
188 |
- { path: '/StudentList.page', name: 'StudentList', component: StudentList }, |
|
189 |
- { path: '/StudentDetail.page', name: 'StudentDetail', component: StudentDetail }, |
|
190 |
- { path: '/C_Textbook.page', name: 'C_Textbook', component: C_Textbook }, |
|
191 |
- { path: '/textbook.page', name: 'textbook', component: textbook }, |
|
192 |
- { path: '/TextBookDetail.page', name: 'TextBookDetail', component: TextBookDetail }, |
|
193 |
- { path: '/C_TextBookDetail.page', name: 'C_TextBookDetail', component: C_TextBookDetail }, |
|
194 |
- { path: '/TextList.page', name: 'TextList', component: TextList }, |
|
195 |
- { path: '/TextInsert.page', name: 'TextInsert', component: TextInsert }, |
|
196 |
- { path: '/TextDetail.page', name: 'TextDetail', component: TextDetail }, |
|
197 |
- { path: '/QuestionList.page', name: 'QuestionList', component: QuestionList }, |
|
198 |
- { path: '/QuestionInsert.page', name: 'QuestionInsert', component: QuestionInsert }, |
|
199 |
- { path: '/QuestionDetail.page', name: 'QuestionDetail', component: QuestionDetail }, |
|
200 |
- { path: '/VocaList.page', name: 'VocaList', component: VocaList }, |
|
201 |
- { path: '/VocaInsert.page', name: 'VocaInsert', component: VocaInsert }, |
|
202 |
- { path: '/VocaDetail.page', name: 'VocaDetail', component: VocaDetail }, |
|
203 |
- { path: '/ExamList.page', name: 'ExamList', component: ExamList }, |
|
204 |
- { path: '/ExamDetail.page', name: 'ExamDetail', component: ExamDetail }, |
|
205 |
- { path: '/ExamInsert.page', name: 'ExamInsert', component: ExamInsert }, |
|
206 |
- { path: '/C_TextList.page', name: 'C_TextList', component: C_TextList }, |
|
207 |
- { path: '/C_TextInsert.page', name: 'C_TextInsert', component: C_TextInsert }, |
|
208 |
- { path: '/C_QuestionList.page', name: 'C_QuestionList', component: C_QuestionList }, |
|
209 |
- { path: '/C_QuestionInsert.page', name: 'C_QuestionInsert', component: C_QuestionInsert }, |
|
210 |
- { path: '/C_Voca_List.page', name: 'C_Voca_List', component: C_Voca_List }, |
|
211 |
- { path: '/C_ExamList.page', name: 'C_ExamList', component: C_ExamList }, |
|
212 |
- { path: '/C_ExamDetail.page', name: 'C_ExamDetail', component: C_ExamDetail }, |
|
213 |
- { path: '/C_ExamInsert.page', name: 'C_ExamInsert', component: C_ExamInsert }, |
|
214 |
- |
|
215 |
- { path: '/RoadMap.page', name: 'RoadMap', component: RoadMap }, |
|
216 |
- |
|
217 |
- { path: '/TextDetail.page', name: 'TextDetail', component: TextDetail }, |
|
269 |
+ { path: "/Board.page", name: "Board", component: Board }, |
|
270 |
+ { |
|
271 |
+ path: "/noticeInsert.page", |
|
272 |
+ name: "noticeInsert", |
|
273 |
+ component: noticeInsert, |
|
274 |
+ }, |
|
275 |
+ { |
|
276 |
+ path: "/noticeDetail.page", |
|
277 |
+ name: "noticeDetail", |
|
278 |
+ component: noticeDetail, |
|
279 |
+ }, |
|
280 |
+ { path: "/Home.page", name: "Home", component: Home }, |
|
281 |
+ { |
|
282 |
+ path: "/ClassDetail.page", |
|
283 |
+ name: "ClassDetail", |
|
284 |
+ component: ClassDetail, |
|
285 |
+ }, |
|
286 |
+ { |
|
287 |
+ path: "/StudentList.page", |
|
288 |
+ name: "StudentList", |
|
289 |
+ component: StudentList, |
|
290 |
+ }, |
|
291 |
+ { |
|
292 |
+ path: "/StudentDetail.page", |
|
293 |
+ name: "StudentDetail", |
|
294 |
+ component: StudentDetail, |
|
295 |
+ }, |
|
296 |
+ { |
|
297 |
+ path: "/C_Textbook.page", |
|
298 |
+ name: "C_Textbook", |
|
299 |
+ component: C_Textbook, |
|
300 |
+ }, |
|
301 |
+ { path: "/textbook.page", name: "textbook", component: textbook }, |
|
302 |
+ { |
|
303 |
+ path: "/TextBookDetail.page", |
|
304 |
+ name: "TextBookDetail", |
|
305 |
+ component: TextBookDetail, |
|
306 |
+ }, |
|
307 |
+ { |
|
308 |
+ path: "/C_TextBookDetail.page", |
|
309 |
+ name: "C_TextBookDetail", |
|
310 |
+ component: C_TextBookDetail, |
|
311 |
+ }, |
|
312 |
+ { path: "/TextList.page", name: "TextList", component: TextList }, |
|
313 |
+ { |
|
314 |
+ path: "/TextInsert.page", |
|
315 |
+ name: "TextInsert", |
|
316 |
+ component: TextInsert, |
|
317 |
+ }, |
|
318 |
+ { |
|
319 |
+ path: "/TextDetail.page", |
|
320 |
+ name: "TextDetail", |
|
321 |
+ component: TextDetail, |
|
322 |
+ }, |
|
323 |
+ { |
|
324 |
+ path: "/QuestionList.page", |
|
325 |
+ name: "QuestionList", |
|
326 |
+ component: QuestionList, |
|
327 |
+ }, |
|
328 |
+ { |
|
329 |
+ path: "/QuestionInsert.page", |
|
330 |
+ name: "QuestionInsert", |
|
331 |
+ component: QuestionInsert, |
|
332 |
+ }, |
|
333 |
+ { |
|
334 |
+ path: "/QuestionDetail.page", |
|
335 |
+ name: "QuestionDetail", |
|
336 |
+ component: QuestionDetail, |
|
337 |
+ }, |
|
338 |
+ { path: "/VocaList.page", name: "VocaList", component: VocaList }, |
|
339 |
+ { |
|
340 |
+ path: "/VocaInsert.page", |
|
341 |
+ name: "VocaInsert", |
|
342 |
+ component: VocaInsert, |
|
343 |
+ }, |
|
344 |
+ { |
|
345 |
+ path: "/VocaDetail.page", |
|
346 |
+ name: "VocaDetail", |
|
347 |
+ component: VocaDetail, |
|
348 |
+ }, |
|
349 |
+ { path: "/ExamList.page", name: "ExamList", component: ExamList }, |
|
350 |
+ { |
|
351 |
+ path: "/ExamDetail.page", |
|
352 |
+ name: "ExamDetail", |
|
353 |
+ component: ExamDetail, |
|
354 |
+ }, |
|
355 |
+ { |
|
356 |
+ path: "/ExamInsert.page", |
|
357 |
+ name: "ExamInsert", |
|
358 |
+ component: ExamInsert, |
|
359 |
+ }, |
|
360 |
+ { |
|
361 |
+ path: "/C_TextList.page", |
|
362 |
+ name: "C_TextList", |
|
363 |
+ component: C_TextList, |
|
364 |
+ }, |
|
365 |
+ { |
|
366 |
+ path: "/C_TextInsert.page", |
|
367 |
+ name: "C_TextInsert", |
|
368 |
+ component: C_TextInsert, |
|
369 |
+ }, |
|
370 |
+ { |
|
371 |
+ path: "/C_QuestionList.page", |
|
372 |
+ name: "C_QuestionList", |
|
373 |
+ component: C_QuestionList, |
|
374 |
+ }, |
|
375 |
+ { |
|
376 |
+ path: "/C_QuestionInsert.page", |
|
377 |
+ name: "C_QuestionInsert", |
|
378 |
+ component: C_QuestionInsert, |
|
379 |
+ }, |
|
380 |
+ { |
|
381 |
+ path: "/C_Voca_List.page", |
|
382 |
+ name: "C_Voca_List", |
|
383 |
+ component: C_Voca_List, |
|
384 |
+ }, |
|
385 |
+ { |
|
386 |
+ path: "/C_ExamList.page", |
|
387 |
+ name: "C_ExamList", |
|
388 |
+ component: C_ExamList, |
|
389 |
+ }, |
|
390 |
+ { |
|
391 |
+ path: "/C_ExamDetail.page", |
|
392 |
+ name: "C_ExamDetail", |
|
393 |
+ component: C_ExamDetail, |
|
394 |
+ }, |
|
395 |
+ { |
|
396 |
+ path: "/C_ExamInsert.page", |
|
397 |
+ name: "C_ExamInsert", |
|
398 |
+ component: C_ExamInsert, |
|
399 |
+ }, |
|
400 |
+ |
|
401 |
+ { path: "/RoadMap.page", name: "RoadMap", component: RoadMap }, |
|
402 |
+ |
|
403 |
+ { |
|
404 |
+ path: "/TextDetail.page", |
|
405 |
+ name: "TextDetail", |
|
406 |
+ component: TextDetail, |
|
407 |
+ }, |
|
218 | 408 |
], |
219 | 409 |
}, |
220 | 410 |
]; |
... | ... | @@ -224,4 +414,4 @@ |
224 | 414 |
routes, |
225 | 415 |
}); |
226 | 416 |
|
227 |
-export default AppRouter;(No newline at end of file) |
|
417 |
+export default AppRouter; |
--- client/views/pages/main/Chapter/Chapter1_2.vue
+++ client/views/pages/main/Chapter/Chapter1_2.vue
... | ... | @@ -21,7 +21,7 @@ |
21 | 21 |
<article class="flex align-start mb10"> |
22 | 22 |
<div class="icon mr40"> |
23 | 23 |
<img src="../../../../resources/img/img37_s.png" alt=""> |
24 |
- <p class="name">발화좌</p> |
|
24 |
+ <p class="name">발화자</p> |
|
25 | 25 |
</div> |
26 | 26 |
<p class="read">What’s up man, nice to meet you Minsu. how are you today?</p> |
27 | 27 |
</article> |
... | ... | @@ -29,13 +29,13 @@ |
29 | 29 |
<p class="read mr40">What’s up man, nice to meet you Minsu. how are you today?</p> |
30 | 30 |
<div class="icon "> |
31 | 31 |
<img src="../../../../resources/img/img37_s.png" alt=""> |
32 |
- <p class="name">발화좌</p> |
|
32 |
+ <p class="name">발화자</p> |
|
33 | 33 |
</div> |
34 | 34 |
</article> |
35 | 35 |
<article class="flex align-start mb10"> |
36 | 36 |
<div class="icon mr40"> |
37 | 37 |
<img src="../../../../resources/img/img37_s.png" alt=""> |
38 |
- <p class="name">발화좌</p> |
|
38 |
+ <p class="name">발화자</p> |
|
39 | 39 |
</div> |
40 | 40 |
<p class="read">What’s up man, nice to meet you Minsu. how are you today?</p> |
41 | 41 |
</article> |
... | ... | @@ -43,7 +43,7 @@ |
43 | 43 |
<p class="read mr40">What’s up man, nice to meet you Minsu. how are you today?</p> |
44 | 44 |
<div class="icon "> |
45 | 45 |
<img src="../../../../resources/img/img37_s.png" alt=""> |
46 |
- <p class="name">발화좌</p> |
|
46 |
+ <p class="name">발화자</p> |
|
47 | 47 |
</div> |
48 | 48 |
</article> |
49 | 49 |
</div> |
--- client/views/pages/main/Chapter/Chapter2_10.vue
+++ client/views/pages/main/Chapter/Chapter2_10.vue
... | ... | @@ -15,54 +15,53 @@ |
15 | 15 |
<p class="title mt25 title-bg">step2</p> |
16 | 16 |
<div class="flex align-center mb30"> |
17 | 17 |
<p class="subtitle2 mr20">방문이 자물쇠로 잠겨져 있네? 세 개 중에 맞는 열쇠 하나를 찾아줘!</p> |
18 |
- <!-- <button><img src="../../../../resources/img/btn10_s.png" alt=""> |
|
19 |
- </button> --> |
|
20 | 18 |
</div> |
21 | 19 |
|
22 | 20 |
<div class="flex align-center justify-center" style="gap: 113px;"> |
23 | 21 |
<div class="imgGroup"> |
24 | 22 |
<div class="flex" style="gap: 60px;"> |
25 | 23 |
<button><img src="../../../../resources/img/img82_42s.png" alt=""> |
26 |
- <p>1</p> |
|
24 |
+ <p>Tell me</p> |
|
27 | 25 |
</button> |
28 | 26 |
<button><img src="../../../../resources/img/img159_42s.png" alt=""></button> |
29 | 27 |
<button><img src="../../../../resources/img/img83_42s.png" alt=""> |
30 |
- <p>1</p> |
|
28 |
+ <p>Why</p> |
|
31 | 29 |
</button> |
32 | 30 |
</div> |
33 |
- |
|
34 | 31 |
</div> |
35 | 32 |
<div class="pickGroup"> |
36 | 33 |
<div> |
37 |
- <article class="flex justify-center mb50" style="gap: 60px;"> |
|
34 |
+ <article class="flex justify-center mb50" style="gap: 60px;"> |
|
38 | 35 |
<img src="../../../../resources/img/img84_42s.png" alt=""> |
39 | 36 |
<div class="flex"> |
40 |
- <button><img src="../../../../resources/img/img136_71s.png" alt=""> |
|
41 |
- <p>1</p> |
|
37 |
+ <button @click="handleClick('You are so upset.', 1)"> |
|
38 |
+ <img src="../../../../resources/img/img136_71s.png" alt=""> |
|
39 |
+ <p :class="{ active: selectedButton === 1 }">1</p> |
|
42 | 40 |
</button> |
43 |
- <p>a</p> |
|
41 |
+ <p>You are so upset.</p> |
|
44 | 42 |
</div> |
45 | 43 |
</article> |
46 |
- <article class="flex justify-center mb50" style="gap: 60px;"> |
|
44 |
+ <article class="flex justify-center mb50" style="gap: 60px;"> |
|
47 | 45 |
<img src="../../../../resources/img/img85_42s.png" alt=""> |
48 | 46 |
<div class="flex"> |
49 |
- <button><img src="../../../../resources/img/img136_71s.png" alt=""> |
|
50 |
- <p>2</p> |
|
47 |
+ <button @click="handleClick('You is so upset.', 2)"> |
|
48 |
+ <img src="../../../../resources/img/img136_71s.png" alt=""> |
|
49 |
+ <p :class="{ active: selectedButton === 2 }">2</p> |
|
51 | 50 |
</button> |
52 |
- <p>a</p> |
|
51 |
+ <p>You is so upset.</p> |
|
53 | 52 |
</div> |
54 | 53 |
</article> |
55 |
- <article class="flex justify-center" style="gap: 60px;"> |
|
54 |
+ <article class="flex justify-center" style="gap: 60px;"> |
|
56 | 55 |
<img src="../../../../resources/img/img86_42s.png" alt=""> |
57 | 56 |
<div class="flex"> |
58 |
- <button><img src="../../../../resources/img/img136_71s.png" alt=""> |
|
59 |
- <p>3</p> |
|
57 |
+ <button @click="handleClick('You am so upset.', 3)"> |
|
58 |
+ <img src="../../../../resources/img/img136_71s.png" alt=""> |
|
59 |
+ <p :class="{ active: selectedButton === 3 }">3</p> |
|
60 | 60 |
</button> |
61 |
- <p>a</p> |
|
61 |
+ <p>You am so upset.</p> |
|
62 | 62 |
</div> |
63 | 63 |
</article> |
64 | 64 |
</div> |
65 |
- |
|
66 | 65 |
</div> |
67 | 66 |
</div> |
68 | 67 |
</div> |
... | ... | @@ -75,26 +74,26 @@ |
75 | 74 |
export default { |
76 | 75 |
data() { |
77 | 76 |
return { |
78 |
- } |
|
77 |
+ selectedButton: null, // 선택된 버튼을 추적하기 위한 데이터 |
|
78 |
+ }; |
|
79 | 79 |
}, |
80 | 80 |
methods: { |
81 | 81 |
goToPage(page) { |
82 | 82 |
this.$router.push({ name: page }); |
83 |
+ }, |
|
84 |
+ handleClick(text, buttonNumber) { |
|
85 |
+ this.selectedButton = buttonNumber; // 선택된 버튼 번호를 저장 |
|
86 |
+ |
|
87 |
+ if (text === 'You are so upset.') { |
|
88 |
+ alert('정답입니다!'); |
|
89 |
+ } else { |
|
90 |
+ alert('오답입니다!'); |
|
91 |
+ } |
|
83 | 92 |
} |
84 |
- }, |
|
85 |
- watch: { |
|
86 |
- |
|
87 |
- }, |
|
88 |
- computed: { |
|
89 |
- |
|
90 |
- }, |
|
91 |
- components: { |
|
92 |
- }, |
|
93 |
- mounted() { |
|
94 |
- |
|
95 | 93 |
} |
96 | 94 |
} |
97 | 95 |
</script> |
96 |
+ |
|
98 | 97 |
<style scoped> |
99 | 98 |
.imgGroup{width: fit-content;} |
100 | 99 |
.imgGroup button { |
... | ... | @@ -112,7 +111,7 @@ |
112 | 111 |
background: #ffffffb8; |
113 | 112 |
border-radius: 5px; |
114 | 113 |
padding: 10px; |
115 |
- font-size: 48px; |
|
114 |
+ font-size: 23px; |
|
116 | 115 |
font-family: 'ONEMobilePOP'; |
117 | 116 |
} |
118 | 117 |
|
... | ... | @@ -129,8 +128,18 @@ |
129 | 128 |
left: 50%; |
130 | 129 |
transform: translate(-50%, -50%); |
131 | 130 |
} |
132 |
-.pickGroup article img{object-fit: contain; width: -webkit-fill-available;} |
|
133 |
-.pickGroup article >div >p { |
|
134 |
- font-size: 64px; |
|
131 |
+ |
|
132 |
+.pickGroup article img { |
|
133 |
+ object-fit: contain; |
|
134 |
+ width: -webkit-fill-available; |
|
135 | 135 |
} |
136 |
-</style>(No newline at end of file) |
|
136 |
+ |
|
137 |
+.pickGroup article >div >p { |
|
138 |
+ font-size: 25px; |
|
139 |
+ white-space: nowrap; /* 텍스트가 줄 바꿈 없이 한 줄로 표시되도록 설정 */ |
|
140 |
+} |
|
141 |
+ |
|
142 |
+.pickGroup button p.active { |
|
143 |
+ color: #000; /* 선택된 버튼의 숫자 색을 더 진하게 */ |
|
144 |
+} |
|
145 |
+</style> |
--- client/views/pages/main/Chapter/Chapter2_13.vue
+++ client/views/pages/main/Chapter/Chapter2_13.vue
... | ... | @@ -70,9 +70,9 @@ |
70 | 70 |
</div> |
71 | 71 |
</div> |
72 | 72 |
<!-- 오답일 경우 아래의 이미지가 보여야함 --> |
73 |
- <div class="flex justify-center wrong-anwser" style="gap: 20px;"> |
|
73 |
+ <!-- <div class="flex justify-center wrong-anwser" style="gap: 20px;"> |
|
74 | 74 |
<img src="../../../../resources/img/img165_46s.png" alt=""> |
75 |
- </div> |
|
75 |
+ </div> --> |
|
76 | 76 |
|
77 | 77 |
</div> |
78 | 78 |
</div> |
--- client/views/pages/main/Chapter/Chapter2_4.vue
+++ client/views/pages/main/Chapter/Chapter2_4.vue
... | ... | @@ -53,9 +53,9 @@ |
53 | 53 |
return { |
54 | 54 |
items: [ |
55 | 55 |
{ imgSrc1: 'client/resources/img/img61_36s.png', imgSrc2: 'client/resources/img/img62_36s.png', imgSrc: 'client/resources/img/img59_36s.png', title: 'apple' }, |
56 |
- { imgSrc1: 'client/resources/img/img61_36s.png', imgSrc2: 'client/resources/img/img62_36s.png', imgSrc: 'client/resources/img/img58_36s.png', title: 'a'}, |
|
57 |
- { imgSrc1: 'client/resources/img/img61_36s.png', imgSrc2: 'client/resources/img/img62_36s.png', imgSrc: 'client/resources/img/img57_36s.png', title: 'a' }, |
|
58 |
- { imgSrc1: 'client/resources/img/img61_36s.png', imgSrc2: 'client/resources/img/img62_36s.png', imgSrc: 'client/resources/img/img56_36s.png', title: 'a' }, |
|
56 |
+ { imgSrc1: 'client/resources/img/img61_36s.png', imgSrc2: 'client/resources/img/img62_36s.png', imgSrc: 'client/resources/img/img58_36s.png', title: 'cloud'}, |
|
57 |
+ { imgSrc1: 'client/resources/img/img61_36s.png', imgSrc2: 'client/resources/img/img62_36s.png', imgSrc: 'client/resources/img/img57_36s.png', title: 'car' }, |
|
58 |
+ { imgSrc1: 'client/resources/img/img61_36s.png', imgSrc2: 'client/resources/img/img62_36s.png', imgSrc: 'client/resources/img/img56_36s.png', title: 'guitar' }, |
|
59 | 59 |
], |
60 | 60 |
selectedIndex: 0, |
61 | 61 |
timer: "00", |
--- client/views/pages/main/Chapter/Chapter2_8.vue
+++ client/views/pages/main/Chapter/Chapter2_8.vue
... | ... | @@ -1,78 +1,154 @@ |
1 | 1 |
<template> |
2 |
- <div id="Chapter1_1" class="content-wrap"> |
|
3 |
- <div style="margin: 30px 0px 50px"> |
|
4 |
- <router-link to="/MyPlan.page"> |
|
5 |
- <div class="logo mb25"><img src="../../../../resources/img/logo2.png" alt=""></div> |
|
6 |
- </router-link> |
|
7 |
- </div> |
|
8 |
- <div class="title-box mb25 flex align-center mt40"> |
|
9 |
- <span class="title mr40">1. Hello WORLD</span> |
|
10 |
- <span class="subtitle">my name is dd</span> |
|
11 |
- </div> |
|
12 |
- <div class="flex justify-between align-center"> |
|
13 |
- <div class="pre-btn" @click="goToPage('Chapter2_9')"><img src="../../../../resources/img/left.png" alt=""></div> |
|
14 |
- <div class="content title-box"> |
|
15 |
- <p class="title mt25 title-bg">step2</p> |
|
16 |
- <div class="flex align-center mb30"> |
|
17 |
- <p class="subtitle2 mr20">앗! 퍼즐이 망가졌어! 퍼즐을 맞춰 문장을 완성해보자!</p> |
|
18 |
- <!-- <button><img src="../../../../resources/img/btn10_s.png" alt=""> |
|
19 |
- </button> --> |
|
20 |
- </div> |
|
21 |
- |
|
22 |
- <div class="text-ct"> |
|
23 |
- <div class="dropGroup flex align-center justify-center mt30"> |
|
24 |
- <div style="position: relative;" > |
|
25 |
- <img src="../../../../resources/img/img28_s.png" alt=""> |
|
26 |
- <button style=" left: 30px; |
|
27 |
- top: 167px;"><img src="../../../../resources/img/img29_s_01.png" alt=""><p>a</p></button> |
|
28 |
- <button style=" right: 409px; |
|
29 |
- top: 133px;"><img src="../../../../resources/img/img30_s_01.png" alt=""><p>a</p></button> |
|
30 |
- <button style=" right: 46px; |
|
31 |
- top: 128px;"><img src="../../../../resources/img/img31_s_01.png" alt=""><p>a</p></button> |
|
32 |
- |
|
33 |
- </div> |
|
34 |
- </div> |
|
35 |
- <div class="dragGroup "> |
|
36 |
- <div class="flex justify-center" style="gap: 20px;"> |
|
37 |
- <article style=" right: 0; |
|
38 |
- top: 36%; "><button><img src="../../../../resources/img/img29_s.png" alt=""><p>a</p></button></article> |
|
39 |
- <article style=" left: 0; |
|
40 |
- top: 36%; "><button><img src="../../../../resources/img/img30_s.png" alt=""><p>a</p></button></article> |
|
41 |
- <article style="left: 50%; |
|
42 |
- top: 10%;"><button><img src="../../../../resources/img/img31_s.png" alt=""><p>a</p></button></article> |
|
43 |
- </div> |
|
44 |
- |
|
45 |
- </div> |
|
46 |
- </div> |
|
47 |
- </div> |
|
48 |
- <div class="next-btn" @click="goToPage('Chapter2_12')"><img src="../../../../resources/img/right.png" alt=""></div> |
|
49 |
- </div> |
|
2 |
+ <div id="Chapter1_1" class="content-wrap"> |
|
3 |
+ <div style="margin: 30px 0px 50px"> |
|
4 |
+ <router-link to="/MyPlan.page"> |
|
5 |
+ <div class="logo mb25"><img src="../../../../resources/img/logo2.png" alt=""></div> |
|
6 |
+ </router-link> |
|
50 | 7 |
</div> |
51 |
- </template> |
|
8 |
+ <div class="title-box mb25 flex align-center mt40"> |
|
9 |
+ <span class="title mr40">1. Hello WORLD</span> |
|
10 |
+ <span class="subtitle">my name is dd</span> |
|
11 |
+ </div> |
|
12 |
+ <div class="flex justify-between align-center"> |
|
13 |
+ <div class="pre-btn" @click="goToPage('Chapter2_9')"><img src="../../../../resources/img/left.png" alt=""></div> |
|
14 |
+ <div class="content title-box"> |
|
15 |
+ <p class="title mt25 title-bg">step2</p> |
|
16 |
+ <div class="flex align-center mb30"> |
|
17 |
+ <p class="subtitle2 mr20">앗! 퍼즐이 망가졌어! 퍼즐을 맞춰 문장을 완성해보자!</p> |
|
18 |
+ </div> |
|
19 |
+ |
|
20 |
+ <div class="text-ct"> |
|
21 |
+ <div class="dropGroup flex align-center justify-center mt30"> |
|
22 |
+ <div style="position: relative;"> |
|
23 |
+ <img src="../../../../resources/img/img28_s.png" alt=""> |
|
24 |
+ <button class="dropzone" data-answer="This" style="left: 30px; top: 167px;"> |
|
25 |
+ <img src="../../../../resources/img/img29_s_01.png" alt=""> |
|
26 |
+ <p style="font-size: 35px;">?</p> |
|
27 |
+ </button> |
|
28 |
+ <button class="dropzone" data-answer="is" style="right: 409px; top: 133px;"> |
|
29 |
+ <img src="../../../../resources/img/img30_s_01.png" alt=""> |
|
30 |
+ <p style="font-size: 35px;">?</p> |
|
31 |
+ </button> |
|
32 |
+ <button class="dropzone" data-answer="a pen" style="right: 46px; top: 128px;"> |
|
33 |
+ <img src="../../../../resources/img/img31_s_01.png" alt=""> |
|
34 |
+ <p style="font-size: 35px;">?</p> |
|
35 |
+ </button> |
|
36 |
+ </div> |
|
37 |
+ </div> |
|
38 |
+ <div class="dragGroup flex justify-center" style="gap: 20px;"> |
|
39 |
+ <article style="right: 0; top: 36%;"> |
|
40 |
+ <button class="draggable" data-text="This" draggable="true"> |
|
41 |
+ <img src="../../../../resources/img/img29_s.png" alt=""> |
|
42 |
+ <p style="font-size: 35px;">This</p> |
|
43 |
+ </button> |
|
44 |
+ </article> |
|
45 |
+ <article style="left: 0; top: 36%;"> |
|
46 |
+ <button class="draggable" data-text="is" draggable="true"> |
|
47 |
+ <img src="../../../../resources/img/img30_s.png" alt=""> |
|
48 |
+ <p style="font-size: 35px;">is</p> |
|
49 |
+ </button> |
|
50 |
+ </article> |
|
51 |
+ <article style="left: 50%; top: 10%;"> |
|
52 |
+ <button class="draggable" data-text="a pen" draggable="true"> |
|
53 |
+ <img src="../../../../resources/img/img31_s.png" alt=""> |
|
54 |
+ <p style="font-size: 35px;">a pen</p> |
|
55 |
+ </button> |
|
56 |
+ </article> |
|
57 |
+ </div> |
|
58 |
+ </div> |
|
59 |
+ </div> |
|
60 |
+ <div class="next-btn" @click="goToPage('Chapter2_12')"><img src="../../../../resources/img/right.png" alt=""></div> |
|
61 |
+ </div> |
|
62 |
+ </div> |
|
63 |
+</template> |
|
64 |
+ |
|
52 | 65 |
|
53 |
- <script> |
|
54 |
- export default { |
|
55 |
- data() { |
|
56 |
- return { |
|
66 |
+<script> |
|
67 |
+export default { |
|
68 |
+ data() { |
|
69 |
+ return { |
|
70 |
+ draggedElement: null, // 현재 드래그 중인 요소 |
|
71 |
+ }; |
|
72 |
+ }, |
|
73 |
+ methods: { |
|
74 |
+ goToPage(page) { |
|
75 |
+ this.$router.push({ name: page }); |
|
76 |
+ }, |
|
77 |
+ handleDragStart(event) { |
|
78 |
+ this.draggedElement = event.target; // 드래그한 요소 저장 |
|
79 |
+ event.dataTransfer.setData('text/plain', event.target.dataset.text); |
|
80 |
+ event.target.style.cursor = 'grabbing'; // 드래그 중 커서 변경 |
|
81 |
+ }, |
|
82 |
+ handleDragEnd(event) { |
|
83 |
+ event.target.style.cursor = 'grab'; // 드래그 종료 후 커서 변경 |
|
84 |
+ }, |
|
85 |
+ handleDragOver(event) { |
|
86 |
+ event.preventDefault(); // 드롭 허용 |
|
87 |
+ }, |
|
88 |
+ handleDrop(event) { |
|
89 |
+ event.preventDefault(); |
|
90 |
+ const dropZone = event.target.closest('button.dropzone'); |
|
91 |
+ const draggedText = this.draggedElement ? this.draggedElement.dataset.text : ''; |
|
92 |
+ |
|
93 |
+ if (dropZone) { |
|
94 |
+ const expectedText = dropZone.dataset.answer; |
|
95 |
+ if (draggedText === expectedText) { |
|
96 |
+ // 드래그된 텍스트가 정답인 경우 |
|
97 |
+ const rect = dropZone.getBoundingClientRect(); |
|
98 |
+ // 버튼의 이미지 및 텍스트를 드롭존에 맞게 설정 |
|
99 |
+ dropZone.querySelector('p').textContent = draggedText; |
|
100 |
+ dropZone.querySelector('img').style.display = 'none'; // 기존 이미지 숨기기 |
|
101 |
+ |
|
102 |
+ // 드래그된 버튼의 이미지와 텍스트를 드롭존에 복사 |
|
103 |
+ const draggedImage = this.draggedElement.querySelector('img').cloneNode(); |
|
104 |
+ const draggedTextElement = this.draggedElement.querySelector('p').cloneNode(); |
|
105 |
+ |
|
106 |
+ // 드롭존에 이미지 및 텍스트를 추가 |
|
107 |
+ dropZone.appendChild(draggedImage); |
|
108 |
+ dropZone.appendChild(draggedTextElement); |
|
109 |
+ |
|
110 |
+ // 드래그한 요소 숨기기 |
|
111 |
+ this.draggedElement.style.display = 'none'; |
|
112 |
+ } else { |
|
113 |
+ // 정답이 아닌 경우 |
|
114 |
+ alert('오답입니다!'); // 오답 경고 메시지 |
|
115 |
+ } |
|
57 | 116 |
} |
58 |
- }, |
|
59 |
- methods: { |
|
60 |
- goToPage(page) { |
|
61 |
- this.$router.push({ name: page }); |
|
62 |
- } |
|
63 |
- }, |
|
64 |
- watch: { |
|
65 |
- |
|
66 |
- }, |
|
67 |
- computed: { |
|
68 |
- |
|
69 |
- }, |
|
70 |
- components: { |
|
71 |
- }, |
|
72 |
- mounted() { |
|
73 |
- |
|
117 |
+ |
|
118 |
+ this.draggedElement = null; // 드래그 상태 초기화 |
|
74 | 119 |
} |
120 |
+ }, |
|
121 |
+ mounted() { |
|
122 |
+ // 드래그 가능한 요소에 드래그 시작 및 종료 이벤트 추가 |
|
123 |
+ document.querySelectorAll('.draggable').forEach(button => { |
|
124 |
+ button.addEventListener('dragstart', this.handleDragStart); |
|
125 |
+ button.addEventListener('dragend', this.handleDragEnd); |
|
126 |
+ }); |
|
127 |
+ |
|
128 |
+ // 드롭 가능한 영역에 드래그 오버 및 드롭 이벤트 추가 |
|
129 |
+ document.querySelectorAll('.dropzone').forEach(zone => { |
|
130 |
+ zone.addEventListener('dragover', this.handleDragOver); |
|
131 |
+ zone.addEventListener('drop', this.handleDrop); |
|
132 |
+ }); |
|
75 | 133 |
} |
76 |
- </script> |
|
77 |
- <style scoped> |
|
134 |
+} |
|
135 |
+</script> |
|
136 |
+ |
|
137 |
+ |
|
138 |
+ |
|
139 |
+<style scoped> |
|
140 |
+.draggable { |
|
141 |
+ cursor: grab; |
|
142 |
+} |
|
143 |
+ |
|
144 |
+.draggable:active { |
|
145 |
+ cursor: grabbing; |
|
146 |
+} |
|
147 |
+ |
|
148 |
+ |
|
149 |
+ |
|
150 |
+.dropzone img { |
|
151 |
+ display: block; /* 이미지가 항상 보이도록 설정 */ |
|
152 |
+} |
|
153 |
+ |
|
78 | 154 |
</style>(No newline at end of file) |
--- client/views/pages/main/Chapter/Chapter2_9.vue
+++ client/views/pages/main/Chapter/Chapter2_9.vue
... | ... | @@ -1,5 +1,10 @@ |
1 | 1 |
<template> |
2 | 2 |
<div id="Chapter1_1" class="content-wrap"> |
3 |
+ <div style="margin: 30px 0px 50px"> |
|
4 |
+ <router-link to="/MyPlan.page"> |
|
5 |
+ <div class="logo mb25"><img src="../../../../resources/img/logo2.png" alt=""></div> |
|
6 |
+ </router-link> |
|
7 |
+ </div> |
|
3 | 8 |
<div class="title-box mb25 flex align-center mt40"> |
4 | 9 |
<span class="title mr40">1. Hello WORLD</span> |
5 | 10 |
<span class="subtitle">my name is dd</span> |
... | ... | @@ -24,9 +29,9 @@ |
24 | 29 |
</div> |
25 | 30 |
<div class="flex align-start"> |
26 | 31 |
<div> |
27 |
- <h3>sidewalk</h3> |
|
32 |
+ <h3>mountain</h3> |
|
28 | 33 |
<div class="flex align-center mt10"> |
29 |
- <span class="title1">보도</span> |
|
34 |
+ <span class="title1">산</span> |
|
30 | 35 |
</div> |
31 | 36 |
</div> |
32 | 37 |
</div> |
... | ... | @@ -37,9 +42,9 @@ |
37 | 42 |
</div> |
38 | 43 |
<div class="flex align-start"> |
39 | 44 |
<div> |
40 |
- <h3>sidewalk</h3> |
|
45 |
+ <h3>cat</h3> |
|
41 | 46 |
<div class="flex align-center mt10"> |
42 |
- <span class="title1">보도</span> |
|
47 |
+ <span class="title1">고양이</span> |
|
43 | 48 |
</div> |
44 | 49 |
</div> |
45 | 50 |
</div> |
... | ... | @@ -52,9 +57,9 @@ |
52 | 57 |
</div> |
53 | 58 |
<div class="flex align-start"> |
54 | 59 |
<div> |
55 |
- <h3>sidewalk</h3> |
|
60 |
+ <h3>watermelon</h3> |
|
56 | 61 |
<div class="flex align-center mt10"> |
57 |
- <span class="title1">보도</span> |
|
62 |
+ <span class="title1">수박</span> |
|
58 | 63 |
</div> |
59 | 64 |
</div> |
60 | 65 |
</div> |
... | ... | @@ -65,7 +70,7 @@ |
65 | 70 |
</div> |
66 | 71 |
<div class="flex align-start"> |
67 | 72 |
<div> |
68 |
- <h3>sidewalk</h3> |
|
73 |
+ <h3>america</h3> |
|
69 | 74 |
<div class="flex align-center mt10"> |
70 | 75 |
<span class="title1">보도</span> |
71 | 76 |
</div> |
--- client/views/pages/main/Dashboard.vue
+++ client/views/pages/main/Dashboard.vue
... | ... | @@ -278,11 +278,8 @@ |
278 | 278 |
</div> |
279 | 279 |
</div> |
280 | 280 |
</article> |
281 |
- |
|
282 | 281 |
</div> |
283 |
- |
|
284 | 282 |
</div> |
285 |
- |
|
286 | 283 |
</template> |
287 | 284 |
|
288 | 285 |
<script> |
+++ client/views/pages/main/Main_c.vue
... | ... | @@ -0,0 +1,27 @@ |
1 | +<template> | |
2 | + <router-view /> | |
3 | + <Footer></Footer> | |
4 | +</template> | |
5 | + | |
6 | +<script> | |
7 | +import Footer from "../../layout/Footer.vue"; | |
8 | + | |
9 | +export default { | |
10 | + data() { | |
11 | + return {}; | |
12 | + }, | |
13 | + methods: {}, | |
14 | + watch: {}, | |
15 | + computed: {}, | |
16 | + components: { | |
17 | + // Header: Header, | |
18 | + // Menu: Menu, | |
19 | + Footer: Footer, | |
20 | + // Side_t:Side_t, | |
21 | + }, | |
22 | + mounted() { | |
23 | + console.log("main mounted"); | |
24 | + }, | |
25 | +}; | |
26 | +</script> | |
27 | +<style scoped></style> |
--- client/views/pages/teacher/C_Textbook.vue
+++ client/views/pages/teacher/C_Textbook.vue
... | ... | @@ -117,20 +117,23 @@ |
117 | 117 |
} |
118 | 118 |
}, |
119 | 119 |
bookDataSearch() { |
120 |
- const vm = this; |
|
121 |
- const searchPayload = { |
|
122 |
- keyword: vm.searchKeyword, |
|
123 |
- }; |
|
124 |
- axios.post("/book/search.json", searchPayload) |
|
125 |
- .then(function (res) { |
|
126 |
- console.log("bookDataSearch - response : ", res.data); |
|
127 |
- vm.searchResults = res.data.result; // 검색 결과 저장 |
|
128 |
- }) |
|
129 |
- .catch(function (error) { |
|
130 |
- console.log("bookSearch - error : ", error); |
|
131 |
- alert("책이 존재하지 않습니다."); |
|
132 |
- }); |
|
133 |
- }, |
|
120 |
+ const vm = this; |
|
121 |
+ console.log("Search keyword:", vm.searchKeyword); |
|
122 |
+ |
|
123 |
+ const searchPayload = { |
|
124 |
+ keyword: vm.searchKeyword, |
|
125 |
+ }; |
|
126 |
+ |
|
127 |
+ axios.post("/book/searchBookInClass.json", searchPayload) |
|
128 |
+ .then(function (res) { |
|
129 |
+ console.log("bookDataSearch - response : ", res.data); |
|
130 |
+ vm.searchResults = res.data.result; // 검색 결과 저장 |
|
131 |
+ }) |
|
132 |
+ .catch(function (error) { |
|
133 |
+ console.log("bookSearch - error : ", error); |
|
134 |
+ alert("책이 존재하지 않습니다."); |
|
135 |
+ }); |
|
136 |
+}, |
|
134 | 137 |
stdClassesSelectList() { |
135 | 138 |
const vm = this; |
136 | 139 |
axios({ |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?