MAJOR REFACTOR (#494)

* move index to home folder, create state and context files and barrell folder

* Sanity Check Commit:  reducer added to home.tsx manual QA all working

* WIP: promptBar

* fix missing json parse on folders and prompts

* split context and add promptbar context

* add context to nested prompt componets and componetize Folder componet

* remove log

* Create buttons folder and componetize sidebar action button

* tidy up prompt handlers

* componetized sidebar

* added back chatbar componet to left side sidebar

* monster commit: Componetized the common code between chatbar and promptbar into new componet Sidebar and added context to both bars

* add useFetch service

* added prettier import sort to keep imports ordered and easier to indentify

* added react query and useFetch to work with RQ

* added apiService, errorService and reactQuery

* add callback and tidy up error service

* refactor chat and child componets to useContext

* fix extra calls and bad calls to mel endpoint

* minor import cleanup

---------

Co-authored-by: jc.durbin <jc.durbin@ardanis.com>
This commit is contained in:
Mckay Wrigley
2023-04-10 21:10:18 -06:00
committed by GitHub
parent 68c9cd4bd8
commit 6500db9c1c
128 changed files with 3666 additions and 3053 deletions
-6
View File
@@ -23,14 +23,8 @@
"click if using a .env.local file": ".env.local انقر إذا كنت تستخدم ملف",
"Message limit is {{maxLength}} characters. You have entered {{valueLength}} characters.": "حرفًا {{maxLength}} حد الرسالة هو {{valueLength}} لقد أدخلت ",
"Please enter a message": "يرجى إدخال رسالة",
"Chatbot UI is an advanced chatbot kit for OpenAI's chat models aiming to mimic ChatGPT's interface and functionality.": "Chatbot UI هي مجموعة متقدمة للدردشة تستخدم",
"Are you sure you want to clear all messages?": "هل أنت متأكد أنك تريد مسح كافة الرسائل؟"
+4 -4
View File
@@ -1,5 +1,5 @@
{
"Copy code": "نسخ الكود",
"Copied!": "تم النسخ!",
"Enter file name": "أدخل اسم الملف"
}
"Copy code": "نسخ الكود",
"Copied!": "تم النسخ!",
"Enter file name": "أدخل اسم الملف"
}
+1 -1
View File
@@ -9,4 +9,4 @@
"Prompt": "مطلب",
"Prompt content. Use {{}} to denote a variable. Ex: {{name}} is a {{adjective}} {{noun}}": "محتوى المطلب. استخدم {{}} للإشارة إلى متغير. مثال: {{الاسم}} هي {{صفة}} {{اسم}}",
"Save": "حفظ"
}
}
+1 -1
View File
@@ -10,4 +10,4 @@
"Export data": "تصدير المحادثات",
"Dark mode": "الوضع الداكن",
"Light mode": "الوضع الفاتح"
}
}