diff --git a/src/components/dialogs/UserDialog/UserActionDropdown.vue b/src/components/dialogs/UserDialog/UserActionDropdown.vue new file mode 100644 index 00000000..76cd765d --- /dev/null +++ b/src/components/dialogs/UserDialog/UserActionDropdown.vue @@ -0,0 +1,250 @@ + + + diff --git a/src/components/dialogs/UserDialog/UserDialog.vue b/src/components/dialogs/UserDialog/UserDialog.vue index 059ec096..e11f2f44 100644 --- a/src/components/dialogs/UserDialog/UserDialog.vue +++ b/src/components/dialogs/UserDialog/UserDialog.vue @@ -6,491 +6,12 @@ :show-close="false" width="770px">
-
- - - -
-
-
- - - - - - - - - - - - - - -
-
- - {{ userDialog.ref.$trustLevel }} - - - {{ - t('dialog.user.tags.friend_no', { - number: userDialog.ref.$friendNumber ? userDialog.ref.$friendNumber : '' - }) - }} - - - Nuisance - - - Almost Nuisance - - - {{ t('dialog.user.tags.vrchat_team') }} - - - PC - - - Android - - iOS - - {{ userDialog.ref.$platform }} - - - - - - {{ userDialog.ref.$customTag }} -
- - -
- - - -
-
- {{ badge.badgeName }} -
- {{ - badge.badgeDescription - }} -
- - {{ t('dialog.user.badges.assigned') }}: - {{ formatDateFilter(badge.assignedAt, 'long') }} - - -
-
-
-
-
-
- -
-
- -
- -
- -
- - - - - -
-
-
+ @@ -1692,40 +1213,19 @@ import { ArrowDown, Bottom, - CaretBottom, - ChatDotRound, - ChatLineRound, Check, - CircleCheck, - CircleClose, Close, CollectionTag, CopyDocument, - DataLine, Delete, Download, Edit, - Flag, Loading, - Message, - Microphone, More, MoreFilled, - Mute, - Operation, - Picture, - Plus, - Pointer, - Postcard, Refresh, Setting, - Share, - Star, - StarFilled, - SwitchButton, Top, - User, - UserFilled, View, Warning } from '@element-plus/icons-vue'; @@ -1735,7 +1235,6 @@ import { useI18n } from 'vue-i18n'; import { - checkCanInvite, compareByMemberCount, compareByName, copyToClipboard, @@ -1744,7 +1243,6 @@ getFaviconUrl, isFriendOnline, isRealInstance, - languageClass, openExternalLink, parseLocation, refreshInstancePlayerCount, @@ -1764,7 +1262,6 @@ useFavoriteStore, useFriendStore, useGalleryStore, - useGameStore, useGroupStore, useInviteStore, useLocationStore, @@ -1790,6 +1287,7 @@ import { userDialogGroupSortingOptions } from '../../../shared/constants'; import SendInviteDialog from '../InviteDialog/SendInviteDialog.vue'; + import UserSummaryHeader from './UserSummaryHeader.vue'; const BioDialog = defineAsyncComponent(() => import('./BioDialog.vue')); const LanguageDialog = defineAsyncComponent(() => import('./LanguageDialog.vue')); @@ -1828,7 +1326,7 @@ const { friendLogTable } = storeToRefs(useFriendStore()); const { getFriendRequest, handleFriendDelete } = useFriendStore(); const { clearInviteImageUpload, showFullscreenImageDialog } = useGalleryStore(); - const { isGameRunning } = storeToRefs(useGameStore()); + const { logout } = useAuthStore(); const { cachedConfig } = storeToRefs(useAuthStore()); const { applyPlayerModeration, handlePlayerModerationDelete } = useModerationStore(); @@ -2567,7 +2065,7 @@ async function sortCurrentUserGroups() { const D = userDialog.value; - let sortMethod = (a, b) => 0; + let sortMethod = () => 0; switch (D.groupSorting.value) { case 'alphabetical': diff --git a/src/components/dialogs/UserDialog/UserSummaryHeader.vue b/src/components/dialogs/UserDialog/UserSummaryHeader.vue new file mode 100644 index 00000000..9e0abb54 --- /dev/null +++ b/src/components/dialogs/UserDialog/UserSummaryHeader.vue @@ -0,0 +1,458 @@ + + +