chore: refactor electron storage related modules

This commit is contained in:
Anoop M D 2023-09-22 20:38:45 +05:30
parent 4531cfc994
commit c91fef2264
5 changed files with 3 additions and 3 deletions

View File

@ -5,7 +5,7 @@ const { BrowserWindow, app, Menu } = require('electron');
const { setContentSecurityPolicy } = require('electron-util');
const menuTemplate = require('./app/menu-template');
const LastOpenedCollections = require('./app/last-opened-collections');
const LastOpenedCollections = require('./store/last-opened-collections');
const registerNetworkIpc = require('./ipc/network');
const registerCollectionsIpc = require('./ipc/collection');
const Watcher = require('./app/watcher');

View File

@ -17,7 +17,7 @@ const { stringifyJson } = require('../utils/common');
const { openCollectionDialog, openCollection } = require('../app/collections');
const { generateUidBasedOnHash } = require('../utils/common');
const { moveRequestUid, deleteRequestUid } = require('../cache/requestUids');
const { setPreferences } = require('../app/preferences');
const { setPreferences } = require('../store/preferences');
const registerRendererEventHandlers = (mainWindow, watcher, lastOpenedCollections) => {
// browse directory

View File

@ -12,7 +12,7 @@ const { cancelTokens, saveCancelToken, deleteCancelToken } = require('../../util
const { uuid } = require('../../utils/common');
const interpolateVars = require('./interpolate-vars');
const { sortFolder, getAllRequestsInFolderRecursively } = require('./helper');
const { getPreferences } = require('../../app/preferences');
const { getPreferences } = require('../../store/preferences');
// override the default escape function to prevent escaping
Mustache.escape = function (value) {