mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-05 14:26:06 +02:00
Clean up
This commit is contained in:
@@ -52,7 +52,7 @@
|
|||||||
<el-button
|
<el-button
|
||||||
v-else
|
v-else
|
||||||
style="display: block; width: 100%; margin: 10px 0; white-space: initial; height: auto"
|
style="display: block; width: 100%; margin: 10px 0; white-space: initial; height: auto"
|
||||||
:disabled="!isLocalUserVrcplusSupporter"
|
:disabled="!isLocalUserVrcPlusSupporter"
|
||||||
@click="addLocalAvatarFavorite(favoriteDialog.objectId, group)">
|
@click="addLocalAvatarFavorite(favoriteDialog.objectId, group)">
|
||||||
{{ group }} ({{ getLocalAvatarFavoriteGroupLength(group) }})
|
{{ group }} ({{ getLocalAvatarFavoriteGroupLength(group) }})
|
||||||
</el-button>
|
</el-button>
|
||||||
@@ -94,7 +94,7 @@
|
|||||||
removeLocalWorldFavorite,
|
removeLocalWorldFavorite,
|
||||||
deleteFavoriteNoConfirm
|
deleteFavoriteNoConfirm
|
||||||
} = favoriteStore;
|
} = favoriteStore;
|
||||||
const { currentUser } = storeToRefs(useUserStore());
|
const { isLocalUserVrcPlusSupporter } = storeToRefs(useUserStore());
|
||||||
|
|
||||||
const favoriteDialogIndex = ref(2000);
|
const favoriteDialogIndex = ref(2000);
|
||||||
const groups = ref([]);
|
const groups = ref([]);
|
||||||
@@ -107,8 +107,6 @@
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const isLocalUserVrcplusSupporter = computed(() => currentUser.value.$isVRCPlus);
|
|
||||||
|
|
||||||
watch(
|
watch(
|
||||||
() => favoriteDialog.value.visible,
|
() => favoriteDialog.value.visible,
|
||||||
(value) => {
|
(value) => {
|
||||||
|
|||||||
@@ -26,7 +26,7 @@
|
|||||||
type="default"
|
type="default"
|
||||||
size="small"
|
size="small"
|
||||||
:icon="Upload"
|
:icon="Upload"
|
||||||
:disabled="!currentUser.$isVRCPlus"
|
:disabled="!isLocalUserVrcPlusSupporter"
|
||||||
@click="displayGalleryUpload"
|
@click="displayGalleryUpload"
|
||||||
>{{ t('dialog.gallery_select.upload') }}</el-button
|
>{{ t('dialog.gallery_select.upload') }}</el-button
|
||||||
>
|
>
|
||||||
@@ -66,7 +66,7 @@
|
|||||||
|
|
||||||
const { galleryTable } = storeToRefs(useGalleryStore());
|
const { galleryTable } = storeToRefs(useGalleryStore());
|
||||||
const { refreshGalleryTable, handleGalleryImageAdd } = useGalleryStore();
|
const { refreshGalleryTable, handleGalleryImageAdd } = useGalleryStore();
|
||||||
const { currentUser } = storeToRefs(useUserStore());
|
const { isLocalUserVrcPlusSupporter } = storeToRefs(useUserStore());
|
||||||
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
gallerySelectDialog: {
|
gallerySelectDialog: {
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
width="800px"
|
width="800px"
|
||||||
append-to-body
|
append-to-body
|
||||||
@close="cancelSendInvite">
|
@close="cancelSendInvite">
|
||||||
<template v-if="currentUser.$isVRCPlus">
|
<template v-if="isLocalUserVrcPlusSupporter">
|
||||||
<!-- <template v-if="gallerySelectDialog.selectedFileId">-->
|
<!-- <template v-if="gallerySelectDialog.selectedFileId">-->
|
||||||
<!-- <div style="display: inline-block; flex: none; margin-right: 5px">-->
|
<!-- <div style="display: inline-block; flex: none; margin-right: 5px">-->
|
||||||
<!-- <el-popover placement="right" :width="500px" trigger="click">-->
|
<!-- <el-popover placement="right" :width="500px" trigger="click">-->
|
||||||
@@ -104,7 +104,7 @@
|
|||||||
const { refreshInviteMessageTableData } = useInviteStore();
|
const { refreshInviteMessageTableData } = useInviteStore();
|
||||||
const { inviteMessageTable } = storeToRefs(useInviteStore());
|
const { inviteMessageTable } = storeToRefs(useInviteStore());
|
||||||
const { inviteImageUpload } = useGalleryStore();
|
const { inviteImageUpload } = useGalleryStore();
|
||||||
const { currentUser } = storeToRefs(useUserStore());
|
const { isLocalUserVrcPlusSupporter } = storeToRefs(useUserStore());
|
||||||
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
sendInviteDialogVisible: {
|
sendInviteDialogVisible: {
|
||||||
|
|||||||
@@ -86,7 +86,7 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item :label="t('dialog.new_instance.display_name')">
|
<el-form-item :label="t('dialog.new_instance.display_name')">
|
||||||
<el-input
|
<el-input
|
||||||
:disabled="!isLocalUserVrcplusSupporter"
|
:disabled="!isLocalUserVrcPlusSupporter"
|
||||||
v-model="newInstanceDialog.displayName"
|
v-model="newInstanceDialog.displayName"
|
||||||
size="small"
|
size="small"
|
||||||
@click="$event.target.tagName === 'INPUT' && $event.target.select()"
|
@click="$event.target.tagName === 'INPUT' && $event.target.select()"
|
||||||
@@ -515,7 +515,7 @@
|
|||||||
const { lastLocation } = storeToRefs(useLocationStore());
|
const { lastLocation } = storeToRefs(useLocationStore());
|
||||||
const { showLaunchDialog, tryOpenInstanceInVrc } = useLaunchStore();
|
const { showLaunchDialog, tryOpenInstanceInVrc } = useLaunchStore();
|
||||||
const { createNewInstance } = useInstanceStore();
|
const { createNewInstance } = useInstanceStore();
|
||||||
const { currentUser } = storeToRefs(useUserStore());
|
const { currentUser, isLocalUserVrcPlusSupporter } = storeToRefs(useUserStore());
|
||||||
const { canOpenInstanceInGame } = useInviteStore();
|
const { canOpenInstanceInGame } = useInviteStore();
|
||||||
|
|
||||||
const newInstanceDialogIndex = ref(2000);
|
const newInstanceDialogIndex = ref(2000);
|
||||||
@@ -564,8 +564,6 @@
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
const isLocalUserVrcplusSupporter = computed(() => currentUser.value.$isVRCPlus);
|
|
||||||
|
|
||||||
initializeNewInstanceDialog();
|
initializeNewInstanceDialog();
|
||||||
|
|
||||||
function closeInviteDialog() {
|
function closeInviteDialog() {
|
||||||
@@ -627,7 +625,7 @@
|
|||||||
D.strict = false;
|
D.strict = false;
|
||||||
D.shortName = '';
|
D.shortName = '';
|
||||||
D.secureOrShortName = '';
|
D.secureOrShortName = '';
|
||||||
if (!isLocalUserVrcplusSupporter.value) {
|
if (!isLocalUserVrcPlusSupporter.value) {
|
||||||
D.displayName = '';
|
D.displayName = '';
|
||||||
}
|
}
|
||||||
const args = await groupRequest.getGroupPermissions({ userId: currentUser.value.id });
|
const args = await groupRequest.getGroupPermissions({ userId: currentUser.value.id });
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
width="800px"
|
width="800px"
|
||||||
append-to-body
|
append-to-body
|
||||||
@close="cancelSendInviteRequest">
|
@close="cancelSendInviteRequest">
|
||||||
<template v-if="currentUser.$isVRCPlus">
|
<template v-if="isLocalUserVrcPlusSupporter">
|
||||||
<input class="inviteImageUploadButton" type="file" accept="image/*" @change="inviteImageUpload" />
|
<input class="inviteImageUploadButton" type="file" accept="image/*" @change="inviteImageUpload" />
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -79,7 +79,7 @@
|
|||||||
const { inviteRequestMessageTable } = storeToRefs(inviteStore);
|
const { inviteRequestMessageTable } = storeToRefs(inviteStore);
|
||||||
const galleryStore = useGalleryStore();
|
const galleryStore = useGalleryStore();
|
||||||
const { inviteImageUpload } = galleryStore;
|
const { inviteImageUpload } = galleryStore;
|
||||||
const { currentUser } = storeToRefs(useUserStore());
|
const { isLocalUserVrcPlusSupporter } = storeToRefs(useUserStore());
|
||||||
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
sendInviteRequestDialogVisible: {
|
sendInviteRequestDialogVisible: {
|
||||||
|
|||||||
@@ -1340,7 +1340,7 @@
|
|||||||
{{ userGroups.remainingGroups.length }}
|
{{ userGroups.remainingGroups.length }}
|
||||||
<template v-if="currentUser.id === userDialog.id">
|
<template v-if="currentUser.id === userDialog.id">
|
||||||
/
|
/
|
||||||
<template v-if="currentUser.$isVRCPlus">
|
<template v-if="isLocalUserVrcPlusSupporter">
|
||||||
{{ cachedConfig?.constants?.GROUPS?.MAX_JOINED_PLUS }}
|
{{ cachedConfig?.constants?.GROUPS?.MAX_JOINED_PLUS }}
|
||||||
</template>
|
</template>
|
||||||
<template v-else>
|
<template v-else>
|
||||||
@@ -1805,7 +1805,7 @@
|
|||||||
|
|
||||||
const { hideUserNotes, hideUserMemos } = storeToRefs(useAppearanceSettingsStore());
|
const { hideUserNotes, hideUserMemos } = storeToRefs(useAppearanceSettingsStore());
|
||||||
const { avatarRemoteDatabase } = storeToRefs(useAdvancedSettingsStore());
|
const { avatarRemoteDatabase } = storeToRefs(useAdvancedSettingsStore());
|
||||||
const { userDialog, languageDialog, currentUser } = storeToRefs(useUserStore());
|
const { userDialog, languageDialog, currentUser, isLocalUserVrcPlusSupporter } = storeToRefs(useUserStore());
|
||||||
const { cachedUsers, showUserDialog, sortUserDialogAvatars, refreshUserDialogAvatars, refreshUserDialogTreeData } =
|
const { cachedUsers, showUserDialog, sortUserDialogAvatars, refreshUserDialogAvatars, refreshUserDialogTreeData } =
|
||||||
useUserStore();
|
useUserStore();
|
||||||
const { favoriteLimits } = storeToRefs(useFavoriteStore());
|
const { favoriteLimits } = storeToRefs(useFavoriteStore());
|
||||||
|
|||||||
@@ -205,7 +205,7 @@ export const useAvatarStore = defineStore('Avatar', () => {
|
|||||||
D.galleryLoading = true;
|
D.galleryLoading = true;
|
||||||
D.isFavorite =
|
D.isFavorite =
|
||||||
favoriteStore.cachedFavoritesByObjectId.has(avatarId) ||
|
favoriteStore.cachedFavoritesByObjectId.has(avatarId) ||
|
||||||
(userStore.currentUser.$isVRCPlus &&
|
(userStore.isLocalUserVrcPlusSupporter &&
|
||||||
favoriteStore.localAvatarFavoritesList.includes(avatarId));
|
favoriteStore.localAvatarFavoritesList.includes(avatarId));
|
||||||
D.isBlocked = cachedAvatarModerations.has(avatarId);
|
D.isBlocked = cachedAvatarModerations.has(avatarId);
|
||||||
const ref2 = cachedAvatars.get(avatarId);
|
const ref2 = cachedAvatars.get(avatarId);
|
||||||
|
|||||||
@@ -287,6 +287,10 @@ export const useUserStore = defineStore('User', () => {
|
|||||||
|
|
||||||
const cachedUsers = new Map();
|
const cachedUsers = new Map();
|
||||||
|
|
||||||
|
const isLocalUserVrcPlusSupporter = computed(
|
||||||
|
() => state.currentUser.$isVRCPlus
|
||||||
|
);
|
||||||
|
|
||||||
const currentUser = computed({
|
const currentUser = computed({
|
||||||
get: () => state.currentUser,
|
get: () => state.currentUser,
|
||||||
set: (value) => {
|
set: (value) => {
|
||||||
@@ -2019,6 +2023,7 @@ export const useUserStore = defineStore('User', () => {
|
|||||||
showUserDialogHistory,
|
showUserDialogHistory,
|
||||||
customUserTags,
|
customUserTags,
|
||||||
cachedUsers,
|
cachedUsers,
|
||||||
|
isLocalUserVrcPlusSupporter,
|
||||||
applyCurrentUser,
|
applyCurrentUser,
|
||||||
applyUser,
|
applyUser,
|
||||||
showUserDialog,
|
showUserDialog,
|
||||||
|
|||||||
@@ -147,7 +147,7 @@
|
|||||||
</el-collapse-item>
|
</el-collapse-item>
|
||||||
<span style="display: block; margin-top: 20px">{{ t('view.favorite.avatars.local_favorites') }}</span>
|
<span style="display: block; margin-top: 20px">{{ t('view.favorite.avatars.local_favorites') }}</span>
|
||||||
<br />
|
<br />
|
||||||
<el-button size="small" :disabled="!isLocalUserVrcplusSupporter" @click="promptNewLocalAvatarFavoriteGroup">
|
<el-button size="small" :disabled="!isLocalUserVrcPlusSupporter" @click="promptNewLocalAvatarFavoriteGroup">
|
||||||
{{ t('view.favorite.avatars.new_group') }}
|
{{ t('view.favorite.avatars.new_group') }}
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
@@ -256,7 +256,7 @@
|
|||||||
} = useFavoriteStore();
|
} = useFavoriteStore();
|
||||||
const { avatarHistoryArray } = storeToRefs(useAvatarStore());
|
const { avatarHistoryArray } = storeToRefs(useAvatarStore());
|
||||||
const { promptClearAvatarHistory, showAvatarDialog } = useAvatarStore();
|
const { promptClearAvatarHistory, showAvatarDialog } = useAvatarStore();
|
||||||
const { currentUser } = storeToRefs(useUserStore());
|
const { isLocalUserVrcPlusSupporter } = storeToRefs(useUserStore());
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
|
|
||||||
const avatarExportDialogVisible = ref(false);
|
const avatarExportDialogVisible = ref(false);
|
||||||
@@ -286,8 +286,6 @@
|
|||||||
return groupedByGroupKeyFavoriteAvatars;
|
return groupedByGroupKeyFavoriteAvatars;
|
||||||
});
|
});
|
||||||
|
|
||||||
const isLocalUserVrcplusSupporter = computed(() => currentUser.value.$isVRCPlus);
|
|
||||||
|
|
||||||
function searchAvatarFavorites() {
|
function searchAvatarFavorites() {
|
||||||
let ref = null;
|
let ref = null;
|
||||||
const search = avatarFavoriteSearch.value.toLowerCase();
|
const search = avatarFavoriteSearch.value.toLowerCase();
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
width="800px"
|
width="800px"
|
||||||
append-to-body
|
append-to-body
|
||||||
@close="cancelSendInviteRequestResponse">
|
@close="cancelSendInviteRequestResponse">
|
||||||
<template v-if="currentUser.$isVRCPlus">
|
<template v-if="isLocalUserVrcPlusSupporter">
|
||||||
<input class="inviteImageUploadButton" type="file" accept="image/*" @change="inviteImageUpload" />
|
<input class="inviteImageUploadButton" type="file" accept="image/*" @change="inviteImageUpload" />
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -76,7 +76,7 @@
|
|||||||
const { inviteRequestResponseMessageTable } = storeToRefs(inviteStore);
|
const { inviteRequestResponseMessageTable } = storeToRefs(inviteStore);
|
||||||
const galleryStore = useGalleryStore();
|
const galleryStore = useGalleryStore();
|
||||||
const { inviteImageUpload } = galleryStore;
|
const { inviteImageUpload } = galleryStore;
|
||||||
const { currentUser } = storeToRefs(useUserStore());
|
const { isLocalUserVrcPlusSupporter } = storeToRefs(useUserStore());
|
||||||
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
sendInviteResponseDialog: {
|
sendInviteResponseDialog: {
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
width="800px"
|
width="800px"
|
||||||
append-to-body
|
append-to-body
|
||||||
@close="cancelSendInviteResponse">
|
@close="cancelSendInviteResponse">
|
||||||
<template v-if="currentUser.$isVRCPlus">
|
<template v-if="isLocalUserVrcPlusSupporter">
|
||||||
<input class="inviteImageUploadButton" type="file" accept="image/*" @change="inviteImageUpload" />
|
<input class="inviteImageUploadButton" type="file" accept="image/*" @change="inviteImageUpload" />
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -73,7 +73,7 @@
|
|||||||
const { inviteResponseMessageTable } = storeToRefs(inviteStore);
|
const { inviteResponseMessageTable } = storeToRefs(inviteStore);
|
||||||
const galleryStore = useGalleryStore();
|
const galleryStore = useGalleryStore();
|
||||||
const { inviteImageUpload } = galleryStore;
|
const { inviteImageUpload } = galleryStore;
|
||||||
const { currentUser } = storeToRefs(useUserStore());
|
const { isLocalUserVrcPlusSupporter } = storeToRefs(useUserStore());
|
||||||
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
sendInviteResponseDialog: {
|
sendInviteResponseDialog: {
|
||||||
|
|||||||
@@ -41,7 +41,7 @@
|
|||||||
size="small"
|
size="small"
|
||||||
@click="displayGalleryUpload"
|
@click="displayGalleryUpload"
|
||||||
:icon="Upload"
|
:icon="Upload"
|
||||||
:disabled="!currentUser.$isVRCPlus || isUploading">
|
:disabled="!isLocalUserVrcPlusSupporter || isUploading">
|
||||||
{{ t('dialog.gallery_icons.upload') }}
|
{{ t('dialog.gallery_icons.upload') }}
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
@@ -115,7 +115,7 @@
|
|||||||
size="small"
|
size="small"
|
||||||
@click="displayVRCPlusIconUpload"
|
@click="displayVRCPlusIconUpload"
|
||||||
:icon="Upload"
|
:icon="Upload"
|
||||||
:disabled="!currentUser.$isVRCPlus || isUploading">
|
:disabled="!isLocalUserVrcPlusSupporter || isUploading">
|
||||||
{{ t('dialog.gallery_icons.upload') }}
|
{{ t('dialog.gallery_icons.upload') }}
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
@@ -190,7 +190,7 @@
|
|||||||
size="small"
|
size="small"
|
||||||
@click="displayEmojiUpload"
|
@click="displayEmojiUpload"
|
||||||
:icon="Upload"
|
:icon="Upload"
|
||||||
:disabled="!currentUser.$isVRCPlus || isUploading">
|
:disabled="!isLocalUserVrcPlusSupporter || isUploading">
|
||||||
{{ t('dialog.gallery_icons.upload') }}
|
{{ t('dialog.gallery_icons.upload') }}
|
||||||
</el-button>
|
</el-button>
|
||||||
</el-button-group>
|
</el-button-group>
|
||||||
@@ -338,7 +338,7 @@
|
|||||||
size="small"
|
size="small"
|
||||||
@click="displayStickerUpload"
|
@click="displayStickerUpload"
|
||||||
:icon="Upload"
|
:icon="Upload"
|
||||||
:disabled="!currentUser.$isVRCPlus || isUploading">
|
:disabled="!isLocalUserVrcPlusSupporter || isUploading">
|
||||||
{{ t('dialog.gallery_icons.upload') }}
|
{{ t('dialog.gallery_icons.upload') }}
|
||||||
</el-button>
|
</el-button>
|
||||||
</el-button-group>
|
</el-button-group>
|
||||||
@@ -405,7 +405,7 @@
|
|||||||
size="small"
|
size="small"
|
||||||
@click="displayPrintUpload"
|
@click="displayPrintUpload"
|
||||||
:icon="Upload"
|
:icon="Upload"
|
||||||
:disabled="!currentUser.$isVRCPlus || isUploading">
|
:disabled="!isLocalUserVrcPlusSupporter || isUploading">
|
||||||
{{ t('dialog.gallery_icons.upload') }}
|
{{ t('dialog.gallery_icons.upload') }}
|
||||||
</el-button>
|
</el-button>
|
||||||
</el-button-group>
|
</el-button-group>
|
||||||
@@ -588,7 +588,7 @@
|
|||||||
|
|
||||||
const { currentUserInventory } = storeToRefs(useAdvancedSettingsStore());
|
const { currentUserInventory } = storeToRefs(useAdvancedSettingsStore());
|
||||||
const { showFullscreenImageDialog } = useGalleryStore();
|
const { showFullscreenImageDialog } = useGalleryStore();
|
||||||
const { currentUser } = storeToRefs(useUserStore());
|
const { currentUser, isLocalUserVrcPlusSupporter } = storeToRefs(useUserStore());
|
||||||
const { cachedConfig } = storeToRefs(useAuthStore());
|
const { cachedConfig } = storeToRefs(useAuthStore());
|
||||||
|
|
||||||
const emojiAnimFps = ref(15);
|
const emojiAnimFps = ref(15);
|
||||||
|
|||||||
@@ -35,7 +35,7 @@
|
|||||||
>{{ t('dialog.screenshot_metadata.open_folder') }}</el-button
|
>{{ t('dialog.screenshot_metadata.open_folder') }}</el-button
|
||||||
>
|
>
|
||||||
<el-button
|
<el-button
|
||||||
v-if="currentUser.$isVRCPlus && screenshotMetadataDialog.metadata.filePath"
|
v-if="isLocalUserVrcPlusSupporter && screenshotMetadataDialog.metadata.filePath"
|
||||||
size="small"
|
size="small"
|
||||||
:icon="Upload"
|
:icon="Upload"
|
||||||
@click="uploadScreenshotToGallery"
|
@click="uploadScreenshotToGallery"
|
||||||
@@ -167,7 +167,7 @@
|
|||||||
|
|
||||||
const { showFullscreenImageDialog, handleGalleryImageAdd } = useGalleryStore();
|
const { showFullscreenImageDialog, handleGalleryImageAdd } = useGalleryStore();
|
||||||
const { currentlyDroppingFile } = storeToRefs(useVrcxStore());
|
const { currentlyDroppingFile } = storeToRefs(useVrcxStore());
|
||||||
const { currentUser } = storeToRefs(useUserStore());
|
const { isLocalUserVrcPlusSupporter } = storeToRefs(useUserStore());
|
||||||
|
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user