summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsyuilo <4439005+syuilo@users.noreply.github.com>2025-04-09 07:51:24 +0900
committersyuilo <4439005+syuilo@users.noreply.github.com>2025-04-09 07:51:24 +0900
commit1cf370882e530b227c5c5c89b3e73853497db18a (patch)
tree076dae292cddc1634771c456942029a62dbef2b3
parentupdate i18n (diff)
downloadsharkey-1cf370882e530b227c5c5c89b3e73853497db18a.tar.gz
sharkey-1cf370882e530b227c5c5c89b3e73853497db18a.tar.bz2
sharkey-1cf370882e530b227c5c5c89b3e73853497db18a.zip
add missing SearchMarker
-rw-r--r--locales/index.d.ts2
-rw-r--r--packages/frontend/src/pages/settings/notifications.vue112
2 files changed, 58 insertions, 56 deletions
diff --git a/locales/index.d.ts b/locales/index.d.ts
index 13e838205a..868a6e2489 100644
--- a/locales/index.d.ts
+++ b/locales/index.d.ts
@@ -1715,7 +1715,7 @@ export interface Locale extends ILocale {
*/
"withFileAntenna": string;
/**
- * センシティブなチャンネルのノートを非表示
+ * センシティブなチャンネルのノートを除外
*/
"excludeNotesInSensitiveChannel": string;
/**
diff --git a/packages/frontend/src/pages/settings/notifications.vue b/packages/frontend/src/pages/settings/notifications.vue
index 93a41e9ddd..e42e6613ac 100644
--- a/packages/frontend/src/pages/settings/notifications.vue
+++ b/packages/frontend/src/pages/settings/notifications.vue
@@ -4,64 +4,66 @@ SPDX-License-Identifier: AGPL-3.0-only
-->
<template>
-<div class="_gaps_m">
- <MkFeatureBanner icon="/client-assets/bell_3d.png" color="#ffff00">
- <SearchKeyword>{{ i18n.ts._settings.notificationsBanner }}</SearchKeyword>
- </MkFeatureBanner>
+<SearchMarker path="/settings/notifications" :label="i18n.ts.notifications" :keywords="['notifications']" icon="ti ti-bell">
+ <div class="_gaps_m">
+ <MkFeatureBanner icon="/client-assets/bell_3d.png" color="#ffff00">
+ <SearchKeyword>{{ i18n.ts._settings.notificationsBanner }}</SearchKeyword>
+ </MkFeatureBanner>
- <FormSection first>
- <template #label>{{ i18n.ts.notificationRecieveConfig }}</template>
- <div class="_gaps_s">
- <MkFolder v-for="type in notificationTypes.filter(x => !nonConfigurableNotificationTypes.includes(x))" :key="type">
- <template #label>{{ i18n.ts._notification._types[type] }}</template>
- <template #suffix>
- {{
- $i.notificationRecieveConfig[type]?.type === 'never' ? i18n.ts.none :
- $i.notificationRecieveConfig[type]?.type === 'following' ? i18n.ts.following :
- $i.notificationRecieveConfig[type]?.type === 'follower' ? i18n.ts.followers :
- $i.notificationRecieveConfig[type]?.type === 'mutualFollow' ? i18n.ts.mutualFollow :
- $i.notificationRecieveConfig[type]?.type === 'followingOrFollower' ? i18n.ts.followingOrFollower :
- $i.notificationRecieveConfig[type]?.type === 'list' ? i18n.ts.userList :
- i18n.ts.all
- }}
- </template>
+ <FormSection first>
+ <template #label>{{ i18n.ts.notificationRecieveConfig }}</template>
+ <div class="_gaps_s">
+ <MkFolder v-for="type in notificationTypes.filter(x => !nonConfigurableNotificationTypes.includes(x))" :key="type">
+ <template #label>{{ i18n.ts._notification._types[type] }}</template>
+ <template #suffix>
+ {{
+ $i.notificationRecieveConfig[type]?.type === 'never' ? i18n.ts.none :
+ $i.notificationRecieveConfig[type]?.type === 'following' ? i18n.ts.following :
+ $i.notificationRecieveConfig[type]?.type === 'follower' ? i18n.ts.followers :
+ $i.notificationRecieveConfig[type]?.type === 'mutualFollow' ? i18n.ts.mutualFollow :
+ $i.notificationRecieveConfig[type]?.type === 'followingOrFollower' ? i18n.ts.followingOrFollower :
+ $i.notificationRecieveConfig[type]?.type === 'list' ? i18n.ts.userList :
+ i18n.ts.all
+ }}
+ </template>
- <XNotificationConfig
- :userLists="userLists"
- :value="$i.notificationRecieveConfig[type] ?? { type: 'all' }"
- :configurableTypes="onlyOnOrOffNotificationTypes.includes(type) ? ['all', 'never'] : undefined"
- @update="(res) => updateReceiveConfig(type, res)"
- />
- </MkFolder>
- </div>
- </FormSection>
- <FormSection>
- <div class="_gaps_m">
- <FormLink @click="readAllNotifications">{{ i18n.ts.markAsReadAllNotifications }}</FormLink>
- </div>
- </FormSection>
- <FormSection>
- <div class="_gaps_m">
- <FormLink @click="testNotification">{{ i18n.ts._notification.sendTestNotification }}</FormLink>
- <FormLink @click="flushNotification">{{ i18n.ts._notification.flushNotification }}</FormLink>
- </div>
- </FormSection>
- <FormSection>
- <template #label>{{ i18n.ts.pushNotification }}</template>
+ <XNotificationConfig
+ :userLists="userLists"
+ :value="$i.notificationRecieveConfig[type] ?? { type: 'all' }"
+ :configurableTypes="onlyOnOrOffNotificationTypes.includes(type) ? ['all', 'never'] : undefined"
+ @update="(res) => updateReceiveConfig(type, res)"
+ />
+ </MkFolder>
+ </div>
+ </FormSection>
+ <FormSection>
+ <div class="_gaps_m">
+ <FormLink @click="readAllNotifications">{{ i18n.ts.markAsReadAllNotifications }}</FormLink>
+ </div>
+ </FormSection>
+ <FormSection>
+ <div class="_gaps_m">
+ <FormLink @click="testNotification">{{ i18n.ts._notification.sendTestNotification }}</FormLink>
+ <FormLink @click="flushNotification">{{ i18n.ts._notification.flushNotification }}</FormLink>
+ </div>
+ </FormSection>
+ <FormSection>
+ <template #label>{{ i18n.ts.pushNotification }}</template>
- <div class="_gaps_m">
- <MkPushNotificationAllowButton ref="allowButton"/>
- <MkSwitch :disabled="!pushRegistrationInServer" :modelValue="sendReadMessage" @update:modelValue="onChangeSendReadMessage">
- <template #label>{{ i18n.ts.sendPushNotificationReadMessage }}</template>
- <template #caption>
- <I18n :src="i18n.ts.sendPushNotificationReadMessageCaption">
- <template #emptyPushNotificationMessage>{{ i18n.ts._notification.emptyPushNotificationMessage }}</template>
- </I18n>
- </template>
- </MkSwitch>
- </div>
- </FormSection>
-</div>
+ <div class="_gaps_m">
+ <MkPushNotificationAllowButton ref="allowButton"/>
+ <MkSwitch :disabled="!pushRegistrationInServer" :modelValue="sendReadMessage" @update:modelValue="onChangeSendReadMessage">
+ <template #label>{{ i18n.ts.sendPushNotificationReadMessage }}</template>
+ <template #caption>
+ <I18n :src="i18n.ts.sendPushNotificationReadMessageCaption">
+ <template #emptyPushNotificationMessage>{{ i18n.ts._notification.emptyPushNotificationMessage }}</template>
+ </I18n>
+ </template>
+ </MkSwitch>
+ </div>
+ </FormSection>
+ </div>
+</SearchMarker>
</template>
<script lang="ts" setup>