mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-30 20:23:46 +02:00
Change startup friends load, fix primary password
This commit is contained in:
@@ -173,6 +173,14 @@ speechSynthesis.getVoices();
|
|||||||
this.checkVRChatDebugLogging();
|
this.checkVRChatDebugLogging();
|
||||||
this.checkAutoBackupRestoreVrcRegistry();
|
this.checkAutoBackupRestoreVrcRegistry();
|
||||||
await this.migrateStoredUsers();
|
await this.migrateStoredUsers();
|
||||||
|
this.loginForm.savedCredentials =
|
||||||
|
(await configRepository.getString('savedCredentials')) !== null
|
||||||
|
? JSON.parse(
|
||||||
|
await configRepository.getString('savedCredentials')
|
||||||
|
)
|
||||||
|
: {};
|
||||||
|
this.loginForm.lastUserLoggedIn =
|
||||||
|
await configRepository.getString('lastUserLoggedIn');
|
||||||
this.$nextTick(async function () {
|
this.$nextTick(async function () {
|
||||||
this.$el.style.display = '';
|
this.$el.style.display = '';
|
||||||
if (
|
if (
|
||||||
@@ -599,14 +607,6 @@ speechSynthesis.getVoices();
|
|||||||
this.applyUserTrustLevel(ref);
|
this.applyUserTrustLevel(ref);
|
||||||
this.applyUserLanguage(ref);
|
this.applyUserLanguage(ref);
|
||||||
this.cachedUsers.set(ref.id, ref);
|
this.cachedUsers.set(ref.id, ref);
|
||||||
|
|
||||||
if (this.currentUser?.offlineFriends.includes(ref.id)) {
|
|
||||||
$app.addFriend(ref.id, 'offline');
|
|
||||||
} else if (this.currentUser?.activeFriends.includes(ref.id)) {
|
|
||||||
$app.addFriend(ref.id, 'active');
|
|
||||||
} else if (this.currentUser?.onlineFriends.includes(ref.id)) {
|
|
||||||
$app.addFriend(ref.id, 'online');
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
var props = {};
|
var props = {};
|
||||||
for (var prop in ref) {
|
for (var prop in ref) {
|
||||||
@@ -681,6 +681,10 @@ speechSynthesis.getVoices();
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
var friendCtx = $app.friends.get(ref.id);
|
||||||
|
if (friendCtx) {
|
||||||
|
friendCtx.ref = ref;
|
||||||
|
}
|
||||||
if (ref.id === this.currentUser.id) {
|
if (ref.id === this.currentUser.id) {
|
||||||
if (ref.status) {
|
if (ref.status) {
|
||||||
this.currentUser.status = ref.status;
|
this.currentUser.status = ref.status;
|
||||||
@@ -4274,9 +4278,6 @@ speechSynthesis.getVoices();
|
|||||||
};
|
};
|
||||||
|
|
||||||
$app.methods.refreshFriends = function (ref, fromGetCurrentUser) {
|
$app.methods.refreshFriends = function (ref, fromGetCurrentUser) {
|
||||||
if (!this.friendLogInitStatus) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
var map = new Map();
|
var map = new Map();
|
||||||
for (var id of ref.friends) {
|
for (var id of ref.friends) {
|
||||||
map.set(id, 'offline');
|
map.set(id, 'offline');
|
||||||
@@ -5347,6 +5348,7 @@ speechSynthesis.getVoices();
|
|||||||
args.json?.presence?.groups
|
args.json?.presence?.groups
|
||||||
);
|
);
|
||||||
await $app.getCurrentUserGroups();
|
await $app.getCurrentUserGroups();
|
||||||
|
$app.refreshFriends(args.ref, args.fromGetCurrentUser);
|
||||||
try {
|
try {
|
||||||
if (
|
if (
|
||||||
await configRepository.getBool(`friendLogInit_${args.json.id}`)
|
await configRepository.getBool(`friendLogInit_${args.json.id}`)
|
||||||
@@ -5355,7 +5357,6 @@ speechSynthesis.getVoices();
|
|||||||
} else {
|
} else {
|
||||||
await $app.initFriendLog(args.json.id);
|
await $app.initFriendLog(args.json.id);
|
||||||
}
|
}
|
||||||
$app.refreshFriends(args.ref, args.fromGetCurrentUser);
|
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
if (!$app.dontLogMeOut) {
|
if (!$app.dontLogMeOut) {
|
||||||
$app.$message({
|
$app.$message({
|
||||||
|
|||||||
@@ -13,15 +13,6 @@ export default class extends baseClass {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async init() {
|
async init() {
|
||||||
$app.savedCredentials =
|
|
||||||
(await configRepository.getString('savedCredentials')) !== null
|
|
||||||
? JSON.parse(
|
|
||||||
await configRepository.getString('savedCredentials')
|
|
||||||
)
|
|
||||||
: {};
|
|
||||||
$app.lastUserLoggedIn =
|
|
||||||
await configRepository.getString('lastUserLoggedIn');
|
|
||||||
|
|
||||||
API.isLoggedIn = false;
|
API.isLoggedIn = false;
|
||||||
API.attemptingAutoLogin = false;
|
API.attemptingAutoLogin = false;
|
||||||
|
|
||||||
|
|||||||
@@ -207,7 +207,7 @@
|
|||||||
"vrcx_updater": {
|
"vrcx_updater": {
|
||||||
"header": "VRCX Updater",
|
"header": "VRCX Updater",
|
||||||
"change_build": "Change build",
|
"change_build": "Change build",
|
||||||
"auto_update": "Auto update",
|
"update_action": "Update action",
|
||||||
"auto_update_off": "Off",
|
"auto_update_off": "Off",
|
||||||
"auto_update_notify": "Notify",
|
"auto_update_notify": "Notify",
|
||||||
"auto_update_download": "Auto Download",
|
"auto_update_download": "Auto Download",
|
||||||
@@ -443,7 +443,7 @@
|
|||||||
},
|
},
|
||||||
"screenshot_helper": {
|
"screenshot_helper": {
|
||||||
"header": "Screenshot Helper",
|
"header": "Screenshot Helper",
|
||||||
"description": "Will store the world ID, world name and players in instance inside the file metadata of any pictures you take in-game.",
|
"description": "Store world ID, world name and players inside the instance inside the file metadata of any pictures you take in-game.",
|
||||||
"description_tooltip": "Unfortunately, windows doesn't support viewing PNG text chunks(few things do) natively, but you can view it using a command-line tool like exiftool, a png chunk inspector, or a hex editor.",
|
"description_tooltip": "Unfortunately, windows doesn't support viewing PNG text chunks(few things do) natively, but you can view it using a command-line tool like exiftool, a png chunk inspector, or a hex editor.",
|
||||||
"enable": "Enable",
|
"enable": "Enable",
|
||||||
"modify_filename": "Modify Filename",
|
"modify_filename": "Modify Filename",
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ mixin friendsListSidebar()
|
|||||||
span.name(v-else v-text="friend.ref.displayName" :style="{'color':friend.ref.$userColour}")
|
span.name(v-else v-text="friend.ref.displayName" :style="{'color':friend.ref.$userColour}")
|
||||||
span.extra(v-if="friend.pendingOffline") #[i.el-icon-warning-outline] {{ $t('side_panel.pending_offline') }}
|
span.extra(v-if="friend.pendingOffline") #[i.el-icon-warning-outline] {{ $t('side_panel.pending_offline') }}
|
||||||
location.extra(v-else :location="friend.ref.location" :traveling="friend.ref.travelingToLocation" :link="false")
|
location.extra(v-else :location="friend.ref.location" :traveling="friend.ref.travelingToLocation" :link="false")
|
||||||
template(v-else)
|
template(v-else-if="friendLogInitStatus")
|
||||||
span(v-text="friend.name || friend.id")
|
span(v-text="friend.name || friend.id")
|
||||||
el-button(type="text" icon="el-icon-close" size="mini" @click.stop="confirmDeleteFriend(friend.id)" style="margin-left:5px")
|
el-button(type="text" icon="el-icon-close" size="mini" @click.stop="confirmDeleteFriend(friend.id)" style="margin-left:5px")
|
||||||
.x-friend-group.x-link(@click="isOnlineFriends = !isOnlineFriends; saveFriendsGroupStates()" v-show="onlineFriends.length")
|
.x-friend-group.x-link(@click="isOnlineFriends = !isOnlineFriends; saveFriendsGroupStates()" v-show="onlineFriends.length")
|
||||||
@@ -65,7 +65,7 @@ mixin friendsListSidebar()
|
|||||||
span.name(v-else v-text="friend.ref.displayName" :style="{'color':friend.ref.$userColour}")
|
span.name(v-else v-text="friend.ref.displayName" :style="{'color':friend.ref.$userColour}")
|
||||||
span.extra(v-if="friend.pendingOffline") #[i.el-icon-warning-outline] {{ $t('side_panel.pending_offline') }}
|
span.extra(v-if="friend.pendingOffline") #[i.el-icon-warning-outline] {{ $t('side_panel.pending_offline') }}
|
||||||
location.extra(v-else :location="friend.ref.location" :traveling="friend.ref.travelingToLocation" :link="false")
|
location.extra(v-else :location="friend.ref.location" :traveling="friend.ref.travelingToLocation" :link="false")
|
||||||
template(v-else)
|
template(v-else-if="friendLogInitStatus")
|
||||||
span(v-text="friend.name || friend.id")
|
span(v-text="friend.name || friend.id")
|
||||||
el-button(type="text" icon="el-icon-close" size="mini" @click.stop="confirmDeleteFriend(friend.id)" style="margin-left:5px")
|
el-button(type="text" icon="el-icon-close" size="mini" @click.stop="confirmDeleteFriend(friend.id)" style="margin-left:5px")
|
||||||
.x-friend-group.x-link(@click="isActiveFriends = !isActiveFriends; saveFriendsGroupStates()" v-show="activeFriends.length")
|
.x-friend-group.x-link(@click="isActiveFriends = !isActiveFriends; saveFriendsGroupStates()" v-show="activeFriends.length")
|
||||||
@@ -80,7 +80,7 @@ mixin friendsListSidebar()
|
|||||||
span.name(v-if="!hideNicknames && friend.$nickName" :style="{'color':friend.ref.$userColour}") {{ friend.ref.displayName }} ({{ friend.$nickName }})
|
span.name(v-if="!hideNicknames && friend.$nickName" :style="{'color':friend.ref.$userColour}") {{ friend.ref.displayName }} ({{ friend.$nickName }})
|
||||||
span.name(v-else v-text="friend.ref.displayName" :style="{'color':friend.ref.$userColour}")
|
span.name(v-else v-text="friend.ref.displayName" :style="{'color':friend.ref.$userColour}")
|
||||||
span.extra(v-text="friend.ref.statusDescription" :link="false")
|
span.extra(v-text="friend.ref.statusDescription" :link="false")
|
||||||
template(v-else)
|
template(v-else-if="friendLogInitStatus")
|
||||||
span(v-text="friend.name || friend.id")
|
span(v-text="friend.name || friend.id")
|
||||||
el-button(type="text" icon="el-icon-close" size="mini" @click.stop="confirmDeleteFriend(friend.id)" style="margin-left:5px")
|
el-button(type="text" icon="el-icon-close" size="mini" @click.stop="confirmDeleteFriend(friend.id)" style="margin-left:5px")
|
||||||
.x-friend-group.x-link(@click="isOfflineFriends = !isOfflineFriends; saveFriendsGroupStates()" v-show="offlineFriends.length")
|
.x-friend-group.x-link(@click="isOfflineFriends = !isOfflineFriends; saveFriendsGroupStates()" v-show="offlineFriends.length")
|
||||||
@@ -95,7 +95,7 @@ mixin friendsListSidebar()
|
|||||||
span.name(v-if="!hideNicknames && friend.$nickName" :style="{'color':friend.ref.$userColour}") {{ friend.ref.displayName }} ({{ friend.$nickName }})
|
span.name(v-if="!hideNicknames && friend.$nickName" :style="{'color':friend.ref.$userColour}") {{ friend.ref.displayName }} ({{ friend.$nickName }})
|
||||||
span.name(v-else v-text="friend.ref.displayName" :style="{'color':friend.ref.$userColour}")
|
span.name(v-else v-text="friend.ref.displayName" :style="{'color':friend.ref.$userColour}")
|
||||||
span.extra(v-text="friend.ref.statusDescription")
|
span.extra(v-text="friend.ref.statusDescription")
|
||||||
template(v-else)
|
template(v-else-if="friendLogInitStatus")
|
||||||
span(v-text="friend.name || friend.id")
|
span(v-text="friend.name || friend.id")
|
||||||
el-button(type="text" icon="el-icon-close" size="mini" @click.stop="confirmDeleteFriend(friend.id)" style="margin-left:5px")
|
el-button(type="text" icon="el-icon-close" size="mini" @click.stop="confirmDeleteFriend(friend.id)" style="margin-left:5px")
|
||||||
el-tab-pane
|
el-tab-pane
|
||||||
|
|||||||
@@ -73,7 +73,7 @@ mixin settingsTab()
|
|||||||
div.options-container-item
|
div.options-container-item
|
||||||
el-button(size="small" icon="el-icon-document" @click="showChangeLogDialog()") {{ $t("view.settings.general.vrcx_updater.change_log") }}
|
el-button(size="small" icon="el-icon-document" @click="showChangeLogDialog()") {{ $t("view.settings.general.vrcx_updater.change_log") }}
|
||||||
el-button(size="small" icon="el-icon-upload" @click="showVRCXUpdateDialog()") {{ $t("view.settings.general.vrcx_updater.change_build") }}
|
el-button(size="small" icon="el-icon-upload" @click="showVRCXUpdateDialog()") {{ $t("view.settings.general.vrcx_updater.change_build") }}
|
||||||
+simpleRadioGroup("view.settings.general.vrcx_updater.auto_update", "autoUpdateVRCX", [
|
+simpleRadioGroup("view.settings.general.vrcx_updater.update_action", "autoUpdateVRCX", [
|
||||||
{ label: "Off", translationKey: "view.settings.general.vrcx_updater.auto_update_off" },
|
{ label: "Off", translationKey: "view.settings.general.vrcx_updater.auto_update_off" },
|
||||||
{ label: "Notify", translationKey: "view.settings.general.vrcx_updater.auto_update_notify" },
|
{ label: "Notify", translationKey: "view.settings.general.vrcx_updater.auto_update_notify" },
|
||||||
{ label: "Auto Download", translationKey: "view.settings.general.vrcx_updater.auto_update_download" },
|
{ label: "Auto Download", translationKey: "view.settings.general.vrcx_updater.auto_update_download" },
|
||||||
@@ -446,7 +446,7 @@ mixin settingsTab()
|
|||||||
span.sub-header {{ $t('view.settings.advanced.advanced.primary_password.header') }}
|
span.sub-header {{ $t('view.settings.advanced.advanced.primary_password.header') }}
|
||||||
div.options-container-item
|
div.options-container-item
|
||||||
span.name(style="min-width:300px") {{ $t('view.settings.advanced.advanced.primary_password.description') }}
|
span.name(style="min-width:300px") {{ $t('view.settings.advanced.advanced.primary_password.description') }}
|
||||||
el-switch(v-model="enablePrimaryPassword" @change="enablePrimaryPasswordChange" :disabled="!loginForm.savedCredentials[API.currentUser.id]")
|
el-switch(v-model="enablePrimaryPassword" @change="enablePrimaryPasswordChange" :disabled="!enablePrimaryPassword")
|
||||||
span.sub-header {{ $t('view.settings.advanced.advanced.relaunch_vrchat.header') }}
|
span.sub-header {{ $t('view.settings.advanced.advanced.relaunch_vrchat.header') }}
|
||||||
//- Advanced | Relaunch VRChat After Crash
|
//- Advanced | Relaunch VRChat After Crash
|
||||||
div.options-container-item
|
div.options-container-item
|
||||||
|
|||||||
Reference in New Issue
Block a user