Skip to content

Commit

Permalink
Merge pull request #4004 from annict/community
Browse files Browse the repository at this point in the history
Bluesky, Threads, Mewstのリンクを追加
  • Loading branch information
shimbaco committed Apr 10, 2024
2 parents eedbc40 + 0ab0558 commit e5073a1
Show file tree
Hide file tree
Showing 12 changed files with 27 additions and 39 deletions.
1 change: 1 addition & 0 deletions .env.development
Expand Up @@ -3,6 +3,7 @@ ANNICT_ASSET_URL=http://annict.test:3000
ANNICT_BASIC_AUTH_NAME=el-psy
ANNICT_BASIC_AUTH_PASSWORD=congroo
ANNICT_BASIC_AUTH=off
ANNICT_COMMUNITY_URL=https://github.com/annict/annict/blob/main/docs/community.md
ANNICT_CURRENT_SEASON=2019-spring
ANNICT_DISCORD_INVITE_URL=https://discord.gg/Uqbeq8t
ANNICT_DOMAIN=annict.test
Expand Down
21 changes: 2 additions & 19 deletions app/components/deprecated/footers/main_footer_component.rb
Expand Up @@ -17,16 +17,6 @@ def render
h.tag :div, class: "c-footer__description mb-3 small" do
h.text "A platform for anime addicts."
end

h.tag :div, class: "c-footer__social-links row" do
social_urls.each do |url, icon_name|
h.tag :div, class: "col col-auto" do
h.tag :a, aria_label: icon_name.humanize, href: url, class: "h2", target: "_blank", rel: "noopener" do
h.tag :i, class: "fab fa-#{icon_name}"
end
end
end
end
end

h.tag :div, class: "col-12 col-sm-3 mb-3 mb-sm-0" do
Expand Down Expand Up @@ -119,26 +109,19 @@ def render

private

def social_urls
[
["https://twitter.com/#{view_context.twitter_username}", "twitter"],
["https://github.com/annict", "github"],
[ENV.fetch("ANNICT_DISCORD_INVITE_URL"), "discord"]
]
end

def service_urls
[
[view_context.userland_path, t("noun.annict_userland")],
[view_context.forum_path, t("noun.annict_forum")],
[view_context.db_root_path, t("noun.annict_db")],
["https://developers.annict.jp", t("noun.annict_developers")],
["https://developers.annict.com", t("noun.annict_developers")],
[view_context.supporters_path, t("noun.annict_supporters")]
]
end

def content_urls
[
[view_context.community_path, t("noun.community"), true],
[view_context.faq_path, t("noun.faq"), true],
[view_context.terms_path, t("noun.terms_of_use"), true],
[view_context.privacy_path, t("noun.privacy_policy"), true],
Expand Down
Expand Up @@ -213,7 +213,7 @@ def render
end

h.tag :li do
h.tag :a, href: "https://developers.annict.jp", class: "d-flex justify-content-between py-2", rel: "noopener", target: "_blank" do
h.tag :a, href: "https://developers.annict.com", class: "d-flex justify-content-between py-2", rel: "noopener", target: "_blank" do
h.tag :div, class: "c-main-sidebar__icon me-1 text-center text-muted" do
h.tag :i, class: "far fa-code"
end
Expand Down
7 changes: 7 additions & 0 deletions app/controllers/communities_controller.rb
@@ -0,0 +1,7 @@
# frozen_string_literal: true

class CommunitiesController < ApplicationV6Controller
def show
redirect_to(ENV.fetch("ANNICT_COMMUNITY_URL"), allow_other_host: true)
end
end
2 changes: 1 addition & 1 deletion app/docs/terms.ja.md
Expand Up @@ -172,7 +172,7 @@

## 第14条 (利用者情報の取扱い)

1. 運営者による登録ユーザの利用者情報の取扱いについては、別途プライバシーポリシー (<a href="https://annict.jp/privacy">https://annict.jp/privacy</a>) の定めによるものとし、登録ユーザはこのプライバシーポリシーに従って運営者がユーザの利用者情報を取扱うことについて同意するものとします。
1. 運営者による登録ユーザの利用者情報の取扱いについては、別途プライバシーポリシー (<a href="https://annict.com/privacy">https://annict.com/privacy</a>) の定めによるものとし、登録ユーザはこのプライバシーポリシーに従って運営者がユーザの利用者情報を取扱うことについて同意するものとします。

2. 運営者は、登録ユーザが運営者に提供した情報、データ等を、個人を特定できない形での統計的な情報として、運営者の裁量で、利用及び公開することができるものとし、ユーザはこれに異議を唱えないものとします。

Expand Down
2 changes: 1 addition & 1 deletion config/locales/messages.ja.yml
Expand Up @@ -263,7 +263,7 @@ ja:
see_records: 記録を見る
tracked: 記録しました
userland:
description_html: "Userlandは、Annictを便利に使うために有志によって作られたアプリケーションなどが探せる場です。<a href='https://developers.annict.jp' target='_blank'>Annict API</a>を使用して何か作った方は、「新規プロジェクト」から登録頂けるとありがたいです。"
description_html: "Userlandは、Annictを便利に使うために有志によって作られたアプリケーションなどが探せる場です。<a href='https://developers.annict.com' target='_blank'>Annict API</a>を使用して何か作った方は、「新規プロジェクト」から登録頂けるとありがたいです。"
description_mobile_html: 'Userlandは、Annictを便利に使うために有志によって作られたアプリケーションなどが探せる場です。'
projects:
about_available: このプロジェクトが公開されていて、他の人が利用できるときチェックしてください。
Expand Down
1 change: 1 addition & 0 deletions config/locales/noun.en.yml
Expand Up @@ -48,6 +48,7 @@ en:
comment_alt: Comment
comments_count: Comments
comments_count_shorten: Comments
community: Community
contents: Contents
column: Column
completed: Completed
Expand Down
1 change: 1 addition & 0 deletions config/locales/noun.ja.yml
Expand Up @@ -48,6 +48,7 @@ ja:
comment_alt: 感想
comments_count: 感想数
comments_count_shorten: コメント
community: コミュニティ
contents: コンテンツ
column: 項目
completed: 見たアニメ
Expand Down
1 change: 1 addition & 0 deletions config/routes.rb
Expand Up @@ -86,6 +86,7 @@
match "/collections/:collection_id/edit", via: :get, as: :edit_collection, to: "collections#edit"
match "/collections", via: :post, as: :collection_list, to: "collections#create"
match "/collections/new", via: :get, as: :new_collection, to: "collections#new"
match "/community", via: :get, as: :community, to: "communities#show"
match "/db", via: :get, as: :db_root, to: "db/home#show"
match "/db/activities", via: :get, as: :db_activity_list, to: "db/activities#index"
match "/db/casts/:id", via: :delete, as: :db_cast_detail, to: "db/casts#destroy"
Expand Down
8 changes: 8 additions & 0 deletions docs/community.md
@@ -0,0 +1,8 @@
# コミュニティ

Annictに関することは以下のソーシャルメディアで発信しています。

- [Mewst](https://mewst.com/@annict)
- [Bluesky](https://bsky.app/profile/annict.com)
- [Discord](https://discord.gg/PVJRUKP)
- [Threads](https://www.threads.net/@annictcom)
18 changes: 2 additions & 16 deletions docs/faq.md
Expand Up @@ -6,9 +6,8 @@

以下のいずれかよりご連絡ください。

- [フォーラム](https://annict.jp/forum)
- [Twitter](https://twitter.com/AnnictJP)
- [Discord](https://discord.gg/PVJRUKP)
- [フォーラム](https://annict.com/forum)
- [各種ソーシャルメディア](https://annict.com/community)
- メール: hello@annict.com

### 対応ブラウザは何ですか?
Expand Down Expand Up @@ -47,19 +46,6 @@
</details>


## Twitter連携に関する質問

### 記録やレビューがTwitterにシェアできなくなったのですが?

<details>
<summary>回答</summary>

TwitterからAnnictのTwitterアプリケーションが削除された可能性があります。AnnictのTwitterアプリケーションを削除すると、AnnictからTwitterが提供するWeb APIにアクセスできるなくなるため、Annictを経由したツイートができなくなります。
Twitterのアプリは[こちら](https://twitter.com/settings/connected_apps)から確認することができます。

</details>


## 機能追加・要望に関する質問

### 要望はどこから伝えれば良いですか?
Expand Down
2 changes: 1 addition & 1 deletion public/maintenance.html
Expand Up @@ -47,7 +47,7 @@
<h1>(`・ω・´)</h1>
<div class="message">
現在サーバメンテナンスを行っています。<br>
終わり次第 <a href="https://twitter.com/AnnictJP" target="_blank">@AnnictJP</a> でお知らせします。
終わり次第<a href="/community" target="_blank">各種ソーシャルメディア</a>でお知らせします。
</div>
</div>
</div>
Expand Down

0 comments on commit e5073a1

Please sign in to comment.