mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-14 22:17:30 -07:00
Clean up: Destroy nyaize
This commit is contained in:
parent
b144975365
commit
db7329fc65
3 changed files with 0 additions and 21 deletions
|
@ -38,8 +38,6 @@ module.exports = () => {
|
|||
|
||||
const data = {
|
||||
cache: true,
|
||||
debug: false,
|
||||
nya: true,
|
||||
home: homeData
|
||||
};
|
||||
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue