diff --git a/next.config.mjs b/next.config.mjs index 7ff9a3c..ab93b87 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -4,8 +4,8 @@ const nextConfig = { reactStrictMode: true, env: { DEV_API: 'http://localhost:3000', - PRODUCTION_API: '', - }, + PRODUCTION_API: '' + } }; export default nextConfig; diff --git a/src/data/chat-history.json b/src/data/chat-history.json index 549d265..9a46e8a 100644 --- a/src/data/chat-history.json +++ b/src/data/chat-history.json @@ -1,66 +1,66 @@ [ - { "id": 1, "from": "User1", "to": "Alene", "text": "Hi Good Morning!", "time": "11:23 AM" }, - { "id": 2, "from": "Alene", "to": "User1", "text": "Hey. Very Good morning. How are you?", "time": "11:23 AM" }, - { "id": 3, "from": "User1", "to": "Alene", "text": "Good. Thank you", "time": "11:23 AM" }, - { "id": 4, "from": "Alene", "to": "User1", "text": "I need your minute, are you available?", "time": "11:23 AM" }, + { "id": 1, "from": "User1", "to": "Alene", "text": "Hi Good Morning!", "time": "11:23 AM" }, + { "id": 2, "from": "Alene", "to": "User1", "text": "Hey. Very Good morning. How are you?", "time": "11:23 AM" }, + { "id": 3, "from": "User1", "to": "Alene", "text": "Good. Thank you", "time": "11:23 AM" }, + { "id": 4, "from": "Alene", "to": "User1", "text": "I need your minute, are you available?", "time": "11:23 AM" }, - { "id": 5, "from": "User1", "to": "Keefe", "text": "Hey man", "time": "11:24 AM" }, - { "id": 6, "from": "Keefe", "to": "User1", "text": "Hi, Wats up?", "time": "11:24 AM" }, - { "id": 7, "from": "User1", "to": "Keefe", "text": "Need your minute. are you available?", "time": "11:24 AM" }, - { "id": 8, "from": "Keefe", "to": "User1", "text": "Sure. Let's meet.", "time": "11:24 AM" }, + { "id": 5, "from": "User1", "to": "Keefe", "text": "Hey man", "time": "11:24 AM" }, + { "id": 6, "from": "Keefe", "to": "User1", "text": "Hi, Wats up?", "time": "11:24 AM" }, + { "id": 7, "from": "User1", "to": "Keefe", "text": "Need your minute. are you available?", "time": "11:24 AM" }, + { "id": 8, "from": "Keefe", "to": "User1", "text": "Sure. Let's meet.", "time": "11:24 AM" }, - { "id": 9, "from": "User1", "to": "Lazaro", "text": "Hi Good Morning!", "time": "11:25 AM" }, - { "id": 10, "from": "Lazaro", "to": "User1", "text": "Hey. Very Good morning. How are you?", "time": "11:25 AM" }, - { "id": 11, "from": "User1", "to": "Lazaro", "text": "Good. Thank you", "time": "11:25 AM" }, - { "id": 12, "from": "Lazaro", "to": "User1", "text": "I need your minute, are you available?", "time": "11:25 AM" }, + { "id": 9, "from": "User1", "to": "Lazaro", "text": "Hi Good Morning!", "time": "11:25 AM" }, + { "id": 10, "from": "Lazaro", "to": "User1", "text": "Hey. Very Good morning. How are you?", "time": "11:25 AM" }, + { "id": 11, "from": "User1", "to": "Lazaro", "text": "Good. Thank you", "time": "11:25 AM" }, + { "id": 12, "from": "Lazaro", "to": "User1", "text": "I need your minute, are you available?", "time": "11:25 AM" }, - { "id": 13, "from": "User1", "to": "Hazle", "text": "Hey man", "time": "11:26 AM" }, - { "id": 14, "from": "Hazle", "to": "User1", "text": "Hi, Wats up?", "time": "11:26 AM" }, - { "id": 15, "from": "User1", "to": "Hazle", "text": "Need your minute. are you available?", "time": "11:26 AM" }, - { "id": 16, "from": "Hazle", "to": "User1", "text": "Sure. Let's meet.", "time": "11:26 AM" }, + { "id": 13, "from": "User1", "to": "Hazle", "text": "Hey man", "time": "11:26 AM" }, + { "id": 14, "from": "Hazle", "to": "User1", "text": "Hi, Wats up?", "time": "11:26 AM" }, + { "id": 15, "from": "User1", "to": "Hazle", "text": "Need your minute. are you available?", "time": "11:26 AM" }, + { "id": 16, "from": "Hazle", "to": "User1", "text": "Sure. Let's meet.", "time": "11:26 AM" }, - { "id": 17, "from": "User1", "to": "Herman Essertg", "text": "Hi Good Morning!", "time": "11:27 AM" }, - { "id": 18, "from": "Herman Essertg", "to": "User1", "text": "Hey. Very Good morning. How are you?", "time": "11:27 AM" }, - { "id": 19, "from": "User1", "to": "Herman Essertg", "text": "Good. Thank you", "time": "11:27 AM" }, - { "id": 20, "from": "Herman Essertg", "to": "User1", "text": "I need your minute, are you available?", "time": "11:27 AM" }, + { "id": 17, "from": "User1", "to": "Herman Essertg", "text": "Hi Good Morning!", "time": "11:27 AM" }, + { "id": 18, "from": "Herman Essertg", "to": "User1", "text": "Hey. Very Good morning. How are you?", "time": "11:27 AM" }, + { "id": 19, "from": "User1", "to": "Herman Essertg", "text": "Good. Thank you", "time": "11:27 AM" }, + { "id": 20, "from": "Herman Essertg", "to": "User1", "text": "I need your minute, are you available?", "time": "11:27 AM" }, - { "id": 21, "from": "User1", "to": "Wilhelmine Durrg", "text": "Hey man", "time": "11:28 AM" }, - { "id": 22, "from": "Wilhelmine Durrg", "to": "User1", "text": "Hi, Wats up?", "time": "11:28 AM" }, - { "id": 23, "from": "User1", "to": "Wilhelmine Durrg", "text": "Need your minute. are you available?", "time": "11:28 AM" }, - { "id": 24, "from": "Wilhelmine Durrg", "to": "User1", "text": "Sure. Let's meet.", "time": "11:28 AM" }, + { "id": 21, "from": "User1", "to": "Wilhelmine Durrg", "text": "Hey man", "time": "11:28 AM" }, + { "id": 22, "from": "Wilhelmine Durrg", "to": "User1", "text": "Hi, Wats up?", "time": "11:28 AM" }, + { "id": 23, "from": "User1", "to": "Wilhelmine Durrg", "text": "Need your minute. are you available?", "time": "11:28 AM" }, + { "id": 24, "from": "Wilhelmine Durrg", "to": "User1", "text": "Sure. Let's meet.", "time": "11:28 AM" }, - { "id": 25, "from": "User1", "to": "Agilulf Fuxg", "text": "Hi Good Morning!", "time": "11:29 AM" }, - { "id": 26, "from": "Agilulf Fuxg", "to": "User1", "text": "Hey. Very Good morning. How are you?", "time": "11:29 AM" }, - { "id": 27, "from": "User1", "to": "Agilulf Fuxg", "text": "Good. Thank you", "time": "11:29 AM" }, - { "id": 28, "from": "Agilulf Fuxg", "to": "User1", "text": "I need your minute, are you available?", "time": "11:29 AM" }, + { "id": 25, "from": "User1", "to": "Agilulf Fuxg", "text": "Hi Good Morning!", "time": "11:29 AM" }, + { "id": 26, "from": "Agilulf Fuxg", "to": "User1", "text": "Hey. Very Good morning. How are you?", "time": "11:29 AM" }, + { "id": 27, "from": "User1", "to": "Agilulf Fuxg", "text": "Good. Thank you", "time": "11:29 AM" }, + { "id": 28, "from": "Agilulf Fuxg", "to": "User1", "text": "I need your minute, are you available?", "time": "11:29 AM" }, - { "id": 29, "from": "User1", "to": "Adaline Bergfalks", "text": "Hey man", "time": "11:30 AM" }, - { "id": 30, "from": "Adaline Bergfalks", "to": "User1", "text": "Hi, Wats up?", "time": "11:30 AM" }, - { "id": 31, "from": "User1", "to": "Adaline Bergfalks", "text": "Need your minute. are you available?", "time": "11:30 AM" }, - { "id": 32, "from": "Adaline Bergfalks", "to": "User1", "text": "Sure. Let's meet.", "time": "11:30 AM" }, + { "id": 29, "from": "User1", "to": "Adaline Bergfalks", "text": "Hey man", "time": "11:30 AM" }, + { "id": 30, "from": "Adaline Bergfalks", "to": "User1", "text": "Hi, Wats up?", "time": "11:30 AM" }, + { "id": 31, "from": "User1", "to": "Adaline Bergfalks", "text": "Need your minute. are you available?", "time": "11:30 AM" }, + { "id": 32, "from": "Adaline Bergfalks", "to": "User1", "text": "Sure. Let's meet.", "time": "11:30 AM" }, - { "id": 33, "from": "User1", "to": "Eadwulf Beckete", "text": "Hi Good Morning!", "time": "11:31 AM" }, - { "id": 34, "from": "Eadwulf Beckete", "to": "User1", "text": "Hey. Very Good morning. How are you?", "time": "11:31 AM" }, - { "id": 35, "from": "User1", "to": "Eadwulf Beckete", "text": "Good. Thank you", "time": "11:31 AM" }, - { "id": 36, "from": "Eadwulf Beckete", "to": "User1", "text": "I need your minute, are you available?", "time": "11:31 AM" }, + { "id": 33, "from": "User1", "to": "Eadwulf Beckete", "text": "Hi Good Morning!", "time": "11:31 AM" }, + { "id": 34, "from": "Eadwulf Beckete", "to": "User1", "text": "Hey. Very Good morning. How are you?", "time": "11:31 AM" }, + { "id": 35, "from": "User1", "to": "Eadwulf Beckete", "text": "Good. Thank you", "time": "11:31 AM" }, + { "id": 36, "from": "Eadwulf Beckete", "to": "User1", "text": "I need your minute, are you available?", "time": "11:31 AM" }, - { "id": 37, "from": "User1", "to": "Midas", "text": "Hey man", "time": "11:32 AM" }, - { "id": 38, "from": "Midas", "to": "User1", "text": "Hi, Wats up?", "time": "11:32 AM" }, - { "id": 39, "from": "User1", "to": "Midas", "text": "Need your minute. are you available?", "time": "11:32 AM" }, - { "id": 40, "from": "Midas", "to": "User1", "text": "Sure. Let's meet.", "time": "11:32 AM" }, + { "id": 37, "from": "User1", "to": "Midas", "text": "Hey man", "time": "11:32 AM" }, + { "id": 38, "from": "Midas", "to": "User1", "text": "Hi, Wats up?", "time": "11:32 AM" }, + { "id": 39, "from": "User1", "to": "Midas", "text": "Need your minute. are you available?", "time": "11:32 AM" }, + { "id": 40, "from": "Midas", "to": "User1", "text": "Sure. Let's meet.", "time": "11:32 AM" }, - { "id": 41, "from": "User1", "to": "Uranus", "text": "Hi Good Morning!", "time": "11:33 AM" }, - { "id": 42, "from": "Uranus", "to": "User1", "text": "Hey. Very Good morning. How are you?", "time": "11:33 AM" }, - { "id": 43, "from": "User1", "to": "Uranus", "text": "Good. Thank you", "time": "11:33 AM" }, - { "id": 44, "from": "Uranus", "to": "User1", "text": "I need your minute, are you available?", "time": "11:33 AM" }, + { "id": 41, "from": "User1", "to": "Uranus", "text": "Hi Good Morning!", "time": "11:33 AM" }, + { "id": 42, "from": "Uranus", "to": "User1", "text": "Hey. Very Good morning. How are you?", "time": "11:33 AM" }, + { "id": 43, "from": "User1", "to": "Uranus", "text": "Good. Thank you", "time": "11:33 AM" }, + { "id": 44, "from": "Uranus", "to": "User1", "text": "I need your minute, are you available?", "time": "11:33 AM" }, - { "id": 45, "from": "User1", "to": "Peahen", "text": "Hey man", "time": "11:34 AM" }, - { "id": 46, "from": "Peahen", "to": "User1", "text": "Hi, Wats up?", "time": "11:34 AM" }, - { "id": 47, "from": "User1", "to": "Peahen", "text": "Need your minute. are you available?", "time": "11:34 AM" }, - { "id": 48, "from": "Peahen", "to": "User1", "text": "Sure. Let's meet.", "time": "11:34 AM" }, + { "id": 45, "from": "User1", "to": "Peahen", "text": "Hey man", "time": "11:34 AM" }, + { "id": 46, "from": "Peahen", "to": "User1", "text": "Hi, Wats up?", "time": "11:34 AM" }, + { "id": 47, "from": "User1", "to": "Peahen", "text": "Need your minute. are you available?", "time": "11:34 AM" }, + { "id": 48, "from": "Peahen", "to": "User1", "text": "Sure. Let's meet.", "time": "11:34 AM" }, - { "id": 49, "from": "User1", "to": "Menelaus", "text": "Hi Good Morning!", "time": "11:35 AM" }, - { "id": 50, "from": "Menelaus", "to": "User1", "text": "Hey. Very Good morning. How are you?", "time": "11:35 AM" }, - { "id": 51, "from": "User1", "to": "Menelaus", "text": "Good. Thank you", "time": "11:35 AM" }, - { "id": 52, "from": "Menelaus", "to": "User1", "text": "I need your minute, are you available?", "time": "11:35 AM" } -] \ No newline at end of file + { "id": 49, "from": "User1", "to": "Menelaus", "text": "Hi Good Morning!", "time": "11:35 AM" }, + { "id": 50, "from": "Menelaus", "to": "User1", "text": "Hey. Very Good morning. How are you?", "time": "11:35 AM" }, + { "id": 51, "from": "User1", "to": "Menelaus", "text": "Good. Thank you", "time": "11:35 AM" }, + { "id": 52, "from": "Menelaus", "to": "User1", "text": "I need your minute, are you available?", "time": "11:35 AM" } +] diff --git a/src/data/gallery.json b/src/data/gallery.json index ae67da1..f04f278 100644 --- a/src/data/gallery.json +++ b/src/data/gallery.json @@ -1,74 +1,74 @@ [ - { - "id": "#1Gallery", - "image": "img-gal-1.png", - "title": "1080p_table_denar.pdf", - "dateTime": "Tue Aug 24 2021" - }, - { - "id": "#2Gallery", - "image": "img-gal-2.png", - "title": "handmade.mp2", - "dateTime": "Fri Apr 30 2021" - }, - { - "id": "#3Gallery", - "image": "img-gal-3.png", - "title": "granite_cheese.wav", - "dateTime": "Fri Jun 25 2021" - }, - { - "id": "#4Gallery", - "image": "img-gal-4.png", - "title": "invoice.mpg", - "dateTime": "Sat Oct 23 2021" - }, - { - "id": "#5Gallery", - "image": "img-gal-5.png", - "title": "benchmark_forge.m1v", - "dateTime": "Fri Jan 21 2022" - }, - { - "id": "#6Gallery", - "image": "img-gal-6.png", - "title": "violet_withdrawal.png", - "dateTime": "Wed Sep 22 2021" - }, - { - "id": "#7Gallery", - "image": "img-gal-7.png", - "title": "web_readiness.mpeg", - "dateTime": "Mon Jul 12 2021" - }, - { - "id": "#8Gallery", - "image": "img-gal-8.png", - "title": "zimbabwe.htm", - "dateTime": "Sat Mar 20 2021" - }, - { - "id": "#9Gallery", - "image": "img-gal-9.png", - "title": "circuit.m3a", - "dateTime": "Tue Jan 18 2022" - }, - { - "id": "#10Gallery", - "image": "img-gal-10.png", - "title": "data_red.png", - "dateTime": "Sun Apr 04 2021" - }, - { - "id": "#11Gallery", - "image": "img-gal-11.png", - "title": "handcrafted.html", - "dateTime": "Tue May 25 2021" - }, - { - "id": "#12Gallery", - "image": "img-gal-12.png", - "title": "hacking_games.pdf", - "dateTime": "Tue Oct 19 2021" - } -] \ No newline at end of file + { + "id": "#1Gallery", + "image": "img-gal-1.png", + "title": "1080p_table_denar.pdf", + "dateTime": "Tue Aug 24 2021" + }, + { + "id": "#2Gallery", + "image": "img-gal-2.png", + "title": "handmade.mp2", + "dateTime": "Fri Apr 30 2021" + }, + { + "id": "#3Gallery", + "image": "img-gal-3.png", + "title": "granite_cheese.wav", + "dateTime": "Fri Jun 25 2021" + }, + { + "id": "#4Gallery", + "image": "img-gal-4.png", + "title": "invoice.mpg", + "dateTime": "Sat Oct 23 2021" + }, + { + "id": "#5Gallery", + "image": "img-gal-5.png", + "title": "benchmark_forge.m1v", + "dateTime": "Fri Jan 21 2022" + }, + { + "id": "#6Gallery", + "image": "img-gal-6.png", + "title": "violet_withdrawal.png", + "dateTime": "Wed Sep 22 2021" + }, + { + "id": "#7Gallery", + "image": "img-gal-7.png", + "title": "web_readiness.mpeg", + "dateTime": "Mon Jul 12 2021" + }, + { + "id": "#8Gallery", + "image": "img-gal-8.png", + "title": "zimbabwe.htm", + "dateTime": "Sat Mar 20 2021" + }, + { + "id": "#9Gallery", + "image": "img-gal-9.png", + "title": "circuit.m3a", + "dateTime": "Tue Jan 18 2022" + }, + { + "id": "#10Gallery", + "image": "img-gal-10.png", + "title": "data_red.png", + "dateTime": "Sun Apr 04 2021" + }, + { + "id": "#11Gallery", + "image": "img-gal-11.png", + "title": "handcrafted.html", + "dateTime": "Tue May 25 2021" + }, + { + "id": "#12Gallery", + "image": "img-gal-12.png", + "title": "hacking_games.pdf", + "dateTime": "Tue Oct 19 2021" + } +] diff --git a/src/data/kanban-columns-order.json b/src/data/kanban-columns-order.json index 5a5a46d..bcbf957 100644 --- a/src/data/kanban-columns-order.json +++ b/src/data/kanban-columns-order.json @@ -1 +1 @@ -["column-1", "column-2", "column-3", "column-4"] \ No newline at end of file +["column-1", "column-2", "column-3", "column-4"] diff --git a/src/data/kanban-columns.json b/src/data/kanban-columns.json index ec16eb4..6260533 100644 --- a/src/data/kanban-columns.json +++ b/src/data/kanban-columns.json @@ -1,19 +1,22 @@ [ - { - "id": "column-1", - "title": "New", - "itemIds": ["3542", "8903", "1381"] - }, { - "id": "column-2", - "title": "Active", - "itemIds": ["6739", "3950", "6924"] - }, { - "id": "column-3", - "title": "Resolved", - "itemIds": ["4398"] - }, { - "id": "column-4", - "title": "Closed", - "itemIds": ["9589", "3410", "8679"] - } + { + "id": "column-1", + "title": "New", + "itemIds": ["3542", "8903", "1381"] + }, + { + "id": "column-2", + "title": "Active", + "itemIds": ["6739", "3950", "6924"] + }, + { + "id": "column-3", + "title": "Resolved", + "itemIds": ["4398"] + }, + { + "id": "column-4", + "title": "Closed", + "itemIds": ["9589", "3410", "8679"] + } ] diff --git a/src/data/kanban-userstory-order.json b/src/data/kanban-userstory-order.json index 7ceee53..74a2b86 100644 --- a/src/data/kanban-userstory-order.json +++ b/src/data/kanban-userstory-order.json @@ -1 +1 @@ -["2647", "7833", "6940", "4656"] \ No newline at end of file +["2647", "7833", "6940", "4656"] diff --git a/src/data/kanban.json b/src/data/kanban.json new file mode 100644 index 0000000..512f2ca --- /dev/null +++ b/src/data/kanban.json @@ -0,0 +1,232 @@ +{ + "columns": [ + { + "id": "column-1", + "title": "New", + "itemIds": ["3542", "8903", "1381"] + }, + { + "id": "column-2", + "title": "Active", + "itemIds": ["6739", "3950", "6924"] + }, + { + "id": "column-3", + "title": "Resolved", + "itemIds": ["4398"] + }, + { + "id": "column-4", + "title": "Closed", + "itemIds": ["9589", "3410", "8679"] + } + ], + "columnsOrder": ["column-1", "column-2", "column-3", "column-4"], + "comments": [ + { + "id": "comment-1", + "comment": "Comment 1", + "profileId": "profile-1" + }, + { + "id": "comment-2", + "comment": "Comment 2", + "profileId": "profile-2" + }, + { + "id": "comment-3", + "comment": "Comment 3", + "profileId": "profile-3" + }, + { + "id": "comment-4", + "comment": "Comment 4", + "profileId": "profile-2" + }, + { + "id": "comment-5", + "comment": "Comment 5", + "profileId": "profile-3" + } + ], + "items": [ + { + "assign": "profile-1", + "attachments": [], + "commentIds": ["comment-1"], + "description": "Content of item 1", + "dueDate": "Fri Feb 03 2023 15:20:14 GMT+0530 (India Standard Time)", + "id": "3542", + "image": "profile-back-1.png", + "priority": "low", + "title": "Online fees payment & instant announcements" + }, + { + "assign": "profile-2", + "attachments": [], + "commentIds": ["comment-2", "comment-5"], + "description": "Content of item 2", + "dueDate": "Sat Jan 28 2023 15:23:25 GMT+0530 (India Standard Time)", + "id": "4398", + "image": false, + "priority": "high", + "title": "Creation and Maintenance of Inventory Objects" + }, + { + "assign": "profile-3", + "attachments": [], + "description": "Content of item 3", + "dueDate": "Tue Feb 07 2023 15:24:38 GMT+0530 (India Standard Time)", + "id": "6739", + "image": false, + "priority": "low", + "title": "Update React & TypeScript version" + }, + { + "assign": "profile-2", + "attachments": [], + "commentIds": ["comment-4"], + "description": "Content of item 4", + "dueDate": "Thu Feb 09 2023 15:25:46 GMT+0530 (India Standard Time)", + "id": "3950", + "image": "profile-back-2.png", + "priority": "low", + "title": "Set allowing rules for trusted applications." + }, + { + "assign": "profile-2", + "attachments": [], + "commentIds": ["comment-1", "comment-2", "comment-5"], + "description": "Content of item 5", + "dueDate": "Mon Feb 06 2023 15:26:53 GMT+0530 (India Standard Time)", + "id": "6924", + "image": "profile-back-3.png", + "priority": "medium", + "title": "Managing Applications Launch Control" + }, + { + "assign": "profile-3", + "attachments": [], + "commentIds": ["comment-3", "comment-4"], + "description": "Content of item 6", + "dueDate": "Wed Feb 15 2023 10:30:37 GMT+0530 (India Standard Time)", + "id": "9589", + "image": false, + "priority": "medium", + "title": "Run codemods" + }, + { + "assign": "profile-1", + "attachments": [], + "description": "Content of item 7", + "dueDate": "Mon Feb 20 2023 15:29:58 GMT+0530 (India Standard Time)", + "id": "3410", + "image": "profile-back-4.png", + "priority": "low", + "title": "Purchase Requisitions, Adjustments, and Transfers." + }, + { + "assign": "profile-1", + "attachments": [], + "description": "Content of item 8", + "dueDate": "Sat Mar 04 2023 15:31:05 GMT+0530 (India Standard Time)", + "id": "8903", + "image": false, + "priority": "low", + "title": "Attendance checking & homework details" + }, + { + "assign": "profile-3", + "attachments": [], + "commentIds": ["comment-3"], + "description": "Content of item 9", + "dueDate": "Thu Feb 23 2023 15:32:13 GMT+0530 (India Standard Time)", + "id": "1381", + "image": false, + "priority": "high", + "title": "Admission, Staff & Schedule management" + }, + { + "assign": "profile-2", + "attachments": [], + "commentIds": ["comment-5"], + "description": "Content of item 10", + "dueDate": "Mon Feb 27 2023 15:33:04 GMT+0530 (India Standard Time)", + "id": "8679", + "image": false, + "priority": "low", + "title": "Handling breaking changes" + } + ], + "profiles": [ + { + "id": "profile-1", + "avatar": "avatar-3.png", + "name": "Barney Thea", + "time": "2 min ago" + }, + { + "id": "profile-2", + "avatar": "avatar-1.png", + "name": "Maddison Wilber", + "time": "1 day ago" + }, + { + "id": "profile-3", + "avatar": "avatar-2.png", + "name": "John Doe", + "time": "now" + } + ], + "userStory": [ + { + "acceptance": "", + "assign": "profile-2", + "columnId": "column-4", + "commentIds": ["comment-5"], + "description": "Wo gegew jubva wiej pisniidi ic jarge mide ho ufcakub culuw ambupan te fezop rikic ekbet sevzog.", + "dueDate": "Mon Feb 27 2023 15:18:32 GMT+0530 (India Standard Time)", + "id": "2647", + "priority": "low", + "title": "School Management Backend", + "itemIds": ["3542", "8903", "1381"] + }, + { + "acceptance": "Gid gimija ufuebjop vuji ze ir wi jih aruvihdok keubagob aguhogug uge tabu cure.", + "assign": "profile-3", + "columnId": "column-1", + "commentIds": ["comment-3"], + "description": "Onekane urwa joduzzij la cipebo zafuw atawa labfi hilza inepehhow inujufise hum.", + "dueDate": "Thu Feb 23 2023 15:13:31 GMT+0530 (India Standard Time)", + "id": "7833", + "priority": "high", + "title": "Inventory Implementation & Design", + "itemIds": ["4398", "3410"] + }, + { + "acceptance": "Kiz ovmen fup jazaj rozibco fecki rasizsed pake redufkav joczatufo.", + "assign": "profile-3", + "columnId": "column-4", + "commentIds": ["comment-3", "comment-4"], + "description": "Lum vofdip keci fid fos di fikga kiinte izugfi gihude tewsadez ha niprizbef catin adahup.", + "dueDate": "Wed Feb 15 2023 10:30:11 GMT+0530 (India Standard Time)", + "id": "6940", + "priority": "medium", + "title": "Theme migration from v4 to v5", + "itemIds": ["6739", "9589", "8679"] + }, + { + "acceptance": "Itorinceg cokmu ku pahkaavo argut.", + "assign": "profile-1", + "columnId": "column-3", + "commentIds": ["comment-4"], + "description": "Nar noljaw hi fusurri haodabi ewaw uc moetucu hilzirzo ca nidzerog ziw.", + "dueDate": "Tue Feb 07 2023 15:17:40 GMT+0530 (India Standard Time)", + "id": "4656", + "priority": "low", + "title": "Lunch Beauty Application", + "itemIds": ["3950", "6924"] + } + ], + "userStoryOrder": ["2647", "7833", "6940", "4656"] +} diff --git a/src/data/posts.json b/src/data/posts.json index 2f566e7..66acaa4 100644 --- a/src/data/posts.json +++ b/src/data/posts.json @@ -1 +1,124 @@ -[{"id":"#4POST_JONE_DOE","profile":{"id":"#52JONE_DOE","avatar":"img-user.png","name":"John Doe","time":"now"},"data":{"content":"Laboris non ad et aute sint aliquip mollit voluptate velit dolore magna fugiat ex.\n Commodo amet veniam nostrud mollit quis sint qui nulla elit esse excepteur ullamco esse magna. Nisi duis aute est in mollit irure enim tempor in.","images":[],"likes":{"like":true,"value":1},"comments":[{"id":"#COMMENT_2","profile":{"id":"#52JONE_DOE","avatar":"img-user.png","name":"John Doe","time":"now"},"data":{"comment":"Test","likes":{"like":false,"value":0},"replies":[]}}]}},{"id":"#1POST_JONE_DOE","profile":{"id":"#52JONE_DOE","avatar":"avatar-1.png","name":"John Doe","time":"15 min ago"},"data":{"content":"It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. There are many variations of passages.","images":[{"img":"img-profile1.png","featured":true}],"likes":{"like":true,"value":102},"comments":[{"id":"#COMMENT_1","profile":{"id":"#52JONE_DOE","avatar":"avatar-1.png","name":"John Doe","time":"15 min ago"},"data":{"comment":"Test","likes":{"like":true,"value":1},"replies":[{"id":"#REPLY_1","profile":{"id":"#52JONE_DOE","avatar":"avatar-1.png","name":"John Doe","time":"15 min ago"},"data":{"comment":"Test Reply","likes":{"like":true,"value":1},"replies":[]}},{"id":"#REPLY_1","profile":{"id":"#52JONE_DOE","avatar":"avatar-1.png","name":"JWT User","time":"15 min ago"},"data":{"comment":"Demo","likes":{"like":false,"value":0},"replies":[]}}]}},{"id":"#3COMMENT_JONE_DOE","profile":{"id":"#52JONE_DOE","avatar":"avatar-3.png","name":"Barney Thea","time":"8 min ago "},"data":{"comment":"It is a long established fact that a reader will be distracted by the readable content of a page.","likes":{"like":true,"value":55}}},{"id":"#2COMMENT_JONE_DOE","profile":{"id":"#52JONE_DOE","avatar":"avatar-4.png","name":"Maddison Wilber","time":"5 min ago "},"data":{"comment":"It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout.There are many variations of passages.","likes":{"like":true,"value":69},"replies":[{"id":"#1REPLY_JONE_DOE","profile":{"id":"#52JONE_DOE","avatar":"avatar-5.png","name":"John Doe","time":"just now "},"data":{"comment":"It is a long established fact that a reader will be distracted by the readable content.","likes":{"like":true,"value":10}}}]}}]}},{"id":"#2POST_JONE_DOE","profile":{"id":"#52JONE_DOE","avatar":"avatar-2.png","name":"John Doe","time":"15 min ago "},"data":{"content":"It is a long established fact that a reader will be distracted by the readable content of a page","images":[{"img":"img-profile2.jpg","title":"Image Title"},{"img":"img-profile3.jpg","title":"Painter"}],"likes":{"like":true,"value":151},"comments":[{"id":"#2COMMENT_JONE_DOE","profile":{"id":"#52JONE_DOE","avatar":"avatar-3.png","name":"Barney Thea","time":"15 min ago "},"data":{"comment":"It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout.","likes":{"like":true,"value":65},"replies":[{"id":"#REPLY_2","profile":{"id":"#52JONE_DOE","avatar":"avatar-2.png","name":"John Doe","time":"15 min ago "},"data":{"comment":"Test","likes":{"like":true,"value":1},"replies":[]}},{"id":"#REPLY_3","profile":{"id":"#52JONE_DOE","avatar":"avatar-2.png","name":"John Doe","time":"15 min ago "},"data":{"comment":"Test To Reply","likes":{"like":true,"value":1},"replies":[]}},{"id":"#REPLY_3","profile":{"id":"#52JONE_DOE","avatar":"avatar-2.png","name":"John Doe","time":"15 min ago "},"data":{"comment":"test","likes":{"like":false,"value":0},"replies":[]}}]}}]}},{"id":"#3POST_JONE_DOE","profile":{"id":"#52JONE_DOE","avatar":"img-user.png","name":"John Doe","time":"15 min ago "},"data":{"content":"It is a long established fact that a reader will be distracted by the readable content of a page","images":[],"video":"vyJU9efvUtQ","likes":{"like":true,"value":540}}}] \ No newline at end of file +[ + { + "id": "#4POST_JONE_DOE", + "profile": { "id": "#52JONE_DOE", "avatar": "img-user.png", "name": "John Doe", "time": "now" }, + "data": { + "content": "Laboris non ad et aute sint aliquip mollit voluptate velit dolore magna fugiat ex.\n Commodo amet veniam nostrud mollit quis sint qui nulla elit esse excepteur ullamco esse magna. Nisi duis aute est in mollit irure enim tempor in.", + "images": [], + "likes": { "like": true, "value": 1 }, + "comments": [ + { + "id": "#COMMENT_2", + "profile": { "id": "#52JONE_DOE", "avatar": "img-user.png", "name": "John Doe", "time": "now" }, + "data": { "comment": "Test", "likes": { "like": false, "value": 0 }, "replies": [] } + } + ] + } + }, + { + "id": "#1POST_JONE_DOE", + "profile": { "id": "#52JONE_DOE", "avatar": "avatar-1.png", "name": "John Doe", "time": "15 min ago" }, + "data": { + "content": "It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. There are many variations of passages.", + "images": [{ "img": "img-profile1.png", "featured": true }], + "likes": { "like": true, "value": 102 }, + "comments": [ + { + "id": "#COMMENT_1", + "profile": { "id": "#52JONE_DOE", "avatar": "avatar-1.png", "name": "John Doe", "time": "15 min ago" }, + "data": { + "comment": "Test", + "likes": { "like": true, "value": 1 }, + "replies": [ + { + "id": "#REPLY_1", + "profile": { "id": "#52JONE_DOE", "avatar": "avatar-1.png", "name": "John Doe", "time": "15 min ago" }, + "data": { "comment": "Test Reply", "likes": { "like": true, "value": 1 }, "replies": [] } + }, + { + "id": "#REPLY_1", + "profile": { "id": "#52JONE_DOE", "avatar": "avatar-1.png", "name": "JWT User", "time": "15 min ago" }, + "data": { "comment": "Demo", "likes": { "like": false, "value": 0 }, "replies": [] } + } + ] + } + }, + { + "id": "#3COMMENT_JONE_DOE", + "profile": { "id": "#52JONE_DOE", "avatar": "avatar-3.png", "name": "Barney Thea", "time": "8 min ago " }, + "data": { + "comment": "It is a long established fact that a reader will be distracted by the readable content of a page.", + "likes": { "like": true, "value": 55 } + } + }, + { + "id": "#2COMMENT_JONE_DOE", + "profile": { "id": "#52JONE_DOE", "avatar": "avatar-4.png", "name": "Maddison Wilber", "time": "5 min ago " }, + "data": { + "comment": "It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout.There are many variations of passages.", + "likes": { "like": true, "value": 69 }, + "replies": [ + { + "id": "#1REPLY_JONE_DOE", + "profile": { "id": "#52JONE_DOE", "avatar": "avatar-5.png", "name": "John Doe", "time": "just now " }, + "data": { + "comment": "It is a long established fact that a reader will be distracted by the readable content.", + "likes": { "like": true, "value": 10 } + } + } + ] + } + } + ] + } + }, + { + "id": "#2POST_JONE_DOE", + "profile": { "id": "#52JONE_DOE", "avatar": "avatar-2.png", "name": "John Doe", "time": "15 min ago " }, + "data": { + "content": "It is a long established fact that a reader will be distracted by the readable content of a page", + "images": [ + { "img": "img-profile2.jpg", "title": "Image Title" }, + { "img": "img-profile3.jpg", "title": "Painter" } + ], + "likes": { "like": true, "value": 151 }, + "comments": [ + { + "id": "#2COMMENT_JONE_DOE", + "profile": { "id": "#52JONE_DOE", "avatar": "avatar-3.png", "name": "Barney Thea", "time": "15 min ago " }, + "data": { + "comment": "It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout.", + "likes": { "like": true, "value": 65 }, + "replies": [ + { + "id": "#REPLY_2", + "profile": { "id": "#52JONE_DOE", "avatar": "avatar-2.png", "name": "John Doe", "time": "15 min ago " }, + "data": { "comment": "Test", "likes": { "like": true, "value": 1 }, "replies": [] } + }, + { + "id": "#REPLY_3", + "profile": { "id": "#52JONE_DOE", "avatar": "avatar-2.png", "name": "John Doe", "time": "15 min ago " }, + "data": { "comment": "Test To Reply", "likes": { "like": true, "value": 1 }, "replies": [] } + }, + { + "id": "#REPLY_3", + "profile": { "id": "#52JONE_DOE", "avatar": "avatar-2.png", "name": "John Doe", "time": "15 min ago " }, + "data": { "comment": "test", "likes": { "like": false, "value": 0 }, "replies": [] } + } + ] + } + } + ] + } + }, + { + "id": "#3POST_JONE_DOE", + "profile": { "id": "#52JONE_DOE", "avatar": "img-user.png", "name": "John Doe", "time": "15 min ago " }, + "data": { + "content": "It is a long established fact that a reader will be distracted by the readable content of a page", + "images": [], + "video": "vyJU9efvUtQ", + "likes": { "like": true, "value": 540 } + } + } +] diff --git a/src/pages/api/address/edit.js b/src/pages/api/address/edit.js index aacd24c..1936649 100644 --- a/src/pages/api/address/edit.js +++ b/src/pages/api/address/edit.js @@ -1,5 +1,4 @@ import addressList from 'data/address.json'; -import fs from 'fs'; import cors from 'utils/cors'; export default async function handler(req, res) { diff --git a/src/pages/api/address/new.js b/src/pages/api/address/new.js index 7b21791..5f2cb9b 100644 --- a/src/pages/api/address/new.js +++ b/src/pages/api/address/new.js @@ -1,7 +1,6 @@ import cors from 'utils/cors'; import { v4 as UIDV4 } from 'uuid'; import addressList from 'data/address.json'; -import fs from 'fs'; export default async function handler(req, res) { await cors(req, res); diff --git a/src/pages/api/calendar/events/delete.js b/src/pages/api/calendar/events/delete.js index 0a6d548..3b0a0f1 100644 --- a/src/pages/api/calendar/events/delete.js +++ b/src/pages/api/calendar/events/delete.js @@ -1,6 +1,5 @@ import calendarEvents from 'data/calendar'; import cors from 'utils/cors'; -import fs from 'fs'; import _ from 'lodash'; export default async function handler(req, res) { diff --git a/src/pages/api/calendar/events/update.js b/src/pages/api/calendar/events/update.js index 66eda5a..d41fad4 100644 --- a/src/pages/api/calendar/events/update.js +++ b/src/pages/api/calendar/events/update.js @@ -1,6 +1,5 @@ import calendarEvents from 'data/calendar'; import cors from 'utils/cors'; -import fs from 'fs'; import _ from 'lodash'; export default async function handler(req, res) { diff --git a/src/pages/api/comments/add.js b/src/pages/api/comments/add.js index 24eda94..8cf60fa 100644 --- a/src/pages/api/comments/add.js +++ b/src/pages/api/comments/add.js @@ -1,6 +1,5 @@ import cors from 'utils/cors'; import posts from 'data/posts.json'; -import fs from 'fs'; export default async function handler(req, res) { await cors(req, res); diff --git a/src/pages/api/comments/list/like.js b/src/pages/api/comments/list/like.js index 0272fab..f88d8d5 100644 --- a/src/pages/api/comments/list/like.js +++ b/src/pages/api/comments/list/like.js @@ -1,6 +1,5 @@ import cors from 'utils/cors'; import posts from 'data/posts.json'; -import fs from 'fs'; export default async function handler(req, res) { await cors(req, res); diff --git a/src/pages/api/contact/modify.js b/src/pages/api/contact/modify.js index 5a81afe..5cecc6e 100644 --- a/src/pages/api/contact/modify.js +++ b/src/pages/api/contact/modify.js @@ -1,6 +1,5 @@ import contacts from 'data/contact.json'; import cors from 'utils/cors'; -import fs from 'fs'; export default async function handler(req, res) { await cors(req, res); diff --git a/src/pages/api/kanban/index.js b/src/pages/api/kanban/index.js new file mode 100644 index 0000000..60bbefe --- /dev/null +++ b/src/pages/api/kanban/index.js @@ -0,0 +1,7 @@ +import cors from 'utils/cors'; +import backlogs from 'data/kanban.json'; + +export default async function handler(req, res) { + await cors(req, res); + return res.status(200).json({ backlogs }); +} diff --git a/src/pages/api/posts/editComment.js b/src/pages/api/posts/editComment.js index 3234ba6..74a7b69 100644 --- a/src/pages/api/posts/editComment.js +++ b/src/pages/api/posts/editComment.js @@ -1,6 +1,5 @@ import cors from 'utils/cors'; import posts from 'data/posts.json'; -import fs from 'fs'; export default async function handler(req, res) { await cors(req, res); diff --git a/src/pages/api/posts/list/like.js b/src/pages/api/posts/list/like.js index b66a47a..a1153d0 100644 --- a/src/pages/api/posts/list/like.js +++ b/src/pages/api/posts/list/like.js @@ -1,6 +1,5 @@ import cors from 'utils/cors'; import posts from 'data/posts.json'; -import fs from 'fs'; export default async function handler(req, res) { await cors(req, res); diff --git a/src/pages/api/replies/add.js b/src/pages/api/replies/add.js index ac50088..328dca7 100644 --- a/src/pages/api/replies/add.js +++ b/src/pages/api/replies/add.js @@ -1,6 +1,5 @@ import cors from 'utils/cors'; import posts from 'data/posts.json'; -import fs from 'fs'; export default async function handler(req, res) { await cors(req, res); diff --git a/src/pages/api/replies/list/like.js b/src/pages/api/replies/list/like.js index ebe3f81..43a5873 100644 --- a/src/pages/api/replies/list/like.js +++ b/src/pages/api/replies/list/like.js @@ -1,6 +1,5 @@ import cors from 'utils/cors'; import posts from 'data/posts.json'; -import fs from 'fs'; export default async function handler(req, res) { await cors(req, res);