Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/#117 crdt 라이브러리 개선 #118

Merged
merged 4 commits into from
Nov 14, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
feat: CRDT - WorkSpace 클래스 생성
hyonun321 committed Nov 14, 2024
commit f5c0c3219e29630cf51e7a702116bdf74b30f6fc
15 changes: 15 additions & 0 deletions @noctaCrdt/WorkSpace.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { WorkSpace as WorkSpaceInterface } from "./Interfaces";
import { Page } from "./Page";

export class WorkSpace implements WorkSpaceInterface {
id: string;
pageList: Page[];
authUser: object;

constructor(id: string, pageList: Page[]) {
this.id = id;
this.pageList = pageList;
this.authUser = new Map();
// 직렬화, 역직렬화 메서드 추가
}
}