1
0
forked from mirror/misskey

[Client] ✌️

This commit is contained in:
syuilo 2017-03-31 00:19:15 +09:00
parent c518401f53
commit c352aafb3e
4 changed files with 7 additions and 15 deletions

View File

@ -1,5 +1,5 @@
{ {
"themeColor": "#87bb35", "themeColor": "#87bb35",
"themeColorForeground": "#fff", "themeColorForeground": "#fff",
"idea": ["#f13049"] "idea": ["#f13049", "#f43636"]
} }

View File

@ -139,11 +139,7 @@ function fetchme(token, cb) {
me.data ? done() : init(); me.data ? done() : init();
}); });
}, () => { }, () => {
riot.mount(document.body.appendChild(document.createElement('mk-core-error')), { riot.mount(document.body.appendChild(document.createElement('mk-error')));
retry: () => {
fetchme(token, cb);
}
});
}); });
function done() { function done() {

View File

@ -1,4 +1,4 @@
<mk-core-error> <mk-error>
<!--i: i.fa.fa-times-circle--> <!--i: i.fa.fa-times-circle-->
<img src="/assets/error.jpg" alt=""/> <img src="/assets/error.jpg" alt=""/>
<h1>サーバーに接続できません</h1> <h1>サーバーに接続できません</h1>
@ -7,7 +7,7 @@
<style> <style>
:scope :scope
position fixed position fixed
z-index 16385 z-index 100000
top 0 top 0
left 0 left 0
width 100% width 100%
@ -26,9 +26,6 @@
height 200px height 200px
margin 64px auto 0 auto margin 64px auto 0 auto
pointer-events none pointer-events none
-ms-user-select none
-moz-user-select none
-webkit-user-select none
user-select none user-select none
> h1 > h1
@ -57,8 +54,7 @@
</style> </style>
<script> <script>
this.retry = () => { this.retry = () => {
this.unmount(); location.reload()
this.opts.retry();
} }
</script> </script>
</mk-core-error> </mk-error>

View File

@ -1,4 +1,4 @@
require('./core-error.tag'); require('./error.tag');
require('./url.tag'); require('./url.tag');
require('./url-preview.tag'); require('./url-preview.tag');
require('./time.tag'); require('./time.tag');