Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
} else if (tab === settingMap.quickCommands) {
return {
id: '',
name: q(newQuickCommand)
}
}
}
const tabs = [newTerm()]
const bookmarks = copy(ls.get(settingMap.bookmarks) || [])
const bookmarkGroups = copy(
ls.get(settingMap.bookmarkGroups) ||
getDefaultBookmarkGroups(bookmarks)
)
const store = Subx.create({
tabs,
height: 500,
width: window.innerWidth - sidebarWidth,
currentTabId: tabs[0].id,
history: copy(ls.get(settingMap.history) || []),
quickCommands: copy(ls.get(settingMap.quickCommands) || []),
quickCommandId: '',
bookmarks,
bookmarkGroups,
setting: [
{
id: 'setting-sync',
title: ss('settingSync')
}
],
sshConfigItems: copy(getGlobal('sshConfigItems')),