Skip to content

Commit

Permalink
通知音やノート・リアクション時の効果音を削除 (#337)
Browse files Browse the repository at this point in the history
* 通知時に音を鳴らす機能を削除

* サウンドのアセットを削除
  • Loading branch information
adzukimame authored Dec 3, 2024
1 parent 7329ad4 commit 7eb787d
Show file tree
Hide file tree
Showing 72 changed files with 4 additions and 832 deletions.
Binary file removed packages/frontend/assets/sounds/aisha/1.mp3
Binary file not shown.
Binary file removed packages/frontend/assets/sounds/aisha/2.mp3
Binary file not shown.
Binary file removed packages/frontend/assets/sounds/aisha/3.mp3
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed packages/frontend/assets/sounds/syuilo/bubble1.mp3
Binary file not shown.
Binary file removed packages/frontend/assets/sounds/syuilo/bubble2.mp3
Binary file not shown.
Binary file removed packages/frontend/assets/sounds/syuilo/down.mp3
Binary file not shown.
Binary file removed packages/frontend/assets/sounds/syuilo/kick.mp3
Binary file not shown.
Binary file removed packages/frontend/assets/sounds/syuilo/n-aec-4va.mp3
Binary file not shown.
Binary file removed packages/frontend/assets/sounds/syuilo/n-aec-4vb.mp3
Binary file not shown.
Binary file removed packages/frontend/assets/sounds/syuilo/n-aec-8va.mp3
Binary file not shown.
Binary file removed packages/frontend/assets/sounds/syuilo/n-aec-8vb.mp3
Binary file not shown.
Binary file removed packages/frontend/assets/sounds/syuilo/n-aec.mp3
Binary file not shown.
Binary file removed packages/frontend/assets/sounds/syuilo/n-cea-4va.mp3
Binary file not shown.
Binary file removed packages/frontend/assets/sounds/syuilo/n-cea-4vb.mp3
Binary file not shown.
Binary file removed packages/frontend/assets/sounds/syuilo/n-cea-8va.mp3
Binary file not shown.
Binary file removed packages/frontend/assets/sounds/syuilo/n-cea-8vb.mp3
Binary file not shown.
Binary file removed packages/frontend/assets/sounds/syuilo/n-cea.mp3
Binary file not shown.
Binary file removed packages/frontend/assets/sounds/syuilo/n-ea-4va.mp3
Binary file not shown.
Binary file removed packages/frontend/assets/sounds/syuilo/n-ea-4vb.mp3
Binary file not shown.
Binary file removed packages/frontend/assets/sounds/syuilo/n-ea-8va.mp3
Binary file not shown.
Binary file removed packages/frontend/assets/sounds/syuilo/n-ea-8vb.mp3
Binary file not shown.
Binary file not shown.
Binary file removed packages/frontend/assets/sounds/syuilo/n-ea.mp3
Binary file not shown.
Binary file removed packages/frontend/assets/sounds/syuilo/n-eca-4va.mp3
Binary file not shown.
Binary file removed packages/frontend/assets/sounds/syuilo/n-eca-4vb.mp3
Binary file not shown.
Binary file removed packages/frontend/assets/sounds/syuilo/n-eca-8va.mp3
Binary file not shown.
Binary file removed packages/frontend/assets/sounds/syuilo/n-eca-8vb.mp3
Binary file not shown.
Binary file removed packages/frontend/assets/sounds/syuilo/n-eca.mp3
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed packages/frontend/assets/sounds/syuilo/pirori.mp3
Binary file not shown.
Binary file removed packages/frontend/assets/sounds/syuilo/poi1.mp3
Binary file not shown.
Binary file removed packages/frontend/assets/sounds/syuilo/poi2.mp3
Binary file not shown.
Binary file removed packages/frontend/assets/sounds/syuilo/pope1.mp3
Binary file not shown.
Binary file removed packages/frontend/assets/sounds/syuilo/pope2.mp3
Binary file not shown.
Binary file removed packages/frontend/assets/sounds/syuilo/popo.mp3
Binary file not shown.
Binary file not shown.
Binary file removed packages/frontend/assets/sounds/syuilo/reverved.mp3
Binary file not shown.
Binary file removed packages/frontend/assets/sounds/syuilo/ryukyu.mp3
Binary file not shown.
Binary file removed packages/frontend/assets/sounds/syuilo/snare.mp3
Binary file not shown.
Binary file not shown.
Binary file removed packages/frontend/assets/sounds/syuilo/triple.mp3
Binary file not shown.
Binary file removed packages/frontend/assets/sounds/syuilo/up.mp3
Binary file not shown.
Binary file removed packages/frontend/assets/sounds/syuilo/waon.mp3
Binary file not shown.
5 changes: 0 additions & 5 deletions packages/frontend/src/components/MkNote.vue
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,6 @@ import { checkWordMute } from '@/scripts/check-word-mute.js';
import { userPage } from '@/filters/user.js';
import number from '@/filters/number.js';
import * as os from '@/os.js';
import * as sound from '@/scripts/sound.js';
import { misskeyApi, misskeyApiGet } from '@/scripts/misskey-api.js';
import { defaultStore, noteViewInterruptors } from '@/store.js';
import { reactionPicker } from '@/scripts/reaction-picker.js';
Expand Down Expand Up @@ -441,8 +440,6 @@ function react(): void {
pleaseLogin(undefined, pleaseLoginContext.value);
showMovedDialog();
if (appearNote.value.reactionAcceptance === 'likeOnly') {
sound.playMisskeySfx('reaction');

if (props.mock) {
return;
}
Expand All @@ -463,8 +460,6 @@ function react(): void {
} else {
blur();
reactionPicker.show(reactButton.value, note.value, reaction => {
sound.playMisskeySfx('reaction');

if (props.mock) {
emit('reaction', reaction);
return;
Expand Down
5 changes: 0 additions & 5 deletions packages/frontend/src/components/MkNoteDetailed.vue
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,6 @@ import { notePage } from '@/filters/note.js';
import number from '@/filters/number.js';
import * as os from '@/os.js';
import { misskeyApi, misskeyApiGet } from '@/scripts/misskey-api.js';
import * as sound from '@/scripts/sound.js';
import { defaultStore, noteViewInterruptors } from '@/store.js';
import { reactionPicker } from '@/scripts/reaction-picker.js';
import { extractUrlFromMfm } from '@/scripts/extract-url-from-mfm.js';
Expand Down Expand Up @@ -426,8 +425,6 @@ function react(): void {
pleaseLogin(undefined, pleaseLoginContext.value);
showMovedDialog();
if (appearNote.value.reactionAcceptance === 'likeOnly') {
sound.playMisskeySfx('reaction');

misskeyApi('notes/reactions/create', {
noteId: appearNote.value.id,
reaction: '❤️',
Expand All @@ -444,8 +441,6 @@ function react(): void {
} else {
blur();
reactionPicker.show(reactButton.value, note.value, reaction => {
sound.playMisskeySfx('reaction');

misskeyApi('notes/reactions/create', {
noteId: appearNote.value.id,
reaction: reaction,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ import { $i } from '@/account.js';
import MkReactionEffect from '@/components/MkReactionEffect.vue';
import { defaultStore } from '@/store.js';
import { i18n } from '@/i18n.js';
import * as sound from '@/scripts/sound.js';
import { checkReactionPermissions } from '@/scripts/check-reaction-permissions.js';
import { customEmojisMap } from '@/custom-emojis.js';
import { getUnicodeEmoji } from '@/scripts/emojilist.js';
Expand Down Expand Up @@ -69,10 +68,6 @@ async function toggleReaction() {
});
if (confirm.canceled) return;

if (oldReaction !== props.reaction) {
sound.playMisskeySfx('reaction');
}

if (mock) {
emit('reactionToggled', props.reaction, (props.count - 1));
return;
Expand All @@ -89,8 +84,6 @@ async function toggleReaction() {
}
});
} else {
sound.playMisskeySfx('reaction');

if (mock) {
emit('reactionToggled', props.reaction, (props.count + 1));
return;
Expand Down
6 changes: 0 additions & 6 deletions packages/frontend/src/components/MkTimeline.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import type { BasicTimelineType } from '@/timelines.js';
import MkNotes from '@/components/MkNotes.vue';
import MkPullToRefresh from '@/components/MkPullToRefresh.vue';
import { useStream } from '@/stream.js';
import * as sound from '@/scripts/sound.js';
import { $i } from '@/account.js';
import { defaultStore } from '@/store.js';
import { Paging } from '@/components/MkPagination.vue';
Expand All @@ -33,7 +32,6 @@ const props = withDefaults(defineProps<{
list?: string;
antenna?: string;
channel?: string;
sound?: boolean;
withRenotes?: boolean;
withReplies?: boolean;
onlyFiles?: boolean;
Expand Down Expand Up @@ -71,10 +69,6 @@ function prepend(note) {
tlComponent.value.pagingComponent?.prepend(note);

emit('note');

if (props.sound) {
sound.playMisskeySfx($i && (note.userId === $i.id) ? 'noteMy' : 'note');
}
}

let connection: ChannelConnection | null = null;
Expand Down
2 changes: 0 additions & 2 deletions packages/frontend/src/components/global/MkCustomEmoji.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ import { customEmojisMap } from '@/custom-emojis.js';
import * as os from '@/os.js';
import { misskeyApiGet } from '@/scripts/misskey-api.js';
import { copyToClipboard } from '@/scripts/copy-to-clipboard.js';
import * as sound from '@/scripts/sound.js';
import { i18n } from '@/i18n.js';
import MkCustomEmojiDetailedDialog from '@/components/MkCustomEmojiDetailedDialog.vue';

Expand Down Expand Up @@ -104,7 +103,6 @@ function onClick(ev: MouseEvent) {
icon: 'ti ti-plus',
action: () => {
react(props.host ? `:${props.name}@${props.host}:` : `:${props.name}:`);
sound.playMisskeySfx('reaction');
},
}
: undefined,
Expand Down
2 changes: 0 additions & 2 deletions packages/frontend/src/components/global/MkEmoji.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import { defaultStore } from '@/store.js';
import { colorizeEmoji, getEmojiName } from '@/scripts/emojilist.js';
import * as os from '@/os.js';
import { copyToClipboard } from '@/scripts/copy-to-clipboard.js';
import * as sound from '@/scripts/sound.js';
import { i18n } from '@/i18n.js';

const props = defineProps<{
Expand Down Expand Up @@ -56,7 +55,6 @@ function onClick(ev: MouseEvent) {
icon: 'ti ti-plus',
action: () => {
react(props.emoji);
sound.playMisskeySfx('reaction');
},
}
: undefined,
Expand Down
5 changes: 0 additions & 5 deletions packages/frontend/src/pages/settings/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,6 @@ const menuDef = computed(() => [{
text: i18n.ts.navbar,
to: '/settings/navbar',
active: currentPage.value?.route.name === 'navbar',
}, {
icon: 'ti ti-music',
text: i18n.ts.sounds,
to: '/settings/sounds',
active: currentPage.value?.route.name === 'sounds',
}, {
icon: 'ti ti-plug',
text: i18n.ts.plugins,
Expand Down
4 changes: 0 additions & 4 deletions packages/frontend/src/pages/settings/preferences-backups.vue
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,6 @@ const defaultStoreSaveKeys: (keyof typeof defaultStore['state'])[] = [
'defaultWithReplies',
'disableStreamingTimeline',
'useGroupedNotifications',
'sound_masterVolume',
'sound_note',
'sound_noteMy',
'sound_notification',
];
const coldDeviceStorageSaveKeys: (keyof typeof ColdDeviceStorage.default)[] = [
'lightTheme',
Expand Down
208 changes: 0 additions & 208 deletions packages/frontend/src/pages/settings/sounds.sound.vue

This file was deleted.

Loading

0 comments on commit 7eb787d

Please sign in to comment.