This commit is contained in:
Brendan Allan 2024-04-12 11:02:42 +08:00 committed by GitHub
parent c1e3f47f7d
commit 785dd74297
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 3 deletions

View file

@ -1,5 +1,4 @@
import { useMemo } from 'react'; import { useMemo } from 'react';
import { stringify } from 'uuid';
import { import {
CRDTOperation, CRDTOperation,
CRDTOperationData, CRDTOperationData,
@ -11,7 +10,7 @@ import { Button } from '@sd/ui';
import { useRouteTitle } from '~/hooks/useRouteTitle'; import { useRouteTitle } from '~/hooks/useRouteTitle';
type MessageGroup = { type MessageGroup = {
model: string; model: number;
id: string; id: string;
messages: { data: CRDTOperationData; timestamp: number }[]; messages: { data: CRDTOperationData; timestamp: number }[];
}; };

View file

@ -157,7 +157,7 @@ export type Backup = ({ id: string; timestamp: string; library_id: string; libra
export type BuildInfo = { version: string; commit: string } export type BuildInfo = { version: string; commit: string }
export type CRDTOperation = { instance: string; timestamp: number; model: string; record_id: JsonValue; data: CRDTOperationData } export type CRDTOperation = { instance: string; timestamp: number; model: number; record_id: JsonValue; data: CRDTOperationData }
export type CRDTOperationData = "c" | { u: { field: string; value: JsonValue } } | "d" export type CRDTOperationData = "c" | { u: { field: string; value: JsonValue } } | "d"