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
+60 -3
View File
@@ -1944,6 +1944,8 @@ speechSynthesis.getVoices();
Object.assign(ref, json); Object.assign(ref, json);
} }
ref.$isLabs = ref.tags.includes('system_labs'); ref.$isLabs = ref.tags.includes('system_labs');
ref.name = $app.replaceBioSymbols(ref.name);
ref.description = $app.replaceBioSymbols(ref.description);
return ref; return ref;
}; };
@@ -2499,6 +2501,8 @@ speechSynthesis.getVoices();
} else { } else {
Object.assign(ref, json); Object.assign(ref, json);
} }
ref.name = $app.replaceBioSymbols(ref.name);
ref.description = $app.replaceBioSymbols(ref.description);
return ref; return ref;
}; };
@@ -4159,6 +4163,22 @@ speechSynthesis.getVoices();
}); });
break; 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': case 'see-notification':
this.$emit('NOTIFICATION:SEE', { this.$emit('NOTIFICATION:SEE', {
params: { params: {
@@ -4337,6 +4357,19 @@ speechSynthesis.getVoices();
case 'group-left': case 'group-left':
// content.groupId // content.groupId
break; 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: default:
console.log('Unknown pipeline type', args.json); console.log('Unknown pipeline type', args.json);
@@ -8073,8 +8106,15 @@ speechSynthesis.getVoices();
$app.methods.quickSearchChange = function (value) { $app.methods.quickSearchChange = function (value) {
if (value) { if (value) {
if (value.startsWith('search:')) { if (value.startsWith('search:')) {
this.friendsListSearch = value.substr(7); var searchText = value.substr(7);
this.$refs.menu.activeIndex = 'friendsList'; 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 { } else {
this.showUserDialog(value); this.showUserDialog(value);
} }
@@ -8166,6 +8206,17 @@ speechSynthesis.getVoices();
return true; return true;
} }
return false; 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; return true;
}; };
@@ -17314,6 +17365,7 @@ speechSynthesis.getVoices();
message: 'VRCPlus required', message: 'VRCPlus required',
type: 'error' type: 'error'
}); });
return;
} }
var userIcon = ''; var userIcon = '';
if (fileId) { if (fileId) {
@@ -19294,7 +19346,7 @@ speechSynthesis.getVoices();
var imageName = args.json.name; var imageName = args.json.name;
var avatarNameRegex = /Avatar - (.*) - Image -/g.exec(imageName); var avatarNameRegex = /Avatar - (.*) - Image -/g.exec(imageName);
if (avatarNameRegex) { if (avatarNameRegex) {
avatarName = avatarNameRegex[1]; avatarName = this.replaceBioSymbols(avatarNameRegex[1]);
} }
var ownerId = args.json.ownerId; var ownerId = args.json.ownerId;
var avatarInfo = { var avatarInfo = {
@@ -20265,6 +20317,7 @@ speechSynthesis.getVoices();
message: 'VRCPlus required', message: 'VRCPlus required',
type: 'error' type: 'error'
}); });
return;
} }
var profilePicOverride = ''; var profilePicOverride = '';
if (fileId) { if (fileId) {
@@ -23972,6 +24025,10 @@ speechSynthesis.getVoices();
if (!url) { if (!url) {
return; return;
} }
this.$message({
message: 'Downloading image...',
type: 'info'
});
try { try {
var response = await webApiService.execute({ var response = await webApiService.execute({
url, url,
+4 -4
View File
@@ -1180,7 +1180,7 @@ html
el-switch(v-model="orderFriendsGroup2" inactive-text="alphabetical" active-text="online for" @change="saveOrderFriendGroup") el-switch(v-model="orderFriendsGroup2" inactive-text="alphabetical" active-text="online for" @change="saveOrderFriendGroup")
div.options-container-item div.options-container-item
span.name Offline span.name Offline
el-switch(v-model="orderFriendsGroup3" inactive-text="alphabetical" active-text="online for" @change="saveOrderFriendGroup") el-switch(v-model="orderFriendsGroup3" inactive-text="alphabetical" active-text="offline for" @change="saveOrderFriendGroup")
span.sub-header Width span.sub-header Width
div.options-container-item div.options-container-item
el-slider(v-model="asideWidth" @input="setAsideWidth" :show-tooltip="false" :marks="{236: ''}" :min="141" :max="500" style="width:300px") el-slider(v-model="asideWidth" @input="setAsideWidth" :show-tooltip="false" :marks="{236: ''}" :min="141" :max="500" style="width:300px")
@@ -2728,7 +2728,7 @@ html
el-dialog.x-dialog(:before-close="beforeDialogClose" @mousedown.native="dialogMouseDown" @mouseup.native="dialogMouseUp" ref="notificationPositionDialog" :visible.sync="notificationPositionDialog.visible" title="Notification Position" width="400px") el-dialog.x-dialog(:before-close="beforeDialogClose" @mousedown.native="dialogMouseDown" @mouseup.native="dialogMouseUp" ref="notificationPositionDialog" :visible.sync="notificationPositionDialog.visible" title="Notification Position" width="400px")
div(style='font-size:12px;') div(style='font-size:12px;')
| Choose a notification position. | Choose a notification position.
svg(version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 300 200" style="margin-top:15px;" xml:space="preserve") .notification-position.svg(version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 300 200" style="margin-top:15px;" xml:space="preserve")
path(style="fill:black;" d="M291.89,5A3.11,3.11,0,0,1,295,8.11V160.64a3.11,3.11,0,0,1-3.11,3.11H8.11A3.11,3.11,0,0,1,5,160.64V8.11A3.11,3.11,0,0,1,8.11,5H291.89m0-5H8.11A8.11,8.11,0,0,0,0,8.11V160.64a8.11,8.11,0,0,0,8.11,8.11H291.89a8.11,8.11,0,0,0,8.11-8.11V8.11A8.11,8.11,0,0,0,291.89,0Z") path(style="fill:black;" d="M291.89,5A3.11,3.11,0,0,1,295,8.11V160.64a3.11,3.11,0,0,1-3.11,3.11H8.11A3.11,3.11,0,0,1,5,160.64V8.11A3.11,3.11,0,0,1,8.11,5H291.89m0-5H8.11A8.11,8.11,0,0,0,0,8.11V160.64a8.11,8.11,0,0,0,8.11,8.11H291.89a8.11,8.11,0,0,0,8.11-8.11V8.11A8.11,8.11,0,0,0,291.89,0Z")
rect(style="fill:#c4c4c4;" x="5" y="5" width="290" height="158.75" rx="2.5") rect(style="fill:#c4c4c4;" x="5" y="5" width="290" height="158.75" rx="2.5")
el-radio-group(v-model="notificationPosition" size="mini" @change="changeNotificationPosition") el-radio-group(v-model="notificationPosition" size="mini" @change="changeNotificationPosition")
@@ -3330,7 +3330,7 @@ html
.vrcplus-icon(v-if="image.versions[image.versions.length - 1].file.url" @click="setProfilePicOverride(image.id)" :class="{ 'current-vrcplus-icon': compareCurrentProfilePic(image.id) }") .vrcplus-icon(v-if="image.versions[image.versions.length - 1].file.url" @click="setProfilePicOverride(image.id)" :class="{ 'current-vrcplus-icon': compareCurrentProfilePic(image.id) }")
img.avatar(v-lazy="image.versions[image.versions.length - 1].file.url") img.avatar(v-lazy="image.versions[image.versions.length - 1].file.url")
div(style="float:right;margin-top:5px") div(style="float:right;margin-top:5px")
el-button(type="default" @click="downloadAndSaveImage(image.versions[image.versions.length - 1].file.url)" size="mini" icon="el-icon-paperclip" circle) el-button(type="default" @click="downloadAndSaveImage(image.versions[image.versions.length - 1].file.url)" size="mini" icon="el-icon-download" circle)
el-button(type="default" @click="deleteGalleryImage(image.id)" size="mini" icon="el-icon-delete" circle style="margin-left:5px") el-button(type="default" @click="deleteGalleryImage(image.id)" size="mini" icon="el-icon-delete" circle style="margin-left:5px")
el-tab-pane(v-if="galleryDialogVisible" v-loading="galleryDialogIconsLoading") el-tab-pane(v-if="galleryDialogVisible" v-loading="galleryDialogIconsLoading")
span(slot="label") Icons span(slot="label") Icons
@@ -3345,7 +3345,7 @@ html
.vrcplus-icon(v-if="image.versions[image.versions.length - 1].file.url" @click="setVRCPlusIcon(image.id)" :class="{ 'current-vrcplus-icon': compareCurrentVRCPlusIcon(image.id) }") .vrcplus-icon(v-if="image.versions[image.versions.length - 1].file.url" @click="setVRCPlusIcon(image.id)" :class="{ 'current-vrcplus-icon': compareCurrentVRCPlusIcon(image.id) }")
img.avatar(v-lazy="image.versions[image.versions.length - 1].file.url") img.avatar(v-lazy="image.versions[image.versions.length - 1].file.url")
div(style="float:right;margin-top:5px") div(style="float:right;margin-top:5px")
el-button(type="default" @click="downloadAndSaveImage(image.versions[image.versions.length - 1].file.url)" size="mini" icon="el-icon-paperclip" circle) el-button(type="default" @click="downloadAndSaveImage(image.versions[image.versions.length - 1].file.url)" size="mini" icon="el-icon-download" circle)
el-button(type="default" @click="deleteVRCPlusIcon(image.id)" size="mini" icon="el-icon-delete" circle style="margin-left:5px") el-button(type="default" @click="deleteVRCPlusIcon(image.id)" size="mini" icon="el-icon-delete" circle style="margin-left:5px")
//- dialog Table: Previous Instances User //- dialog Table: Previous Instances User