mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-06 22:46:06 +02:00
Fix aside sorting, prevent blocking admins, always auto login
This commit is contained in:
+4
-4
@@ -415,7 +415,7 @@ speechSynthesis.getVoices();
|
|||||||
}
|
}
|
||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
if ((status === 401) && (data.error.message === '"Missing Credentials"') && ($app.isAutoLogin)) {
|
if ((status === 401) && (data.error.message === '"Missing Credentials"')) {
|
||||||
if (endpoint.substring(0, 10) === 'auth/user?') {
|
if (endpoint.substring(0, 10) === 'auth/user?') {
|
||||||
this.$emit('AUTOLOGIN');
|
this.$emit('AUTOLOGIN');
|
||||||
}
|
}
|
||||||
@@ -5742,9 +5742,11 @@ speechSynthesis.getVoices();
|
|||||||
(ctx.state === 'online')) {
|
(ctx.state === 'online')) {
|
||||||
if (ctx.isVIP) {
|
if (ctx.isVIP) {
|
||||||
removeFromArray(this.friendsGroupA_, ctx);
|
removeFromArray(this.friendsGroupA_, ctx);
|
||||||
|
this.sortFriendsGroup1 = true;
|
||||||
this.friendsGroupA_.unshift(ctx);
|
this.friendsGroupA_.unshift(ctx);
|
||||||
} else {
|
} else {
|
||||||
removeFromArray(this.friendsGroupB_, ctx);
|
removeFromArray(this.friendsGroupB_, ctx);
|
||||||
|
this.sortFriendsGroup0 = true;
|
||||||
this.friendsGroupB_.unshift(ctx);
|
this.friendsGroupB_.unshift(ctx);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -6287,6 +6289,7 @@ speechSynthesis.getVoices();
|
|||||||
|
|
||||||
$app.methods.resetGameLog = async function () {
|
$app.methods.resetGameLog = async function () {
|
||||||
await gameLogService.reset();
|
await gameLogService.reset();
|
||||||
|
await gameLogService.poll();
|
||||||
this.gameLogTable.data = [];
|
this.gameLogTable.data = [];
|
||||||
this.lastLocation = {
|
this.lastLocation = {
|
||||||
date: 0,
|
date: 0,
|
||||||
@@ -7588,18 +7591,15 @@ speechSynthesis.getVoices();
|
|||||||
$app.data.isStartAtWindowsStartup = configRepository.getBool('VRCX_StartAtWindowsStartup');
|
$app.data.isStartAtWindowsStartup = configRepository.getBool('VRCX_StartAtWindowsStartup');
|
||||||
$app.data.isStartAsMinimizedState = (VRCXStorage.Get('VRCX_StartAsMinimizedState') === 'true');
|
$app.data.isStartAsMinimizedState = (VRCXStorage.Get('VRCX_StartAsMinimizedState') === 'true');
|
||||||
$app.data.isCloseToTray = configRepository.getBool('VRCX_CloseToTray');
|
$app.data.isCloseToTray = configRepository.getBool('VRCX_CloseToTray');
|
||||||
$app.data.isAutoLogin = configRepository.getBool('VRCX_AutoLogin');
|
|
||||||
var saveVRCXWindowOption = function () {
|
var saveVRCXWindowOption = function () {
|
||||||
configRepository.setBool('VRCX_StartAtWindowsStartup', this.isStartAtWindowsStartup);
|
configRepository.setBool('VRCX_StartAtWindowsStartup', this.isStartAtWindowsStartup);
|
||||||
VRCXStorage.Set('VRCX_StartAsMinimizedState', this.isStartAsMinimizedState.toString());
|
VRCXStorage.Set('VRCX_StartAsMinimizedState', this.isStartAsMinimizedState.toString());
|
||||||
configRepository.setBool('VRCX_CloseToTray', this.isCloseToTray);
|
configRepository.setBool('VRCX_CloseToTray', this.isCloseToTray);
|
||||||
AppApi.SetStartup(this.isStartAtWindowsStartup);
|
AppApi.SetStartup(this.isStartAtWindowsStartup);
|
||||||
configRepository.setBool('VRCX_AutoLogin', this.isAutoLogin);
|
|
||||||
};
|
};
|
||||||
$app.watch.isStartAtWindowsStartup = saveVRCXWindowOption;
|
$app.watch.isStartAtWindowsStartup = saveVRCXWindowOption;
|
||||||
$app.watch.isStartAsMinimizedState = saveVRCXWindowOption;
|
$app.watch.isStartAsMinimizedState = saveVRCXWindowOption;
|
||||||
$app.watch.isCloseToTray = saveVRCXWindowOption;
|
$app.watch.isCloseToTray = saveVRCXWindowOption;
|
||||||
$app.watch.isAutoLogin = saveVRCXWindowOption;
|
|
||||||
|
|
||||||
// setting defaults
|
// setting defaults
|
||||||
if (!configRepository.getString('VRCX_notificationPosition')) {
|
if (!configRepository.getString('VRCX_notificationPosition')) {
|
||||||
|
|||||||
+7
-10
@@ -486,11 +486,11 @@ html
|
|||||||
.detail
|
.detail
|
||||||
span.name Two-Factor Auth (2FA)
|
span.name Two-Factor Auth (2FA)
|
||||||
span.extra {{ API.currentUser.twoFactorAuthEnabled ? 'Enabled' : 'Disabled' }}
|
span.extra {{ API.currentUser.twoFactorAuthEnabled ? 'Enabled' : 'Disabled' }}
|
||||||
div(style="margin-top:10px")
|
div
|
||||||
el-button(size="small" icon="el-icon-switch-button" @click="logout()") Logout
|
el-button(size="small" icon="el-icon-switch-button" @click="logout()" style="margin-left:0;margin-right:5px;margin-top:10px") Logout
|
||||||
el-button(size="small" icon="el-icon-printer" @click="showExportFriendsListDialog()") Export Friends List
|
el-button(size="small" icon="el-icon-printer" @click="showExportFriendsListDialog()" style="margin-left:0;margin-right:5px;margin-top:10px") Export Friends List
|
||||||
el-button(size="small" icon="el-icon-user" @click="showExportAvatarsListDialog()") Export Own Avatars
|
el-button(size="small" icon="el-icon-user" @click="showExportAvatarsListDialog()" style="margin-left:0;margin-right:5px;margin-top:10px") Export Own Avatars
|
||||||
el-button(size="small" icon="el-icon-chat-dot-round" @click="showDiscordNamesDialog()") Discord Names
|
el-button(size="small" icon="el-icon-chat-dot-round" @click="showDiscordNamesDialog()" style="margin-left:0;margin-right:5px;margin-top:10px") Discord Names
|
||||||
div.options-container
|
div.options-container
|
||||||
span.header Game Info
|
span.header Game Info
|
||||||
.x-friend-list(style="margin-top:10px")
|
.x-friend-list(style="margin-top:10px")
|
||||||
@@ -859,9 +859,6 @@ html
|
|||||||
div.options-container-item
|
div.options-container-item
|
||||||
span.name Close to tray
|
span.name Close to tray
|
||||||
el-switch(v-model="isCloseToTray")
|
el-switch(v-model="isCloseToTray")
|
||||||
div.options-container-item
|
|
||||||
span.name Auto login
|
|
||||||
el-switch(v-model="isAutoLogin")
|
|
||||||
div.options-container-item
|
div.options-container-item
|
||||||
el-button-group
|
el-button-group
|
||||||
el-button(size="small" icon="el-icon-s-operation" @click="showLaunchOptions()") Launch Options
|
el-button(size="small" icon="el-icon-s-operation" @click="showLaunchOptions()") Launch Options
|
||||||
@@ -1056,9 +1053,9 @@ html
|
|||||||
el-dropdown-item(icon="el-icon-s-custom" command="Show Fallback Avatar Details") Show Fallback Avatar Details
|
el-dropdown-item(icon="el-icon-s-custom" command="Show Fallback Avatar Details") Show Fallback Avatar Details
|
||||||
el-dropdown-item(icon="el-icon-picture-outline" command="Previous Images") Show Avatar Previous Images
|
el-dropdown-item(icon="el-icon-picture-outline" command="Previous Images") Show Avatar Previous Images
|
||||||
el-dropdown-item(v-if="userDialog.isBlock" icon="el-icon-circle-check" command="Unblock" divided style="color:#F56C6C") Unblock
|
el-dropdown-item(v-if="userDialog.isBlock" icon="el-icon-circle-check" command="Unblock" divided style="color:#F56C6C") Unblock
|
||||||
el-dropdown-item(v-else icon="el-icon-circle-close" command="Block" divided) Block
|
el-dropdown-item(v-else icon="el-icon-circle-close" command="Block" divided :disabled="userDialog.ref.$isModerator") Block
|
||||||
el-dropdown-item(v-if="userDialog.isMute" icon="el-icon-microphone" command="Unmute" style="color:#F56C6C") Unmute
|
el-dropdown-item(v-if="userDialog.isMute" icon="el-icon-microphone" command="Unmute" style="color:#F56C6C") Unmute
|
||||||
el-dropdown-item(v-else icon="el-icon-turn-off-microphone" command="Mute") Mute
|
el-dropdown-item(v-else icon="el-icon-turn-off-microphone" command="Mute" :disabled="userDialog.ref.$isModerator") Mute
|
||||||
el-dropdown-item(v-if="userDialog.isHideAvatar" icon="el-icon-user-solid" command="Show Avatar" style="color:#F56C6C") Show Avatar
|
el-dropdown-item(v-if="userDialog.isHideAvatar" icon="el-icon-user-solid" command="Show Avatar" style="color:#F56C6C") Show Avatar
|
||||||
el-dropdown-item(v-else icon="el-icon-user" command="Hide Avatar") Hide Avatar
|
el-dropdown-item(v-else icon="el-icon-user" command="Hide Avatar") Hide Avatar
|
||||||
template(v-if="userDialog.isFriend")
|
template(v-if="userDialog.isFriend")
|
||||||
|
|||||||
Reference in New Issue
Block a user