mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-23 00:33:50 +02:00
vrcplus tag
This commit is contained in:
@@ -1035,6 +1035,7 @@ import gameLogService from './service/gamelog.js'
|
|||||||
if (ref.homeLocation !== ref.$homeLocation.tag) {
|
if (ref.homeLocation !== ref.$homeLocation.tag) {
|
||||||
ref.$homeLocation = this.parseLocation(ref.homeLocation);
|
ref.$homeLocation = this.parseLocation(ref.homeLocation);
|
||||||
}
|
}
|
||||||
|
ref.$isVRCPlus = ref.tags.includes('system_supporter');
|
||||||
this.applyUserTrustLevel(ref);
|
this.applyUserTrustLevel(ref);
|
||||||
this.applyUserLanguage(ref);
|
this.applyUserLanguage(ref);
|
||||||
} else {
|
} else {
|
||||||
@@ -1065,6 +1066,7 @@ import gameLogService from './service/gamelog.js'
|
|||||||
offlineFriends: [],
|
offlineFriends: [],
|
||||||
// VRCX
|
// VRCX
|
||||||
$homeLocation: {},
|
$homeLocation: {},
|
||||||
|
$isVRCPlus: false,
|
||||||
$isModerator: false,
|
$isModerator: false,
|
||||||
$isTroll: false,
|
$isTroll: false,
|
||||||
$trustLevel: 'Visitor',
|
$trustLevel: 'Visitor',
|
||||||
@@ -1074,6 +1076,7 @@ import gameLogService from './service/gamelog.js'
|
|||||||
...json
|
...json
|
||||||
};
|
};
|
||||||
ref.$homeLocation = this.parseLocation(ref.homeLocation);
|
ref.$homeLocation = this.parseLocation(ref.homeLocation);
|
||||||
|
ref.$isVRCPlus = ref.tags.includes('system_supporter');
|
||||||
this.applyUserTrustLevel(ref);
|
this.applyUserTrustLevel(ref);
|
||||||
this.applyUserLanguage(ref);
|
this.applyUserLanguage(ref);
|
||||||
this.currentUser = ref;
|
this.currentUser = ref;
|
||||||
@@ -1156,6 +1159,7 @@ import gameLogService from './service/gamelog.js'
|
|||||||
// VRCX
|
// VRCX
|
||||||
$location: {},
|
$location: {},
|
||||||
$location_at: Date.now(),
|
$location_at: Date.now(),
|
||||||
|
$isVRCPlus: false,
|
||||||
$isModerator: false,
|
$isModerator: false,
|
||||||
$isTroll: false,
|
$isTroll: false,
|
||||||
$trustLevel: 'Visitor',
|
$trustLevel: 'Visitor',
|
||||||
@@ -1165,6 +1169,7 @@ import gameLogService from './service/gamelog.js'
|
|||||||
...json
|
...json
|
||||||
};
|
};
|
||||||
ref.$location = this.parseLocation(ref.location);
|
ref.$location = this.parseLocation(ref.location);
|
||||||
|
ref.$isVRCPlus = ref.tags.includes('system_supporter');
|
||||||
this.applyUserTrustLevel(ref);
|
this.applyUserTrustLevel(ref);
|
||||||
this.applyUserLanguage(ref);
|
this.applyUserLanguage(ref);
|
||||||
this.cachedUsers.set(ref.id, ref);
|
this.cachedUsers.set(ref.id, ref);
|
||||||
@@ -1180,6 +1185,7 @@ import gameLogService from './service/gamelog.js'
|
|||||||
if (ref.location !== ref.$location.tag) {
|
if (ref.location !== ref.$location.tag) {
|
||||||
ref.$location = this.parseLocation(ref.location);
|
ref.$location = this.parseLocation(ref.location);
|
||||||
}
|
}
|
||||||
|
ref.$isVRCPlus = ref.tags.includes('system_supporter');
|
||||||
this.applyUserTrustLevel(ref);
|
this.applyUserTrustLevel(ref);
|
||||||
this.applyUserLanguage(ref);
|
this.applyUserLanguage(ref);
|
||||||
for (var prop in ref) {
|
for (var prop in ref) {
|
||||||
|
|||||||
@@ -674,6 +674,7 @@ html
|
|||||||
div(style="margin-top:5px")
|
div(style="margin-top:5px")
|
||||||
el-tag.name(type="info" effect="plain" size="mini" :class="userDialog.ref.$trustClass" v-text="userDialog.ref.$trustLevel")
|
el-tag.name(type="info" effect="plain" size="mini" :class="userDialog.ref.$trustClass" v-text="userDialog.ref.$trustLevel")
|
||||||
el-tag.x-tag-friend(v-if="userDialog.isFriend && userDialog.friend" type="info" effect="plain" size="mini" style="margin-left:5px") Friend No.{{userDialog.friend.no}}
|
el-tag.x-tag-friend(v-if="userDialog.isFriend && userDialog.friend" type="info" effect="plain" size="mini" style="margin-left:5px") Friend No.{{userDialog.friend.no}}
|
||||||
|
el-tag.x-tag-vrcplus(type="info" effect="plain" size="mini" v-if="userDialog.ref.$isVRCPlus" style="margin-left:5px") VRC+
|
||||||
div(style="margin-top:5px")
|
div(style="margin-top:5px")
|
||||||
span(v-text="userDialog.ref.statusDescription" style="font-size:12px")
|
span(v-text="userDialog.ref.statusDescription" style="font-size:12px")
|
||||||
div(v-if="userDialog.ref.userIcon" style="flex:none")
|
div(v-if="userDialog.ref.userIcon" style="flex:none")
|
||||||
|
|||||||
Reference in New Issue
Block a user