mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-12 11:23:52 +02:00
Remove username field
This commit is contained in:
@@ -1053,7 +1053,6 @@ speechSynthesis.getVoices();
|
||||
args.ref = this.applyCurrentUser(json);
|
||||
this.applyUser({
|
||||
id: json.id,
|
||||
username: json.username,
|
||||
displayName: json.displayName,
|
||||
bio: json.bio,
|
||||
bioLinks: json.bioLinks,
|
||||
@@ -1455,7 +1454,6 @@ speechSynthesis.getVoices();
|
||||
if (typeof ref === 'undefined') {
|
||||
ref = {
|
||||
id: '',
|
||||
username: '',
|
||||
displayName: '',
|
||||
userIcon: '',
|
||||
bio: '',
|
||||
@@ -7642,12 +7640,6 @@ speechSynthesis.getVoices();
|
||||
}
|
||||
var NAME = ctx.name.toUpperCase();
|
||||
var match = NAME.includes(QUERY);
|
||||
if (!match) {
|
||||
var uname = String(ctx.ref.username);
|
||||
match =
|
||||
uname.toUpperCase().includes(QUERY) &&
|
||||
!uname.startsWith('steam_');
|
||||
}
|
||||
if (!match && ctx.memo) {
|
||||
match = String(ctx.memo).toUpperCase().includes(QUERY);
|
||||
}
|
||||
@@ -17568,14 +17560,7 @@ speechSynthesis.getVoices();
|
||||
$app.methods.friendsListSearchChange = function () {
|
||||
var filters = [...this.friendsListSearchFilters];
|
||||
if (filters.length === 0) {
|
||||
filters = [
|
||||
'Display Name',
|
||||
'User Name',
|
||||
'Rank',
|
||||
'Status',
|
||||
'Bio',
|
||||
'Memo'
|
||||
];
|
||||
filters = ['Display Name', 'Rank', 'Status', 'Bio', 'Memo'];
|
||||
}
|
||||
var results = [];
|
||||
if (this.friendsListSearch) {
|
||||
@@ -17590,12 +17575,6 @@ speechSynthesis.getVoices();
|
||||
}
|
||||
if (query && filters) {
|
||||
var match = false;
|
||||
if (!match && filters.includes('User Name')) {
|
||||
var uname = String(ctx.ref.username);
|
||||
match =
|
||||
uname.toUpperCase().includes(query) &&
|
||||
!uname.startsWith('steam_');
|
||||
}
|
||||
if (
|
||||
!match &&
|
||||
filters.includes('Display Name') &&
|
||||
|
||||
@@ -463,8 +463,9 @@ html
|
||||
.avatar
|
||||
img(v-lazy="userImage(user)")
|
||||
.detail
|
||||
span.name(v-text="user.displayName" :class="user.trustClass")
|
||||
span.extra(v-text="user.username" style="font-family:monospace")
|
||||
span.name(v-text="user.displayName")
|
||||
span.extra(v-if="randomUserColours" v-text="user.$trustLevel" :class="user.$trustClass")
|
||||
span.extra(v-else v-text="user.$trustLevel" :style="{'color':user.$userColour}")
|
||||
el-button-group(style="margin-top:15px")
|
||||
el-button(v-if="searchUserParams.offset" @click="moreSearchUser(-1)" icon="el-icon-back" size="small") Prev
|
||||
el-button(v-if="searchUserResults.length" @click="moreSearchUser(1)" icon="el-icon-right" size="small") Next
|
||||
@@ -969,7 +970,6 @@ html
|
||||
template(v-once #default="scope")
|
||||
span.name(v-if="randomUserColours" v-text="scope.row.displayName" :style="{'color':scope.row.$userColour}")
|
||||
span.name(v-else v-text="scope.row.displayName")
|
||||
el-table-column(label="User Name" min-width="120" prop="username" sortable :sort-method="(a, b) => sortAlphabetically(a, b, 'username')")
|
||||
el-table-column(label="Rank" width="110" prop="$trustSortNum" sortable="custom")
|
||||
template(v-once #default="scope")
|
||||
span.name(v-if="randomUserColours" v-text="scope.row.$trustLevel" :class="scope.row.$trustClass")
|
||||
@@ -1547,9 +1547,10 @@ html
|
||||
span(v-text="displayName")
|
||||
i.el-icon-caret-bottom
|
||||
span.dialog-title(v-text="userDialog.ref.displayName" style="margin-left:5px;margin-right:5px")
|
||||
el-popover(placement="top" trigger="click")
|
||||
span(slot="reference" v-text="userDialog.ref.username" style="margin-right:5px;color:#909399;font-family:monospace;font-size:12px;cursor:pointer")
|
||||
span(style="display:block;text-align:center;font-family:monospace") {{ userDialog.ref.username | textToHex }}
|
||||
template(v-if="userDialog.ref.id === API.currentUser.id")
|
||||
el-popover(placement="top" trigger="click")
|
||||
span(slot="reference" v-text="API.currentUser.username" style="margin-right:5px;color:#909399;font-family:monospace;font-size:12px;cursor:pointer")
|
||||
span(style="display:block;text-align:center;font-family:monospace") {{ API.currentUser.username | textToHex }}
|
||||
el-tooltip(v-for="item in userDialog.ref.$languages" :key="item.key" placement="top")
|
||||
template(#content)
|
||||
span {{ item.value }} ({{ item.key }})
|
||||
|
||||
Reference in New Issue
Block a user