summaryrefslogtreecommitdiff
path: root/src/web
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2017-03-01 14:34:26 +0900
committersyuilo <syuilotan@yahoo.co.jp>2017-03-01 14:34:26 +0900
commitdf3440633a0c9bd0e04d56c7c37f83af96fd2f45 (patch)
treea73c298aad8bd7a20ea40493ecbfc3636137a450 /src/web
parentより良い方法が思いつくまで<i>で代用 (diff)
downloadsharkey-df3440633a0c9bd0e04d56c7c37f83af96fd2f45.tar.gz
sharkey-df3440633a0c9bd0e04d56c7c37f83af96fd2f45.tar.bz2
sharkey-df3440633a0c9bd0e04d56c7c37f83af96fd2f45.zip
Clean up: Destroy nyaize
Diffstat (limited to 'src/web')
-rw-r--r--src/web/app/common/scripts/generate-default-userdata.js2
-rw-r--r--src/web/app/common/scripts/text-compiler.js5
-rw-r--r--src/web/app/desktop/tags/settings.tag14
3 files changed, 0 insertions, 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(/ <code>/g, '<code>').replace(/<\/code> /g, '</code>')
.replace(/<br><code><pre>/g, '<code><pre>').replace(/<\/code><\/pre><br>/g, '</code></pre>');
- 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 @@
<p>読み込みを高速化する</p>
<p>API通信時に新鮮なユーザー情報をキャッシュすることでフェッチのオーバーヘッドを無くします。(実験的)</p>
</label>
- <label class="checkbox">
- <input type="checkbox" checked={ I.data.nya } onclick={ updateNya }/>
- <p><i>な</i>を<i>にゃ</i>に変換する</p>
- <p>攻撃的な投稿が多少和らぐ可能性があります。</p>
- </label>
</section>
<section class="apps" show={ page == 'apps' }>
@@ -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
- })
- });
- };
</script>
</mk-settings>