code cleanup (MisskeyIO#825)

This commit is contained in:
あわわわとーにゅ 2024-11-27 05:48:25 +09:00 committed by GitHub
parent 029d6da7c8
commit e7afbd140a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
22 changed files with 24 additions and 25 deletions

View file

@ -288,7 +288,7 @@ const keymap = {
'down|j|tab': focusAfter,
'esc': blur,
'm|o': () => showMenu(true),
's': () => showContent.value !== showContent.value,
's': () => { showContent.value = !showContent.value; focus(); },
};
provide('react', (reaction: string) => {

View file

@ -305,7 +305,7 @@ const keymap = {
'q': () => renote(true),
'esc': blur,
'm|o': () => showMenu(true),
's': () => showContent.value !== showContent.value,
's': () => { showContent.value = !showContent.value; focus(); },
};
provide('react', (reaction: string) => {

View file

@ -116,7 +116,7 @@ function get(): PollEditorModelValue {
};
const calcAfter = () => {
let base = parseInt(after.value.toString());
let base = Number.parseInt(after.value.toString());
switch (unit.value) {
// @ts-expect-error fallthrough
case 'day': base *= 24;