From c352aafb3e972870715770c7bd975051ff9b0fec Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 31 Mar 2017 00:19:15 +0900 Subject: [PATCH] [Client] :v: --- src/const.json | 2 +- src/web/app/boot.js | 6 +----- .../app/common/tags/{core-error.tag => error.tag} | 12 ++++-------- src/web/app/common/tags/index.js | 2 +- 4 files changed, 7 insertions(+), 15 deletions(-) rename src/web/app/common/tags/{core-error.tag => error.tag} (87%) diff --git a/src/const.json b/src/const.json index e39db6e90d..1032ed538f 100644 --- a/src/const.json +++ b/src/const.json @@ -1,5 +1,5 @@ { "themeColor": "#87bb35", "themeColorForeground": "#fff", - "idea": ["#f13049"] + "idea": ["#f13049", "#f43636"] } diff --git a/src/web/app/boot.js b/src/web/app/boot.js index cc92357579..426c7be40e 100644 --- a/src/web/app/boot.js +++ b/src/web/app/boot.js @@ -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() { diff --git a/src/web/app/common/tags/core-error.tag b/src/web/app/common/tags/error.tag similarity index 87% rename from src/web/app/common/tags/core-error.tag rename to src/web/app/common/tags/error.tag index dd6f994ea2..42d7642827 100644 --- a/src/web/app/common/tags/core-error.tag +++ b/src/web/app/common/tags/error.tag @@ -1,4 +1,4 @@ - +

サーバーに接続できません

@@ -7,7 +7,7 @@ -
+ diff --git a/src/web/app/common/tags/index.js b/src/web/app/common/tags/index.js index dfec571478..5dc4ef4546 100644 --- a/src/web/app/common/tags/index.js +++ b/src/web/app/common/tags/index.js @@ -1,4 +1,4 @@ -require('./core-error.tag'); +require('./error.tag'); require('./url.tag'); require('./url-preview.tag'); require('./time.tag');