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;

View file

@ -305,8 +305,6 @@
"👸": ["girl", "woman", "female", "blond", "crown", "royal", "queen"],
"🤴": ["boy", "man", "male", "crown", "royal", "king"],
"👰": ["couple", "marriage", "wedding", "woman", "bride"],
"👰": ["couple", "marriage", "wedding", "woman", "bride"],
"🤵": ["couple", "marriage", "wedding", "groom"],
"🤵": ["couple", "marriage", "wedding", "groom"],
"🏃‍♀️": ["woman", "walking", "exercise", "race", "running", "female"],
"🏃": ["man", "walking", "exercise", "race", "running"],

View file

@ -9,7 +9,7 @@
"noFallthroughCasesInSwitch": true,
"declaration": false,
"sourceMap": true,
"target": "ES2022",
"target": "es2022",
"module": "nodenext",
"moduleResolution": "nodenext",
"allowSyntheticDefaultImports": true,

View file

@ -9,7 +9,7 @@
"noFallthroughCasesInSwitch": true,
"declaration": false,
"sourceMap": false,
"target": "ES2022",
"target": "es2022",
"module": "nodenext",
"moduleResolution": "nodenext",
"removeComments": false,