@univerjs-pro/collaboration-client-ui 1.1.0 → 1.3.0
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/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/pl-PL.js +1 -1
- package/lib/cjs/locale/pt-BR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-HK.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ar-SA.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/id-ID.js +1 -1
- package/lib/es/locale/it-IT.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/pl-PL.js +1 -1
- package/lib/es/locale/pt-BR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-HK.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.css +4 -0
- package/lib/index.js +1 -1
- package/lib/locale/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/id-ID.js +1 -1
- package/lib/locale/it-IT.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +1 -1
- package/lib/locale/pt-BR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-HK.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/types/config/config.d.ts +3 -3
- package/lib/types/controllers/collaboration-client-ui.controller.d.ts +29 -3
- package/lib/types/controllers/snapshot-loading/snapshot-loading.controller.d.ts +2 -6
- package/lib/types/index.d.ts +0 -1
- package/lib/types/locale/en-US.d.ts +10 -0
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/id-ID.js +1 -1
- package/lib/umd/locale/it-IT.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/pl-PL.js +1 -1
- package/lib/umd/locale/pt-BR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +17 -18
- package/lib/types/controllers/data-loader/data-loader.controller.d.ts +0 -17
- package/lib/types/services/url/url.service.d.ts +0 -12
- package/lib/types/services/url/web-url.service.d.ts +0 -10
package/lib/locale/vi-VN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x2e1bc2=_0x1875;function _0x1875(_0x3adf80,_0x1a8762){_0x3adf80=_0x3adf80-0xa2;const _0x17c429=_0x17c4();let _0x1875da=_0x17c429[_0x3adf80];return _0x1875da;}(function(_0x41ed14,_0x38392f){const _0x50a367=_0x1875,_0x4fcea2=_0x41ed14();while(!![]){try{const _0x5bbeb6=parseInt(_0x50a367(0xaf))/0x1+parseInt(_0x50a367(0xae))/0x2+-parseInt(_0x50a367(0xbf))/0x3*(-parseInt(_0x50a367(0xc2))/0x4)+parseInt(_0x50a367(0xac))/0x5*(parseInt(_0x50a367(0xa5))/0x6)+parseInt(_0x50a367(0xbb))/0x7*(-parseInt(_0x50a367(0xb5))/0x8)+parseInt(_0x50a367(0xa6))/0x9+-parseInt(_0x50a367(0xc0))/0xa*(parseInt(_0x50a367(0xab))/0xb);if(_0x5bbeb6===_0x38392f)break;else _0x4fcea2['push'](_0x4fcea2['shift']());}catch(_0x5ed3a9){_0x4fcea2['push'](_0x4fcea2['shift']());}}}(_0x17c4,0xd1ced));const e={'collaboration-client-ui':{'collabClient':{'tooltip':{'reconnect':_0x2e1bc2(0xba)}},'collabStatus':{'fetchMiss':_0x2e1bc2(0xbc),'conflict':'Xung\x20đột\x20chỉnh\x20sửa','notCollab':_0x2e1bc2(0xad),'synced':_0x2e1bc2(0xaa),'syncing':_0x2e1bc2(0xb8),'offline':'Ngoại\x20tuyến,\x20các\x20chỉnh\x20sửa\x20sẽ\x20được\x20lưu\x20cục\x20bộ'},'snapshotLoading':{'timeout':'Quá\x20trình\x20tải\x20dữ\x20liệu\x20đã\x20dừng\x20ở\x20{0}/{1}.\x20Hãy\x20làm\x20mới\x20trang\x20để\x20thử\x20lại.','refresh':'Làm\x20mới\x20trang'},'session':{'connection-failed':_0x2e1bc2(0xb2),'will-retry':_0x2e1bc2(0xb4),'room-full':_0x2e1bc2(0xa4),'collaboration-timeout':_0x2e1bc2(0xa7)},'conflict':{'processing':_0x2e1bc2(0xc1),'clearFailed':'Không\x20thể\x20xóa\x20dữ\x20liệu\x20xung\x20đột\x20cục\x20bộ.\x20Tải\x20lại\x20có\x20thể\x20khôi\x20phục\x20dữ\x20liệu\x20không\x20hợp\x20lệ.\x20Vui\x20lòng\x20thử\x20lại.','retry':'Thử\x20lại\x20và\x20tải\x20lại','title':_0x2e1bc2(0xbe),'content':'Có\x20sự\x20xung\x20đột\x20giữa\x20bản\x20sao\x20cục\x20bộ\x20của\x20bạn\x20và\x20bản\x20sao\x20trên\x20máy\x20chủ\x20nên\x20không\x20thể\x20tiếp\x20tục\x20đồng\x20bộ.\x20Tải\x20lại\x20sẽ\x20tải\x20nội\x20dung\x20mới\x20nhất\x20từ\x20máy\x20chủ;\x20các\x20chỉnh\x20sửa\x20cục\x20bộ\x20của\x20bạn\x20sẽ\x20bị\x20hủy.'},'permission':{'title':_0x2e1bc2(0xb3),'content':_0x2e1bc2(0xb1)},'remoteRevert':{'title':_0x2e1bc2(0xbd),'content':_0x2e1bc2(0xb9)},'license':{'title':_0x2e1bc2(0xa9),'unit-type-rejected':_0x2e1bc2(0xa2),'editing-connections-exceeded':_0x2e1bc2(0xb6),'domain-rejected':_0x2e1bc2(0xa3)},'collaboration':{'offline-data-not-saved':_0x2e1bc2(0xb0),'single-unit':{'warning':'Bạn\x20đã\x20mở\x20cùng\x20một\x20tệp\x20trong\x20một\x20tab\x20khác.\x20Để\x20tránh\x20mất\x20dữ\x20liệu,\x20bạn\x20không\x20thể\x20chỉnh\x20sửa\x20trên\x20tab\x20này.'},'closeRoom':_0x2e1bc2(0xb7)},'auth':{'needGotoLoginAlert':_0x2e1bc2(0xa8)}}};export{e as default};function _0x17c4(){const _0x3b77c9=['Lỗi\x20xác\x20thực','Kết\x20nối\x20thất\x20bại,\x20chúng\x20tôi\x20sẽ\x20thử\x20lại\x20sau\x20một\x20lát.','247664PqyyzH','Số\x20kết\x20nối\x20chỉnh\x20sửa\x20đã\x20đạt\x20giới\x20hạn\x20của\x20giấy\x20phép.\x20Đang\x20chờ\x20chỗ\x20trống;\x20chỉnh\x20sửa\x20của\x20bạn\x20được\x20lưu\x20cục\x20bộ.','Quyền\x20chỉnh\x20sửa\x20đã\x20bị\x20thu\x20hồi\x20vì\x20phòng\x20cộng\x20tác\x20đã\x20đóng.','Đang\x20đồng\x20bộ...','Một\x20cộng\x20tác\x20viên\x20khác\x20đã\x20khôi\x20phục\x20tài\x20liệu\x20về\x20phiên\x20bản\x20trước.\x20Làm\x20mới\x20để\x20tải\x20nội\x20dung\x20đã\x20khôi\x20phục.','Nhấp\x20để\x20kết\x20nối\x20lại','7ChSoRh','Đang\x20đồng\x20bộ\x20dữ\x20liệu\x20máy\x20chủ...','Tài\x20liệu\x20đã\x20được\x20khôi\x20phục\x20về\x20phiên\x20bản\x20trước','Xung\x20đột\x20cộng\x20tác','388890ZZjMXC','30GtYKsp','Đang\x20xử\x20lý\x20xung\x20đột\x20cộng\x20tác…','4BqneOg','Giấy\x20phép\x20không\x20bao\x20gồm\x20cộng\x20tác\x20trên\x20loại\x20tài\x20liệu\x20này\x20nên\x20không\x20thể\x20tiếp\x20tục\x20đồng\x20bộ.\x20Tải\x20lại\x20trang\x20sẽ\x20nạp\x20nội\x20dung\x20mới\x20nhất\x20từ\x20máy\x20chủ;\x20các\x20chỉnh\x20sửa\x20cục\x20bộ\x20sẽ\x20bị\x20bỏ.','Tên\x20miền\x20này\x20không\x20được\x20giấy\x20phép\x20cho\x20phép\x20nên\x20cộng\x20tác\x20đã\x20dừng.\x20Chỉnh\x20sửa\x20của\x20bạn\x20được\x20lưu\x20cục\x20bộ.','Phòng\x20cộng\x20tác\x20đã\x20đầy.\x20Các\x20chỉnh\x20sửa\x20của\x20bạn\x20sẽ\x20được\x20lưu\x20cục\x20bộ.','95244RneKax','14826618bFDKnu','Hết\x20thời\x20gian\x20lưu,\x20đang\x20thử\x20lại…','Phiên\x20đăng\x20nhập\x20của\x20bạn\x20đã\x20hết\x20hạn,\x20nhấp\x20OK\x20để\x20đăng\x20nhập\x20lại,\x20nhấp\x20Hủy\x20để\x20lưu\x20các\x20chỉnh\x20sửa\x20cục\x20bộ\x20của\x20bạn.','Giới\x20hạn\x20giấy\x20phép','Đã\x20đồng\x20bộ','7776076MKQiDI','60zNWNUW','Tệp\x20cục\x20bộ','1092798mmYlSC','497160AKTCqh','Bạn\x20có\x20các\x20chỉnh\x20sửa\x20ngoại\x20tuyến\x20chưa\x20được\x20lưu\x20vào\x20máy\x20chủ.\x20Vui\x20lòng\x20kiểm\x20tra\x20mạng\x20của\x20bạn\x20và\x20thử\x20lại.','Hành\x20động\x20của\x20bạn\x20xung\x20đột\x20với\x20quyền\x20của\x20máy\x20chủ\x20nên\x20không\x20thể\x20tiếp\x20tục\x20đồng\x20bộ.\x20Tải\x20lại\x20sẽ\x20tải\x20nội\x20dung\x20mới\x20nhất\x20từ\x20máy\x20chủ;\x20các\x20chỉnh\x20sửa\x20cục\x20bộ\x20của\x20bạn\x20sẽ\x20bị\x20hủy.','Kết\x20nối\x20thất\x20bại,\x20vui\x20lòng\x20kiểm\x20tra\x20mạng\x20của\x20bạn.'];_0x17c4=function(){return _0x3b77c9;};return _0x17c4();}
|
package/lib/locale/zh-CN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0xec741f=_0x5ad3;function _0x5ad3(_0x26b2f9,_0x5277fc){_0x26b2f9=_0x26b2f9-0x1d7;const _0x5c302e=_0x5c30();let _0x5ad3a2=_0x5c302e[_0x26b2f9];return _0x5ad3a2;}(function(_0x28cd06,_0x2f1946){const _0x9962b7=_0x5ad3,_0x1c3192=_0x28cd06();while(!![]){try{const _0x564769=parseInt(_0x9962b7(0x1f5))/0x1+-parseInt(_0x9962b7(0x1de))/0x2*(parseInt(_0x9962b7(0x1ef))/0x3)+-parseInt(_0x9962b7(0x1d8))/0x4*(parseInt(_0x9962b7(0x1db))/0x5)+parseInt(_0x9962b7(0x1ee))/0x6*(parseInt(_0x9962b7(0x1e8))/0x7)+-parseInt(_0x9962b7(0x1ec))/0x8*(-parseInt(_0x9962b7(0x1e0))/0x9)+-parseInt(_0x9962b7(0x1dd))/0xa+parseInt(_0x9962b7(0x1d9))/0xb;if(_0x564769===_0x2f1946)break;else _0x1c3192['push'](_0x1c3192['shift']());}catch(_0x330919){_0x1c3192['push'](_0x1c3192['shift']());}}}(_0x5c30,0x24068));function _0x5c30(){const _0x487fc4=['904210FXdRml','2KERWRS','重试并刷新','27sqLVgl','你有离线编辑未保存到服务器,请检查网络后重试。','由于协同房间被关闭,编辑权限被收回。','编辑冲突','正在拉取服务端数据...','你在另一个标签页打开了同一个文件。为了避免数据丢失,这个标签页的编辑行为将会被限制。','已离线,编辑将在本地缓存','你的登录已过期,点击确认重新登陆,点击取消去保存你的本地编辑。','19831WaatIC','其他协作者将文档还原到了历史版本。刷新后将加载还原后的内容。','文档已还原到历史版本','保存中...','560280LPNQYo','协同冲突','12qVqPOa','881994KhNkhn','协同连接数已达\x20License\x20上限,正在等待名额,编辑已在本地缓存。','已同步','权限错误','保存超时,正在重试','无法清除本地冲突数据。刷新页面可能再次恢复异常数据,请重试。','161310NtdTIY','连接失败,将在一会儿之后重试连接','你的本地文档和服务器的文档存在冲突,无法继续同步。刷新后将加载服务器上的最新内容,本地编辑将丢弃。','本地文件','4noNfJL','3036385reQvwi','数据加载停留在\x20{0}/{1},请刷新页面后重试。','605685QLurEj','点击重新连接'];_0x5c30=function(){return _0x487fc4;};return _0x5c30();}const e={'collaboration-client-ui':{'collabClient':{'tooltip':{'reconnect':_0xec741f(0x1dc)}},'collabStatus':{'fetchMiss':_0xec741f(0x1e4),'conflict':_0xec741f(0x1e3),'notCollab':_0xec741f(0x1d7),'synced':_0xec741f(0x1f1),'syncing':_0xec741f(0x1eb),'offline':_0xec741f(0x1e6)},'snapshotLoading':{'timeout':_0xec741f(0x1da),'refresh':'刷新页面'},'session':{'connection-failed':'连接失败,请检查你的网络','will-retry':_0xec741f(0x1f6),'room-full':'协同房间已满,你的编辑将在本地缓存','collaboration-timeout':_0xec741f(0x1f3)},'conflict':{'processing':'正在处理协同冲突…','clearFailed':_0xec741f(0x1f4),'retry':_0xec741f(0x1df),'title':_0xec741f(0x1ed),'content':_0xec741f(0x1f7)},'permission':{'title':_0xec741f(0x1f2),'content':'你的操作和服务器的权限存在冲突,无法继续同步。刷新后将加载服务器上的最新内容,本地编辑将丢弃。'},'remoteRevert':{'title':_0xec741f(0x1ea),'content':_0xec741f(0x1e9)},'license':{'title':'授权限制','unit-type-rejected':'当前\x20License\x20不包含此类型文档的协同授权,无法继续同步。刷新后将加载服务器上的最新内容,本地编辑将丢弃。','editing-connections-exceeded':_0xec741f(0x1f0),'domain-rejected':'当前域名未获\x20License\x20授权,协同已停止,编辑将在本地缓存。'},'collaboration':{'offline-data-not-saved':_0xec741f(0x1e1),'single-unit':{'warning':_0xec741f(0x1e5)},'closeRoom':_0xec741f(0x1e2)},'auth':{'needGotoLoginAlert':_0xec741f(0x1e7)}}};export{e as default};
|
package/lib/locale/zh-HK.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x4a7efa=_0x33f5;(function(_0x5f3cb8,_0x145eb0){const _0x1891ea=_0x33f5,_0x27e12e=_0x5f3cb8();while(!![]){try{const _0x1a9414=parseInt(_0x1891ea(0x126))/0x1*(-parseInt(_0x1891ea(0x12b))/0x2)+parseInt(_0x1891ea(0x12e))/0x3*(-parseInt(_0x1891ea(0x123))/0x4)+-parseInt(_0x1891ea(0x129))/0x5+parseInt(_0x1891ea(0x142))/0x6*(-parseInt(_0x1891ea(0x12d))/0x7)+-parseInt(_0x1891ea(0x125))/0x8*(parseInt(_0x1891ea(0x128))/0x9)+-parseInt(_0x1891ea(0x13a))/0xa*(-parseInt(_0x1891ea(0x139))/0xb)+-parseInt(_0x1891ea(0x131))/0xc*(-parseInt(_0x1891ea(0x137))/0xd);if(_0x1a9414===_0x145eb0)break;else _0x27e12e['push'](_0x27e12e['shift']());}catch(_0x532e78){_0x27e12e['push'](_0x27e12e['shift']());}}}(_0x29c4,0xe3008));function _0x33f5(_0x183dbf,_0x35fcbf){_0x183dbf=_0x183dbf-0x123;const _0x29c4d3=_0x29c4();let _0x33f55d=_0x29c4d3[_0x183dbf];return _0x33f55d;}const e={'collaboration-client-ui':{'collabClient':{'tooltip':{'reconnect':_0x4a7efa(0x134)}},'collabStatus':{'fetchMiss':_0x4a7efa(0x130),'conflict':_0x4a7efa(0x138),'notCollab':_0x4a7efa(0x144),'synced':_0x4a7efa(0x143),'syncing':_0x4a7efa(0x12a),'offline':_0x4a7efa(0x127)},'snapshotLoading':{'timeout':'資料載入停留在\x20{0}/{1},請重新整理頁面後再試。','refresh':'重新整理頁面'},'session':{'connection-failed':'連線失敗,請檢查您的網絡。','will-retry':_0x4a7efa(0x13f),'room-full':_0x4a7efa(0x13b),'collaboration-timeout':_0x4a7efa(0x13c)},'conflict':{'processing':'正在處理協同衝突…','clearFailed':_0x4a7efa(0x133),'retry':'重試並重新整理','title':_0x4a7efa(0x141),'content':_0x4a7efa(0x140)},'permission':{'title':_0x4a7efa(0x132),'content':'您的操作與伺服器權限存在衝突,無法繼續同步。重新整理後將載入伺服器上的最新內容,本機編輯將被捨棄。'},'remoteRevert':{'title':'文件已還原至歷史版本','content':_0x4a7efa(0x12f)},'license':{'title':'授權限制','unit-type-rejected':_0x4a7efa(0x124),'editing-connections-exceeded':'協同連線數已達\x20License\x20上限,正在等待名額,編輯已在本機快取。','domain-rejected':_0x4a7efa(0x13d)},'collaboration':{'offline-data-not-saved':_0x4a7efa(0x12c),'single-unit':{'warning':_0x4a7efa(0x136)},'closeRoom':_0x4a7efa(0x13e)},'auth':{'needGotoLoginAlert':_0x4a7efa(0x135)}}};function _0x29c4(){const _0x1a4876=['3AZKzFI','其他協作者將文件還原至歷史版本。重新整理後將載入還原後的內容。','正在擷取伺服器資料...','28354224UbxvqM','認證錯誤','無法清除本機衝突資料。重新整理頁面可能再次還原異常資料,請重試。','點擊重新連線','您的登入已過期,點擊「確定」重新登入,點擊「取消」儲存您的本機編輯。','您在另一個分頁開啟了同一個檔案。為避免資料遺失,此分頁將無法進行編輯。','26GTuczn','編輯衝突','6567jtTnkj','17900XXlNvb','協作房間已滿,您的編輯將暫存於本機。','儲存逾時,正在重試','目前網域未獲\x20License\x20授權,協同已停止,編輯將在本機快取。','由於協作房間已關閉,編輯權限已被收回。','連線失敗,將在稍後重試連線。','您的本機文件與伺服器文件存在衝突,無法繼續同步。重新整理後將載入伺服器上的最新內容,本機編輯將被捨棄。','協作衝突','6WvozTO','已同步','本機檔案','3465708fVUEGo','目前\x20License\x20不包含此類型文件的協同授權,無法繼續同步。重新整理後將載入伺服器上的最新內容,本機編輯將捨棄。','8925328ADMMBt','874333VIJhpD','已離線,編輯將儲存在本機','9zigPzN','847965sEPIzj','同步中...','2tABTZW','您有未儲存至伺服器的離線編輯,請檢查網絡後重試。','12869605lxQWRZ'];_0x29c4=function(){return _0x1a4876;};return _0x29c4();}export{e as default};
|
package/lib/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x18c4a2=_0x30c6;function _0x30c6(_0x1daa35,_0x21e630){_0x1daa35=_0x1daa35-0x155;const _0x43ce32=_0x43ce();let _0x30c667=_0x43ce32[_0x1daa35];return _0x30c667;}(function(_0x481c43,_0x2d374e){const _0x4c421c=_0x30c6,_0x2812ce=_0x481c43();while(!![]){try{const _0x14b4c4=-parseInt(_0x4c421c(0x174))/0x1*(-parseInt(_0x4c421c(0x160))/0x2)+-parseInt(_0x4c421c(0x176))/0x3+-parseInt(_0x4c421c(0x164))/0x4+-parseInt(_0x4c421c(0x158))/0x5*(parseInt(_0x4c421c(0x16f))/0x6)+parseInt(_0x4c421c(0x16d))/0x7*(parseInt(_0x4c421c(0x175))/0x8)+-parseInt(_0x4c421c(0x163))/0x9*(parseInt(_0x4c421c(0x15c))/0xa)+parseInt(_0x4c421c(0x155))/0xb;if(_0x14b4c4===_0x2d374e)break;else _0x2812ce['push'](_0x2812ce['shift']());}catch(_0x2953eb){_0x2812ce['push'](_0x2812ce['shift']());}}}(_0x43ce,0x666c2));const e={'collaboration-client-ui':{'collabClient':{'tooltip':{'reconnect':_0x18c4a2(0x15e)}},'collabStatus':{'fetchMiss':_0x18c4a2(0x171),'conflict':'編輯衝突','notCollab':_0x18c4a2(0x16b),'synced':_0x18c4a2(0x173),'syncing':'同步中...','offline':_0x18c4a2(0x15f)},'snapshotLoading':{'timeout':_0x18c4a2(0x172),'refresh':_0x18c4a2(0x178)},'session':{'connection-failed':_0x18c4a2(0x161),'will-retry':_0x18c4a2(0x167),'room-full':_0x18c4a2(0x16e),'collaboration-timeout':_0x18c4a2(0x177)},'conflict':{'processing':_0x18c4a2(0x16a),'clearFailed':_0x18c4a2(0x15b),'retry':_0x18c4a2(0x156),'title':_0x18c4a2(0x166),'content':'您的本機文件與伺服器文件存在衝突,無法繼續同步。重新整理後將載入伺服器上的最新內容,本機編輯將被捨棄。'},'permission':{'title':_0x18c4a2(0x162),'content':_0x18c4a2(0x170)},'remoteRevert':{'title':'文件已還原至歷史版本','content':_0x18c4a2(0x15a)},'license':{'title':_0x18c4a2(0x157),'unit-type-rejected':_0x18c4a2(0x165),'editing-connections-exceeded':_0x18c4a2(0x16c),'domain-rejected':_0x18c4a2(0x169)},'collaboration':{'offline-data-not-saved':_0x18c4a2(0x168),'single-unit':{'warning':'您在另一個分頁開啟了同一個檔案。為避免資料遺失,此分頁將無法進行編輯。'},'closeRoom':_0x18c4a2(0x15d)},'auth':{'needGotoLoginAlert':_0x18c4a2(0x159)}}};export{e as default};function _0x43ce(){const _0x4a0dc2=['目前\x20License\x20不包含此類型文件的協同授權,無法繼續同步。重新整理後將載入伺服器上的最新內容,本機編輯將捨棄。','協作衝突','連線失敗,將在稍後重試連線。','您有未儲存至伺服器的離線編輯,請檢查網路後重試。','目前網域未獲\x20License\x20授權,協同已停止,編輯將在本機快取。','正在處理協同衝突…','本機檔案','協同連線數已達\x20License\x20上限,正在等待名額,編輯已在本機快取。','10255ZxqyEU','協作房間已滿,您的編輯將暫存於本機。','463476QXwIXa','您的操作與伺服器權限存在衝突,無法繼續同步。重新整理後將載入伺服器上的最新內容,本機編輯將被捨棄。','正在擷取伺服器資料...','資料載入停留在\x20{0}/{1},請重新整理頁面後再試。','已同步','2281tycNmu','2392hcMQYh','387627bFOqDb','儲存逾時,正在重試','重新整理頁面','17247725wcPjvf','重試並重新整理','授權限制','45GfGfOy','您的登入已過期,點擊「確定」重新登入,點擊「取消」儲存您的本機編輯。','其他協作者將文件還原至歷史版本。重新整理後將載入還原後的內容。','無法清除本機衝突資料。重新整理頁面可能再次還原異常資料,請重試。','3860230dnXrog','由於協作房間已關閉,編輯權限已被收回。','點擊重新連線','已離線,編輯將儲存在本機','182fAEuRu','連線失敗,請檢查您的網路。','認證錯誤','9gQCGnV','2334452nDcPPw'];_0x43ce=function(){return _0x4a0dc2;};return _0x43ce();}
|
|
@@ -20,11 +20,11 @@ export interface IUniverCollaborationClientUIConfig {
|
|
|
20
20
|
*/
|
|
21
21
|
enableFrontendLog?: boolean;
|
|
22
22
|
/**
|
|
23
|
-
* Whether
|
|
24
|
-
*
|
|
23
|
+
* Whether the plugin shows its conflict notification (a title and text per reason, with a "reload page" action).
|
|
24
|
+
* Set it to `false` to show nothing and handle the `CollaborationConflict` event in the host.
|
|
25
25
|
*
|
|
26
26
|
* @default true
|
|
27
27
|
*/
|
|
28
|
-
|
|
28
|
+
enableDefaultConflictUI?: boolean;
|
|
29
29
|
}
|
|
30
30
|
export declare const defaultPluginConfig: IUniverCollaborationClientUIConfig;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CollaborationUIEventService, ILocalCacheService } from '@univerjs-pro/collaboration-client';
|
|
2
|
-
import { Disposable, LocaleService } from '@univerjs/core';
|
|
1
|
+
import { CollaborationController, CollaborationUIEventService, ILocalCacheService } from '@univerjs-pro/collaboration-client';
|
|
2
|
+
import { Disposable, IConfigService, LocaleService } from '@univerjs/core';
|
|
3
3
|
import { IBeforeCloseService, IMessageService, INotificationService } from '@univerjs/ui';
|
|
4
4
|
/**
|
|
5
5
|
* This controller is responsible for the general UI of the collaboration client.
|
|
@@ -11,11 +11,37 @@ export declare class CollaborationClientUIController extends Disposable {
|
|
|
11
11
|
protected readonly _messageService: IMessageService;
|
|
12
12
|
private readonly _notificationService;
|
|
13
13
|
protected readonly _localeService: LocaleService;
|
|
14
|
+
private readonly _collaborationController;
|
|
15
|
+
private readonly _configService;
|
|
14
16
|
private _conflictNotification;
|
|
15
17
|
private readonly _retryingConflictCacheUnitIDs;
|
|
16
|
-
|
|
18
|
+
/** Per unit, the notices shown while its changeset waits for an acknowledgement; removed once it is saved. */
|
|
19
|
+
private readonly _saveTimedOutNotices;
|
|
20
|
+
private readonly _editingConnectionsExceededNotices;
|
|
21
|
+
constructor(_beforeCloseService: IBeforeCloseService, _localCacheService: ILocalCacheService, _collaborationUIEventService: CollaborationUIEventService, _messageService: IMessageService, _notificationService: INotificationService, _localeService: LocaleService, _collaborationController: CollaborationController, _configService: IConfigService);
|
|
17
22
|
dispose(): void;
|
|
23
|
+
/**
|
|
24
|
+
* Notices about a changeset the server has not acknowledged yet, raised from its resends:
|
|
25
|
+
* - save timed out: the changeset is still unacknowledged `SAVE_TIMED_OUT_AFTER` after it was first sent,
|
|
26
|
+
* whatever caused the resend. What matters to the user is that the edits are not saved yet.
|
|
27
|
+
* - editing connections exceeded: the server asked for the resend because every editing connection of its
|
|
28
|
+
* License was in use.
|
|
29
|
+
* Each notice is shown once per unit and stays until the unit leaves the awaiting states, i.e. the edits were
|
|
30
|
+
* saved. Both can be up at the same time.
|
|
31
|
+
*/
|
|
32
|
+
private _initAwaitingNotices;
|
|
33
|
+
private _showAwaitingNotice;
|
|
34
|
+
private _removeAwaitingNotices;
|
|
18
35
|
private _setupBeforeClosingHandler;
|
|
36
|
+
/**
|
|
37
|
+
* The default handling of conflicts: a notification that names the reason and offers to reload the page.
|
|
38
|
+
* `conflict$` emits once the local edits are backed up and the offline cache is cleared, so reloading is safe
|
|
39
|
+
* from then on; until then the "processing" notice is shown. Hosts handle conflicts themselves by setting
|
|
40
|
+
* `enableDefaultConflictUI` to `false` and listening to the `CollaborationConflict` facade event, the same signal.
|
|
41
|
+
*/
|
|
42
|
+
private _initConflictHandling;
|
|
43
|
+
private _onConflict;
|
|
44
|
+
protected _reloadPage(): void;
|
|
19
45
|
private _initEvent;
|
|
20
46
|
private _showConflictProcessingNotification;
|
|
21
47
|
private _showConflictCacheClearFailedNotification;
|
|
@@ -1,24 +1,20 @@
|
|
|
1
|
-
import type { ISnapshotLoadingTimeoutState } from '../../views/components/SnapshotLoadingTimeout';
|
|
2
1
|
import { SnapshotLoadingService } from '@univerjs-pro/collaboration';
|
|
3
2
|
import { Disposable, Injector, LocaleService } from '@univerjs/core';
|
|
4
3
|
import { IMessageService, IUIPartsService } from '@univerjs/ui';
|
|
5
|
-
import {
|
|
4
|
+
import type { ISnapshotLoadingTimeoutState } from '../../views/components/SnapshotLoadingTimeout';
|
|
6
5
|
export declare class SnapshotLoadingController extends Disposable {
|
|
7
6
|
private readonly _snapshotLoadingService;
|
|
8
7
|
private readonly _messageService;
|
|
9
8
|
private readonly _localeService;
|
|
10
9
|
private readonly _injector;
|
|
11
|
-
private readonly _urlService;
|
|
12
10
|
private readonly _timeoutState$;
|
|
13
11
|
private readonly _messageIds;
|
|
14
12
|
private readonly _blockProgressWatches;
|
|
15
|
-
private _latestStates;
|
|
16
13
|
readonly timeoutState$: import("rxjs").Observable<ISnapshotLoadingTimeoutState | null>;
|
|
17
|
-
constructor(_snapshotLoadingService: SnapshotLoadingService, _messageService: IMessageService, _localeService: LocaleService, _injector: Injector, uiPartsService: IUIPartsService
|
|
14
|
+
constructor(_snapshotLoadingService: SnapshotLoadingService, _messageService: IMessageService, _localeService: LocaleService, _injector: Injector, uiPartsService: IUIPartsService);
|
|
18
15
|
dispose(): void;
|
|
19
16
|
private _updateMessage;
|
|
20
17
|
private _watchBlockProgress;
|
|
21
18
|
private _clearBlockProgressWatch;
|
|
22
19
|
private _clearTimeoutState;
|
|
23
|
-
private _isVisibleUnit;
|
|
24
20
|
}
|
package/lib/types/index.d.ts
CHANGED
|
@@ -5,6 +5,5 @@ export { UniverCollaborationClientUIPlugin } from './plugin';
|
|
|
5
5
|
export { BrowserCollaborationSocketService } from './services/collaboration-socket/collaboration-socket.service';
|
|
6
6
|
export { RemoteUniscriptService } from './services/remote-uniscript/remote-uniscript.service';
|
|
7
7
|
export { WebBrowserSingleActiveUnitService } from './services/single-active-unit/single-active-unit.service';
|
|
8
|
-
export { IURLService } from './services/url/url.service';
|
|
9
8
|
export { SheetCollabCursorShape } from './views/shapes/sheet-collab-cursor.shape';
|
|
10
9
|
export type { ISheetCollabCursorShapeProps } from './views/shapes/sheet-collab-cursor.shape';
|
|
@@ -34,6 +34,16 @@ declare const locale: {
|
|
|
34
34
|
title: string;
|
|
35
35
|
content: string;
|
|
36
36
|
};
|
|
37
|
+
remoteRevert: {
|
|
38
|
+
title: string;
|
|
39
|
+
content: string;
|
|
40
|
+
};
|
|
41
|
+
license: {
|
|
42
|
+
title: string;
|
|
43
|
+
'unit-type-rejected': string;
|
|
44
|
+
'editing-connections-exceeded': string;
|
|
45
|
+
'domain-rejected': string;
|
|
46
|
+
};
|
|
37
47
|
collaboration: {
|
|
38
48
|
'offline-data-not-saved': string;
|
|
39
49
|
'single-unit': {
|
package/lib/umd/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x4f0f(){var _0x96f30e=['object','amd','FUniver','9McMhvl','66PHLIHS','1141700SlOdtX','UniverCoreFacade','extend','1227104kbTNUn','get','1312924zauMmd','runOnServer','1482183wyfHtF','48012IMkILp','63WMdhDm','function','_injector','642152vUoCFH','5wekFTb','@univerjs/core/facade','47696gRPAsL','@univerjs-pro/collaboration-client-ui'];_0x4f0f=function(){return _0x96f30e;};return _0x4f0f();}function _0x51dc(_0x1748d4,_0x194150){_0x1748d4=_0x1748d4-0x1b7;var _0x4f0f7e=_0x4f0f();var _0x51dc97=_0x4f0f7e[_0x1748d4];return _0x51dc97;}(function(_0x540d91,_0x6e0f0c){var _0x1456c3=_0x51dc,_0x1346d3=_0x540d91();while(!![]){try{var _0x9cb63a=-parseInt(_0x1456c3(0x1c7))/0x1+-parseInt(_0x1456c3(0x1c4))/0x2+parseInt(_0x1456c3(0x1bf))/0x3+parseInt(_0x1456c3(0x1bd))/0x4*(-parseInt(_0x1456c3(0x1c5))/0x5)+-parseInt(_0x1456c3(0x1c0))/0x6*(parseInt(_0x1456c3(0x1c1))/0x7)+-parseInt(_0x1456c3(0x1bb))/0x8*(parseInt(_0x1456c3(0x1cc))/0x9)+parseInt(_0x1456c3(0x1b8))/0xa*(parseInt(_0x1456c3(0x1b7))/0xb);if(_0x9cb63a===_0x6e0f0c)break;else _0x1346d3['push'](_0x1346d3['shift']());}catch(_0x5afae4){_0x1346d3['push'](_0x1346d3['shift']());}}}(_0x4f0f,0x3eaa0),function(_0x945786,_0x8cae73){var _0x4cb30e=_0x51dc;typeof exports==_0x4cb30e(0x1c9)&&typeof module<'u'?_0x8cae73(require('@univerjs-pro/collaboration-client-ui'),require('@univerjs/core/facade')):typeof define==_0x4cb30e(0x1c2)&&define[_0x4cb30e(0x1ca)]?define([_0x4cb30e(0x1c8),_0x4cb30e(0x1c6)],_0x8cae73):(_0x945786=typeof globalThis<'u'?globalThis:_0x945786||self,_0x8cae73(_0x945786['UniverProCollaborationClientUi'],_0x945786[_0x4cb30e(0x1b9)]));}(this,function(_0x27ef97,_0x507a50){var _0x55ec34=_0x51dc,_0x7ecfb1=class extends _0x507a50[_0x55ec34(0x1cb)]{[_0x55ec34(0x1be)](_0x1aed58,_0x5920bc,..._0x3f1ca6){var _0x1d6a0b=_0x55ec34;return this[_0x1d6a0b(0x1c3)][_0x1d6a0b(0x1bc)](_0x27ef97['RemoteUniscriptService'])[_0x1d6a0b(0x1be)](_0x1aed58,_0x5920bc,{},..._0x3f1ca6);}};_0x507a50[_0x55ec34(0x1cb)][_0x55ec34(0x1ba)](_0x7ecfb1);}));
|