|
@@ -200,6 +200,7 @@ export const getLocalStorage = (cb: () => void) => {
|
|
};
|
|
};
|
|
defaultStorage[Constants.LOCAL_LAYOUTS] = []; // {name: "", layout:{}, time: number, filespaths: filesPath[]}
|
|
defaultStorage[Constants.LOCAL_LAYOUTS] = []; // {name: "", layout:{}, time: number, filespaths: filesPath[]}
|
|
defaultStorage[Constants.LOCAL_AI] = []; // {name: "", memo: ""}
|
|
defaultStorage[Constants.LOCAL_AI] = []; // {name: "", memo: ""}
|
|
|
|
+ defaultStorage[Constants.LOCAL_PLUGIN_DOCKS] = {}; // { pluginName: {dockId: IPluginDockTab}}
|
|
defaultStorage[Constants.LOCAL_PLUGINTOPUNPIN] = [];
|
|
defaultStorage[Constants.LOCAL_PLUGINTOPUNPIN] = [];
|
|
defaultStorage[Constants.LOCAL_OUTLINE] = {keepExpand: true};
|
|
defaultStorage[Constants.LOCAL_OUTLINE] = {keepExpand: true};
|
|
defaultStorage[Constants.LOCAL_FILEPOSITION] = {}; // {id: IScrollAttr}
|
|
defaultStorage[Constants.LOCAL_FILEPOSITION] = {}; // {id: IScrollAttr}
|
|
@@ -270,7 +271,8 @@ export const getLocalStorage = (cb: () => void) => {
|
|
Constants.LOCAL_SEARCHDATA, Constants.LOCAL_ZOOM, Constants.LOCAL_LAYOUTS, Constants.LOCAL_AI,
|
|
Constants.LOCAL_SEARCHDATA, Constants.LOCAL_ZOOM, Constants.LOCAL_LAYOUTS, Constants.LOCAL_AI,
|
|
Constants.LOCAL_PLUGINTOPUNPIN, Constants.LOCAL_SEARCHASSET, Constants.LOCAL_FLASHCARD,
|
|
Constants.LOCAL_PLUGINTOPUNPIN, Constants.LOCAL_SEARCHASSET, Constants.LOCAL_FLASHCARD,
|
|
Constants.LOCAL_DIALOGPOSITION, Constants.LOCAL_SEARCHUNREF, Constants.LOCAL_HISTORY,
|
|
Constants.LOCAL_DIALOGPOSITION, Constants.LOCAL_SEARCHUNREF, Constants.LOCAL_HISTORY,
|
|
- Constants.LOCAL_OUTLINE, Constants.LOCAL_FILEPOSITION, Constants.LOCAL_FILESPATHS].forEach((key) => {
|
|
|
|
|
|
+ Constants.LOCAL_OUTLINE, Constants.LOCAL_FILEPOSITION, Constants.LOCAL_FILESPATHS,
|
|
|
|
+ Constants.LOCAL_PLUGIN_DOCKS].forEach((key) => {
|
|
if (typeof response.data[key] === "string") {
|
|
if (typeof response.data[key] === "string") {
|
|
try {
|
|
try {
|
|
const parseData = JSON.parse(response.data[key]);
|
|
const parseData = JSON.parse(response.data[key]);
|