From 3407250e9261123958aac2a809637d6886f35d30 Mon Sep 17 00:00:00 2001 From: karimalden Date: Sat, 29 Jun 2024 12:03:49 +0300 Subject: [PATCH] add_localStorage_question --- bundle-analysis.html | 2 +- src/Components/exercise/Header.tsx | 10 ++- src/Hooks/useSaveOnDisconnect.tsx | 20 ++++-- src/Pages/question/AddPage.tsx | 72 +++++++++++-------- src/Pages/question/Model/Field/File.tsx | 2 +- src/Pages/question/Model/Malty/Add.tsx | 6 +- src/Pages/question/Model/formUtil.ts | 10 ++- src/api/Question.ts | 3 + src/api/helper/useAddMutation.ts | 11 ++- src/api/helper/useAxios.ts | 3 +- src/utils/LocalStorage.ts | 26 +++++++ src/utils/base64StringToFile.ts | 15 ++++ src/utils/setLocalStorageBaseQuestions.ts | 71 ++++++++++++++++++ src/utils/setLocalStorageQuestions.ts | 87 +++++++++++++++++++++++ 14 files changed, 291 insertions(+), 47 deletions(-) create mode 100644 src/utils/base64StringToFile.ts create mode 100644 src/utils/setLocalStorageBaseQuestions.ts create mode 100644 src/utils/setLocalStorageQuestions.ts diff --git a/bundle-analysis.html b/bundle-analysis.html index a0b5297..0f45d1c 100644 --- a/bundle-analysis.html +++ b/bundle-analysis.html @@ -4822,7 +4822,7 @@ var drawChart = (function (exports) {