File tree Expand file tree Collapse file tree 6 files changed +58
-12
lines changed Expand file tree Collapse file tree 6 files changed +58
-12
lines changed Original file line number Diff line number Diff line change 24
24
"title" : " Tittle" ,
25
25
"subject_name" : " Course Tittle" ,
26
26
"textbook" : " Course Book" ,
27
- "goal" : " Objective of Learning " ,
28
- "description" : " Detail " ,
27
+ "goal" : " Target " ,
28
+ "description" : " Content " ,
29
29
"videos" : " Reference Video" ,
30
30
"materials" : " Learning Materials"
31
31
},
69
69
"date" : " Date Setting" ,
70
70
"time" : " Time Setting" ,
71
71
"subject_label_color" : " Label Color" ,
72
- "description" : " Detailed Description" ,
73
72
"video_keyword" : " (Optional function) Video Search" ,
74
73
"video_url" : " Reference Video URL" ,
75
74
"video_thumbnail" : " Video Thumbnail/Caption Display" ,
80
79
"placeholders" : {
81
80
"video_keyword" : " EX) Science"
82
81
},
83
- "required" : " *Items Marked with Are Required"
82
+ "required" : " *Items Marked with Are Required" ,
83
+ "search_videos" : {
84
+ "search" : " Search" ,
85
+ "search_result" : " Video Search Results of {source}" ,
86
+ "add_to_video_urls" : " Reference Video URL"
87
+ }
84
88
},
85
89
"editing_visibility_dialog" : {
86
90
"title" : {
Original file line number Diff line number Diff line change 69
69
"date" : " 日付設定" ,
70
70
"time" : " 時間設定" ,
71
71
"subject_label_color" : " ラベル色" ,
72
- "description" : " 内容(ないよう)" ,
73
72
"video_keyword" : " (オプション機能)動画検索" ,
74
73
"video_url" : " 参考動画URL" ,
75
74
"video_thumbnail" : " 動画サムネイル・キャプション表示" ,
80
79
"placeholders" : {
81
80
"video_keyword" : " 例) 理科"
82
81
},
83
- "required" : " *マークのあるものは必須項目です"
82
+ "required" : " *マークのあるものは必須項目です" ,
83
+ "search_videos" : {
84
+ "search" : " 検索する" ,
85
+ "search_result" : " {source}の動画検索結果" ,
86
+ "add_to_video_urls" : " 参考動画URLに登録する"
87
+ }
84
88
},
85
89
"editing_visibility_dialog" : {
86
90
"title" : {
Original file line number Diff line number Diff line change 6
6
/>
7
7
<editor-textarea
8
8
v-model =" tempFormData.description"
9
- :title =" $t('components.editing_screen .labels.description')"
9
+ :title =" $t('common.lesson_data .labels.description')"
10
10
/>
11
11
</div >
12
12
</template >
Original file line number Diff line number Diff line change 13
13
:placeholders =" $t('components.editing_screen.placeholder.video_keyword')"
14
14
/>
15
15
16
- <button class =" Button" @click =" handleVideoSearchWord" >検索する</button >
16
+ <button class =" Button" @click =" handleVideoSearchWord" >
17
+ {{ $t('components.editing_screen.search_videos.search') }}
18
+ </button >
17
19
18
20
<div v-if =" videoSearchResult.length > 0" class =" SearchResult" >
19
- <h3 >NHK For Schoolの動画検索結果</h3 >
21
+ <h3 >
22
+ {{
23
+ $t('components.editing_screen.search_videos.search_result', {
24
+ source: 'NHK For School',
25
+ })
26
+ }}
27
+ </h3 >
20
28
<ul >
21
29
<li v-for =" (v, i) in displayLists" :key =" i" class =" SearchResultItem" >
22
30
<component
42
50
class =" Button"
43
51
@click =" registerVideoUrl(v.videoUrl)"
44
52
>
45
- 参考動画URLに登録する
53
+ {{
54
+ $t('components.editing_screen.search_videos.add_to_video_urls')
55
+ }}
46
56
</button >
47
57
</li >
48
58
</ul >
Original file line number Diff line number Diff line change @@ -148,7 +148,7 @@ type DataType = {
148
148
classData: typeof vxm .classData
149
149
editingMode: boolean
150
150
editingVisibilityMode: boolean
151
- editPageValue: object
151
+ editPageValue: editPageValueType
152
152
editVisibilityDialogValue: object
153
153
}
154
154
@@ -158,6 +158,25 @@ type Computed = {
158
158
lessonsGroupByPeriod: LessonsGroupedBy
159
159
}
160
160
161
+ type editPageValueType = {
162
+ isHidden: boolean
163
+ lessonId: string
164
+ date: string
165
+ startTime: string
166
+ endTime: string
167
+ title: string
168
+ subjectName: string
169
+ subjectColor: string
170
+ goal: string
171
+ description: string
172
+ videoUrl: string
173
+ videoTitle: string
174
+ videoThumbnailUrl: string
175
+ pages: string
176
+ materialsTitle: string
177
+ materialsUrl: string
178
+ }
179
+
161
180
const editPageValueDefault = {
162
181
isHidden: false ,
163
182
lessonId: ' ' ,
@@ -218,6 +237,13 @@ export default Vue.extend({
218
237
this .resetEditLessonScreen ()
219
238
},
220
239
toggleScreen(): void {
240
+ const date =
241
+ this .editPageValue .date !== ' '
242
+ ? this .editPageValue .date
243
+ : dayjs (vxm .app .currentDate ).format (' YYYY-MM-DD' )
244
+ this .editPageValue = Object .assign ({}, this .editPageValue , {
245
+ date ,
246
+ })
221
247
this .editingMode = ! this .editingMode
222
248
},
223
249
closeModal(): void {
Original file line number Diff line number Diff line change 20
20
<v-radio :value =" item.classId" >
21
21
<template v-slot :label >
22
22
<span class =" ClassList-Label" >
23
- {{ item.schoolName }} {{ item.className }}
23
+ {{ item.schoolName }} {{ item.className }} ({{
24
+ item.classId
25
+ }})
24
26
</span >
25
27
</template >
26
28
</v-radio >
You can’t perform that action at this time.
0 commit comments