diff --git a/client/prettier.config.js b/client/prettier.config.js
index 5fb801d1631..df792433737 100644
--- a/client/prettier.config.js
+++ b/client/prettier.config.js
@@ -1,4 +1,5 @@
module.exports = {
tabWidth: 4,
- printWidth: 120
+ printWidth: 120,
+ bracketSameLine: true
};
diff --git a/client/src/components/Annotation.vue b/client/src/components/Annotation.vue
index 4cde03e7d99..5c4ccef7a23 100644
--- a/client/src/components/Annotation.vue
+++ b/client/src/components/Annotation.vue
@@ -7,8 +7,7 @@
v-b-tooltip.hover="{ boundary: 'viewport', placement: tooltipPlacement }"
:title="'Edit annotation...' | localize"
:placeholder="'Edit annotation...' | localize"
- v-slot="{ toggleEdit, placeholder, stateValidator }"
- >
+ v-slot="{ toggleEdit, placeholder, stateValidator }">
+ :state="stateValidator(inputScope.value, annotation)">
diff --git a/client/src/components/Citation/Citations.vue b/client/src/components/Citation/Citations.vue
index b65406d7736..26dac5deb21 100644
--- a/client/src/components/Citation/Citations.vue
+++ b/client/src/components/Citation/Citations.vue
@@ -26,8 +26,7 @@
:citation="citation"
:output-format="outputFormat"
v-for="(citation, index) in citations"
- :key="index"
- />
+ :key="index" />
@@ -38,16 +37,14 @@
@show="$emit('show')"
@shown="$emit('shown')"
@hide="$emit('hide')"
- @hidden="$emit('hidden')"
- >
+ @hidden="$emit('hidden')">
+ :key="index" />
diff --git a/client/src/components/ClickToEdit.vue b/client/src/components/ClickToEdit.vue
index af92b9b9566..71a4d0d9bd5 100644
--- a/client/src/components/ClickToEdit.vue
+++ b/client/src/components/ClickToEdit.vue
@@ -11,8 +11,7 @@
:toggleEdit="toggleEdit"
:editing="editing"
:placeholder="placeholder"
- :stateValidator="stateValidator"
- >
+ :stateValidator="stateValidator">
+ :state="stateValidator(debouncedValue, localValue)" />
diff --git a/client/src/components/Collections/ListCollectionCreator.vue b/client/src/components/Collections/ListCollectionCreator.vue
index fb0116508d4..2f9acfc8c3e 100644
--- a/client/src/components/Collections/ListCollectionCreator.vue
+++ b/client/src/components/Collections/ListCollectionCreator.vue
@@ -65,8 +65,7 @@
:oncancel="oncancel"
:hide-source-items="hideSourceItems"
@onUpdateHideSourceItems="onUpdateHideSourceItems"
- @clicked-create="clickedCreate"
- >
+ @clicked-create="clickedCreate">
{{
@@ -162,8 +161,7 @@
href="javascript:void(0);"
role="button"
:title="titleDeselectButton"
- @click="clickClearAll"
- >
+ @click="clickClearAll">
{{ l("Clear selected") }}
@@ -171,8 +169,7 @@
v-model="workingElements"
class="collection-elements scroll-container flex-row drop-zone"
@start="drag = true"
- @end="drag = false"
- >
+ @end="drag = false">
{{ discardedElementsHeader }}
@@ -190,8 +187,7 @@
@element-is-discarded="elementDiscarded"
@onRename="(name) => (element.name = name)"
:class="{ selected: getSelectedDatasetElems.includes(element.id) }"
- :element="element"
- />
+ :element="element" />
diff --git a/client/src/components/Collections/PairCollectionCreator.vue b/client/src/components/Collections/PairCollectionCreator.vue
index fd3727dd36d..eb3517d4393 100644
--- a/client/src/components/Collections/PairCollectionCreator.vue
+++ b/client/src/components/Collections/PairCollectionCreator.vue
@@ -82,8 +82,7 @@
@onUpdateHideSourceItems="onUpdateHideSourceItems"
@clicked-create="clickedCreate"
@remove-extensions-toggle="removeExtensionsToggle"
- :suggested-name="initialSuggestedName"
- >
+ :suggested-name="initialSuggestedName">
{{
@@ -130,8 +129,7 @@
class="swap"
href="javascript:void(0);"
title="l('Swap forward and reverse datasets')"
- @click="swapButton"
- >
+ @click="swapButton">
{{ l("Swap") }}
@@ -139,8 +137,7 @@
+ class="collection-element">
{{ index == 0 ? l("forward") : l("reverse") }}: {{ element.name }}
diff --git a/client/src/components/Collections/PairedListCollectionCreator.vue b/client/src/components/Collections/PairedListCollectionCreator.vue
index a044b3f13da..1e0175c7061 100644
--- a/client/src/components/Collections/PairedListCollectionCreator.vue
+++ b/client/src/components/Collections/PairedListCollectionCreator.vue
@@ -104,8 +104,7 @@
@onUpdateHideSourceItems="onUpdateHideSourceItems"
@clicked-create="clickedCreate"
@remove-extensions-toggle="removeExtensionsToggle"
- :render-extensions-toggle="true"
- >
+ :render-extensions-toggle="true">
{{
@@ -186,8 +185,7 @@
{{ l("Entering regular expressions to match dataset names. See:") }}
+ target="_blank">
{{ l("MDN's JavaScript Regular Expression Tutorial") }}
{{ l("Note: forward slashes (\\) are not needed.") }}
@@ -256,22 +254,19 @@
float-left
search-input search-query
input-group
- "
- >
+ ">
+ title="filterTextTitle" />
@@ -420,8 +406,7 @@
:key="pair.id"
:pair="pair"
:unlink-fn="clickUnpair(pair)"
- @onPairRename="(name) => (pair.name = name)"
- />
+ @onPairRename="(name) => (pair.name = name)" />
diff --git a/client/src/components/Collections/common/ClickToEdit.vue b/client/src/components/Collections/common/ClickToEdit.vue
index b232c28910e..4213fb23001 100644
--- a/client/src/components/Collections/common/ClickToEdit.vue
+++ b/client/src/components/Collections/common/ClickToEdit.vue
@@ -5,8 +5,7 @@
contenteditable
v-model="localValue"
@blur="editable = false"
- @keyup.enter="editable = false"
- />
+ @keyup.enter="editable = false" />
diff --git a/client/src/components/Collections/common/CollectionCreator.vue b/client/src/components/Collections/common/CollectionCreator.vue
index 4fd0cf01f39..215ba7a82a4 100644
--- a/client/src/components/Collections/common/CollectionCreator.vue
+++ b/client/src/components/Collections/common/CollectionCreator.vue
@@ -7,8 +7,7 @@
href="javascript:void(0);"
role="button"
@click="_clickForHelp"
- :title="titleForHelp"
- >
+ :title="titleForHelp">
@@ -24,8 +23,7 @@
href="javascript:void(0);"
role="button"
@click="_clickForHelp"
- :title="titleForHelp"
- >
+ :title="titleForHelp">
@@ -42,8 +40,7 @@
class="remove-extensions float-right"
type="checkbox"
@click="$emit('remove-extensions-toggle')"
- checked
- />
+ checked />
diff --git a/client/src/components/Common/DelayedInput.vue b/client/src/components/Common/DelayedInput.vue
index 6659f75f78e..dcda3e98cfd 100644
--- a/client/src/components/Common/DelayedInput.vue
+++ b/client/src/components/Common/DelayedInput.vue
@@ -6,8 +6,7 @@
v-model="queryInput"
@input="delayQuery"
@change="setQuery"
- @keydown.esc="setQuery()"
- />
+ @keydown.esc="setQuery()" />
+ @click="setQuery()" />