Skip to content

Commit 4a5ca4a

Browse files
committed
fix: lint errors and reorder imports
1 parent e66956e commit 4a5ca4a

File tree

20 files changed

+33
-36
lines changed

20 files changed

+33
-36
lines changed

client/src/components/Form/Elements/FormData/FormDataContextButtons.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ import { faEye, faPlus, faSpinner, faTimes, faUpload } from "@fortawesome/free-s
44
import { FontAwesomeIcon } from "@fortawesome/vue-fontawesome";
55
import { BButton, BButtonGroup, BDropdown, BDropdownItem } from "bootstrap-vue";
66
import { computed } from "vue";
7-
import localize from "@/utils/localization";
87
98
import type { CollectionType } from "@/api/datasetCollections";
109
import {
1110
COLLECTION_TYPE_TO_LABEL,
1211
type CollectionBuilderType,
1312
} from "@/components/History/adapters/buildCollectionModal";
13+
import localize from "@/utils/localization";
1414
import { capitalizeFirstLetter } from "@/utils/strings";
1515
1616
import { buildersForCollectionTypes, unconstrainedCollectionTypeBuilders } from "./collections";

client/src/components/History/CurrentHistory/HistoryNavigation.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ function userTitle(title: string) {
4545
<nav
4646
:class="{ 'd-flex justify-content-between mx-3 my-2': !props.minimal }"
4747
aria-label="current history management">
48-
<h2 v-if="!props.minimal" class="m-1 h-sm" v-localize>History</h2>
48+
<h2 v-if="!props.minimal" v-localize class="m-1 h-sm">History</h2>
4949

5050
<BButtonGroup>
5151
<BButton

client/src/components/Masthead/QuotaMeter.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,8 @@ import { computed } from "vue";
66
import { isRegisteredUser } from "@/api";
77
import { useConfig } from "@/composables/config";
88
import { useUserStore } from "@/stores/userStore";
9-
import { bytesToString } from "@/utils/utils";
10-
119
import localize from "@/utils/localization";
10+
import { bytesToString } from "@/utils/utils";
1211
1312
const { config } = useConfig();
1413
const { currentUser, isAnonymous } = storeToRefs(useUserStore());

client/src/components/Masthead/_webhooks.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export async function loadMastheadWebhooks(items) {
99
id: webhook.id,
1010
icon: webhook.config.icon,
1111
url: webhook.config.url,
12-
tooltip: localize(webhook.config.tooltip),
12+
tooltip: webhook.config.tooltip,
1313
/*jslint evil: true */
1414
onclick: webhook.config.function && new Function(webhook.config.function),
1515
target: "_parent",

client/src/components/Panels/Buttons/FavoritesButton.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ import { FontAwesomeIcon } from "@fortawesome/vue-fontawesome";
55
import { watchImmediate } from "@vueuse/core";
66
import { storeToRefs } from "pinia";
77
import { computed, ref, watch } from "vue";
8-
import localize from "@/utils/localization";
98
109
import { useUserStore } from "@/stores/userStore";
10+
import localize from "@/utils/localization";
1111
1212
import GButton from "@/components/BaseComponents/GButton.vue";
1313

client/src/components/Tags/StatelessTags.vue

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@ import VueTagsInput from "@johmun/vue-tags-input";
3737
3838
import { createTag, VALID_TAG_RE } from "./model";
3939
40-
import localize from "@/utils/localization";
41-
4240
export default {
4341
components: {
4442
VueTagsInput,

client/src/components/Tool/ToolCard.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ onBeforeMount(() => {
249249
<template v-slot:footer>
250250
<slot name="buttons" />
251251
<div v-if="props.options.help" class="mt-2 mb-4">
252-
<Heading h2 separator bold size="sm" v-localize>Help</Heading>
252+
<Heading v-localize h2 separator bold size="sm">Help</Heading>
253253
<ToolHelp :content="props.options.help" :format="props.options.help_format" />
254254
</div>
255255

client/src/components/Tool/ToolForm.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
@updatePreferredObjectStoreId="onUpdatePreferredObjectStoreId"
4343
@onChangeVersion="onChangeVersion">
4444
<div class="mt-2 mb-4">
45-
<Heading h2 separator bold size="sm" v-localize> Tool Parameters </Heading>
45+
<Heading v-localize h2 separator bold size="sm"> Tool Parameters </Heading>
4646
<FormDisplay
4747
:id="toolId"
4848
:inputs="formConfig.inputs"
@@ -55,7 +55,7 @@
5555
</div>
5656

5757
<div class="mt-2 mb-4">
58-
<Heading h2 separator bold size="sm" v-localize> Additional Options </Heading>
58+
<Heading v-localize h2 separator bold size="sm"> Additional Options </Heading>
5959
<FormElement
6060
v-if="emailAllowed(config, currentUser)"
6161
id="send_email_notification"

client/src/components/Tool/ToolFormTags.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ const emit = defineEmits<{
1414
<div class="ui-form-element section-row">
1515
<div class="ui-form-title">
1616
<span class="ui-form-title-text">
17-
<label for="tool-form-tags" v-localize>Output Tags</label>
17+
<label v-localize for="tool-form-tags">Output Tags</label>
1818
</span>
1919
</div>
2020
<div id="tool-form-tags" class="ui-form-field">
2121
<StatelessTags :value="props.tags" placeholder="Add tags" @input="emit('update:tags', $event)" />
2222
</div>
23-
<span class="ui-form-info form-text text-muted" v-localize>
23+
<span v-localize class="ui-form-info form-text text-muted">
2424
Enter tags to apply to the output datasets in your history (e.g., 'sample1'). Tags starting with '#' (e.g.,
2525
'#sample1') will propagate to datasets derived from these outputs. Tags help you organize and search your
2626
history.

client/src/components/Tool/ToolTutorialRecommendations.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ const tutorialText = computed(() => {
4545

4646
<template>
4747
<div v-if="trainingAvailable" class="mt-2 mb-4">
48-
<Heading h2 separator bold size="sm" v-localize>Tutorials</Heading>
48+
<Heading v-localize h2 separator bold size="sm">Tutorials</Heading>
4949

5050
<p>
5151
{{ tutorialText }}

0 commit comments

Comments
 (0)