Compare commits
2 Commits
5a86bab647
...
f3a43c8083
Author | SHA1 | Date |
---|---|---|
Lykin | f3a43c8083 | |
Lykin | b610bd7861 |
|
@ -206,7 +206,7 @@ const onTermKey = (e) => {
|
||||||
return false
|
return false
|
||||||
|
|
||||||
case 'e': // move to tail of line
|
case 'e': // move to tail of line
|
||||||
moveInputCursorTo(Number.MAX_VALUE)
|
moveInputCursorTo(Number.MAX_SAFE_INTEGER)
|
||||||
return false
|
return false
|
||||||
|
|
||||||
case 'f': // move forward
|
case 'f': // move forward
|
||||||
|
@ -251,6 +251,8 @@ const onTermKey = (e) => {
|
||||||
newInputLine()
|
newInputLine()
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
// block all ctrl key combinations input
|
||||||
|
return false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return true
|
return true
|
||||||
|
@ -290,7 +292,7 @@ const moveInputCursor = (step) => {
|
||||||
* move cursor to the end of current line
|
* move cursor to the end of current line
|
||||||
*/
|
*/
|
||||||
const moveInputCursorToEnd = () => {
|
const moveInputCursorToEnd = () => {
|
||||||
moveInputCursorTo(Number.MAX_VALUE)
|
moveInputCursorTo(Number.MAX_SAFE_INTEGER)
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -155,7 +155,7 @@ const onTTL = () => {
|
||||||
server: props.server,
|
server: props.server,
|
||||||
db: props.db,
|
db: props.db,
|
||||||
key: binaryKey.value ? props.keyCode : props.keyPath,
|
key: binaryKey.value ? props.keyCode : props.keyPath,
|
||||||
ttl: props.ttl,
|
ttl: ttl.value,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -8,7 +8,7 @@ import { i18nGlobal } from '@/utils/i18n.js'
|
||||||
*/
|
*/
|
||||||
export const toHumanReadable = (duration) => {
|
export const toHumanReadable = (duration) => {
|
||||||
const dur = dayjs.duration(duration, 'seconds')
|
const dur = dayjs.duration(duration, 'seconds')
|
||||||
const days = dur.days()
|
const days = Math.floor(dur.asDays())
|
||||||
if (days > 0) {
|
if (days > 0) {
|
||||||
return days + i18nGlobal.t('common.unit_day') + ' ' + dur.format('HH:mm:ss')
|
return days + i18nGlobal.t('common.unit_day') + ' ' + dur.format('HH:mm:ss')
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue