fixed linting issues, pushing to github for test run
This commit is contained in:
parent
1d29781804
commit
72289cda1a
@ -101,6 +101,7 @@
|
|||||||
|
|
||||||
<CardElement
|
<CardElement
|
||||||
v-for="(http_phase, index) in powerMeterConfigList.http_phases"
|
v-for="(http_phase, index) in powerMeterConfigList.http_phases"
|
||||||
|
:key="http_phase.index"
|
||||||
:text="$t('powermeteradmin.httpPhase', { phaseNumber: http_phase.index })"
|
:text="$t('powermeteradmin.httpPhase', { phaseNumber: http_phase.index })"
|
||||||
textVariant="text-bg-primary"
|
textVariant="text-bg-primary"
|
||||||
add-space>
|
add-space>
|
||||||
@ -188,7 +189,7 @@ import BootstrapAlert from "@/components/BootstrapAlert.vue";
|
|||||||
import CardElement from '@/components/CardElement.vue';
|
import CardElement from '@/components/CardElement.vue';
|
||||||
import InputElement from '@/components/InputElement.vue';
|
import InputElement from '@/components/InputElement.vue';
|
||||||
import { handleResponse, authHeader } from '@/utils/authentication';
|
import { handleResponse, authHeader } from '@/utils/authentication';
|
||||||
import { BIconInfoCircle } from 'bootstrap-icons-vue';
|
// import { BIconInfoCircle } from 'bootstrap-icons-vue';
|
||||||
import type { PowerMeterHttpPhaseConfig, PowerMeterConfig } from "@/types/PowerMeterConfig";
|
import type { PowerMeterHttpPhaseConfig, PowerMeterConfig } from "@/types/PowerMeterConfig";
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
@ -197,20 +198,9 @@ export default defineComponent({
|
|||||||
BootstrapAlert,
|
BootstrapAlert,
|
||||||
CardElement,
|
CardElement,
|
||||||
InputElement,
|
InputElement,
|
||||||
BIconInfoCircle,
|
// BIconInfoCircle,
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
const people: { name: string; age: number; }[] = [
|
|
||||||
{
|
|
||||||
age: 27,
|
|
||||||
name: 'Tim'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
age: 28,
|
|
||||||
name: 'Bob'
|
|
||||||
}
|
|
||||||
];
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
dataLoading: true,
|
dataLoading: true,
|
||||||
powerMeterConfigList: {} as PowerMeterConfig,
|
powerMeterConfigList: {} as PowerMeterConfig,
|
||||||
@ -224,7 +214,7 @@ export default defineComponent({
|
|||||||
alertMessage: "",
|
alertMessage: "",
|
||||||
alertType: "info",
|
alertType: "info",
|
||||||
showAlert: false,
|
showAlert: false,
|
||||||
testHttpRequestAlert: <{ message: string; type: string; show: boolean; }[]> [ ],
|
testHttpRequestAlert: [{message: "", type: "", show: false}] as { message: string; type: string; show: boolean; }[]
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
@ -239,14 +229,14 @@ export default defineComponent({
|
|||||||
this.powerMeterConfigList = data;
|
this.powerMeterConfigList = data;
|
||||||
this.dataLoading = false;
|
this.dataLoading = false;
|
||||||
|
|
||||||
type MyType = {
|
// type MyType = {
|
||||||
id: number;
|
// id: number;
|
||||||
name: string;
|
// name: string;
|
||||||
}
|
// }
|
||||||
|
|
||||||
type MyGroupType = {
|
// type MyGroupType = {
|
||||||
[key:string]: MyType;
|
// [key:string]: MyType;
|
||||||
}
|
// }
|
||||||
|
|
||||||
for (var i = 0; i < this.powerMeterConfigList.http_phases.length; i++) {
|
for (var i = 0; i < this.powerMeterConfigList.http_phases.length; i++) {
|
||||||
this.testHttpRequestAlert.push({
|
this.testHttpRequestAlert.push({
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user