mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-19 06:43:51 +02:00
Small changes and fixes
This commit is contained in:
@@ -8135,7 +8135,7 @@ speechSynthesis.getVoices();
|
||||
);
|
||||
this.isFriendsGroup2 = await configRepository.getBool(
|
||||
'VRCX_isFriendsGroupActive',
|
||||
true
|
||||
false
|
||||
);
|
||||
this.isFriendsGroup3 = await configRepository.getBool(
|
||||
'VRCX_isFriendsGroupOffline',
|
||||
@@ -26837,7 +26837,51 @@ speechSynthesis.getVoices();
|
||||
$app.getLocalWorldFavorites();
|
||||
});
|
||||
|
||||
// pending offline timer
|
||||
$app.data.worldFavoriteSearch = '';
|
||||
$app.data.worldFavoriteSearchResults = [];
|
||||
|
||||
$app.methods.searchWorldFavorites = function () {
|
||||
var search = this.worldFavoriteSearch.toLowerCase();
|
||||
if (search.length < 3) {
|
||||
this.worldFavoriteSearchResults = [];
|
||||
return;
|
||||
}
|
||||
|
||||
var results = [];
|
||||
for (var i = 0; i < this.localWorldFavoriteGroups.length; ++i) {
|
||||
var group = this.localWorldFavoriteGroups[i];
|
||||
if (!this.localWorldFavorites[group]) {
|
||||
continue;
|
||||
}
|
||||
for (var j = 0; j < this.localWorldFavorites[group].length; ++j) {
|
||||
var ref = this.localWorldFavorites[group][j];
|
||||
if (
|
||||
ref.name.toLowerCase().includes(search) ||
|
||||
ref.authorName.toLowerCase().includes(search)
|
||||
) {
|
||||
results.push(ref);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
for (var i = 0; i < this.favoriteWorlds.length; ++i) {
|
||||
var ref = this.favoriteWorlds[i].ref;
|
||||
if (!ref) {
|
||||
continue;
|
||||
}
|
||||
if (
|
||||
ref.name.toLowerCase().includes(search) ||
|
||||
ref.authorName.toLowerCase().includes(search)
|
||||
) {
|
||||
results.push(ref);
|
||||
}
|
||||
}
|
||||
|
||||
this.worldFavoriteSearchResults = results;
|
||||
};
|
||||
|
||||
// #endregion
|
||||
// #region | App: pending offline timer
|
||||
|
||||
$app.methods.promptSetPendingOffline = function () {
|
||||
this.$prompt(
|
||||
@@ -28136,26 +28180,22 @@ speechSynthesis.getVoices();
|
||||
D.memberRoles.push(role);
|
||||
}
|
||||
}
|
||||
if (D.inGroup) {
|
||||
API.getAllGroupPosts({
|
||||
groupId
|
||||
}).then((args2) => {
|
||||
if (groupId === args2.params.groupId) {
|
||||
for (var post of args2.posts) {
|
||||
post.title = this.replaceBioSymbols(
|
||||
post.title
|
||||
);
|
||||
post.text = this.replaceBioSymbols(
|
||||
post.text
|
||||
);
|
||||
}
|
||||
if (args2.posts.length > 0) {
|
||||
D.announcement = args2.posts[0];
|
||||
}
|
||||
D.posts = args2.posts;
|
||||
this.updateGroupPostSearch();
|
||||
API.getAllGroupPosts({
|
||||
groupId
|
||||
}).then((args2) => {
|
||||
if (groupId === args2.params.groupId) {
|
||||
for (var post of args2.posts) {
|
||||
post.title = this.replaceBioSymbols(post.title);
|
||||
post.text = this.replaceBioSymbols(post.text);
|
||||
}
|
||||
});
|
||||
if (args2.posts.length > 0) {
|
||||
D.announcement = args2.posts[0];
|
||||
}
|
||||
D.posts = args2.posts;
|
||||
this.updateGroupPostSearch();
|
||||
}
|
||||
});
|
||||
if (D.inGroup) {
|
||||
API.getGroupInstances({
|
||||
groupId
|
||||
}).then((args3) => {
|
||||
|
||||
@@ -1033,7 +1033,7 @@ html
|
||||
timer(:epoch="user.$travelingToTime")
|
||||
span.extra(v-else)
|
||||
timer(:epoch="user.$location_at")
|
||||
.x-friend-item(v-if="groupDialog.ref.membershipStatus === 'member'" style="width:100%;cursor:default")
|
||||
.x-friend-item(style="width:100%;cursor:default")
|
||||
.detail
|
||||
span.name {{ $t('dialog.group.info.announcement') }}
|
||||
span(style="display:block" v-text="groupDialog.announcement.title")
|
||||
@@ -2361,7 +2361,7 @@ html
|
||||
el-button(type="default" @click="deleteVRCPlusIcon(image.id)" size="mini" icon="el-icon-delete" circle style="margin-left:5px")
|
||||
el-tab-pane(v-if="galleryDialogVisible" v-loading="galleryDialogIconsLoading")
|
||||
span(slot="label") {{ $t('dialog.gallery_icons.emojis') }}
|
||||
span(style="color:#909399;font-size:12px;margin-left:5px") {{ emojiTable.length }}/5
|
||||
span(style="color:#909399;font-size:12px;margin-left:5px") {{ emojiTable.length }}/9
|
||||
input(type="file" accept="image/*" @change="onFileChangeEmoji" id="EmojiUploadButton" style="display:none")
|
||||
el-button-group(style="margin-right:10px")
|
||||
el-button(type="default" size="small" @click="refreshEmojiTable" icon="el-icon-refresh") {{ $t('dialog.gallery_icons.refresh') }}
|
||||
|
||||
@@ -85,6 +85,7 @@
|
||||
},
|
||||
"worlds": {
|
||||
"header": "Worlds",
|
||||
"search": "Search",
|
||||
"vrchat_favorites": "VRChat Favorites",
|
||||
"local_favorites": "Local Favorites",
|
||||
"new_group": "New Group"
|
||||
|
||||
@@ -58,6 +58,23 @@ mixin favoritesTab()
|
||||
div(style="display:inline-block;float:right;font-size:13px;margin-right:10px")
|
||||
span.name(style="margin-right:5px") {{ $t('view.favorite.sort_by') }}
|
||||
el-switch(v-model="sortFavorites" :inactive-text="$t('view.settings.appearance.appearance.sort_favorite_by_name')" :active-text="$t('view.settings.appearance.appearance.sort_favorite_by_date')" @change="saveSortFavoritesOption")
|
||||
span(style="display:block;margin-top:20px") {{ $t('view.favorite.worlds.search') }}
|
||||
el-input(v-model="worldFavoriteSearch" @input="searchWorldFavorites" clearable size="mini" :placeholder="$t('view.favorite.worlds.search')" style="width:300px;margin-top:10px")
|
||||
.x-friend-list(style="margin-top:10px")
|
||||
div(style="display:inline-block;width:300px;margin-right:15px" v-for="favorite in worldFavoriteSearchResults" :key="favorite.id" @click="showWorldDialog(favorite.id)")
|
||||
.x-friend-item
|
||||
template(v-if="favorite.name")
|
||||
.avatar
|
||||
img(v-lazy="favorite.thumbnailImageUrl")
|
||||
.detail
|
||||
span.name(v-text="favorite.name")
|
||||
span.extra(v-if="favorite.occupants") {{ favorite.authorName }} ({{ favorite.occupants }})
|
||||
span.extra(v-else v-text="favorite.authorName")
|
||||
template(v-else)
|
||||
.avatar
|
||||
.detail
|
||||
span(v-text="favorite.id")
|
||||
|
||||
span(style="display:block;margin-top:20px") {{ $t('view.favorite.worlds.vrchat_favorites') }}
|
||||
el-collapse-item(v-for="group in API.favoriteWorldGroups" :key="group.name")
|
||||
template(slot="title")
|
||||
|
||||
Reference in New Issue
Block a user