From df3440633a0c9bd0e04d56c7c37f83af96fd2f45 Mon Sep 17 00:00:00 2001 From: syuilo Date: Wed, 1 Mar 2017 14:34:26 +0900 Subject: [PATCH] Clean up: Destroy nyaize --- .../common/scripts/generate-default-userdata.js | 2 -- src/web/app/common/scripts/text-compiler.js | 5 ----- src/web/app/desktop/tags/settings.tag | 14 -------------- 3 files changed, 21 deletions(-) diff --git a/src/web/app/common/scripts/generate-default-userdata.js b/src/web/app/common/scripts/generate-default-userdata.js index f6c8c2fe58..fbe2e99075 100644 --- a/src/web/app/common/scripts/generate-default-userdata.js +++ b/src/web/app/common/scripts/generate-default-userdata.js @@ -38,8 +38,6 @@ module.exports = () => { const data = { cache: true, - debug: false, - nya: true, home: homeData }; diff --git a/src/web/app/common/scripts/text-compiler.js b/src/web/app/common/scripts/text-compiler.js index c53ee4d45a..2edffbb766 100644 --- a/src/web/app/common/scripts/text-compiler.js +++ b/src/web/app/common/scripts/text-compiler.js @@ -1,5 +1,4 @@ const riot = require('riot'); -const nyaize = require('nyaize').default; //const emojinize = require('emojinize'); const CONFIG = require('./config'); @@ -43,9 +42,5 @@ module.exports = (tokens, shouldBreak) => { .replace(/ /g, '').replace(/<\/code> /g, '') .replace(/
/g, '
').replace(/<\/code><\/pre>
/g, '
'); - if (me && me.data && me.data.nya) { - text = nyaize(text); - } - return text; }; diff --git a/src/web/app/desktop/tags/settings.tag b/src/web/app/desktop/tags/settings.tag index 56a00bc9ad..32d62758ec 100644 --- a/src/web/app/desktop/tags/settings.tag +++ b/src/web/app/desktop/tags/settings.tag @@ -47,11 +47,6 @@

読み込みを高速化する

API通信時に新鮮なユーザー情報をキャッシュすることでフェッチのオーバーヘッドを無くします。(実験的)

-
@@ -228,14 +223,5 @@ }) }); }; - - this.updateNya = () => { - this.I.data.nya = !this.I.data.nya; - this.api('i/appdata/set', { - data: JSON.stringify({ - nya: this.I.data.nya - }) - }); - };