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!" "congrats": "Congrats!"
}, },
"tags": { "tags": {
"mk-stream-indicator": {
"connecting": "Connecting",
"reconnecting": "Disconnected. reconnecting",
"connected": "Connected"
},
"mk-reaction-picker": { "mk-reaction-picker": {
"choose-reaction": "Pick your reaction" "choose-reaction": "Pick your reaction"
} }
@ -77,6 +82,33 @@
"repost": "Repost", "repost": "Repost",
"add-reaction": "Add your reaction", "add-reaction": "Add your reaction",
"detail": "Show detail" "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": "おめでとう" "congrats": "おめでとう"
}, },
"tags": { "tags": {
"mk-stream-indicator": {
"connecting": "接続中",
"reconnecting": "切断されました 接続中",
"connected": "接続完了"
},
"mk-reaction-picker": { "mk-reaction-picker": {
"choose-reaction": "リアクションを選択" "choose-reaction": "リアクションを選択"
} }
@ -77,6 +82,33 @@
"repost": "Repost", "repost": "Repost",
"add-reaction": "リアクション", "add-reaction": "リアクション",
"detail": "詳細" "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", "name": "misskey",
"author": "syuilo <i@syuilo.com>", "author": "syuilo <i@syuilo.com>",
"version": "0.0.1480", "version": "0.0.1485",
"license": "MIT", "license": "MIT",
"description": "A miniblog-based SNS", "description": "A miniblog-based SNS",
"bugs": "https://github.com/syuilo/misskey/issues", "bugs": "https://github.com/syuilo/misskey/issues",

View file

@ -1,15 +1,15 @@
<mk-stream-indicator> <mk-stream-indicator>
<p if={ stream.state == 'initializing' }> <p if={ stream.state == 'initializing' }>
<i class="fa fa-spinner fa-spin"></i> <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>
<p if={ stream.state == 'reconnecting' }> <p if={ stream.state == 'reconnecting' }>
<i class="fa fa-spinner fa-spin"></i> <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>
<p if={ stream.state == 'connected' }> <p if={ stream.state == 'connected' }>
<i class="fa fa-check"></i> <i class="fa fa-check"></i>
<span>接続完了</span> <span>%i18n:common.tags.mk-stream-indicator.connected%</span>
</p> </p>
<style> <style>
:scope :scope

View file

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

View file

@ -1,14 +1,12 @@
<mk-photo-stream-home-widget> <mk-photo-stream-home-widget>
<p class="title"><i class="fa fa-camera"></i>フォトストリーム</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>読み込んでいます <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>
<mk-ellipsis></mk-ellipsis>
</p>
<div class="stream" if={ !initializing && images.length > 0 }> <div class="stream" if={ !initializing && images.length > 0 }>
<virtual each={ image in images }> <virtual each={ image in images }>
<div class="img" style={ 'background-image: url(' + image.url + '?thumbnail&size=256)' }></div> <div class="img" style={ 'background-image: url(' + image.url + '?thumbnail&size=256)' }></div>
</virtual> </virtual>
</div> </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> <style>
:scope :scope
display block display block

View file

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

View file

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

View file

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