feat: refactoeing
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
/**
|
||||
* Per-recollection graph persistence. Re-exports from recollectionStore for backward compatibility.
|
||||
* New code should use recollectionStore (getGraph, setGraph, removeRecollectionData) directly.
|
||||
*/
|
||||
|
||||
import {
|
||||
getGraph,
|
||||
setGraph,
|
||||
removeRecollectionData,
|
||||
RECOLLECTION_FILE_EXT,
|
||||
RECOLLECTION_VERSION,
|
||||
type StoredGraphState,
|
||||
} from './recollectionStore'
|
||||
|
||||
export type { StoredGraphState }
|
||||
export { RECOLLECTION_FILE_EXT, RECOLLECTION_VERSION }
|
||||
|
||||
export function getGraphStorageKey(recollectionId: string): string {
|
||||
return `zui_graph_${recollectionId}`
|
||||
}
|
||||
|
||||
export const loadGraphFromStorage = getGraph
|
||||
export const saveGraphToStorage = setGraph
|
||||
export const removeGraphFromStorage = removeRecollectionData
|
||||
Reference in New Issue
Block a user