diff --git a/package-lock.json b/package-lock.json index 5a8fa8f..348024a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,6 +10,7 @@ "dependencies": { "@vue/compiler-sfc": "^3.5.6", "dayjs": "^1.11.13", + "lodash": "^4.17.21", "pinia": "^2.1.7", "primevue": "^4.0.6", "slugify": "^1.6.6", @@ -889,6 +890,11 @@ "node": "^8.16.0 || ^10.6.0 || >=11.0.0" } }, + "node_modules/lodash": { + "version": "4.17.21", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", + "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==" + }, "node_modules/magic-string": { "version": "0.30.11", "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.11.tgz", diff --git a/package.json b/package.json index ba3b57a..8eda2bb 100644 --- a/package.json +++ b/package.json @@ -11,6 +11,7 @@ "dependencies": { "@vue/compiler-sfc": "^3.5.6", "dayjs": "^1.11.13", + "lodash": "^4.17.21", "pinia": "^2.1.7", "primevue": "^4.0.6", "slugify": "^1.6.6", diff --git a/public/content/projects/1_miss-dior-blooming-bouquet/1_client-brief/client-brief.txt b/public/content/projects/1_miss-dior-blooming-bouquet/1_client-brief/client-brief.txt index 59de63f..d11331d 100644 --- a/public/content/projects/1_miss-dior-blooming-bouquet/1_client-brief/client-brief.txt +++ b/public/content/projects/1_miss-dior-blooming-bouquet/1_client-brief/client-brief.txt @@ -10,7 +10,7 @@ Clientbriefpdf: ---- -Description: +Description: Bon voilà ça marche ---- diff --git a/src/components/project/ClientBrief/Header.vue b/src/components/project/ClientBrief/Header.vue new file mode 100644 index 0000000..80d48ac --- /dev/null +++ b/src/components/project/ClientBrief/Header.vue @@ -0,0 +1,105 @@ + + + + Description du projet + + + + Filtrer par tags + + + Voir tout + + + + {{ + toPascalCase(tag) + }} + + + + + + + diff --git a/src/components/project/ClientBrief/Images.vue b/src/components/project/ClientBrief/Images.vue index 8180dd9..6f83b43 100644 --- a/src/components/project/ClientBrief/Images.vue +++ b/src/components/project/ClientBrief/Images.vue @@ -1,51 +1,6 @@ - - - Description du projet - - - - Filtrer par tags - - - Voir tout - - - - {{ - toPascalCase(tag) - }} - - - - + { const images = ref(page.images); -const isWaitingForSave = ref(false); -function savePage() { - if (!isWaitingForSave.value) { - isWaitingForSave.value = true; - setTimeout(() => { - const headers = { - method: "POST", - body: JSON.stringify({ - pageUri: page.uri, - properties: [ - { - name: "description", - value: page.content.description, - }, - ], - }), - }; - fetch("/save-page.json", headers) - .then((res) => res.json()) - .then((json) => { - isWaitingForSave.value = false; - console.log(json); - }); - }, 3000); - } -} - function onAdvancedUpload(event) { if (event.xhr.status === 200) { toast.add({