From 0cd69cabc9f01f19754ad08ed32a15eb4d4518be Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 16 Nov 2017 14:19:14 +0900 Subject: [PATCH] =?UTF-8?q?=E3=81=8A=E7=9F=A5=E3=82=89=E3=81=9B=E3=82=92?= =?UTF-8?q?=E3=83=96=E3=83=AD=E3=83=BC=E3=83=89=E3=82=AD=E3=83=A3=E3=82=B9?= =?UTF-8?q?=E3=83=88=E3=81=A7=E3=81=8D=E3=82=8B=E3=82=88=E3=81=86=E3=81=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- locales/en.yml | 6 ++ locales/ja.yml | 6 ++ src/api/endpoints/meta.ts | 3 +- src/web/app/common/tags/raw.tag | 4 ++ .../desktop/tags/home-widgets/broadcast.tag | 71 +++++++++++++++++-- 5 files changed, 84 insertions(+), 6 deletions(-) diff --git a/locales/en.yml b/locales/en.yml index a2bd9aa1b..9a54eed67 100644 --- a/locales/en.yml +++ b/locales/en.yml @@ -396,6 +396,12 @@ desktop: mk-messaging-home-widget: title: "Messaging" + mk-broadcast-home-widget: + fetching: "Fetching" + no-broadcasts: "No broadcasts" + have-a-nice-day: "Have a nice day!" + next: "Next" + mk-repost-form: quote: "Quote..." cancel: "Cancel" diff --git a/locales/ja.yml b/locales/ja.yml index d0292e8c4..dcf466339 100644 --- a/locales/ja.yml +++ b/locales/ja.yml @@ -396,6 +396,12 @@ desktop: mk-messaging-home-widget: title: "メッセージ" + mk-broadcast-home-widget: + fetching: "確認中" + no-broadcasts: "お知らせはありません" + have-a-nice-day: "良い一日を!" + next: "次" + mk-repost-form: quote: "引用する..." cancel: "キャンセル" diff --git a/src/api/endpoints/meta.ts b/src/api/endpoints/meta.ts index 4f626efa6..e27ca39e7 100644 --- a/src/api/endpoints/meta.ts +++ b/src/api/endpoints/meta.ts @@ -53,6 +53,7 @@ module.exports = (params) => new Promise(async (res, rej) => { model: os.cpus()[0].model, cores: os.cpus().length }, - top_image: meta.top_image + top_image: meta.top_image, + broadcasts: meta.broadcasts }); }); diff --git a/src/web/app/common/tags/raw.tag b/src/web/app/common/tags/raw.tag index e1285694e..adc6de5a3 100644 --- a/src/web/app/common/tags/raw.tag +++ b/src/web/app/common/tags/raw.tag @@ -5,5 +5,9 @@ diff --git a/src/web/app/desktop/tags/home-widgets/broadcast.tag b/src/web/app/desktop/tags/home-widgets/broadcast.tag index 7caf4dcdd..00fef8374 100644 --- a/src/web/app/desktop/tags/home-widgets/broadcast.tag +++ b/src/web/app/desktop/tags/home-widgets/broadcast.tag @@ -1,4 +1,4 @@ - +
@@ -8,22 +8,35 @@
-

開発者募集中!

-

Misskeyはオープンソースで開発されています。リポジトリはこちら。

+

%i18n:desktop.tags.mk-broadcast-home-widget.fetching%

+

{ + broadcasts.length == 0 ? '%i18n:desktop.tags.mk-broadcast-home-widget.no-broadcasts%' : broadcasts[i].title + }

+

%i18n:desktop.tags.mk-broadcast-home-widget.have-a-nice-day%

+ 1 } onclick={ next }>%i18n:desktop.tags.mk-broadcast-home-widget.next% >>