mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-07 06:56:04 +02:00
add option to hide unfriends from friend log (#916)
* add option to hide unfriends from friend log * hide unfriends from user dialog and hide notification dot on unfriend
This commit is contained in:
+21
-1
@@ -14649,6 +14649,12 @@ speechSynthesis.getVoices();
|
|||||||
{
|
{
|
||||||
prop: 'displayName',
|
prop: 'displayName',
|
||||||
value: ''
|
value: ''
|
||||||
|
},
|
||||||
|
{
|
||||||
|
prop: 'type',
|
||||||
|
value: false,
|
||||||
|
filterFn: (row, filter) =>
|
||||||
|
!(filter.value && row.type === 'Unfriend')
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
tableProps: {
|
tableProps: {
|
||||||
@@ -14856,7 +14862,9 @@ speechSynthesis.getVoices();
|
|||||||
this.queueFriendLogNoty(friendLogHistory);
|
this.queueFriendLogNoty(friendLogHistory);
|
||||||
this.friendLog.delete(id);
|
this.friendLog.delete(id);
|
||||||
database.deleteFriendLogCurrent(id);
|
database.deleteFriendLogCurrent(id);
|
||||||
this.notifyMenu('friendLog');
|
if (!this.hideUnfriends) {
|
||||||
|
this.notifyMenu('friendLog');
|
||||||
|
}
|
||||||
this.updateSharedFeed(true);
|
this.updateSharedFeed(true);
|
||||||
this.deleteFriend(id);
|
this.deleteFriend(id);
|
||||||
}
|
}
|
||||||
@@ -15653,6 +15661,11 @@ speechSynthesis.getVoices();
|
|||||||
'VRCX_hideUserMemos',
|
'VRCX_hideUserMemos',
|
||||||
false
|
false
|
||||||
);
|
);
|
||||||
|
$app.data.hideUnfriends = await configRepository.getBool(
|
||||||
|
'VRCX_hideUnfriends',
|
||||||
|
false
|
||||||
|
);
|
||||||
|
$app.data.friendLogTable.filters[2].value = $app.data.hideUnfriends;
|
||||||
$app.methods.saveOpenVROption = async function () {
|
$app.methods.saveOpenVROption = async function () {
|
||||||
await configRepository.setBool('openVR', this.openVR);
|
await configRepository.setBool('openVR', this.openVR);
|
||||||
await configRepository.setBool('openVRAlways', this.openVRAlways);
|
await configRepository.setBool('openVRAlways', this.openVRAlways);
|
||||||
@@ -15777,6 +15790,13 @@ speechSynthesis.getVoices();
|
|||||||
this.hideUserMemos
|
this.hideUserMemos
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
$app.methods.saveFriendLogOptions = async function () {
|
||||||
|
await configRepository.setBool(
|
||||||
|
'VRCX_hideUnfriends',
|
||||||
|
this.hideUnfriends
|
||||||
|
);
|
||||||
|
this.friendLogTable.filters[2].value = this.hideUnfriends;
|
||||||
|
};
|
||||||
$app.data.TTSvoices = speechSynthesis.getVoices();
|
$app.data.TTSvoices = speechSynthesis.getVoices();
|
||||||
$app.methods.saveNotificationTTS = async function () {
|
$app.methods.saveNotificationTTS = async function () {
|
||||||
speechSynthesis.cancel();
|
speechSynthesis.cancel();
|
||||||
|
|||||||
+3
-2
@@ -460,13 +460,14 @@ html
|
|||||||
template(#content v-else)
|
template(#content v-else)
|
||||||
span -
|
span -
|
||||||
.detail
|
.detail
|
||||||
span.name(v-if="userDialog.unFriended") {{ $t('dialog.user.info.unfriended') }}
|
span.name(v-if="userDialog.unFriended && !hideUnfriends") {{ $t('dialog.user.info.unfriended') }}
|
||||||
el-tooltip(v-if="!hideTooltips" placement="top" style="margin-left:5px" :content="$t('dialog.user.info.accuracy_notice')")
|
el-tooltip(v-if="!hideTooltips" placement="top" style="margin-left:5px" :content="$t('dialog.user.info.accuracy_notice')")
|
||||||
i.el-icon-warning
|
i.el-icon-warning
|
||||||
span.name(v-else) {{ $t('dialog.user.info.friended') }}
|
span.name(v-else) {{ $t('dialog.user.info.friended') }}
|
||||||
el-tooltip(v-if="!hideTooltips" placement="top" style="margin-left:5px" :content="$t('dialog.user.info.accuracy_notice')")
|
el-tooltip(v-if="!hideTooltips" placement="top" style="margin-left:5px" :content="$t('dialog.user.info.accuracy_notice')")
|
||||||
i.el-icon-warning
|
i.el-icon-warning
|
||||||
span.extra {{ userDialog.dateFriended | formatDate('long') }}
|
span.extra(v-if="!hideUnfriends") {{ userDialog.dateFriended | formatDate('long') }}
|
||||||
|
span.extra(v-else) -
|
||||||
template(v-if="API.currentUser.id === userDialog.id")
|
template(v-if="API.currentUser.id === userDialog.id")
|
||||||
.x-friend-item(@click="toggleAvatarCopying")
|
.x-friend-item(@click="toggleAvatarCopying")
|
||||||
.detail
|
.detail
|
||||||
|
|||||||
@@ -323,6 +323,10 @@
|
|||||||
"user_colors": {
|
"user_colors": {
|
||||||
"header": "User Colors",
|
"header": "User Colors",
|
||||||
"random_colors_from_user_id": "Random Colors from User ID"
|
"random_colors_from_user_id": "Random Colors from User ID"
|
||||||
|
},
|
||||||
|
"friend_log": {
|
||||||
|
"header": "Friend Log",
|
||||||
|
"hide_unfriends": "Hide Unfriends"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"notifications": {
|
"notifications": {
|
||||||
|
|||||||
@@ -323,6 +323,10 @@
|
|||||||
"user_colors": {
|
"user_colors": {
|
||||||
"header": "Colores de los Usuarios",
|
"header": "Colores de los Usuarios",
|
||||||
"random_colors_from_user_id": "Colores Aleatorios a partir del ID de Usuario"
|
"random_colors_from_user_id": "Colores Aleatorios a partir del ID de Usuario"
|
||||||
|
},
|
||||||
|
"friend_log": {
|
||||||
|
"header": "Friend Log",
|
||||||
|
"hide_unfriends": "Hide Unfriends"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"notifications": {
|
"notifications": {
|
||||||
|
|||||||
@@ -323,6 +323,10 @@
|
|||||||
"user_colors": {
|
"user_colors": {
|
||||||
"header": "Couleurs des utilisateurs",
|
"header": "Couleurs des utilisateurs",
|
||||||
"random_colors_from_user_id": "Couleurs procedurales à partir de l'ID de l'utilisateur"
|
"random_colors_from_user_id": "Couleurs procedurales à partir de l'ID de l'utilisateur"
|
||||||
|
},
|
||||||
|
"friend_log": {
|
||||||
|
"header": "Friend Log",
|
||||||
|
"hide_unfriends": "Hide Unfriends"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"notifications": {
|
"notifications": {
|
||||||
|
|||||||
@@ -323,6 +323,10 @@
|
|||||||
"user_colors": {
|
"user_colors": {
|
||||||
"header": "Felhasználói színek",
|
"header": "Felhasználói színek",
|
||||||
"random_colors_from_user_id": "Random Colors from User ID"
|
"random_colors_from_user_id": "Random Colors from User ID"
|
||||||
|
},
|
||||||
|
"friend_log": {
|
||||||
|
"header": "Friend Log",
|
||||||
|
"hide_unfriends": "Hide Unfriends"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"notifications": {
|
"notifications": {
|
||||||
|
|||||||
@@ -323,6 +323,10 @@
|
|||||||
"user_colors": {
|
"user_colors": {
|
||||||
"header": "ユーザーの色",
|
"header": "ユーザーの色",
|
||||||
"random_colors_from_user_id": "ユーザーIDからランダムに色を生成"
|
"random_colors_from_user_id": "ユーザーIDからランダムに色を生成"
|
||||||
|
},
|
||||||
|
"friend_log": {
|
||||||
|
"header": "Friend Log",
|
||||||
|
"hide_unfriends": "Hide Unfriends"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"notifications": {
|
"notifications": {
|
||||||
|
|||||||
@@ -323,6 +323,10 @@
|
|||||||
"user_colors": {
|
"user_colors": {
|
||||||
"header": "유저 색상",
|
"header": "유저 색상",
|
||||||
"random_colors_from_user_id": "유저 ID별 무작위 색상 사용"
|
"random_colors_from_user_id": "유저 ID별 무작위 색상 사용"
|
||||||
|
},
|
||||||
|
"friend_log": {
|
||||||
|
"header": "Friend Log",
|
||||||
|
"hide_unfriends": "Hide Unfriends"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"notifications": {
|
"notifications": {
|
||||||
|
|||||||
@@ -323,6 +323,10 @@
|
|||||||
"user_colors": {
|
"user_colors": {
|
||||||
"header": "Kolory użytkowników",
|
"header": "Kolory użytkowników",
|
||||||
"random_colors_from_user_id": "Losowe kolory według ID Użytkownika"
|
"random_colors_from_user_id": "Losowe kolory według ID Użytkownika"
|
||||||
|
},
|
||||||
|
"friend_log": {
|
||||||
|
"header": "Friend Log",
|
||||||
|
"hide_unfriends": "Hide Unfriends"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"notifications": {
|
"notifications": {
|
||||||
|
|||||||
@@ -323,6 +323,10 @@
|
|||||||
"user_colors": {
|
"user_colors": {
|
||||||
"header": "Cores do Usuário",
|
"header": "Cores do Usuário",
|
||||||
"random_colors_from_user_id": "Cores Aleatórias do ID do Usuário"
|
"random_colors_from_user_id": "Cores Aleatórias do ID do Usuário"
|
||||||
|
},
|
||||||
|
"friend_log": {
|
||||||
|
"header": "Friend Log",
|
||||||
|
"hide_unfriends": "Hide Unfriends"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"notifications": {
|
"notifications": {
|
||||||
|
|||||||
@@ -323,6 +323,10 @@
|
|||||||
"user_colors": {
|
"user_colors": {
|
||||||
"header": "Пользовательские цвета",
|
"header": "Пользовательские цвета",
|
||||||
"random_colors_from_user_id": "Случайные цвета из ID пользователя"
|
"random_colors_from_user_id": "Случайные цвета из ID пользователя"
|
||||||
|
},
|
||||||
|
"friend_log": {
|
||||||
|
"header": "Friend Log",
|
||||||
|
"hide_unfriends": "Hide Unfriends"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"notifications": {
|
"notifications": {
|
||||||
|
|||||||
@@ -323,6 +323,10 @@
|
|||||||
"user_colors": {
|
"user_colors": {
|
||||||
"header": "Màu của người dùng",
|
"header": "Màu của người dùng",
|
||||||
"random_colors_from_user_id": "Màu ngẫu nhiên từ ID người dùng"
|
"random_colors_from_user_id": "Màu ngẫu nhiên từ ID người dùng"
|
||||||
|
},
|
||||||
|
"friend_log": {
|
||||||
|
"header": "Friend Log",
|
||||||
|
"hide_unfriends": "Hide Unfriends"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"notifications": {
|
"notifications": {
|
||||||
|
|||||||
@@ -323,6 +323,10 @@
|
|||||||
"user_colors": {
|
"user_colors": {
|
||||||
"header": "好友名称显示颜色",
|
"header": "好友名称显示颜色",
|
||||||
"random_colors_from_user_id": "从用户 ID 随机挑选颜色"
|
"random_colors_from_user_id": "从用户 ID 随机挑选颜色"
|
||||||
|
},
|
||||||
|
"friend_log": {
|
||||||
|
"header": "Friend Log",
|
||||||
|
"hide_unfriends": "Hide Unfriends"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"notifications": {
|
"notifications": {
|
||||||
|
|||||||
@@ -323,6 +323,10 @@
|
|||||||
"user_colors": {
|
"user_colors": {
|
||||||
"header": "玩家名稱顏色",
|
"header": "玩家名稱顏色",
|
||||||
"random_colors_from_user_id": "從玩家 ID 隨機挑選顏色"
|
"random_colors_from_user_id": "從玩家 ID 隨機挑選顏色"
|
||||||
|
},
|
||||||
|
"friend_log": {
|
||||||
|
"header": "Friend Log",
|
||||||
|
"hide_unfriends": "Hide Unfriends"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"notifications": {
|
"notifications": {
|
||||||
|
|||||||
@@ -261,6 +261,12 @@ mixin settingsTab()
|
|||||||
div
|
div
|
||||||
el-color-picker(v-model="trustColor.troll" @change="updatetrustColor" size="mini" :predefine="['#782f2f']")
|
el-color-picker(v-model="trustColor.troll" @change="updatetrustColor" size="mini" :predefine="['#782f2f']")
|
||||||
span.color-picker(slot="trigger" class="x-tag-troll") Nuisance
|
span.color-picker(slot="trigger" class="x-tag-troll") Nuisance
|
||||||
|
//- Appearance | Friend Log
|
||||||
|
div.options-container
|
||||||
|
span.header {{ $t('view.settings.appearance.friend_log.header') }}
|
||||||
|
div.options-container-item
|
||||||
|
span.name {{ $t('view.settings.appearance.friend_log.hide_unfriends') }}
|
||||||
|
el-switch(v-model="hideUnfriends" @change="saveFriendLogOptions")
|
||||||
//- Notifications Tab
|
//- Notifications Tab
|
||||||
el-tab-pane(:label="$t('view.settings.category.notifications')")
|
el-tab-pane(:label="$t('view.settings.category.notifications')")
|
||||||
//- Notifications | Notifications
|
//- Notifications | Notifications
|
||||||
|
|||||||
Reference in New Issue
Block a user