Lint fixes

Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
This commit is contained in:
Francesco Torchia
2024-11-12 11:50:20 +01:00
parent 19b11aac2c
commit 4626d56acd
214 changed files with 3162 additions and 1298 deletions
@@ -79,7 +79,7 @@ export default {
osImageOptions() {
return this.$store.getters['harvester/all'](HCI.IMAGE)
.filter(I => I.isOSImage)
.filter((I) => I.isOSImage)
.map((I) => {
return {
label: I.spec.displayName,
@@ -213,7 +213,10 @@ export default {
</script>
<template>
<div v-if="value" id="air-gap">
<div
v-if="value"
id="air-gap"
>
<h3 class="mb-20">
{{ t('harvester.upgradePage.osUpgrade') }}
</h3>
@@ -245,9 +248,18 @@ export default {
<UpgradeInfo />
<div v-if="uploadImage">
<LabeledInput v-model.trim="imageValue.spec.displayName" class="mb-20" label-key="harvester.fields.name" required />
<LabeledInput
v-model.trim="imageValue.spec.displayName"
class="mb-20"
label-key="harvester.fields.name"
required
/>
<LabeledInput v-model:value="imageValue.spec.checksum" class="mb-10" label-key="harvester.setting.upgrade.checksum" />
<LabeledInput
v-model:value="imageValue.spec.checksum"
class="mb-10"
label-key="harvester.setting.upgrade.checksum"
/>
<Checkbox
v-if="canEnableLogging"
@@ -279,7 +291,10 @@ export default {
label-key="harvester.image.url"
/>
<div v-else class="chooseFile">
<div
v-else
class="chooseFile"
>
<button
type="button"
class="btn role-primary"
@@ -296,7 +311,10 @@ export default {
/>
</button>
<span :class="{ 'text-muted': !fileName }" class="ml-20">
<span
:class="{ 'text-muted': !fileName }"
class="ml-20"
>
{{ fileName ? fileName : t('harvester.generic.noFileChosen') }}
</span>
</div>
@@ -329,7 +329,10 @@ export default {
</span>
</div>
</div>
<template v-for="(err, i) in errors" :key="i" >
<template
v-for="(err, i) in errors"
:key="i"
>
<Banner
color="error"
:label="err"
@@ -3,9 +3,9 @@ import Members from '@pkg/components/Members';
import { MANAGEMENT } from '@shell/config/types';
import { PRODUCT_NAME as HARVESTER_PRODUCT } from '../../../../config/harvester';
export default {
components: { Members },
components: { Members },
inheritAttrs: false,
computed: {
computed: {
createLocationOverride() {
return {
name: `${ HARVESTER_PRODUCT }-c-cluster-resource-create`,
@@ -20,4 +20,9 @@ export default {
};
</script>
<template><Members :create-location-override="createLocationOverride" v-bind="$attrs" /></template>
<template>
<Members
:create-location-override="createLocationOverride"
v-bind="$attrs"
/>
</template>
@@ -95,7 +95,10 @@ export default {
<IndentedPanel>
<div class="content mt-20">
<div class="promo">
<div v-if="showSupportBundle" class="box mb-20 box-primary">
<div
v-if="showSupportBundle"
class="box mb-20 box-primary"
>
<h2>
{{ t('harvester.modal.bundle.title') }}
</h2>
@@ -112,7 +115,10 @@ export default {
</button>
</div>
</div>
<div class="box box-primary" :class="{'mb-20': dev }">
<div
class="box box-primary"
:class="{'mb-20': dev }"
>
<h2>
{{ t('harvester.support.kubeconfig.title') }}
</h2>
@@ -129,24 +135,42 @@ export default {
</button>
</div>
</div>
<div v-if="dev" class="row">
<div
v-if="dev"
class="row"
>
<div class="col span-6 box box-primary">
<h2>
<a rel="nofollow noopener noreferrer" target="_blank" :href="rancherLink">{{ t('harvester.support.internal.rancher.title') }} <i class="icon icon-external-link" /></a>
<a
rel="nofollow noopener noreferrer"
target="_blank"
:href="rancherLink"
>{{ t('harvester.support.internal.rancher.title') }} <i class="icon icon-external-link" /></a>
</h2>
<div>
<p class="warning">
<t k="harvester.support.internal.rancher.titleDescription" :raw="true" :url="rancherIntegrationLink" />
<t
k="harvester.support.internal.rancher.titleDescription"
:raw="true"
:url="rancherIntegrationLink"
/>
</p>
</div>
</div>
<div class="col span-6 box box-primary">
<h2>
<a rel="nofollow noopener noreferrer" target="_blank" :href="longhornLink">{{ t('harvester.support.internal.longhorn.title') }} <i class="icon icon-external-link" /></a>
<a
rel="nofollow noopener noreferrer"
target="_blank"
:href="longhornLink"
>{{ t('harvester.support.internal.longhorn.title') }} <i class="icon icon-external-link" /></a>
</h2>
<div>
<p class="warning">
<t k="harvester.support.internal.longhorn.titleDescription" :raw="true" />
<t
k="harvester.support.internal.longhorn.titleDescription"
:raw="true"
/>
</p>
</div>
</div>
@@ -156,9 +180,17 @@ export default {
<CommunityLinks :link-options="options" />
</div>
<div class="external">
<a href="https://www.suse.com/suse-harvester/support-matrix/all-supported-versions" target="_blank" rel="noopener noreferrer nofollow">{{ t('harvester.support.community.learnMore') }} <i class="icon icon-external-link" /></a>
<a
href="https://www.suse.com/suse-harvester/support-matrix/all-supported-versions"
target="_blank"
rel="noopener noreferrer nofollow"
>{{ t('harvester.support.community.learnMore') }} <i class="icon icon-external-link" /></a>
or
<a href="https://www.suse.com/products/harvester/" target="_blank" rel="noopener noreferrer nofollow">{{ t('harvester.support.community.pricing') }} <i class="icon icon-external-link" /></a>
<a
href="https://www.suse.com/products/harvester/"
target="_blank"
rel="noopener noreferrer nofollow"
>{{ t('harvester.support.community.pricing') }} <i class="icon icon-external-link" /></a>
</div>
</div>
</IndentedPanel>