mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-06 22:46:06 +02:00
Fix gamelog notification parsing but filter it out
This commit is contained in:
+3
-3
@@ -193,6 +193,7 @@ namespace VRCX
|
|||||||
if (ParseLogOnPlayerJoinedOrLeft(fileInfo, logContext, line, offset) == true ||
|
if (ParseLogOnPlayerJoinedOrLeft(fileInfo, logContext, line, offset) == true ||
|
||||||
ParseLogLocation(fileInfo, logContext, line, offset) == true ||
|
ParseLogLocation(fileInfo, logContext, line, offset) == true ||
|
||||||
ParseLogPortalSpawn(fileInfo, logContext, line, offset) == true ||
|
ParseLogPortalSpawn(fileInfo, logContext, line, offset) == true ||
|
||||||
|
ParseLogNotification(fileInfo, logContext, line, offset) == true ||
|
||||||
ParseLogJoinBlocked(fileInfo, logContext, line, offset) == true ||
|
ParseLogJoinBlocked(fileInfo, logContext, line, offset) == true ||
|
||||||
ParseLogAvatarPedestalChange(fileInfo, logContext, line, offset) == true ||
|
ParseLogAvatarPedestalChange(fileInfo, logContext, line, offset) == true ||
|
||||||
ParseLogVideoPlay(fileInfo, logContext, line, offset) == true ||
|
ParseLogVideoPlay(fileInfo, logContext, line, offset) == true ||
|
||||||
@@ -204,8 +205,7 @@ namespace VRCX
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ParseLogNotification(fileInfo, logContext, line, 34) == true ||
|
if (ParseLogShaderKeywordsLimit(fileInfo, logContext, line, 34) == true ||
|
||||||
ParseLogShaderKeywordsLimit(fileInfo, logContext, line, 34) == true ||
|
|
||||||
ParseLogSDK2VideoPlay(fileInfo, logContext, line, 34) == true)
|
ParseLogSDK2VideoPlay(fileInfo, logContext, line, 34) == true)
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
@@ -546,7 +546,7 @@ namespace VRCX
|
|||||||
|
|
||||||
private bool ParseLogNotification(FileInfo fileInfo, LogContext logContext, string line, int offset)
|
private bool ParseLogNotification(FileInfo fileInfo, LogContext logContext, string line, int offset)
|
||||||
{
|
{
|
||||||
// 2021.01.03 05:48:58 Log - Received Notification: < Notification from username:pypy, sender user id:usr_4f76a584-9d4b-46f6-8209-8305eb683661 to of type: friendRequest, id: not_3a8f66eb-613c-4351-bee3-9980e6b5652c, created at: 01/14/2021 15:38:40 UTC, details: {{}}, type:friendRequest, m seen:False, message: ""> received at 01/02/2021 16:48:58 UTC
|
// 2021.01.03 05:48:58 Log - [API] Received Notification: < Notification from username:pypy, sender user id:usr_4f76a584-9d4b-46f6-8209-8305eb683661 to of type: friendRequest, id: not_3a8f66eb-613c-4351-bee3-9980e6b5652c, created at: 01/14/2021 15:38:40 UTC, details: {{}}, type:friendRequest, m seen:False, message: ""> received at 01/02/2021 16:48:58 UTC
|
||||||
|
|
||||||
if (string.Compare(line, offset, "Received Notification: <", 0, 24, StringComparison.Ordinal) != 0)
|
if (string.Compare(line, offset, "Received Notification: <", 0, 24, StringComparison.Ordinal) != 0)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -6178,6 +6178,11 @@ speechSynthesis.getVoices();
|
|||||||
value: [],
|
value: [],
|
||||||
filterFn: (row, filter) => filter.value.some((v) => v === row.type)
|
filterFn: (row, filter) => filter.value.some((v) => v === row.type)
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
prop: 'type',
|
||||||
|
value: true,
|
||||||
|
filterFn: (row, filter) => row.type !== 'Notification'
|
||||||
|
},
|
||||||
{
|
{
|
||||||
prop: 'data',
|
prop: 'data',
|
||||||
value: ''
|
value: ''
|
||||||
|
|||||||
+1
-1
@@ -174,7 +174,7 @@ html
|
|||||||
template(#tool)
|
template(#tool)
|
||||||
div(style="margin:0 0 10px;display:flex;align-items:center")
|
div(style="margin:0 0 10px;display:flex;align-items:center")
|
||||||
el-select(v-model="gameLogTable.filters[0].value" multiple clearable collapse-tags style="flex:1" placeholder="Filter")
|
el-select(v-model="gameLogTable.filters[0].value" multiple clearable collapse-tags style="flex:1" placeholder="Filter")
|
||||||
el-option(v-once v-for="type in ['Location', 'OnPlayerJoined', 'OnPlayerLeft', 'Notification', 'PortalSpawn', 'Event', 'VideoPlay']" :key="type" :label="type" :value="type")
|
el-option(v-once v-for="type in ['Location', 'OnPlayerJoined', 'OnPlayerLeft', 'PortalSpawn', 'Event', 'VideoPlay']" :key="type" :label="type" :value="type")
|
||||||
el-input(v-model="gameLogTable.filters[1].value" placeholder="Search" style="flex:none;width:150px;margin:0 10px")
|
el-input(v-model="gameLogTable.filters[1].value" placeholder="Search" style="flex:none;width:150px;margin:0 10px")
|
||||||
el-button(type="default" @click="resetGameLog()" icon="el-icon-refresh" circle style="flex:none")
|
el-button(type="default" @click="resetGameLog()" icon="el-icon-refresh" circle style="flex:none")
|
||||||
el-table-column(label="Date" prop="created_at" sortable="custom" width="90")
|
el-table-column(label="Date" prop="created_at" sortable="custom" width="90")
|
||||||
|
|||||||
Reference in New Issue
Block a user