mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-17 13:53:52 +02:00
photon logging status icon
This commit is contained in:
@@ -4138,6 +4138,7 @@ speechSynthesis.getVoices();
|
||||
API.currentUser.$offline_for = Date.now();
|
||||
Discord.SetActive(false);
|
||||
this.autoVRChatCacheManagement();
|
||||
this.ipcTimeout = 0;
|
||||
}
|
||||
this.lastLocationReset();
|
||||
this.clearNowPlaying();
|
||||
@@ -18265,6 +18266,9 @@ speechSynthesis.getVoices();
|
||||
data.OnEventData
|
||||
);
|
||||
}
|
||||
if (data.OnEventData.Code !== 7) {
|
||||
this.photonEventPulse();
|
||||
}
|
||||
this.parsePhotonEvent(data.OnEventData, data.dt);
|
||||
break;
|
||||
case 'OnOperationResponse':
|
||||
@@ -18279,6 +18283,7 @@ speechSynthesis.getVoices();
|
||||
data.OnOperationResponseData,
|
||||
data.dt
|
||||
);
|
||||
this.photonEventPulse();
|
||||
break;
|
||||
case 'Ping':
|
||||
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) {
|
||||
switch (data.OperationCode) {
|
||||
case 226:
|
||||
|
||||
@@ -159,7 +159,13 @@ html
|
||||
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)")
|
||||
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-tab-pane(label="Current")
|
||||
data-tables(v-bind="photonEventTable" style="margin-bottom:10px")
|
||||
|
||||
Reference in New Issue
Block a user