This commit is contained in:
syuilo 2017-03-26 06:47:39 +09:00
parent 23412e402f
commit c1ab95370c
9 changed files with 85 additions and 23 deletions

View File

@ -21,6 +21,11 @@
"congrats": "Congrats!"
},
"tags": {
"mk-stream-indicator": {
"connecting": "Connecting",
"reconnecting": "Disconnected. reconnecting",
"connected": "Connected"
},
"mk-reaction-picker": {
"choose-reaction": "Pick your reaction"
}
@ -77,6 +82,33 @@
"repost": "Repost",
"add-reaction": "Add your reaction",
"detail": "Show detail"
},
"mk-notifications-home-widget": {
"title": "Notifications",
"settings": "Settings of notifications"
},
"mk-user-recommendation-home-widget": {
"title": "Recommended users",
"refresh": "Show others",
"no-one": "No one",
"fetching": "Loading"
},
"mk-recommended-polls-home-widget": {
"title": "Polls",
"refresh": "Show others",
"nothing": "Nothing",
"fetching": "Loading"
},
"mk-trends-home-widget": {
"title": "Trend",
"refresh": "Show others",
"nothing": "Nothing",
"fetching": "Loading"
},
"mk-photo-stream-home-widget": {
"title": "Photostream",
"initializing": "Loading",
"no-photos": "No photos"
}
}
}

View File

@ -21,6 +21,11 @@
"congrats": "おめでとう"
},
"tags": {
"mk-stream-indicator": {
"connecting": "接続中",
"reconnecting": "切断されました 接続中",
"connected": "接続完了"
},
"mk-reaction-picker": {
"choose-reaction": "リアクションを選択"
}
@ -77,6 +82,33 @@
"repost": "Repost",
"add-reaction": "リアクション",
"detail": "詳細"
},
"mk-notifications-home-widget": {
"title": "通知",
"settings": "通知の設定"
},
"mk-user-recommendation-home-widget": {
"title": "おすすめユーザー",
"refresh": "他を見る",
"no-one": "いません!",
"fetching": "読み込んでいます"
},
"mk-recommended-polls-home-widget": {
"title": "投票",
"refresh": "他を見る",
"nothing": "ありません!",
"fetching": "読み込んでいます"
},
"mk-trends-home-widget": {
"title": "トレンド",
"refresh": "他を見る",
"nothing": "ありません!",
"fetching": "読み込んでいます"
},
"mk-photo-stream-home-widget": {
"title": "フォトストリーム",
"initializing": "読み込んでいます",
"no-photos": "写真はありません"
}
}
}

View File

@ -1,7 +1,7 @@
{
"name": "misskey",
"author": "syuilo <i@syuilo.com>",
"version": "0.0.1480",
"version": "0.0.1485",
"license": "MIT",
"description": "A miniblog-based SNS",
"bugs": "https://github.com/syuilo/misskey/issues",

View File

@ -1,15 +1,15 @@
<mk-stream-indicator>
<p if={ stream.state == 'initializing' }>
<i class="fa fa-spinner fa-spin"></i>
<span>接続中<mk-ellipsis></mk-ellipsis></span>
<span>%i18n:common.tags.mk-stream-indicator.connecting%<mk-ellipsis></mk-ellipsis></span>
</p>
<p if={ stream.state == 'reconnecting' }>
<i class="fa fa-spinner fa-spin"></i>
<span>切断されました 接続中<mk-ellipsis></mk-ellipsis></span>
<span>%i18n:common.tags.mk-stream-indicator.reconnecting%<mk-ellipsis></mk-ellipsis></span>
</p>
<p if={ stream.state == 'connected' }>
<i class="fa fa-check"></i>
<span>接続完了</span>
<span>%i18n:common.tags.mk-stream-indicator.connected%</span>
</p>
<style>
:scope

View File

@ -1,6 +1,6 @@
<mk-notifications-home-widget>
<p class="title"><i class="fa fa-bell-o"></i>通知</p>
<button onclick={ settings } title="通知の設定"><i class="fa fa-cog"></i></button>
<p class="title"><i class="fa fa-bell-o"></i>%i18n:desktop.tags.mk-notifications-home-widget.title%</p>
<button onclick={ settings } title="%i18n:desktop.tags.mk-notifications-home-widget.settings%"><i class="fa fa-cog"></i></button>
<mk-notifications></mk-notifications>
<style>
:scope

View File

@ -1,14 +1,12 @@
<mk-photo-stream-home-widget>
<p class="title"><i class="fa fa-camera"></i>フォトストリーム</p>
<p class="initializing" if={ initializing }><i class="fa fa-spinner fa-pulse fa-fw"></i>読み込んでいます
<mk-ellipsis></mk-ellipsis>
</p>
<p class="title"><i class="fa fa-camera"></i>%i18n:desktop.tags.mk-photo-stream-home-widget.title%</p>
<p class="initializing" if={ initializing }><i class="fa fa-spinner fa-pulse fa-fw"></i>%i18n:desktop.tags.mk-photo-stream-home-widget.initializing%<mk-ellipsis></mk-ellipsis></p>
<div class="stream" if={ !initializing && images.length > 0 }>
<virtual each={ image in images }>
<div class="img" style={ 'background-image: url(' + image.url + '?thumbnail&size=256)' }></div>
</virtual>
</div>
<p class="empty" if={ !initializing && images.length == 0 }>写真はありません</p>
<p class="empty" if={ !initializing && images.length == 0 }>%i18n:desktop.tags.mk-photo-stream-home-widget.no-photos%</p>
<style>
:scope
display block

View File

@ -1,12 +1,12 @@
<mk-recommended-polls-home-widget>
<p class="title"><i class="fa fa-pie-chart"></i>投票</p>
<button onclick={ fetch } title="他を見る"><i class="fa fa-refresh"></i></button>
<p class="title"><i class="fa fa-pie-chart"></i>%i18n:desktop.tags.mk-recommended-polls-home-widget.title%</p>
<button onclick={ fetch } title="%i18n:desktop.tags.mk-recommended-polls-home-widget.refresh%"><i class="fa fa-refresh"></i></button>
<div class="poll" if={ !loading && poll != null }>
<p class="text" if={ poll.text }>{ poll.text }</p>
<mk-poll post={ poll }></mk-poll>
</div>
<p class="empty" if={ !loading && poll == null }>ありません!</p>
<p class="loading" if={ loading }><i class="fa fa-spinner fa-pulse fa-fw"></i>読み込んでいます<mk-ellipsis></mk-ellipsis></p>
<p class="empty" if={ !loading && poll == null }>%i18n:desktop.tags.mk-recommended-polls-home-widget.nothing%</p>
<p class="loading" if={ loading }><i class="fa fa-spinner fa-pulse fa-fw"></i>%i18n:desktop.tags.mk-recommended-polls-home-widget.fetching%<mk-ellipsis></mk-ellipsis></p>
<style>
:scope
display block

View File

@ -1,12 +1,12 @@
<mk-trends-home-widget>
<p class="title"><i class="fa fa-fire"></i>トレンド</p>
<button onclick={ fetch } title="他を見る"><i class="fa fa-refresh"></i></button>
<p class="title"><i class="fa fa-fire"></i>%i18n:desktop.tags.mk-trends-home-widget.title%</p>
<button onclick={ fetch } title="%i18n:desktop.tags.mk-trends-home-widget.refresh%"><i class="fa fa-refresh"></i></button>
<div class="post" if={ !loading && post != null }>
<p class="text"><a href="/{ post.user.username }/{ post.id }">{ post.text }</a></p>
<p class="author"><a href="/{ post.user.username }">@{ post.user.username }</a></p>
</div>
<p class="empty" if={ !loading && post == null }>ありません!</p>
<p class="loading" if={ loading }><i class="fa fa-spinner fa-pulse fa-fw"></i>読み込んでいます<mk-ellipsis></mk-ellipsis></p>
<p class="empty" if={ !loading && post == null }>%i18n:desktop.tags.mk-trends-home-widget.nothing%</p>
<p class="loading" if={ loading }><i class="fa fa-spinner fa-pulse fa-fw"></i>%i18n:desktop.tags.mk-trends-home-widget.loading%<mk-ellipsis></mk-ellipsis></p>
<style>
:scope
display block

View File

@ -1,6 +1,6 @@
<mk-user-recommendation-home-widget>
<p class="title"><i class="fa fa-users"></i>おすすめユーザー</p>
<button onclick={ refresh } title="他を見る"><i class="fa fa-refresh"></i></button>
<p class="title"><i class="fa fa-users"></i>%i18n:desktop.tags.mk-user-recommendation-home-widget.title%</p>
<button onclick={ refresh } title="%i18n:desktop.tags.mk-user-recommendation-home-widget.refresh%"><i class="fa fa-refresh"></i></button>
<div class="user" if={ !loading && users.length != 0 } each={ _user in users }>
<a class="avatar-anchor" href={ CONFIG.url + '/' + _user.username }>
<img class="avatar" src={ _user.avatar_url + '?thumbnail&size=42' } alt="" data-user-preview={ _user.id }/>
@ -11,8 +11,8 @@
</div>
<mk-follow-button user={ _user }></mk-follow-button>
</div>
<p class="empty" if={ !loading && users.length == 0 }>いません!</p>
<p class="loading" if={ loading }><i class="fa fa-spinner fa-pulse fa-fw"></i>読み込んでいます<mk-ellipsis></mk-ellipsis></p>
<p class="empty" if={ !loading && users.length == 0 }>%i18n:desktop.tags.mk-user-recommendation-home-widget.no-one%</p>
<p class="loading" if={ loading }><i class="fa fa-spinner fa-pulse fa-fw"></i>%i18n:desktop.tags.mk-user-recommendation-home-widget.fetching%<mk-ellipsis></mk-ellipsis></p>
<style>
:scope
display block