mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-14 14:07:38 -07:00
[Client] ✌️
This commit is contained in:
parent
faad78e776
commit
e618c877a8
4 changed files with 7 additions and 15 deletions
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"themeColor": "#87bb35",
|
||||
"themeColorForeground": "#fff",
|
||||
"idea": ["#f13049"]
|
||||
"idea": ["#f13049", "#f43636"]
|
||||
}
|
||||
|
|
|
@ -139,11 +139,7 @@ function fetchme(token, cb) {
|
|||
me.data ? done() : init();
|
||||
});
|
||||
}, () => {
|
||||
riot.mount(document.body.appendChild(document.createElement('mk-core-error')), {
|
||||
retry: () => {
|
||||
fetchme(token, cb);
|
||||
}
|
||||
});
|
||||
riot.mount(document.body.appendChild(document.createElement('mk-error')));
|
||||
});
|
||||
|
||||
function done() {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<mk-core-error>
|
||||
<mk-error>
|
||||
<!--i: i.fa.fa-times-circle-->
|
||||
<img src="/assets/error.jpg" alt=""/>
|
||||
<h1>サーバーに接続できません</h1>
|
||||
|
@ -7,7 +7,7 @@
|
|||
<style>
|
||||
:scope
|
||||
position fixed
|
||||
z-index 16385
|
||||
z-index 100000
|
||||
top 0
|
||||
left 0
|
||||
width 100%
|
||||
|
@ -26,9 +26,6 @@
|
|||
height 200px
|
||||
margin 64px auto 0 auto
|
||||
pointer-events none
|
||||
-ms-user-select none
|
||||
-moz-user-select none
|
||||
-webkit-user-select none
|
||||
user-select none
|
||||
|
||||
> h1
|
||||
|
@ -57,8 +54,7 @@
|
|||
</style>
|
||||
<script>
|
||||
this.retry = () => {
|
||||
this.unmount();
|
||||
this.opts.retry();
|
||||
location.reload()
|
||||
}
|
||||
</script>
|
||||
</mk-core-error>
|
||||
</mk-error>
|
|
@ -1,4 +1,4 @@
|
|||
require('./core-error.tag');
|
||||
require('./error.tag');
|
||||
require('./url.tag');
|
||||
require('./url-preview.tag');
|
||||
require('./time.tag');
|
||||
|
|
Loading…
Reference in a new issue