mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-07 06:56:04 +02:00
user dialog platform
This commit is contained in:
@@ -179,7 +179,7 @@
|
|||||||
{{ t('dialog.user.tags.vrchat_team') }}
|
{{ t('dialog.user.tags.vrchat_team') }}
|
||||||
</el-tag>
|
</el-tag>
|
||||||
<el-tag
|
<el-tag
|
||||||
v-if="userDialog.ref.last_platform === 'standalonewindows'"
|
v-if="userDialog.ref.$platform === 'standalonewindows'"
|
||||||
type="info"
|
type="info"
|
||||||
effect="plain"
|
effect="plain"
|
||||||
size="mini"
|
size="mini"
|
||||||
@@ -188,7 +188,7 @@
|
|||||||
PC
|
PC
|
||||||
</el-tag>
|
</el-tag>
|
||||||
<el-tag
|
<el-tag
|
||||||
v-else-if="userDialog.ref.last_platform === 'android'"
|
v-else-if="userDialog.ref.$platform === 'android'"
|
||||||
type="info"
|
type="info"
|
||||||
effect="plain"
|
effect="plain"
|
||||||
size="mini"
|
size="mini"
|
||||||
@@ -197,7 +197,7 @@
|
|||||||
Android
|
Android
|
||||||
</el-tag>
|
</el-tag>
|
||||||
<el-tag
|
<el-tag
|
||||||
v-else-if="userDialog.ref.last_platform === 'ios'"
|
v-else-if="userDialog.ref.$platform === 'ios'"
|
||||||
type="info"
|
type="info"
|
||||||
effect="plain"
|
effect="plain"
|
||||||
size="mini"
|
size="mini"
|
||||||
@@ -206,13 +206,13 @@
|
|||||||
>iOS</el-tag
|
>iOS</el-tag
|
||||||
>
|
>
|
||||||
<el-tag
|
<el-tag
|
||||||
v-else-if="userDialog.ref.last_platform"
|
v-else-if="userDialog.ref.$platform"
|
||||||
type="info"
|
type="info"
|
||||||
effect="plain"
|
effect="plain"
|
||||||
size="mini"
|
size="mini"
|
||||||
class="x-tag-platform-other"
|
class="x-tag-platform-other"
|
||||||
style="margin-right: 5px; margin-top: 5px">
|
style="margin-right: 5px; margin-top: 5px">
|
||||||
{{ userDialog.ref.last_platform }}
|
{{ userDialog.ref.$platform }}
|
||||||
</el-tag>
|
</el-tag>
|
||||||
<el-tag
|
<el-tag
|
||||||
v-if="userDialog.ref.ageVerified && userDialog.ref.ageVerificationStatus"
|
v-if="userDialog.ref.ageVerified && userDialog.ref.ageVerificationStatus"
|
||||||
|
|||||||
@@ -126,16 +126,9 @@ function userStatusClass(user, pendingOffline = false) {
|
|||||||
style.busy = true;
|
style.busy = true;
|
||||||
}
|
}
|
||||||
if (
|
if (
|
||||||
user.platform &&
|
user.$platform &&
|
||||||
user.platform !== 'standalonewindows' &&
|
user.$platform !== 'standalonewindows' &&
|
||||||
user.platform !== 'web'
|
user.$platform !== 'web'
|
||||||
) {
|
|
||||||
style.mobile = true;
|
|
||||||
}
|
|
||||||
if (
|
|
||||||
user.last_platform &&
|
|
||||||
user.last_platform !== 'standalonewindows' &&
|
|
||||||
user.platform === 'web'
|
|
||||||
) {
|
) {
|
||||||
style.mobile = true;
|
style.mobile = true;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -521,6 +521,7 @@ export const useUserStore = defineStore('User', () => {
|
|||||||
$customTagColour: '',
|
$customTagColour: '',
|
||||||
$friendNumber: 0,
|
$friendNumber: 0,
|
||||||
$lastFetch: Date.now(),
|
$lastFetch: Date.now(),
|
||||||
|
$platform: '',
|
||||||
//
|
//
|
||||||
...json
|
...json
|
||||||
};
|
};
|
||||||
@@ -595,6 +596,11 @@ export const useUserStore = defineStore('User', () => {
|
|||||||
ref.$isVRCPlus = ref.tags.includes('system_supporter');
|
ref.$isVRCPlus = ref.tags.includes('system_supporter');
|
||||||
appearanceSettingsStore.applyUserTrustLevel(ref);
|
appearanceSettingsStore.applyUserTrustLevel(ref);
|
||||||
applyUserLanguage(ref);
|
applyUserLanguage(ref);
|
||||||
|
if (ref.platform && ref.platform !== 'offline') {
|
||||||
|
ref.$platform = ref.platform;
|
||||||
|
} else {
|
||||||
|
ref.$platform = ref.last_platform;
|
||||||
|
}
|
||||||
// traveling
|
// traveling
|
||||||
if (ref.location === 'traveling') {
|
if (ref.location === 'traveling') {
|
||||||
ref.$location = parseLocation(ref.travelingToLocation);
|
ref.$location = parseLocation(ref.travelingToLocation);
|
||||||
|
|||||||
Reference in New Issue
Block a user