chore: Typescript: Rewrite Tariff (#21613)

Co-authored-by: Michael Geers <michael@geers.tv>
This commit is contained in:
Maschga 2025-06-06 12:36:41 +02:00 • committed by GitHub
parent a4aa09932c
commit b6c1fa70db
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 6 deletions

View file

@ -88,10 +88,10 @@ import TariffChart from "./TariffChart.vue";
import { CO2_TYPE } from "@/units";
import api, { allowClientError } from "@/api";
import convertRates from "@/utils/convertRates";
import type { PropType } from "vue";
import { defineComponent, type PropType } from "vue";
import type { Tariff, CURRENCY, Rate, SelectOption, Slot } from "@/types/evcc";
export default {
export default defineComponent({
name: "SmartCostLimit",
components: { TariffChart },
mixins: [formatter],
@ -358,7 +358,7 @@ export default {
}
},
},
};
});
</script>
<style scoped>

View file

@ -53,7 +53,7 @@
</template>
<script lang="ts">
import type { PropType } from "vue";
import { defineComponent, type PropType } from "vue";
import "@h2d2/shopicons/es/regular/arrowright";
import { is12hFormat } from "@/units";
import PlanEndIcon from "../MaterialIcon/PlanEnd.vue";
@ -62,7 +62,7 @@ import type { Slot } from "@/types/evcc";
const BAR_WIDTH = 20;
export default {
export default defineComponent({
name: "TariffChart",
components: {
PlanEndIcon,
@ -169,7 +169,7 @@ export default {
return is12hFormat() ? hour % 12 : hour;
},
},
};
});
</script>
<style scoped>