MCPcopy Create free account
hub / github.com/dajie111/nodeseek-userscript / exportNotesData

Function exportNotesData

notes.js:4096–4105  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4094
4095 // 导出笔记数据(供配置同步使用)
4096 function exportNotesData() {
4097 return {
4098 categories: readJSON(LS_KEYS.categories, []),
4099 notes: readJSON(LS_KEYS.notes, {}),
4100 fontColors: readJSON(LS_KEYS.fontColors, []),
4101 bgColors: readJSON(LS_KEYS.bgColors, []),
4102 trash: readJSON(LS_KEYS.trash, []), // 添加回收站数据
4103 lastSelectedNote: readJSON(LS_KEYS.lastSelectedNote, null)
4104 };
4105 }
4106
4107 // 导入笔记数据(供配置同步使用)
4108 function importNotesData(data) {

Callers

nothing calls this directly

Calls 1

readJSONFunction · 0.85

Tested by

no test coverage detected