Skip to content

Commit c9c124c

Browse files
authored
Merge pull request #618 from codeforjapan/development
v1.1.0 Release
2 parents 35ffae4 + 3065f28 commit c9c124c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+5214
-5565
lines changed

.eslintrc.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,20 @@ module.exports = {
55
'@nuxtjs/eslint-config-typescript',
66
'plugin:prettier/recommended',
77
'prettier',
8-
'prettier/vue',
98
],
109
rules: {
1110
'require-await': 'off',
1211
'nuxt/no-cjs-in-config': 'off',
1312
'vue/max-attributes-per-line': 'off',
13+
'vue/experimental-script-setup-vars': 'off',
14+
'vue/no-arrow-functions-in-watch': 'off',
15+
'vue/no-custom-modifiers-on-v-model': 'off',
16+
'vue/no-dupe-v-else-if': 'off',
17+
'vue/no-multiple-template-root': 'off',
18+
'vue/no-mutating-props': 'off',
19+
'vue/no-v-for-template-key': 'off',
20+
'vue/no-v-model-argument': 'off',
21+
'vue/one-component-per-file': 'off',
1422
'vue/html-self-closing': [
1523
'error',
1624
{

.github/dependabot.yml

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: npm
4+
directory: "/"
5+
schedule:
6+
interval: daily
7+
time: "20:00"
8+
open-pull-requests-limit: 10
9+
ignore:
10+
- dependency-name: "@types/node"
11+
versions:
12+
- 14.14.22
13+
- 14.14.25
14+
- 14.14.27
15+
- 14.14.28
16+
- 14.14.31
17+
- 14.14.32
18+
- 14.14.33
19+
- 14.14.34
20+
- 14.14.35
21+
- 14.14.36
22+
- 14.14.37
23+
- 14.14.39
24+
- 14.14.41
25+
- 15.0.0
26+
- dependency-name: "@babel/core"
27+
versions:
28+
- 7.12.10
29+
- 7.12.13
30+
- 7.12.16
31+
- 7.12.17
32+
- 7.13.1
33+
- 7.13.10
34+
- 7.13.14
35+
- 7.13.15
36+
- 7.13.16
37+
- 7.13.8
38+
- dependency-name: eslint-config-prettier
39+
versions:
40+
- 7.2.0
41+
- 8.0.0
42+
- 8.1.0
43+
- 8.2.0
44+
- dependency-name: nuxt-i18n
45+
versions:
46+
- 6.18.0
47+
- 6.19.0
48+
- 6.20.0
49+
- 6.20.1
50+
- 6.20.2
51+
- 6.20.3
52+
- 6.20.4
53+
- 6.20.6
54+
- 6.21.0
55+
- 6.21.1
56+
- 6.22.1
57+
- 6.22.2
58+
- 6.22.3
59+
- 6.23.0
60+
- 6.24.0
61+
- 6.25.0
62+
- dependency-name: y18n
63+
versions:
64+
- 4.0.1
65+
- dependency-name: "@types/jest"
66+
versions:
67+
- 26.0.20
68+
- 26.0.21
69+
- 26.0.22
70+
- dependency-name: node-notifier
71+
versions:
72+
- 8.0.1
73+
- dependency-name: lint-staged
74+
versions:
75+
- 10.5.3

.husky/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_

.husky/pre-commit

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
yarn lint-staged

CODE_OF_CONDUCT.md

Lines changed: 48 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,50 @@
1-
# 行動規範 (Code of Conduct)
1+
# Code of Conduct
22

3-
version 0.1 2020/05/15
3+
この文書は、[Code for America の Code of Conduct](https://github.com/codeforamerica/codeofconduct)を日本語訳し、若干の改変を加えたものです。
44

5-
当リポジトリの行動規範はCode For Japanの行動規範と同様です。
6-
[codeforjapan/codeofconduct](https://github.com/codeforjapan/codeofconduct)
5+
## Code for Japan の行動規範
6+
7+
Code for Japan コミュニティメンバーは、Code for ネットワークの行動、イベント、デジタルフォーラムなどにおいて、以下の状況が保障されることを期待します。
8+
9+
1. 全ての参加者に対し安全で、敬意が示された環境です
10+
2. 人々が自由かつ完全に個人の個性を表現することができる場所です
11+
3. 全ての人のアイデア、スキル、貢献に価値があるとことが前提となっています
12+
4. 全ての人々が同じ文脈を共有していると考えず、質問を奨励します
13+
5. 人々が(技術的かそうでないかに関わらず)能力や熱意を持って生産的になる方法を探します。「いいえ/しかし」(no/but)ではなく、「はい/さらに」(yes/and)という言葉を使います。
14+
6. コミュニティメンバーや参加者に、話すことよりも聞くことの方を奨励します。
15+
7. 誰もが利用できるよう、オープンで自由な技術を使ったツールを作り上げることを努力します。個人的な利得ではなく、公共の便益を促進する活動が優先されます。
16+
8. 市民参画において伝統的に除外されてきたような人々へのアクセスや、彼らからのインプット重視します。
17+
9. コミュニティがシビックテックの計画や設計、実装などを代表するように尽力します。これは、女性、マイノリティ、伝統的に排除されてきたような人々の参加を奨励することも含みます。
18+
10. 意思決定プロセスに、コミュニティグループや専門家を積極的に参加してもらいます。
19+
11. コミュニティメンバー、地方自治体スタッフ、コミュニティパートナーとの関係や会話が尊重され、参加し、生産性を維持することを確実にします。
20+
12. 差別や嫌がらせのない環境を提供します。
21+
Code for Japan は、これらのポリシーに違反した人は誰であれCode for Japanのネットワーク活動、イベント、およびデジタルフォーラムに参加しないように依頼する権利を保持します。
22+
23+
## Code for Japan のアンチハラスメントポリシー
24+
25+
このアンチハラスメント(嫌がらせの防止)ポリシーは Code for America の [Code of Conduct](https://github.com/codeforamerica/codeofconduct/blob/master/README.md) の日本語訳が元になっていますが、大元のポリシーはAda Initiative と有志が作成した Geek Feminism wiki の[ポリシー例](http://geekfeminism.wikia.com/wiki/Conference_anti-harassment/Policy)を元に作られています。
26+
27+
このポリシーは、Esther FildermanとBeth Lynn Eicherが作成したOhio LinuxFestのアンチハラスメントポリシーや、Con Anti-Harassment Projectなどのいくつかの他のポリシーに基づいています。 Mary Gardiner、Valerie Aurora、Sarah Smith、Donna Benjaminはポリシーを一般化し、サポート資料を追加しました。 LinuxChix、Geek Feminismなどの多くのメンバーがこの作業に貢献しました。
28+
29+
Code for Japanは、性別、性同一性および表現、性的指向、身体的外見、身体の大きさ、人種、年齢、または宗教にかかわらず、すべての人にハラスメントのない環境を提供することに専念しています。 私たちは、スタッフ、プレゼンター、および参加者のいかなる形のハラスメントも容認しません。 性的言語と画像は、Code for Japanのイベントやネットワーク活動(通話を含む)には適切ではありません。 これらのポリシーに違反する者は、イベント主催者またはフォーラム管理者の裁量で、Code for Japanのネットワーク活動、イベント、およびデジタルフォーラムから退去させることができます。
30+
31+
ハラスメントには、ジェンダー、性別、性的指向、障害、身体的外観、身体の大きさ、人種、宗教に関連する攻撃的な口頭またはテキストによる言及が含まれますが、これに限定されません。 公共空間における性的イメージ; 意図的な脅迫。 ストーカー; つきまとい; ハラスメントの写真や録音; 会話やその他の出来事の持続的な中断; 不適切な物理的接触; 不快な性的注意; 不当な除外: 人を見下すような言語や行動; なども含みます。
32+
33+
参加者がハラスメント行為を行った場合、主催者は、Code for Japanのネットワーク活動、イベント、およびデジタルフォーラムからの加害者への警告や追放を含む、適切とみなされる措置を講じることができます。
34+
35+
あなたがハラスメントを受けている場合は、誰かがハラスメントを受けていることに気づいたり、その他の懸念がある場合は、すぐにイベント担当者またはフォーラム管理者に連絡してください。 [イベント主催者/フォーラム管理者のEメールアドレスと電話番号] から連絡することができます。 イベントスタッフまたはフォーラム管理者は、参加者が施設/会場のセキュリティや関連の法令執行機関に連絡したり、つきそいを行います。または、ハラスメントを経験した人がイベント期間中安全を感じられるような支援を行います。
36+
37+
イベント主催者またはフォーラム管理者に連絡できない場合や緊急の場合は、警察に電話をしたり、自分自身で状況から離脱してください。
38+
39+
下記の電子メールテンプレートを使用し、ハラスメントについての Code for Japan の連絡先 [email protected] に連絡することもできます。 数多く開催されるイベント全てにCode for Japan のスタッフが常に参加しているとは限らないため、特定の状況を評価する立場に常にいるわけではないことを認めています。 しかし、私たちはこれらのガイドラインを提供することで、これらの価値観を共同で守り、すべてを歓迎する環境を提供できるコミュニティを確立することを期待しています。
40+
41+
私たちはあなたの参加を大切にしており、これらの期待を広範に伝えることによって、すべての人がハラスメントのない環境を楽しむことができるように願っています。
42+
43+
## アンチハラスメント報告用電子メールテンプレート
44+
45+
題名: 安全に関する報告[イベント名]
46+
47+
Code for Japan コミュニティのイベントにおいて、ハラスメントの事象があったので報告します。
48+
(指名、場所、日付及びイベント名)
49+
50+
連絡先:[email protected]

nuxt-i18n.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,19 @@ const options = {
1515
code: 'ja',
1616
displayName: '日本語',
1717
file: 'ja.json',
18+
format: 'ja',
1819
},
1920
{
2021
code: 'en',
2122
displayName: 'English',
2223
file: 'en.json',
24+
format: 'en',
2325
},
2426
{
2527
code: 'zh-goyu',
2628
displayName: '台灣華語',
2729
file: 'zh_TW.json',
30+
format: 'zh-tw',
2831
},
2932
],
3033
}

nuxt.config.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import Sass from 'sass'
2+
import Fiber from 'fibers'
13
import i18nConfig from './nuxt-i18n.config.js'
24
const environment = process.env.NODE_ENV || 'development'
35

@@ -122,7 +124,14 @@ export default {
122124
'nuxt-svg-loader',
123125
['nuxt-i18n', i18nConfig],
124126
['@nuxtjs/google-analytics', { id: process.env.GAID }],
127+
'@nuxtjs/dayjs',
125128
],
129+
dayjs: {
130+
locales: ['ja', 'en', 'zh-tw'],
131+
defaultLocale: 'ja',
132+
defaultTimeZone: 'Asia/Tokyo',
133+
plugins: ['utc', 'timezone', 'minMax', 'isToday', 'localizedFormat'],
134+
},
126135
/*
127136
** Axios module configuration
128137
** See https://axios.nuxtjs.org/options
@@ -152,6 +161,14 @@ export default {
152161
*/
153162
build: {
154163
publicPath: '/assets/',
164+
loaders: {
165+
scss: {
166+
implementation: Sass,
167+
sassOptions: {
168+
fiber: Fiber,
169+
},
170+
},
171+
},
155172
babel: {
156173
presets({ isServer }) {
157174
return [

package.json

Lines changed: 54 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
{
2-
"name": "StudyAtHome",
2+
"name": "study-at-home",
33
"version": "1.0.0",
44
"description": "Ouchi De Jikanwari Web Version",
55
"author": "Nekoya3",
66
"private": true,
77
"scripts": {
8-
"dev": "cross-env NODE_ENV=development nuxt-ts",
9-
"build": "nuxt-ts build",
8+
"dev": "cross-env NODE_ENV=development nuxt",
9+
"build": "nuxt build",
1010
"test:unit": "jest --config jest.config.js",
11-
"start": "nuxt-ts start",
12-
"generate": "nuxt-ts generate",
13-
"lint": "eslint --ext .js,.vue,.ts --ignore-path .eslintignore ."
11+
"start": "nuxt start",
12+
"generate": "nuxt generate",
13+
"lint": "eslint --ext .js,.vue,.ts --ignore-path .eslintignore .",
14+
"prepare": "husky install"
1415
},
1516
"lint-staged": {
1617
"*.{js,ts,css,vue}": [
@@ -24,68 +25,71 @@
2425
}
2526
},
2627
"dependencies": {
27-
"@aws-amplify/api": "^3.2.7",
28-
"@babel/core": "^7.12.1",
29-
"@babel/runtime-corejs3": "^7.12.1",
30-
"@nuxt/typescript-runtime": "^2.0.0",
31-
"@nuxtjs/axios": "^5.12.2",
28+
"@aws-amplify/api": "^4.0.0",
29+
"@babel/core": "^7.14.3",
30+
"@babel/runtime-corejs3": "^7.14.0",
31+
"@nuxtjs/axios": "^5.13.4",
32+
"@nuxtjs/dayjs": "^1.4.0",
3233
"@nuxtjs/dotenv": "^1.4.1",
3334
"@nuxtjs/google-analytics": "^2.4.0",
34-
"@nuxtjs/pwa": "^3.2.2",
35+
"@nuxtjs/pwa": "^3.3.5",
3536
"@nuxtjs/style-resources": "^1.0.0",
36-
"@types/node": "^14.11.8",
37-
"aws-amplify": "^3.3.4",
38-
"core-js": "^3.6.5",
39-
"cross-env": "^7.0.2",
40-
"date-fns": "^2.16.1",
41-
"dayjs": "^1.9.3",
37+
"@types/node": "^15.3.0",
38+
"aws-amplify": "^4.0.2",
39+
"core-js": "^3.12.1",
40+
"cross-env": "^7.0.3",
4241
"express": "^4.17.1",
43-
"nuxt": "^2.14.7",
44-
"nuxt-i18n": "^6.15.3",
45-
"nuxt-property-decorator": "^2.8.8",
42+
"nuxt": "^2.15.6",
43+
"nuxt-i18n": "^6.27.0",
44+
"nuxt-property-decorator": "^2.9.1",
4645
"nuxt-svg-loader": "^1.2.0",
4746
"nuxt-webfontloader": "^1.1.0",
48-
"uuid": "^8.3.1",
49-
"vue-property-decorator": "^9.0.2",
50-
"vuetify": "^2.3.14",
51-
"vuex": "^3.5.1",
47+
"uuid": "^8.3.2",
48+
"vue-property-decorator": "^9.1.2",
49+
"vuetify": "^2.5.0",
50+
"vuex": "^3.6.2",
5251
"vuex-class-component": "^2.3.5"
5352
},
5453
"devDependencies": {
55-
"@mdi/font": "^5.7.55",
56-
"@nuxt/types": "^2.14.7",
57-
"@nuxt/typescript-build": "^2.0.3",
58-
"@nuxtjs/eslint-config-typescript": "^3.0.0",
54+
"@mdi/font": "^5.9.55",
55+
"@nuxt/types": "^2.15.6",
56+
"@nuxt/typescript-build": "^2.1.0",
57+
"@nuxtjs/eslint-config-typescript": "^6.0.0",
5958
"@nuxtjs/stylelint-module": "^4.0.0",
60-
"@types/jest": "^26.0.14",
61-
"@vue/test-utils": "^1.1.0",
59+
"@types/jest": "^26.0.23",
60+
"@vue/test-utils": "^1.2.0",
6261
"babel-core": "^6.26.3",
6362
"babel-eslint": "^10.1.0",
64-
"babel-jest": "^26.5.2",
63+
"babel-jest": "^26.6.3",
64+
"consola": "^2.15.3",
6565
"cpx": "^1.5.0",
66-
"eslint": "^7.11.0",
67-
"eslint-config-prettier": "^6.12.0",
66+
"eslint": "^7.26.0",
67+
"eslint-config-prettier": "^8.3.0",
6868
"eslint-loader": "^4.0.2",
69-
"eslint-plugin-nuxt": "^1.0.0",
70-
"eslint-plugin-prettier": "^3.1.4",
71-
"eslint-plugin-tsdoc": "^0.2.7",
72-
"husky": "^4.3.0",
73-
"jest": "^26.5.3",
74-
"lint-staged": "^10.4.0",
75-
"node-sass": "^4.14.1",
76-
"nodemon": "^2.0.5",
77-
"prettier": "^2.1.2",
69+
"eslint-plugin-nuxt": "^2.0.0",
70+
"eslint-plugin-prettier": "^3.4.0",
71+
"eslint-plugin-tsdoc": "^0.2.14",
72+
"fibers": "^5.0.0",
73+
"husky": "^6.0.0",
74+
"jest": "^26.6.3",
75+
"lint-staged": "^11.0.0",
76+
"nodemon": "^2.0.7",
77+
"prettier": "^2.3.0",
7878
"rimraf": "^3.0.2",
79-
"sass-loader": "^10.0.3",
80-
"stylelint": "^13.7.2",
79+
"sass": "^1.32.13",
80+
"sass-loader": "10.1.1",
81+
"stylelint": "^13.13.1",
8182
"stylelint-config-prettier": "^8.0.2",
82-
"stylelint-config-standard": "^20.0.0",
83-
"stylelint-scss": "^3.18.0",
84-
"ts-jest": "^26.4.1",
85-
"ts-loader": "^8.0.5",
83+
"stylelint-config-standard": "^22.0.0",
84+
"stylelint-scss": "^3.19.0",
85+
"ts-jest": "^26.5.6",
86+
"ts-loader": "^8.2.0",
87+
"typescript": "4.0.5",
8688
"vue": "^2.6.12",
89+
"vue-class-component": "^7.2.6",
8790
"vue-jest": "^3.0.7",
8891
"vue-server-renderer": "^2.6.12",
89-
"vue-template-compiler": "^2.6.12"
92+
"vue-template-compiler": "^2.6.12",
93+
"webpack": "4.46.0"
9094
}
9195
}

src/assets/locales/ja.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
"date": "日付設定",
7878
"time": "時間設定",
7979
"subject_label_color": "ラベル色",
80-
"video_keyword": "オプション機能:参考動画検索",
80+
"video_keyword": "オプション機能:{source}の動画検索",
8181
"video_url": "参考動画URL",
8282
"video_thumbnail": "動画サムネイル・キャプション表示",
8383
"textbook_page": "教科書ページ",

0 commit comments

Comments
 (0)