code cleanup (MisskeyIO#825)
This commit is contained in:
parent
029d6da7c8
commit
e7afbd140a
22 changed files with 24 additions and 25 deletions
|
@ -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) => {
|
||||
|
|
|
@ -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) => {
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue