touchstudy-core 0.1.19 → 0.1.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,4 +6,4 @@ export declare const getMessagesByConversation: (conversationId: number, filter:
|
|
6
6
|
export declare const completeConversation: (conversationId: number) => Promise<import("axios").AxiosResponse<any, any>>;
|
7
7
|
export declare const apiMarkReadMessage: (conversationId: number, messageId: number) => Promise<import("axios").AxiosResponse<any, any>>;
|
8
8
|
export declare const apiGetConversationByUserId: (userId: number) => Promise<import("axios").AxiosResponse<any, any>>;
|
9
|
-
export declare const
|
9
|
+
export declare const apiUploadImageFile: (file: FormData) => Promise<import("axios").AxiosResponse<any, any>>;
|
package/dist/index.js
CHANGED
@@ -1454,6 +1454,7 @@ var student_phone_number = "학생 전화번호";
|
|
1454
1454
|
var parent_phone_number = "학부모 전화번호";
|
1455
1455
|
var update_textbook_title = "교과서 제목 업데이트";
|
1456
1456
|
var invalid_weekly_day_time = "주간 요일 시간이 잘못되었습니다";
|
1457
|
+
var no_image = "이미지 없음";
|
1457
1458
|
var lang_ko = {
|
1458
1459
|
problem_solving: problem_solving,
|
1459
1460
|
my_story: my_story,
|
@@ -1695,7 +1696,8 @@ var lang_ko = {
|
|
1695
1696
|
student_phone_number: student_phone_number,
|
1696
1697
|
parent_phone_number: parent_phone_number,
|
1697
1698
|
update_textbook_title: update_textbook_title,
|
1698
|
-
invalid_weekly_day_time: invalid_weekly_day_time
|
1699
|
+
invalid_weekly_day_time: invalid_weekly_day_time,
|
1700
|
+
no_image: no_image
|
1699
1701
|
};
|
1700
1702
|
|
1701
1703
|
var problem_solving$1 = "Problem Solving";
|
@@ -1975,6 +1977,7 @@ var student_phone_number$1 = "Student Phone Number";
|
|
1975
1977
|
var parent_phone_number$1 = "Parent Phone Number";
|
1976
1978
|
var update_textbook_title$1 = "Update textbook title";
|
1977
1979
|
var invalid_weekly_day_time$1 = "Invalid weekly day time";
|
1980
|
+
var no_image$1 = "No image";
|
1978
1981
|
var lang_en = {
|
1979
1982
|
problem_solving: problem_solving$1,
|
1980
1983
|
my_story: my_story$1,
|
@@ -2250,7 +2253,8 @@ var lang_en = {
|
|
2250
2253
|
student_phone_number: student_phone_number$1,
|
2251
2254
|
parent_phone_number: parent_phone_number$1,
|
2252
2255
|
update_textbook_title: update_textbook_title$1,
|
2253
|
-
invalid_weekly_day_time: invalid_weekly_day_time$1
|
2256
|
+
invalid_weekly_day_time: invalid_weekly_day_time$1,
|
2257
|
+
no_image: no_image$1
|
2254
2258
|
};
|
2255
2259
|
|
2256
2260
|
i18n.use(reactI18next.initReactI18next).init({
|
@@ -3161,8 +3165,8 @@ var getMessagesByConversation = function getMessagesByConversation(conversationI
|
|
3161
3165
|
var completeConversation = function completeConversation(conversationId) {
|
3162
3166
|
return api.post(CONVERSATION_URL + "/" + conversationId + "/finish");
|
3163
3167
|
};
|
3164
|
-
var
|
3165
|
-
return apiUpload.post(BASE_URL + "/api/file/
|
3168
|
+
var apiUploadImageFile = function apiUploadImageFile(file) {
|
3169
|
+
return apiUpload.post(BASE_URL + "/api/file/images", file);
|
3166
3170
|
};
|
3167
3171
|
|
3168
3172
|
var useDialog = function useDialog() {
|
@@ -3668,7 +3672,7 @@ var useChatContainer = function useChatContainer(props) {
|
|
3668
3672
|
return _catch(function () {
|
3669
3673
|
var formData = new FormData();
|
3670
3674
|
formData.append("upload", file);
|
3671
|
-
return Promise.resolve(
|
3675
|
+
return Promise.resolve(apiUploadImageFile(formData)).then(function (res) {
|
3672
3676
|
var _res$data;
|
3673
3677
|
setSelectedFile({
|
3674
3678
|
content: res === null || res === void 0 ? void 0 : (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.url
|