Merge pull request #2728 from chmelevskij/chore/fix-vue-lint-warnings

chore: fix vue lint warnings
10.8-maintenance
Ivan Efimov 2022-01-03 23:31:25 -06:00 committed by GitHub
commit e43025cffe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 61 additions and 37 deletions

View File

@ -1,3 +1,43 @@
<template>
<div class="logo">
<div class="logo_text">
<span>
{{ $t("versionLabelConfigurator") }}: {{ configuratorVersion }}
</span>
<span v-if="firmwareVersion && firmwareId">
{{ $t("versionLabelFirmware") }}: {{ firmwareVersion }}
{{ firmwareId }}
</span>
<span v-if="hardwareId">
{{ $t("versionLabelTarget") }}: {{ hardwareId }}
</span>
</div>
</div>
</template>
<script>
export default {
props: {
configuratorVersion: {
type: String,
required: true,
},
firmwareVersion: {
type: String,
default: '',
},
firmwareId: {
type: String,
default: '',
},
hardwareId: {
type: String,
default: '',
},
},
};
</script>
<style>
.logo {
height: 70px;
@ -69,40 +109,3 @@
}
}
</style>
<template>
<div class="logo">
<div class="logo_text">
<span>
{{ $t("versionLabelConfigurator") }}: {{ configuratorVersion }}
</span>
<span v-if="firmwareVersion && firmwareId">
{{ $t("versionLabelFirmware") }}: {{ firmwareVersion }}
{{ firmwareId }}
</span>
<span v-if="hardwareId">
{{ $t("versionLabelTarget") }}: {{ hardwareId }}
</span>
</div>
</div>
</template>
<script>
export default {
props: {
configuratorVersion: {
type: String,
required: true,
},
firmwareVersion: {
type: String,
},
firmwareId: {
type: String,
},
hardwareId: {
type: String,
},
},
};
</script>

View File

@ -24,9 +24,11 @@ export default {
props: {
usageDown: {
type: Number,
default: 0,
},
usageUp: {
type: Number,
default: 0,
},
},
};

View File

@ -5,17 +5,21 @@
<span v-if="unit">{{ unit }}</span>
</span>
</template>
<script>
export default {
props: {
message: {
type: String,
default: "",
},
value: {
type: Number,
default: 0,
},
unit: {
type: String,
default: "",
},
},
};

View File

@ -29,6 +29,7 @@
/>
</div>
</template>
<script>
import StatusBarVersion from "./StatusBarVersion.vue";
import ReadingStat from "./ReadingStat.vue";
@ -43,34 +44,44 @@ export default {
props: {
portUsageDown: {
type: Number,
default: 0,
},
portUsageUp: {
type: Number,
default: 0,
},
packetError: {
type: Number,
default: 0,
},
i2cError: {
type: Number,
default: 0,
},
cycleTime: {
type: Number,
default: 0,
},
cpuLoad: {
type: Number,
default: 0,
},
configuratorVersion: {
type: String,
default: '',
},
firmwareVersion: {
type: String,
default: '',
},
firmwareId: {
type: String,
default: '',
},
hardwareId: {
type: String,
default: '',
},
},
};

View File

@ -16,15 +16,19 @@ export default {
props: {
configuratorVersion: {
type: String,
default: '',
},
firmwareVersion: {
type: String,
default: '',
},
firmwareId: {
type: String,
default: '',
},
hardwareId: {
type: String,
default: '',
},
},
};