Skip to content

Commit 5fd8c5b

Browse files
Merge branch 'development' into translations_src-assets-locales-ja-json--development_zh_TW
2 parents 9020fb4 + 09eca63 commit 5fd8c5b

File tree

6 files changed

+58
-12
lines changed

6 files changed

+58
-12
lines changed

src/assets/locales/en.json

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
"title": "Tittle",
2525
"subject_name": "Course Tittle",
2626
"textbook": "Course Book",
27-
"goal": "Objective of Learning",
28-
"description": "Detail",
27+
"goal": "Target",
28+
"description": "Content",
2929
"videos": "Reference Video",
3030
"materials": "Learning Materials"
3131
},
@@ -69,7 +69,6 @@
6969
"date": "Date Setting",
7070
"time": "Time Setting",
7171
"subject_label_color": "Label Color",
72-
"description": "Detailed Description",
7372
"video_keyword": "(Optional function) Video Search",
7473
"video_url": "Reference Video URL",
7574
"video_thumbnail": "Video Thumbnail/Caption Display",
@@ -80,7 +79,12 @@
8079
"placeholders": {
8180
"video_keyword": "EX) Science"
8281
},
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+
}
8488
},
8589
"editing_visibility_dialog": {
8690
"title": {

src/assets/locales/ja.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@
6969
"date": "日付設定",
7070
"time": "時間設定",
7171
"subject_label_color": "ラベル色",
72-
"description": "内容(ないよう)",
7372
"video_keyword": "(オプション機能)動画検索",
7473
"video_url": "参考動画URL",
7574
"video_thumbnail": "動画サムネイル・キャプション表示",
@@ -80,7 +79,12 @@
8079
"placeholders": {
8180
"video_keyword": "例) 理科"
8281
},
83-
"required": "*マークのあるものは必須項目です"
82+
"required": "*マークのあるものは必須項目です",
83+
"search_videos": {
84+
"search": "検索する",
85+
"search_result": "{source}の動画検索結果",
86+
"add_to_video_urls": "参考動画URLに登録する"
87+
}
8488
},
8589
"editing_visibility_dialog": {
8690
"title": {

src/components/EditLessonScreenInner2.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
/>
77
<editor-textarea
88
v-model="tempFormData.description"
9-
:title="$t('components.editing_screen.labels.description')"
9+
:title="$t('common.lesson_data.labels.description')"
1010
/>
1111
</div>
1212
</template>

src/components/EditLessonScreenInner3.vue

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,18 @@
1313
:placeholders="$t('components.editing_screen.placeholder.video_keyword')"
1414
/>
1515

16-
<button class="Button" @click="handleVideoSearchWord">検索する</button>
16+
<button class="Button" @click="handleVideoSearchWord">
17+
{{ $t('components.editing_screen.search_videos.search') }}
18+
</button>
1719

1820
<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>
2028
<ul>
2129
<li v-for="(v, i) in displayLists" :key="i" class="SearchResultItem">
2230
<component
@@ -42,7 +50,9 @@
4250
class="Button"
4351
@click="registerVideoUrl(v.videoUrl)"
4452
>
45-
参考動画URLに登録する
53+
{{
54+
$t('components.editing_screen.search_videos.add_to_video_urls')
55+
}}
4656
</button>
4757
</li>
4858
</ul>

src/pages/edit/index.vue

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ type DataType = {
148148
classData: typeof vxm.classData
149149
editingMode: boolean
150150
editingVisibilityMode: boolean
151-
editPageValue: object
151+
editPageValue: editPageValueType
152152
editVisibilityDialogValue: object
153153
}
154154
@@ -158,6 +158,25 @@ type Computed = {
158158
lessonsGroupByPeriod: LessonsGroupedBy
159159
}
160160
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+
161180
const editPageValueDefault = {
162181
isHidden: false,
163182
lessonId: '',
@@ -218,6 +237,13 @@ export default Vue.extend({
218237
this.resetEditLessonScreen()
219238
},
220239
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+
})
221247
this.editingMode = !this.editingMode
222248
},
223249
closeModal(): void {

src/pages/user/classlist.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@
2020
<v-radio :value="item.classId">
2121
<template v-slot:label>
2222
<span class="ClassList-Label">
23-
{{ item.schoolName }} {{ item.className }}
23+
{{ item.schoolName }} {{ item.className }} ({{
24+
item.classId
25+
}})
2426
</span>
2527
</template>
2628
</v-radio>

0 commit comments

Comments
 (0)