From d75d45e2043234131cecfae36cba2d141e98e6d7 Mon Sep 17 00:00:00 2001 From: ALAMI Adnane Date: Wed, 19 Feb 2025 11:02:15 +0100 Subject: [PATCH] fix + feat: api test + error fix --- front/MyINPulse-front/fake_data/db.json | 10 +- front/MyINPulse-front/fake_data/open.sh | 2 + .../src/components/canvas/CanvasItem.vue | 98 ++++++++++-------- .../src/components/canvas/HeaderCanvas.vue | 52 +++++----- .../src/components/icons/logo inpulse.png | Bin 5269 -> 40328 bytes front/MyINPulse-front/src/views/AdminMain.vue | 10 +- 6 files changed, 89 insertions(+), 83 deletions(-) create mode 100755 front/MyINPulse-front/fake_data/open.sh diff --git a/front/MyINPulse-front/fake_data/db.json b/front/MyINPulse-front/fake_data/db.json index 53ffa8a..51a02c3 100644 --- a/front/MyINPulse-front/fake_data/db.json +++ b/front/MyINPulse-front/fake_data/db.json @@ -1,8 +1,10 @@ { - "entrepreneurs": [ + "entrepreneurs": [ { "id": 1, "name": "Alice", "email": "alice@example.com" }, { "id": 2, "name": "Bob", "email": "bob@example.com" }, { "id": 3, "name": "Charlie", "email": "charlie@example.com" } - ] - } - \ No newline at end of file + ], + "data": [ + { "data": "this is a fake data to test api" } + ] +} diff --git a/front/MyINPulse-front/fake_data/open.sh b/front/MyINPulse-front/fake_data/open.sh new file mode 100755 index 0000000..cd3b9b6 --- /dev/null +++ b/front/MyINPulse-front/fake_data/open.sh @@ -0,0 +1,2 @@ +#!/usr/bin/bash +json-server --watch db.json --port 5000 \ No newline at end of file diff --git a/front/MyINPulse-front/src/components/canvas/CanvasItem.vue b/front/MyINPulse-front/src/components/canvas/CanvasItem.vue index b96a575..29228ce 100644 --- a/front/MyINPulse-front/src/components/canvas/CanvasItem.vue +++ b/front/MyINPulse-front/src/components/canvas/CanvasItem.vue @@ -7,51 +7,63 @@

{{ title }}

{{ currentDescription }}

- + - - expanded.value = !expanded.value; - }; - - return { - expanded, - currentDescription, - toggleExpand - }; - } - }; - - - - \ No newline at end of file + } + diff --git a/front/MyINPulse-front/src/components/canvas/HeaderCanvas.vue b/front/MyINPulse-front/src/components/canvas/HeaderCanvas.vue index 1b05ff2..6c8f6b0 100644 --- a/front/MyINPulse-front/src/components/canvas/HeaderCanvas.vue +++ b/front/MyINPulse-front/src/components/canvas/HeaderCanvas.vue @@ -17,39 +17,35 @@ - +