diff --git a/server/app/utils/db-class.js b/server/app/utils/db-class.js index 4ec0fb4..b2618ba 100644 --- a/server/app/utils/db-class.js +++ b/server/app/utils/db-class.js @@ -15,7 +15,7 @@ module.exports.KeyDB = class KeyDB { constructor() { if (!KeyDB.instance) { KeyDB.instance = new Datastore({ filename: keyDBPath, autoload: true }) - KeyDB.instance.setAutocompactionInterval(5000) + // KeyDB.instance.setAutocompactionInterval(5000) } } getInstance() { @@ -27,7 +27,7 @@ module.exports.HostListDB = class HostListDB { constructor() { if (!HostListDB.instance) { HostListDB.instance = new Datastore({ filename: hostListDBPath, autoload: true }) - HostListDB.instance.setAutocompactionInterval(5000) + // HostListDB.instance.setAutocompactionInterval(5000) } } getInstance() { @@ -39,7 +39,7 @@ module.exports.SshRecordDB = class SshRecordDB { constructor() { if (!SshRecordDB.instance) { SshRecordDB.instance = new Datastore({ filename: credentialsDBPath, autoload: true }) - SshRecordDB.instance.setAutocompactionInterval(5000) + // SshRecordDB.instance.setAutocompactionInterval(5000) } } getInstance() { @@ -51,7 +51,7 @@ module.exports.NotifyDB = class NotifyDB { constructor() { if (!NotifyDB.instance) { NotifyDB.instance = new Datastore({ filename: notifyDBPath, autoload: true }) - NotifyDB.instance.setAutocompactionInterval(5000) + // NotifyDB.instance.setAutocompactionInterval(5000) } } @@ -64,7 +64,7 @@ module.exports.NotifyConfigDB = class NotifyConfigDB { constructor() { if (!NotifyConfigDB.instance) { NotifyConfigDB.instance = new Datastore({ filename: notifyConfigDBPath, autoload: true }) - NotifyConfigDB.instance.setAutocompactionInterval(5000) + // NotifyConfigDB.instance.setAutocompactionInterval(5000) } } getInstance() { @@ -76,7 +76,7 @@ module.exports.GroupDB = class GroupDB { constructor() { if (!GroupDB.instance) { GroupDB.instance = new Datastore({ filename: groupConfDBPath, autoload: true }) - GroupDB.instance.setAutocompactionInterval(5000) + // GroupDB.instance.setAutocompactionInterval(5000) } } getInstance() { @@ -88,7 +88,7 @@ module.exports.ScriptsDB = class ScriptsDB { constructor() { if (!ScriptsDB.instance) { ScriptsDB.instance = new Datastore({ filename: scriptsDBPath, autoload: true }) - ScriptsDB.instance.setAutocompactionInterval(5000) + // ScriptsDB.instance.setAutocompactionInterval(5000) } } getInstance() { @@ -100,7 +100,7 @@ module.exports.OnekeyDB = class OnekeyDB { constructor() { if (!OnekeyDB.instance) { OnekeyDB.instance = new Datastore({ filename: onekeyDBPath, autoload: true }) - OnekeyDB.instance.setAutocompactionInterval(5000) + // OnekeyDB.instance.setAutocompactionInterval(5000) } } getInstance() { @@ -112,7 +112,7 @@ module.exports.LogDB = class LogDB { constructor() { if (!LogDB.instance) { LogDB.instance = new Datastore({ filename: logDBPath, autoload: true }) - LogDB.instance.setAutocompactionInterval(5000) + // LogDB.instance.setAutocompactionInterval(5000) } } getInstance() { diff --git a/web/src/components/float-menu/index.vue b/web/src/components/float-menu/index.vue index 70d1706..34cc670 100644 --- a/web/src/components/float-menu/index.vue +++ b/web/src/components/float-menu/index.vue @@ -1,50 +1,28 @@ - +} diff --git a/web/src/views/terminal/components/terminal.vue b/web/src/views/terminal/components/terminal.vue index 6443799..13c2c29 100644 --- a/web/src/views/terminal/components/terminal.vue +++ b/web/src/views/terminal/components/terminal.vue @@ -158,6 +158,12 @@ @ping-data="getPingData" @reset-long-press="resetLongPress" /> + - - @@ -228,7 +226,6 @@ const hostFormVisible = ref(false) const updateHostData = ref(null) const showSetting = ref(false) const showMobileInfoSideDialog = ref(false) -const showFloatMenu = ref(false) const longPressCtrl = ref(false) const longPressAlt = ref(false)