Compare commits

..

No commits in common. "f3a43c808330d0a0118ddbc9f10775fe3445052f" and "5a86bab647e7ba1a9d56faf553cb35f1d798667d" have entirely different histories.

3 changed files with 4 additions and 6 deletions

View File

@ -206,7 +206,7 @@ const onTermKey = (e) => {
return false
case 'e': // move to tail of line
moveInputCursorTo(Number.MAX_SAFE_INTEGER)
moveInputCursorTo(Number.MAX_VALUE)
return false
case 'f': // move forward
@ -251,8 +251,6 @@ const onTermKey = (e) => {
newInputLine()
return false
}
// block all ctrl key combinations input
return false
}
}
return true
@ -292,7 +290,7 @@ const moveInputCursor = (step) => {
* move cursor to the end of current line
*/
const moveInputCursorToEnd = () => {
moveInputCursorTo(Number.MAX_SAFE_INTEGER)
moveInputCursorTo(Number.MAX_VALUE)
}
/**

View File

@ -155,7 +155,7 @@ const onTTL = () => {
server: props.server,
db: props.db,
key: binaryKey.value ? props.keyCode : props.keyPath,
ttl: ttl.value,
ttl: props.ttl,
})
}
</script>

View File

@ -8,7 +8,7 @@ import { i18nGlobal } from '@/utils/i18n.js'
*/
export const toHumanReadable = (duration) => {
const dur = dayjs.duration(duration, 'seconds')
const days = Math.floor(dur.asDays())
const days = dur.days()
if (days > 0) {
return days + i18nGlobal.t('common.unit_day') + ' ' + dur.format('HH:mm:ss')
} else {