MCPcopy Create free account
hub / github.com/scriptscat/scriptcat / updateRawData

Function updateRawData

src/pages/components/ScriptStorage/index.tsx:55–63  ·  view source on GitHub ↗
(newRawValue: { [key: string]: any })

Source from the content-addressed store, hash-verified

53
54 // 更新UI数据
55 const updateRawData = (newRawValue: { [key: string]: any }) => {
56 setRawData(newRawValue);
57 setEditValue(JSON.stringify(newRawValue, null, 2));
58 setData(
59 Object.keys(newRawValue).map((key) => {
60 return { key: key, value: newRawValue[key] };
61 })
62 );
63 };
64
65 // 删除单个键值
66 const deleteData = (key: string) => {

Callers 3

saveDataFunction · 0.85
saveRawDataFunction · 0.85
ScriptStorageFunction · 0.85

Calls 1

keysMethod · 0.80

Tested by

no test coverage detected