From 5fb0a995dd2d9cf65ed93fca78502f42a7c3e22d Mon Sep 17 00:00:00 2001 From: Satsuki Yanagi <17376330+u1-liquid@users.noreply.github.com> Date: Sun, 5 May 2019 09:27:55 +0900 Subject: 様々な修正 (#4859) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Typo, Redundant code, Syntax error の修正 --- src/client/app/common/hotkey.ts | 2 +- src/client/app/common/scripts/should-mute-note.ts | 6 +++--- src/client/app/common/views/components/analog-clock.vue | 2 +- src/client/app/common/views/components/messaging.vue | 2 +- src/client/app/common/views/components/page-editor/page-editor.vue | 4 ++-- src/client/app/common/views/components/settings/theme.vue | 2 +- src/client/app/common/views/components/ui/input.vue | 2 +- src/client/app/common/views/components/user-list.vue | 2 +- src/client/app/common/views/deck/deck.column.vue | 2 +- src/client/app/common/views/deck/deck.user-column.vue | 2 +- src/client/app/common/views/directives/autocomplete.ts | 4 ++-- src/client/app/common/views/pages/page/page.vue | 2 +- 12 files changed, 16 insertions(+), 16 deletions(-) (limited to 'src/client/app/common') diff --git a/src/client/app/common/hotkey.ts b/src/client/app/common/hotkey.ts index b2afd57ae3..a53d3f479e 100644 --- a/src/client/app/common/hotkey.ts +++ b/src/client/app/common/hotkey.ts @@ -52,7 +52,7 @@ function match(e: KeyboardEvent, patterns: action['patterns']): boolean { pattern.ctrl == e.ctrlKey && pattern.shift == e.shiftKey && pattern.alt == e.altKey && - e.metaKey == false + !e.metaKey ); } diff --git a/src/client/app/common/scripts/should-mute-note.ts b/src/client/app/common/scripts/should-mute-note.ts index c5f1898942..8fd7888628 100644 --- a/src/client/app/common/scripts/should-mute-note.ts +++ b/src/client/app/common/scripts/should-mute-note.ts @@ -11,9 +11,9 @@ export default function(me, settings, note) { return ( (!isMyNote && note.reply && includesMutedWords(note.reply.text)) || (!isMyNote && note.renote && includesMutedWords(note.renote.text)) || - (settings.showMyRenotes === false && isMyNote && isPureRenote) || - (settings.showRenotedMyNotes === false && isPureRenote && note.renote.userId == me.id) || - (settings.showLocalRenotes === false && isPureRenote && note.renote.user.host == null) || + (!settings.showMyRenotes && isMyNote && isPureRenote) || + (!settings.showRenotedMyNotes && isPureRenote && note.renote.userId == me.id) || + (!settings.showLocalRenotes && isPureRenote && note.renote.user.host == null) || (!isMyNote && includesMutedWords(note.text)) ); } diff --git a/src/client/app/common/views/components/analog-clock.vue b/src/client/app/common/views/components/analog-clock.vue index 4ba578a1a4..5eb7ffd153 100644 --- a/src/client/app/common/views/components/analog-clock.vue +++ b/src/client/app/common/views/components/analog-clock.vue @@ -80,7 +80,7 @@ export default Vue.extend({ ms(): number { return this.now.getMilliseconds() * this.smooth; - } + }, s(): number { return this.now.getSeconds(); }, diff --git a/src/client/app/common/views/components/messaging.vue b/src/client/app/common/views/components/messaging.vue index 957fd389d9..f884a599d7 100644 --- a/src/client/app/common/views/components/messaging.vue +++ b/src/client/app/common/views/components/messaging.vue @@ -202,7 +202,7 @@ export default Vue.extend({ left 0 z-index 1 width 100% - box-shadow 0 0px 2px rgba(#000, 0.2) + box-shadow 0 0 2px rgba(#000, 0.2) > .form background rgba(0, 0, 0, 0.02) diff --git a/src/client/app/common/views/components/page-editor/page-editor.vue b/src/client/app/common/views/components/page-editor/page-editor.vue index d70049121d..baccda8a43 100644 --- a/src/client/app/common/views/components/page-editor/page-editor.vue +++ b/src/client/app/common/views/components/page-editor/page-editor.vue @@ -36,10 +36,10 @@