From 490abe7275cc69e19970d65330c5fee0b70f036f Mon Sep 17 00:00:00 2001 From: Kainoa Kanter Date: Sun, 17 Sep 2023 21:59:09 +0000 Subject: [PATCH] feat: vibration --- locales/en-US.yml | 1 + packages/client/src/components/MkButton.vue | 3 +++ packages/client/src/components/MkEmojiPicker.vue | 1 + packages/client/src/components/MkFolder.vue | 1 + packages/client/src/components/MkFollowButton.vue | 2 ++ packages/client/src/components/MkMenu.vue | 1 + packages/client/src/components/MkNote.vue | 7 ++++--- packages/client/src/components/MkNoteSub.vue | 6 +++--- packages/client/src/components/MkPostForm.vue | 2 ++ .../src/components/MkReactionsViewer.reaction.vue | 1 + packages/client/src/components/MkRenoteButton.vue | 2 ++ packages/client/src/components/MkStarButton.vue | 1 + .../client/src/components/MkStarButtonNoEmoji.vue | 1 + .../client/src/components/global/MkPageHeader.vue | 4 ++++ packages/client/src/directives/index.ts | 2 ++ packages/client/src/directives/vibrate.ts | 11 +++++++++++ packages/client/src/pages/auth.vue | 11 +++-------- .../client/src/pages/messaging/messaging-room.vue | 2 ++ packages/client/src/pages/settings/general.vue | 13 ++++++++++++- .../src/pages/settings/preferences-backups.vue | 1 + packages/client/src/scripts/get-note-menu.ts | 4 ++-- packages/client/src/scripts/please-login.ts | 2 ++ packages/client/src/scripts/vibrate.ts | 6 ++++++ packages/client/src/store.ts | 1 + packages/client/src/ui/universal.vue | 9 ++++++++- 25 files changed, 77 insertions(+), 18 deletions(-) create mode 100644 packages/client/src/directives/vibrate.ts create mode 100644 packages/client/src/scripts/vibrate.ts diff --git a/locales/en-US.yml b/locales/en-US.yml index abab49641..fa3c4af25 100644 --- a/locales/en-US.yml +++ b/locales/en-US.yml @@ -1142,6 +1142,7 @@ indexable: "Indexable" indexableDescription: "Allow built-in search to show your public posts" languageForTranslation: "Post translation language" detectPostLanguage: "Automatically detect the language and show a translate button for posts in foreign languages" +vibrate: "Play vibrations" openServerInfo: "Show server information by clicking the server ticker on a post" _sensitiveMediaDetection: diff --git a/packages/client/src/components/MkButton.vue b/packages/client/src/components/MkButton.vue index 53f20d3d4..071e981dd 100644 --- a/packages/client/src/components/MkButton.vue +++ b/packages/client/src/components/MkButton.vue @@ -28,6 +28,7 @@