@seafile/sdoc-editor 1.0.147 → 1.0.148
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.
- package/dist/basic-sdk/socket/socket-manager.js +1 -1
- package/dist/components/tip-message/index.js +11 -0
- package/package.json +1 -1
- package/public/locales/cs/sdoc-editor.json +2 -1
- package/public/locales/de/sdoc-editor.json +2 -1
- package/public/locales/en/sdoc-editor.json +2 -1
- package/public/locales/es/sdoc-editor.json +2 -1
- package/public/locales/es_AR/sdoc-editor.json +2 -1
- package/public/locales/es_MX/sdoc-editor.json +2 -1
- package/public/locales/fr/sdoc-editor.json +2 -1
- package/public/locales/it/sdoc-editor.json +2 -1
- package/public/locales/ru/sdoc-editor.json +3 -2
- package/public/locales/zh_CN/sdoc-editor.json +2 -1
|
@@ -109,7 +109,7 @@ class SocketManager {
|
|
|
109
109
|
const {
|
|
110
110
|
error_type
|
|
111
111
|
} = result;
|
|
112
|
-
if (error_type === 'load_document_content_error' || error_type === 'save_operations_to_database_error') {
|
|
112
|
+
if (error_type === 'load_document_content_error' || error_type === 'save_operations_to_database_error' || error_type === 'token_expired') {
|
|
113
113
|
// load_document_content_error: After a short-term reconnection, the content of the document fails to load
|
|
114
114
|
// save_operation_to_database_error: Save operation to database error
|
|
115
115
|
this.dispatchConnectState(error_type);
|
|
@@ -44,6 +44,16 @@ class TipMessage extends _react.default.Component {
|
|
|
44
44
|
duration: null
|
|
45
45
|
});
|
|
46
46
|
});
|
|
47
|
+
(0, _defineProperty2.default)(this, "onTokenExpiredError", msg => {
|
|
48
|
+
const {
|
|
49
|
+
t
|
|
50
|
+
} = this.props;
|
|
51
|
+
const message = t('Token_expired_Please_refresh_the_page');
|
|
52
|
+
_toast.default.closeAll();
|
|
53
|
+
_toast.default.danger(message, {
|
|
54
|
+
duration: null
|
|
55
|
+
});
|
|
56
|
+
});
|
|
47
57
|
(0, _defineProperty2.default)(this, "onPendingOpExceedLimit", () => {
|
|
48
58
|
const {
|
|
49
59
|
t
|
|
@@ -163,6 +173,7 @@ class TipMessage extends _react.default.Component {
|
|
|
163
173
|
this.unsubscribeSyncServerOpError = eventBus.subscribe('sync_server_operations_error', this.onSyncServerOperationError);
|
|
164
174
|
this.unsubscribeDocumentLoadError = eventBus.subscribe('load_document_content_error', this.onInternalServerExecError);
|
|
165
175
|
this.unsubscribeOperationsSaveError = eventBus.subscribe('save_operations_to_database_error', this.onInternalServerExecError);
|
|
176
|
+
this.unsubscribeOperationsSaveError = eventBus.subscribe('token_expired', this.onTokenExpiredError);
|
|
166
177
|
|
|
167
178
|
// local error
|
|
168
179
|
this.unsubscribePendingOpExceedLimit = eventBus.subscribe('pending_operations_exceed_limit', this.onPendingOpExceedLimit);
|
package/package.json
CHANGED
|
@@ -574,5 +574,6 @@
|
|
|
574
574
|
"Full_width_mode": "Full width mode",
|
|
575
575
|
"Video": "Video",
|
|
576
576
|
"Upload_local_video": "Upload_local_video",
|
|
577
|
-
"The_current_version_does_not_support_>5MB_video_file": "The_current_version_does_not_support_>5MB_video_file"
|
|
577
|
+
"The_current_version_does_not_support_>5MB_video_file": "The_current_version_does_not_support_>5MB_video_file",
|
|
578
|
+
"Token_expired_Please_refresh_the_page": "Token expired. Please refresh the page."
|
|
578
579
|
}
|
|
@@ -574,5 +574,6 @@
|
|
|
574
574
|
"Full_width_mode": "Full width mode",
|
|
575
575
|
"Video": "Video",
|
|
576
576
|
"Upload_local_video": "Upload_local_video",
|
|
577
|
-
"The_current_version_does_not_support_>5MB_video_file": "The_current_version_does_not_support_>5MB_video_file"
|
|
577
|
+
"The_current_version_does_not_support_>5MB_video_file": "The_current_version_does_not_support_>5MB_video_file",
|
|
578
|
+
"Token_expired_Please_refresh_the_page": "Token expired. Please refresh the page."
|
|
578
579
|
}
|
|
@@ -574,5 +574,6 @@
|
|
|
574
574
|
"Full_width_mode": "Full width mode",
|
|
575
575
|
"Video": "Video",
|
|
576
576
|
"Upload_local_video": "Upload_local_video",
|
|
577
|
-
"The_current_version_does_not_support_>5MB_video_file": "The_current_version_does_not_support_>5MB_video_file"
|
|
577
|
+
"The_current_version_does_not_support_>5MB_video_file": "The_current_version_does_not_support_>5MB_video_file",
|
|
578
|
+
"Token_expired_Please_refresh_the_page": "Token expired. Please refresh the page."
|
|
578
579
|
}
|
|
@@ -574,5 +574,6 @@
|
|
|
574
574
|
"Full_width_mode": "Full width mode",
|
|
575
575
|
"Video": "Video",
|
|
576
576
|
"Upload_local_video": "Upload_local_video",
|
|
577
|
-
"The_current_version_does_not_support_>5MB_video_file": "The_current_version_does_not_support_>5MB_video_file"
|
|
577
|
+
"The_current_version_does_not_support_>5MB_video_file": "The_current_version_does_not_support_>5MB_video_file",
|
|
578
|
+
"Token_expired_Please_refresh_the_page": "Token expired. Please refresh the page."
|
|
578
579
|
}
|
|
@@ -574,5 +574,6 @@
|
|
|
574
574
|
"Full_width_mode": "Full width mode",
|
|
575
575
|
"Video": "Video",
|
|
576
576
|
"Upload_local_video": "Upload_local_video",
|
|
577
|
-
"The_current_version_does_not_support_>5MB_video_file": "The_current_version_does_not_support_>5MB_video_file"
|
|
577
|
+
"The_current_version_does_not_support_>5MB_video_file": "The_current_version_does_not_support_>5MB_video_file",
|
|
578
|
+
"Token_expired_Please_refresh_the_page": "Token expired. Please refresh the page."
|
|
578
579
|
}
|
|
@@ -574,5 +574,6 @@
|
|
|
574
574
|
"Full_width_mode": "Full width mode",
|
|
575
575
|
"Video": "Video",
|
|
576
576
|
"Upload_local_video": "Upload_local_video",
|
|
577
|
-
"The_current_version_does_not_support_>5MB_video_file": "The_current_version_does_not_support_>5MB_video_file"
|
|
577
|
+
"The_current_version_does_not_support_>5MB_video_file": "The_current_version_does_not_support_>5MB_video_file",
|
|
578
|
+
"Token_expired_Please_refresh_the_page": "Token expired. Please refresh the page."
|
|
578
579
|
}
|
|
@@ -574,5 +574,6 @@
|
|
|
574
574
|
"Full_width_mode": "Full width mode",
|
|
575
575
|
"Video": "Vidéo",
|
|
576
576
|
"Upload_local_video": "Upload_local_video",
|
|
577
|
-
"The_current_version_does_not_support_>5MB_video_file": "The_current_version_does_not_support_>5MB_video_file"
|
|
577
|
+
"The_current_version_does_not_support_>5MB_video_file": "The_current_version_does_not_support_>5MB_video_file",
|
|
578
|
+
"Token_expired_Please_refresh_the_page": "Token expired. Please refresh the page."
|
|
578
579
|
}
|
|
@@ -574,5 +574,6 @@
|
|
|
574
574
|
"Full_width_mode": "Full width mode",
|
|
575
575
|
"Video": "Video",
|
|
576
576
|
"Upload_local_video": "Upload_local_video",
|
|
577
|
-
"The_current_version_does_not_support_>5MB_video_file": "The_current_version_does_not_support_>5MB_video_file"
|
|
577
|
+
"The_current_version_does_not_support_>5MB_video_file": "The_current_version_does_not_support_>5MB_video_file",
|
|
578
|
+
"Token_expired_Please_refresh_the_page": "Token expired. Please refresh the page."
|
|
578
579
|
}
|
|
@@ -573,6 +573,7 @@
|
|
|
573
573
|
"Five_column": "5 столбцов",
|
|
574
574
|
"Full_width_mode": "Режим полной ширины",
|
|
575
575
|
"Video": "Видео",
|
|
576
|
-
"Upload_local_video": "
|
|
577
|
-
"The_current_version_does_not_support_>5MB_video_file": "
|
|
576
|
+
"Upload_local_video": "Загрузка_локального_видео",
|
|
577
|
+
"The_current_version_does_not_support_>5MB_video_file": "Текущая_версия_не_поддерживает_видео_файл_>5_МБ",
|
|
578
|
+
"Token_expired_Please_refresh_the_page": "Token expired. Please refresh the page."
|
|
578
579
|
}
|
|
@@ -574,5 +574,6 @@
|
|
|
574
574
|
"Full_width_mode": "全宽模式",
|
|
575
575
|
"Video": "视频",
|
|
576
576
|
"Upload_local_video": "上传本地视频",
|
|
577
|
-
"The_current_version_does_not_support_>5MB_video_file": "当前版本不支持大于 5MB 的视频文件"
|
|
577
|
+
"The_current_version_does_not_support_>5MB_video_file": "当前版本不支持大于 5MB 的视频文件",
|
|
578
|
+
"Token_expired_Please_refresh_the_page": "Token已过期。请刷新页面。"
|
|
578
579
|
}
|