From 0df79ba8a8cb690eb7faa2649928776961fe278f Mon Sep 17 00:00:00 2001 From: isUnknown Date: Wed, 25 Sep 2024 17:33:28 +0200 Subject: [PATCH] dynamize brief steps --- .../22f8779f680ed826a2d0a1d2af6018c9.jpg.txt | 8 + .../37a038883c87973036232aa0e43f6da2.png.txt | 2 +- .../d82f18573c439d6edd434ffca62471a7.png.txt | 5 +- src/components/brief/AddImages.vue | 117 ++++++++++++ src/components/brief/Intro.vue | 23 +++ src/components/brief/ModeSelection.vue | 99 ++++++++++ src/main.js | 2 + src/views/Project.vue | 172 +++++------------- 8 files changed, 298 insertions(+), 130 deletions(-) create mode 100644 src/components/brief/AddImages.vue create mode 100644 src/components/brief/Intro.vue create mode 100644 src/components/brief/ModeSelection.vue 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 e7c584c..151f9ce 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,3 +1,11 @@ +Alt: + +---- + +Favoriteforusers: + +---- + Description: ---- 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 1fd9408..c98d621 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 @@ -2,7 +2,7 @@ Alt: ---- -Favoriteforusers: - user://WWjXgPWk +Favoriteforusers: ---- 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 2c19365..fc58616 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 @@ -2,10 +2,7 @@ Alt: ---- -Favoriteforusers: - -- user://WWjXgPWk -- user://HfuumN8s +Favoriteforusers: - user://HfuumN8s ---- diff --git a/src/components/brief/AddImages.vue b/src/components/brief/AddImages.vue new file mode 100644 index 0000000..d08ddf9 --- /dev/null +++ b/src/components/brief/AddImages.vue @@ -0,0 +1,117 @@ + + + diff --git a/src/components/brief/Intro.vue b/src/components/brief/Intro.vue new file mode 100644 index 0000000..7bd9155 --- /dev/null +++ b/src/components/brief/Intro.vue @@ -0,0 +1,23 @@ + + diff --git a/src/components/brief/ModeSelection.vue b/src/components/brief/ModeSelection.vue new file mode 100644 index 0000000..8536b54 --- /dev/null +++ b/src/components/brief/ModeSelection.vue @@ -0,0 +1,99 @@ + + + diff --git a/src/main.js b/src/main.js index 129919b..3346a7e 100644 --- a/src/main.js +++ b/src/main.js @@ -3,6 +3,7 @@ import "./assets/css/index.css"; import App from "./App.vue"; import { createPinia } from "pinia"; import PrimeVue from "primevue/config"; +import ToastService from "primevue/toastservice"; import Select from "primevue/select"; import { router } from "./router/router.js"; @@ -13,6 +14,7 @@ app.use(pinia); app.use(PrimeVue, { unstyled: true, }); +app.use(ToastService); app.use(router); app.component("Select", Select); app.mount("#app"); diff --git a/src/views/Project.vue b/src/views/Project.vue index d12d18a..5af56df 100644 --- a/src/views/Project.vue +++ b/src/views/Project.vue @@ -5,118 +5,13 @@ - - - - - - - -
-
-
-

Description du projet

- -
-
-

Filtrer par tags

-
- - - - - - - - -
-
-
-
- -
- Tag - -
-
- Tag - -
-
- Tag - -
-
- Tag - -
-
- Tag - -
-
- Tag - -
-
-
+ + - @@ -253,13 +159,29 @@ import { usePageStore } from "../stores/page"; import { useUserStore } from "../stores/user"; import { ref, computed } from "vue"; import { storeToRefs } from "pinia"; +import Intro from "../components/brief/Intro.vue"; +import ModeSelection from "../components/brief/ModeSelection.vue"; +import AddImages from "../components/brief/AddImages.vue"; +import VirtualSampleVue from "../components/VirtualSample.vue"; +import VirtualSample from "../components/VirtualSample.vue"; const { page } = storeToRefs(usePageStore()); const user = useUserStore().user; + +const stepsComponents = { + Intro, + ModeSelection, + AddImages, +}; + +const currentStep = ref("Intro"); + +function changeStep(stepName) { + currentStep.value = stepName; +}