From 85d81b081e7d3b8a7effe3dbd3d07df4a31ca076 Mon Sep 17 00:00:00 2001 From: pypy Date: Sat, 5 Dec 2020 16:28:59 +0900 Subject: [PATCH] vrcplus tag --- html/src/app.js | 6 ++++++ html/src/index.pug | 1 + 2 files changed, 7 insertions(+) diff --git a/html/src/app.js b/html/src/app.js index 2376b34b..31ebfbed 100644 --- a/html/src/app.js +++ b/html/src/app.js @@ -1035,6 +1035,7 @@ import gameLogService from './service/gamelog.js' if (ref.homeLocation !== ref.$homeLocation.tag) { ref.$homeLocation = this.parseLocation(ref.homeLocation); } + ref.$isVRCPlus = ref.tags.includes('system_supporter'); this.applyUserTrustLevel(ref); this.applyUserLanguage(ref); } else { @@ -1065,6 +1066,7 @@ import gameLogService from './service/gamelog.js' offlineFriends: [], // VRCX $homeLocation: {}, + $isVRCPlus: false, $isModerator: false, $isTroll: false, $trustLevel: 'Visitor', @@ -1074,6 +1076,7 @@ import gameLogService from './service/gamelog.js' ...json }; ref.$homeLocation = this.parseLocation(ref.homeLocation); + ref.$isVRCPlus = ref.tags.includes('system_supporter'); this.applyUserTrustLevel(ref); this.applyUserLanguage(ref); this.currentUser = ref; @@ -1156,6 +1159,7 @@ import gameLogService from './service/gamelog.js' // VRCX $location: {}, $location_at: Date.now(), + $isVRCPlus: false, $isModerator: false, $isTroll: false, $trustLevel: 'Visitor', @@ -1165,6 +1169,7 @@ import gameLogService from './service/gamelog.js' ...json }; ref.$location = this.parseLocation(ref.location); + ref.$isVRCPlus = ref.tags.includes('system_supporter'); this.applyUserTrustLevel(ref); this.applyUserLanguage(ref); this.cachedUsers.set(ref.id, ref); @@ -1180,6 +1185,7 @@ import gameLogService from './service/gamelog.js' if (ref.location !== ref.$location.tag) { ref.$location = this.parseLocation(ref.location); } + ref.$isVRCPlus = ref.tags.includes('system_supporter'); this.applyUserTrustLevel(ref); this.applyUserLanguage(ref); for (var prop in ref) { diff --git a/html/src/index.pug b/html/src/index.pug index 99a0d612..3a218f1d 100644 --- a/html/src/index.pug +++ b/html/src/index.pug @@ -674,6 +674,7 @@ html 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.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") span(v-text="userDialog.ref.statusDescription" style="font-size:12px") div(v-if="userDialog.ref.userIcon" style="flex:none")