Clean up: Destroy nyaize

This commit is contained in:
syuilo 2017-03-01 14:34:26 +09:00
parent 572a38ad67
commit df3440633a
3 changed files with 0 additions and 21 deletions

View file

@ -38,8 +38,6 @@ module.exports = () => {
const data = {
cache: true,
debug: false,
nya: true,
home: homeData
};

View file

@ -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;
};

View file

@ -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>