mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-07 06:56:04 +02:00
filter pinia data for sentry reports
This commit is contained in:
+12
-1
@@ -49,7 +49,12 @@ pinia.use(
|
|||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
...state.User,
|
...state.User,
|
||||||
currentUser: null,
|
currentUser: null,
|
||||||
subsetOfLanguages: null
|
subsetOfLanguages: null,
|
||||||
|
languageDialog: {
|
||||||
|
// @ts-ignore
|
||||||
|
...state.User.languageDialog,
|
||||||
|
languages: null
|
||||||
|
}
|
||||||
},
|
},
|
||||||
GameLog: {
|
GameLog: {
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
@@ -71,6 +76,12 @@ pinia.use(
|
|||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
...state.SharedFeed,
|
...state.SharedFeed,
|
||||||
sharedFeed: null
|
sharedFeed: null
|
||||||
|
},
|
||||||
|
Group: {
|
||||||
|
// @ts-ignore
|
||||||
|
...state.Group,
|
||||||
|
groupInstances: null,
|
||||||
|
inGameGroupOrder: null
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -254,21 +254,6 @@
|
|||||||
const worker = ref(null);
|
const worker = ref(null);
|
||||||
const refreshCancelToken = ref(null);
|
const refreshCancelToken = ref(null);
|
||||||
|
|
||||||
const groupedByGroupKeyFavoriteWorlds = computed(() => {
|
|
||||||
const groupedByGroupKeyFavoriteWorlds = {};
|
|
||||||
|
|
||||||
favoriteWorlds.value.forEach((world) => {
|
|
||||||
if (world.groupKey) {
|
|
||||||
if (!groupedByGroupKeyFavoriteWorlds[world.groupKey]) {
|
|
||||||
groupedByGroupKeyFavoriteWorlds[world.groupKey] = [];
|
|
||||||
}
|
|
||||||
groupedByGroupKeyFavoriteWorlds[world.groupKey].push(world);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
return groupedByGroupKeyFavoriteWorlds;
|
|
||||||
});
|
|
||||||
|
|
||||||
const sliceLocalWorldFavorites = computed(() => {
|
const sliceLocalWorldFavorites = computed(() => {
|
||||||
return (group) => {
|
return (group) => {
|
||||||
return localWorldFavorites.value[group].slice(0, sliceLocalWorldFavoritesLoadMoreNumber.value);
|
return localWorldFavorites.value[group].slice(0, sliceLocalWorldFavoritesLoadMoreNumber.value);
|
||||||
@@ -277,8 +262,19 @@
|
|||||||
|
|
||||||
const sliceWorldFavorites = computed(() => {
|
const sliceWorldFavorites = computed(() => {
|
||||||
return (group) => {
|
return (group) => {
|
||||||
if (groupedByGroupKeyFavoriteWorlds.value[group]) {
|
const groupedByGroupKeyFavoriteWorlds = {};
|
||||||
return groupedByGroupKeyFavoriteWorlds.value[group].slice(0, sliceWorldFavoritesLoadMoreNumber.value);
|
|
||||||
|
favoriteWorlds.value.forEach((world) => {
|
||||||
|
if (world.groupKey) {
|
||||||
|
if (!groupedByGroupKeyFavoriteWorlds[world.groupKey]) {
|
||||||
|
groupedByGroupKeyFavoriteWorlds[world.groupKey] = [];
|
||||||
|
}
|
||||||
|
groupedByGroupKeyFavoriteWorlds[world.groupKey].push(world);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
if (groupedByGroupKeyFavoriteWorlds[group]) {
|
||||||
|
return groupedByGroupKeyFavoriteWorlds[group].slice(0, sliceWorldFavoritesLoadMoreNumber.value);
|
||||||
}
|
}
|
||||||
return [];
|
return [];
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user