diff --git a/public/content/inspirations/1_shape-of-the-nature/0c41d3266e9ce2872f30608cceb28239.png.txt b/public/content/inspirations/1_shape-of-the-nature/0c41d3266e9ce2872f30608cceb28239.png.txt index 5be5e2c..b9cb550 100644 --- a/public/content/inspirations/1_shape-of-the-nature/0c41d3266e9ce2872f30608cceb28239.png.txt +++ b/public/content/inspirations/1_shape-of-the-nature/0c41d3266e9ce2872f30608cceb28239.png.txt @@ -1 +1,9 @@ -Uuid: 8gktgKHbmGy6d0D0 \ No newline at end of file +Description: + +---- + +Uuid: jcUwhcMYZhq0Z2FH + +---- + +Template: inspiration \ No newline at end of file diff --git a/public/content/inspirations/1_shape-of-the-nature/20878a95a67b25e122365f351f1ec1a7.jpg.txt b/public/content/inspirations/1_shape-of-the-nature/20878a95a67b25e122365f351f1ec1a7.jpg.txt index 38f2dc0..b1e6444 100644 --- a/public/content/inspirations/1_shape-of-the-nature/20878a95a67b25e122365f351f1ec1a7.jpg.txt +++ b/public/content/inspirations/1_shape-of-the-nature/20878a95a67b25e122365f351f1ec1a7.jpg.txt @@ -1 +1,9 @@ -Uuid: 6NMXDIJhPFqVBDxh \ No newline at end of file +Description: + +---- + +Uuid: T5h8TnsACjexZYzU + +---- + +Template: inspiration \ No newline at end of file diff --git a/public/content/inspirations/1_shape-of-the-nature/22f8779f680ed826a2d0a1d2af6018c9.jpg.txt b/public/content/inspirations/1_shape-of-the-nature/22f8779f680ed826a2d0a1d2af6018c9.jpg.txt index ec8cfb6..e7c584c 100644 --- a/public/content/inspirations/1_shape-of-the-nature/22f8779f680ed826a2d0a1d2af6018c9.jpg.txt +++ b/public/content/inspirations/1_shape-of-the-nature/22f8779f680ed826a2d0a1d2af6018c9.jpg.txt @@ -1 +1,9 @@ -Uuid: hRTU56zeei1izwcn \ No newline at end of file +Description: + +---- + +Uuid: VxCP0xeDpH2Zr9hp + +---- + +Template: inspiration \ No newline at end of file diff --git a/public/content/inspirations/1_shape-of-the-nature/37a038883c87973036232aa0e43f6da2.png.txt b/public/content/inspirations/1_shape-of-the-nature/37a038883c87973036232aa0e43f6da2.png.txt index d77cb60..3f95fb8 100644 --- a/public/content/inspirations/1_shape-of-the-nature/37a038883c87973036232aa0e43f6da2.png.txt +++ b/public/content/inspirations/1_shape-of-the-nature/37a038883c87973036232aa0e43f6da2.png.txt @@ -1 +1,9 @@ -Uuid: uJNao2qaV2eOb3y6 \ No newline at end of file +Description: + +---- + +Uuid: Yvz6XN50gGoDSPCD + +---- + +Template: inspiration \ No newline at end of file diff --git a/public/content/inspirations/1_shape-of-the-nature/6b0228aa62a396728a25bb8991a49392.jpg.txt b/public/content/inspirations/1_shape-of-the-nature/6b0228aa62a396728a25bb8991a49392.jpg.txt index 0298a4f..0efc637 100644 --- a/public/content/inspirations/1_shape-of-the-nature/6b0228aa62a396728a25bb8991a49392.jpg.txt +++ b/public/content/inspirations/1_shape-of-the-nature/6b0228aa62a396728a25bb8991a49392.jpg.txt @@ -1 +1,9 @@ -Uuid: G3eSLBv8wAZFnAuA \ No newline at end of file +Description: + +---- + +Uuid: oCNBIYQ7JDKZwtVh + +---- + +Template: inspiration \ No newline at end of file diff --git a/public/content/inspirations/1_shape-of-the-nature/d82f18573c439d6edd434ffca62471a7.png.txt b/public/content/inspirations/1_shape-of-the-nature/d82f18573c439d6edd434ffca62471a7.png.txt index 1b5e0e7..b799303 100644 --- a/public/content/inspirations/1_shape-of-the-nature/d82f18573c439d6edd434ffca62471a7.png.txt +++ b/public/content/inspirations/1_shape-of-the-nature/d82f18573c439d6edd434ffca62471a7.png.txt @@ -1 +1,16 @@ -Uuid: qIw3y37lA4Ruc8ck \ No newline at end of file +Favoriteforclients: + +- page://G418qZ4ABsoWFx4i +- page://PweFYnBx27eMZ2mr + +---- + +Description: + +---- + +Uuid: 2I3StgO6GTqp6vxE + +---- + +Template: inspiration \ No newline at end of file diff --git a/public/content/inspirations/1_shape-of-the-nature/inspiration.txt b/public/content/inspirations/1_shape-of-the-nature/inspiration.txt index ff2eef4..14efe88 100644 --- a/public/content/inspirations/1_shape-of-the-nature/inspiration.txt +++ b/public/content/inspirations/1_shape-of-the-nature/inspiration.txt @@ -6,7 +6,7 @@ Cover: - file://VFplsUHCVGZxocwC ---- -Date: 2024-04-01 +Date: 2024-04-24 ---- @@ -20,12 +20,12 @@ Description: Lectus adipiscing nulla quis odio in aliquam. Adipiscing libero in Media: -- file://8gktgKHbmGy6d0D0 -- file://G3eSLBv8wAZFnAuA -- file://hRTU56zeei1izwcn -- file://uJNao2qaV2eOb3y6 -- file://6NMXDIJhPFqVBDxh -- file://qIw3y37lA4Ruc8ck +- file://2I3StgO6GTqp6vxE +- file://T5h8TnsACjexZYzU +- file://Yvz6XN50gGoDSPCD +- file://VxCP0xeDpH2Zr9hp +- file://oCNBIYQ7JDKZwtVh +- file://jcUwhcMYZhq0Z2FH ---- diff --git a/public/site/blueprints/files/inspiration.yml b/public/site/blueprints/files/inspiration.yml new file mode 100644 index 0000000..a22dcf1 --- /dev/null +++ b/public/site/blueprints/files/inspiration.yml @@ -0,0 +1,12 @@ +title: Inspiration + +accept: + mime: image/* + type: image + +fields: + favoriteForClients: + label: | + Dans les favoris des clients : + type: pages + query: page('clients').children diff --git a/public/site/blueprints/pages/inspiration.yml b/public/site/blueprints/pages/inspiration.yml index f186a5b..27e12b3 100644 --- a/public/site/blueprints/pages/inspiration.yml +++ b/public/site/blueprints/pages/inspiration.yml @@ -42,4 +42,5 @@ tabs: layout: cards size: large required: true + uploads: inspiration files: tabs/files diff --git a/public/site/blueprints/users/client.yml b/public/site/blueprints/users/client.yml index 3e9a838..6fce1a6 100644 --- a/public/site/blueprints/users/client.yml +++ b/public/site/blueprints/users/client.yml @@ -1,4 +1,10 @@ -title: Client +title: Clients permissions: access: panel: false + +fields: + client: + type: pages + max: 1 + query: page('clients').children diff --git a/public/site/templates/inspirations.json.php b/public/site/templates/inspirations.json.php index 8c5b268..89c9f3a 100644 --- a/public/site/templates/inspirations.json.php +++ b/public/site/templates/inspirations.json.php @@ -1,16 +1,22 @@ children()->map(function ($child) { +$collections = $page->children()->map(function ($child) { return [ 'title' => $child->title()->value(), 'url' => $child->url(), 'modified' => $child->modified('Y-m-d'), - 'media' => $child->media()->toFiles() + 'status' => $child->status(), + 'cover' => $child->cover()->toFile()->url(), + 'media' => $child->media()->toFiles()->map(function ($file) { + return [ + 'url' => $file->url() + ]; + })->values() ]; })->values(); $specificData = [ - "children" => $children, + "collections" => $collections ]; $data = array_merge($genericData, $specificData); diff --git a/src/components/Inspirations.vue b/src/components/Inspirations.vue deleted file mode 100644 index 92eb9f3..0000000 --- a/src/components/Inspirations.vue +++ /dev/null @@ -1,395 +0,0 @@ - - - - - diff --git a/src/components/Projects.vue b/src/components/Projects.vue index 644032d..e9f77d8 100644 --- a/src/components/Projects.vue +++ b/src/components/Projects.vue @@ -1,23 +1,41 @@ diff --git a/src/components/Tabs.vue b/src/components/Tabs.vue index 7bf1155..4583928 100644 --- a/src/components/Tabs.vue +++ b/src/components/Tabs.vue @@ -22,26 +22,8 @@ import { computed } from "vue"; import slugify from "slugify"; -const { currentProjects, archivedProjects } = defineProps({ - currentProjects: Array, - archivedProjects: Array, -}); - -const tabs = computed(() => { - return [ - { - label: "Projets en cours", - id: "currentProjects", - count: currentProjects.length, - isActive: true, - }, - { - label: "Projets archivés", - id: "archivedProjects", - count: archivedProjects.length, - isActive: false, - }, - ]; +const { tabs } = defineProps({ + tabs: Array, }); const emit = defineEmits(["update:currentTab"]); diff --git a/src/components/inspirations/Header.vue b/src/components/inspirations/Header.vue new file mode 100644 index 0000000..e1082f0 --- /dev/null +++ b/src/components/inspirations/Header.vue @@ -0,0 +1,57 @@ + + + diff --git a/src/components/inspirations/Selector.vue b/src/components/inspirations/Selector.vue new file mode 100644 index 0000000..822289c --- /dev/null +++ b/src/components/inspirations/Selector.vue @@ -0,0 +1,43 @@ + + + diff --git a/src/views/Inspirations.vue b/src/views/Inspirations.vue index 075566e..3fb0f0c 100644 --- a/src/views/Inspirations.vue +++ b/src/views/Inspirations.vue @@ -3,20 +3,117 @@
- +

Inspirations

+ + + + + + +
+
+
+ +
+
- +