Compare commits
	
		
			273 Commits
		
	
	
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
|   | 338793d891 | ||
|   | 78ac41a613 | ||
|   | be23ccf23b | ||
|   | 1ba5e433e5 | ||
|   | 5bf4f569e4 | ||
|   | 5a11844eff | ||
|   | 14795b68f2 | ||
|   | bea42f5804 | ||
|   | fbbce302bc | ||
|   | 4b9c605477 | ||
|   | a499ad6879 | ||
|   | 76c5dc8999 | ||
|   | b985e14b13 | ||
|   | 61de9cdbd4 | ||
|   | 9208825975 | ||
|   | 72a49f334a | ||
|   | b35ca3b739 | ||
|   | 85950f17fa | ||
|   | 78f95b5910 | ||
|   | 909a09a0c0 | ||
|   | bb9fc56cc1 | ||
|   | 9f3b4ccd14 | ||
|   | 90bf976fe2 | ||
|   | 388de9dc96 | ||
|   | 8a0a46b1c9 | ||
|   | 186163ec3f | ||
|   | 91171c559a | ||
|   | 36b483d04d | ||
|   | 54e0a7f8a8 | ||
|   | 6d4e96dea2 | ||
|   | a6958da091 | ||
|   | 502bde5567 | ||
|   | d5702f9d51 | ||
|   | 5141afe476 | ||
|   | 4422219be7 | ||
|   | 4b2afec108 | ||
|   | 07bb8067ae | ||
|   | 4f63eb0c7e | ||
|   | 4ea7b2dd63 | ||
|   | e8189f7c69 | ||
|   | 23c054caec | ||
|   | a084c8b344 | ||
|   | 361069314f | ||
|   | d252514a39 | ||
|   | 31d1edc0fb | ||
|   | 987474726c | ||
|   | 4beea63d3f | ||
|   | 53f3b779bf | ||
|   | f59f424795 | ||
|   | c63ba5470a | ||
|   | 935d6473ed | ||
|   | 0faa4470fb | ||
|   | 0281bdd90c | ||
|   | 608ff73907 | ||
|   | c82ce9233b | ||
|   | cc75620976 | ||
|   | 1cd8bfaded | ||
|   | 65d9c304df | ||
|   | 4b48ba4e8c | ||
|   | bf7bacceab | ||
|   | a56f461895 | ||
|   | e21ff916b0 | ||
|   | da20675ada | ||
|   | 7364fb84ef | ||
|   | 48f46333f8 | ||
|   | 8407702b38 | ||
|   | e1a8b158e0 | ||
|   | 7e30910ab8 | ||
|   | 7fbee704ec | ||
|   | b1f94c7bc6 | ||
|   | 90411967d6 | ||
|   | 5719c623a4 | ||
|   | e210ec782a | ||
|   | 229780f6ff | ||
|   | 6490a9829b | ||
|   | 6384d0708d | ||
|   | db1fde2956 | ||
|   | c86720a331 | ||
|   | 2af158be26 | ||
|   | 7115bd46ff | ||
|   | f84483896e | ||
|   | fe7bc174fb | ||
|   | e967d9ded3 | ||
|   | c3b55b6849 | ||
|   | 3e193c9864 | ||
|   | d64e25e449 | ||
|   | c4707c612d | ||
|   | 9d3448c880 | ||
|   | dad6a77645 | ||
|   | f64d3942d7 | ||
|   | 45fe754759 | ||
|   | 98f1d93628 | ||
|   | 8785e1c3a4 | ||
|   | f00ceedae4 | ||
|   | 7387e010c2 | ||
|   | a59dfff12f | ||
|   | f6128dd3ff | ||
|   | eeff88ece2 | ||
|   | bae1282f74 | ||
|   | d2007add75 | ||
|   | 802db92d98 | ||
|   | a53e1e4ec3 | ||
|   | fd1ef4a62d | ||
|   | 8ab9068d8e | ||
|   | 47dd30d3b2 | ||
|   | fcdd042b02 | ||
|   | 04855f9201 | ||
| ![dependabot[bot]](/assets/img/avatar_default.png)  | cf0a5d5735 | ||
|   | bb2db1cf76 | ||
|   | 0e69091455 | ||
|   | 3cb5ed167a | ||
|   | 1ffee15b83 | ||
|   | 75b9f31acf | ||
|   | fc56b12690 | ||
|   | 60e768436e | ||
|   | 84f2192cde | ||
|   | 97f2675d40 | ||
|   | 6d881d4570 | ||
|   | 42cc93dd0f | ||
|   | e9f34a0f09 | ||
|   | b9cb6d1c10 | ||
|   | 7bf517e990 | ||
|   | ab54e147f2 | ||
|   | e677540fd6 | ||
|   | 31e3aaeda0 | ||
|   | 938fc317c9 | ||
|   | 4c431c5432 | ||
|   | 881b914c6a | ||
|   | df67836c1a | ||
|   | 6a3a8ba4d0 | ||
|   | 9e535c341e | ||
|   | 17fa4ba804 | ||
|   | dd9a3c91fc | ||
|   | 7015df37e3 | ||
|   | 7ebdd4739a | ||
|   | c4bcb31a00 | ||
|   | 0a18ee24ac | ||
|   | 37d10b108e | ||
|   | b5cadeca2e | ||
|   | c8e93054bc | ||
|   | def32107af | ||
|   | 1b84ae9f3f | ||
|   | 73ce1f61a8 | ||
|   | 8661cd1ee7 | ||
|   | 53f55defda | ||
|   | d60dc60bc9 | ||
|   | bf1d7e6252 | ||
|   | c96b2767b9 | ||
|   | 6c1f03eefd | ||
|   | cced83024b | ||
|   | 1cd6ba3c1d | ||
|   | 2365761ba5 | ||
|   | d3b4b70bfc | ||
|   | f95d5701a2 | ||
|   | a8c56afd0f | ||
|   | 4de30aa47e | ||
|   | f05f7c920e | ||
|   | 5f86509abc | ||
|   | 1561391293 | ||
|   | 60553a8a5e | ||
|   | e656074de4 | ||
|   | b81ff340b1 | ||
|   | 77456ae0bc | ||
|   | 9fd0e90850 | ||
|   | ab01cf1881 | ||
|   | 0d10ca02db | ||
|   | 0627df8116 | ||
|   | c88ea7150c | ||
|   | 555954c71e | ||
|   | f231f02329 | ||
|   | b8af5dfde0 | ||
|   | ef3710fdc2 | ||
|   | bde114ad13 | ||
|   | 9d138aa282 | ||
|   | 42c4ea38cc | ||
|   | c0ba71c368 | ||
|   | 7b2cb30a9d | ||
|   | 0f55e65701 | ||
|   | aeb24b96eb | ||
|   | ad4700b3b1 | ||
|   | b2e5ade5ac | ||
|   | 90a7b9b551 | ||
|   | 31b6ab9b23 | ||
|   | 4149c7782f | ||
|   | 227f52d758 | ||
|   | baa2a871f1 | ||
|   | 5bb619fe7b | ||
|   | fff3c552e2 | ||
|   | e19cc8bebf | ||
|   | f4f8debb92 | ||
|   | ea6b8b599f | ||
|   | c30f02ae4c | ||
|   | 09450ba544 | ||
|   | df53968306 | ||
|   | 19f753c15c | ||
|   | df530bb66d | ||
|   | fa49427df0 | ||
|   | 6678d97cc4 | ||
|   | e3642a8d10 | ||
|   | f9022fdf16 | ||
|   | 1c764139bf | ||
|   | 048ed26f41 | ||
|   | c52e30e8e0 | ||
|   | 0cb04ded36 | ||
|   | 6cfad65ac7 | ||
|   | ed20805b10 | ||
|   | 576303cd72 | ||
|   | 0062e084f8 | ||
|   | b90d76dcfe | ||
|   | c95619b2bf | ||
|   | 82150bd5b8 | ||
|   | 9e03335ff8 | ||
|   | b3c5c3f0ea | ||
|   | 65858dab3e | ||
|   | c968633d15 | ||
|   | 39a8942daf | ||
|   | 7705a7928e | ||
|   | d2c14b844e | ||
|   | 3e45e6c165 | ||
|   | fe8334931f | ||
|   | f565c5f730 | ||
|   | c03e2febb0 | ||
|   | c2f4fb7ba7 | ||
|   | 5f869e5d87 | ||
|   | 65f1afc4e0 | ||
|   | aec2762bf1 | ||
|   | a41144a00f | ||
|   | aa28e8a7a6 | ||
|   | a1a51ce518 | ||
|   | 90999e0ef9 | ||
|   | 2ceeb17056 | ||
|   | 18afdd6040 | ||
|   | b9972ec6bd | ||
|   | ebb53e87f3 | ||
|   | 9f9d7325fd | ||
|   | 742a005523 | ||
|   | 3a28c06534 | ||
|   | 46d5711071 | ||
|   | 48113f3afd | ||
|   | be29972ddf | ||
|   | 49b3a83f76 | ||
|   | 342794c728 | ||
|   | 3739638c81 | ||
|   | 401351d9c8 | ||
|   | 6073a03967 | ||
|   | 3e3d294188 | ||
|   | f6f96ae5bf | ||
|   | 62ccb53c24 | ||
|   | e410e22980 | ||
|   | fc5ceea335 | ||
|   | 38af8d4737 | ||
|   | 33b0cab596 | ||
|   | 2a47e4a1e1 | ||
|   | 46f53868c5 | ||
|   | eac7f11aa7 | ||
|   | e219188f46 | ||
|   | 3df8c701a7 | ||
|   | 1186813c75 | ||
|   | 645b6fdc8a | ||
|   | ae0596a729 | ||
|   | bb5fd3c1f2 | ||
|   | 532fa9c5f9 | ||
|   | 80a4aa6fa6 | ||
|   | 4f218f544f | ||
|   | f261f8d7d1 | ||
|   | e044d11782 | ||
|   | d2da459dd8 | ||
|   | b1e6a33d6b | ||
|   | 0d276d0d61 | ||
|   | 998936651a | ||
|   | 1bec25e8e6 | ||
|   | f220e4183f | ||
|   | e965b57dc2 | 
							
								
								
									
										13
									
								
								.babelrc
									
									
									
									
									
								
							
							
						
						
									
										13
									
								
								.babelrc
									
									
									
									
									
								
							| @@ -1,13 +0,0 @@ | ||||
| { | ||||
| 	"plugins": [ | ||||
| 		[ | ||||
| 			"@babel/plugin-transform-runtime", | ||||
| 			{ | ||||
| 				"corejs": { | ||||
| 					"version": 3, | ||||
| 					"proposals": true | ||||
| 				} | ||||
| 			} | ||||
| 		] | ||||
| 	] | ||||
| } | ||||
| @@ -157,3 +157,10 @@ id: 'aid' | ||||
|  | ||||
| # Sign to ActivityPub GET request (default: false) | ||||
| #signToActivityPubGet: true | ||||
|  | ||||
| #allowedPrivateNetworks: [ | ||||
| #  '127.0.0.1/32' | ||||
| #] | ||||
|  | ||||
| # Upload or download file size limits (bytes) | ||||
| #maxFileSize: 262144000 | ||||
|   | ||||
| @@ -1,8 +1,8 @@ | ||||
| .autogen | ||||
| .git | ||||
| .github | ||||
| .travis | ||||
| .vscode | ||||
| .config | ||||
| Dockerfile | ||||
| build/ | ||||
| built/ | ||||
| @@ -12,3 +12,4 @@ elasticsearch/ | ||||
| node_modules/ | ||||
| redis/ | ||||
| files/ | ||||
| misskey-assets/ | ||||
|   | ||||
							
								
								
									
										7
									
								
								.github/ISSUE_TEMPLATE/config.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								.github/ISSUE_TEMPLATE/config.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,7 @@ | ||||
| contact_links: | ||||
|   - name: 👪 Misskey Forum | ||||
|     url: https://forum.misskey.io/ | ||||
|     about: Ask questions and share knowledge | ||||
|   - name: 💬 Misskey official Discord | ||||
|     url: https://discord.gg/Wp8gVStHW3 | ||||
|     about: Chat freely about Misskey | ||||
							
								
								
									
										31
									
								
								.github/PULL_REQUEST_TEMPLATE.md
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										31
									
								
								.github/PULL_REQUEST_TEMPLATE.md
									
									
									
									
										vendored
									
									
								
							| @@ -1,13 +1,20 @@ | ||||
| ## Summary | ||||
| <!-- ℹ お読みください | ||||
| PRありがとうございます! PRを作成する前に、コントリビューションガイドをご確認ください: | ||||
| https://github.com/misskey-dev/misskey/blob/develop/CONTRIBUTING.md | ||||
| --> | ||||
| <!-- ℹ README | ||||
| Thank you for your PR! Before creating a PR, please check the contribution guide: | ||||
| https://github.com/misskey-dev/misskey/blob/develop/docs/CONTRIBUTING.en.md | ||||
| --> | ||||
|  | ||||
| <!-- | ||||
|   - | ||||
|   - * Please describe your changes here * | ||||
|   - | ||||
|   - If you are going to resolve some issue, please add this context. | ||||
|   - Resolve #ISSUE_NUMBER | ||||
|   - | ||||
|   - If you are going to fix some bug issue, please add this context. | ||||
|   - Fix #ISSUE_NUMBER | ||||
|   - | ||||
|   --> | ||||
| # What | ||||
| <!-- このPRで何をしたのか? どう変わるのか? --> | ||||
| <!-- What did you do with this PR? How will it change things? --> | ||||
|  | ||||
| # Why | ||||
| <!-- なぜそうするのか? どういう意図なのか? 何が困っているのか? --> | ||||
| <!-- Why do you do it? What are your intentions? What is the problem? --> | ||||
|  | ||||
| # Additional info (optional) | ||||
| <!-- テスト観点など --> | ||||
| <!-- Test perspective, etc --> | ||||
|   | ||||
							
								
								
									
										11
									
								
								.github/dependabot.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								.github/dependabot.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,11 @@ | ||||
| # To get started with Dependabot version updates, you'll need to specify which | ||||
| # package ecosystems to update and where the package manifests are located. | ||||
| # Please see the documentation for all configuration options: | ||||
| # https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates | ||||
|  | ||||
| version: 2 | ||||
| updates: | ||||
|   - package-ecosystem: "npm" # See documentation for possible values | ||||
|     directory: "/" # Location of package manifests | ||||
|     schedule: | ||||
|       interval: "daily" | ||||
							
								
								
									
										32
									
								
								.github/workflows/docker.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										32
									
								
								.github/workflows/docker.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,32 @@ | ||||
| name: Publish Docker image | ||||
|  | ||||
| on: | ||||
|   release: | ||||
|     types: [published] | ||||
|   workflow_dispatch: | ||||
|  | ||||
| jobs: | ||||
|   push_to_registry: | ||||
|     name: Push Docker image to Docker Hub | ||||
|     runs-on: ubuntu-latest | ||||
|  | ||||
|     steps: | ||||
|       - name: Check out the repo | ||||
|         uses: actions/checkout@v2 | ||||
|       - name: Docker meta | ||||
|         id: meta | ||||
|         uses: docker/metadata-action@v3 | ||||
|         with: | ||||
|           images: misskey/misskey | ||||
|       - name: Log in to Docker Hub | ||||
|         uses: docker/login-action@v1 | ||||
|         with: | ||||
|           username: ${{ secrets.DOCKER_USERNAME }} | ||||
|           password: ${{ secrets.DOCKER_PASSWORD }} | ||||
|       - name: Build and Push to Docker Hub | ||||
|         uses: docker/build-push-action@v2 | ||||
|         with: | ||||
|           context: . | ||||
|           push: true | ||||
|           tags: ${{ steps.meta.outputs.tags }} | ||||
|           labels: ${{ steps.meta.outputs.labels }} | ||||
							
								
								
									
										6
									
								
								.github/workflows/nodejs.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										6
									
								
								.github/workflows/nodejs.yml
									
									
									
									
										vendored
									
									
								
							| @@ -29,12 +29,16 @@ jobs: | ||||
|  | ||||
|     steps: | ||||
|     - uses: actions/checkout@v2 | ||||
|       with: | ||||
|         submodules: true | ||||
|     - name: Use Node.js ${{ matrix.node-version }} | ||||
|       uses: actions/setup-node@v1 | ||||
|       with: | ||||
|         node-version: ${{ matrix.node-version }} | ||||
|     - name: Install dependencies | ||||
|       run: yarn install | ||||
|     - name: Check yarn.lock | ||||
|       run: git diff --exit-code yarn.lock | ||||
|     - name: Copy Configure | ||||
|       run: cp .circleci/misskey/*.yml .config | ||||
|     - name: Build | ||||
| @@ -46,6 +50,8 @@ jobs: | ||||
|     runs-on: ubuntu-latest | ||||
|     steps: | ||||
|     - uses: actions/checkout@v2 | ||||
|       with: | ||||
|         submodules: true | ||||
|     - uses: actions/setup-node@v1 | ||||
|       with: | ||||
|         node-version: 12.x | ||||
|   | ||||
							
								
								
									
										4
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							| @@ -9,6 +9,10 @@ | ||||
| /node_modules | ||||
| report.*.json | ||||
|  | ||||
| # Cypress | ||||
| cypress/screenshots | ||||
| cypress/videos | ||||
|  | ||||
| # config | ||||
| /.config/* | ||||
| !/.config/example.yml | ||||
|   | ||||
							
								
								
									
										3
									
								
								.gitmodules
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								.gitmodules
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,3 @@ | ||||
| [submodule "misskey-assets"] | ||||
| 	path = misskey-assets | ||||
| 	url = https://github.com/misskey-dev/assets.git | ||||
| @@ -1 +1 @@ | ||||
| v16.2.0 | ||||
| v16.6.2 | ||||
|   | ||||
							
								
								
									
										135
									
								
								CHANGELOG.md
									
									
									
									
									
								
							
							
						
						
									
										135
									
								
								CHANGELOG.md
									
									
									
									
									
								
							| @@ -1 +1,134 @@ | ||||
| see [releases](https://github.com/misskey-dev/misskey/releases) | ||||
| <!-- | ||||
| ## 12.x.x (unreleased) | ||||
|  | ||||
| ### Improvements | ||||
|  | ||||
| ### Bugfixes | ||||
|  | ||||
| --> | ||||
|  | ||||
| ## 12.91.0 (2021/09/22) | ||||
|  | ||||
| ### Improvements | ||||
| - ActivityPub: リモートユーザーのDeleteアクティビティに対応 | ||||
| - ActivityPub: add resolver check for blocked instance | ||||
| - ActivityPub: deliverキューのメモリ使用量を削減 | ||||
| - API: 管理者用アカウント削除APIを実装(/admin/accounts/delete) | ||||
| 	- リモートユーザーの削除も可能に | ||||
| - アカウントが凍結された場合に、凍結された旨を表示してからログアウトするように | ||||
| - 凍結されたアカウントにログインしようとしたときに、凍結されている旨を表示するように | ||||
| - リスト、アンテナタイムラインを個別ページとして分割 | ||||
| - UIの改善 | ||||
| - MFMにsparklesエフェクトを追加 | ||||
| - 非ログイン自は更新ダイアログを出さないように | ||||
| - クライアント起動時、アップデートが利用可能な場合エラー表示およびダイアログ表示しないように | ||||
|  | ||||
| ### Bugfixes | ||||
| - アカウントデータのエクスポート/インポート処理ができない問題を修正 | ||||
| - アンテナの既読が付かない問題を修正 | ||||
| - popupで設定ページを表示すると、アカウントの削除ページにアクセスすることができない問題を修正 | ||||
| - "問題が発生しました"ウィンドウを開くと☓ボタンがなくて閉じれない問題を修正 | ||||
|  | ||||
| ## 12.90.1 (2021/09/05) | ||||
|  | ||||
| ### Bugfixes | ||||
| - Dockerfileを修正 | ||||
| - ノート翻訳時に公開範囲が考慮されていない問題を修正 | ||||
|  | ||||
| ## 12.90.0 (2021/09/04) | ||||
|  | ||||
| ### Improvements | ||||
| - 藍モード、および藍ウィジェット | ||||
| 	- クライアントに藍ちゃんを召喚することができるようになりました。 | ||||
| - URLからのアップロード, APの添付ファイル, 外部ファイルのプロキシ等では、Privateアドレス等へのリクエストは拒否されるようになりました。 | ||||
| 	- developmentで動作している場合は、この制限は適用されません。 | ||||
| 	- Proxy使用時には、この制限は適用されません。 | ||||
| 		Proxy使用時に同等の制限を行いたい場合は、Proxy側で設定を行う必要があります。 | ||||
| 	- `default.yml`にて`allowedPrivateNetworks`にCIDRを追加することにより、宛先ネットワークを指定してこの制限から除外することが出来ます。 | ||||
| - アップロード, ダウンロード出来るファイルサイズにハードリミットが適用されるようになりました。(約250MB) | ||||
| 	- `default.yml`にて`maxFileSize`を変更することにより、制限値を変更することが出来ます。 | ||||
|  | ||||
| ### Bugfixes | ||||
| - 管理者が最初にサインアップするページでログインされないのを修正 | ||||
| - CWを維持する設定を復活 | ||||
| - クライアントの表示を修正 | ||||
|  | ||||
| ## 12.89.2 (2021/08/24) | ||||
|  | ||||
| ### Bugfixes | ||||
| - カスタムCSSを有効にしているとエラーになる問題を修正 | ||||
|  | ||||
| ## 12.89.1 (2021/08/24) | ||||
|  | ||||
| ### Improvements | ||||
| - クライアントのデザインの調整 | ||||
|  | ||||
| ### Bugfixes | ||||
| - 翻訳でDeepLのProアカウントに対応していない問題を修正 | ||||
| - インスタンス設定でDeepLのAuth Keyが空で表示される問題を修正 | ||||
| - セキュリティの向上 | ||||
|  | ||||
| ## 12.89.0 (2021/08/21) | ||||
|  | ||||
| ### Improvements | ||||
| - アカウント削除の安定性を向上 | ||||
| - 絵文字オートコンプリートの挙動を改修 | ||||
| - localStorageのaccountsはindexedDBで保持するように | ||||
| - ActivityPub: ジョブキューの試行タイミングを調整 (#7635) | ||||
| - API: sw/unregisterを追加 | ||||
| - ワードミュートのドキュメントを追加 | ||||
| - クライアントのデザインの調整 | ||||
| - 依存関係の更新 | ||||
|  | ||||
| ### Bugfixes | ||||
| - チャンネルを作成しているとアカウントを削除できないのを修正 | ||||
| - ノートの「削除して編集」をするとアンケートの選択肢が[object Object]になる問題を修正 | ||||
|  | ||||
| ## 12.88.0 (2021/08/17) | ||||
|  | ||||
| ### Features | ||||
| - ノートの翻訳機能を追加 | ||||
|   - 有効にするには、サーバー管理者がDeepLの無料アカウントを登録し、取得した認証キーを「インスタンス設定 > その他 > DeepL Auth Key」に設定する必要があります。 | ||||
| - Misskey更新時にダイアログを表示するように | ||||
| - ジョブキューウィジェットに警報音を鳴らす設定を追加 | ||||
|  | ||||
| ### Improvements | ||||
| - ブロックの挙動を改修 | ||||
| 	- ブロックされたユーザーがブロックしたユーザーに対してアクション出来ないようになりました。詳細はドキュメントをご確認ください。 | ||||
| - UIデザインの調整 | ||||
| - データベースのインデックスを最適化 | ||||
| - Proxy使用時にKeep-Aliveをサポート | ||||
| - DNSキャッシュでネガティブキャッシュをサポート | ||||
| - 依存関係の更新 | ||||
|  | ||||
| ### Bugfixes | ||||
| - タッチ操作でウィンドウを閉じることができない問題を修正 | ||||
| - Renoteされた時刻が投稿された時刻のように表示される問題を修正 | ||||
| - コントロールパネルでファイルを削除した際の表示を修正 | ||||
| - ActivityPub: 長いユーザーの名前や自己紹介の対応 | ||||
|  | ||||
| ## 12.87.0 (2021/08/12) | ||||
|  | ||||
| ### Improvements | ||||
| - 絵文字オートコンプリートで一文字目は最近使った絵文字をサジェストするように | ||||
| - 絵文字オートコンプリートのパフォーマンスを改善 | ||||
| - about-misskeyページにドキュメントへのリンクを追加 | ||||
| - Docker: Node.jsを16.6.2に | ||||
| - 依存関係の更新 | ||||
| - 翻訳の更新 | ||||
|  | ||||
| ### Bugfixes | ||||
| - Misskey更新時、テーマキャッシュの影響でスタイルがおかしくなる問題を修正 | ||||
|  | ||||
| ## 12.86.0 (2021/08/11) | ||||
|  | ||||
| ### Improvements | ||||
| - ドキュメントの更新 | ||||
| 	- ドキュメントにchangelogを追加 | ||||
| - ぼかし効果のオプションを追加 | ||||
| - Vueを3.2.1に更新 | ||||
| - UIの調整 | ||||
|  | ||||
| ### Bugfixes | ||||
| - ハッシュタグ入力が空のときに#が付くのを修正 | ||||
| - フォローリクエストのEメール通知を修正 | ||||
|   | ||||
							
								
								
									
										174
									
								
								CONTRIBUTING.md
									
									
									
									
									
								
							
							
						
						
									
										174
									
								
								CONTRIBUTING.md
									
									
									
									
									
								
							| @@ -1,22 +1,43 @@ | ||||
| # Contribution guide | ||||
| :v: Thanks for your contributions :v: | ||||
| We're glad you're interested in contributing Misskey! In this document you will find the information you need to contribute to the project. | ||||
|  | ||||
| ## When you contribute... | ||||
| - 任意のIssueについて、せっかく実装してくださっても、実装方法や設計の認識が揃ってないとマージできない/しないことになりかねないので、初めにそのIssue上で着手することを宣言し、必要に応じて他メンバーと実装方法や設計のすり合わせを行ってください。宣言することは作業が他の人と被るのを防止する効果もあります。 | ||||
|   - 設計に迷った時はプロジェクトリーダーの判断を仰いでください。 | ||||
| - 時間や優先度の都合上、提出してくださったPRが長期間放置されることもありますがご理解ください。 | ||||
|   - 温度感高めで見てほしいものは責付いてください。 | ||||
| **ℹ️ Important:** This project uses Japanese as its major language, **but you do not need to translate and write the Issues/PRs in Japanese.** | ||||
| Also, you might receive comments on your Issue/PR in Japanese, but you do not need to reply to them in Japanese as well.\ | ||||
| The accuracy of translation into Japanese is not high, so it will be easier for us to understand if you write it in the original language. | ||||
| It will also allow the reader to use the translation tool of their preference if necessary. | ||||
|  | ||||
| ## Issues | ||||
| Feature suggestions and bug reports are filed in https://github.com/misskey-dev/misskey/issues . | ||||
| Before creating an issue, please check the following: | ||||
| - To avoid duplication, please search for similar issues before creating a new issue. | ||||
| - Do not use Issues as a question. | ||||
| 	- Issues should only be used to feature requests, suggestions, and report problems. | ||||
| 	- Please ask questions in the [Misskey Forum](https://forum.misskey.io/) or [Discord](https://discord.gg/Wp8gVStHW3). | ||||
|  | ||||
| * Please search existing issues to avoid duplication. If your issue is already filed, please add your reaction or comment to the existing one. | ||||
| * If you have multiple independent issues, please submit them separately. | ||||
| ## Before implementation | ||||
| When you want to add a feature or fix a bug, **first have the design and policy reviewed in an Issue** (if it is not there, please make one). Without this step, there is a high possibility that the PR will not be merged even if it is implemented. | ||||
|  | ||||
| ## Branches | ||||
| * **master** branch is tracking the latest release and used for production purposes. | ||||
| * **develop** branch is where we work for the next release. | ||||
| * **l10n_develop** branch is reserved for localization management. | ||||
| Also, when you start implementation, assign yourself to the Issue (if you cannot do it yourself, ask another member to assign you). By expressing your intention to work the Issue, you can prevent conflicts in the work. | ||||
|  | ||||
| ## Well-known branches | ||||
| - **`master`** branch is tracking the latest release and used for production purposes. | ||||
| - **`develop`** branch is where we work for the next release. | ||||
| 	- When you create a PR, basically target it to this branch. | ||||
| - **`l10n_develop`** branch is reserved for localization management. | ||||
|  | ||||
| ## Creating a PR | ||||
| Thank you for your PR! Before creating a PR, please check the following: | ||||
| - If possible, prefix the title with a keyword that identifies the type of this PR, as shown below. | ||||
|   - `fix` / `refactor` / `feat` / `enhance` / `perf` / `chore` etc | ||||
|   - Also, make sure that the granularity of this PR is appropriate. Please do not include more than one type of change or interest in a single PR. | ||||
| - If there is an Issue which will be resolved by this PR, please include a reference to the Issue in the text. | ||||
| - Please add the summary of the changes to [`CHANGELOG.md`](/CHANGELOG.md). However, this is not necessary for changes that do not affect the users, such as refactoring. | ||||
| - Check if there are any documents that need to be created or updated due to this change. | ||||
| - If you have added a feature or fixed a bug, please add a test case if possible. | ||||
| - Please make sure that tests and Lint are passed in advance. | ||||
|   - You can run it with `npm run test` and `npm run lint`. [See more info](#testing) | ||||
| - If this PR includes UI changes, please attach a screenshot in the text. | ||||
|  | ||||
| Thanks for your cooperation 🤗 | ||||
|  | ||||
| ## Localization (l10n) | ||||
| Misskey uses [Crowdin](https://crowdin.com/project/misskey) for localization management. | ||||
| @@ -32,8 +53,21 @@ If your language is not listed in Crowdin, please open an issue. | ||||
| * Documents for instance admins are located in [`/docs`](/docs). | ||||
| * Documents for end users are located in [`/src/docs`](/src/docs). | ||||
|  | ||||
| ## Test | ||||
| * Test codes are located in [`/test`](/test). | ||||
| ## Testing | ||||
| - Test codes are located in [`/test`](/test). | ||||
|  | ||||
| ### Run test | ||||
| ``` | ||||
| npm run test | ||||
| ``` | ||||
|  | ||||
| #### Run specify test | ||||
| ``` | ||||
| npx cross-env TS_NODE_FILES=true TS_NODE_TRANSPILE_ONLY=true TS_NODE_PROJECT="./test/tsconfig.json" npx mocha test/foo.ts --require ts-node/register | ||||
| ``` | ||||
|  | ||||
| ### e2e tests | ||||
| TODO | ||||
|  | ||||
| ## Continuous integration | ||||
| Misskey uses GitHub Actions for executing automated tests. | ||||
| @@ -50,116 +84,11 @@ Configuration files are located in [`/.github/workflows`](/.github/workflows). | ||||
| If you have no experience on 3D modeling, we suggest to use the free 3DCG software [Blender](https://www.blender.org/). | ||||
| You can find information on glTF 2.0 at [glTF 2.0 — Blender Manual]( https://docs.blender.org/manual/en/dev/addons/io_scene_gltf2.html). | ||||
|  | ||||
| ## FAQ | ||||
| ## Notes | ||||
| ### How to resolve conflictions occurred at yarn.lock? | ||||
|  | ||||
| Just execute `yarn` to fix it. | ||||
|  | ||||
| ## Glossary | ||||
| ### AP | ||||
| Stands for _**A**ctivity**P**ub_. | ||||
|  | ||||
| ### MFM | ||||
| Stands for _**M**isskey **F**lavored **M**arkdown_. | ||||
|  | ||||
| ### Mk | ||||
| Stands for _**M**iss**k**ey_. | ||||
|  | ||||
| ### SW | ||||
| Stands for _**S**ervice**W**orker_. | ||||
|  | ||||
| ### Nyaize | ||||
| Convert な(na) to にゃ(nya) | ||||
|  | ||||
| #### Denyaize | ||||
| Revert Nyaize | ||||
|  | ||||
| ## TypeScript Coding Style | ||||
| ### Do not omit semicolons | ||||
| This is to avoid Automatic Semicolon Insertion (ASI) hazard. | ||||
|  | ||||
| Ref: | ||||
| * https://www.ecma-international.org/ecma-262/#sec-automatic-semicolon-insertion | ||||
| * https://github.com/tc39/ecma262/pull/1062 | ||||
|  | ||||
| ### Do not omit curly brackets | ||||
| Bad: | ||||
| ``` ts | ||||
| if (foo) | ||||
| 	bar; | ||||
| else | ||||
| 	baz; | ||||
| ``` | ||||
|  | ||||
| Good: | ||||
| ``` ts | ||||
| if (foo) { | ||||
| 	bar; | ||||
| } else { | ||||
| 	baz; | ||||
| } | ||||
| ``` | ||||
|  | ||||
| As a special case, you can omit the curly brackets if | ||||
|  | ||||
| * the body of the `if`-statement have only one statement and, | ||||
| * the `if`-statement does not have `else`-clause. | ||||
|  | ||||
| Good: | ||||
| ``` ts | ||||
| if (foo) bar; | ||||
| ``` | ||||
|  | ||||
| Make sure that the condition and the body statement are on the same line. | ||||
|  | ||||
| ### Do not use `==` when it can simply be replaced with `===`. | ||||
| 🥰 | ||||
|  | ||||
| ### Use only boolean (or null related) values in the condition of an `if`-statement. | ||||
| Bad: | ||||
| ``` ts | ||||
| if (foo.length) | ||||
| ``` | ||||
|  | ||||
| Good: | ||||
| ``` ts | ||||
| if (foo.length > 0) | ||||
| ``` | ||||
|  | ||||
| ### Do not use `export default` | ||||
| This is because the current language support does not work well with `export default`. | ||||
|  | ||||
| Ref: | ||||
| * https://basarat.gitbooks.io/typescript/docs/tips/defaultIsBad.html | ||||
| * https://gfx.hatenablog.com/entry/2017/11/24/135343 | ||||
|  | ||||
| Bad: | ||||
| ``` ts | ||||
| export default function(foo: string): string { | ||||
| ``` | ||||
|  | ||||
| Good: | ||||
| ``` ts | ||||
| export function something(foo: string): string { | ||||
| ``` | ||||
|  | ||||
| ## Directory structure | ||||
| ``` | ||||
| src ... Source code | ||||
| 	@types ... Type definitions | ||||
| 	prelude ... Independence utils for coding JavaScript without side effects | ||||
| 	misc ... Independence utils for Misskey without side effects | ||||
| 	service ... Common functions with side effects | ||||
| 	queue ... Job queues and Jobs | ||||
| 	server ... Web Server | ||||
| 	client ... Client | ||||
| 	mfm ... MFM | ||||
|  | ||||
| test ... Test code | ||||
|  | ||||
| ``` | ||||
|  | ||||
| ## Notes | ||||
| ### placeholder | ||||
| SQLをクエリビルダで組み立てる際、使用するプレースホルダは重複してはならない | ||||
| 例えば | ||||
| @@ -245,6 +174,9 @@ npx ts-node ./node_modules/typeorm/cli.js migration:generate -n 変更の名前 | ||||
| ### コネクションには`markRaw`せよ | ||||
| **Vueのコンポーネントのdataオプションとして**misskey.jsのコネクションを設定するとき、必ず`markRaw`でラップしてください。インスタンスが不必要にリアクティブ化されることで、misskey.js内の処理で不具合が発生するとともに、パフォーマンス上の問題にも繋がる。なお、Composition APIを使う場合はこの限りではない(リアクティブ化はマニュアルなため)。 | ||||
|  | ||||
| ### JSONのimportに気を付けよう | ||||
| TypeScriptでjsonをimportすると、tscでコンパイルするときにそのjsonファイルも一緒にdistディレクトリに吐き出されてしまう。この挙動により、意図せずファイルの書き換えが発生することがあるので、jsonをimportするときは書き換えられても良いものかどうか確認すること。書き換えされて欲しくない場合は、importで読み込むのではなく、`fs.readFileSync`などの関数を使って読み込むようにすればよい。 | ||||
|  | ||||
| ## その他 | ||||
| ### HTMLのクラス名で follow という単語は使わない | ||||
| 広告ブロッカーで誤ってブロックされる | ||||
|   | ||||
							
								
								
									
										33
									
								
								Dockerfile
									
									
									
									
									
								
							
							
						
						
									
										33
									
								
								Dockerfile
									
									
									
									
									
								
							| @@ -1,38 +1,26 @@ | ||||
| FROM node:16.2.0-alpine3.13 AS base | ||||
| FROM node:16.6.2-alpine3.13 AS base | ||||
|  | ||||
| ENV NODE_ENV=production | ||||
|  | ||||
| WORKDIR /misskey | ||||
|  | ||||
| ENV BUILD_DEPS autoconf automake file g++ gcc libc-dev libtool make nasm pkgconfig python3 zlib-dev git | ||||
|  | ||||
| FROM base AS builder | ||||
|  | ||||
| RUN apk add --no-cache \ | ||||
|     autoconf \ | ||||
|     automake \ | ||||
|     file \ | ||||
|     g++ \ | ||||
|     gcc \ | ||||
|     libc-dev \ | ||||
|     libtool \ | ||||
|     make \ | ||||
|     nasm \ | ||||
|     pkgconfig \ | ||||
|     python3 \ | ||||
|     zlib-dev \ | ||||
|     vips-dev \ | ||||
|     vips | ||||
|  | ||||
| COPY package.json yarn.lock .yarnrc ./ | ||||
| RUN yarn install | ||||
| COPY . ./ | ||||
| RUN yarn build | ||||
|  | ||||
| RUN apk add --no-cache $BUILD_DEPS && \ | ||||
|     git submodule update --init && \ | ||||
|     yarn install && \ | ||||
|     yarn build && \ | ||||
|     rm -rf .git | ||||
|  | ||||
| FROM base AS runner | ||||
|  | ||||
| RUN apk add --no-cache \ | ||||
|     ffmpeg \ | ||||
|     tini \ | ||||
|     vips | ||||
|     tini | ||||
|  | ||||
| ENTRYPOINT ["/sbin/tini", "--"] | ||||
|  | ||||
| @@ -41,3 +29,4 @@ COPY --from=builder /misskey/built ./built | ||||
| COPY . ./ | ||||
|  | ||||
| CMD ["npm", "run", "migrateandstart"] | ||||
|  | ||||
|   | ||||
| @@ -104,6 +104,12 @@ Related projects | ||||
| - [misskey.js](https://github.com/misskey-dev/misskey.js) - Misskey SDK for JavaScript | ||||
| - [mfm.js](https://github.com/misskey-dev/mfm.js) - MFM parser | ||||
|  | ||||
| Sponsors | ||||
| ---------------------------------------------------------------- | ||||
| <div align="center"> | ||||
| 	<a class="rss3" title="RSS3" href="https://rss3.io/" target="_blank" style="display: inline-block;"><img src="https://rss3.io/assets/images/Logo.svg" alt="RSS3" style="display: inline-block; height: 60px;"></a> | ||||
| </div> | ||||
|  | ||||
| :heart: Backers | ||||
| ---------------------------------------------------------------- | ||||
| <!-- PATREON_START --> | ||||
|   | ||||
							
								
								
									
										
											BIN
										
									
								
								assets/client/sounds/syuilo/queue-jammed.mp3
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								assets/client/sounds/syuilo/queue-jammed.mp3
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								assets/client/sparkle-spritesheet.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								assets/client/sparkle-spritesheet.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| After Width: | Height: | Size: 185 B | 
| @@ -2,6 +2,6 @@ files: | ||||
|   - source: /locales/ja-JP.yml | ||||
|     translation: /locales/%locale%.yml | ||||
|     update_option: update_as_unapproved | ||||
|   - source: /src/docs/ja-JP/*.md | ||||
|     translation: /src/docs/%locale%/%original_file_name% | ||||
|   - source: /src/docs/ja-JP/**/*.md | ||||
|     translation: /src/docs/%locale%/**/%original_file_name% | ||||
|     update_option: update_as_unapproved | ||||
|   | ||||
							
								
								
									
										3
									
								
								cypress.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								cypress.json
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,3 @@ | ||||
| { | ||||
| 	"baseUrl": "http://localhost" | ||||
| } | ||||
							
								
								
									
										5
									
								
								cypress/fixtures/example.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								cypress/fixtures/example.json
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,5 @@ | ||||
| { | ||||
|   "name": "Using fixtures to represent data", | ||||
|   "email": "hello@cypress.io", | ||||
|   "body": "Fixtures are a great way to mock data for responses to routes" | ||||
| } | ||||
							
								
								
									
										189
									
								
								cypress/integration/basic.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										189
									
								
								cypress/integration/basic.js
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,189 @@ | ||||
| describe('Before setup instance', () => { | ||||
| 	beforeEach(() => { | ||||
| 		cy.request('POST', '/api/reset-db').as('reset'); | ||||
| 		cy.get('@reset').its('status').should('equal', 204); | ||||
| 		cy.reload(true); | ||||
| 	}); | ||||
|  | ||||
| 	afterEach(() => { | ||||
| 		// テスト終了直前にページ遷移するようなテストケース(例えばアカウント作成)だと、たぶんCypressのバグでブラウザの内容が次のテストケースに引き継がれてしまう(例えばアカウントが作成し終わった段階からテストが始まる)。 | ||||
| 		// waitを入れることでそれを防止できる | ||||
| 		cy.wait(1000); | ||||
| 	}); | ||||
|  | ||||
|   it('successfully loads', () => { | ||||
|     cy.visit('/'); | ||||
|   }); | ||||
|  | ||||
| 	it('setup instance', () => { | ||||
|     cy.visit('/'); | ||||
|  | ||||
| 		cy.intercept('POST', '/api/admin/accounts/create').as('signup'); | ||||
| 	 | ||||
| 		cy.get('[data-cy-admin-username] input').type('admin'); | ||||
| 		cy.get('[data-cy-admin-password] input').type('admin1234'); | ||||
| 		cy.get('[data-cy-admin-ok]').click(); | ||||
|  | ||||
| 		// なぜか動かない | ||||
| 		//cy.wait('@signup').should('have.property', 'response.statusCode'); | ||||
| 		cy.wait('@signup'); | ||||
|   }); | ||||
| }); | ||||
|  | ||||
| describe('After setup instance', () => { | ||||
| 	beforeEach(() => { | ||||
| 		cy.request('POST', '/api/reset-db').as('reset'); | ||||
| 		cy.get('@reset').its('status').should('equal', 204); | ||||
| 		cy.reload(true); | ||||
|  | ||||
| 		// インスタンス初期セットアップ | ||||
| 		cy.request('POST', '/api/admin/accounts/create', { | ||||
| 			username: 'admin', | ||||
| 			password: 'pass', | ||||
| 		}).its('body').as('admin'); | ||||
|  | ||||
| 		cy.get('@admin'); | ||||
| 	}); | ||||
|  | ||||
| 	afterEach(() => { | ||||
| 		// テスト終了直前にページ遷移するようなテストケース(例えばアカウント作成)だと、たぶんCypressのバグでブラウザの内容が次のテストケースに引き継がれてしまう(例えばアカウントが作成し終わった段階からテストが始まる)。 | ||||
| 		// waitを入れることでそれを防止できる | ||||
| 		cy.wait(1000); | ||||
| 	}); | ||||
|  | ||||
|   it('successfully loads', () => { | ||||
|     cy.visit('/'); | ||||
|   }); | ||||
|  | ||||
| 	it('signup', () => { | ||||
| 		cy.visit('/'); | ||||
|  | ||||
| 		cy.intercept('POST', '/api/signup').as('signup'); | ||||
|  | ||||
| 		cy.get('[data-cy-signup]').click(); | ||||
| 		cy.get('[data-cy-signup-username] input').type('alice'); | ||||
| 		cy.get('[data-cy-signup-password] input').type('alice1234'); | ||||
| 		cy.get('[data-cy-signup-password-retype] input').type('alice1234'); | ||||
| 		cy.get('[data-cy-signup-submit]').click(); | ||||
|  | ||||
| 		cy.wait('@signup'); | ||||
|   }); | ||||
| }); | ||||
|  | ||||
| describe('After user signup', () => { | ||||
| 	beforeEach(() => { | ||||
| 		cy.request('POST', '/api/reset-db').as('reset'); | ||||
| 		cy.get('@reset').its('status').should('equal', 204); | ||||
| 		cy.reload(true); | ||||
|  | ||||
| 		// インスタンス初期セットアップ | ||||
| 		cy.request('POST', '/api/admin/accounts/create', { | ||||
| 			username: 'admin', | ||||
| 			password: 'pass', | ||||
| 		}).its('body').as('admin'); | ||||
|  | ||||
| 		cy.get('@admin').then(() => { | ||||
| 			// ユーザー作成 | ||||
| 			cy.request('POST', '/api/signup', { | ||||
| 				username: 'alice', | ||||
| 				password: 'alice1234', | ||||
| 			}).its('body').as('alice'); | ||||
| 		}); | ||||
|  | ||||
| 		cy.get('@alice'); | ||||
| 	}); | ||||
|  | ||||
| 	afterEach(() => { | ||||
| 		// テスト終了直前にページ遷移するようなテストケース(例えばアカウント作成)だと、たぶんCypressのバグでブラウザの内容が次のテストケースに引き継がれてしまう(例えばアカウントが作成し終わった段階からテストが始まる)。 | ||||
| 		// waitを入れることでそれを防止できる | ||||
| 		cy.wait(1000); | ||||
| 	}); | ||||
|  | ||||
|   it('successfully loads', () => { | ||||
|     cy.visit('/'); | ||||
|   }); | ||||
|  | ||||
| 	it('signin', () => { | ||||
| 		cy.visit('/'); | ||||
|  | ||||
| 		cy.intercept('POST', '/api/signin').as('signin'); | ||||
|  | ||||
| 		cy.get('[data-cy-signin]').click(); | ||||
| 		cy.get('[data-cy-signin-username] input').type('alice'); | ||||
| 		// Enterキーでサインインできるかの確認も兼ねる | ||||
| 		cy.get('[data-cy-signin-password] input').type('alice1234{enter}'); | ||||
|  | ||||
| 		cy.wait('@signin'); | ||||
|   }); | ||||
|  | ||||
| 	it('suspend', function() { | ||||
| 		cy.request('POST', '/api/admin/suspend-user', { | ||||
| 			i: this.admin.token, | ||||
| 			userId: this.alice.id, | ||||
| 		}); | ||||
|  | ||||
| 		cy.visit('/'); | ||||
|  | ||||
| 		cy.get('[data-cy-signin]').click(); | ||||
| 		cy.get('[data-cy-signin-username] input').type('alice'); | ||||
| 		cy.get('[data-cy-signin-password] input').type('alice1234{enter}'); | ||||
|  | ||||
| 		cy.contains('アカウントが凍結されています'); | ||||
| 	}); | ||||
| }); | ||||
|  | ||||
| describe('After user singed in', () => { | ||||
| 	beforeEach(() => { | ||||
| 		cy.request('POST', '/api/reset-db').as('reset'); | ||||
| 		cy.get('@reset').its('status').should('equal', 204); | ||||
| 		cy.reload(true); | ||||
|  | ||||
| 		// インスタンス初期セットアップ | ||||
| 		cy.request('POST', '/api/admin/accounts/create', { | ||||
| 			username: 'admin', | ||||
| 			password: 'pass', | ||||
| 		}).its('body').as('admin'); | ||||
|  | ||||
| 		cy.get('@admin').then(() => { | ||||
| 			// ユーザー作成 | ||||
| 			cy.request('POST', '/api/signup', { | ||||
| 				username: 'alice', | ||||
| 				password: 'alice1234', | ||||
| 			}).its('body').as('alice'); | ||||
| 		}); | ||||
|  | ||||
| 		cy.get('@alice').then(() => { | ||||
| 			cy.visit('/'); | ||||
|  | ||||
| 			cy.intercept('POST', '/api/signin').as('signin'); | ||||
|  | ||||
| 			cy.get('[data-cy-signin]').click(); | ||||
| 			cy.get('[data-cy-signin-username] input').type('alice'); | ||||
| 			cy.get('[data-cy-signin-password] input').type('alice1234{enter}'); | ||||
|  | ||||
| 			cy.wait('@signin').as('signedIn'); | ||||
| 		}); | ||||
|  | ||||
| 		cy.get('@signedIn'); | ||||
| 	}); | ||||
|  | ||||
| 	afterEach(() => { | ||||
| 		// テスト終了直前にページ遷移するようなテストケース(例えばアカウント作成)だと、たぶんCypressのバグでブラウザの内容が次のテストケースに引き継がれてしまう(例えばアカウントが作成し終わった段階からテストが始まる)。 | ||||
| 		// waitを入れることでそれを防止できる | ||||
| 		cy.wait(1000); | ||||
| 	}); | ||||
|  | ||||
|   it('successfully loads', () => { | ||||
|     cy.visit('/'); | ||||
|   }); | ||||
|  | ||||
| 	it('note', () => { | ||||
|     cy.visit('/'); | ||||
|  | ||||
| 		cy.get('[data-cy-open-post-form]').click(); | ||||
| 		cy.get('[data-cy-post-form-text]').type('Hello, Misskey!'); | ||||
| 		cy.get('[data-cy-open-post-form-submit]').click(); | ||||
|  | ||||
| 		cy.contains('Hello, Misskey!'); | ||||
|   }); | ||||
| }); | ||||
							
								
								
									
										22
									
								
								cypress/plugins/index.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								cypress/plugins/index.js
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,22 @@ | ||||
| /// <reference types="cypress" /> | ||||
| // *********************************************************** | ||||
| // This example plugins/index.js can be used to load plugins | ||||
| // | ||||
| // You can change the location of this file or turn off loading | ||||
| // the plugins file with the 'pluginsFile' configuration option. | ||||
| // | ||||
| // You can read more here: | ||||
| // https://on.cypress.io/plugins-guide | ||||
| // *********************************************************** | ||||
|  | ||||
| // This function is called when a project is opened or re-opened (e.g. due to | ||||
| // the project's config changing) | ||||
|  | ||||
| /** | ||||
|  * @type {Cypress.PluginConfig} | ||||
|  */ | ||||
| // eslint-disable-next-line no-unused-vars | ||||
| module.exports = (on, config) => { | ||||
|   // `on` is used to hook into various events Cypress emits | ||||
|   // `config` is the resolved Cypress config | ||||
| } | ||||
							
								
								
									
										25
									
								
								cypress/support/commands.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										25
									
								
								cypress/support/commands.js
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,25 @@ | ||||
| // *********************************************** | ||||
| // This example commands.js shows you how to | ||||
| // create various custom commands and overwrite | ||||
| // existing commands. | ||||
| // | ||||
| // For more comprehensive examples of custom | ||||
| // commands please read more here: | ||||
| // https://on.cypress.io/custom-commands | ||||
| // *********************************************** | ||||
| // | ||||
| // | ||||
| // -- This is a parent command -- | ||||
| // Cypress.Commands.add('login', (email, password) => { ... }) | ||||
| // | ||||
| // | ||||
| // -- This is a child command -- | ||||
| // Cypress.Commands.add('drag', { prevSubject: 'element'}, (subject, options) => { ... }) | ||||
| // | ||||
| // | ||||
| // -- This is a dual command -- | ||||
| // Cypress.Commands.add('dismiss', { prevSubject: 'optional'}, (subject, options) => { ... }) | ||||
| // | ||||
| // | ||||
| // -- This will overwrite an existing command -- | ||||
| // Cypress.Commands.overwrite('visit', (originalFn, url, options) => { ... }) | ||||
							
								
								
									
										20
									
								
								cypress/support/index.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								cypress/support/index.js
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,20 @@ | ||||
| // *********************************************************** | ||||
| // This example support/index.js is processed and | ||||
| // loaded automatically before your test files. | ||||
| // | ||||
| // This is a great place to put global configuration and | ||||
| // behavior that modifies Cypress. | ||||
| // | ||||
| // You can change the location of this file or turn off | ||||
| // automatically serving support files with the | ||||
| // 'supportFile' configuration option. | ||||
| // | ||||
| // You can read more here: | ||||
| // https://on.cypress.io/configuration | ||||
| // *********************************************************** | ||||
|  | ||||
| // Import commands.js using ES2015 syntax: | ||||
| import './commands' | ||||
|  | ||||
| // Alternatively you can use CommonJS syntax: | ||||
| // require('./commands') | ||||
| @@ -15,6 +15,7 @@ services: | ||||
|       - external_network | ||||
|     volumes: | ||||
|       - ./files:/misskey/files | ||||
|       - ./.config:/misskey/.config:ro | ||||
|  | ||||
|   redis: | ||||
|     restart: always | ||||
|   | ||||
| @@ -83,10 +83,11 @@ Just `docker-compose up -d`. GLHF! | ||||
| 1. `git stash` | ||||
| 2. `git checkout master` | ||||
| 3. `git pull` | ||||
| 4. `git stash pop` | ||||
| 5. `docker-compose build` | ||||
| 6. Check [ChangeLog](../CHANGELOG.md) for migration information | ||||
| 7. `docker-compose stop && docker-compose up -d` | ||||
| 4. `git submodule update --init` | ||||
| 5. `git stash pop` | ||||
| 6. `docker-compose build` | ||||
| 7. Check [ChangeLog](../CHANGELOG.md) for migration information | ||||
| 8. `docker-compose stop && docker-compose up -d` | ||||
|  | ||||
| ### How to execute [cli commands](manage.en.md): | ||||
| `docker-compose run --rm web node built/tools/mark-admin @example` | ||||
|   | ||||
| @@ -50,10 +50,11 @@ Utilisez la commande `docker-compose up -d`. GLHF! | ||||
| 1. `git stash` | ||||
| 2. `git checkout master` | ||||
| 3. `git pull` | ||||
| 4. `git stash pop` | ||||
| 5. `docker-compose build` | ||||
| 6. Consultez le [ChangeLog](../CHANGELOG.md) pour avoir les éventuelles informations de migration | ||||
| 7. `docker-compose stop && docker-compose up -d` | ||||
| 4. `git submodule update --init` | ||||
| 5. `git stash pop` | ||||
| 6. `docker-compose build` | ||||
| 7. Consultez le [ChangeLog](../CHANGELOG.md) pour avoir les éventuelles informations de migration | ||||
| 8. `docker-compose stop && docker-compose up -d` | ||||
|  | ||||
| ### Comment exécuter des [commandes](manage.fr.md) | ||||
| `docker-compose run --rm web node built/tools/mark-admin @example` | ||||
|   | ||||
| @@ -83,10 +83,11 @@ docker-compose run --rm web yarn run init | ||||
| 1. `git stash` | ||||
| 2. `git checkout master` | ||||
| 3. `git pull` | ||||
| 4. `git stash pop` | ||||
| 5. `docker-compose build` | ||||
| 6. [ChangeLog](../CHANGELOG.md)でマイグレーション情報を確認する | ||||
| 7. `docker-compose stop && docker-compose up -d` | ||||
| 4. `git submodule update --init` | ||||
| 5. `git stash pop` | ||||
| 6. `docker-compose build` | ||||
| 7. [ChangeLog](../CHANGELOG.md)でマイグレーション情報を確認する | ||||
| 8. `docker-compose stop && docker-compose up -d` | ||||
|  | ||||
| ### cliコマンドを実行する方法: | ||||
|  | ||||
|   | ||||
| @@ -83,10 +83,11 @@ docker-compose run --rm web yarn run init | ||||
| 1. `git stash` | ||||
| 2. `git checkout master` | ||||
| 3. `git pull` | ||||
| 4. `git stash pop` | ||||
| 5. `docker-compose build` | ||||
| 6. 检查 [更新日志](../CHANGELOG.md) 以获取升级迁移信息。 | ||||
| 7. `docker-compose stop && docker-compose up -d` | ||||
| 4. `git submodule update --init` | ||||
| 5. `git stash pop` | ||||
| 6. `docker-compose build` | ||||
| 7. 检查 [更新日志](../CHANGELOG.md) 以获取升级迁移信息。 | ||||
| 8. `docker-compose stop && docker-compose up -d` | ||||
|  | ||||
| ### 如何执行 [控制台指令](manage.zh.md): | ||||
| `docker-compose run --rm web node built/tools/mark-admin @example` | ||||
|   | ||||
							
								
								
									
										28
									
								
								docs/push-docker-hub.ja.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										28
									
								
								docs/push-docker-hub.ja.md
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,28 @@ | ||||
| GitHub Actionsを使用してDocker Hubへpushする方法 | ||||
| ================================================================ | ||||
|  | ||||
| [/.github/workflows/docker.yml](/.github/workflows/docker.yml) に   | ||||
| GitHub ActionによりDocker Hubへpushするワークフローが記述されています。 | ||||
|  | ||||
| オリジナルリポジトリでは、リリースされたタイミングで `latest`, `<リリース名>` それぞれのタグでDocker Hubにpushされます。   | ||||
| ※ Docker Hub に`<ブランチ名>`のようなタグがあるかもしれませんが、こちらは自動push対象ではありません。 | ||||
|  | ||||
| Fork先でこのワークフローを実行すると失敗します。 | ||||
|  | ||||
| 以下では、Fork先で自分のDocker Hubリポジトリにpushするようにする方法を記述します。 | ||||
|  | ||||
| ## 自分のDocker Hubリポジトリにpushするように設定する方法 | ||||
|  | ||||
| 1. Docker Hubでリポジトリを作成します。 | ||||
| 2. ワークフローファイルの [images](https://github.com/misskey-dev/misskey/blob/53f3b779bf16abcda4f6e026c51384f3b8fbcc62/.github/workflows/docker.yml#L20) を作成したリポジトリに置き換えます。 | ||||
| 3. GitHubにて [暗号化されたシークレット](https://docs.github.com/ja/actions/reference/encrypted-secrets#creating-encrypted-secrets-for-a-repository) を作成します。   | ||||
|    作成が必要なのは `DOCKER_USERNAME` と `DOCKER_PASSWORD` で、それぞれDocker Hubのユーザーとパスワードになります。 | ||||
|  | ||||
| ## pushする方法 | ||||
|  | ||||
| 上記設定によりリリース時に自動的にDocker Hubにpushされるようになります。   | ||||
| 具体的には、GitHubのリリース機能でリリースしたタイミングで `latest`, `<リリース名>` それぞれのタグでDocker Hubにpushされます。 | ||||
|  | ||||
| また、GitHub上から手動でpushすることも出来ます。   | ||||
| それを行うには、Actions => Publish Docker image => Run workflow からbranchを選択してワークフローを実行します。   | ||||
| ただし、この場合作成されるタグは`<ブランチ名>`になります。 | ||||
| @@ -24,7 +24,7 @@ Please install and setup these softwares: | ||||
|  | ||||
| #### Dependencies :package: | ||||
| * **[Node.js](https://nodejs.org/en/)** (12.x, 14.x) | ||||
| * **[PostgreSQL](https://www.postgresql.org/)** (>= 10) | ||||
| * **[PostgreSQL](https://www.postgresql.org/)** (12.x / 13.x is preferred) | ||||
| * **[Redis](https://redis.io/)** | ||||
|  | ||||
| ##### Optional | ||||
| @@ -131,11 +131,12 @@ You can check if the service is running with `systemctl status misskey`. | ||||
| ### How to update your Misskey server to the latest version | ||||
| 1. `git checkout master` | ||||
| 2. `git pull` | ||||
| 3. `yarn install` | ||||
| 4. `NODE_ENV=production yarn build` | ||||
| 5. `yarn migrate` | ||||
| 6. Restart your Misskey process to apply changes | ||||
| 7. Enjoy | ||||
| 3. `git submodule update --init` | ||||
| 4. `yarn install` | ||||
| 5. `NODE_ENV=production yarn build` | ||||
| 6. `yarn migrate` | ||||
| 7. Restart your Misskey process to apply changes | ||||
| 8. Enjoy | ||||
|  | ||||
| If you encounter any problems with updating, please try the following: | ||||
| 1. `yarn clean` or `yarn cleanall` | ||||
|   | ||||
| @@ -126,9 +126,10 @@ Vous pouvez vérifier si le service a démarré en utilisant la commande `system | ||||
| ### Méthode de mise à jour vers la plus récente version de Misskey | ||||
| 1. `git checkout master` | ||||
| 2. `git pull` | ||||
| 3. `yarn install` | ||||
| 4. `NODE_ENV=production yarn build` | ||||
| 5. `yarn migrate` | ||||
| 3. `git submodule update --init` | ||||
| 4. `yarn install` | ||||
| 5. `NODE_ENV=production yarn build` | ||||
| 6. `yarn migrate` | ||||
|  | ||||
| ---------------------------------------------------------------- | ||||
|  | ||||
|   | ||||
| @@ -133,9 +133,10 @@ yarn run init | ||||
| ### Misskeyを最新バージョンにアップデートする方法: | ||||
| 1. `git checkout master` | ||||
| 2. `git pull` | ||||
| 3. `yarn install` | ||||
| 4. `NODE_ENV=production yarn build` | ||||
| 5. `yarn migrate` | ||||
| 3. `git submodule update --init` | ||||
| 4. `yarn install` | ||||
| 5. `NODE_ENV=production yarn build` | ||||
| 6. `yarn migrate` | ||||
|  | ||||
| なにか問題が発生した場合は、`yarn clean`または`yarn cleanall`すると直る場合があります。 | ||||
|  | ||||
|   | ||||
| @@ -131,11 +131,12 @@ yarn run init | ||||
| ### 如何将您的 Misskey 服务器升级至最新版本 | ||||
| 1. `git checkout master` | ||||
| 2. `git pull` | ||||
| 3. `yarn install` | ||||
| 4. `NODE_ENV=production yarn build` | ||||
| 5. `yarn migrate` | ||||
| 6. 重启您的 Misskey 进程来应用改变。 | ||||
| 7. 尽情享受吧! | ||||
| 3. `git submodule update --init` | ||||
| 4. `yarn install` | ||||
| 5. `NODE_ENV=production yarn build` | ||||
| 6. `yarn migrate` | ||||
| 7. 重启您的 Misskey 进程来应用改变。 | ||||
| 8. 尽情享受吧! | ||||
|  | ||||
| 如果您在更新时遇到任何问题,请尝试以下操作: | ||||
| 1. `yarn clean` 或是 `yarn cleanall` | ||||
|   | ||||
							
								
								
									
										10
									
								
								index.js
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								index.js
									
									
									
									
									
								
							| @@ -1,3 +1,13 @@ | ||||
| /* | ||||
| import * as fs from 'fs'; | ||||
|  | ||||
| if (fs.existsSync('./built')) { | ||||
| 	import('./built/index.js').then(built => built()); | ||||
| } else { | ||||
| 	console.log('Built code is not found. Probably an error occurred during a build or you just forgot to build.'); | ||||
| } | ||||
| */ | ||||
|  | ||||
| const fs = require('fs'); | ||||
|  | ||||
| if (fs.existsSync('./built')) { | ||||
|   | ||||
| @@ -427,9 +427,13 @@ inUse: "مستخدم" | ||||
| info: "عن" | ||||
| user: "المستخدمون" | ||||
| administration: "إدارة " | ||||
| postToGallery: "انشر في المعرض" | ||||
| gallery: "المعرض" | ||||
| expiration: "ينتهي استطلاع الرأي في" | ||||
| middle: "متوسط" | ||||
| global: "الشامل" | ||||
| _docs: | ||||
|   admin: "إدارة " | ||||
| _email: | ||||
|   _follow: | ||||
|     title: "يتابعك" | ||||
|   | ||||
| @@ -111,6 +111,7 @@ editWidgets: "Upravit widget" | ||||
| editWidgetsExit: "Hotovo" | ||||
| customEmojis: "Vlastní emoji" | ||||
| emoji: "Emoji" | ||||
| emojis: "Emoji" | ||||
| emojiName: "Jméno emoji" | ||||
| emojiUrl: "URL obrázku" | ||||
| addEmoji: "Přidat emoji" | ||||
|   | ||||
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							| @@ -127,6 +127,7 @@ editWidgets: "Editar widgets" | ||||
| editWidgetsExit: "Terminar edición" | ||||
| customEmojis: "Emojis personalizados" | ||||
| emoji: "Emoji" | ||||
| emojis: "Emoji" | ||||
| emojiName: "Nombre del emoji" | ||||
| emojiUrl: "URL de la imágen del emoji" | ||||
| addEmoji: "Agregar emoji" | ||||
| @@ -665,6 +666,10 @@ administration: "Administrar" | ||||
| expiration: "Termina el" | ||||
| middle: "Mediano" | ||||
| global: "Global" | ||||
| sent: "Enviar" | ||||
| hashtags: "Hashtag" | ||||
| _docs: | ||||
|   admin: "Administrar" | ||||
| _ad: | ||||
|   back: "Deseleccionar" | ||||
| _gallery: | ||||
|   | ||||
| @@ -91,11 +91,11 @@ followRequests: "Demandes d’abonnement" | ||||
| unfollow: "Se désabonner" | ||||
| followRequestPending: "Demande d'abonnement en attente de confirmation" | ||||
| enterEmoji: "Insérer un émoji" | ||||
| renote: "Partager" | ||||
| unrenote: "Annuler le partage" | ||||
| renoted: "Republié !" | ||||
| cantRenote: "Ce message ne peut pas être republié." | ||||
| cantReRenote: "Impossible de repartager un partage." | ||||
| renote: "Renoter" | ||||
| unrenote: "Annuler la Renote" | ||||
| renoted: "Renoté !" | ||||
| cantRenote: "Ce message ne peut pas être renoté." | ||||
| cantReRenote: "Impossible de renoter une Renote." | ||||
| quote: "Citer" | ||||
| pinnedNote: "Note épinglée" | ||||
| pinned: "Épingler sur le profil" | ||||
| @@ -128,6 +128,7 @@ editWidgets: "Modifier les widgets" | ||||
| editWidgetsExit: "Valider les modifications" | ||||
| customEmojis: "Émojis personnalisés" | ||||
| emoji: "Émoji" | ||||
| emojis: "Émoji" | ||||
| emojiName: "Nom de l’émoji" | ||||
| emojiUrl: "URL de l’émoji" | ||||
| addEmoji: "Ajouter un émoji" | ||||
| @@ -428,7 +429,7 @@ invitationCode: "Code d’invitation" | ||||
| checking: "Vérification en cours..." | ||||
| available: "Disponible" | ||||
| unavailable: "Non disponible" | ||||
| usernameInvalidFormat: "Le nom d'utilisateur peut contenir uniquement des lettres, des chiffres et des _" | ||||
| usernameInvalidFormat: "Le nom d'utilisateur peut contenir uniquement des lettres (minuscules et/ou majuscules), des chiffres et des _" | ||||
| tooShort: "Trop court" | ||||
| tooLong: "Trop long" | ||||
| weakPassword: "Mot de passe faible" | ||||
| @@ -528,6 +529,8 @@ removeAllFollowing: "Retenir tous les abonnements" | ||||
| removeAllFollowingDescription: "Se désabonner de tous les comptes de {host}. Veuillez lancer cette action uniquement si l’instance n’existe plus." | ||||
| userSuspended: "Cet·te utilisateur·rice a été suspendu·e." | ||||
| userSilenced: "Cette utilisateur·trice a été mis·e en sourdine." | ||||
| yourAccountSuspendedTitle: "Ce compte est suspendu" | ||||
| menu: "Menu" | ||||
| divider: "Séparateur" | ||||
| addItem: "Ajouter un élément" | ||||
| rooms: "Chambre" | ||||
| @@ -636,9 +639,9 @@ manageAccessTokens: "Gérer les jetons d'accès" | ||||
| accountInfo: " Informations du compte " | ||||
| notesCount: "Nombre de notes" | ||||
| repliesCount: "Nombre de réponses envoyées" | ||||
| renotesCount: "Nombre de notes repartagées" | ||||
| renotesCount: "Nombre de notes que vous avez renotées" | ||||
| repliedCount: "Nombre de réponses reçues" | ||||
| renotedCount: "Nombre de Renotes" | ||||
| renotedCount: "Nombre de vos notes renotées" | ||||
| followingCount: "Nombre de comptes suivis" | ||||
| followersCount: "Nombre d'abonnés" | ||||
| sentReactionsCount: "Nombre de réactions envoyées" | ||||
| @@ -760,7 +763,43 @@ middle: "Moyen" | ||||
| low: "Basse" | ||||
| emailNotConfiguredWarning: "Vous n'avez pas configuré d'adresse e-mail." | ||||
| ratio: "Ratio" | ||||
| customCss: "CSS personnalisé" | ||||
| customCssWarn: "Utilisez cette fonctionnalité uniquement si vous savez exactement ce que vous faites. Une configuration inadaptée peut empêcher le client de s'exécuter normalement." | ||||
| global: "Global" | ||||
| squareAvatars: "Avatars carrés" | ||||
| sent: "Envoyer" | ||||
| received: "Reçu" | ||||
| searchResult: "Résultats de la recherche" | ||||
| hashtags: "Hashtags" | ||||
| troubleshooting: "Résolution de problèmes" | ||||
| useBlurEffect: "Utiliser des effets de flou dans l'interface" | ||||
| learnMore: "Plus d'informations" | ||||
| misskeyUpdated: "Misskey a été mis à jour !" | ||||
| whatIsNew: "Voir les derniers changements" | ||||
| translate: "Traduire" | ||||
| translatedFrom: "Traduit depuis {x}" | ||||
| accountDeletionInProgress: "La suppression de votre compte est en cours" | ||||
| usernameInfo: "C'est un nom qui identifie votre compte sur l'instance de manière unique. Vous pouvez utiliser des lettres de l'alphabet (minuscules et majuscules), des chiffres (de 0 à 9), ou bien le tiret « _ ». Vous ne pourrez pas modifier votre nom d'utilisateur·rice par la suite." | ||||
| aiChanMode: "Mode Ai" | ||||
| keepCw: "Garder le CW" | ||||
| pubSub: "Comptes Pub/Sub" | ||||
| lastCommunication: "Dernière communication" | ||||
| resolved: "Résolu" | ||||
| unresolved: "En attente" | ||||
| _accountDelete: | ||||
|   accountDelete: "Supprimer le compte" | ||||
|   mayTakeTime: "La suppression de compte nécessitant beaucoup de ressources, l'exécution du processus peut prendre du temps, en fonction de la quantité de contenus que vous avez créés et du nombre de fichiers que vous avez téléversés." | ||||
|   sendEmail: "Une fois la suppression de votre compte effectuée, un courriel sera envoyé à l'adresse que vous aviez enregistrée." | ||||
|   requestAccountDelete: "Demander la suppression de votre compte" | ||||
|   started: "La procédure de suppression a commencé." | ||||
|   inProgress: "Suppression en cours" | ||||
| _docs: | ||||
|   continueReading: "Lire plus" | ||||
|   features: "Fonctionnalités" | ||||
|   generalTopics: "Sujets généraux" | ||||
|   advancedTopics: "Sujets avancés" | ||||
|   admin: "Gestion" | ||||
|   translateWarn: "Ceci est une traduction dont le contenu peut différer du texte original." | ||||
| _ad: | ||||
|   back: "Retour" | ||||
|   reduceFrequencyOfThisAd: "Voir cette publicité moins souvent" | ||||
| @@ -859,6 +898,8 @@ _mfm: | ||||
|   blurDescription: "Le contenu peut être flouté ; il sera visible en le survolant avec le curseur." | ||||
|   font: "Police de caractères" | ||||
|   fontDescription: "Il est possible de choisir la police." | ||||
|   rainbow: "Arc-en-ciel" | ||||
|   rainbowDescription: "Permet d'afficher le contenu en couleurs arc-en-ciel." | ||||
| _reversi: | ||||
|   reversi: "Reversi" | ||||
|   gameSettings: "Réglages de la partie" | ||||
| @@ -911,6 +952,9 @@ _channel: | ||||
|   usersCount: "{n} Participant·e·s" | ||||
|   notesCount: "{n} Notes" | ||||
| _menuDisplay: | ||||
|   sideFull: "Latéral" | ||||
|   sideIcon: "Latéral (icônes)" | ||||
|   top: "Haut de page" | ||||
|   hide: "Masquer" | ||||
| _wordMute: | ||||
|   muteWords: "Mots à filtrer" | ||||
| @@ -969,7 +1013,7 @@ _theme: | ||||
|     hashtag: "Hashtags" | ||||
|     mention: "Mentionner" | ||||
|     mentionMe: "Mentions (Moi)" | ||||
|     renote: "Partager" | ||||
|     renote: "Renoter" | ||||
|     modalBg: "Modal d'arrière-plan" | ||||
|     divider: "Séparateur" | ||||
|     scrollbarHandle: "Poignée de la barre de navigation" | ||||
| @@ -1082,6 +1126,10 @@ _permissions: | ||||
|   "write:user-groups": "Éditer les groupes des utilisateur·rice·s" | ||||
|   "read:channels": "Lire les canaux" | ||||
|   "write:channels": "Gérer les canaux" | ||||
|   "read:gallery": "Voir la galerie" | ||||
|   "write:gallery": "Éditer la galerie" | ||||
|   "read:gallery-likes": "Voir les mentions « J'aime » dans la galerie" | ||||
|   "write:gallery-likes": "Gérer les mentions « J'aime » dans la galerie" | ||||
| _auth: | ||||
|   shareAccess: "Autoriser \"{name}\" à accéder à votre compte ?" | ||||
|   shareAccessAsk: "Voulez-vous vraiment autoriser cette application à accéder à votre compte?" | ||||
| @@ -1122,6 +1170,7 @@ _widgets: | ||||
|   jobQueue: "File d’attente" | ||||
|   serverMetric: "Statistiques du serveur" | ||||
|   aiscript: "Console AiScript" | ||||
|   aichan: "Ai" | ||||
| _cw: | ||||
|   hide: "Masquer" | ||||
|   show: "Afficher plus …" | ||||
| @@ -1590,11 +1639,11 @@ _notification: | ||||
|   youWereInvitedToGroup: "Invité·e au groupe" | ||||
|   _types: | ||||
|     all: "Toutes" | ||||
|     follow: "Abonnements" | ||||
|     follow: "Nouvel·le abonné·e" | ||||
|     mention: "Mentions" | ||||
|     reply: "Réponses" | ||||
|     renote: "Partager" | ||||
|     quote: "Citer" | ||||
|     renote: "Renotes" | ||||
|     quote: "Citations" | ||||
|     reaction: "Réactions" | ||||
|     pollVote: "Votes dans des sondages" | ||||
|     receiveFollowRequest: "Demande d'abonnement reçue" | ||||
|   | ||||
| @@ -128,6 +128,7 @@ editWidgets: "Sunting gawit" | ||||
| editWidgetsExit: "Selesai" | ||||
| customEmojis: "Emoji kustom" | ||||
| emoji: "Emoji" | ||||
| emojis: "Emoji" | ||||
| emojiName: "Nama emoji" | ||||
| emojiUrl: "URL Emoji" | ||||
| addEmoji: "Tambahkan emoji" | ||||
| @@ -528,6 +529,7 @@ removeAllFollowing: "Tahan semua mengikuti" | ||||
| removeAllFollowingDescription: "Batal mengikuti semua akun dari {host}. Mohon jalankan ini ketika instansi sudah tidak ada lagi." | ||||
| userSuspended: "Pengguna ini telah dibekukan." | ||||
| userSilenced: "Pengguna ini telah dibungkam." | ||||
| menu: "Menu" | ||||
| divider: "Pembagi" | ||||
| addItem: "Tambahkan item" | ||||
| rooms: "Ruang" | ||||
| @@ -760,7 +762,38 @@ middle: "Sedang" | ||||
| low: "Rendah" | ||||
| emailNotConfiguredWarning: "Alamat surel tidak disetel." | ||||
| ratio: "Rasio" | ||||
| customCss: "Custom CSS" | ||||
| customCssWarn: "Pengaturan ini seharusnya digunakan jika kamu tahu cara kerjanya. Memasukkan nilai yang tidak tepat dapat menyebabkan klien tidak berfungsi semestinya." | ||||
| global: "Global" | ||||
| squareAvatars: "Tampilkan avatar sebagai persegi" | ||||
| sent: "Kirim" | ||||
| received: "Diterima" | ||||
| searchResult: "Hasil Penelusuran" | ||||
| hashtags: "Tagar" | ||||
| troubleshooting: "Penyelesaian Masalah" | ||||
| useBlurEffect: "Gunakan efek blur pada antarmuka" | ||||
| learnMore: "Pelajari lebih lanjut" | ||||
| misskeyUpdated: "Misskey telah dimutakhirkan!" | ||||
| whatIsNew: "Lihat perubahan pemutakhiran" | ||||
| translate: "Terjemahkan" | ||||
| translatedFrom: "Terjemahkan dari {x}" | ||||
| accountDeletionInProgress: "Penghapusan akun sedang dalam proses" | ||||
| usernameInfo: "Nama yang mengidentifikasikan akun kamu dari yang lain pada server ini. Kamu dapat menggunakan alfabet (a~z, A~Z), digit (0~9) atau garis bawah (_). Username tidak dapat diubah setelahnya." | ||||
| keepCw: "Biarkan Peringatan Konten" | ||||
| _accountDelete: | ||||
|   accountDelete: "Hapus akun" | ||||
|   mayTakeTime: "Karena penghapusan akun merupakan proses yang berat dan intensif, kemungkinan dapat membutuhkan waktu untuk menyelesaikan tergantung daripada berapa banyak konten yang kamu buat dan berapa banyak berkas yang telah kamu unggah." | ||||
|   sendEmail: "Setelah penghapusan akun selesai, pemberitahuan akan dikirimkan ke alamat surel yang terdaftarkan pada akun ini." | ||||
|   requestAccountDelete: "Minta penghapusan akun" | ||||
|   started: "Penghapusan telah dimulai" | ||||
|   inProgress: "Penghapusan sedang dalam proses" | ||||
| _docs: | ||||
|   continueReading: "Baca lebih lanjut" | ||||
|   features: "Fitur" | ||||
|   generalTopics: "Topik umum" | ||||
|   advancedTopics: "Topik tingkat lanjut" | ||||
|   admin: "Manajemen" | ||||
|   translateWarn: "Ini merupakan dokumen terjemahan. Konten di dalamnya kemungkinan dapat berbeda dari yang aslinya." | ||||
| _ad: | ||||
|   back: "Kembali" | ||||
|   reduceFrequencyOfThisAd: "Tampilkan iklan ini lebih sedikit" | ||||
| @@ -859,6 +892,8 @@ _mfm: | ||||
|   blurDescription: "Konten dapat diburamkan dengan efek ini. Konten dapat ditampilkan dengan jelas dengan melayangkan kursor tetikus di atasnya." | ||||
|   font: "Font" | ||||
|   fontDescription: "Setel font yang ditampilkan untuk konten." | ||||
|   rainbow: "Pelangi" | ||||
|   rainbowDescription: "Membuat konten muncul dalam warna pelangi." | ||||
| _reversi: | ||||
|   reversi: "Reversi" | ||||
|   gameSettings: "Pengaturan permainan" | ||||
| @@ -911,6 +946,9 @@ _channel: | ||||
|   usersCount: "{n} Partisipan" | ||||
|   notesCount: "terdapat {n} catatan" | ||||
| _menuDisplay: | ||||
|   sideFull: "Horisontal" | ||||
|   sideIcon: "Horisontal (Ikon)" | ||||
|   top: "Atas" | ||||
|   hide: "Sembunyikan" | ||||
| _wordMute: | ||||
|   muteWords: "Kata yang dibisukan" | ||||
| @@ -1122,6 +1160,7 @@ _widgets: | ||||
|   jobQueue: "Antrian kerja" | ||||
|   serverMetric: "Statistik server" | ||||
|   aiscript: "Konsol AiScript" | ||||
|   aichan: "Ai" | ||||
| _cw: | ||||
|   hide: "Sembunyikan" | ||||
|   show: "Lihat konten" | ||||
|   | ||||
| @@ -127,6 +127,7 @@ editWidgets: "Modifica i widget" | ||||
| editWidgetsExit: "Modifica fine" | ||||
| customEmojis: "Emoji personalizzati" | ||||
| emoji: "Emoji" | ||||
| emojis: "Emoji" | ||||
| emojiName: "Nome dell'emoji" | ||||
| emojiUrl: "URL dell'emoji" | ||||
| addEmoji: "Aggiungi un emoji" | ||||
| @@ -741,6 +742,13 @@ low: "Bassa" | ||||
| emailNotConfiguredWarning: "Non hai impostato nessun indirizzo e-mail." | ||||
| ratio: "Rapporto" | ||||
| global: "Federata" | ||||
| sent: "Inviare" | ||||
| hashtags: "Hashtag" | ||||
| troubleshooting: "Risoluzione problemi" | ||||
| _docs: | ||||
|   continueReading: "Leggi di più" | ||||
|   features: "Funzionalità" | ||||
|   admin: "Gestione" | ||||
| _ad: | ||||
|   back: "Indietro" | ||||
|   reduceFrequencyOfThisAd: "Visualizza questa pubblicità meno spesso" | ||||
| @@ -799,6 +807,7 @@ _mfm: | ||||
|   blur: "Sfocatura" | ||||
|   font: "Tipo di carattere" | ||||
|   fontDescription: "Puoi scegliere il tipo di carattere per il contenuto." | ||||
|   rainbow: "Arcobaleno" | ||||
| _reversi: | ||||
|   reversi: "Reversi" | ||||
|   gameSettings: "Impostazioni di gioco" | ||||
| @@ -1386,12 +1395,12 @@ _notification: | ||||
|   youWereInvitedToGroup: "Invitat@ al gruppo" | ||||
|   _types: | ||||
|     all: "Tutto" | ||||
|     follow: "Follows" | ||||
|     follow: "Nuovə follower" | ||||
|     mention: "Menzioni" | ||||
|     reply: "Rispondi" | ||||
|     reply: "Risposte" | ||||
|     renote: "Rinota" | ||||
|     quote: "Cita" | ||||
|     reaction: "Reazione" | ||||
|     reaction: "Reazioni" | ||||
|     pollVote: "Voti ricevuti" | ||||
|     receiveFollowRequest: "Richiesta di follow ricevuta" | ||||
|     followRequestAccepted: "Richiesta di follow accettata" | ||||
|   | ||||
| @@ -128,6 +128,7 @@ editWidgets: "ウィジェットを編集" | ||||
| editWidgetsExit: "編集を終了" | ||||
| customEmojis: "カスタム絵文字" | ||||
| emoji: "絵文字" | ||||
| emojis: "絵文字" | ||||
| emojiName: "絵文字名" | ||||
| emojiUrl: "絵文字画像URL" | ||||
| addEmoji: "絵文字を追加" | ||||
| @@ -528,6 +529,8 @@ removeAllFollowing: "フォローを全解除" | ||||
| removeAllFollowingDescription: "{host}からのフォローをすべて解除します。そのインスタンスがもう存在しなくなった場合などに実行してください。" | ||||
| userSuspended: "このユーザーは凍結されています。" | ||||
| userSilenced: "このユーザーはサイレンスされています。" | ||||
| yourAccountSuspendedTitle: "アカウントが凍結されています" | ||||
| yourAccountSuspendedDescription: "このアカウントは、サーバーの利用規約に違反したなどの理由により、凍結されています。詳細については管理者までお問い合わせください。新しいアカウントを作らないでください。" | ||||
| menu: "メニュー" | ||||
| divider: "分割線" | ||||
| addItem: "項目を追加" | ||||
| @@ -765,6 +768,41 @@ customCss: "カスタムCSS" | ||||
| customCssWarn: "この設定は必ず知識のある方が行ってください。不適切な設定を行うとクライアントが正常に使用できなくなる恐れがあります。" | ||||
| global: "グローバル" | ||||
| squareAvatars: "アイコンを四角形で表示" | ||||
| sent: "送信" | ||||
| received: "受信" | ||||
| searchResult: "検索結果" | ||||
| hashtags: "ハッシュタグ" | ||||
| troubleshooting: "トラブルシューティング" | ||||
| useBlurEffect: "UIにぼかし効果を使用" | ||||
| learnMore: "詳しく" | ||||
| misskeyUpdated: "Misskeyが更新されました!" | ||||
| whatIsNew: "更新情報を見る" | ||||
| translate: "翻訳" | ||||
| translatedFrom: "{x}から翻訳" | ||||
| accountDeletionInProgress: "アカウントの削除が進行中です" | ||||
| usernameInfo: "サーバー上であなたのアカウントを一意に識別するための名前。アルファベット(a~z, A~Z)、数字(0~9)、およびアンダーバー(_)が使用できます。ユーザー名は後から変更することは出来ません。" | ||||
| aiChanMode: "藍モード" | ||||
| keepCw: "CWを維持する" | ||||
| pubSub: "Pub/Subのアカウント" | ||||
| lastCommunication: "直近の通信" | ||||
| resolved: "解決済み" | ||||
| unresolved: "未解決" | ||||
|  | ||||
| _accountDelete: | ||||
|   accountDelete: "アカウントの削除" | ||||
|   mayTakeTime: "アカウントの削除は負荷のかかる処理であるため、作成したコンテンツの数やアップロードしたファイルの数が多いと完了までに時間がかかることがあります。" | ||||
|   sendEmail: "アカウントの削除が完了する際は、登録してあったメールアドレス宛に通知を送信します。" | ||||
|   requestAccountDelete: "アカウント削除をリクエスト" | ||||
|   started: "削除処理が開始されました。" | ||||
|   inProgress: "削除が進行中" | ||||
|  | ||||
| _docs:  | ||||
|   continueReading: "続きを読む" | ||||
|   features: "機能" | ||||
|   generalTopics: "一般的なトピック" | ||||
|   advancedTopics: "高度なトピック" | ||||
|   admin: "管理" | ||||
|   translateWarn: "このドキュメントは翻訳されたものです。オリジナルとは内容が異なる場合があります。" | ||||
|  | ||||
| _ad: | ||||
|   back: "戻る" | ||||
| @@ -872,6 +910,10 @@ _mfm: | ||||
|   blurDescription: "内容をぼかすことができます。ポインターを上に乗せるとはっきり見えるようになります。" | ||||
|   font: "フォント" | ||||
|   fontDescription: "内容のフォントを指定することができます。" | ||||
|   rainbow: "レインボー" | ||||
|   rainbowDescription: "内容をレインボーにします。" | ||||
|   sparkle: "キラキラ" | ||||
|   sparkleDescription: "キラキラしたパーティクルのエフェクトを追加します。" | ||||
|  | ||||
| _reversi: | ||||
|   reversi: "リバーシ" | ||||
| @@ -1112,6 +1154,10 @@ _permissions: | ||||
|   "write:user-groups": "ユーザーグループを操作する" | ||||
|   "read:channels": "チャンネルを見る" | ||||
|   "write:channels": "チャンネルを操作する" | ||||
|   "read:gallery": "ギャラリーを見る" | ||||
|   "write:gallery": "ギャラリーを操作する" | ||||
|   "read:gallery-likes": "ギャラリーのいいねを見る" | ||||
|   "write:gallery-likes": "ギャラリーのいいねを操作する" | ||||
|  | ||||
| _auth: | ||||
|   shareAccess: "「{name}」がアカウントにアクセスすることを許可しますか?" | ||||
| @@ -1156,6 +1202,7 @@ _widgets: | ||||
|   jobQueue: "ジョブキュー" | ||||
|   serverMetric: "サーバーメトリクス" | ||||
|   aiscript: "AiScriptコンソール" | ||||
|   aichan: "藍" | ||||
|  | ||||
| _cw: | ||||
|   hide: "隠す" | ||||
|   | ||||
| @@ -7,6 +7,7 @@ search: "探す" | ||||
| notifications: "通知" | ||||
| username: "ユーザー名" | ||||
| password: "パスワード" | ||||
| forgotPassword: "パスワード忘れてん" | ||||
| fetchingAsApObject: "今ちと連合に照会しとるで" | ||||
| ok: "OKや" | ||||
| gotIt: "ほい" | ||||
| @@ -127,6 +128,7 @@ editWidgets: "ウィジェットをいじる" | ||||
| editWidgetsExit: "編集終ったで" | ||||
| customEmojis: "カスタム絵文字" | ||||
| emoji: "絵文字" | ||||
| emojis: "絵文字" | ||||
| emojiName: "絵文字名" | ||||
| emojiUrl: "絵文字画像URL" | ||||
| addEmoji: "絵文字を追加" | ||||
| @@ -138,6 +140,7 @@ flagAsBotDescription: "もしこのアカウントがプログラムによって | ||||
| flagAsCat: "Catやで" | ||||
| flagAsCatDescription: "ワレ、猫ちゃんならこのフラグをつけてみ?" | ||||
| autoAcceptFollowed: "フォローしとるユーザーからのフォローリクエストを勝手に許可しとく" | ||||
| addAccount: "アカウントを追加" | ||||
| loginFailed: "ログインに失敗してしもうた…" | ||||
| showOnRemote: "リモートで見る" | ||||
| general: "全般" | ||||
| @@ -242,7 +245,7 @@ messageRead: "もう読んだ" | ||||
| noMoreHistory: "これより過去の履歴はあらへんで" | ||||
| startMessaging: "チャットやるで" | ||||
| nUsersRead: "{n}人が読んでもうた" | ||||
| agreeTo: "{0}はええで" | ||||
| agreeTo: "{0}に同意したで" | ||||
| tos: "利用規約" | ||||
| start: "始める" | ||||
| home: "ホーム" | ||||
| @@ -277,6 +280,7 @@ emptyDrive: "ドライブにはなんも残っとらん" | ||||
| emptyFolder: "ふぉろだーにはなんも残っとらん" | ||||
| unableToDelete: "消そうおもってんけどな、あかんかったわ" | ||||
| inputNewFileName: "今度のファイル名は何にするん?" | ||||
| inputNewDescription: "新しいキャプションを入力しましょ" | ||||
| inputNewFolderName: "今度のフォルダ名は何にするん?" | ||||
| circularReferenceFolder: "移動先のフォルダーは、移動するフォルダーのサブフォルダーや。" | ||||
| hasChildFilesOrFolders: "このフォルダ、まだなんか入っとるから消されへん" | ||||
| @@ -342,7 +346,7 @@ antennaSource: "受信ソース(このソースは食われへん)" | ||||
| antennaKeywords: "受信キーワード" | ||||
| antennaExcludeKeywords: "除外キーワード" | ||||
| antennaKeywordsDescription: "スペースで区切ったるとAND指定で、改行で区切ったるとOR指定や" | ||||
| notifyAntenna: "新しいノートを追加すんで" | ||||
| notifyAntenna: "新しいノートを通知すんで" | ||||
| withFileAntenna: "なんか添付されたノートだけ" | ||||
| enableServiceworker: "ServiceWorkerをつこて" | ||||
| antennaUsersDescription: "ユーザー名を改行で区切ったってな" | ||||
| @@ -647,6 +651,10 @@ high: "高い" | ||||
| middle: "中" | ||||
| low: "低い" | ||||
| global: "グローバル" | ||||
| sent: "送信" | ||||
| hashtags: "ハッシュタグ" | ||||
| _docs: | ||||
|   admin: "管理" | ||||
| _ad: | ||||
|   back: "戻る" | ||||
| _gallery: | ||||
|   | ||||
| @@ -7,7 +7,9 @@ username: "Isem n umseqdac" | ||||
| password: "Awal uffir" | ||||
| ok: "IH" | ||||
| settings: "Iɣewwaṛen" | ||||
| otherSettings: "Iɣewwaren nniḍen" | ||||
| profile: "Amaɣnu" | ||||
| signup: "Jerred" | ||||
| save: "Sekles" | ||||
| delete: "Kkes" | ||||
| addToList: "Rnu ɣer tebdart" | ||||
| @@ -27,15 +29,32 @@ followers: "Imeḍfaṛen" | ||||
| followsYou: "Yeṭṭafaṛ-ik·em-id" | ||||
| createList: "Snulfu-d tabdart" | ||||
| enterListName: "Isem n tebdart" | ||||
| privacy: "Tabaḍnit" | ||||
| follow: "Ḍfeṛ" | ||||
| you: "Kečči·mmi" | ||||
| selectList: "Fren tabdart" | ||||
| youHaveNoLists: "Ulac ɣur-k·m ula d yiwet n tabdart" | ||||
| security: "Taɣellist" | ||||
| remove: "Kkes" | ||||
| connectService: "Qqen" | ||||
| userList: "Tibdarin" | ||||
| securityKey: "Tasarutt n tɣellist" | ||||
| securityKeyName: "Isem n tsarutt" | ||||
| signinRequired: "Ttxil jerred" | ||||
| signinWith: "Tuqqna s {x}" | ||||
| tapSecurityKey: "Sekcem tasarutt-ik·im n tɣellist" | ||||
| uiLanguage: "Tutlayt n wegrudem" | ||||
| accountSettings: "Iɣewwaṛen n umiḍan" | ||||
| plugins: "Izegrar" | ||||
| email: "Imayl" | ||||
| emailAddress: "Tansa imayl" | ||||
| smtpUser: "Isem n umseqdac" | ||||
| smtpPass: "Awal uffir" | ||||
| other: "Wiyyaḍ" | ||||
| accountInfo: "Talɣut n umiḍan" | ||||
| emailNotification: "Ilɣa imayl" | ||||
| selectAccount: "Fren amiḍan" | ||||
| accounts: "Imiḍan" | ||||
| _email: | ||||
|   _follow: | ||||
|     title: "Yeṭṭafaṛ-ik·em-id" | ||||
| @@ -48,6 +67,8 @@ _theme: | ||||
|     mention: "Bder" | ||||
| _sfx: | ||||
|   notification: "Ilɣuyen" | ||||
| _permissions: | ||||
|   "write:account": "Ẓreg talɣut n umiḍan-ik·im" | ||||
| _widgets: | ||||
|   notifications: "Ilɣuyen" | ||||
| _cw: | ||||
|   | ||||
| @@ -128,6 +128,7 @@ editWidgets: "위젯 편집" | ||||
| editWidgetsExit: "편집 종료" | ||||
| customEmojis: "커스텀 이모지" | ||||
| emoji: "이모지" | ||||
| emojis: "이모지" | ||||
| emojiName: "이모지 이름" | ||||
| emojiUrl: "이모지 URL" | ||||
| addEmoji: "이모지 추가" | ||||
| @@ -528,6 +529,9 @@ removeAllFollowing: "모든 팔로잉 해제" | ||||
| removeAllFollowingDescription: "{host}(으)로부터 모든 팔로잉을 해제합니다. 해당 인스턴스가 더 이상 존재하지 않게 된 경우 등에 실행해 주세요." | ||||
| userSuspended: "이 계정은 정지된 상태입니다." | ||||
| userSilenced: "이 계정은 사일런스된 상태입니다." | ||||
| yourAccountSuspendedTitle: "계정이 정지되었습니다" | ||||
| yourAccountSuspendedDescription: "이 계정은 서버의 이용 약관을 위반하거나, 기타 다른 이유로 인해 정지되었습니다. 자세한 사항은 관리자에게 문의해 주십시오. 계정을 새로 생성하지 마십시오." | ||||
| menu: "메뉴" | ||||
| divider: "구분선" | ||||
| addItem: "항목 추가" | ||||
| rooms: "방" | ||||
| @@ -760,7 +764,43 @@ middle: "보통" | ||||
| low: "낮음" | ||||
| emailNotConfiguredWarning: "메일 주소가 설정되어 있지 않습니다." | ||||
| ratio: "비율" | ||||
| customCss: "CSS 사용자화" | ||||
| customCssWarn: "이 설정은 기능을 알고 있는 경우에만 사용해야 합니다. 잘못된 값을 입력하면 클라이언트가 정상적으로 작동하지 않을 수 있습니다." | ||||
| global: "글로벌" | ||||
| squareAvatars: "프로필 아이콘을 사각형으로 표시" | ||||
| sent: "전송" | ||||
| received: "수신" | ||||
| searchResult: "검색 결과" | ||||
| hashtags: "해시태그" | ||||
| troubleshooting: "문제 해결" | ||||
| useBlurEffect: "UI에 흐림 효과 사용" | ||||
| learnMore: "자세히" | ||||
| misskeyUpdated: "Misskey가 업데이트 되었습니다!" | ||||
| whatIsNew: "패치 정보 보기" | ||||
| translate: "번역" | ||||
| translatedFrom: "{x}에서 번역" | ||||
| accountDeletionInProgress: "계정 삭제 작업을 진행하고 있습니다" | ||||
| usernameInfo: "서버상에서 계정을 식별하기 위한 이름. 알파벳(a~z, A~Z), 숫자(0~9) 및 언더바(_)를 사용할 수 있습니다. 사용자명은 나중에 변경할 수 없습니다." | ||||
| aiChanMode: "아이 모드" | ||||
| keepCw: "CW 유지하기" | ||||
| pubSub: "Pub/Sub 계정" | ||||
| lastCommunication: "마지막 통신" | ||||
| resolved: "해결됨" | ||||
| unresolved: "해결되지 않음" | ||||
| _accountDelete: | ||||
|   accountDelete: "계정 삭제" | ||||
|   mayTakeTime: "계정 삭제는 서버에 부하를 가하기 때문에, 작성한 콘텐츠나 업로드한 파일의 수가 많으면 완료까지 시간이 걸릴 수 있습니다." | ||||
|   sendEmail: "계정 삭제가 완료되면 등록된 이메일 주소로 알림을 보냅니다." | ||||
|   requestAccountDelete: "계정 삭제 요청" | ||||
|   started: "삭제 작업이 시작되었습니다." | ||||
|   inProgress: "삭제 진행 중" | ||||
| _docs: | ||||
|   continueReading: "계속 읽기" | ||||
|   features: "기능" | ||||
|   generalTopics: "일반 주제" | ||||
|   advancedTopics: "심화 주제" | ||||
|   admin: "관리" | ||||
|   translateWarn: "이 문서는 번역되었기 때문에 원본과는 내용이 다를 수 있습니다." | ||||
| _ad: | ||||
|   back: "뒤로" | ||||
|   reduceFrequencyOfThisAd: "이 광고의 표시 빈도 낮추기" | ||||
| @@ -859,6 +899,8 @@ _mfm: | ||||
|   blurDescription: "내용이 흐리게 보입니다. 마우스를 위에 올려두면 내용이 보입니다." | ||||
|   font: "폰트" | ||||
|   fontDescription: "내용의 글꼴을 지정할 수 있습니다." | ||||
|   rainbow: "무지개" | ||||
|   rainbowDescription: "내용을 무지개로 표시합니다." | ||||
| _reversi: | ||||
|   reversi: "리버시" | ||||
|   gameSettings: "대국 설정" | ||||
| @@ -911,6 +953,9 @@ _channel: | ||||
|   usersCount: "{n}명 참여 중" | ||||
|   notesCount: "{n}노트" | ||||
| _menuDisplay: | ||||
|   sideFull: "가로" | ||||
|   sideIcon: "가로(아이콘)" | ||||
|   top: "상단" | ||||
|   hide: "숨기기" | ||||
| _wordMute: | ||||
|   muteWords: "뮤트할 단어" | ||||
| @@ -1077,11 +1122,15 @@ _permissions: | ||||
|   "read:pages": "페이지를 봅니다" | ||||
|   "write:pages": "페이지를 수정합니다" | ||||
|   "read:page-likes": "페이지의 좋아요를 확인합니다" | ||||
|   "write:page-likes": "페이지의 좋아요를 추가하거나 삭제합니다" | ||||
|   "write:page-likes": "페이지에 좋아요를 추가하거나 취소합니다" | ||||
|   "read:user-groups": "유저 그룹을 조회합니다" | ||||
|   "write:user-groups": "유저 그룹을 만들거나, 초대하거나, 이름을 변경하거나, 양도하거나, 삭제합니다" | ||||
|   "read:channels": "채널을 보기" | ||||
|   "write:channels": "채널을 변경하기" | ||||
|   "write:channels": "채널을 추가하거나 삭제합니다" | ||||
|   "read:gallery": "갤러리를 봅니다" | ||||
|   "write:gallery": "갤러리를 추가하거나 삭제합니다" | ||||
|   "read:gallery-likes": "갤러리의 좋아요를 확인합니다" | ||||
|   "write:gallery-likes": "갤러리에 좋아요를 추가하거나 취소합니다" | ||||
| _auth: | ||||
|   shareAccess: "\"{name}\" 이 계정에 접근하는 것을 허용하시겠습니까?" | ||||
|   shareAccessAsk: "이 애플리케이션이 계정에 접근하는 것을 허용하시겠습니까?" | ||||
| @@ -1122,6 +1171,7 @@ _widgets: | ||||
|   jobQueue: "작업 대기열" | ||||
|   serverMetric: "서버 통계" | ||||
|   aiscript: "AiScript 콘솔" | ||||
|   aichan: "아이" | ||||
| _cw: | ||||
|   hide: "숨기기" | ||||
|   show: "더 보기" | ||||
|   | ||||
| @@ -128,6 +128,7 @@ editWidgets: "Edytuj widżet" | ||||
| editWidgetsExit: "Gotowe" | ||||
| customEmojis: "Niestandardowe emoji" | ||||
| emoji: "Emoji" | ||||
| emojis: "Emoji" | ||||
| emojiName: "Nazwa emoji" | ||||
| emojiUrl: "Adres URL emoji" | ||||
| addEmoji: "Dodaj emoji" | ||||
| @@ -735,6 +736,10 @@ low: "Niski" | ||||
| emailNotConfiguredWarning: "Nie podano adresu e-mail" | ||||
| ratio: "Stosunek" | ||||
| global: "Globalna" | ||||
| sent: "Wyślij" | ||||
| hashtags: "Hashtag" | ||||
| _docs: | ||||
|   admin: "Zarządzanie" | ||||
| _ad: | ||||
|   back: "Wróć" | ||||
|   reduceFrequencyOfThisAd: "Pokazuj tę reklamę rzadziej" | ||||
|   | ||||
| @@ -128,6 +128,7 @@ editWidgets: "Редактировать виджеты" | ||||
| editWidgetsExit: "Готово" | ||||
| customEmojis: "Эмодзи пользователя" | ||||
| emoji: "Эмодзи" | ||||
| emojis: "Эмодзи" | ||||
| emojiName: "Название эмодзи" | ||||
| emojiUrl: "URL эмодзи" | ||||
| addEmoji: "Добавить эмодзи" | ||||
| @@ -528,6 +529,7 @@ removeAllFollowing: "Удалить всех подписчиков" | ||||
| removeAllFollowingDescription: "Отменить все подписки с домена {host}? Пожалуйста, применяйте это действие, если инстанс больше не существует." | ||||
| userSuspended: "Эта учётная запись заморожена" | ||||
| userSilenced: "Этот пользователь был заглушен" | ||||
| menu: "Меню" | ||||
| divider: "Линия-разделитель" | ||||
| addItem: "Добавить элемент" | ||||
| rooms: "Комната" | ||||
| @@ -760,7 +762,26 @@ middle: "Средне" | ||||
| low: "Низкий" | ||||
| emailNotConfiguredWarning: "Не указан адрес электронной почты" | ||||
| ratio: "Соотношение" | ||||
| customCss: "Индивидуальный CSS" | ||||
| customCssWarn: "Используйте эту настройку только если знаете, что делаете. Ошибки здесь чреваты тем, что сайт перестанет нормально работать у вас." | ||||
| global: "Всеобщая" | ||||
| squareAvatars: "Квадратные аватарки" | ||||
| sent: "Отправить" | ||||
| received: "Получено" | ||||
| searchResult: "Результаты поиска" | ||||
| hashtags: "Хэштег" | ||||
| troubleshooting: "Разрешение проблем" | ||||
| useBlurEffect: "Размытие в интерфейсе" | ||||
| learnMore: "Подробнее" | ||||
| misskeyUpdated: "Misskey обновился!" | ||||
| whatIsNew: "Что новенького?" | ||||
| _docs: | ||||
|   continueReading: "Читать подробнее" | ||||
|   features: "Возможности" | ||||
|   generalTopics: "Основные темы" | ||||
|   advancedTopics: "Дополнительные темы" | ||||
|   admin: "Управление" | ||||
|   translateWarn: "Это перевод документа. Он может неточно отражать содержимое оригинала." | ||||
| _ad: | ||||
|   back: "Выход" | ||||
|   reduceFrequencyOfThisAd: "Реже показывать эту рекламу" | ||||
| @@ -859,6 +880,8 @@ _mfm: | ||||
|   blurDescription: "Размывает текст до нечитаемости, будто его поместили за матовое стекло. Наведение указателя мыши на размытый текст возвращает чёткость." | ||||
|   font: "Шрифт" | ||||
|   fontDescription: "Так можно писать произвольным шрифтом." | ||||
|   rainbow: "Радуга" | ||||
|   rainbowDescription: "Заставлять содержимое отображаться в цветах радуги." | ||||
| _reversi: | ||||
|   reversi: "Реверси" | ||||
|   gameSettings: "Настройки игры" | ||||
| @@ -911,6 +934,9 @@ _channel: | ||||
|   usersCount: "Участников: {n}" | ||||
|   notesCount: "Заметок: {n}" | ||||
| _menuDisplay: | ||||
|   sideFull: "Сторона" | ||||
|   sideIcon: "Сторона (иконки)" | ||||
|   top: "Вверх" | ||||
|   hide: "Спрятать" | ||||
| _wordMute: | ||||
|   muteWords: "Скрыть слово" | ||||
| @@ -1122,6 +1148,7 @@ _widgets: | ||||
|   jobQueue: "Очередь заданий" | ||||
|   serverMetric: "Показатели сервера" | ||||
|   aiscript: "Консоль AiScript" | ||||
|   aichan: "Ай" | ||||
| _cw: | ||||
|   hide: "Спрятать" | ||||
|   show: "Показать еще" | ||||
|   | ||||
| @@ -127,6 +127,7 @@ editWidgets: "Редагувати віджети" | ||||
| editWidgetsExit: "Готово" | ||||
| customEmojis: "Кастомні емоджі" | ||||
| emoji: "Емоджі" | ||||
| emojis: "Емоджі" | ||||
| emojiName: "Назва емоджі" | ||||
| emojiUrl: "URL емодзі" | ||||
| addEmoji: "Додати емодзі" | ||||
| @@ -689,6 +690,10 @@ administration: "Управління" | ||||
| expiration: "Опитування закінчується" | ||||
| middle: "Середній" | ||||
| global: "Глобальна" | ||||
| sent: "Відправити" | ||||
| hashtags: "Хештеґ" | ||||
| _docs: | ||||
|   admin: "Управління" | ||||
| _ad: | ||||
|   back: "Назад" | ||||
| _gallery: | ||||
|   | ||||
| @@ -128,6 +128,7 @@ editWidgets: "编辑小工具" | ||||
| editWidgetsExit: "完成编辑" | ||||
| customEmojis: "自定义表情符号" | ||||
| emoji: "表情符号" | ||||
| emojis: "表情符号" | ||||
| emojiName: "表情符号名称" | ||||
| emojiUrl: "表情符号地址" | ||||
| addEmoji: "添加表情符号" | ||||
| @@ -528,6 +529,8 @@ removeAllFollowing: "取消所有关注" | ||||
| removeAllFollowingDescription: "取消{host}的所有关注者。当实例不存在时执行。" | ||||
| userSuspended: "该用户已被冻结。" | ||||
| userSilenced: "该用户已被禁言。" | ||||
| yourAccountSuspendedTitle: "账户已被冻结" | ||||
| yourAccountSuspendedDescription: "由于违反了服务器的服务条款或其他原因,该账户已被冻结。 您可以与管理员联系以了解更多信息。 请不要创建一个新的帐户。" | ||||
| menu: "菜单" | ||||
| divider: "分割线" | ||||
| addItem: "添加项目" | ||||
| @@ -765,6 +768,39 @@ customCss: "自定义 CSS" | ||||
| customCssWarn: "这些设置必须有相关的基础知识,不当的配置可能导致客户端无法正常使用!" | ||||
| global: "全局" | ||||
| squareAvatars: "显示方形头像图标" | ||||
| sent: "发送" | ||||
| received: "收取" | ||||
| searchResult: "搜索结果" | ||||
| hashtags: "话题标签" | ||||
| troubleshooting: "故障排除" | ||||
| useBlurEffect: "在UI上使用模糊效果" | ||||
| learnMore: "更多信息" | ||||
| misskeyUpdated: "Misskey更新完成!" | ||||
| whatIsNew: "显示更新信息" | ||||
| translate: "翻译" | ||||
| translatedFrom: "从 {x} 翻译" | ||||
| accountDeletionInProgress: "正在删除账户" | ||||
| usernameInfo: "在服务器上唯一标识您的帐户的名称。您可以使用字母 (a ~ z, A ~ Z)、数字 (0 ~ 9) 和下划线 (_)。用户名以后不能更改。" | ||||
| aiChanMode: "小蓝模式" | ||||
| keepCw: "保留CW" | ||||
| pubSub: "Pub/Sub账户" | ||||
| lastCommunication: "最近通信" | ||||
| resolved: "已解决" | ||||
| unresolved: "未解决" | ||||
| _accountDelete: | ||||
|   accountDelete: "删除帐户" | ||||
|   mayTakeTime: "删除账号是一个性能损耗较大的处理,如果账号持有的内容数量和上传的文件数量较多的话,完成需要花费一段时间。" | ||||
|   sendEmail: "账户删除完成后,将向注册的电子邮件地址发送通知。" | ||||
|   requestAccountDelete: "请求删除账户" | ||||
|   started: "账户删除过程已开始。" | ||||
|   inProgress: "正在删除" | ||||
| _docs: | ||||
|   continueReading: "继续阅读" | ||||
|   features: "特性" | ||||
|   generalTopics: "通常提示" | ||||
|   advancedTopics: "进阶提示" | ||||
|   admin: "管理" | ||||
|   translateWarn: "本文档是翻译后的文档。内容可能与原文有所不同。" | ||||
| _ad: | ||||
|   back: "返回" | ||||
|   reduceFrequencyOfThisAd: "减少此广告的频率" | ||||
| @@ -863,6 +899,8 @@ _mfm: | ||||
|   blurDescription: "产生模糊效果。将鼠标指针放在上面即可将内容显示出来。" | ||||
|   font: "字体" | ||||
|   fontDescription: "可以设置内容所使用的字体。" | ||||
|   rainbow: "彩虹" | ||||
|   rainbowDescription: "用彩虹色来显示内容。" | ||||
| _reversi: | ||||
|   reversi: "黑白棋" | ||||
|   gameSettings: "对局设置" | ||||
| @@ -1089,6 +1127,10 @@ _permissions: | ||||
|   "write:user-groups": "操作用户组" | ||||
|   "read:channels": "查看频道" | ||||
|   "write:channels": "管理频道" | ||||
|   "read:gallery": "浏览图库" | ||||
|   "write:gallery": "操作图库" | ||||
|   "read:gallery-likes": "读取喜欢的图片" | ||||
|   "write:gallery-likes": "操作喜欢的图片" | ||||
| _auth: | ||||
|   shareAccess: "您要授权允许“{name}”访问您的帐户吗?" | ||||
|   shareAccessAsk: "您确定要授权此应用程序访问您的帐户吗?" | ||||
| @@ -1129,6 +1171,7 @@ _widgets: | ||||
|   jobQueue: "作业队列" | ||||
|   serverMetric: "服务器监控" | ||||
|   aiscript: "AiScript控制台" | ||||
|   aichan: "小蓝" | ||||
| _cw: | ||||
|   hide: "隐藏" | ||||
|   show: "查看更多" | ||||
|   | ||||
| @@ -128,6 +128,7 @@ editWidgets: "編輯小工具" | ||||
| editWidgetsExit: "完成" | ||||
| customEmojis: "自訂表情符號" | ||||
| emoji: "表情符號" | ||||
| emojis: "表情符號" | ||||
| emojiName: "表情符號名稱" | ||||
| emojiUrl: "表情符號URL" | ||||
| addEmoji: "加入表情符號" | ||||
| @@ -751,6 +752,10 @@ low: "低" | ||||
| emailNotConfiguredWarning: "沒有設定電子郵件地址" | ||||
| ratio: "%" | ||||
| global: "公開" | ||||
| sent: "發送" | ||||
| hashtags: "#tag" | ||||
| _docs: | ||||
|   admin: "管理" | ||||
| _ad: | ||||
|   back: "返回" | ||||
|   reduceFrequencyOfThisAd: "降低此廣告的頻率 " | ||||
|   | ||||
							
								
								
									
										182
									
								
								migration/1629004542760-chart-reindex.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										182
									
								
								migration/1629004542760-chart-reindex.ts
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,182 @@ | ||||
| import {MigrationInterface, QueryRunner} from "typeorm"; | ||||
|  | ||||
| export class chartReindex1629004542760 implements MigrationInterface { | ||||
|     name = 'chartReindex1629004542760' | ||||
|  | ||||
|     public async up(queryRunner: QueryRunner): Promise<void> { | ||||
|         await queryRunner.query(`DELETE FROM "__chart__active_users" a USING "__chart__active_users" b WHERE a.id < b.id AND ((a.group IS NULL AND b.group IS NULL) OR a.group = b.group) AND a.date = b.date;`); | ||||
|         await queryRunner.query(`DELETE FROM "__chart__drive" a USING "__chart__drive" b WHERE a.id < b.id AND ((a.group IS NULL AND b.group IS NULL) OR a.group = b.group) AND a.date = b.date;`); | ||||
|         await queryRunner.query(`DELETE FROM "__chart__federation" a USING "__chart__federation" b WHERE a.id < b.id AND ((a.group IS NULL AND b.group IS NULL) OR a.group = b.group) AND a.date = b.date;`); | ||||
|         await queryRunner.query(`DELETE FROM "__chart__hashtag" a USING "__chart__hashtag" b WHERE a.id < b.id AND ((a.group IS NULL AND b.group IS NULL) OR a.group = b.group) AND a.date = b.date;`); | ||||
|         await queryRunner.query(`DELETE FROM "__chart__instance" a USING "__chart__instance" b WHERE a.id < b.id AND ((a.group IS NULL AND b.group IS NULL) OR a.group = b.group) AND a.date = b.date;`); | ||||
|         await queryRunner.query(`DELETE FROM "__chart__network" a USING "__chart__network" b WHERE a.id < b.id AND ((a.group IS NULL AND b.group IS NULL) OR a.group = b.group) AND a.date = b.date;`); | ||||
|         await queryRunner.query(`DELETE FROM "__chart__notes" a USING "__chart__notes" b WHERE a.id < b.id AND ((a.group IS NULL AND b.group IS NULL) OR a.group = b.group) AND a.date = b.date;`); | ||||
|         await queryRunner.query(`DELETE FROM "__chart__per_user_drive" a USING "__chart__per_user_drive" b WHERE a.id < b.id AND ((a.group IS NULL AND b.group IS NULL) OR a.group = b.group) AND a.date = b.date;`); | ||||
|         await queryRunner.query(`DELETE FROM "__chart__per_user_following" a USING "__chart__per_user_following" b WHERE a.id < b.id AND ((a.group IS NULL AND b.group IS NULL) OR a.group = b.group) AND a.date = b.date;`); | ||||
|         await queryRunner.query(`DELETE FROM "__chart__per_user_notes" a USING "__chart__per_user_notes" b WHERE a.id < b.id AND ((a.group IS NULL AND b.group IS NULL) OR a.group = b.group) AND a.date = b.date;`); | ||||
|         await queryRunner.query(`DELETE FROM "__chart__per_user_reaction" a USING "__chart__per_user_reaction" b WHERE a.id < b.id AND ((a.group IS NULL AND b.group IS NULL) OR a.group = b.group) AND a.date = b.date;`); | ||||
|         await queryRunner.query(`DELETE FROM "__chart__test_grouped" a USING "__chart__test_grouped" b WHERE a.id < b.id AND ((a.group IS NULL AND b.group IS NULL) OR a.group = b.group) AND a.date = b.date;`); | ||||
|         await queryRunner.query(`DELETE FROM "__chart__test_unique" a USING "__chart__test_unique" b WHERE a.id < b.id AND ((a.group IS NULL AND b.group IS NULL) OR a.group = b.group) AND a.date = b.date;`); | ||||
|         await queryRunner.query(`DELETE FROM "__chart__users" a USING "__chart__users" b WHERE a.id < b.id AND ((a.group IS NULL AND b.group IS NULL) OR a.group = b.group) AND a.date = b.date;`); | ||||
|         await queryRunner.query(`DROP INDEX "IDX_0ad37b7ef50f4ddc84363d7ccc"`); | ||||
|         await queryRunner.query(`DROP INDEX "IDX_00ed5f86db1f7efafb1978bf21"`); | ||||
|         await queryRunner.query(`DROP INDEX "IDX_9a3ed15a30ab7e3a37702e6e08"`); | ||||
|         await queryRunner.query(`DROP INDEX "IDX_13565815f618a1ff53886c5b28"`); | ||||
|         await queryRunner.query(`DROP INDEX "IDX_7a170f67425e62a8fabb76c872"`); | ||||
|         await queryRunner.query(`DROP INDEX "IDX_3313d7288855ec105b5bbf6c21"`); | ||||
|         await queryRunner.query(`DROP INDEX "IDX_36cb699c49580d4e6c2e6159f9"`); | ||||
|         await queryRunner.query(`DROP INDEX "IDX_76e87c7bfc5d925fcbba405d84"`); | ||||
|         await queryRunner.query(`DROP INDEX "IDX_dd907becf76104e4b656659e6b"`); | ||||
|         await queryRunner.query(`DROP INDEX "IDX_07747a1038c05f532a718fe1de"`); | ||||
|         await queryRunner.query(`DROP INDEX "IDX_99a7d2faaef84a6f728d714ad6"`); | ||||
|         await queryRunner.query(`DROP INDEX "IDX_25a97c02003338124b2b75fdbc"`); | ||||
|         await queryRunner.query(`DROP INDEX "IDX_6b8f34a1a64b06014b6fb66824"`); | ||||
|         await queryRunner.query(`DROP INDEX "IDX_da8a46ba84ca1d8bb5a29bfb63"`); | ||||
|         await queryRunner.query(`DROP INDEX "IDX_39ee857ab2f23493037c6b6631"`); | ||||
|         await queryRunner.query(`DROP INDEX "IDX_a1efd3e0048a5f2793a47360dc"`); | ||||
|         await queryRunner.query(`DROP INDEX "IDX_7b5da130992ec9df96712d4290"`); | ||||
|         await queryRunner.query(`DROP INDEX "IDX_0a905b992fecd2b5c3fb98759e"`); | ||||
|         await queryRunner.query(`DROP INDEX "IDX_42eb716a37d381cdf566192b2b"`); | ||||
|         await queryRunner.query(`DROP INDEX "IDX_7036f2957151588b813185c794"`); | ||||
|         await queryRunner.query(`DROP INDEX "IDX_f09d543e3acb16c5976bdb31fa"`); | ||||
|         await queryRunner.query(`DROP INDEX "IDX_5f86db6492274e07c1a3cdf286"`); | ||||
|         await queryRunner.query(`DROP INDEX "IDX_e496ca8096d28f6b9b509264dc"`); | ||||
|         await queryRunner.query(`DROP INDEX "IDX_30bf67687f483ace115c5ca642"`); | ||||
|         await queryRunner.query(`DROP INDEX "IDX_7af07790712aa3438ff6773f3b"`); | ||||
|         await queryRunner.query(`DROP INDEX "IDX_4b3593098b6edc9c5afe36b18b"`); | ||||
|         await queryRunner.query(`DROP INDEX "IDX_b77d4dd9562c3a899d9a286fcd"`); | ||||
|         await queryRunner.query(`DROP INDEX "IDX_84234bd1abb873f07329681c83"`); | ||||
|         await queryRunner.query(`DROP INDEX "IDX_55bf20f366979f2436de99206b"`); | ||||
|         await queryRunner.query(`DROP INDEX "IDX_5048e9daccbbbc6d567bb142d3"`); | ||||
|         await queryRunner.query(`DROP INDEX "IDX_f7bf4c62059764c2c2bb40fdab"`); | ||||
|         await queryRunner.query(`DROP INDEX "IDX_8cf3156fd7a6b15c43459c6e3b"`); | ||||
|         await queryRunner.query(`DROP INDEX "IDX_229a41ad465f9205f1f5703291"`); | ||||
|         await queryRunner.query(`DROP INDEX "IDX_0c641990ecf47d2545df4edb75"`); | ||||
|         await queryRunner.query(`DROP INDEX "IDX_234dff3c0b56a6150b95431ab9"`); | ||||
|         await queryRunner.query(`DROP INDEX "IDX_b14489029e4b3aaf4bba5fb524"`); | ||||
|         await queryRunner.query(`DROP INDEX "IDX_437bab3c6061d90f6bb65fd2cc"`); | ||||
|         await queryRunner.query(`DROP INDEX "IDX_bbfa573a8181018851ed0b6357"`); | ||||
|         await queryRunner.query(`DROP INDEX "IDX_a0cd75442dd10d0643a17c4a49"`); | ||||
|         await queryRunner.query(`DROP INDEX "IDX_b070a906db04b44c67c6c2144d"`); | ||||
|         await queryRunner.query(`DROP INDEX "IDX_d41cce6aee1a50bfc062038f9b"`); | ||||
|         await queryRunner.query(`DROP INDEX "IDX_a319e5dbf47e8a17497623beae"`); | ||||
|         await queryRunner.query(`DROP INDEX "IDX_845254b3eaf708ae8a6cac3026"`); | ||||
|         await queryRunner.query(`DROP INDEX "IDX_ed9b95919c672a13008e9487ee"`); | ||||
|         await queryRunner.query(`DROP INDEX "IDX_337e9599f278bd7537fe30876f"`); | ||||
|         await queryRunner.query(`CREATE UNIQUE INDEX "IDX_9a3ed15a30ab7e3a37702e6e08" ON "__chart__active_users" ("date", "group") `); | ||||
|         await queryRunner.query(`CREATE UNIQUE INDEX "IDX_60c5c6e7e538c09aa274ecd1cf" ON "__chart__active_users" ("date") WHERE "group" IS NULL`); | ||||
|         await queryRunner.query(`CREATE UNIQUE INDEX "IDX_3313d7288855ec105b5bbf6c21" ON "__chart__drive" ("date", "group") `); | ||||
|         await queryRunner.query(`CREATE UNIQUE INDEX "IDX_ceab80a6729f8e2e6f5b8a1a3d" ON "__chart__drive" ("date") WHERE "group" IS NULL`); | ||||
|         await queryRunner.query(`CREATE UNIQUE INDEX "IDX_dd907becf76104e4b656659e6b" ON "__chart__federation" ("date", "group") `); | ||||
|         await queryRunner.query(`CREATE UNIQUE INDEX "IDX_eddfed8fb40305a04c6f941050" ON "__chart__federation" ("date") WHERE "group" IS NULL`); | ||||
|         await queryRunner.query(`CREATE UNIQUE INDEX "IDX_25a97c02003338124b2b75fdbc" ON "__chart__hashtag" ("date", "group") `); | ||||
|         await queryRunner.query(`CREATE UNIQUE INDEX "IDX_53a3604b939e2b479eb2cfaac8" ON "__chart__hashtag" ("date") WHERE "group" IS NULL`); | ||||
|         await queryRunner.query(`CREATE UNIQUE INDEX "IDX_39ee857ab2f23493037c6b6631" ON "__chart__instance" ("date", "group") `); | ||||
|         await queryRunner.query(`CREATE UNIQUE INDEX "IDX_8111b817b9818c04d7eb8475b1" ON "__chart__instance" ("date") WHERE "group" IS NULL`); | ||||
|         await queryRunner.query(`CREATE UNIQUE INDEX "IDX_0a905b992fecd2b5c3fb98759e" ON "__chart__network" ("date", "group") `); | ||||
|         await queryRunner.query(`CREATE UNIQUE INDEX "IDX_2082327b2699ce924fa654afc5" ON "__chart__network" ("date") WHERE "group" IS NULL`); | ||||
|         await queryRunner.query(`CREATE UNIQUE INDEX "IDX_f09d543e3acb16c5976bdb31fa" ON "__chart__notes" ("date", "group") `); | ||||
|         await queryRunner.query(`CREATE UNIQUE INDEX "IDX_e60c358aaced5aab8900a4af31" ON "__chart__notes" ("date") WHERE "group" IS NULL`); | ||||
|         await queryRunner.query(`CREATE UNIQUE INDEX "IDX_30bf67687f483ace115c5ca642" ON "__chart__per_user_drive" ("date", "group") `); | ||||
|         await queryRunner.query(`CREATE UNIQUE INDEX "IDX_a9a806d466b314f253a1a611c4" ON "__chart__per_user_drive" ("date") WHERE "group" IS NULL`); | ||||
|         await queryRunner.query(`CREATE UNIQUE INDEX "IDX_b77d4dd9562c3a899d9a286fcd" ON "__chart__per_user_following" ("date", "group") `); | ||||
|         await queryRunner.query(`CREATE UNIQUE INDEX "IDX_dabbb38a51ab86ee3cab291326" ON "__chart__per_user_following" ("date") WHERE "group" IS NULL`); | ||||
|         await queryRunner.query(`CREATE UNIQUE INDEX "IDX_5048e9daccbbbc6d567bb142d3" ON "__chart__per_user_notes" ("date", "group") `); | ||||
|         await queryRunner.query(`CREATE UNIQUE INDEX "IDX_583a157ed0cf0ed1b5ec2a833f" ON "__chart__per_user_notes" ("date") WHERE "group" IS NULL`); | ||||
|         await queryRunner.query(`CREATE UNIQUE INDEX "IDX_229a41ad465f9205f1f5703291" ON "__chart__per_user_reaction" ("date", "group") `); | ||||
|         await queryRunner.query(`CREATE UNIQUE INDEX "IDX_3b7697a96f522d0478972e6d6f" ON "__chart__per_user_reaction" ("date") WHERE "group" IS NULL`); | ||||
|         await queryRunner.query(`CREATE UNIQUE INDEX "IDX_b14489029e4b3aaf4bba5fb524" ON "__chart__test_grouped" ("date", "group") `); | ||||
|         await queryRunner.query(`CREATE UNIQUE INDEX "IDX_da522b4008a9f5d7743b87ad55" ON "__chart__test_grouped" ("date") WHERE "group" IS NULL`); | ||||
|         await queryRunner.query(`CREATE UNIQUE INDEX "IDX_a0cd75442dd10d0643a17c4a49" ON "__chart__test_unique" ("date", "group") `); | ||||
|         await queryRunner.query(`CREATE UNIQUE INDEX "IDX_16effb2e888f6763673b579f80" ON "__chart__test_unique" ("date") WHERE "group" IS NULL`); | ||||
|         await queryRunner.query(`CREATE UNIQUE INDEX "IDX_a319e5dbf47e8a17497623beae" ON "__chart__test" ("date", "group") `); | ||||
|         await queryRunner.query(`CREATE UNIQUE INDEX "IDX_dab383a36f3c9db4a0c9b02cf3" ON "__chart__test" ("date") WHERE "group" IS NULL`); | ||||
|         await queryRunner.query(`CREATE UNIQUE INDEX "IDX_337e9599f278bd7537fe30876f" ON "__chart__users" ("date", "group") `); | ||||
|         await queryRunner.query(`CREATE UNIQUE INDEX "IDX_66feba81e1795d176d06c0b1e6" ON "__chart__users" ("date") WHERE "group" IS NULL`); | ||||
|     } | ||||
|  | ||||
|     public async down(queryRunner: QueryRunner): Promise<void> { | ||||
|         await queryRunner.query(`DROP INDEX "IDX_66feba81e1795d176d06c0b1e6"`); | ||||
|         await queryRunner.query(`DROP INDEX "IDX_337e9599f278bd7537fe30876f"`); | ||||
|         await queryRunner.query(`DROP INDEX "IDX_dab383a36f3c9db4a0c9b02cf3"`); | ||||
|         await queryRunner.query(`DROP INDEX "IDX_a319e5dbf47e8a17497623beae"`); | ||||
|         await queryRunner.query(`DROP INDEX "IDX_16effb2e888f6763673b579f80"`); | ||||
|         await queryRunner.query(`DROP INDEX "IDX_a0cd75442dd10d0643a17c4a49"`); | ||||
|         await queryRunner.query(`DROP INDEX "IDX_da522b4008a9f5d7743b87ad55"`); | ||||
|         await queryRunner.query(`DROP INDEX "IDX_b14489029e4b3aaf4bba5fb524"`); | ||||
|         await queryRunner.query(`DROP INDEX "IDX_3b7697a96f522d0478972e6d6f"`); | ||||
|         await queryRunner.query(`DROP INDEX "IDX_229a41ad465f9205f1f5703291"`); | ||||
|         await queryRunner.query(`DROP INDEX "IDX_583a157ed0cf0ed1b5ec2a833f"`); | ||||
|         await queryRunner.query(`DROP INDEX "IDX_5048e9daccbbbc6d567bb142d3"`); | ||||
|         await queryRunner.query(`DROP INDEX "IDX_dabbb38a51ab86ee3cab291326"`); | ||||
|         await queryRunner.query(`DROP INDEX "IDX_b77d4dd9562c3a899d9a286fcd"`); | ||||
|         await queryRunner.query(`DROP INDEX "IDX_a9a806d466b314f253a1a611c4"`); | ||||
|         await queryRunner.query(`DROP INDEX "IDX_30bf67687f483ace115c5ca642"`); | ||||
|         await queryRunner.query(`DROP INDEX "IDX_e60c358aaced5aab8900a4af31"`); | ||||
|         await queryRunner.query(`DROP INDEX "IDX_f09d543e3acb16c5976bdb31fa"`); | ||||
|         await queryRunner.query(`DROP INDEX "IDX_2082327b2699ce924fa654afc5"`); | ||||
|         await queryRunner.query(`DROP INDEX "IDX_0a905b992fecd2b5c3fb98759e"`); | ||||
|         await queryRunner.query(`DROP INDEX "IDX_8111b817b9818c04d7eb8475b1"`); | ||||
|         await queryRunner.query(`DROP INDEX "IDX_39ee857ab2f23493037c6b6631"`); | ||||
|         await queryRunner.query(`DROP INDEX "IDX_53a3604b939e2b479eb2cfaac8"`); | ||||
|         await queryRunner.query(`DROP INDEX "IDX_25a97c02003338124b2b75fdbc"`); | ||||
|         await queryRunner.query(`DROP INDEX "IDX_eddfed8fb40305a04c6f941050"`); | ||||
|         await queryRunner.query(`DROP INDEX "IDX_dd907becf76104e4b656659e6b"`); | ||||
|         await queryRunner.query(`DROP INDEX "IDX_ceab80a6729f8e2e6f5b8a1a3d"`); | ||||
|         await queryRunner.query(`DROP INDEX "IDX_3313d7288855ec105b5bbf6c21"`); | ||||
|         await queryRunner.query(`DROP INDEX "IDX_60c5c6e7e538c09aa274ecd1cf"`); | ||||
|         await queryRunner.query(`DROP INDEX "IDX_9a3ed15a30ab7e3a37702e6e08"`); | ||||
|         await queryRunner.query(`DROP INDEX "IDX_a9021cc2e1feb5f72d3db6e9f5"`); | ||||
|         await queryRunner.query(`DROP INDEX "IDX_f22169eb10657bded6d875ac8f"`); | ||||
|         await queryRunner.query(`DROP INDEX "IDX_c8cc87bd0f2f4487d17c651fbf"`); | ||||
|         await queryRunner.query(`DROP INDEX "IDX_754499f9b2642336433769518d"`); | ||||
|         await queryRunner.query(`DROP INDEX "IDX_315c779174fe8247ab324f036e"`); | ||||
|         await queryRunner.query(`DROP INDEX "IDX_c5d46cbfda48b1c33ed852e21b"`); | ||||
|         await queryRunner.query(`CREATE INDEX "IDX_337e9599f278bd7537fe30876f" ON "__chart__users" ("date", "group") `); | ||||
|         await queryRunner.query(`CREATE INDEX "IDX_ed9b95919c672a13008e9487ee" ON "__chart__users" ("group") `); | ||||
|         await queryRunner.query(`CREATE INDEX "IDX_845254b3eaf708ae8a6cac3026" ON "__chart__users" ("date") `); | ||||
|         await queryRunner.query(`CREATE INDEX "IDX_a319e5dbf47e8a17497623beae" ON "__chart__test" ("date", "group") `); | ||||
|         await queryRunner.query(`CREATE INDEX "IDX_d41cce6aee1a50bfc062038f9b" ON "__chart__test" ("group") `); | ||||
|         await queryRunner.query(`CREATE INDEX "IDX_b070a906db04b44c67c6c2144d" ON "__chart__test" ("date") `); | ||||
|         await queryRunner.query(`CREATE INDEX "IDX_a0cd75442dd10d0643a17c4a49" ON "__chart__test_unique" ("date", "group") `); | ||||
|         await queryRunner.query(`CREATE INDEX "IDX_bbfa573a8181018851ed0b6357" ON "__chart__test_unique" ("group") `); | ||||
|         await queryRunner.query(`CREATE INDEX "IDX_437bab3c6061d90f6bb65fd2cc" ON "__chart__test_unique" ("date") `); | ||||
|         await queryRunner.query(`CREATE INDEX "IDX_b14489029e4b3aaf4bba5fb524" ON "__chart__test_grouped" ("date", "group") `); | ||||
|         await queryRunner.query(`CREATE INDEX "IDX_234dff3c0b56a6150b95431ab9" ON "__chart__test_grouped" ("group") `); | ||||
|         await queryRunner.query(`CREATE INDEX "IDX_0c641990ecf47d2545df4edb75" ON "__chart__test_grouped" ("date") `); | ||||
|         await queryRunner.query(`CREATE INDEX "IDX_229a41ad465f9205f1f5703291" ON "__chart__per_user_reaction" ("date", "group") `); | ||||
|         await queryRunner.query(`CREATE INDEX "IDX_8cf3156fd7a6b15c43459c6e3b" ON "__chart__per_user_reaction" ("group") `); | ||||
|         await queryRunner.query(`CREATE INDEX "IDX_f7bf4c62059764c2c2bb40fdab" ON "__chart__per_user_reaction" ("date") `); | ||||
|         await queryRunner.query(`CREATE INDEX "IDX_5048e9daccbbbc6d567bb142d3" ON "__chart__per_user_notes" ("date", "group") `); | ||||
|         await queryRunner.query(`CREATE INDEX "IDX_55bf20f366979f2436de99206b" ON "__chart__per_user_notes" ("group") `); | ||||
|         await queryRunner.query(`CREATE INDEX "IDX_84234bd1abb873f07329681c83" ON "__chart__per_user_notes" ("date") `); | ||||
|         await queryRunner.query(`CREATE INDEX "IDX_b77d4dd9562c3a899d9a286fcd" ON "__chart__per_user_following" ("date", "group") `); | ||||
|         await queryRunner.query(`CREATE INDEX "IDX_4b3593098b6edc9c5afe36b18b" ON "__chart__per_user_following" ("group") `); | ||||
|         await queryRunner.query(`CREATE INDEX "IDX_7af07790712aa3438ff6773f3b" ON "__chart__per_user_following" ("date") `); | ||||
|         await queryRunner.query(`CREATE INDEX "IDX_30bf67687f483ace115c5ca642" ON "__chart__per_user_drive" ("date", "group") `); | ||||
|         await queryRunner.query(`CREATE INDEX "IDX_e496ca8096d28f6b9b509264dc" ON "__chart__per_user_drive" ("group") `); | ||||
|         await queryRunner.query(`CREATE INDEX "IDX_5f86db6492274e07c1a3cdf286" ON "__chart__per_user_drive" ("date") `); | ||||
|         await queryRunner.query(`CREATE INDEX "IDX_f09d543e3acb16c5976bdb31fa" ON "__chart__notes" ("date", "group") `); | ||||
|         await queryRunner.query(`CREATE INDEX "IDX_7036f2957151588b813185c794" ON "__chart__notes" ("group") `); | ||||
|         await queryRunner.query(`CREATE INDEX "IDX_42eb716a37d381cdf566192b2b" ON "__chart__notes" ("date") `); | ||||
|         await queryRunner.query(`CREATE INDEX "IDX_0a905b992fecd2b5c3fb98759e" ON "__chart__network" ("date", "group") `); | ||||
|         await queryRunner.query(`CREATE INDEX "IDX_7b5da130992ec9df96712d4290" ON "__chart__network" ("group") `); | ||||
|         await queryRunner.query(`CREATE INDEX "IDX_a1efd3e0048a5f2793a47360dc" ON "__chart__network" ("date") `); | ||||
|         await queryRunner.query(`CREATE INDEX "IDX_39ee857ab2f23493037c6b6631" ON "__chart__instance" ("date", "group") `); | ||||
|         await queryRunner.query(`CREATE INDEX "IDX_da8a46ba84ca1d8bb5a29bfb63" ON "__chart__instance" ("group") `); | ||||
|         await queryRunner.query(`CREATE INDEX "IDX_6b8f34a1a64b06014b6fb66824" ON "__chart__instance" ("date") `); | ||||
|         await queryRunner.query(`CREATE INDEX "IDX_25a97c02003338124b2b75fdbc" ON "__chart__hashtag" ("date", "group") `); | ||||
|         await queryRunner.query(`CREATE INDEX "IDX_99a7d2faaef84a6f728d714ad6" ON "__chart__hashtag" ("group") `); | ||||
|         await queryRunner.query(`CREATE INDEX "IDX_07747a1038c05f532a718fe1de" ON "__chart__hashtag" ("date") `); | ||||
|         await queryRunner.query(`CREATE INDEX "IDX_dd907becf76104e4b656659e6b" ON "__chart__federation" ("date", "group") `); | ||||
|         await queryRunner.query(`CREATE INDEX "IDX_76e87c7bfc5d925fcbba405d84" ON "__chart__federation" ("group") `); | ||||
|         await queryRunner.query(`CREATE INDEX "IDX_36cb699c49580d4e6c2e6159f9" ON "__chart__federation" ("date") `); | ||||
|         await queryRunner.query(`CREATE INDEX "IDX_3313d7288855ec105b5bbf6c21" ON "__chart__drive" ("date", "group") `); | ||||
|         await queryRunner.query(`CREATE INDEX "IDX_7a170f67425e62a8fabb76c872" ON "__chart__drive" ("group") `); | ||||
|         await queryRunner.query(`CREATE INDEX "IDX_13565815f618a1ff53886c5b28" ON "__chart__drive" ("date") `); | ||||
|         await queryRunner.query(`CREATE INDEX "IDX_9a3ed15a30ab7e3a37702e6e08" ON "__chart__active_users" ("date", "group") `); | ||||
|         await queryRunner.query(`CREATE INDEX "IDX_00ed5f86db1f7efafb1978bf21" ON "__chart__active_users" ("group") `); | ||||
|         await queryRunner.query(`CREATE INDEX "IDX_0ad37b7ef50f4ddc84363d7ccc" ON "__chart__active_users" ("date") `); | ||||
|     } | ||||
|  | ||||
| } | ||||
							
								
								
									
										14
									
								
								migration/1629024377804-deepl-integration.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								migration/1629024377804-deepl-integration.ts
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,14 @@ | ||||
| import {MigrationInterface, QueryRunner} from "typeorm"; | ||||
|  | ||||
| export class deeplIntegration1629024377804 implements MigrationInterface { | ||||
|     name = 'deeplIntegration1629024377804' | ||||
|  | ||||
|     public async up(queryRunner: QueryRunner): Promise<void> { | ||||
|         await queryRunner.query(`ALTER TABLE "meta" ADD "deeplAuthKey" character varying(128)`); | ||||
|     } | ||||
|  | ||||
|     public async down(queryRunner: QueryRunner): Promise<void> { | ||||
|         await queryRunner.query(`ALTER TABLE "meta" DROP COLUMN "deeplAuthKey"`); | ||||
|     } | ||||
|  | ||||
| } | ||||
							
								
								
									
										14
									
								
								migration/1629288472000-fix-channel-userId.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								migration/1629288472000-fix-channel-userId.ts
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,14 @@ | ||||
| import {MigrationInterface, QueryRunner} from "typeorm"; | ||||
|  | ||||
| export class fixChannelUserId1629288472000 implements MigrationInterface { | ||||
|     name = 'fixChannelUserId1629288472000' | ||||
|  | ||||
|     public async up(queryRunner: QueryRunner): Promise<void> { | ||||
|         await queryRunner.query(`ALTER TABLE "channel" ALTER COLUMN "userId" DROP NOT NULL;`); | ||||
|     } | ||||
|  | ||||
|     public async down(queryRunner: QueryRunner): Promise<void> { | ||||
|         await queryRunner.query(`ALTER TABLE "channel" ALTER COLUMN "userId" SET NOT NULL;`); | ||||
|     } | ||||
|  | ||||
| } | ||||
							
								
								
									
										15
									
								
								migration/1629512953000-user-is-deleted.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								migration/1629512953000-user-is-deleted.ts
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,15 @@ | ||||
| import {MigrationInterface, QueryRunner} from "typeorm"; | ||||
|  | ||||
| export class isUserDeleted1629512953000 implements MigrationInterface { | ||||
|     name = 'isUserDeleted1629512953000' | ||||
|  | ||||
|     public async up(queryRunner: QueryRunner): Promise<void> { | ||||
|         await queryRunner.query(`ALTER TABLE "user" ADD "isDeleted" boolean NOT NULL DEFAULT false`); | ||||
|         await queryRunner.query(`COMMENT ON COLUMN "user"."isDeleted" IS 'Whether the User is deleted.'`); | ||||
|     } | ||||
|  | ||||
|     public async down(queryRunner: QueryRunner): Promise<void> { | ||||
|         await queryRunner.query(`ALTER TABLE "user" DROP COLUMN "isDeleted"`); | ||||
|     } | ||||
|  | ||||
| } | ||||
							
								
								
									
										14
									
								
								migration/1629778475000-deepl-integration2.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								migration/1629778475000-deepl-integration2.ts
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,14 @@ | ||||
| import {MigrationInterface, QueryRunner} from "typeorm"; | ||||
|  | ||||
| export class deeplIntegration21629778475000 implements MigrationInterface { | ||||
|     name = 'deeplIntegration21629778475000' | ||||
|  | ||||
|     public async up(queryRunner: QueryRunner): Promise<void> { | ||||
|         await queryRunner.query(`ALTER TABLE "meta" ADD "deeplIsPro" boolean NOT NULL DEFAULT false`); | ||||
|     } | ||||
|  | ||||
|     public async down(queryRunner: QueryRunner): Promise<void> { | ||||
|         await queryRunner.query(`ALTER TABLE "meta" DROP COLUMN "deeplIsPro"`); | ||||
|     } | ||||
|  | ||||
| } | ||||
							
								
								
									
										1
									
								
								misskey-assets
									
									
									
									
									
										Submodule
									
								
							
							
								
								
								
								
								
							
						
						
									
										1
									
								
								misskey-assets
									
									
									
									
									
										Submodule
									
								
							 Submodule misskey-assets added at 0179793ec8
									
								
							
							
								
								
									
										153
									
								
								package.json
									
									
									
									
									
								
							
							
						
						
									
										153
									
								
								package.json
									
									
									
									
									
								
							| @@ -1,7 +1,7 @@ | ||||
| { | ||||
| 	"name": "misskey", | ||||
| 	"author": "syuilo <syuilotan@yahoo.co.jp>", | ||||
| 	"version": "12.84.3", | ||||
| 	"version": "12.91.0", | ||||
| 	"codename": "indigo", | ||||
| 	"repository": { | ||||
| 		"type": "git", | ||||
| @@ -10,7 +10,8 @@ | ||||
| 	"main": "./index.js", | ||||
| 	"private": true, | ||||
| 	"scripts": { | ||||
| 		"start": "node ./index.js", | ||||
| 		"start": "node --experimental-json-modules ./index.js", | ||||
| 		"start:test": "cross-env NODE_ENV=test node --experimental-json-modules ./index.js", | ||||
| 		"init": "npm run migrate", | ||||
| 		"ormconfig": "node ./built/ormconfig.js", | ||||
| 		"migrate": "ts-node ./node_modules/typeorm/cli.js migration:run", | ||||
| @@ -26,6 +27,9 @@ | ||||
| 		"clean": "gulp clean", | ||||
| 		"cleanall": "gulp cleanall", | ||||
| 		"lint": "tslint 'src/**/*.ts'", | ||||
| 		"cy:open": "cypress open", | ||||
| 		"cy:run": "cypress run", | ||||
| 		"e2e": "start-server-and-test start:test http://localhost cy:run", | ||||
| 		"test": "cross-env TS_NODE_FILES=true TS_NODE_TRANSPILE_ONLY=true TS_NODE_PROJECT=\"./test/tsconfig.json\" mocha", | ||||
| 		"format": "gulp format" | ||||
| 	}, | ||||
| @@ -34,7 +38,6 @@ | ||||
| 		"lodash": "^4.17.21" | ||||
| 	}, | ||||
| 	"dependencies": { | ||||
| 		"@babel/plugin-transform-runtime": "7.14.5", | ||||
| 		"@elastic/elasticsearch": "7.11.0", | ||||
| 		"@koa/cors": "3.1.0", | ||||
| 		"@koa/multer": "3.0.0", | ||||
| @@ -44,7 +47,7 @@ | ||||
| 		"@sinonjs/fake-timers": "7.1.2", | ||||
| 		"@syuilo/aiscript": "0.11.1", | ||||
| 		"@types/bcryptjs": "2.4.2", | ||||
| 		"@types/bull": "3.15.2", | ||||
| 		"@types/bull": "3.15.4", | ||||
| 		"@types/cbor": "6.0.0", | ||||
| 		"@types/dateformat": "3.0.1", | ||||
| 		"@types/escape-regexp": "0.0.0", | ||||
| @@ -52,26 +55,26 @@ | ||||
| 		"@types/gulp": "4.0.9", | ||||
| 		"@types/gulp-rename": "2.0.1", | ||||
| 		"@types/is-url": "1.2.30", | ||||
| 		"@types/js-yaml": "4.0.2", | ||||
| 		"@types/js-yaml": "4.0.3", | ||||
| 		"@types/jsdom": "16.2.13", | ||||
| 		"@types/jsonld": "1.5.6", | ||||
| 		"@types/katex": "0.11.1", | ||||
| 		"@types/koa": "2.13.4", | ||||
| 		"@types/koa-bodyparser": "4.3.2", | ||||
| 		"@types/koa-cors": "0.0.1", | ||||
| 		"@types/koa-bodyparser": "4.3.3", | ||||
| 		"@types/koa-cors": "0.0.2", | ||||
| 		"@types/koa-favicon": "2.0.21", | ||||
| 		"@types/koa-logger": "3.1.1", | ||||
| 		"@types/koa-mount": "4.0.0", | ||||
| 		"@types/koa-mount": "4.0.1", | ||||
| 		"@types/koa-send": "4.1.3", | ||||
| 		"@types/koa-views": "7.0.0", | ||||
| 		"@types/koa__cors": "3.0.3", | ||||
| 		"@types/koa__multer": "2.0.3", | ||||
| 		"@types/koa__router": "8.0.7", | ||||
| 		"@types/markdown-it": "12.0.3", | ||||
| 		"@types/matter-js": "0.17.3", | ||||
| 		"@types/koa__router": "8.0.8", | ||||
| 		"@types/markdown-it": "12.2.1", | ||||
| 		"@types/matter-js": "0.17.5", | ||||
| 		"@types/mocha": "8.2.3", | ||||
| 		"@types/node": "16.3.3", | ||||
| 		"@types/node-fetch": "2.5.11", | ||||
| 		"@types/node": "16.9.6", | ||||
| 		"@types/node-fetch": "2.5.12", | ||||
| 		"@types/nodemailer": "6.4.4", | ||||
| 		"@types/nprogress": "0.2.0", | ||||
| 		"@types/oauth": "0.9.1", | ||||
| @@ -83,13 +86,13 @@ | ||||
| 		"@types/qrcode": "1.4.1", | ||||
| 		"@types/random-seed": "0.3.3", | ||||
| 		"@types/ratelimiter": "3.4.2", | ||||
| 		"@types/redis": "2.8.31", | ||||
| 		"@types/redis": "2.8.32", | ||||
| 		"@types/rename": "1.0.4", | ||||
| 		"@types/request-stats": "3.0.0", | ||||
| 		"@types/rimraf": "3.0.1", | ||||
| 		"@types/rimraf": "3.0.2", | ||||
| 		"@types/seedrandom": "2.4.28", | ||||
| 		"@types/sharp": "0.28.4", | ||||
| 		"@types/sinonjs__fake-timers": "6.0.3", | ||||
| 		"@types/sharp": "0.29.2", | ||||
| 		"@types/sinonjs__fake-timers": "6.0.4", | ||||
| 		"@types/speakeasy": "2.0.6", | ||||
| 		"@types/throttle-debounce": "2.1.0", | ||||
| 		"@types/tinycolor2": "1.4.3", | ||||
| @@ -98,40 +101,40 @@ | ||||
| 		"@types/web-push": "3.3.2", | ||||
| 		"@types/webpack": "5.28.0", | ||||
| 		"@types/webpack-stream": "3.2.12", | ||||
| 		"@types/websocket": "1.0.3", | ||||
| 		"@types/ws": "7.4.6", | ||||
| 		"@typescript-eslint/parser": "4.28.3", | ||||
| 		"@vue/compiler-sfc": "3.1.5", | ||||
| 		"@types/websocket": "1.0.4", | ||||
| 		"@types/ws": "7.4.7", | ||||
| 		"@typescript-eslint/parser": "4.31.2", | ||||
| 		"@vue/compiler-sfc": "3.2.13", | ||||
| 		"abort-controller": "3.0.0", | ||||
| 		"apexcharts": "3.27.2", | ||||
| 		"apexcharts": "3.28.3", | ||||
| 		"autobind-decorator": "2.4.0", | ||||
| 		"autosize": "4.0.4", | ||||
| 		"autwh": "0.1.0", | ||||
| 		"aws-sdk": "2.948.0", | ||||
| 		"aws-sdk": "2.992.0", | ||||
| 		"bcryptjs": "2.4.3", | ||||
| 		"blurhash": "1.1.3", | ||||
| 		"broadcast-channel": "3.7.0", | ||||
| 		"bull": "3.26.0", | ||||
| 		"blurhash": "1.1.4", | ||||
| 		"broadcast-channel": "4.2.0", | ||||
| 		"bull": "3.29.2", | ||||
| 		"cacheable-lookup": "6.0.1", | ||||
| 		"cafy": "15.2.1", | ||||
| 		"cbor": "7.0.6", | ||||
| 		"chalk": "4.1.1", | ||||
| 		"cbor": "8.0.0", | ||||
| 		"chalk": "4.1.2", | ||||
| 		"chart.js": "2.9.4", | ||||
| 		"cli-highlight": "2.1.11", | ||||
| 		"commander": "7.2.0", | ||||
| 		"concurrently": "6.2.0", | ||||
| 		"commander": "8.1.0", | ||||
| 		"compare-versions": "3.6.0", | ||||
| 		"concurrently": "6.2.1", | ||||
| 		"content-disposition": "0.5.3", | ||||
| 		"core-js": "3.15.2", | ||||
| 		"crc-32": "1.2.0", | ||||
| 		"css-loader": "6.0.0", | ||||
| 		"cssnano": "5.0.6", | ||||
| 		"css-loader": "6.3.0", | ||||
| 		"cssnano": "5.0.8", | ||||
| 		"dateformat": "4.5.1", | ||||
| 		"diskusage": "1.1.3", | ||||
| 		"escape-regexp": "0.0.1", | ||||
| 		"eslint": "7.30.0", | ||||
| 		"eslint-plugin-vue": "7.13.0", | ||||
| 		"eslint": "7.32.0", | ||||
| 		"eslint-plugin-vue": "7.18.0", | ||||
| 		"eventemitter3": "4.0.7", | ||||
| 		"feed": "4.2.2", | ||||
| 		"file-type": "16.5.1", | ||||
| 		"file-type": "16.5.3", | ||||
| 		"fluent-ffmpeg": "2.1.2", | ||||
| 		"glob": "7.1.7", | ||||
| 		"got": "11.8.2", | ||||
| @@ -141,22 +144,19 @@ | ||||
| 		"gulp-replace": "1.1.3", | ||||
| 		"gulp-terser": "2.0.1", | ||||
| 		"gulp-tslint": "8.1.4", | ||||
| 		"hard-source-webpack-plugin": "0.13.1", | ||||
| 		"html-minifier": "4.0.0", | ||||
| 		"http-proxy-agent": "4.0.1", | ||||
| 		"hpagent": "0.1.2", | ||||
| 		"http-signature": "1.3.5", | ||||
| 		"https-proxy-agent": "5.0.0", | ||||
| 		"idb-keyval": "5.0.6", | ||||
| 		"idb-keyval": "5.1.3", | ||||
| 		"insert-text-at-cursor": "0.3.0", | ||||
| 		"is-root": "2.1.0", | ||||
| 		"ip-cidr": "3.0.4", | ||||
| 		"is-svg": "4.3.1", | ||||
| 		"js-yaml": "4.1.0", | ||||
| 		"jsdom": "16.6.0", | ||||
| 		"jsdom": "16.7.0", | ||||
| 		"json5": "2.2.0", | ||||
| 		"json5-loader": "4.0.1", | ||||
| 		"jsonld": "5.2.0", | ||||
| 		"jsrsasign": "8.0.20", | ||||
| 		"katex": "0.13.11", | ||||
| 		"katex": "0.13.18", | ||||
| 		"koa": "2.13.1", | ||||
| 		"koa-bodyparser": "4.3.0", | ||||
| 		"koa-favicon": "2.1.0", | ||||
| @@ -167,98 +167,91 @@ | ||||
| 		"koa-slow": "2.1.0", | ||||
| 		"koa-views": "7.0.1", | ||||
| 		"langmap": "0.0.16", | ||||
| 		"lookup-dns-cache": "2.1.0", | ||||
| 		"markdown-it": "12.1.0", | ||||
| 		"markdown-it": "12.2.0", | ||||
| 		"markdown-it-anchor": "7.1.0", | ||||
| 		"matter-js": "0.17.1", | ||||
| 		"mfm-js": "0.19.0", | ||||
| 		"misskey-js": "0.0.6", | ||||
| 		"mocha": "8.4.0", | ||||
| 		"moji": "0.5.1", | ||||
| 		"ms": "2.1.3", | ||||
| 		"multer": "1.4.2", | ||||
| 		"multer": "1.4.3", | ||||
| 		"nested-property": "4.0.0", | ||||
| 		"node-fetch": "2.6.1", | ||||
| 		"nodemailer": "6.6.3", | ||||
| 		"object-assign-deep": "0.4.0", | ||||
| 		"os-utils": "0.0.14", | ||||
| 		"parse5": "6.0.1", | ||||
| 		"pg": "8.6.0", | ||||
| 		"pg": "8.7.1", | ||||
| 		"portscanner": "2.2.0", | ||||
| 		"postcss": "8.3.5", | ||||
| 		"postcss": "8.3.7", | ||||
| 		"postcss-loader": "6.1.1", | ||||
| 		"prismjs": "1.24.1", | ||||
| 		"prismjs": "1.25.0", | ||||
| 		"private-ip": "2.2.1", | ||||
| 		"probe-image-size": "7.2.1", | ||||
| 		"promise-limit": "2.7.0", | ||||
| 		"promise-sequential": "1.1.1", | ||||
| 		"pug": "3.0.2", | ||||
| 		"punycode": "2.1.1", | ||||
| 		"pureimage": "0.3.2", | ||||
| 		"pureimage": "0.3.5", | ||||
| 		"qrcode": "1.4.4", | ||||
| 		"random-seed": "0.3.0", | ||||
| 		"ratelimiter": "3.4.1", | ||||
| 		"re2": "1.16.0", | ||||
| 		"reconnecting-websocket": "4.4.0", | ||||
| 		"redis": "3.1.2", | ||||
| 		"redis-lock": "0.1.4", | ||||
| 		"reflect-metadata": "0.1.13", | ||||
| 		"regenerator-runtime": "0.13.7", | ||||
| 		"rename": "1.0.4", | ||||
| 		"request-stats": "3.0.0", | ||||
| 		"require-all": "3.0.0", | ||||
| 		"rimraf": "3.0.2", | ||||
| 		"rndstr": "1.0.0", | ||||
| 		"s-age": "1.1.2", | ||||
| 		"sass": "1.35.2", | ||||
| 		"sass": "1.42.1", | ||||
| 		"sass-loader": "12.1.0", | ||||
| 		"seedrandom": "3.0.5", | ||||
| 		"sharp": "0.28.3", | ||||
| 		"sharp": "0.29.1", | ||||
| 		"speakeasy": "2.0.0", | ||||
| 		"stringz": "2.1.0", | ||||
| 		"style-loader": "3.1.0", | ||||
| 		"summaly": "2.4.0", | ||||
| 		"style-loader": "3.3.0", | ||||
| 		"summaly": "2.4.1", | ||||
| 		"syslog-pro": "1.0.0", | ||||
| 		"systeminformation": "5.7.7", | ||||
| 		"systeminformation": "5.9.3", | ||||
| 		"syuilo-password-strength": "0.0.1", | ||||
| 		"textarea-caret": "3.1.0", | ||||
| 		"three": "0.117.1", | ||||
| 		"throttle-debounce": "3.0.1", | ||||
| 		"tinycolor2": "1.4.2", | ||||
| 		"tmp": "0.2.1", | ||||
| 		"ts-loader": "9.2.3", | ||||
| 		"ts-node": "10.1.0", | ||||
| 		"tsc-alias": "1.3.7", | ||||
| 		"tsconfig-paths": "3.10.1", | ||||
| 		"ts-loader": "9.2.6", | ||||
| 		"ts-node": "10.2.1", | ||||
| 		"tsc-alias": "1.3.9", | ||||
| 		"tsconfig-paths": "3.11.0", | ||||
| 		"tslint": "6.1.3", | ||||
| 		"tslint-sonarts": "1.9.0", | ||||
| 		"twemoji-parser": "13.1.0", | ||||
| 		"typeorm": "0.2.32", | ||||
| 		"typescript": "4.3.5", | ||||
| 		"typeorm": "0.2.37", | ||||
| 		"typescript": "4.4.3", | ||||
| 		"ulid": "2.3.0", | ||||
| 		"uuid": "8.3.2", | ||||
| 		"v-debounce": "0.1.2", | ||||
| 		"vanilla-tilt": "1.7.0", | ||||
| 		"vue": "3.1.5", | ||||
| 		"vue-color": "2.8.1", | ||||
| 		"vue-json-pretty": "1.8.1", | ||||
| 		"vue-loader": "16.3.1", | ||||
| 		"vanilla-tilt": "1.7.2", | ||||
| 		"vue": "3.2.13", | ||||
| 		"vue-loader": "16.7.0", | ||||
| 		"vue-prism-editor": "2.0.0-alpha.2", | ||||
| 		"vue-router": "4.0.5", | ||||
| 		"vue-style-loader": "4.1.3", | ||||
| 		"vue-svg-loader": "0.17.0-beta.2", | ||||
| 		"vuedraggable": "4.0.1", | ||||
| 		"web-push": "3.4.5", | ||||
| 		"webpack": "5.45.1", | ||||
| 		"webpack-cli": "4.7.2", | ||||
| 		"webpack": "5.53.0", | ||||
| 		"webpack-cli": "4.8.0", | ||||
| 		"websocket": "1.0.34", | ||||
| 		"ws": "7.5.3", | ||||
| 		"ws": "8.2.2", | ||||
| 		"xev": "2.0.1" | ||||
| 	}, | ||||
| 	"devDependencies": { | ||||
| 		"@redocly/openapi-core": "1.0.0-beta.44", | ||||
| 		"@types/chai": "4.2.16", | ||||
| 		"@redocly/openapi-core": "1.0.0-beta.54", | ||||
| 		"@types/fluent-ffmpeg": "2.1.17", | ||||
| 		"chai": "4.3.4", | ||||
| 		"cross-env": "7.0.3" | ||||
| 		"cross-env": "7.0.3", | ||||
| 		"cypress": "8.4.1", | ||||
| 		"start-server-and-test": "1.14.0" | ||||
| 	} | ||||
| } | ||||
|   | ||||
							
								
								
									
										7
									
								
								src/@types/is-root.d.ts
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										7
									
								
								src/@types/is-root.d.ts
									
									
									
									
										vendored
									
									
								
							| @@ -1,7 +0,0 @@ | ||||
| declare module 'is-root' { | ||||
| 	function isRoot(): boolean; | ||||
|  | ||||
| 	namespace isRoot {} // Hack | ||||
|  | ||||
| 	export = isRoot; | ||||
| } | ||||
							
								
								
									
										9
									
								
								src/@types/lookup-dns-cache.d.ts
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										9
									
								
								src/@types/lookup-dns-cache.d.ts
									
									
									
									
										vendored
									
									
								
							| @@ -1,9 +0,0 @@ | ||||
| declare module 'lookup-dns-cache' { | ||||
| 	import { LookupOneOptions, LookupAllOptions, LookupOptions, LookupAddress } from 'dns'; | ||||
|  | ||||
| 	function lookup(hostname: string, family: number, callback: (err: NodeJS.ErrnoException | null, address: string, family: number) => void): void; | ||||
| 	function lookup(hostname: string, options: LookupOneOptions, callback: (err: NodeJS.ErrnoException | null, address: string, family: number) => void): void; | ||||
| 	function lookup(hostname: string, options: LookupAllOptions, callback: (err: NodeJS.ErrnoException | null, addresses: LookupAddress[]) => void): void; | ||||
| 	function lookup(hostname: string, options: LookupOptions, callback: (err: NodeJS.ErrnoException | null, address: string | LookupAddress[], family: number) => void): void; | ||||
| 	function lookup(hostname: string, callback: (err: NodeJS.ErrnoException | null, address: string, family: number) => void): void; | ||||
| } | ||||
							
								
								
									
										27
									
								
								src/argv.ts
									
									
									
									
									
								
							
							
						
						
									
										27
									
								
								src/argv.ts
									
									
									
									
									
								
							| @@ -1,24 +1,23 @@ | ||||
| import { Command } from 'commander'; | ||||
| import config from '@/config'; | ||||
| import config from '@/config/index'; | ||||
|  | ||||
| const program = new Command(); | ||||
|  | ||||
| program | ||||
| 	.version(config.version) | ||||
| 	.option('--no-daemons', 'Disable daemon processes (for debbuging)') | ||||
| 	.option('--disable-clustering', 'Disable clustering') | ||||
| 	.option('--only-server', 'Run server only (without job queue processing)') | ||||
| 	.option('--only-queue', 'Pocessing job queue only (without server)') | ||||
| 	.option('--quiet', 'Suppress all logs') | ||||
| 	.option('--verbose', 'Enable all logs') | ||||
| 	.option('--with-log-time', 'Include timestamp for each logs') | ||||
| 	.option('--slow', 'Delay all requests (for debbuging)') | ||||
| 	.option('--color', 'This option is a dummy for some external program\'s (e.g. forever) issue.') | ||||
| 	.parse(process.argv); | ||||
| program.version(config.version); | ||||
| program.option('--no-daemons', 'Disable daemon processes (for debbuging)'); | ||||
| program.option('--disable-clustering', 'Disable clustering'); | ||||
| program.option('--only-server', 'Run server only (without job queue processing)'); | ||||
| program.option('--only-queue', 'Pocessing job queue only (without server)'); | ||||
| program.option('--quiet', 'Suppress all logs'); | ||||
| program.option('--verbose', 'Enable all logs'); | ||||
| program.option('--with-log-time', 'Include timestamp for each logs'); | ||||
| program.option('--slow', 'Delay all requests (for debbuging)'); | ||||
| program.option('--color', 'This option is a dummy for some external program\'s (e.g. forever) issue.'); | ||||
| program.parse(process.argv); | ||||
|  | ||||
| if (process.env.MK_ONLY_QUEUE) program.onlyQueue = true; | ||||
| if (process.env.NODE_ENV === 'test') program.disableClustering = true; | ||||
| if (process.env.NODE_ENV === 'test') program.quiet = true; | ||||
| //if (process.env.NODE_ENV === 'test') program.quiet = true; | ||||
| if (process.env.NODE_ENV === 'test') program.noDaemons = true; | ||||
|  | ||||
| export { program }; | ||||
|   | ||||
| @@ -2,7 +2,7 @@ import * as cluster from 'cluster'; | ||||
| import * as chalk from 'chalk'; | ||||
| import Xev from 'xev'; | ||||
|  | ||||
| import Logger from '../services/logger'; | ||||
| import Logger from '@/services/logger'; | ||||
| import { program } from '../argv'; | ||||
|  | ||||
| // for typeorm | ||||
|   | ||||
| @@ -1,18 +1,25 @@ | ||||
| import * as fs from 'fs'; | ||||
| import { fileURLToPath } from 'url'; | ||||
| import { dirname } from 'path'; | ||||
| import * as os from 'os'; | ||||
| import * as cluster from 'cluster'; | ||||
| import * as chalk from 'chalk'; | ||||
| import * as portscanner from 'portscanner'; | ||||
| import * as isRoot from 'is-root'; | ||||
| import { getConnection } from 'typeorm'; | ||||
|  | ||||
| import Logger from '../services/logger'; | ||||
| import Logger from '@/services/logger'; | ||||
| import loadConfig from '@/config/load'; | ||||
| import { Config } from '@/config/types'; | ||||
| import { lessThan } from '../prelude/array'; | ||||
| import { lessThan } from '@/prelude/array'; | ||||
| import { program } from '../argv'; | ||||
| import { showMachineInfo } from '@/misc/show-machine-info'; | ||||
| import { initDb } from '../db/postgre'; | ||||
| const meta = require('../meta.json'); | ||||
|  | ||||
| //const _filename = fileURLToPath(import.meta.url); | ||||
| const _filename = __filename; | ||||
| const _dirname = dirname(_filename); | ||||
|  | ||||
| const meta = JSON.parse(fs.readFileSync(`${_dirname}/../meta.json`, 'utf-8')); | ||||
|  | ||||
| const logger = new Logger('core', 'cyan'); | ||||
| const bootLogger = logger.createSubLogger('boot', 'magenta', false); | ||||
| @@ -39,6 +46,11 @@ function greet() { | ||||
| 	bootLogger.info(`Misskey v${meta.version}`, null, true); | ||||
| } | ||||
|  | ||||
| function isRoot() { | ||||
| 	// maybe process.getuid will be undefined under not POSIX environment (e.g. Windows) | ||||
| 	return process.getuid != null && process.getuid() === 0; | ||||
| } | ||||
|  | ||||
| /** | ||||
|  * Init master process | ||||
|  */ | ||||
|   | ||||
| @@ -1,7 +1,9 @@ | ||||
| import { del, get, set } from '@client/scripts/idb-proxy'; | ||||
| import { reactive } from 'vue'; | ||||
| import { apiUrl } from '@client/config'; | ||||
| import { waiting } from '@client/os'; | ||||
| import { unisonReload } from '@client/scripts/unison-reload'; | ||||
| import { unisonReload, reloadChannel } from '@client/scripts/unison-reload'; | ||||
| import { showSuspendedDialog } from './scripts/show-suspended-dialog'; | ||||
|  | ||||
| // TODO: 他のタブと永続化されたstateを同期 | ||||
|  | ||||
| @@ -10,6 +12,7 @@ type Account = { | ||||
| 	token: string; | ||||
| 	isModerator: boolean; | ||||
| 	isAdmin: boolean; | ||||
| 	isDeleted: boolean; | ||||
| }; | ||||
|  | ||||
| const data = localStorage.getItem('account'); | ||||
| @@ -17,22 +20,57 @@ const data = localStorage.getItem('account'); | ||||
| // TODO: 外部からはreadonlyに | ||||
| export const $i = data ? reactive(JSON.parse(data) as Account) : null; | ||||
|  | ||||
| export function signout() { | ||||
| export async function signout() { | ||||
| 	waiting(); | ||||
| 	localStorage.removeItem('account'); | ||||
|  | ||||
| 	//#region Remove account | ||||
| 	const accounts = await getAccounts(); | ||||
| 	accounts.splice(accounts.findIndex(x => x.id === $i.id), 1); | ||||
|  | ||||
| 	if (accounts.length > 0) await set('accounts', accounts); | ||||
| 	else await del('accounts'); | ||||
| 	//#endregion | ||||
|  | ||||
| 	//#region Remove service worker registration | ||||
| 	try { | ||||
| 		if (navigator.serviceWorker.controller) { | ||||
| 			const registration = await navigator.serviceWorker.ready; | ||||
| 			const push = await registration.pushManager.getSubscription(); | ||||
| 			if (push) { | ||||
| 				await fetch(`${apiUrl}/sw/unregister`, { | ||||
| 					method: 'POST', | ||||
| 					body: JSON.stringify({ | ||||
| 						i: $i.token, | ||||
| 						endpoint: push.endpoint, | ||||
| 					}), | ||||
| 				}); | ||||
| 			} | ||||
| 		} | ||||
|  | ||||
| 		if (accounts.length === 0) { | ||||
| 			await navigator.serviceWorker.getRegistrations() | ||||
| 				.then(registrations => { | ||||
| 					return Promise.all(registrations.map(registration => registration.unregister())); | ||||
| 				}); | ||||
| 		} | ||||
| 	} catch (e) {} | ||||
| 	//#endregion | ||||
|  | ||||
| 	document.cookie = `igi=; path=/`; | ||||
| 	location.href = '/'; | ||||
|  | ||||
| 	if (accounts.length > 0) login(accounts[0].token); | ||||
| 	else unisonReload(); | ||||
| } | ||||
|  | ||||
| export function getAccounts() { | ||||
| 	const accountsData = localStorage.getItem('accounts'); | ||||
| 	const accounts: { id: Account['id'], token: Account['token'] }[] = accountsData ? JSON.parse(accountsData) : []; | ||||
| 	return accounts; | ||||
| export async function getAccounts(): Promise<{ id: Account['id'], token: Account['token'] }[]> { | ||||
| 	return (await get('accounts')) || []; | ||||
| } | ||||
|  | ||||
| export function addAccount(id: Account['id'], token: Account['token']) { | ||||
| 	const accounts = getAccounts(); | ||||
| export async function addAccount(id: Account['id'], token: Account['token']) { | ||||
| 	const accounts = await getAccounts(); | ||||
| 	if (!accounts.some(x => x.id === id)) { | ||||
| 		localStorage.setItem('accounts', JSON.stringify(accounts.concat([{ id, token }]))); | ||||
| 		await set('accounts', accounts.concat([{ id, token }])); | ||||
| 	} | ||||
| } | ||||
|  | ||||
| @@ -45,17 +83,20 @@ function fetchAccount(token): Promise<Account> { | ||||
| 				i: token | ||||
| 			}) | ||||
| 		}) | ||||
| 		.then(res => res.json()) | ||||
| 		.then(res => { | ||||
| 			// When failed to authenticate user | ||||
| 			if (res.status >= 400 && res.status < 500) { | ||||
| 				return signout(); | ||||
| 			if (res.error) { | ||||
| 				if (res.error.id === 'a8c724b3-6e9c-4b46-b1a8-bc3ed6258370') { | ||||
| 					showSuspendedDialog().then(() => { | ||||
| 						signout(); | ||||
| 					}); | ||||
| 				} else { | ||||
| 					signout(); | ||||
| 				} | ||||
| 			} else { | ||||
| 				res.token = token; | ||||
| 				done(res); | ||||
| 			} | ||||
|  | ||||
| 			// Parse response | ||||
| 			res.json().then(i => { | ||||
| 				i.token = token; | ||||
| 				done(i); | ||||
| 			}); | ||||
| 		}) | ||||
| 		.catch(fail); | ||||
| 	}); | ||||
| @@ -69,15 +110,22 @@ export function updateAccount(data) { | ||||
| } | ||||
|  | ||||
| export function refreshAccount() { | ||||
| 	fetchAccount($i.token).then(updateAccount); | ||||
| 	return fetchAccount($i.token).then(updateAccount); | ||||
| } | ||||
|  | ||||
| export async function login(token: Account['token']) { | ||||
| export async function login(token: Account['token'], redirect?: string) { | ||||
| 	waiting(); | ||||
| 	if (_DEV_) console.log('logging as token ', token); | ||||
| 	const me = await fetchAccount(token); | ||||
| 	localStorage.setItem('account', JSON.stringify(me)); | ||||
| 	addAccount(me.id, token); | ||||
| 	await addAccount(me.id, token); | ||||
|  | ||||
| 	if (redirect) { | ||||
| 		reloadChannel.postMessage('reload'); | ||||
| 		location.href = redirect; | ||||
| 		return; | ||||
| 	} | ||||
|  | ||||
| 	unisonReload(); | ||||
| } | ||||
|  | ||||
|   | ||||
| @@ -10,9 +10,9 @@ | ||||
| 	</template> | ||||
| 	<div class="dpvffvvy _monolithic_"> | ||||
| 		<div class="_section"> | ||||
| 			<MkTextarea v-model:value="comment"> | ||||
| 				<span>{{ $ts.details }}</span> | ||||
| 				<template #desc>{{ $ts.fillAbuseReportDescription }}</template> | ||||
| 			<MkTextarea v-model="comment"> | ||||
| 				<template #label>{{ $ts.details }}</template> | ||||
| 				<template #caption>{{ $ts.fillAbuseReportDescription }}</template> | ||||
| 			</MkTextarea> | ||||
| 		</div> | ||||
| 		<div class="_section"> | ||||
|   | ||||
| @@ -35,6 +35,7 @@ import { twemojiSvgBase } from '@/misc/twemoji-base'; | ||||
| import { getStaticImageUrl } from '@client/scripts/get-static-image-url'; | ||||
| import { acct } from '@client/filters/user'; | ||||
| import * as os from '@client/os'; | ||||
| import { instance } from '@client/instance'; | ||||
|  | ||||
| type EmojiDef = { | ||||
| 	emoji: string; | ||||
| @@ -75,6 +76,36 @@ for (const x of lib) { | ||||
|  | ||||
| emjdb.sort((a, b) => a.name.length - b.name.length); | ||||
|  | ||||
| //#region Construct Emoji DB | ||||
| const customEmojis = instance.emojis; | ||||
| const emojiDefinitions: EmojiDef[] = []; | ||||
|  | ||||
| for (const x of customEmojis) { | ||||
| 	emojiDefinitions.push({ | ||||
| 		name: x.name, | ||||
| 		emoji: `:${x.name}:`, | ||||
| 		url: x.url, | ||||
| 		isCustomEmoji: true | ||||
| 	}); | ||||
|  | ||||
| 	if (x.aliases) { | ||||
| 		for (const alias of x.aliases) { | ||||
| 			emojiDefinitions.push({ | ||||
| 				name: alias, | ||||
| 				aliasOf: x.name, | ||||
| 				emoji: `:${x.name}:`, | ||||
| 				url: x.url, | ||||
| 				isCustomEmoji: true | ||||
| 			}); | ||||
| 		} | ||||
| 	} | ||||
| } | ||||
|  | ||||
| emojiDefinitions.sort((a, b) => a.name.length - b.name.length); | ||||
|  | ||||
| const emojiDb = markRaw(emojiDefinitions.concat(emjdb)); | ||||
| //#endregion | ||||
|  | ||||
| export default defineComponent({ | ||||
| 	props: { | ||||
| 		type: { | ||||
| @@ -124,7 +155,6 @@ export default defineComponent({ | ||||
| 			emojis: [], | ||||
| 			items: [], | ||||
| 			select: -1, | ||||
| 			emojiDb: [] as EmojiDef[] | ||||
| 		} | ||||
| 	}, | ||||
|  | ||||
| @@ -144,36 +174,6 @@ export default defineComponent({ | ||||
| 	mounted() { | ||||
| 		this.setPosition(); | ||||
|  | ||||
| 		//#region Construct Emoji DB | ||||
| 		const customEmojis = this.$instance.emojis; | ||||
| 		const emojiDefinitions: EmojiDef[] = []; | ||||
|  | ||||
| 		for (const x of customEmojis) { | ||||
| 			emojiDefinitions.push({ | ||||
| 				name: x.name, | ||||
| 				emoji: `:${x.name}:`, | ||||
| 				url: x.url, | ||||
| 				isCustomEmoji: true | ||||
| 			}); | ||||
|  | ||||
| 			if (x.aliases) { | ||||
| 				for (const alias of x.aliases) { | ||||
| 					emojiDefinitions.push({ | ||||
| 						name: alias, | ||||
| 						aliasOf: x.name, | ||||
| 						emoji: `:${x.name}:`, | ||||
| 						url: x.url, | ||||
| 						isCustomEmoji: true | ||||
| 					}); | ||||
| 				} | ||||
| 			} | ||||
| 		} | ||||
|  | ||||
| 		emojiDefinitions.sort((a, b) => a.name.length - b.name.length); | ||||
|  | ||||
| 		this.emojiDb = markRaw(emojiDefinitions.concat(emjdb)); | ||||
| 		//#endregion | ||||
|  | ||||
| 		this.textarea.addEventListener('keydown', this.onKeydown); | ||||
|  | ||||
| 		for (const el of Array.from(document.querySelectorAll('body *'))) { | ||||
| @@ -203,6 +203,13 @@ export default defineComponent({ | ||||
| 		complete(type, value) { | ||||
| 			this.$emit('done', { type, value }); | ||||
| 			this.$emit('closed'); | ||||
|  | ||||
| 			if (type === 'emoji') { | ||||
| 				let recents = this.$store.state.recentlyUsedEmojis; | ||||
| 				recents = recents.filter((e: any) => e !== value); | ||||
| 				recents.unshift(value); | ||||
| 				this.$store.set('recentlyUsedEmojis', recents.splice(0, 32)); | ||||
| 			} | ||||
| 		}, | ||||
|  | ||||
| 		setPosition() { | ||||
| @@ -281,29 +288,26 @@ export default defineComponent({ | ||||
| 				} | ||||
| 			} else if (this.type == 'emoji') { | ||||
| 				if (this.q == null || this.q == '') { | ||||
| 					this.emojis = this.emojiDb.filter(x => x.isCustomEmoji && !x.aliasOf).sort((a, b) => { | ||||
| 						var textA = a.name.toUpperCase(); | ||||
| 						var textB = b.name.toUpperCase(); | ||||
| 						return (textA < textB) ? -1 : (textA > textB) ? 1 : 0; | ||||
| 					}); | ||||
| 					// 最近使った絵文字をサジェスト | ||||
| 					this.emojis = this.$store.state.recentlyUsedEmojis.map(emoji => emojiDb.find(e => e.emoji == emoji)).filter(x => x != null); | ||||
| 					return; | ||||
| 				} | ||||
|  | ||||
| 				const matched = []; | ||||
| 				const max = 30; | ||||
|  | ||||
| 				this.emojiDb.some(x => { | ||||
| 				emojiDb.some(x => { | ||||
| 					if (x.name.startsWith(this.q) && !x.aliasOf && !matched.some(y => y.emoji == x.emoji)) matched.push(x); | ||||
| 					return matched.length == max; | ||||
| 				}); | ||||
| 				if (matched.length < max) { | ||||
| 					this.emojiDb.some(x => { | ||||
| 					emojiDb.some(x => { | ||||
| 						if (x.name.startsWith(this.q) && !matched.some(y => y.emoji == x.emoji)) matched.push(x); | ||||
| 						return matched.length == max; | ||||
| 					}); | ||||
| 				} | ||||
| 				if (matched.length < max) { | ||||
| 					this.emojiDb.some(x => { | ||||
| 					emojiDb.some(x => { | ||||
| 						if (x.name.includes(this.q) && !matched.some(y => y.emoji == x.emoji)) matched.push(x); | ||||
| 						return matched.length == max; | ||||
| 					}); | ||||
|   | ||||
| @@ -48,15 +48,7 @@ export default defineComponent({ | ||||
| 	render() { | ||||
| 		if (this.items.length === 0) return; | ||||
|  | ||||
| 		return h(this.$store.state.animation ? TransitionGroup : 'div', this.$store.state.animation ? { | ||||
| 			class: 'sqadhkmv' + (this.noGap ? ' noGap _block' : ''), | ||||
| 			name: 'list', | ||||
| 			tag: 'div', | ||||
| 			'data-direction': this.direction, | ||||
| 			'data-reversed': this.reversed ? 'true' : 'false', | ||||
| 		} : { | ||||
| 			class: 'sqadhkmv' + (this.noGap ? ' noGap _block' : ''), | ||||
| 		}, this.items.map((item, i) => { | ||||
| 		const renderChildren = () => this.items.map((item, i) => { | ||||
| 			const el = this.$slots.default({ | ||||
| 				item: item | ||||
| 			})[0]; | ||||
| @@ -98,7 +90,19 @@ export default defineComponent({ | ||||
| 					return el; | ||||
| 				} | ||||
| 			} | ||||
| 		})); | ||||
| 		}); | ||||
|  | ||||
| 		return h(this.$store.state.animation ? TransitionGroup : 'div', this.$store.state.animation ? { | ||||
| 			class: 'sqadhkmv' + (this.noGap ? ' noGap' : ''), | ||||
| 			name: 'list', | ||||
| 			tag: 'div', | ||||
| 			'data-direction': this.direction, | ||||
| 			'data-reversed': this.reversed ? 'true' : 'false', | ||||
| 		} : { | ||||
| 			class: 'sqadhkmv' + (this.noGap ? ' noGap' : ''), | ||||
| 		}, { | ||||
| 			default: renderChildren | ||||
| 		}); | ||||
| 	}, | ||||
| }); | ||||
| </script> | ||||
|   | ||||
| @@ -14,8 +14,8 @@ | ||||
| 		</div> | ||||
| 		<header v-if="title"><Mfm :text="title"/></header> | ||||
| 		<div class="body" v-if="text"><Mfm :text="text"/></div> | ||||
| 		<MkInput v-if="input" v-model:value="inputValue" autofocus :type="input.type || 'text'" :placeholder="input.placeholder" @keydown="onInputKeydown"></MkInput> | ||||
| 		<MkSelect v-if="select" v-model:value="selectedValue" autofocus> | ||||
| 		<MkInput v-if="input" v-model="inputValue" autofocus :type="input.type || 'text'" :placeholder="input.placeholder" @keydown="onInputKeydown"></MkInput> | ||||
| 		<MkSelect v-if="select" v-model="selectedValue" autofocus> | ||||
| 			<template v-if="select.items"> | ||||
| 				<option v-for="item in select.items" :value="item.value">{{ item.text }}</option> | ||||
| 			</template> | ||||
|   | ||||
| @@ -114,7 +114,7 @@ export default defineComponent({ | ||||
| 			if (this.selectMode) { | ||||
| 				this.$emit('chosen', this.file); | ||||
| 			} else { | ||||
| 				os.modalMenu(this.getMenu(), ev.currentTarget || ev.target); | ||||
| 				os.popupMenu(this.getMenu(), ev.currentTarget || ev.target); | ||||
| 			} | ||||
| 		}, | ||||
|  | ||||
|   | ||||
| @@ -10,6 +10,7 @@ | ||||
| 			<span class="separator" v-if="folder != null"><i class="fas fa-angle-right"></i></span> | ||||
| 			<span class="folder current" v-if="folder != null">{{ folder.name }}</span> | ||||
| 		</div> | ||||
| 		<button @click="showMenu" class="menu _button"><i class="fas fa-ellipsis-h"></i></button> | ||||
| 	</nav> | ||||
| 	<div class="main" :class="{ uploading: uploadings.length > 0, fetching }" | ||||
| 		ref="main" | ||||
| @@ -627,8 +628,12 @@ export default defineComponent({ | ||||
| 			}]; | ||||
| 		}, | ||||
|  | ||||
| 		onContextmenu(e) { | ||||
| 			os.contextMenu(this.getMenu(), e); | ||||
| 		showMenu(ev) { | ||||
| 			os.popupMenu(this.getMenu(), ev.currentTarget || ev.target); | ||||
| 		}, | ||||
|  | ||||
| 		onContextmenu(ev) { | ||||
| 			os.contextMenu(this.getMenu(), ev); | ||||
| 		}, | ||||
| 	} | ||||
| }); | ||||
| @@ -641,7 +646,7 @@ export default defineComponent({ | ||||
| 	height: 100%; | ||||
|  | ||||
| 	> nav { | ||||
| 		display: block; | ||||
| 		display: flex; | ||||
| 		z-index: 2; | ||||
| 		width: 100%; | ||||
| 		padding: 0 8px; | ||||
| @@ -696,6 +701,10 @@ export default defineComponent({ | ||||
| 				} | ||||
| 			} | ||||
| 		} | ||||
|  | ||||
| 		> .menu { | ||||
| 			margin-left: auto; | ||||
| 		} | ||||
| 	} | ||||
|  | ||||
| 	> .main { | ||||
|   | ||||
| @@ -1,17 +1,17 @@ | ||||
| <template> | ||||
| <MkModal ref="modal" :manual-showing="manualShowing" :src="src" :front="true" @click="$refs.modal.close()" @opening="opening" @close="$emit('close')" @closed="$emit('closed')"> | ||||
| 	<MkEmojiPicker :show-pinned="showPinned" :as-reaction-picker="asReactionPicker" @chosen="chosen" ref="picker"/> | ||||
| </MkModal> | ||||
| <MkPopup ref="popup" :manual-showing="manualShowing" :src="src" :front="true" @click="$refs.popup.close()" @opening="opening" @close="$emit('close')" @closed="$emit('closed')" #default="{point}"> | ||||
| 	<MkEmojiPicker class="ryghynhb _popup _shadow" :class="{ pointer: point === 'top' }" :show-pinned="showPinned" :as-reaction-picker="asReactionPicker" @chosen="chosen" ref="picker"/> | ||||
| </MkPopup> | ||||
| </template> | ||||
|  | ||||
| <script lang="ts"> | ||||
| import { defineComponent, markRaw } from 'vue'; | ||||
| import MkModal from '@client/components/ui/modal.vue'; | ||||
| import MkPopup from '@client/components/ui/popup.vue'; | ||||
| import MkEmojiPicker from '@client/components/emoji-picker.vue'; | ||||
|  | ||||
| export default defineComponent({ | ||||
| 	components: { | ||||
| 		MkModal, | ||||
| 		MkPopup, | ||||
| 		MkEmojiPicker, | ||||
| 	}, | ||||
|  | ||||
| @@ -33,7 +33,7 @@ export default defineComponent({ | ||||
| 		}, | ||||
| 	}, | ||||
|  | ||||
| 	emits: ['done', 'closed'], | ||||
| 	emits: ['done', 'close', 'closed'], | ||||
|  | ||||
| 	data() { | ||||
| 		return { | ||||
| @@ -44,7 +44,7 @@ export default defineComponent({ | ||||
| 	methods: { | ||||
| 		chosen(emoji: any) { | ||||
| 			this.$emit('done', emoji); | ||||
| 			this.$refs.modal.close(); | ||||
| 			this.$refs.popup.close(); | ||||
| 		}, | ||||
|  | ||||
| 		opening() { | ||||
| @@ -56,145 +56,20 @@ export default defineComponent({ | ||||
| </script> | ||||
|  | ||||
| <style lang="scss" scoped> | ||||
| .omfetrab { | ||||
| 	$pad: 8px; | ||||
| 	--eachSize: 40px; | ||||
|  | ||||
| 	display: flex; | ||||
| 	flex-direction: column; | ||||
| 	contain: content; | ||||
|  | ||||
| 	&.big { | ||||
| 		--eachSize: 44px; | ||||
| 	} | ||||
|  | ||||
| 	&.w1 { | ||||
| 		width: calc((var(--eachSize) * 5) + (#{$pad} * 2)); | ||||
| 	} | ||||
|  | ||||
| 	&.w2 { | ||||
| 		width: calc((var(--eachSize) * 6) + (#{$pad} * 2)); | ||||
| 	} | ||||
|  | ||||
| 	&.w3 { | ||||
| 		width: calc((var(--eachSize) * 7) + (#{$pad} * 2)); | ||||
| 	} | ||||
|  | ||||
| 	&.h1 { | ||||
| 		--height: calc((var(--eachSize) * 4) + (#{$pad} * 2)); | ||||
| 	} | ||||
|  | ||||
| 	&.h2 { | ||||
| 		--height: calc((var(--eachSize) * 6) + (#{$pad} * 2)); | ||||
| 	} | ||||
|  | ||||
| 	&.h3 { | ||||
| 		--height: calc((var(--eachSize) * 8) + (#{$pad} * 2)); | ||||
| 	} | ||||
|  | ||||
| 	> .search { | ||||
| 		width: 100%; | ||||
| 		padding: 12px; | ||||
| 		box-sizing: border-box; | ||||
| 		font-size: 1em; | ||||
| 		outline: none; | ||||
| 		border: none; | ||||
| 		background: transparent; | ||||
| 		color: var(--fg); | ||||
|  | ||||
| 		&:not(.filled) { | ||||
| 			order: 1; | ||||
| 			z-index: 2; | ||||
| 			box-shadow: 0px -1px 0 0px var(--divider); | ||||
| 		} | ||||
| 	} | ||||
|  | ||||
| 	> .emojis { | ||||
| 		height: var(--height); | ||||
| 		overflow-y: auto; | ||||
| 		overflow-x: hidden; | ||||
|  | ||||
| 		scrollbar-width: none; | ||||
|  | ||||
| 		&::-webkit-scrollbar { | ||||
| 			display: none; | ||||
| 		} | ||||
|  | ||||
| 		> .index { | ||||
| 			min-height: var(--height); | ||||
| 			position: relative; | ||||
| 			border-bottom: solid 0.5px var(--divider); | ||||
| 				 | ||||
| 			> .arrow { | ||||
| 				position: absolute; | ||||
| 				bottom: 0; | ||||
| 				left: 0; | ||||
| 				width: 100%; | ||||
| 				padding: 16px 0; | ||||
| 				text-align: center; | ||||
| 				opacity: 0.5; | ||||
| 				pointer-events: none; | ||||
| 			} | ||||
| 		} | ||||
|  | ||||
| 		section { | ||||
| 			> header { | ||||
| 				position: sticky; | ||||
| 				top: 0; | ||||
| 				left: 0; | ||||
| 				z-index: 1; | ||||
| 				padding: 8px; | ||||
| 				font-size: 12px; | ||||
| 			} | ||||
|  | ||||
| 			> div { | ||||
| 				padding: $pad; | ||||
|  | ||||
| 				> button { | ||||
| 					position: relative; | ||||
| 					padding: 0; | ||||
| 					width: var(--eachSize); | ||||
| 					height: var(--eachSize); | ||||
| 					border-radius: 4px; | ||||
|  | ||||
| 					&:focus { | ||||
| 						outline: solid 2px var(--focus); | ||||
| 						z-index: 1; | ||||
| 					} | ||||
|  | ||||
| 					&:hover { | ||||
| 						background: rgba(0, 0, 0, 0.05); | ||||
| 					} | ||||
|  | ||||
| 					&:active { | ||||
| 						background: var(--accent); | ||||
| 						box-shadow: inset 0 0.15em 0.3em rgba(27, 31, 35, 0.15); | ||||
| 					} | ||||
|  | ||||
| 					> * { | ||||
| 						font-size: 24px; | ||||
| 						height: 1.25em; | ||||
| 						vertical-align: -.25em; | ||||
| 						pointer-events: none; | ||||
| 					} | ||||
| 				} | ||||
| 			} | ||||
|  | ||||
| 			&.result { | ||||
| 				border-bottom: solid 0.5px var(--divider); | ||||
|  | ||||
| 				&:empty { | ||||
| 					display: none; | ||||
| 				} | ||||
| 			} | ||||
|  | ||||
| 			&.unicode { | ||||
| 				min-height: 384px; | ||||
| 			} | ||||
|  | ||||
| 			&.custom { | ||||
| 				min-height: 64px; | ||||
| 			} | ||||
| .ryghynhb { | ||||
| 	&.pointer { | ||||
| 		&:before { | ||||
| 			--size: 8px; | ||||
| 			content: ''; | ||||
| 			display: block; | ||||
| 			position: absolute; | ||||
| 			top: calc(0px - (var(--size) * 2)); | ||||
| 			left: 0; | ||||
| 			right: 0; | ||||
| 			width: 0; | ||||
| 			margin: auto; | ||||
| 			border: solid var(--size) transparent; | ||||
| 			border-bottom-color: var(--popup); | ||||
| 		} | ||||
| 	} | ||||
| } | ||||
|   | ||||
| @@ -1,5 +1,5 @@ | ||||
| <template> | ||||
| <div class="omfetrab _popup" :class="['w' + width, 'h' + height, { big }]"> | ||||
| <div class="omfetrab" :class="['w' + width, 'h' + height, { big }]"> | ||||
| 	<input ref="search" class="search" data-prevent-emoji-insert :class="{ filled: q != null && q != '' }" v-model.trim="q" :placeholder="$ts.search" @paste.stop="paste" @keyup.enter="done()"> | ||||
| 	<div class="emojis" ref="emojis"> | ||||
| 		<section class="result"> | ||||
| @@ -346,7 +346,6 @@ export default defineComponent({ | ||||
|  | ||||
| 	display: flex; | ||||
| 	flex-direction: column; | ||||
| 	contain: content; | ||||
|  | ||||
| 	&.big { | ||||
| 		--eachSize: 44px; | ||||
|   | ||||
| @@ -9,14 +9,14 @@ | ||||
|  | ||||
| 	<form class="_monolithic_" @submit.prevent="onSubmit" v-if="$instance.enableEmail"> | ||||
| 		<div class="_section"> | ||||
| 			<MkInput v-model:value="username" type="text" pattern="^[a-zA-Z0-9_]+$" spellcheck="false" autofocus required> | ||||
| 				<span>{{ $ts.username }}</span> | ||||
| 			<MkInput v-model="username" type="text" pattern="^[a-zA-Z0-9_]+$" spellcheck="false" autofocus required> | ||||
| 				<template #label>{{ $ts.username }}</template> | ||||
| 				<template #prefix>@</template> | ||||
| 			</MkInput> | ||||
|  | ||||
| 			<MkInput v-model:value="email" type="email" spellcheck="false" required> | ||||
| 				<span>{{ $ts.emailAddress }}</span> | ||||
| 				<template #desc>{{ $ts._forgotPassword.enterEmail }}</template> | ||||
| 			<MkInput v-model="email" type="email" spellcheck="false" required> | ||||
| 				<template #label>{{ $ts.emailAddress }}</template> | ||||
| 				<template #caption>{{ $ts._forgotPassword.enterEmail }}</template> | ||||
| 			</MkInput> | ||||
|  | ||||
| 			<MkButton type="submit" :disabled="processing" primary style="margin: 0 auto;">{{ $ts.send }}</MkButton> | ||||
|   | ||||
| @@ -32,8 +32,8 @@ | ||||
| 	margin: -8px calc(var(--formXPadding) * -1) 0 calc(var(--formXPadding) * -1); | ||||
| 	padding: 8px calc(var(--formContentHMargin) + var(--formXPadding)) 8px calc(var(--formContentHMargin) + var(--formXPadding)); | ||||
| 	background: var(--X17); | ||||
| 	-webkit-backdrop-filter: blur(10px); | ||||
| 	backdrop-filter: blur(10px); | ||||
| 	-webkit-backdrop-filter: var(--blur, blur(10px)); | ||||
| 	backdrop-filter: var(--blur, blur(10px)); | ||||
| } | ||||
|  | ||||
| ._themeChanging_ ._formLabel { | ||||
|   | ||||
| @@ -73,6 +73,22 @@ export default defineComponent({ | ||||
| </script> | ||||
|  | ||||
| <style lang="scss" scoped> | ||||
| @keyframes earwiggleleft { | ||||
| 	from { transform: rotate(37.6deg) skew(30deg); } | ||||
| 	25% { transform: rotate(10deg) skew(30deg); } | ||||
| 	50% { transform: rotate(20deg) skew(30deg); } | ||||
| 	75% { transform: rotate(0deg) skew(30deg); } | ||||
| 	to { transform: rotate(37.6deg) skew(30deg); } | ||||
| } | ||||
|  | ||||
| @keyframes earwiggleright { | ||||
| 	from { transform: rotate(-37.6deg) skew(-30deg); } | ||||
| 	30% { transform: rotate(-10deg) skew(-30deg); } | ||||
| 	55% { transform: rotate(-20deg) skew(-30deg); } | ||||
| 	75% { transform: rotate(0deg) skew(-30deg); } | ||||
| 	to { transform: rotate(-37.6deg) skew(-30deg); } | ||||
| } | ||||
|  | ||||
| .eiwwqkts { | ||||
| 	position: relative; | ||||
| 	display: inline-block; | ||||
| @@ -132,6 +148,16 @@ export default defineComponent({ | ||||
| 			border-radius: 75% 0 75% 75%; | ||||
| 			transform: rotate(-37.5deg) skew(-30deg); | ||||
| 		} | ||||
|  | ||||
| 		&:hover { | ||||
| 			&:before { | ||||
| 				animation: earwiggleleft 1s infinite; | ||||
| 			} | ||||
|  | ||||
| 			&:after { | ||||
| 				animation: earwiggleright 1s infinite; | ||||
| 			} | ||||
| 		} | ||||
| 	} | ||||
| } | ||||
| </style> | ||||
|   | ||||
| @@ -1,5 +1,5 @@ | ||||
| <template> | ||||
| <div class="yxspomdl" :class="{ inline, colored }"> | ||||
| <div class="yxspomdl" :class="{ inline, colored, mini }"> | ||||
| 	<div class="ring"></div> | ||||
| </div> | ||||
| </template> | ||||
| @@ -18,7 +18,12 @@ export default defineComponent({ | ||||
| 			type: Boolean, | ||||
| 			required: false, | ||||
| 			default: true | ||||
| 		} | ||||
| 		}, | ||||
| 		mini: { | ||||
| 			type: Boolean, | ||||
| 			required: false, | ||||
| 			default: false | ||||
| 		}, | ||||
| 	} | ||||
| }); | ||||
| </script> | ||||
| @@ -38,6 +43,8 @@ export default defineComponent({ | ||||
| 	text-align: center; | ||||
| 	cursor: wait; | ||||
|  | ||||
| 	--size: 48px; | ||||
|  | ||||
| 	&.colored { | ||||
| 		color: var(--accent); | ||||
| 	} | ||||
| @@ -45,19 +52,12 @@ export default defineComponent({ | ||||
| 	&.inline { | ||||
| 		display: inline; | ||||
| 		padding: 0; | ||||
| 		--size: 32px; | ||||
| 	} | ||||
|  | ||||
| 		> .ring:after { | ||||
| 			width: 32px; | ||||
| 			height: 32px; | ||||
| 		} | ||||
|  | ||||
| 		> .ring { | ||||
| 			&:before, | ||||
| 			&:after { | ||||
| 				width: 32px; | ||||
| 				height: 32px; | ||||
| 			} | ||||
| 		} | ||||
| 	&.mini { | ||||
| 		padding: 16px; | ||||
| 		--size: 32px; | ||||
| 	} | ||||
|  | ||||
| 	> .ring { | ||||
| @@ -70,8 +70,8 @@ export default defineComponent({ | ||||
| 			content: " "; | ||||
| 			display: block; | ||||
| 			box-sizing: border-box; | ||||
| 			width: 48px; | ||||
| 			height: 48px; | ||||
| 			width: var(--size); | ||||
| 			height: var(--size); | ||||
| 			border-radius: 50%; | ||||
| 			border: solid 4px; | ||||
| 		} | ||||
|   | ||||
| @@ -117,6 +117,11 @@ export default defineComponent({ | ||||
| 	75% { transform: scale3d(1.05, 0.95, 1); } | ||||
| 	to { transform: scale3d(1, 1, 1); } | ||||
| } | ||||
|  | ||||
| @keyframes mfm-rainbow { | ||||
| 	0% { filter: hue-rotate(0deg) contrast(150%) saturate(150%); } | ||||
| 	100% { filter: hue-rotate(360deg) contrast(150%) saturate(150%); } | ||||
| } | ||||
| </style> | ||||
|  | ||||
| <style lang="scss" scoped> | ||||
|   | ||||
| @@ -1,7 +1,7 @@ | ||||
| <template> | ||||
| <div class="zbcjwnqg" style="margin-top: -8px;"> | ||||
| 	<div class="selects" style="display: flex;"> | ||||
| 		<MkSelect v-model:value="chartSrc" style="margin: 0; flex: 1;"> | ||||
| 		<MkSelect v-model="chartSrc" style="margin: 0; flex: 1;"> | ||||
| 			<optgroup :label="$ts.federation"> | ||||
| 				<option value="federation-instances">{{ $ts._charts.federationInstancesIncDec }}</option> | ||||
| 				<option value="federation-instances-total">{{ $ts._charts.federationInstancesTotal }}</option> | ||||
| @@ -24,7 +24,7 @@ | ||||
| 				<option value="drive-total">{{ $ts._charts.storageUsageTotal }}</option> | ||||
| 			</optgroup> | ||||
| 		</MkSelect> | ||||
| 		<MkSelect v-model:value="chartSpan" style="margin: 0;"> | ||||
| 		<MkSelect v-model="chartSpan" style="margin: 0;"> | ||||
| 			<option value="hour">{{ $ts.perHour }}</option> | ||||
| 			<option value="day">{{ $ts.perDay }}</option> | ||||
| 		</MkSelect> | ||||
|   | ||||
| @@ -8,6 +8,7 @@ import { concat } from '@client/../prelude/array'; | ||||
| import MkFormula from '@client/components/formula.vue'; | ||||
| import MkCode from '@client/components/code.vue'; | ||||
| import MkGoogle from '@client/components/google.vue'; | ||||
| import MkSparkle from '@client/components/sparkle.vue'; | ||||
| import MkA from '@client/components/global/a.vue'; | ||||
| import { host } from '@client/config'; | ||||
|  | ||||
| @@ -165,6 +166,23 @@ export default defineComponent({ | ||||
| 								class: '_mfm_blur_', | ||||
| 							}, genEl(token.children)); | ||||
| 						} | ||||
| 						case 'rainbow': { | ||||
| 							style = this.$store.state.animatedMfm ? 'animation: mfm-rainbow 1s linear infinite;' : ''; | ||||
| 							break; | ||||
| 						} | ||||
| 						case 'sparkle': { | ||||
| 							if (!this.$store.state.animatedMfm) { | ||||
| 								return genEl(token.children); | ||||
| 							} | ||||
| 							let count = token.props.args.count ? parseInt(token.props.args.count) : 10; | ||||
| 							if (count > 100) { | ||||
| 								count = 100; | ||||
| 							} | ||||
| 							const speed = token.props.args.speed ? parseFloat(token.props.args.speed) : 1; | ||||
| 							return h(MkSparkle, { | ||||
| 								count, speed, | ||||
| 							}, genEl(token.children)); | ||||
| 						} | ||||
| 					} | ||||
| 					if (style == null) { | ||||
| 						return h('span', {}, ['[', token.props.name, ...genEl(token.children), ']']); | ||||
|   | ||||
| @@ -1,13 +1,10 @@ | ||||
| <template> | ||||
| <MkModal ref="modal" @click="$emit('click')" @closed="$emit('closed')"> | ||||
| 	<div class="hrmcaedk _popup _narrow_" :style="{ width: `${width}px`, height: (height ? `min(${height}px, 100%)` : '100%') }"> | ||||
| 	<div class="hrmcaedk _window _narrow_" :style="{ width: `${width}px`, height: (height ? `min(${height}px, 100%)` : '100%') }"> | ||||
| 		<div class="header" @contextmenu="onContextmenu"> | ||||
| 			<button class="_button" @click="back()" v-if="history.length > 0"><i class="fas fa-chevron-left"></i></button> | ||||
| 			<button class="_button" style="pointer-events: none;" v-else><!-- マージンのバランスを取るためのダミー --></button> | ||||
| 			<span class="title"> | ||||
| 				<XHeader :info="pageInfo" :with-back="false"/> | ||||
| 				<XHeader :info="pageInfo" :back-button="history.length > 0" @back="back()" :close-button="true" @close="$refs.modal.close()"/> | ||||
| 			</span> | ||||
| 			<button class="_button" @click="$refs.modal.close()"><i class="fas fa-times"></i></button> | ||||
| 		</div> | ||||
| 		<div class="body _flat_"> | ||||
| 			<keep-alive> | ||||
| @@ -177,35 +174,19 @@ export default defineComponent({ | ||||
| 		flex-shrink: 0; | ||||
| 		box-shadow: 0px 1px var(--divider); | ||||
|  | ||||
| 		> button { | ||||
| 			height: $height; | ||||
| 			width: $height; | ||||
|  | ||||
| 			@media (max-width: 500px) { | ||||
| 				height: $height-narrow; | ||||
| 				width: $height-narrow; | ||||
| 			} | ||||
| 		} | ||||
|  | ||||
| 		> .title { | ||||
| 			flex: 1; | ||||
| 			line-height: $height; | ||||
| 			padding-left: 32px; | ||||
| 			height: $height; | ||||
| 			font-weight: bold; | ||||
| 			white-space: nowrap; | ||||
| 			overflow: hidden; | ||||
| 			text-overflow: ellipsis; | ||||
| 			pointer-events: none; | ||||
|  | ||||
| 			@media (max-width: 500px) { | ||||
| 				line-height: $height-narrow; | ||||
| 				height: $height-narrow; | ||||
| 				padding-left: 16px; | ||||
| 			} | ||||
| 		} | ||||
|  | ||||
| 		> button + .title { | ||||
| 			padding-left: 0; | ||||
| 		} | ||||
| 	} | ||||
|  | ||||
| 	> .body { | ||||
|   | ||||
| @@ -1,6 +1,6 @@ | ||||
| <template> | ||||
| <div | ||||
| 	class="note _block" | ||||
| 	class="lxwezrsl _block" | ||||
| 	v-if="!muted" | ||||
| 	v-show="!isDeleted" | ||||
| 	:tabindex="!isDeleted ? '-1' : null" | ||||
| @@ -67,6 +67,13 @@ | ||||
| 						<MkA class="reply" v-if="appearNote.replyId" :to="`/notes/${appearNote.replyId}`"><i class="fas fa-reply"></i></MkA> | ||||
| 						<Mfm v-if="appearNote.text" :text="appearNote.text" :author="appearNote.user" :i="$i" :custom-emojis="appearNote.emojis"/> | ||||
| 						<a class="rp" v-if="appearNote.renote != null">RN:</a> | ||||
| 						<div class="translation" v-if="translating || translation"> | ||||
| 							<MkLoading v-if="translating" mini/> | ||||
| 							<div class="translated" v-else> | ||||
| 								<b>{{ $t('translatedFrom', { x: translation.sourceLang }) }}:</b> | ||||
| 								{{ translation.text }} | ||||
| 							</div> | ||||
| 						</div> | ||||
| 					</div> | ||||
| 					<div class="files" v-if="appearNote.files.length > 0"> | ||||
| 						<XMediaList :media-list="appearNote.files"/> | ||||
| @@ -79,8 +86,8 @@ | ||||
| 			</div> | ||||
| 			<footer class="footer"> | ||||
| 				<div class="info"> | ||||
| 					<span class="mobile" v-if="note.viaMobile"><i class="fas fa-mobile-alt"></i></span> | ||||
| 					<MkTime class="created-at" :time="note.createdAt" mode="detail"/> | ||||
| 					<span class="mobile" v-if="appearNote.viaMobile"><i class="fas fa-mobile-alt"></i></span> | ||||
| 					<MkTime class="created-at" :time="appearNote.createdAt" mode="detail"/> | ||||
| 				</div> | ||||
| 				<XReactionsViewer :note="appearNote" ref="reactionsViewer"/> | ||||
| 				<button @click="reply()" class="button _button"> | ||||
| @@ -178,6 +185,8 @@ export default defineComponent({ | ||||
| 			showContent: false, | ||||
| 			isDeleted: false, | ||||
| 			muted: false, | ||||
| 			translation: null, | ||||
| 			translating: false, | ||||
| 		}; | ||||
| 	}, | ||||
|  | ||||
| @@ -454,7 +463,7 @@ export default defineComponent({ | ||||
| 		renote(viaKeyboard = false) { | ||||
| 			pleaseLogin(); | ||||
| 			this.blur(); | ||||
| 			os.modalMenu([{ | ||||
| 			os.popupMenu([{ | ||||
| 				text: this.$ts.renote, | ||||
| 				icon: 'fas fa-retweet', | ||||
| 				action: () => { | ||||
| @@ -619,6 +628,11 @@ export default defineComponent({ | ||||
| 					text: this.$ts.share, | ||||
| 					action: this.share | ||||
| 				}, | ||||
| 				this.$instance.translatorAvailable ? { | ||||
| 					icon: 'fas fa-language', | ||||
| 					text: this.$ts.translate, | ||||
| 					action: this.translate | ||||
| 				} : undefined, | ||||
| 				null, | ||||
| 				statePromise.then(state => state.isFavorited ? { | ||||
| 					icon: 'fas fa-star', | ||||
| @@ -743,14 +757,14 @@ export default defineComponent({ | ||||
| 		}, | ||||
|  | ||||
| 		menu(viaKeyboard = false) { | ||||
| 			os.modalMenu(this.getMenu(), this.$refs.menuButton, { | ||||
| 			os.popupMenu(this.getMenu(), this.$refs.menuButton, { | ||||
| 				viaKeyboard | ||||
| 			}).then(this.focus); | ||||
| 		}, | ||||
|  | ||||
| 		showRenoteMenu(viaKeyboard = false) { | ||||
| 			if (!this.isMyRenote) return; | ||||
| 			os.modalMenu([{ | ||||
| 			os.popupMenu([{ | ||||
| 				text: this.$ts.unrenote, | ||||
| 				icon: 'fas fa-trash-alt', | ||||
| 				danger: true, | ||||
| @@ -794,7 +808,7 @@ export default defineComponent({ | ||||
|  | ||||
| 		async clip() { | ||||
| 			const clips = await os.api('clips/list'); | ||||
| 			os.modalMenu([{ | ||||
| 			os.popupMenu([{ | ||||
| 				icon: 'fas fa-plus', | ||||
| 				text: this.$ts.createNew, | ||||
| 				action: async () => { | ||||
| @@ -852,6 +866,17 @@ export default defineComponent({ | ||||
| 			}); | ||||
| 		}, | ||||
|  | ||||
| 		async translate() { | ||||
| 			if (this.translation != null) return; | ||||
| 			this.translating = true; | ||||
| 			const res = await os.api('notes/translate', { | ||||
| 				noteId: this.appearNote.id, | ||||
| 				targetLang: localStorage.getItem('lang') || navigator.language, | ||||
| 			}); | ||||
| 			this.translating = false; | ||||
| 			this.translation = res; | ||||
| 		}, | ||||
|  | ||||
| 		focus() { | ||||
| 			this.$el.focus(); | ||||
| 		}, | ||||
| @@ -874,7 +899,7 @@ export default defineComponent({ | ||||
| </script> | ||||
|  | ||||
| <style lang="scss" scoped> | ||||
| .note { | ||||
| .lxwezrsl { | ||||
| 	position: relative; | ||||
| 	transition: box-shadow 0.1s ease; | ||||
| 	overflow: hidden; | ||||
| @@ -1050,6 +1075,13 @@ export default defineComponent({ | ||||
| 							font-style: oblique; | ||||
| 							color: var(--renote); | ||||
| 						} | ||||
|  | ||||
| 						> .translation { | ||||
| 							border: solid 0.5px var(--divider); | ||||
| 							border-radius: var(--radius); | ||||
| 							padding: 12px; | ||||
| 							margin-top: 8px; | ||||
| 						} | ||||
| 					} | ||||
|  | ||||
| 					> .url-preview { | ||||
|   | ||||
| @@ -3,10 +3,10 @@ | ||||
| 	<MkA class="name" :to="userPage(note.user)" v-user-preview="note.user.id"> | ||||
| 		<MkUserName :user="note.user"/> | ||||
| 	</MkA> | ||||
| 	<span class="is-bot" v-if="note.user.isBot">bot</span> | ||||
| 	<span class="username"><MkAcct :user="note.user"/></span> | ||||
| 	<span class="admin" v-if="note.user.isAdmin"><i class="fas fa-bookmark"></i></span> | ||||
| 	<span class="moderator" v-if="!note.user.isAdmin && note.user.isModerator"><i class="far fa-bookmark"></i></span> | ||||
| 	<div class="is-bot" v-if="note.user.isBot">bot</div> | ||||
| 	<div class="username"><MkAcct :user="note.user"/></div> | ||||
| 	<div class="admin" v-if="note.user.isAdmin"><i class="fas fa-bookmark"></i></div> | ||||
| 	<div class="moderator" v-if="!note.user.isAdmin && note.user.isModerator"><i class="far fa-bookmark"></i></div> | ||||
| 	<div class="info"> | ||||
| 		<span class="mobile" v-if="note.viaMobile"><i class="fas fa-mobile-alt"></i></span> | ||||
| 		<MkA class="created-at" :to="notePage(note)"> | ||||
| @@ -24,8 +24,8 @@ | ||||
|  | ||||
| <script lang="ts"> | ||||
| import { defineComponent } from 'vue'; | ||||
| import notePage from '../filters/note'; | ||||
| import { userPage } from '../filters/user'; | ||||
| import notePage from '@client/filters/note'; | ||||
| import { userPage } from '@client/filters/user'; | ||||
| import * as os from '@client/os'; | ||||
|  | ||||
| export default defineComponent({ | ||||
| @@ -55,6 +55,7 @@ export default defineComponent({ | ||||
| 	white-space: nowrap; | ||||
|  | ||||
| 	> .name { | ||||
| 		flex-shrink: 1; | ||||
| 		display: block; | ||||
| 		margin: 0 .5em 0 0; | ||||
| 		padding: 0; | ||||
| @@ -81,17 +82,20 @@ export default defineComponent({ | ||||
|  | ||||
| 	> .admin, | ||||
| 	> .moderator { | ||||
| 		flex-shrink: 0; | ||||
| 		margin-right: 0.5em; | ||||
| 		color: var(--badge); | ||||
| 	} | ||||
|  | ||||
| 	> .username { | ||||
| 		flex-shrink: 9999999; | ||||
| 		margin: 0 .5em 0 0; | ||||
| 		overflow: hidden; | ||||
| 		text-overflow: ellipsis; | ||||
| 	} | ||||
|  | ||||
| 	> .info { | ||||
| 		flex-shrink: 0; | ||||
| 		margin-left: auto; | ||||
| 		font-size: 0.9em; | ||||
|  | ||||
|   | ||||
| @@ -51,6 +51,13 @@ | ||||
| 						<MkA class="reply" v-if="appearNote.replyId" :to="`/notes/${appearNote.replyId}`"><i class="fas fa-reply"></i></MkA> | ||||
| 						<Mfm v-if="appearNote.text" :text="appearNote.text" :author="appearNote.user" :i="$i" :custom-emojis="appearNote.emojis"/> | ||||
| 						<a class="rp" v-if="appearNote.renote != null">RN:</a> | ||||
| 						<div class="translation" v-if="translating || translation"> | ||||
| 							<MkLoading v-if="translating" mini/> | ||||
| 							<div class="translated" v-else> | ||||
| 								<b>{{ $t('translatedFrom', { x: translation.sourceLang }) }}:</b> | ||||
| 								{{ translation.text }} | ||||
| 							</div> | ||||
| 						</div> | ||||
| 					</div> | ||||
| 					<div class="files" v-if="appearNote.files.length > 0"> | ||||
| 						<XMediaList :media-list="appearNote.files"/> | ||||
| @@ -164,6 +171,8 @@ export default defineComponent({ | ||||
| 			collapsed: false, | ||||
| 			isDeleted: false, | ||||
| 			muted: false, | ||||
| 			translation: null, | ||||
| 			translating: false, | ||||
| 		}; | ||||
| 	}, | ||||
|  | ||||
| @@ -429,7 +438,7 @@ export default defineComponent({ | ||||
| 		renote(viaKeyboard = false) { | ||||
| 			pleaseLogin(); | ||||
| 			this.blur(); | ||||
| 			os.modalMenu([{ | ||||
| 			os.popupMenu([{ | ||||
| 				text: this.$ts.renote, | ||||
| 				icon: 'fas fa-retweet', | ||||
| 				action: () => { | ||||
| @@ -594,6 +603,11 @@ export default defineComponent({ | ||||
| 					text: this.$ts.share, | ||||
| 					action: this.share | ||||
| 				}, | ||||
| 				this.$instance.translatorAvailable ? { | ||||
| 					icon: 'fas fa-language', | ||||
| 					text: this.$ts.translate, | ||||
| 					action: this.translate | ||||
| 				} : undefined, | ||||
| 				null, | ||||
| 				statePromise.then(state => state.isFavorited ? { | ||||
| 					icon: 'fas fa-star', | ||||
| @@ -718,14 +732,14 @@ export default defineComponent({ | ||||
| 		}, | ||||
|  | ||||
| 		menu(viaKeyboard = false) { | ||||
| 			os.modalMenu(this.getMenu(), this.$refs.menuButton, { | ||||
| 			os.popupMenu(this.getMenu(), this.$refs.menuButton, { | ||||
| 				viaKeyboard | ||||
| 			}).then(this.focus); | ||||
| 		}, | ||||
|  | ||||
| 		showRenoteMenu(viaKeyboard = false) { | ||||
| 			if (!this.isMyRenote) return; | ||||
| 			os.modalMenu([{ | ||||
| 			os.popupMenu([{ | ||||
| 				text: this.$ts.unrenote, | ||||
| 				icon: 'fas fa-trash-alt', | ||||
| 				danger: true, | ||||
| @@ -769,7 +783,7 @@ export default defineComponent({ | ||||
|  | ||||
| 		async clip() { | ||||
| 			const clips = await os.api('clips/list'); | ||||
| 			os.modalMenu([{ | ||||
| 			os.popupMenu([{ | ||||
| 				icon: 'fas fa-plus', | ||||
| 				text: this.$ts.createNew, | ||||
| 				action: async () => { | ||||
| @@ -827,6 +841,17 @@ export default defineComponent({ | ||||
| 			}); | ||||
| 		}, | ||||
|  | ||||
| 		async translate() { | ||||
| 			if (this.translation != null) return; | ||||
| 			this.translating = true; | ||||
| 			const res = await os.api('notes/translate', { | ||||
| 				noteId: this.appearNote.id, | ||||
| 				targetLang: localStorage.getItem('lang') || navigator.language, | ||||
| 			}); | ||||
| 			this.translating = false; | ||||
| 			this.translation = res; | ||||
| 		}, | ||||
|  | ||||
| 		focus() { | ||||
| 			this.$el.focus(); | ||||
| 		}, | ||||
| @@ -1053,6 +1078,13 @@ export default defineComponent({ | ||||
| 							font-style: oblique; | ||||
| 							color: var(--renote); | ||||
| 						} | ||||
|  | ||||
| 						> .translation { | ||||
| 							border: solid 0.5px var(--divider); | ||||
| 							border-radius: var(--radius); | ||||
| 							padding: 12px; | ||||
| 							margin-top: 8px; | ||||
| 						} | ||||
| 					} | ||||
|  | ||||
| 					> .url-preview { | ||||
|   | ||||
| @@ -9,7 +9,7 @@ | ||||
| 		<div>{{ $ts.noNotes }}</div> | ||||
| 	</div> | ||||
|  | ||||
| 	<div v-else> | ||||
| 	<div v-else class="giivymft" :class="{ noGap }"> | ||||
| 		<div v-show="more && reversed" style="margin-bottom: var(--margin);"> | ||||
| 			<MkButton style="margin: 0 auto;" @click="fetchMoreFeature" :disabled="moreFetching" :style="{ cursor: moreFetching ? 'wait' : 'pointer' }"> | ||||
| 				<template v-if="!moreFetching">{{ $ts.loadMore }}</template> | ||||
| @@ -17,8 +17,8 @@ | ||||
| 			</MkButton> | ||||
| 		</div> | ||||
|  | ||||
| 		<XList ref="notes" :items="notes" v-slot="{ item: note }" :direction="reversed ? 'up' : 'down'" :reversed="reversed" :no-gap="noGap" :ad="true"> | ||||
| 			<XNote :note="note" class="_block" @update:note="updated(note, $event)" :key="note._featuredId_ || note._prId_ || note.id"/> | ||||
| 		<XList ref="notes" :items="notes" v-slot="{ item: note }" :direction="reversed ? 'up' : 'down'" :reversed="reversed" :no-gap="noGap" :ad="true" class="notes"> | ||||
| 			<XNote class="qtqtichx" :note="note" @update:note="updated(note, $event)" :key="note._featuredId_ || note._prId_ || note.id"/> | ||||
| 		</XList> | ||||
|  | ||||
| 		<div v-show="more && !reversed" style="margin-top: var(--margin);"> | ||||
| @@ -108,4 +108,23 @@ export default defineComponent({ | ||||
| .fade-leave-to { | ||||
| 	opacity: 0; | ||||
| } | ||||
|  | ||||
| .giivymft { | ||||
| 	&.noGap { | ||||
| 		> .notes { | ||||
| 			background: var(--panel); | ||||
| 		} | ||||
| 	} | ||||
|  | ||||
| 	&:not(.noGap) { | ||||
| 		> .notes { | ||||
| 			background: var(--bg); | ||||
|  | ||||
| 			.qtqtichx { | ||||
| 				background: var(--panel); | ||||
| 				border-radius: var(--radius); | ||||
| 			} | ||||
| 		} | ||||
| 	} | ||||
| } | ||||
| </style> | ||||
|   | ||||
| @@ -11,16 +11,16 @@ | ||||
| 	<template #header>{{ $ts.notificationSetting }}</template> | ||||
| 	<div class="_monolithic_"> | ||||
| 		<div v-if="showGlobalToggle" class="_section"> | ||||
| 			<MkSwitch v-model:value="useGlobalSetting"> | ||||
| 			<MkSwitch v-model="useGlobalSetting"> | ||||
| 				{{ $ts.useGlobalSetting }} | ||||
| 				<template #desc>{{ $ts.useGlobalSettingDesc }}</template> | ||||
| 				<template #caption>{{ $ts.useGlobalSettingDesc }}</template> | ||||
| 			</MkSwitch> | ||||
| 		</div> | ||||
| 		<div v-if="!useGlobalSetting" class="_section"> | ||||
| 			<MkInfo>{{ $ts.notificationSettingDesc }}</MkInfo> | ||||
| 			<MkButton inline @click="disableAll">{{ $ts.disableAll }}</MkButton> | ||||
| 			<MkButton inline @click="enableAll">{{ $ts.enableAll }}</MkButton> | ||||
| 			<MkSwitch v-for="type in notificationTypes" :key="type" v-model:value="typesMap[type]">{{ $t(`_notification._types.${type}`) }}</MkSwitch> | ||||
| 			<MkSwitch v-for="type in notificationTypes" :key="type" v-model="typesMap[type]">{{ $t(`_notification._types.${type}`) }}</MkSwitch> | ||||
| 		</div> | ||||
| 	</div> | ||||
| </XModalWindow> | ||||
|   | ||||
| @@ -62,8 +62,8 @@ import { defineComponent, markRaw } from 'vue'; | ||||
| import { getNoteSummary } from '@/misc/get-note-summary'; | ||||
| import XReactionIcon from './reaction-icon.vue'; | ||||
| import MkFollowButton from './follow-button.vue'; | ||||
| import notePage from '../filters/note'; | ||||
| import { userPage } from '../filters/user'; | ||||
| import notePage from '@client/filters/note'; | ||||
| import { userPage } from '@client/filters/user'; | ||||
| import { i18n } from '@client/i18n'; | ||||
| import * as os from '@client/os'; | ||||
|  | ||||
|   | ||||
| @@ -7,7 +7,7 @@ | ||||
| 	<p class="mfcuwfyp" v-else-if="empty">{{ $ts.noNotifications }}</p> | ||||
|  | ||||
| 	<div v-else> | ||||
| 		<XList class="notifications" :items="items" v-slot="{ item: notification }" :no-gap="true"> | ||||
| 		<XList class="elsfgstc" :items="items" v-slot="{ item: notification }" :no-gap="true"> | ||||
| 			<XNote v-if="['reply', 'quote', 'mention'].includes(notification.type)" :note="notification.note" @update:note="noteUpdated(notification.note, $event)" :key="notification.id"/> | ||||
| 			<XNotification v-else :notification="notification" :with-time="true" :full="true" class="_panel notification" :key="notification.id"/> | ||||
| 		</XList> | ||||
| @@ -141,4 +141,8 @@ export default defineComponent({ | ||||
| 	text-align: center; | ||||
| 	color: var(--fg); | ||||
| } | ||||
|  | ||||
| .elsfgstc { | ||||
| 	background: var(--panel); | ||||
| } | ||||
| </style> | ||||
|   | ||||
| @@ -16,7 +16,7 @@ | ||||
|  | ||||
| <script lang="ts"> | ||||
| import { defineComponent } from 'vue'; | ||||
| import { userName } from '../filters/user'; | ||||
| import { userName } from '@client/filters/user'; | ||||
| import * as os from '@client/os'; | ||||
|  | ||||
| export default defineComponent({ | ||||
|   | ||||
| @@ -3,16 +3,12 @@ | ||||
| 	:initial-width="500" | ||||
| 	:initial-height="500" | ||||
| 	:can-resize="true" | ||||
| 	:close-right="true" | ||||
| 	:close-button="false" | ||||
| 	:contextmenu="contextmenu" | ||||
| 	@closed="$emit('closed')" | ||||
| > | ||||
| 	<template #header> | ||||
| 		<XHeader :info="pageInfo" :with-back="false"/> | ||||
| 	</template> | ||||
| 	<template #buttons> | ||||
| 		<button class="_button" @click="back()" v-if="history.length > 0"><i class="fas fa-chevron-left"></i></button> | ||||
| 		<button class="_button" style="pointer-events: none;" v-else><!-- マージンのバランスを取るためのダミー --></button> | ||||
| 		<XHeader :info="pageInfo" :back-button="history.length > 0" @back="back()" :close-button="true" @close="close()" :title-only="true"/> | ||||
| 	</template> | ||||
| 	<div class="yrolvcoq _flat_"> | ||||
| 		<component :is="component" v-bind="props" :ref="changePage"/> | ||||
| @@ -139,6 +135,10 @@ export default defineComponent({ | ||||
| 			this.navigate(this.history.pop(), false); | ||||
| 		}, | ||||
|  | ||||
| 		close() { | ||||
| 			this.$refs.window.close(); | ||||
| 		}, | ||||
|  | ||||
| 		expand() { | ||||
| 			this.$router.push(this.path); | ||||
| 			this.$refs.window.close(); | ||||
| @@ -155,6 +155,5 @@ export default defineComponent({ | ||||
| <style lang="scss" scoped> | ||||
| .yrolvcoq { | ||||
| 	min-height: 100%; | ||||
| 	background: var(--bg); | ||||
| } | ||||
| </style> | ||||
|   | ||||
| @@ -1,6 +1,8 @@ | ||||
| <template> | ||||
| <div> | ||||
| 	<MkInput class="kudkigyw" :value="value" @update:value="updateValue($event)" type="number">{{ hpml.interpolate(block.text) }}</MkInput> | ||||
| 	<MkInput class="kudkigyw" :model-value="value" @update:modelValue="updateValue($event)" type="number"> | ||||
| 		<template #label>{{ hpml.interpolate(block.text) }}</template> | ||||
| 	</MkInput> | ||||
| </div> | ||||
| </template> | ||||
|  | ||||
|   | ||||
| @@ -1,6 +1,6 @@ | ||||
| <template> | ||||
| <div class="ngbfujlo"> | ||||
| 	<MkTextarea :value="text" readonly style="margin: 0;"></MkTextarea> | ||||
| 	<MkTextarea :model-value="text" readonly style="margin: 0;"></MkTextarea> | ||||
| 	<MkButton class="button" primary @click="post()" :disabled="posting || posted"> | ||||
| 		<i v-if="posted" class="fas fa-check"></i> | ||||
| 		<i v-else class="fas fa-paper-plane"></i> | ||||
|   | ||||
| @@ -1,6 +1,6 @@ | ||||
| <template> | ||||
| <div class="hkcxmtwj"> | ||||
| 	<MkSwitch :value="value" @update:value="updateValue($event)">{{ hpml.interpolate(block.text) }}</MkSwitch> | ||||
| 	<MkSwitch :model-value="value" @update:modelValue="updateValue($event)">{{ hpml.interpolate(block.text) }}</MkSwitch> | ||||
| </div> | ||||
| </template> | ||||
|  | ||||
|   | ||||
| @@ -1,6 +1,8 @@ | ||||
| <template> | ||||
| <div> | ||||
| 	<MkInput class="kudkigyw" :value="value" @update:value="updateValue($event)" type="text">{{ hpml.interpolate(block.text) }}</MkInput> | ||||
| 	<MkInput class="kudkigyw" :model-value="value" @update:modelValue="updateValue($event)" type="text"> | ||||
| 		<template #label>{{ hpml.interpolate(block.text) }}</template> | ||||
| 	</MkInput> | ||||
| </div> | ||||
| </template> | ||||
|  | ||||
|   | ||||
| @@ -1,6 +1,8 @@ | ||||
| <template> | ||||
| <div> | ||||
| 	<MkTextarea :value="value" @update:value="updateValue($event)">{{ hpml.interpolate(block.text) }}</MkTextarea> | ||||
| 	<MkTextarea :model-value="value" @update:modelValue="updateValue($event)"> | ||||
| 		<template #label>{{ hpml.interpolate(block.text) }}</template> | ||||
| 	</MkTextarea> | ||||
| </div> | ||||
| </template> | ||||
|  | ||||
|   | ||||
| @@ -1,5 +1,5 @@ | ||||
| <template> | ||||
| <MkTextarea :value="text" readonly></MkTextarea> | ||||
| <MkTextarea :model-value="text" readonly></MkTextarea> | ||||
| </template> | ||||
|  | ||||
| <script lang="ts"> | ||||
|   | ||||
| @@ -5,8 +5,7 @@ | ||||
| 	</p> | ||||
| 	<ul ref="choices"> | ||||
| 		<li v-for="(choice, i) in choices" :key="i"> | ||||
| 			<MkInput class="input" :value="choice" @update:value="onInput(i, $event)"> | ||||
| 				<span>{{ $t('_poll.choiceN', { n: i + 1 }) }}</span> | ||||
| 			<MkInput class="input" :model-value="choice" @update:modelValue="onInput(i, $event)" :placeholder="$t('_poll.choiceN', { n: i + 1 })"> | ||||
| 			</MkInput> | ||||
| 			<button @click="remove(i)" class="_button"> | ||||
| 				<i class="fas fa-times"></i> | ||||
| @@ -16,27 +15,27 @@ | ||||
| 	<MkButton class="add" v-if="choices.length < 10" @click="add">{{ $ts.add }}</MkButton> | ||||
| 	<MkButton class="add" v-else disabled>{{ $ts._poll.noMore }}</MkButton> | ||||
| 	<section> | ||||
| 		<MkSwitch v-model:value="multiple">{{ $ts._poll.canMultipleVote }}</MkSwitch> | ||||
| 		<MkSwitch v-model="multiple">{{ $ts._poll.canMultipleVote }}</MkSwitch> | ||||
| 		<div> | ||||
| 			<MkSelect v-model:value="expiration"> | ||||
| 			<MkSelect v-model="expiration"> | ||||
| 				<template #label>{{ $ts._poll.expiration }}</template> | ||||
| 				<option value="infinite">{{ $ts._poll.infinite }}</option> | ||||
| 				<option value="at">{{ $ts._poll.at }}</option> | ||||
| 				<option value="after">{{ $ts._poll.after }}</option> | ||||
| 			</MkSelect> | ||||
| 			<section v-if="expiration === 'at'"> | ||||
| 				<MkInput v-model:value="atDate" type="date" class="input"> | ||||
| 					<span>{{ $ts._poll.deadlineDate }}</span> | ||||
| 				<MkInput v-model="atDate" type="date" class="input"> | ||||
| 					<template #label>{{ $ts._poll.deadlineDate }}</template> | ||||
| 				</MkInput> | ||||
| 				<MkInput v-model:value="atTime" type="time" class="input"> | ||||
| 					<span>{{ $ts._poll.deadlineTime }}</span> | ||||
| 				<MkInput v-model="atTime" type="time" class="input"> | ||||
| 					<template #label>{{ $ts._poll.deadlineTime }}</template> | ||||
| 				</MkInput> | ||||
| 			</section> | ||||
| 			<section v-if="expiration === 'after'"> | ||||
| 				<MkInput v-model:value="after" type="number" class="input"> | ||||
| 					<span>{{ $ts._poll.duration }}</span> | ||||
| 				<MkInput v-model="after" type="number" class="input"> | ||||
| 					<template #label>{{ $ts._poll.duration }}</template> | ||||
| 				</MkInput> | ||||
| 				<MkSelect v-model:value="unit"> | ||||
| 				<MkSelect v-model="unit"> | ||||
| 					<option value="second">{{ $ts._time.second }}</option> | ||||
| 					<option value="minute">{{ $ts._time.minute }}</option> | ||||
| 					<option value="hour">{{ $ts._time.hour }}</option> | ||||
|   | ||||
| @@ -112,7 +112,7 @@ export default defineComponent({ | ||||
|  | ||||
| 		showFileMenu(file, ev: MouseEvent) { | ||||
| 			if (this.menu) return; | ||||
| 			this.menu = os.modalMenu([{ | ||||
| 			this.menu = os.popupMenu([{ | ||||
| 				text: this.$ts.renameFile, | ||||
| 				icon: 'fas fa-i-cursor', | ||||
| 				action: () => { this.rename(file) } | ||||
|   | ||||
| @@ -17,7 +17,7 @@ | ||||
| 				<span v-if="visibility === 'followers'"><i class="fas fa-unlock"></i></span> | ||||
| 				<span v-if="visibility === 'specified'"><i class="fas fa-envelope"></i></span> | ||||
| 			</button> | ||||
| 			<button class="submit _buttonPrimary" :disabled="!canPost" @click="post">{{ submitText }}<i :class="reply ? 'fas fa-reply' : renote ? 'fas fa-quote-right' : 'fas fa-paper-plane'"></i></button> | ||||
| 			<button class="submit _buttonPrimary" :disabled="!canPost" @click="post" data-cy-open-post-form-submit>{{ submitText }}<i :class="reply ? 'fas fa-reply' : renote ? 'fas fa-quote-right' : 'fas fa-paper-plane'"></i></button> | ||||
| 		</div> | ||||
| 	</header> | ||||
| 	<div class="form" :class="{ fixed }"> | ||||
| @@ -36,7 +36,8 @@ | ||||
| 		</div> | ||||
| 		<MkInfo warn v-if="hasNotSpecifiedMentions" class="hasNotSpecifiedMentions">{{ $ts.notSpecifiedMentionWarning }} - <button class="_textButton" @click="addMissingMention()">{{ $ts.add }}</button></MkInfo> | ||||
| 		<input v-show="useCw" ref="cw" class="cw" v-model="cw" :placeholder="$ts.annotation" @keydown="onKeydown"> | ||||
| 		<textarea v-model="text" class="text" :class="{ withCw: useCw }" ref="text" :disabled="posting" :placeholder="placeholder" @keydown="onKeydown" @paste="onPaste" @compositionupdate="onCompositionUpdate" @compositionend="onCompositionEnd" /> | ||||
| 		<textarea v-model="text" class="text" :class="{ withCw: useCw }" ref="text" :disabled="posting" :placeholder="placeholder" @keydown="onKeydown" @paste="onPaste" @compositionupdate="onCompositionUpdate" @compositionend="onCompositionEnd" data-cy-post-form-text/> | ||||
| 		<input v-show="withHashtags" ref="hashtags" class="hashtags" v-model="hashtags" :placeholder="$ts.hashtags" list="hashtags"> | ||||
| 		<XPostFormAttaches class="attaches" :files="files" @updated="updateFiles" @detach="detachFile" @changeSensitive="updateFileSensitive" @changeName="updateFileName"/> | ||||
| 		<XPollEditor v-if="poll" :poll="poll" @destroyed="poll = null" @updated="onPollUpdate"/> | ||||
| 		<footer> | ||||
| @@ -44,9 +45,13 @@ | ||||
| 			<button class="_button" @click="togglePoll" :class="{ active: poll }" v-tooltip="$ts.poll"><i class="fas fa-poll-h"></i></button> | ||||
| 			<button class="_button" @click="useCw = !useCw" :class="{ active: useCw }" v-tooltip="$ts.useCw"><i class="fas fa-eye-slash"></i></button> | ||||
| 			<button class="_button" @click="insertMention" v-tooltip="$ts.mention"><i class="fas fa-at"></i></button> | ||||
| 			<button class="_button" @click="withHashtags = !withHashtags" :class="{ active: withHashtags }" v-tooltip="$ts.hashtags"><i class="fas fa-hashtag"></i></button> | ||||
| 			<button class="_button" @click="insertEmoji" v-tooltip="$ts.emoji"><i class="fas fa-laugh-squint"></i></button> | ||||
| 			<button class="_button" @click="showActions" v-tooltip="$ts.plugin" v-if="postFormActions.length > 0"><i class="fas fa-plug"></i></button> | ||||
| 		</footer> | ||||
| 		<datalist id="hashtags"> | ||||
| 			<option v-for="hashtag in recentHashtags" :value="hashtag" :key="hashtag"/> | ||||
| 		</datalist> | ||||
| 	</div> | ||||
| </div> | ||||
| </template> | ||||
| @@ -67,10 +72,11 @@ import { Autocomplete } from '@client/scripts/autocomplete'; | ||||
| import { noteVisibilities } from '../../types'; | ||||
| import * as os from '@client/os'; | ||||
| import { selectFile } from '@client/scripts/select-file'; | ||||
| import { notePostInterruptors, postFormActions } from '@client/store'; | ||||
| import { defaultStore, notePostInterruptors, postFormActions } from '@client/store'; | ||||
| import { isMobile } from '@client/scripts/is-mobile'; | ||||
| import { throttle } from 'throttle-debounce'; | ||||
| import MkInfo from '@client/components/ui/info.vue'; | ||||
| import { defaultStore } from '@client/store'; | ||||
|  | ||||
| export default defineComponent({ | ||||
| 	components: { | ||||
| @@ -212,7 +218,10 @@ export default defineComponent({ | ||||
|  | ||||
| 		max(): number { | ||||
| 			return this.$instance ? this.$instance.maxNoteTextLength : 1000; | ||||
| 		} | ||||
| 		}, | ||||
|  | ||||
| 		withHashtags: defaultStore.makeGetterSetter('postFormWithHashtags'), | ||||
| 		hashtags: defaultStore.makeGetterSetter('postFormHashtags'), | ||||
| 	}, | ||||
|  | ||||
| 	watch: { | ||||
| @@ -303,6 +312,7 @@ export default defineComponent({ | ||||
| 		// TODO: detach when unmount | ||||
| 		new Autocomplete(this.$refs.text, this, { model: 'text' }); | ||||
| 		new Autocomplete(this.$refs.cw, this, { model: 'cw' }); | ||||
| 		new Autocomplete(this.$refs.hashtags, this, { model: 'hashtags' }); | ||||
|  | ||||
| 		this.$nextTick(() => { | ||||
| 			// 書きかけの投稿を復元 | ||||
| @@ -329,7 +339,12 @@ export default defineComponent({ | ||||
| 				this.cw = init.cw; | ||||
| 				this.useCw = init.cw != null; | ||||
| 				if (init.poll) { | ||||
| 					this.poll = init.poll; | ||||
| 					this.poll = { | ||||
| 						choices: init.poll.choices.map(x => x.text), | ||||
| 						multiple: init.poll.multiple, | ||||
| 						expiresAt: init.poll.expiresAt, | ||||
| 						expiredAfter: init.poll.expiredAfter, | ||||
| 					}; | ||||
| 				} | ||||
| 				this.visibility = init.visibility; | ||||
| 				this.localOnly = init.localOnly; | ||||
| @@ -605,6 +620,11 @@ export default defineComponent({ | ||||
| 				viaMobile: isMobile | ||||
| 			}; | ||||
|  | ||||
| 			if (this.withHashtags && this.hashtags && this.hashtags.trim() !== '') { | ||||
| 				const hashtags = this.hashtags.trim().split(' ').map(x => x.startsWith('#') ? x : '#' + x).join(' '); | ||||
| 				data.text = data.text ? `${data.text} ${hashtags}` : hashtags; | ||||
| 			} | ||||
|  | ||||
| 			// plugin | ||||
| 			if (notePostInterruptors.length > 0) { | ||||
| 				for (const interruptor of notePostInterruptors) { | ||||
| @@ -618,8 +638,8 @@ export default defineComponent({ | ||||
| 				this.$nextTick(() => { | ||||
| 					this.deleteDraft(); | ||||
| 					this.$emit('posted'); | ||||
| 					if (this.text && this.text != '') { | ||||
| 						const hashtags = mfm.parse(this.text).filter(x => x.type === 'hashtag').map(x => x.props.hashtag); | ||||
| 					if (data.text && data.text != '') { | ||||
| 						const hashtags = mfm.parse(data.text).filter(x => x.type === 'hashtag').map(x => x.props.hashtag); | ||||
| 						const history = JSON.parse(localStorage.getItem('hashtags') || '[]') as string[]; | ||||
| 						localStorage.setItem('hashtags', JSON.stringify(unique(hashtags.concat(history)))); | ||||
| 					} | ||||
| @@ -649,7 +669,7 @@ export default defineComponent({ | ||||
| 		}, | ||||
|  | ||||
| 		showActions(ev) { | ||||
| 			os.modalMenu(postFormActions.map(action => ({ | ||||
| 			os.popupMenu(postFormActions.map(action => ({ | ||||
| 				text: action.title, | ||||
| 				action: () => { | ||||
| 					action.handler({ | ||||
| @@ -785,6 +805,7 @@ export default defineComponent({ | ||||
| 		} | ||||
|  | ||||
| 		> .cw, | ||||
| 		> .hashtags, | ||||
| 		> .text { | ||||
| 			display: block; | ||||
| 			box-sizing: border-box; | ||||
| @@ -813,6 +834,13 @@ export default defineComponent({ | ||||
| 			border-bottom: solid 0.5px var(--divider); | ||||
| 		} | ||||
|  | ||||
| 		> .hashtags { | ||||
| 			z-index: 1; | ||||
| 			padding-top: 8px; | ||||
| 			padding-bottom: 8px; | ||||
| 			border-top: solid 0.5px var(--divider); | ||||
| 		} | ||||
|  | ||||
| 		> .text { | ||||
| 			max-width: 100%; | ||||
| 			min-width: 100%; | ||||
| @@ -872,6 +900,7 @@ export default defineComponent({ | ||||
| 			} | ||||
|  | ||||
| 			> .cw, | ||||
| 			> .hashtags, | ||||
| 			> .text { | ||||
| 				padding: 0 16px; | ||||
| 			} | ||||
|   | ||||
Some files were not shown because too many files have changed in this diff Show More
		Reference in New Issue
	
	Block a user