Skip to content

Commit 8b675b5

Browse files
authored
Merge branch 'development' into translations_src-assets-locales-ja-json--development_zh_TW
2 parents 8624a81 + e751665 commit 8b675b5

34 files changed

+282862
-135
lines changed

nuxt-i18n.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ const defaultLocale = 'ja'
22

33
const options = {
44
strategy: 'prefix_except_default',
5+
seo: false,
56
detectBrowserLanguage: false,
67
defaultLocale,
78
vueI18n: {

nuxt.config.js

Lines changed: 2 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const environment = process.env.NODE_ENV || 'development'
55

66
export default {
77
telemetry: false,
8-
ssr: false,
8+
ssr: true,
99
srcDir: 'src',
1010
/*
1111
** Headers of the page
@@ -14,63 +14,16 @@ export default {
1414
htmlAttrs: {
1515
prefix: 'og: http://ogp.me/ns#',
1616
},
17-
title: 'おうちで時間割',
1817
meta: [
1918
{ charset: 'utf-8' },
2019
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
21-
{
22-
hid: 'keyword',
23-
name: 'keyword',
24-
content: 'CodeforJapan, おうちで時間割, デジタル, 学び, 今後の学習',
25-
},
2620
{
2721
hid: 'author',
2822
name: 'author',
2923
content: 'Code for Japan',
3024
},
31-
{
32-
hid: 'og:site_name',
33-
property: 'og:site_name',
34-
content: 'おうちで時間割',
35-
},
36-
{
37-
hid: 'og:url',
38-
property: 'og:url',
39-
content: `https://app.studyathome.jp/`,
40-
},
41-
{
42-
hid: 'og:title',
43-
property: 'og:title',
44-
content: 'おうちで時間割',
45-
},
46-
{
47-
hid: 'og:description',
48-
property: 'og:description',
49-
content:
50-
'子どもの学びにデジタルの活用を - 臨時休校期間と今後の学習に向けて 簡単に楽しく学べる環境を今だから、みんなでつくろう。',
51-
},
52-
{
53-
hid: 'apple-mobile-web-app-title',
54-
name: 'apple-mobile-web-app-title',
55-
content: 'おうちで時間割',
56-
},
57-
{
58-
hid: 'description',
59-
name: 'description',
60-
content:
61-
'子どもの学びにデジタルの活用を - 臨時休校期間と今後の学習に向けて 簡単に楽しく学べる環境を今だから、みんなでつくろう。',
62-
},
6325
{ hid: 'og:type', property: 'og:type', content: 'website' },
64-
{
65-
hid: 'og:image',
66-
property: 'og:image',
67-
content: 'https://app.studyathome.jp/ogp.png',
68-
},
69-
{
70-
hid: 'twitter:image',
71-
name: 'twitter:image',
72-
content: 'https://app.studyathome.jp/ogp.png',
73-
},
26+
{ name: 'twitter:card', content: 'summary_large_image' },
7427
],
7528
link: [
7629
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' },

src/assets/locales/en.json

Lines changed: 42 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,19 @@
88
"login": "Sign In",
99
"logout": "Sign Out",
1010
"ok": "OK",
11-
"save": "Save"
11+
"save": "Save",
12+
"change": "Modify",
13+
"verify": "Verification"
1214
},
1315
"error": {
1416
"default": "An error occurred, please try again later."
1517
}
1618
},
19+
"calender": {
20+
"prev_week": "Previous week",
21+
"next_week": "Next week",
22+
"to_today": "Move to today"
23+
},
1724
"footer": {
1825
"about": "About StayAtHome",
1926
"contact": "Contact Us",
@@ -40,7 +47,8 @@
4047
"password": "Password",
4148
"password_rules": "Password Must be At Least 6 Characters",
4249
"password_not_acceptable": "The Password Does Not Meet the Password Requirements",
43-
"password_not_same": "Inconsistent Passwords"
50+
"password_not_same": "Inconsistent Passwords",
51+
"verification_code":"Verification code"
4452
}
4553
},
4654
"agree_terms": {
@@ -69,15 +77,15 @@
6977
"date": "Date Setting",
7078
"time": "Time Setting",
7179
"subject_label_color": "Label Color",
72-
"video_keyword": "(Optional function) Video Search",
80+
"video_keyword": "Optional feature: Video search of {source}",
7381
"video_url": "Reference Video URL",
7482
"video_thumbnail": "Video Thumbnail/Caption Display",
7583
"textbook_page": "Textbook Page",
7684
"material_title": "Learning Material Title",
7785
"material_url": "Learning Material URL"
7886
},
7987
"placeholder": {
80-
"video_keyword": "EX) Science"
88+
"video_keyword": "Keyword"
8189
},
8290
"required": "*Items Marked with Are Required",
8391
"search_videos": {
@@ -134,7 +142,9 @@
134142
"label": "To the Teacher Who Made the Timetable",
135143
"buttons": {
136144
"signup": "Register As A User",
137-
"login": "Log In"
145+
"login": "Log In",
146+
"registerLessons": "Create Timetable",
147+
"logout": "Sign Out"
138148
}
139149
}
140150
},
@@ -145,10 +155,28 @@
145155
"no_classes": "There Are No Editable Courses. Please Register Your Course."
146156
},
147157
"user_edit_user_data": {
148-
"title": "Change User Information",
158+
"title": "Change User Information"
159+
},
160+
"user_edit_user_name": {
161+
"title": "Change name (display name)",
162+
"labels": {
163+
"current_nickname": "Current name (display name)",
164+
"new_nickname": "Name to be used (display name)"
165+
}
166+
},
167+
"user_edit_user_email": {
168+
"title": "Change email address",
149169
"labels": {
150-
"new_password": "Change Password",
151-
"new_password_confirm": "Change Password (for confirmation)"
170+
"current_email": "Current email address",
171+
"new_email": "Email address to be used"
172+
}
173+
},
174+
"user_edit_user_password": {
175+
"title": "Change password",
176+
"labels": {
177+
"current_password": "Please enter your current password",
178+
"new_password": "New password",
179+
"new_password_confirm": "Password (for confirmation)"
152180
}
153181
},
154182
"user_login": {
@@ -192,6 +220,12 @@
192220
"go_back_to_top": "Back to Top",
193221
"message": "A Confirmation Email Has Been Sent to the Email Address You Entered. Please Authenticate from the URL Described in the Email."
194222
}
223+
},
224+
"user_verify": {
225+
"title": "Confirm email address"
226+
},
227+
"user_verify_new_email": {
228+
"title": "Confirm changing email address"
195229
}
196230
}
197231
}

src/assets/locales/ja.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
{
2+
"title": "おうちで時間割",
3+
"description": "子どもの学びにデジタルの活用を - 臨時休校期間と今後の学習に向けて 簡単に楽しく学べる環境を今だから、みんなでつくろう。",
24
"common": {
35
"general": {
46
"buttons": {
@@ -77,7 +79,7 @@
7779
"date": "日付設定",
7880
"time": "時間設定",
7981
"subject_label_color": "ラベル色",
80-
"video_keyword": "オプション機能:{source}の動画検索",
82+
"video_keyword": "オプション機能:動画検索",
8183
"video_url": "参考動画URL",
8284
"video_thumbnail": "動画サムネイル・キャプション表示",
8385
"textbook_page": "教科書ページ",
@@ -90,7 +92,7 @@
9092
"required": "*マークのあるものは必須項目です",
9193
"search_videos": {
9294
"search": "検索",
93-
"search_result": "{source}の動画検索結果",
95+
"search_result": "動画検索結果",
9496
"add_to_video_urls": "参考動画URLに登録する"
9597
}
9698
},

src/assets/locales/zh_TW.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"title": "在家學習時間表",
3-
"description": "為孩子的學習活用數位轉型 - 不論是現在的停課不停學或者是未來的線上學習,就讓我們一起建構一個可以讓孩子輕鬆愉快學習的環境吧。",
3+
"description": "「在家學習時間表」是你的數位學習好夥伴!我們創造了線上學習環境,讓你在家也可以輕鬆的上線學習,不管是老師或學生,歡迎一起來發掘更多上課的樂趣!",
44
"common": {
55
"general": {
66
"buttons": {
@@ -58,7 +58,7 @@
5858
"agree": "我同意使用條款"
5959
},
6060
"buttons": {
61-
"agree": "前往註冊",
61+
"agree": "繼續註冊",
6262
"disagree": "不同意"
6363
}
6464
},

src/components/BaseInputField.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ export default Vue.extend({
142142
},
143143
computed: {
144144
prependIconColor(): string {
145-
const classIdPattern = /^[あ-]{6}$/
145+
const classIdPattern = /^[あ-んa-zㄅ-ㄩ]{6}$/
146146
if (this.type === 'classId') {
147147
if (!this.value || !classIdPattern.test(this.value)) return '#C01B61'
148148
}
@@ -162,7 +162,7 @@ export default Vue.extend({
162162
return '#BDBDBD'
163163
},
164164
textFieldColor(): string {
165-
const classIdPattern = /^[あ-]{6}$/
165+
const classIdPattern = /^[あ-んa-zㄅ-ㄩ]{6}$/
166166
if (this.type === 'classId') {
167167
if (!this.value || !classIdPattern.test(this.value)) return '#C01B61'
168168
}
@@ -179,7 +179,7 @@ export default Vue.extend({
179179
return '#0071C2'
180180
},
181181
prependIcon(): string {
182-
const classIdPattern = /^[あ-]{6}$/
182+
const classIdPattern = /^[あ-んa-zㄅ-ㄩ]{6}$/
183183
if (this.type === 'classId') {
184184
if (!this.value || !classIdPattern.test(this.value))
185185
return 'mdi-alert-circle'

src/components/EditLessonScreen.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ import EditLessonScreenInner2 from '@/components/EditLessonScreenInner2.vue'
5959
import EditLessonScreenInner3 from '@/components/EditLessonScreenInner3.vue'
6060
import EditLessonScreenInner4 from '@/components/EditLessonScreenInner4.vue'
6161
import classData from '@/types/store/classData'
62+
import { removeEmpty } from '@/utils/remove'
6263
6364
type LessonDataType = {
6465
lessonId: string
@@ -234,7 +235,7 @@ export default Vue.extend({
234235
try {
235236
const lessonData: classData.Lesson = await this.buildLessonData()
236237
await vxm.classData.changeLesson({
237-
editData: lessonData,
238+
editData: removeEmpty(lessonData),
238239
id: this.lessonData.lessonId,
239240
})
240241
await this.$emit('collapse')

0 commit comments

Comments
 (0)