remove useless code
This commit is contained in:
parent
48e2903877
commit
f30a6536d0
1 changed files with 1 additions and 27 deletions
|
|
@ -17,7 +17,7 @@
|
||||||
import dayjs from "dayjs";
|
import dayjs from "dayjs";
|
||||||
import "dayjs/locale/fr";
|
import "dayjs/locale/fr";
|
||||||
import { usePageStore } from "../../stores/page";
|
import { usePageStore } from "../../stores/page";
|
||||||
import { computed, onMounted, useTemplateRef } from "vue";
|
import { onMounted, useTemplateRef } from "vue";
|
||||||
import { useProjectStore } from "../../stores/project";
|
import { useProjectStore } from "../../stores/project";
|
||||||
import ClientBrief from "./cards/ClientBrief.vue";
|
import ClientBrief from "./cards/ClientBrief.vue";
|
||||||
import MultipleDocuments from "./cards/MultipleDocuments.vue";
|
import MultipleDocuments from "./cards/MultipleDocuments.vue";
|
||||||
|
|
@ -44,19 +44,6 @@ const { page } = usePageStore();
|
||||||
const { setStatus } = useProjectStore();
|
const { setStatus } = useProjectStore();
|
||||||
const cardsNode = useTemplateRef("cards-node");
|
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
|
// Hooks
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
if (step.id === page.content.currentstep) {
|
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>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue