MCPcopy Create free account
hub / github.com/Easy-Editor/EasyEditor / savePageSchemaToLocalStorage

Function savePageSchemaToLocalStorage

examples/dashboard/src/lib/schema.ts:34–36  ·  view source on GitHub ↗
(pageId: string, schema: any)

Source from the content-addressed store, hash-verified

32}
33
34export const savePageSchemaToLocalStorage = (pageId: string, schema: any) => {
35 localStorage.setItem(getPageName(pageId), JSON.stringify(schema))
36}
37
38export const savePageInfoToLocalStorage = (info: Array<{ path: string; title: string }>) => {
39 localStorage.setItem(PAGE_INFO, JSON.stringify(info))

Callers 1

saveFunction · 0.90

Calls 1

getPageNameFunction · 0.70

Tested by

no test coverage detected