forked from FoundKeyGang/FoundKey
Fix bug
This commit is contained in:
parent
6c4baf69ff
commit
cb543daf28
18 changed files with 32 additions and 53 deletions
|
@ -1,8 +1,6 @@
|
||||||
<mk-index>
|
<mk-index>
|
||||||
<main if={ SIGNIN }>
|
<main if={ SIGNIN }>
|
||||||
<p class="fetching" if={ fetching }>読み込み中
|
<p class="fetching" if={ fetching }>読み込み中<mk-ellipsis/></p>
|
||||||
<mk-ellipsis></mk-ellipsis>
|
|
||||||
</p>
|
|
||||||
<mk-form ref="form" if={ state == 'waiting' } session={ session }></mk-form>
|
<mk-form ref="form" if={ state == 'waiting' } session={ session }></mk-form>
|
||||||
<div class="denied" if={ state == 'denied' }>
|
<div class="denied" if={ state == 'denied' }>
|
||||||
<h1>アプリケーションの連携をキャンセルしました。</h1>
|
<h1>アプリケーションの連携をキャンセルしました。</h1>
|
||||||
|
@ -10,9 +8,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="accepted" if={ state == 'accepted' }>
|
<div class="accepted" if={ state == 'accepted' }>
|
||||||
<h1>{ session.app.is_authorized ? 'このアプリは既に連携済みです' : 'アプリケーションの連携を許可しました'}</h1>
|
<h1>{ session.app.is_authorized ? 'このアプリは既に連携済みです' : 'アプリケーションの連携を許可しました'}</h1>
|
||||||
<p if={ session.app.callback_url }>アプリケーションに戻っています
|
<p if={ session.app.callback_url }>アプリケーションに戻っています<mk-ellipsis/></p>
|
||||||
<mk-ellipsis></mk-ellipsis>
|
|
||||||
</p>
|
|
||||||
<p if={ !session.app.callback_url }>アプリケーションに戻って、やっていってください。</p>
|
<p if={ !session.app.callback_url }>アプリケーションに戻って、やっていってください。</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="error" if={ state == 'fetch-session-error' }>
|
<div class="error" if={ state == 'fetch-session-error' }>
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
<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>%i18n:common.tags.mk-stream-indicator.connecting%<mk-ellipsis></mk-ellipsis></span>
|
<span>%i18n:common.tags.mk-stream-indicator.connecting%<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>%i18n:common.tags.mk-stream-indicator.reconnecting%<mk-ellipsis></mk-ellipsis></span>
|
<span>%i18n:common.tags.mk-stream-indicator.reconnecting%<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>
|
||||||
|
|
|
@ -3,8 +3,7 @@
|
||||||
<li each={ uploads }>
|
<li each={ uploads }>
|
||||||
<div class="img" style="background-image: url({ img })"></div>
|
<div class="img" style="background-image: url({ img })"></div>
|
||||||
<p class="name"><i class="fa fa-spinner fa-pulse"></i>{ name }</p>
|
<p class="name"><i class="fa fa-spinner fa-pulse"></i>{ name }</p>
|
||||||
<p class="status"><span class="initing" if={ progress == undefined }>%i18n:common.tags.mk-uploader.waiting%
|
<p class="status"><span class="initing" if={ progress == undefined }>%i18n:common.tags.mk-uploader.waiting%<mk-ellipsis/></span><span class="kb" if={ progress != undefined }>{ String(Math.floor(progress.value / 1024)).replace(/(\d)(?=(\d\d\d)+(?!\d))/g, '$1,') }<i>KB</i> / { String(Math.floor(progress.max / 1024)).replace(/(\d)(?=(\d\d\d)+(?!\d))/g, '$1,') }<i>KB</i></span><span class="percentage" if={ progress != undefined }>{ Math.floor((progress.value / progress.max) * 100) }</span></p>
|
||||||
<mk-ellipsis></mk-ellipsis></span><span class="kb" if={ progress != undefined }>{ String(Math.floor(progress.value / 1024)).replace(/(\d)(?=(\d\d\d)+(?!\d))/g, '$1,') }<i>KB</i> / { String(Math.floor(progress.max / 1024)).replace(/(\d)(?=(\d\d\d)+(?!\d))/g, '$1,') }<i>KB</i></span><span class="percentage" if={ progress != undefined }>{ Math.floor((progress.value / progress.max) * 100) }</span></p>
|
|
||||||
<progress if={ progress != undefined && progress.value != progress.max } value={ progress.value } max={ progress.max }></progress>
|
<progress if={ progress != undefined && progress.value != progress.max } value={ progress.value } max={ progress.max }></progress>
|
||||||
<div class="progress initing" if={ progress == undefined }></div>
|
<div class="progress initing" if={ progress == undefined }></div>
|
||||||
<div class="progress waiting" if={ progress != undefined && progress.value == progress.max }></div>
|
<div class="progress waiting" if={ progress != undefined && progress.value == progress.max }></div>
|
||||||
|
|
|
@ -9,9 +9,8 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<p class="empty" if={ !fetching && users.length == 0 }>おすすめのユーザーは見つかりませんでした。</p>
|
<p class="empty" if={ !fetching && users.length == 0 }>おすすめのユーザーは見つかりませんでした。</p>
|
||||||
<p class="fetching" if={ fetching }><i class="fa fa-spinner fa-pulse fa-fw"></i>読み込んでいます
|
<p class="fetching" if={ fetching }><i class="fa fa-spinner fa-pulse fa-fw"></i>読み込んでいます<mk-ellipsis/></p>
|
||||||
<mk-ellipsis></mk-ellipsis>
|
<a class="refresh" onclick={ refresh }>もっと見る</a>
|
||||||
</p><a class="refresh" onclick={ refresh }>もっと見る</a>
|
|
||||||
<button class="close" onclick={ close } title="閉じる"><i class="fa fa-times"></i></button>
|
<button class="close" onclick={ close } title="閉じる"><i class="fa fa-times"></i></button>
|
||||||
<style>
|
<style>
|
||||||
:scope
|
:scope
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<mk-photo-stream-home-widget>
|
<mk-photo-stream-home-widget>
|
||||||
<p class="title"><i class="fa fa-camera"></i>%i18n:desktop.tags.mk-photo-stream-home-widget.title%</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:common.loading%<mk-ellipsis></mk-ellipsis></p>
|
<p class="initializing" if={ initializing }><i class="fa fa-spinner fa-pulse fa-fw"></i>%i18n:common.loading%<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>
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
<mk-poll post={ poll }></mk-poll>
|
<mk-poll post={ poll }></mk-poll>
|
||||||
</div>
|
</div>
|
||||||
<p class="empty" if={ !loading && poll == null }>%i18n:desktop.tags.mk-recommended-polls-home-widget.nothing%</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:common.loading%<mk-ellipsis></mk-ellipsis></p>
|
<p class="loading" if={ loading }><i class="fa fa-spinner fa-pulse fa-fw"></i>%i18n:common.loading%<mk-ellipsis/></p>
|
||||||
<style>
|
<style>
|
||||||
:scope
|
:scope
|
||||||
display block
|
display block
|
||||||
|
|
|
@ -4,9 +4,7 @@
|
||||||
<div class="feed" if={ !initializing }>
|
<div class="feed" if={ !initializing }>
|
||||||
<virtual each={ item in items }><a href={ item.link } target="_blank">{ item.title }</a></virtual>
|
<virtual each={ item in items }><a href={ item.link } target="_blank">{ item.title }</a></virtual>
|
||||||
</div>
|
</div>
|
||||||
<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>読み込んでいます<mk-ellipsis/></p>
|
||||||
<mk-ellipsis></mk-ellipsis>
|
|
||||||
</p>
|
|
||||||
<style>
|
<style>
|
||||||
:scope
|
:scope
|
||||||
display block
|
display block
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
<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 }>%i18n:desktop.tags.mk-trends-home-widget.nothing%</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:common.loading%<mk-ellipsis></mk-ellipsis></p>
|
<p class="loading" if={ loading }><i class="fa fa-spinner fa-pulse fa-fw"></i>%i18n:common.loading%<mk-ellipsis/></p>
|
||||||
<style>
|
<style>
|
||||||
:scope
|
:scope
|
||||||
display block
|
display block
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
<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 }>%i18n:desktop.tags.mk-user-recommendation-home-widget.no-one%</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:common.loading%<mk-ellipsis></mk-ellipsis></p>
|
<p class="loading" if={ loading }><i class="fa fa-spinner fa-pulse fa-fw"></i>%i18n:common.loading%<mk-ellipsis/></p>
|
||||||
<style>
|
<style>
|
||||||
:scope
|
:scope
|
||||||
display block
|
display block
|
||||||
|
|
|
@ -64,9 +64,7 @@
|
||||||
</virtual>
|
</virtual>
|
||||||
</div>
|
</div>
|
||||||
<p class="empty" if={ notifications.length == 0 && !loading }>ありません!</p>
|
<p class="empty" if={ notifications.length == 0 && !loading }>ありません!</p>
|
||||||
<p class="loading" if={ loading }><i class="fa fa-spinner fa-pulse fa-fw"></i>読み込んでいます
|
<p class="loading" if={ loading }><i class="fa fa-spinner fa-pulse fa-fw"></i>読み込んでいます<mk-ellipsis/></p>
|
||||||
<mk-ellipsis></mk-ellipsis>
|
|
||||||
</p>
|
|
||||||
<style>
|
<style>
|
||||||
:scope
|
:scope
|
||||||
display block
|
display block
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
<span if={ !parent.opts.reply }>%i18n:desktop.tags.mk-post-form-window.post%</span>
|
<span if={ !parent.opts.reply }>%i18n:desktop.tags.mk-post-form-window.post%</span>
|
||||||
<span if={ parent.opts.reply }>%i18n:desktop.tags.mk-post-form-window.reply%</span>
|
<span if={ parent.opts.reply }>%i18n:desktop.tags.mk-post-form-window.reply%</span>
|
||||||
<span class="files" if={ parent.files.length != 0 }>{ '%i18n:desktop.tags.mk-post-form-window.attaches%'.replace('{}', parent.files.length) }</span>
|
<span class="files" if={ parent.files.length != 0 }>{ '%i18n:desktop.tags.mk-post-form-window.attaches%'.replace('{}', parent.files.length) }</span>
|
||||||
<span class="uploading-files" if={ parent.uploadingFiles.length != 0 }>{ '%i18n:desktop.tags.mk-post-form-window.uploading-media%'.replace('{}', parent.uploadingFiles.length) }<mk-ellipsis></mk-ellipsis></span>
|
<span class="uploading-files" if={ parent.uploadingFiles.length != 0 }>{ '%i18n:desktop.tags.mk-post-form-window.uploading-media%'.replace('{}', parent.uploadingFiles.length) }<mk-ellipsis/></span>
|
||||||
</yield>
|
</yield>
|
||||||
<yield to="content">
|
<yield to="content">
|
||||||
<div class="ref" if={ parent.opts.reply }>
|
<div class="ref" if={ parent.opts.reply }>
|
||||||
|
|
|
@ -1,16 +1,14 @@
|
||||||
<mk-progress-dialog>
|
<mk-progress-dialog>
|
||||||
<mk-window ref="window" is-modal={ false } can-close={ false } width={ '500px' }>
|
<mk-window ref="window" is-modal={ false } can-close={ false } width={ '500px' }>
|
||||||
<yield to="header">{ parent.title }
|
<yield to="header">{ parent.title }<mk-ellipsis/></yield>
|
||||||
<mk-ellipsis></mk-ellipsis></yield>
|
|
||||||
<yield to="content">
|
<yield to="content">
|
||||||
<div class="body">
|
<div class="body">
|
||||||
<p class="init" if={ isNaN(parent.value) }>待機中
|
<p class="init" if={ isNaN(parent.value) }>待機中<mk-ellipsis/></p>
|
||||||
<mk-ellipsis></mk-ellipsis>
|
|
||||||
</p>
|
|
||||||
<p class="percentage" if={ !isNaN(parent.value) }>{ Math.floor((parent.value / parent.max) * 100) }</p>
|
<p class="percentage" if={ !isNaN(parent.value) }>{ Math.floor((parent.value / parent.max) * 100) }</p>
|
||||||
<progress if={ !isNaN(parent.value) && parent.value < parent.max } value={ isNaN(parent.value) ? 0 : parent.value } max={ parent.max }></progress>
|
<progress if={ !isNaN(parent.value) && parent.value < parent.max } value={ isNaN(parent.value) ? 0 : parent.value } max={ parent.max }></progress>
|
||||||
<div class="progress waiting" if={ parent.value >= parent.max }></div>
|
<div class="progress waiting" if={ parent.value >= parent.max }></div>
|
||||||
</div></yield>
|
</div>
|
||||||
|
</yield>
|
||||||
</mk-window>
|
</mk-window>
|
||||||
<style>
|
<style>
|
||||||
:scope
|
:scope
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
<mk-user-photos>
|
<mk-user-photos>
|
||||||
<p class="title"><i class="fa fa-camera"></i>フォト</p>
|
<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>読み込んでいます
|
<p class="initializing" if={ initializing }><i class="fa fa-spinner fa-pulse fa-fw"></i>読み込んでいます<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>
|
||||||
|
|
|
@ -12,12 +12,10 @@
|
||||||
</div>
|
</div>
|
||||||
<button class="more" if={ !fetching && next != null } onclick={ more } disabled={ moreFetching }>
|
<button class="more" if={ !fetching && next != null } onclick={ more } disabled={ moreFetching }>
|
||||||
<span if={ !moreFetching }>もっと</span>
|
<span if={ !moreFetching }>もっと</span>
|
||||||
<span if={ moreFetching }>読み込み中<mk-ellipsis></mk-ellipsis></span>
|
<span if={ moreFetching }>読み込み中<mk-ellipsis/></span>
|
||||||
</button>
|
</button>
|
||||||
<p class="no" if={ !fetching && users.length == 0 }>{ opts.noUsers }</p>
|
<p class="no" if={ !fetching && users.length == 0 }>{ opts.noUsers }</p>
|
||||||
<p class="fetching" if={ fetching }><i class="fa fa-spinner fa-pulse fa-fw"></i>読み込んでいます
|
<p class="fetching" if={ fetching }><i class="fa fa-spinner fa-pulse fa-fw"></i>読み込んでいます<mk-ellipsis/></p>
|
||||||
<mk-ellipsis></mk-ellipsis>
|
|
||||||
</p>
|
|
||||||
<style>
|
<style>
|
||||||
:scope
|
:scope
|
||||||
display block
|
display block
|
||||||
|
|
|
@ -9,9 +9,8 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<p class="empty" if={ !fetching && users.length == 0 }>おすすめのユーザーは見つかりませんでした。</p>
|
<p class="empty" if={ !fetching && users.length == 0 }>おすすめのユーザーは見つかりませんでした。</p>
|
||||||
<p class="fetching" if={ fetching }><i class="fa fa-spinner fa-pulse fa-fw"></i>読み込んでいます
|
<p class="fetching" if={ fetching }><i class="fa fa-spinner fa-pulse fa-fw"></i>読み込んでいます<mk-ellipsis/></p>
|
||||||
<mk-ellipsis></mk-ellipsis>
|
<a class="refresh" onclick={ refresh }>もっと見る</a>
|
||||||
</p><a class="refresh" onclick={ refresh }>もっと見る</a>
|
|
||||||
<button class="close" onclick={ close } title="閉じる"><i class="fa fa-times"></i></button>
|
<button class="close" onclick={ close } title="閉じる"><i class="fa fa-times"></i></button>
|
||||||
<style>
|
<style>
|
||||||
:scope
|
:scope
|
||||||
|
|
|
@ -6,9 +6,7 @@
|
||||||
</virtual>
|
</virtual>
|
||||||
</div>
|
</div>
|
||||||
<p class="empty" if={ notifications.length == 0 && !loading }>%i18n:mobile.tags.mk-notifications.empty%</p>
|
<p class="empty" if={ notifications.length == 0 && !loading }>%i18n:mobile.tags.mk-notifications.empty%</p>
|
||||||
<p class="loading" if={ loading }><i class="fa fa-spinner fa-pulse fa-fw"></i>%i18n:common.loading%
|
<p class="loading" if={ loading }><i class="fa fa-spinner fa-pulse fa-fw"></i>%i18n:common.loading%<mk-ellipsis/></p>
|
||||||
<mk-ellipsis></mk-ellipsis>
|
|
||||||
</p>
|
|
||||||
<style>
|
<style>
|
||||||
:scope
|
:scope
|
||||||
display block
|
display block
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
<footer if={ !init }>
|
<footer if={ !init }>
|
||||||
<button if={ canFetchMore } onclick={ more } disabled={ fetching }>
|
<button if={ canFetchMore } onclick={ more } disabled={ fetching }>
|
||||||
<span if={ !fetching }>%i18n:mobile.tags.mk-timeline.load-more%</span>
|
<span if={ !fetching }>%i18n:mobile.tags.mk-timeline.load-more%</span>
|
||||||
<span if={ fetching }>%i18n:common.loading%<mk-ellipsis></mk-ellipsis></span>
|
<span if={ fetching }>%i18n:common.loading%<mk-ellipsis/></span>
|
||||||
</button>
|
</button>
|
||||||
</footer>
|
</footer>
|
||||||
<style>
|
<style>
|
||||||
|
|
|
@ -8,11 +8,9 @@
|
||||||
</div>
|
</div>
|
||||||
<button class="more" if={ !fetching && next != null } onclick={ more } disabled={ moreFetching }>
|
<button class="more" if={ !fetching && next != null } onclick={ more } disabled={ moreFetching }>
|
||||||
<span if={ !moreFetching }>%i18n:mobile.tags.mk-users-list.load-more%</span>
|
<span if={ !moreFetching }>%i18n:mobile.tags.mk-users-list.load-more%</span>
|
||||||
<span if={ moreFetching }>%i18n:common.loading%<mk-ellipsis></mk-ellipsis></span></button>
|
<span if={ moreFetching }>%i18n:common.loading%<mk-ellipsis/></span></button>
|
||||||
<p class="no" if={ !fetching && users.length == 0 }>{ opts.noUsers }</p>
|
<p class="no" if={ !fetching && users.length == 0 }>{ opts.noUsers }</p>
|
||||||
<p class="fetching" if={ fetching }>
|
<p class="fetching" if={ fetching }><i class="fa fa-spinner fa-pulse fa-fw"></i>%i18n:common.loading%<mk-ellipsis/></p>
|
||||||
<i class="fa fa-spinner fa-pulse fa-fw"></i>%i18n:common.loading%<mk-ellipsis></mk-ellipsis>
|
|
||||||
</p>
|
|
||||||
<style>
|
<style>
|
||||||
:scope
|
:scope
|
||||||
display block
|
display block
|
||||||
|
|
Loading…
Reference in a new issue