mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-07 14:56:06 +02:00
Fixes
This commit is contained in:
+5
-2
@@ -12,7 +12,7 @@ using System.Windows.Forms;
|
|||||||
|
|
||||||
namespace VRCX
|
namespace VRCX
|
||||||
{
|
{
|
||||||
class StartupArgs
|
internal class StartupArgs
|
||||||
{
|
{
|
||||||
public static string LaunchCommand;
|
public static string LaunchCommand;
|
||||||
public static Process[] processList;
|
public static Process[] processList;
|
||||||
@@ -22,6 +22,9 @@ namespace VRCX
|
|||||||
string[] args = Environment.GetCommandLineArgs();
|
string[] args = Environment.GetCommandLineArgs();
|
||||||
processList = Process.GetProcessesByName("VRCX");
|
processList = Process.GetProcessesByName("VRCX");
|
||||||
|
|
||||||
|
bool isDebug = false;
|
||||||
|
Debug.Assert(isDebug = true);
|
||||||
|
|
||||||
foreach (string arg in args)
|
foreach (string arg in args)
|
||||||
{
|
{
|
||||||
if (arg.Contains("--gpufix"))
|
if (arg.Contains("--gpufix"))
|
||||||
@@ -33,7 +36,7 @@ namespace VRCX
|
|||||||
if (arg.Length > 8 && arg.Substring(0, 8) == "--config")
|
if (arg.Length > 8 && arg.Substring(0, 8) == "--config")
|
||||||
Program.ConfigLocation = arg.Substring(9);
|
Program.ConfigLocation = arg.Substring(9);
|
||||||
|
|
||||||
if (arg.Length >= 7 && arg.Substring(0, 7) == "--debug")
|
if ((arg.Length >= 7 && arg.Substring(0, 7) == "--debug") || isDebug)
|
||||||
Program.LaunchDebug = true;
|
Program.LaunchDebug = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -55,6 +55,7 @@ namespace VRCX
|
|||||||
public void ClearCookies()
|
public void ClearCookies()
|
||||||
{
|
{
|
||||||
_cookieContainer = new CookieContainer();
|
_cookieContainer = new CookieContainer();
|
||||||
|
SaveCookies();
|
||||||
}
|
}
|
||||||
|
|
||||||
internal void LoadCookies()
|
internal void LoadCookies()
|
||||||
|
|||||||
+33
-9
@@ -412,6 +412,12 @@ speechSynthesis.getVoices();
|
|||||||
if (response.status === 200) {
|
if (response.status === 200) {
|
||||||
this.$throw(0, 'Invalid JSON response');
|
this.$throw(0, 'Invalid JSON response');
|
||||||
}
|
}
|
||||||
|
if (response.status === 504 || response.status === 502) {
|
||||||
|
// ignore expected API errors
|
||||||
|
throw new Error(
|
||||||
|
`${response.status}: ${response.data} ${endpoint}`
|
||||||
|
);
|
||||||
|
}
|
||||||
this.$throw(response.status, endpoint);
|
this.$throw(response.status, endpoint);
|
||||||
return {};
|
return {};
|
||||||
})
|
})
|
||||||
@@ -461,16 +467,17 @@ speechSynthesis.getVoices();
|
|||||||
}
|
}
|
||||||
if (
|
if (
|
||||||
init.method === 'GET' &&
|
init.method === 'GET' &&
|
||||||
(status === 404 || status === 403)
|
(status === 404 || status === 403) &&
|
||||||
|
!endpoint.startsWith('auth/user')
|
||||||
) {
|
) {
|
||||||
this.failedGetRequests.set(endpoint, Date.now());
|
this.failedGetRequests.set(endpoint, Date.now());
|
||||||
}
|
}
|
||||||
if (status === 404 && endpoint.substring(0, 6) === 'users/') {
|
if (status === 404 && endpoint.startsWith('users/')) {
|
||||||
throw new Error(`404: ${data.error.message} ${endpoint}`);
|
throw new Error(`404: ${data.error.message} ${endpoint}`);
|
||||||
}
|
}
|
||||||
if (
|
if (
|
||||||
status === 404 &&
|
status === 404 &&
|
||||||
endpoint.substring(0, 7) === 'invite/' &&
|
endpoint.startsWith('invite/') &&
|
||||||
init.inviteId
|
init.inviteId
|
||||||
) {
|
) {
|
||||||
this.expireNotification(init.inviteId);
|
this.expireNotification(init.inviteId);
|
||||||
@@ -4304,6 +4311,19 @@ speechSynthesis.getVoices();
|
|||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case 'response-notification':
|
||||||
|
this.$emit('NOTIFICATION:HIDE', {
|
||||||
|
params: {
|
||||||
|
notificationId: content.notificationId
|
||||||
|
}
|
||||||
|
});
|
||||||
|
this.$emit('NOTIFICATION:SEE', {
|
||||||
|
params: {
|
||||||
|
notificationId: content.notificationId
|
||||||
|
}
|
||||||
|
});
|
||||||
|
break;
|
||||||
|
|
||||||
case 'friend-add':
|
case 'friend-add':
|
||||||
this.$emit('USER', {
|
this.$emit('USER', {
|
||||||
json: content.user,
|
json: content.user,
|
||||||
@@ -9685,9 +9705,14 @@ speechSynthesis.getVoices();
|
|||||||
if (input.photonId === this.photonLobbyMaster) {
|
if (input.photonId === this.photonLobbyMaster) {
|
||||||
isMaster = true;
|
isMaster = true;
|
||||||
}
|
}
|
||||||
|
var userId = this.getUserIdFromPhotonId(input.photonId);
|
||||||
|
var isFavorite = API.cachedFavoritesByObjectId.has(userId);
|
||||||
|
var isFriend = this.friends.has(userId);
|
||||||
var feed = {
|
var feed = {
|
||||||
displayName: this.getDisplayNameFromPhotonId(input.photonId),
|
displayName: this.getDisplayNameFromPhotonId(input.photonId),
|
||||||
userId: this.getUserIdFromPhotonId(input.photonId),
|
userId,
|
||||||
|
isFavorite,
|
||||||
|
isFriend,
|
||||||
isMaster,
|
isMaster,
|
||||||
...input
|
...input
|
||||||
};
|
};
|
||||||
@@ -9705,10 +9730,9 @@ speechSynthesis.getVoices();
|
|||||||
) {
|
) {
|
||||||
if (
|
if (
|
||||||
feed.userId &&
|
feed.userId &&
|
||||||
((this.photonEventOverlayFilter === 'VIP' &&
|
((this.photonEventOverlayFilter === 'VIP' && isFavorite) ||
|
||||||
API.cachedFavoritesByObjectId.has(feed.userId)) ||
|
|
||||||
(this.photonEventOverlayFilter === 'Friends' &&
|
(this.photonEventOverlayFilter === 'Friends' &&
|
||||||
this.friends.has(feed.userId)))
|
isFriend))
|
||||||
) {
|
) {
|
||||||
AppApi.ExecuteVrOverlayFunction(
|
AppApi.ExecuteVrOverlayFunction(
|
||||||
'addEntryHudFeed',
|
'addEntryHudFeed',
|
||||||
@@ -11530,7 +11554,7 @@ speechSynthesis.getVoices();
|
|||||||
this.searchUserParams = {
|
this.searchUserParams = {
|
||||||
n: 10,
|
n: 10,
|
||||||
offset: 0,
|
offset: 0,
|
||||||
search: this.searchText
|
search: this.replaceBioSymbols(this.searchText)
|
||||||
};
|
};
|
||||||
await this.moreSearchUser();
|
await this.moreSearchUser();
|
||||||
};
|
};
|
||||||
@@ -11608,7 +11632,7 @@ speechSynthesis.getVoices();
|
|||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
params.sort = 'relevance';
|
params.sort = 'relevance';
|
||||||
params.search = this.searchText;
|
params.search = this.replaceBioSymbols(this.searchText);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
params.order = ref.sortOrder || 'descending';
|
params.order = ref.sortOrder || 'descending';
|
||||||
|
|||||||
+11
-11
@@ -20,7 +20,7 @@ html
|
|||||||
span.extra
|
span.extra
|
||||||
span.time {{ feed.created_at | formatDate }}
|
span.time {{ feed.created_at | formatDate }}
|
||||||
i.el-icon-loading(v-if="feed.isTraveling" style="margin-right:5px")
|
i.el-icon-loading(v-if="feed.isTraveling" style="margin-right:5px")
|
||||||
| #[span.name(v-text="feed.displayName")] #[location(:location="feed.location" :hint="feed.worldName")]
|
| #[span.name(v-text="feed.displayName")] #[location(:location="feed.location" :hint="feed.worldName" :grouphint="feed.groupName")]
|
||||||
div(v-else-if="feed.type === 'Offline'" class="x-friend-item" :class="{ friend: feed.isFriend, favorite: feed.isFavorite }")
|
div(v-else-if="feed.type === 'Offline'" class="x-friend-item" :class="{ friend: feed.isFriend, favorite: feed.isFavorite }")
|
||||||
.detail
|
.detail
|
||||||
span.extra
|
span.extra
|
||||||
@@ -32,7 +32,7 @@ html
|
|||||||
span.time {{ feed.created_at | formatDate }}
|
span.time {{ feed.created_at | formatDate }}
|
||||||
| #[span.name(v-text="feed.displayName")] ✔
|
| #[span.name(v-text="feed.displayName")] ✔
|
||||||
template(v-if="feed.worldName")
|
template(v-if="feed.worldName")
|
||||||
| #[location(:location="feed.location" :hint="feed.worldName" style="margin-left:5px")]
|
| #[location(:location="feed.location" :hint="feed.worldName" :grouphint="feed.groupName" style="margin-left:5px")]
|
||||||
div(v-else-if="feed.type === 'Status'" class="x-friend-item" :class="{ friend: feed.isFriend, favorite: feed.isFavorite }")
|
div(v-else-if="feed.type === 'Status'" class="x-friend-item" :class="{ friend: feed.isFriend, favorite: feed.isFavorite }")
|
||||||
.detail
|
.detail
|
||||||
span.extra
|
span.extra
|
||||||
@@ -64,7 +64,7 @@ html
|
|||||||
.detail
|
.detail
|
||||||
span.extra
|
span.extra
|
||||||
span.time {{ feed.created_at | formatDate }}
|
span.time {{ feed.created_at | formatDate }}
|
||||||
location(:location="feed.location" :hint="feed.worldName")
|
location(:location="feed.location" :hint="feed.worldName" :grouphint="feed.groupName")
|
||||||
div(v-else-if="feed.type === 'VideoPlay'" class="x-friend-item" :class="{ friend: feed.isFriend, favorite: feed.isFavorite }")
|
div(v-else-if="feed.type === 'VideoPlay'" class="x-friend-item" :class="{ friend: feed.isFriend, favorite: feed.isFavorite }")
|
||||||
.detail
|
.detail
|
||||||
span.extra
|
span.extra
|
||||||
@@ -145,7 +145,7 @@ html
|
|||||||
span.time {{ feed.created_at | formatDate }}
|
span.time {{ feed.created_at | formatDate }}
|
||||||
template(v-if="feed.displayName")
|
template(v-if="feed.displayName")
|
||||||
| ✨ #[span.name(v-text="feed.displayName" style="margin-right:5px")]
|
| ✨ #[span.name(v-text="feed.displayName" style="margin-right:5px")]
|
||||||
| #[location(:location="feed.instanceId" :hint="feed.worldName")]
|
| #[location(:location="feed.instanceId" :hint="feed.worldName" :grouphint="feed.groupName")]
|
||||||
template(v-else)
|
template(v-else)
|
||||||
| ✨ User has spawned a portal
|
| ✨ User has spawned a portal
|
||||||
div(v-else-if="feed.type === 'AvatarChange'" class="x-friend-item" :class="{ friend: feed.isFriend, favorite: feed.isFavorite }")
|
div(v-else-if="feed.type === 'AvatarChange'" class="x-friend-item" :class="{ friend: feed.isFriend, favorite: feed.isFavorite }")
|
||||||
@@ -217,9 +217,9 @@ html
|
|||||||
span.extra
|
span.extra
|
||||||
span.time {{ feed.created_at | formatDate }}
|
span.time {{ feed.created_at | formatDate }}
|
||||||
template(v-if="feed.isTraveling")
|
template(v-if="feed.isTraveling")
|
||||||
| #[span.name(v-text="feed.displayName")] is traveling to #[location(:location="feed.location" :hint="feed.worldName")]
|
| #[span.name(v-text="feed.displayName")] is traveling to #[location(:location="feed.location" :hint="feed.worldName" :grouphint="feed.groupName")]
|
||||||
template(v-else)
|
template(v-else)
|
||||||
| #[span.name(v-text="feed.displayName")] is in #[location(:location="feed.location" :hint="feed.worldName")]
|
| #[span.name(v-text="feed.displayName")] is in #[location(:location="feed.location" :hint="feed.worldName" :grouphint="feed.groupName")]
|
||||||
div(v-else-if="feed.type === 'Offline'" class="x-friend-item" :class="{ friend: feed.isFriend, favorite: feed.isFavorite }")
|
div(v-else-if="feed.type === 'Offline'" class="x-friend-item" :class="{ friend: feed.isFriend, favorite: feed.isFavorite }")
|
||||||
.detail
|
.detail
|
||||||
span.extra
|
span.extra
|
||||||
@@ -232,7 +232,7 @@ html
|
|||||||
| #[span.name(v-text="feed.displayName")]
|
| #[span.name(v-text="feed.displayName")]
|
||||||
span(style="margin-left:5px;margin-right:5px") has logged in
|
span(style="margin-left:5px;margin-right:5px") has logged in
|
||||||
template(v-if="feed.worldName")
|
template(v-if="feed.worldName")
|
||||||
| to #[location(:location="feed.location" :hint="feed.worldName")]
|
| to #[location(:location="feed.location" :hint="feed.worldName" :grouphint="feed.groupName")]
|
||||||
div(v-else-if="feed.type === 'Status'" class="x-friend-item" :class="{ friend: feed.isFriend, favorite: feed.isFavorite }")
|
div(v-else-if="feed.type === 'Status'" class="x-friend-item" :class="{ friend: feed.isFriend, favorite: feed.isFavorite }")
|
||||||
.detail
|
.detail
|
||||||
span.extra
|
span.extra
|
||||||
@@ -263,7 +263,7 @@ html
|
|||||||
.detail
|
.detail
|
||||||
span.extra
|
span.extra
|
||||||
span.time {{ feed.created_at | formatDate }}
|
span.time {{ feed.created_at | formatDate }}
|
||||||
location(:location="feed.location" :hint="feed.worldName")
|
location(:location="feed.location" :hint="feed.worldName" :grouphint="feed.groupName")
|
||||||
div(v-else-if="feed.type === 'VideoPlay'" class="x-friend-item" :class="{ friend: feed.isFriend, favorite: feed.isFavorite }")
|
div(v-else-if="feed.type === 'VideoPlay'" class="x-friend-item" :class="{ friend: feed.isFriend, favorite: feed.isFavorite }")
|
||||||
.detail
|
.detail
|
||||||
span.extra
|
span.extra
|
||||||
@@ -345,7 +345,7 @@ html
|
|||||||
span.time {{ feed.created_at | formatDate }}
|
span.time {{ feed.created_at | formatDate }}
|
||||||
template(v-if="feed.displayName")
|
template(v-if="feed.displayName")
|
||||||
| #[span.name(v-text="feed.displayName")] has spawned a portal to
|
| #[span.name(v-text="feed.displayName")] has spawned a portal to
|
||||||
| #[location(:location="feed.instanceId" :hint="feed.worldName" style="margin-left:5px")]
|
| #[location(:location="feed.instanceId" :hint="feed.worldName" :grouphint="feed.groupName" style="margin-left:5px")]
|
||||||
template(v-else)
|
template(v-else)
|
||||||
| User has spawned a portal
|
| User has spawned a portal
|
||||||
div(v-else-if="feed.type === 'AvatarChange'" class="x-friend-item" :class="{ friend: feed.isFriend, favorite: feed.isFavorite }")
|
div(v-else-if="feed.type === 'AvatarChange'" class="x-friend-item" :class="{ friend: feed.isFriend, favorite: feed.isFavorite }")
|
||||||
@@ -479,7 +479,7 @@ html
|
|||||||
circle(class="np-progress-circle-stroke" cx="60" cy="60" stroke="white" r="30" fill="transparent" stroke-width="60")
|
circle(class="np-progress-circle-stroke" cx="60" cy="60" stroke="white" r="30" fill="transparent" stroke-width="60")
|
||||||
.hud-feed
|
.hud-feed
|
||||||
div(v-for="feed in hudFeed")
|
div(v-for="feed in hudFeed")
|
||||||
.item #[span(v-if="feed.isMaster") 👑]<strong>{{ feed.displayName }}</strong>
|
.item(:class="{ friend: feed.isFriend, favorite: feed.isFavorite }") #[span(v-if="feed.isMaster") 👑]#[strong.name(v-text="feed.displayName")]
|
||||||
template(v-if="feed.type === 'ChangeAvatar'")
|
template(v-if="feed.type === 'ChangeAvatar'")
|
||||||
span(style="margin-left:10px;color:#a3a3a3") ChangeAvatar
|
span(style="margin-left:10px;color:#a3a3a3") ChangeAvatar
|
||||||
span(v-if="!feed.inCache" style="color:#aaa;margin-left:10px") #[i.el-icon-download]
|
span(v-if="!feed.inCache" style="color:#aaa;margin-left:10px") #[i.el-icon-download]
|
||||||
@@ -502,7 +502,7 @@ html
|
|||||||
span(v-text="feed.text" style="margin-left:10px;white-space:normal")
|
span(v-text="feed.text" style="margin-left:10px;white-space:normal")
|
||||||
template(v-else-if="feed.type === 'PortalSpawn'")
|
template(v-else-if="feed.type === 'PortalSpawn'")
|
||||||
span(style="margin-left:10px;color:#a3a3a3") PortalSpawn
|
span(style="margin-left:10px;color:#a3a3a3") PortalSpawn
|
||||||
location(:location="feed.location" :hint="feed.worldName" :link="false" style="margin-left:10px")
|
location(:location="feed.location" :hint="feed.worldName" :grouphint="feed.groupName" :link="false" style="margin-left:10px")
|
||||||
template(v-else-if="feed.type === 'OnPlayerJoined'")
|
template(v-else-if="feed.type === 'OnPlayerJoined'")
|
||||||
span(style="margin-left:10px;color:#a3a3a3") has joined
|
span(style="margin-left:10px;color:#a3a3a3") has joined
|
||||||
span(v-if="feed.platform === 'Desktop'" style="color:#409eff;margin-left:10px") PC
|
span(v-if="feed.platform === 'Desktop'" style="color:#409eff;margin-left:10px") PC
|
||||||
|
|||||||
+6
-2
@@ -255,11 +255,15 @@ button {
|
|||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
.x-friend-item.friend .name {
|
.item .name {
|
||||||
|
color: #c5c5c5;
|
||||||
|
}
|
||||||
|
|
||||||
|
.friend .name {
|
||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
.x-friend-item.favorite .name {
|
.favorite .name {
|
||||||
color: #ff0;
|
color: #ff0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user