Skip to content

Commit

Permalink
webapp: Fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
tbnobody committed Jan 21, 2024
1 parent 3f135e8 commit d99de94
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 26 deletions.
File renamed without changes.
8 changes: 4 additions & 4 deletions webapp/src/views/ConfigAdminView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -88,21 +88,21 @@
</CardElement>
</BasePage>

<Modal modalId="factoryReset" small :title="$t('configadmin.FactoryReset')" :closeText="$t('configadmin.Cancel')">
<ModalDialog modalId="factoryReset" small :title="$t('configadmin.FactoryReset')" :closeText="$t('configadmin.Cancel')">
{{ $t('configadmin.ResetMsg') }}
<template #footer>
<button type="button" class="btn btn-danger" @click="onFactoryResetPerform">
{{ $t('configadmin.ResetConfirm') }}
</button>
</template>
</Modal>
</ModalDialog>
</template>

<script lang="ts">
import BasePage from '@/components/BasePage.vue';
import BootstrapAlert from "@/components/BootstrapAlert.vue";
import CardElement from '@/components/CardElement.vue';
import Modal from '@/components/Modal.vue';
import ModalDialog from '@/components/ModalDialog.vue';
import type { ConfigFileList } from '@/types/Config';
import { authHeader, handleResponse } from '@/utils/authentication';
import * as bootstrap from 'bootstrap';
Expand All @@ -118,7 +118,7 @@ export default defineComponent({
BasePage,
BootstrapAlert,
CardElement,
Modal,
ModalDialog,
BIconArrowLeft,
BIconCheckCircle,
BIconExclamationCircleFill,
Expand Down
24 changes: 12 additions & 12 deletions webapp/src/views/HomeView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -124,19 +124,19 @@
</div>
</BasePage>
<Modal modalId="eventView" :title="$t('home.EventLog')" :loading="eventLogLoading">
<ModalDialog modalId="eventView" :title="$t('home.EventLog')" :loading="eventLogLoading">
<EventLog :eventLogList="eventLogList" />
</Modal>
</ModalDialog>
<Modal modalId="devInfoView" :title="$t('home.InverterInfo')" :loading="devInfoLoading">
<ModalDialog modalId="devInfoView" :title="$t('home.InverterInfo')" :loading="devInfoLoading">
<DevInfo :devInfoList="devInfoList" />
</Modal>
</ModalDialog>
<Modal modalId="gridProfileView" :title="$t('home.GridProfile')" :loading="gridProfileLoading">
<ModalDialog modalId="gridProfileView" :title="$t('home.GridProfile')" :loading="gridProfileLoading">
<GridProfile :gridProfileList="gridProfileList" :gridProfileRawList="gridProfileRawList" />
</Modal>
</ModalDialog>
<Modal modalId="limitSettingView" :title="$t('home.LimitSettings')" :loading="limitSettingLoading">
<ModalDialog modalId="limitSettingView" :title="$t('home.LimitSettings')" :loading="limitSettingLoading">
<BootstrapAlert v-model="showAlertLimit" :variant="alertTypeLimit">
{{ alertMessageLimit }}
</BootstrapAlert>
Expand Down Expand Up @@ -206,9 +206,9 @@
<button type="button" class="btn btn-danger" @click="onSetLimitSettings(false)">{{
$t('home.SetNonPersistent') }}</button>
</template>
</Modal>
</ModalDialog>
<Modal modalId="powerSettingView" :title="$t('home.PowerSettings')" :loading="powerSettingLoading">
<ModalDialog modalId="powerSettingView" :title="$t('home.PowerSettings')" :loading="powerSettingLoading">
<BootstrapAlert v-model="showAlertPower" :variant="alertTypePower">
{{ alertMessagePower }}
</BootstrapAlert>
Expand Down Expand Up @@ -239,7 +239,7 @@
<BIconArrowCounterclockwise class="fs-4" />&nbsp;{{ $t('home.Restart') }}
</button>
</div>
</Modal>
</ModalDialog>
</template>
<script lang="ts">
Expand All @@ -251,7 +251,7 @@ import GridProfile from '@/components/GridProfile.vue';
import HintView from '@/components/HintView.vue';
import InverterChannelInfo from "@/components/InverterChannelInfo.vue";
import InverterTotalInfo from '@/components/InverterTotalInfo.vue';
import Modal from '@/components/Modal.vue';
import ModalDialog from '@/components/ModalDialog.vue';
import type { DevInfoStatus } from '@/types/DevInfoStatus';
import type { EventlogItems } from '@/types/EventlogStatus';
import type { GridProfileStatus } from '@/types/GridProfileStatus';
Expand Down Expand Up @@ -286,7 +286,7 @@ export default defineComponent({
HintView,
InverterChannelInfo,
InverterTotalInfo,
Modal,
ModalDialog,
BIconArrowCounterclockwise,
BIconCheckCircleFill,
BIconCpu,
Expand Down
12 changes: 6 additions & 6 deletions webapp/src/views/InverterAdminView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
</CardElement>
</BasePage>

<Modal modalId="inverterEdit" :title="$t('inverteradmin.EditInverter')" :closeText="$t('inverteradmin.Cancel')">
<ModalDialog modalId="inverterEdit" :title="$t('inverteradmin.EditInverter')" :closeText="$t('inverteradmin.Cancel')">
<nav>
<div class="nav nav-tabs" id="nav-tab" role="tablist">
<button class="nav-link active" id="nav-general-tab" data-bs-toggle="tab" data-bs-target="#nav-general"
Expand Down Expand Up @@ -186,9 +186,9 @@
<button type="button" class="btn btn-primary" @click="onEditSubmit">
{{ $t('inverteradmin.Save') }}</button>
</template>
</Modal>
</ModalDialog>

<Modal modalId="inverterDelete" small :title="$t('inverteradmin.DeleteInverter')"
<ModalDialog modalId="inverterDelete" small :title="$t('inverteradmin.DeleteInverter')"
:closeText="$t('inverteradmin.Cancel')">
{{ $t('inverteradmin.DeleteMsg', {
name: selectedInverterData.name,
Expand All @@ -199,15 +199,15 @@
<button type="button" class="btn btn-danger" @click="onDelete">
{{ $t('inverteradmin.Delete') }}</button>
</template>
</Modal>
</ModalDialog>
</template>

<script lang="ts">
import BasePage from '@/components/BasePage.vue';
import BootstrapAlert from "@/components/BootstrapAlert.vue";
import CardElement from '@/components/CardElement.vue';
import InputElement from '@/components/InputElement.vue';
import Modal from '@/components/Modal.vue';
import ModalDialog from '@/components/ModalDialog.vue';
import type { Inverter } from '@/types/InverterConfig';
import { authHeader, handleResponse } from '@/utils/authentication';
import * as bootstrap from 'bootstrap';
Expand Down Expand Up @@ -235,7 +235,7 @@ export default defineComponent({
BootstrapAlert,
CardElement,
InputElement,
Modal,
ModalDialog,
BIconInfoCircle,
BIconPencil,
BIconTrash,
Expand Down
8 changes: 4 additions & 4 deletions webapp/src/views/MaintenanceRebootView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,20 @@
</CardElement>
</BasePage>

<Modal modalId="performReboot" small :title="$t('maintenancereboot.RebootOpenDTU')" :closeText="$t('maintenancereboot.Cancel')">
<ModalDialog modalId="performReboot" small :title="$t('maintenancereboot.RebootOpenDTU')" :closeText="$t('maintenancereboot.Cancel')">
{{ $t('maintenancereboot.RebootQuestion') }}
<template #footer>
<button type="button" class="btn btn-danger" @click="onReboot">
{{ $t('maintenancereboot.Reboot') }}</button>
</template>
</Modal>
</ModalDialog>
</template>

<script lang="ts">
import BasePage from '@/components/BasePage.vue';
import BootstrapAlert from "@/components/BootstrapAlert.vue";
import CardElement from '@/components/CardElement.vue';
import Modal from '@/components/Modal.vue';
import ModalDialog from '@/components/ModalDialog.vue';
import { authHeader, handleResponse, isLoggedIn } from '@/utils/authentication';
import * as bootstrap from 'bootstrap';
import { defineComponent } from 'vue';
Expand All @@ -35,7 +35,7 @@ export default defineComponent({
BasePage,
BootstrapAlert,
CardElement,
Modal,
ModalDialog,
},
data() {
return {
Expand Down

0 comments on commit d99de94

Please sign in to comment.