1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-09-17 02:16:54 +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"
:removable="item.removable"
:adding="true"
:text_only="item.text_only"
:text-only="item.textOnly"
@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">
@ -20,7 +20,7 @@
:colored="item.colored"
:words="item.words"
:removable="item.removable"
:text_only="item.text_only"
:text-only="item.textOnly"
@remove="remove(term)"
@save="save(term, $event)"
/>
@ -40,7 +40,7 @@ export default {
props: {
item: Object,
context: Object,
text_only: {
textOnly: {
type: Boolean,
default: false
}

View file

@ -35,7 +35,7 @@
</figure>
</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>
<select
v-else
@ -162,7 +162,7 @@ export default {
type: Boolean,
default: false
},
text_only: {
textOnly: {
type: Boolean,
default: false
}

View file

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

View file

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