remove useless code

This commit is contained in:
isUnknown 2025-01-09 09:52:07 +01:00
parent 48e2903877
commit f30a6536d0

View file

@ -17,7 +17,7 @@
import dayjs from "dayjs";
import "dayjs/locale/fr";
import { usePageStore } from "../../stores/page";
import { computed, onMounted, useTemplateRef } from "vue";
import { onMounted, useTemplateRef } from "vue";
import { useProjectStore } from "../../stores/project";
import ClientBrief from "./cards/ClientBrief.vue";
import MultipleDocuments from "./cards/MultipleDocuments.vue";
@ -44,19 +44,6 @@ const { page } = usePageStore();
const { setStatus } = useProjectStore();
const cardsNode = useTemplateRef("cards-node");
const steps = page.steps.map((item) => {
return item.value;
});
const mergedFiles = computed(() => {
if (step.id !== "virtualSample") return false;
const staticFiles = step.files?.static ?? [];
const dynamicFiles = step.files?.dynamic ?? [];
return [...staticFiles, ...dynamicFiles];
});
// Hooks
onMounted(() => {
if (step.id === page.content.currentstep) {
@ -66,19 +53,6 @@ onMounted(() => {
});
}
});
// Functions
function getFrontView(track) {
if (track.files.length === 1) return track.files[0];
const xMax = parseInt(
track.files[track.files.length - 1].name.split("_")[1].split(".")[0]
);
const xFrontView = (xMax + 1) / 2;
const extension = track.files[0].name.split(".")[1];
const frontViewName = "0_" + xFrontView + "." + extension;
const frontView = track.files.find((file) => file.name === frontViewName);
return frontView;
}
</script>
<style scoped>