mirror of
https://github.com/AppFlowy-IO/AppFlowy-Web.git
synced 2025-11-28 18:28:02 +08:00
* new sync protocolt * refresh outline when folder change was detected * add 250ms debounce for yjs doc update emits * fix refresh outline on folder change * remove existing SyncManager * added update timestamp to lastUpdatedCollab info * turn off http fetch in get doc page * fix empty state vector binary parsing * return existing sync context if possible * update * chore: load workspace database data before loadview * chore: fixed the issue of database rows can not update * add awareness to RegisterSyncContext type def * chore: remove redundant logs * chore: add display of collaborative users * chore: display cursors * chore: setup web socket reconnect options * chore: init sync context only once * revert reconnect * chore: add blur * chore: cache device id * revert storage device id * chore: refactor remote selection rendering and add cursor animation * chore: refactor remote selection rendering * chore: add blur * chore: update cursor display logic, add device ID, optimize Yjs event handling * chore: add cross-tab sync via broadcast channel * chore: add text application logic, optimize selection transform handling, update ESLint rules * chore: fix lint * chore: others * add heartbeat and ready state logging * chore: add reconnect and listen connecting * chore: fix conneting banner * chore: modified the logic of adding recent * echo-based heartbeat * chore: remove condition of render cursors * chore: modified generate cursor color * chore: fix some test issues * chore: use jest mock timers in sync tests * chore: fix jest issue * chore: fix the lint issue --------- Co-authored-by: Kilu <lu@appflowy.io>
19 lines
403 B
TypeScript
19 lines
403 B
TypeScript
// Mock for lodash-es module
|
|
const isEqual = jest.fn((a: any, b: any) => {
|
|
return true;
|
|
});
|
|
|
|
const debounce = jest.fn((func: Function, wait?: number) => {
|
|
const debouncedFn = jest.fn((...args: any[]) => {
|
|
return func(...args);
|
|
});
|
|
|
|
debouncedFn.cancel = jest.fn();
|
|
debouncedFn.flush = jest.fn(() => func());
|
|
|
|
return debouncedFn;
|
|
});
|
|
|
|
export default isEqual;
|
|
export { isEqual, debounce };
|