diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index f5dc4598c..37d36e1a4 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -58,7 +58,7 @@ jobs: - name: Prepare OpenAPI spec run: | mkdir -p ./openapi-deploy - npx --yes @redocly/cli@2 bundle ./server/openapi.yaml -o ./openapi-deploy/openapi.yaml + cp ./server/openapi.yaml ./openapi-deploy/openapi.yaml - name: Deploy OpenAPI spec to docs repo uses: peaceiris/actions-gh-pages@84c30a85c19949d7eee79c4ff27748b70285e453 # v4 diff --git a/.github/workflows/openapi-validate.yml b/.github/workflows/openapi-validate.yml index 3a6176d76..6e0999ad6 100644 --- a/.github/workflows/openapi-validate.yml +++ b/.github/workflows/openapi-validate.yml @@ -8,7 +8,6 @@ on: pull_request: paths: - "server/openapi.yaml" - - "server/openapi.state.yaml" - ".github/workflows/openapi-validate.yml" jobs: @@ -23,4 +22,4 @@ jobs: with: go-version: stable - name: Validate OpenAPI spec - run: go run github.com/getkin/kin-openapi/cmd/validate@v0.133.0 -ext -- server/openapi.yaml + run: go run github.com/getkin/kin-openapi/cmd/validate@v0.133.0 -- server/openapi.yaml diff --git a/.gitignore b/.gitignore index dd0405372..48573ca2a 100644 --- a/.gitignore +++ b/.gitignore @@ -18,7 +18,6 @@ testdata/**/* !assets/js/**/*.yaml !package*.json !evcc.dist.yaml -!server/openapi.state.yaml !.coderabbit.yaml !tests/**/*.evcc.yaml !tests/**/*.tpl.yaml diff --git a/assets/js/components/ChargingPlans/ChargingPlan.vue b/assets/js/components/ChargingPlans/ChargingPlan.vue index 96eeda0bc..ab3edd481 100644 --- a/assets/js/components/ChargingPlans/ChargingPlan.vue +++ b/assets/js/components/ChargingPlans/ChargingPlan.vue @@ -38,7 +38,9 @@ import formatter from "@/mixins/formatter"; import minuteTicker from "@/mixins/minuteTicker"; import { optionStep, fmtEnergy } from "@/utils/energyOptions.ts"; import { defineComponent, type PropType } from "vue"; -import type { CURRENCY, Forecast, PlanStrategy, Vehicle } from "@/types/evcc"; +import type { CURRENCY, Vehicle } from "@/types/evcc"; +import type { PlanStrategy } from "./types"; +import type { Forecast } from "@/types/evcc.ts"; export default defineComponent({ name: "ChargingPlan", diff --git a/assets/js/components/ChargingPlans/ChargingPlanModal.vue b/assets/js/components/ChargingPlans/ChargingPlanModal.vue index 9a4784ebe..bc019dd27 100644 --- a/assets/js/components/ChargingPlans/ChargingPlanModal.vue +++ b/assets/js/components/ChargingPlans/ChargingPlanModal.vue @@ -47,17 +47,13 @@ import GenericModal from "../Helper/GenericModal.vue"; import PlansSettings from "./PlansSettings.vue"; import api from "@/api"; import type { - CURRENCY, - Forecast, PlanStrategy, RepeatingPlan, - SMART_COST_TYPE, StaticEnergyPlan, StaticPlan, StaticSocPlan, - UiLoadpoint, - Vehicle, -} from "@/types/evcc"; +} from "./types"; +import type { CURRENCY, Forecast, SMART_COST_TYPE, UiLoadpoint, Vehicle } from "@/types/evcc"; export default defineComponent({ name: "ChargingPlanModal", diff --git a/assets/js/components/ChargingPlans/PlanStrategy.vue b/assets/js/components/ChargingPlans/PlanStrategy.vue index 0e63f3f83..a8014a76b 100644 --- a/assets/js/components/ChargingPlans/PlanStrategy.vue +++ b/assets/js/components/ChargingPlans/PlanStrategy.vue @@ -64,7 +64,7 @@