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> <style>
.logo { .logo {
height: 70px; height: 70px;
@ -69,40 +109,3 @@
} }
} }
</style> </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: { props: {
usageDown: { usageDown: {
type: Number, type: Number,
default: 0,
}, },
usageUp: { usageUp: {
type: Number, type: Number,
default: 0,
}, },
}, },
}; };

View File

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

View File

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

View File

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