forked from mastodon/mastodon
-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'kb_development' into kb_migration
- Loading branch information
Showing
61 changed files
with
561 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,36 @@ | ||
# Contributing | ||
# CONTRIBUTING | ||
|
||
Thank you for considering contributing to Mastodon 🐘 | ||
kmyblueは、コミュニティの意見も聞くには聞きますが導入する・しないは管理人が決定します。 | ||
|
||
You can contribute in the following ways: | ||
## バグ報告 | ||
|
||
- Finding and reporting bugs | ||
- Translating the Mastodon interface into various languages | ||
- Contributing code to Mastodon by fixing bugs or implementing features | ||
- Improving the documentation | ||
バグについて、最新よりも過去のバージョンへの対応は特別な場合以外は行いません。 | ||
|
||
If your contributions are accepted into Mastodon, you can request to be paid through [our OpenCollective](https://opencollective.com/mastodon). | ||
以下のいずれかの方法で報告してください。 | ||
|
||
## Bug reports | ||
- [GitHub Issues](https://github.com/kmycode/mastodon/issues) | ||
- [kmyblue開発者への連絡](https://kmy.blue/@askyq) | ||
- [kmyblue開発者へのメール](https://kmy.blue/about) | ||
|
||
Bug reports and feature suggestions must use descriptive and concise titles and be submitted to [GitHub Issues](https://github.com/mastodon/mastodon/issues). Please use the search function to make sure that you are not submitting duplicates, and that a similar report or request has not already been resolved or rejected. | ||
## 翻訳、プルリクエスト | ||
|
||
## Translations | ||
新しい機能や既存機能の修正については、プルリクエストのためにコードを作成する前に、まずGitHub Issuesで機能の提案を行いkmyblue開発者の考えを聞くことをおすすめします。バグ修正、翻訳、テストコードなどは基本受け入れますが、依存モジュールのバージョンアップについては本家Mastodonよりも先に行かないようにしてください。 | ||
|
||
You can submit translations via [Crowdin](https://crowdin.com/project/mastodon). They are periodically merged into the codebase. | ||
プルリクエストのタイトルには、プルリクエストの内容が明確になるようなものを設定してください。 | ||
|
||
[![Crowdin](https://d322cqt584bo4o.cloudfront.net/mastodon/localized.svg)](https://crowdin.com/project/mastodon) | ||
### kmyblueの開発方針 | ||
|
||
## Pull requests | ||
下記のものに矛盾がなければ、あとは管理人の意向次第です。 | ||
|
||
**Please use clean, concise titles for your pull requests.** Unless the pull request is about refactoring code, updating dependencies or other internal tasks, assume that the person reading the pull request title is not a programmer or Mastodon developer, but instead a Mastodon user or server administrator, and **try to describe your change or fix from their perspective**. We use commit squashing, so the final commit in the main branch will carry the title of the pull request, and commits from the main branch are fed into the changelog. The changelog is separated into [keepachangelog.com categories](https://keepachangelog.com/en/1.0.0/), and while that spec does not prescribe how the entries ought to be named, for easier sorting, start your pull request titles using one of the verbs "Add", "Change", "Deprecate", "Remove", or "Fix" (present tense). | ||
- **自分の投稿を見せたくない人に見せない** | ||
- **他人の見たくない投稿を見ない** | ||
- ただし本家Mastodonで上記原則に矛盾した機能が追加された場合は従う | ||
- 画面を騒がしくするような機能(絵文字を大きく表示するなど)は追加しないか、控えめにする。ただし他のソフトウェアにも導入され利用者が多くいる場合などは別途判断して、オプトアウト可能な設定項目とともに追加する | ||
- 負荷を著しく上げるような機能はできるだけ追加しない | ||
|
||
Example: | ||
kmyblueが意図的に実装していない機能は、例えば以下のものがあります。詳しい理由が知りたい場合は[この記事を参照するか](https://note.com/kmycode/n/n463410b5e03c)、別途お問い合わせください。もちろん明確な根拠がある場合、あなたはこれに抗議する権利を有しますが、あなたがこのkmyblueをフォークして新しいリポジトリを作るほうがより自由でしょう。 | ||
|
||
| Not ideal | Better | | ||
| ------------------------------------ | ------------------------------------------------------------- | | ||
| Fixed NoMethodError in RemovalWorker | Fix nil error when removing statuses caused by race condition | | ||
|
||
It is not always possible to phrase every change in such a manner, but it is desired. | ||
|
||
**The smaller the set of changes in the pull request is, the quicker it can be reviewed and merged.** Splitting tasks into multiple smaller pull requests is often preferable. | ||
|
||
**Pull requests that do not pass automated checks may not be reviewed**. In particular, you need to keep in mind: | ||
|
||
- Unit and integration tests (rspec, jest) | ||
- Code style rules (rubocop, eslint) | ||
- Normalization of locale files (i18n-tasks) | ||
|
||
## Documentation | ||
|
||
The [Mastodon documentation](https://docs.joinmastodon.org) is a statically generated site. You can [submit merge requests to mastodon/documentation](https://github.com/mastodon/documentation). | ||
- 引用機能 | ||
- お気に入り一覧の公開 | ||
- ブックマーク分類の公開 | ||
- 他のサーバーの投稿に対して他のサーバーのアカウントが行った絵文字リアクションの受け入れ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
# kmyblueインストール手順 | ||
|
||
## 共通の注意事項 | ||
|
||
### 必須ソフトウェアのバージョン | ||
|
||
Ruby、ElasticSearch、ImageMagick、PostgreSQLなど必須ソフトウェアのバージョンは、本家Mastodonに準じます。リリースノートに対応する本家Mastodonバージョンが記載されていますので、本家Mastodonのリリースノートから対応するバージョンを探して調べてください。 | ||
|
||
### 一般的な注意事項 | ||
|
||
kmyblueは頻繁にバージョンアップを行います。 | ||
|
||
- 本家Mastodonの開発中のバージョンを平然と取り込みます | ||
- バグが含まれていることがあります | ||
- 特に最新コミットでは、デバッグ用コードや、`kmy.blue`本番サーバーで動作確認を行うためのコードが含まれている場合があります。ブランチの最新コミットではなく最新タグを取り込むことを強くおすすめします | ||
|
||
### ElasticSearchを使用する場合 | ||
|
||
kmyblueでは、sudachiの使用を前提としています。 | ||
|
||
下記URLより、ElasticSearchにSudachiプラグインを追加してください。 | ||
ただし辞書ファイル(sudachi dictionary archive)は手順書で指示されたパスではなく`/etc/elasticsearch/sudachi`に格納してください。 | ||
|
||
https://github.com/WorksApplications/elasticsearch-sudachi | ||
|
||
Sudachiインストール終了後、追加で`/etc/elasticsearch/sudachi/config.json`に下記を記述して保存してください。`system_full.dic`を使用する場合は適宜`systemDict`プロパティの内容を置き換えてください。 | ||
|
||
```json | ||
{ | ||
"systemDict": "system_core.dic" | ||
} | ||
``` | ||
|
||
## 新規インストールの場合 | ||
|
||
1. 本家Mastodonとセットアップ手順はほとんど一緒です。kmyblueが独自に必須ソフトウェアを追加したわけではありません。ただしkmyblueはMastodonの開発中コードを取り込んでいるので、Rubyなどのバージョンアップ作業が必要になる場合があります。Mastodon公式のセットアップ手順を盲信せず、画面の指示に従ってインストールを進めてください。CloudFlareを組み合わせてセットアップしたとき、サーバーに接続すると400が出るなどのトラブルが出ることがありますが、大抵はMastodon本家由来のトラブルだと思われるので基本サポートはしません | ||
2. ただひとつ差異があります。Gitリポジトリはこのkmyblueに向けてください。`kb_development`ブランチの最新コミットではなく、`kb`で始まる最新のタグを取り込むことを強くおすすめします | ||
|
||
## 本家Mastodonからのマイグレーションの場合 | ||
|
||
kmyblueから本家Mastodonに戻りたい場合もあると思いますので、**必ずデータベースのバックアップをとってください**。 | ||
|
||
1. kmyblueのリリースノートに、kmyblueバージョンに対応した本家Mastodonのバージョンが記載されています。それを参照して、まず本家Mastodonをそのバージョンまでバージョンアップしてください | ||
2. Gitのリモートにkmyblueを追加して、そのままチェックアウトしてください | ||
3. データベースのマイグレーションなどを行ってください | ||
|
||
``` | ||
sudo systemctl stop mastodon-* | ||
bundle install | ||
yarn install | ||
RAILS_ENV=production bin/rails db:migrate | ||
RAILS_ENV=production bin/rails assets:clobber | ||
RAILS_ENV=production bin/rails assets:precompile | ||
# ElasticSearchを使用する場合 | ||
RAILS_ENV=production bin/tootctl search deploy | ||
sudo systemctl start mastodon-web mastodon-streaming@4000 mastodon-sidekiq | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# frozen_string_literal: true | ||
|
||
module DtlHelper | ||
DTL_ENABLED = ENV.fetch('DTL_ENABLED', 'false') == 'true' | ||
DTL_TAG = ENV.fetch('DTL_TAG', 'kmyblue') | ||
end |
Binary file modified
BIN
+2.97 KB
(150%)
app/javascript/icons/android-chrome-144x144.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+2.7 KB
(130%)
app/javascript/icons/android-chrome-192x192.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+2.8 KB
(120%)
app/javascript/icons/android-chrome-256x256.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+885 Bytes
(190%)
app/javascript/icons/android-chrome-36x36.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+3.04 KB
(110%)
app/javascript/icons/android-chrome-384x384.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1.79 KB
(230%)
app/javascript/icons/android-chrome-48x48.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+6.2 KB
(120%)
app/javascript/icons/android-chrome-512x512.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+2.4 KB
(210%)
app/javascript/icons/android-chrome-72x72.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+2.78 KB
(190%)
app/javascript/icons/android-chrome-96x96.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+35.8 KB
(150%)
app/javascript/icons/apple-touch-icon-1024x1024.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+2.92 KB
(170%)
app/javascript/icons/apple-touch-icon-114x114.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+3.05 KB
(170%)
app/javascript/icons/apple-touch-icon-120x120.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+2.97 KB
(150%)
app/javascript/icons/apple-touch-icon-144x144.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+2.88 KB
(150%)
app/javascript/icons/apple-touch-icon-152x152.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+2.9 KB
(140%)
app/javascript/icons/apple-touch-icon-167x167.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+2.97 KB
(140%)
app/javascript/icons/apple-touch-icon-180x180.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+2.06 KB
(230%)
app/javascript/icons/apple-touch-icon-57x57.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+2.14 KB
(220%)
app/javascript/icons/apple-touch-icon-60x60.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+2.4 KB
(210%)
app/javascript/icons/apple-touch-icon-72x72.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+2.5 KB
(210%)
app/javascript/icons/apple-touch-icon-76x76.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.