1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-09-17 10:16:57 +00:00

Fix lint errors

This commit is contained in:
Pyrrhic 2020-11-15 02:18:33 -06:00
parent 4f7cd07d58
commit 271de2b341
5 changed files with 8 additions and 8 deletions

View file

@ -6,7 +6,7 @@
:words="item.words" :words="item.words"
:removable="item.removable" :removable="item.removable"
:adding="true" :adding="true"
:text_only="item.text_only" :text-only="item.textOnly"
@save="new_term" @save="new_term"
/> />
<div v-if="! val.length || val.length === 1 && hasInheritance" class="tw-mg-t-05 tw-c-text-alt-2 tw-font-size-4 tw-align-center tw-c-text-alt-2 tw-pd-05"> <div v-if="! val.length || val.length === 1 && hasInheritance" class="tw-mg-t-05 tw-c-text-alt-2 tw-font-size-4 tw-align-center tw-c-text-alt-2 tw-pd-05">
@ -20,7 +20,7 @@
:colored="item.colored" :colored="item.colored"
:words="item.words" :words="item.words"
:removable="item.removable" :removable="item.removable"
:text_only="item.text_only" :text-only="item.textOnly"
@remove="remove(term)" @remove="remove(term)"
@save="save(term, $event)" @save="save(term, $event)"
/> />
@ -40,7 +40,7 @@ export default {
props: { props: {
item: Object, item: Object,
context: Object, context: Object,
text_only: { textOnly: {
type: Boolean, type: Boolean,
default: false default: false
} }

View file

@ -35,7 +35,7 @@
</figure> </figure>
</div> </div>
</div> </div>
<div v-if="! text_only" class="tw-flex-shrink-0 tw-mg-x-05"> <div v-if="! textOnly" class="tw-flex-shrink-0 tw-mg-x-05">
<span v-if="! editing">{{ term_type }}</span> <span v-if="! editing">{{ term_type }}</span>
<select <select
v-else v-else
@ -162,7 +162,7 @@ export default {
type: Boolean, type: Boolean,
default: false default: false
}, },
text_only: { textOnly: {
type: Boolean, type: Boolean,
default: false default: false
} }

View file

@ -43,7 +43,7 @@ export default class Game extends SiteModule {
ui: { ui: {
path: 'Directory > Categories >> Filtered Text', path: 'Directory > Categories >> Filtered Text',
component: 'basic-terms', component: 'basic-terms',
text_only: true, textOnly: true,
onUIChange: () => this.parent.updateCards() onUIChange: () => this.parent.updateCards()
}, },
default: [], default: [],

View file

@ -343,7 +343,7 @@ export default class Directory extends SiteModule {
if (game.includes(text)) { if (game.includes(text)) {
const matchingElement = document.evaluate(`.//*[text()="${game}"]`, el, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue; const matchingElement = document.evaluate(`.//*[text()="${game}"]`, el, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
if (matchingElement) { if (matchingElement) {
matchingElement.innerText = game.replaceAll(text, "");; matchingElement.innerText = game.replaceAll(text, '');
} }
} }
}); });

View file

@ -312,7 +312,7 @@ export default class Layout extends Module {
if (game.includes(text)) { if (game.includes(text)) {
const matchingElement = document.evaluate(`.//*[text()="${game}"]`, node, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue; const matchingElement = document.evaluate(`.//*[text()="${game}"]`, node, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
if (matchingElement) { if (matchingElement) {
matchingElement.innerText = game.replaceAll(text, "");; matchingElement.innerText = game.replaceAll(text, '');
} }
} }
}); });