photon logging status icon

This commit is contained in:
Natsumi
2022-01-08 18:19:56 +13:00
parent fc9aa97f27
commit 4a0aef8ce3
2 changed files with 21 additions and 1 deletions
+14
View File
@@ -4138,6 +4138,7 @@ speechSynthesis.getVoices();
API.currentUser.$offline_for = Date.now(); API.currentUser.$offline_for = Date.now();
Discord.SetActive(false); Discord.SetActive(false);
this.autoVRChatCacheManagement(); this.autoVRChatCacheManagement();
this.ipcTimeout = 0;
} }
this.lastLocationReset(); this.lastLocationReset();
this.clearNowPlaying(); this.clearNowPlaying();
@@ -18265,6 +18266,9 @@ speechSynthesis.getVoices();
data.OnEventData data.OnEventData
); );
} }
if (data.OnEventData.Code !== 7) {
this.photonEventPulse();
}
this.parsePhotonEvent(data.OnEventData, data.dt); this.parsePhotonEvent(data.OnEventData, data.dt);
break; break;
case 'OnOperationResponse': case 'OnOperationResponse':
@@ -18279,6 +18283,7 @@ speechSynthesis.getVoices();
data.OnOperationResponseData, data.OnOperationResponseData,
data.dt data.dt
); );
this.photonEventPulse();
break; break;
case 'Ping': case 'Ping':
if (!this.photonLoggingEnabled) { if (!this.photonLoggingEnabled) {
@@ -18295,6 +18300,15 @@ speechSynthesis.getVoices();
} }
}; };
$app.data.photonEventCount = 0;
$app.data.photonEventIcon = false;
$app.methods.photonEventPulse = function () {
this.photonEventCount++;
this.photonEventIcon = true;
workerTimers.setTimeout(() => (this.photonEventIcon = false), 150);
};
$app.methods.parseOperationResponse = function (data, dateTime) { $app.methods.parseOperationResponse = function (data, dateTime) {
switch (data.OperationCode) { switch (data.OperationCode) {
case 226: case 226:
+7 -1
View File
@@ -159,7 +159,13 @@ html
span(v-text="link") span(v-text="link")
img(:src="getFaviconUrl(link)" style="width:16px;height:16px;vertical-align:middle;margin-right:5px;cursor:pointer" @click.stop="openExternalLink(link)") img(:src="getFaviconUrl(link)" style="width:16px;height:16px;vertical-align:middle;margin-right:5px;cursor:pointer" @click.stop="openExternalLink(link)")
div.photon-event-table(v-if="photonLoggingEnabled") div.photon-event-table(v-if="photonLoggingEnabled")
el-input(v-model="photonEventTableFilter" @input="photonEventTableFilterChange" placeholder="Search" clearable style="width:150px;position:absolute;margin-left:195px;z-index:1") div(style="position:absolute;margin-left:195px;z-index:1")
el-input(v-model="photonEventTableFilter" @input="photonEventTableFilterChange" placeholder="Search" clearable style="width:150px")
el-tooltip(placement="bottom" content="VRCX Companion Status" :disabled="hideTooltips")
div(style="display:inline-block;margin-left:15px;font-size:14px;vertical-align:text-top;margin-top:1px")
span(v-if="ipcEnabled && !photonEventIcon") 🟢
span(v-else-if="ipcEnabled") ⚪
span(v-else) 🔴
el-tabs(type="card") el-tabs(type="card")
el-tab-pane(label="Current") el-tab-pane(label="Current")
data-tables(v-bind="photonEventTable" style="margin-bottom:10px") data-tables(v-bind="photonEventTable" style="margin-bottom:10px")