mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-05 14:26:06 +02:00
Small fixes
This commit is contained in:
@@ -75,6 +75,7 @@ namespace VRCX
|
|||||||
{
|
{
|
||||||
Location = location;
|
Location = location;
|
||||||
}
|
}
|
||||||
|
Size = new Size(1920, 1080);
|
||||||
if (size.Width > 0 && size.Height > 0)
|
if (size.Width > 0 && size.Height > 0)
|
||||||
{
|
{
|
||||||
Size = size;
|
Size = size;
|
||||||
|
|||||||
+2
-2
@@ -8440,13 +8440,13 @@ speechSynthesis.getVoices();
|
|||||||
} else if (typeof ref.displayName !== 'undefined') {
|
} else if (typeof ref.displayName !== 'undefined') {
|
||||||
this.lookupUser(ref);
|
this.lookupUser(ref);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
this.$message({
|
this.$message({
|
||||||
message: 'Missing user info',
|
message: 'No user info available',
|
||||||
type: 'error'
|
type: 'error'
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
$app.methods.getPhotonIdFromDisplayName = function (displayName) {
|
$app.methods.getPhotonIdFromDisplayName = function (displayName) {
|
||||||
|
|||||||
+3
-1
@@ -99,7 +99,9 @@ html
|
|||||||
|
|
|
|
||||||
el-tooltip(placement="bottom")
|
el-tooltip(placement="bottom")
|
||||||
template(#content)
|
template(#content)
|
||||||
span Photon Bot Id's: {{ photonLobbyBots.toString() }}
|
span Photon Bots:
|
||||||
|
div(v-for="id in photonLobbyBots" :key="id" placement="top")
|
||||||
|
span.x-link(v-text="getDisplayNameFromPhotonId(id)" @click="showUserFromPhotonId(id)" style="margin-right:5px")
|
||||||
span(v-text="photonLobbyBots.length" style="color:red")
|
span(v-text="photonLobbyBots.length" style="color:red")
|
||||||
//- el-tag(type="info" effect="plain" size="mini" v-text="worldDialog.fileSize" style="margin-right:5px;margin-top:5px")
|
//- el-tag(type="info" effect="plain" size="mini" v-text="worldDialog.fileSize" style="margin-right:5px;margin-top:5px")
|
||||||
div(style="margin-top:5px")
|
div(style="margin-top:5px")
|
||||||
|
|||||||
@@ -1084,8 +1084,8 @@ class Database {
|
|||||||
|
|
||||||
async getLastDateGameLogDatabase() {
|
async getLastDateGameLogDatabase() {
|
||||||
var gamelogDatabase = [];
|
var gamelogDatabase = [];
|
||||||
// var date = '1970-01-01';
|
var date = new Date().toJSON();
|
||||||
var date = new Date(Date.now() - 86400000).toJSON(); // 24 hours
|
var dateOffset = new Date(Date.now() - 86400000).toJSON(); // 24 hours
|
||||||
await sqliteService.execute((dbRow) => {
|
await sqliteService.execute((dbRow) => {
|
||||||
gamelogDatabase.unshift(dbRow[0]);
|
gamelogDatabase.unshift(dbRow[0]);
|
||||||
}, 'SELECT created_at FROM gamelog_location ORDER BY id DESC LIMIT 1');
|
}, 'SELECT created_at FROM gamelog_location ORDER BY id DESC LIMIT 1');
|
||||||
@@ -1103,7 +1103,10 @@ class Database {
|
|||||||
}, 'SELECT created_at FROM gamelog_video_play ORDER BY id DESC LIMIT 1');
|
}, 'SELECT created_at FROM gamelog_video_play ORDER BY id DESC LIMIT 1');
|
||||||
if (gamelogDatabase.length > 0) {
|
if (gamelogDatabase.length > 0) {
|
||||||
gamelogDatabase.sort();
|
gamelogDatabase.sort();
|
||||||
date = gamelogDatabase[gamelogDatabase.length - 1];
|
var newDate = gamelogDatabase[gamelogDatabase.length - 1];
|
||||||
|
if (newDate > dateOffset) {
|
||||||
|
date = newDate;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return date;
|
return date;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user