Small changes

This commit is contained in:
Natsumi
2022-12-25 02:22:56 +13:00
parent abe25cf834
commit e0855191da
2 changed files with 64 additions and 7 deletions

View File

@@ -1944,6 +1944,8 @@ speechSynthesis.getVoices();
Object.assign(ref, json);
}
ref.$isLabs = ref.tags.includes('system_labs');
ref.name = $app.replaceBioSymbols(ref.name);
ref.description = $app.replaceBioSymbols(ref.description);
return ref;
};
@@ -2499,6 +2501,8 @@ speechSynthesis.getVoices();
} else {
Object.assign(ref, json);
}
ref.name = $app.replaceBioSymbols(ref.name);
ref.description = $app.replaceBioSymbols(ref.description);
return ref;
};
@@ -4159,6 +4163,22 @@ speechSynthesis.getVoices();
});
break;
case 'notification-v2-delete':
console.log('notification-v2-delete', content);
for (var id of content.ids) {
this.$emit('NOTIFICATION:HIDE', {
params: {
notificationId: id
}
});
this.$emit('NOTIFICATION:SEE', {
params: {
notificationId: id
}
});
}
break;
case 'see-notification':
this.$emit('NOTIFICATION:SEE', {
params: {
@@ -4337,6 +4357,19 @@ speechSynthesis.getVoices();
case 'group-left':
// content.groupId
break;
case 'group-member-updated':
// content {
// groupId: string,
// id: string,
// isRepresenting: boolean,
// isSubscribedToAnnouncements: boolean,
// joinedAt: string,
// membershipStatus: string,
// roleIds: string[],
// userId: string,
// visibility: string
// }
break;
default:
console.log('Unknown pipeline type', args.json);
@@ -8073,8 +8106,15 @@ speechSynthesis.getVoices();
$app.methods.quickSearchChange = function (value) {
if (value) {
if (value.startsWith('search:')) {
this.friendsListSearch = value.substr(7);
this.$refs.menu.activeIndex = 'friendsList';
var searchText = value.substr(7);
if (this.quickSearchItems.length > 1 && searchText.length) {
this.friendsListSearch = searchText;
this.$refs.menu.activeIndex = 'friendsList';
} else {
this.$refs.menu.activeIndex = 'search';
this.searchText = searchText;
this.lookupUser({displayName: searchText});
}
} else {
this.showUserDialog(value);
}
@@ -8166,6 +8206,17 @@ speechSynthesis.getVoices();
return true;
}
return false;
case 'Bio':
if (String(row.displayName).toUpperCase().includes(value)) {
return true;
}
if (String(row.bio).toUpperCase().includes(value)) {
return true;
}
if (String(row.previousBio).toUpperCase().includes(value)) {
return true;
}
return false;
}
return true;
};
@@ -17314,6 +17365,7 @@ speechSynthesis.getVoices();
message: 'VRCPlus required',
type: 'error'
});
return;
}
var userIcon = '';
if (fileId) {
@@ -19294,7 +19346,7 @@ speechSynthesis.getVoices();
var imageName = args.json.name;
var avatarNameRegex = /Avatar - (.*) - Image -/g.exec(imageName);
if (avatarNameRegex) {
avatarName = avatarNameRegex[1];
avatarName = this.replaceBioSymbols(avatarNameRegex[1]);
}
var ownerId = args.json.ownerId;
var avatarInfo = {
@@ -20265,6 +20317,7 @@ speechSynthesis.getVoices();
message: 'VRCPlus required',
type: 'error'
});
return;
}
var profilePicOverride = '';
if (fileId) {
@@ -23972,6 +24025,10 @@ speechSynthesis.getVoices();
if (!url) {
return;
}
this.$message({
message: 'Downloading image...',
type: 'info'
});
try {
var response = await webApiService.execute({
url,