mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-07 14:56:06 +02:00
Random fixes
This commit is contained in:
@@ -413,7 +413,8 @@ div.x-friend-list
|
|||||||
color: $--theme-text-2;
|
color: $--theme-text-2;
|
||||||
}
|
}
|
||||||
|
|
||||||
.el-input.is-disabled .el-input__inner {
|
.el-input.is-disabled .el-input__inner,
|
||||||
|
.el-input.is-disabled .el-input__wrapper {
|
||||||
background-color: hsl($--theme-hue, $--theme-saturation, 23%);
|
background-color: hsl($--theme-hue, $--theme-saturation, 23%);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -896,6 +896,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<el-input
|
<el-input
|
||||||
v-model="groupDialog.memberSearch"
|
v-model="groupDialog.memberSearch"
|
||||||
|
:disabled="!hasGroupPermission(groupDialog.ref, 'group-members-manage')"
|
||||||
clearable
|
clearable
|
||||||
size="small"
|
size="small"
|
||||||
:placeholder="t('dialog.group.members.search')"
|
:placeholder="t('dialog.group.members.search')"
|
||||||
|
|||||||
@@ -48,7 +48,8 @@ export async function initSentry(app) {
|
|||||||
error.message.includes('403') ||
|
error.message.includes('403') ||
|
||||||
error.message.includes('404') ||
|
error.message.includes('404') ||
|
||||||
error.message.includes('500') ||
|
error.message.includes('500') ||
|
||||||
error.message.includes('503')
|
error.message.includes('503') ||
|
||||||
|
error.message.includes('database or disk is full')
|
||||||
) {
|
) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -36,9 +36,13 @@ function formatDateFilter(dateStr, format) {
|
|||||||
return `${y}-${m}-${d} ${hh}:${mm}:${ss}`;
|
return `${y}-${m}-${d} ${hh}:${mm}:${ss}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let dateFormat = 'en-gb';
|
||||||
|
if (!isoFormat && currentCulture) {
|
||||||
|
dateFormat = currentCulture;
|
||||||
|
}
|
||||||
function toLocalShort(date) {
|
function toLocalShort(date) {
|
||||||
return date
|
return date
|
||||||
.toLocaleDateString(isoFormat ? 'en-nz' : currentCulture, {
|
.toLocaleDateString(dateFormat, {
|
||||||
month: '2-digit',
|
month: '2-digit',
|
||||||
day: '2-digit',
|
day: '2-digit',
|
||||||
hour: 'numeric',
|
hour: 'numeric',
|
||||||
@@ -59,7 +63,7 @@ function formatDateFilter(dateStr, format) {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (format === 'long') {
|
if (format === 'long') {
|
||||||
return dt.toLocaleDateString(currentCulture, {
|
return dt.toLocaleDateString(dateFormat, {
|
||||||
month: '2-digit',
|
month: '2-digit',
|
||||||
day: '2-digit',
|
day: '2-digit',
|
||||||
year: 'numeric',
|
year: 'numeric',
|
||||||
|
|||||||
@@ -846,6 +846,7 @@ export const useAuthStore = defineStore('Auth', () => {
|
|||||||
);
|
);
|
||||||
attemptingAutoLogin.value = false;
|
attemptingAutoLogin.value = false;
|
||||||
handleLogoutEvent();
|
handleLogoutEvent();
|
||||||
|
AppApi.FlashWindow();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
state.autoLoginAttempts.add(new Date().getTime());
|
state.autoLoginAttempts.add(new Date().getTime());
|
||||||
|
|||||||
+7
-3
@@ -74,8 +74,12 @@ export const useGameStore = defineStore('Game', () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function sweepVRChatCache() {
|
async function sweepVRChatCache() {
|
||||||
const output = await AssetBundleManager.SweepCache();
|
try {
|
||||||
console.log('SweepCache', output);
|
const output = await AssetBundleManager.SweepCache();
|
||||||
|
console.log('SweepCache', output);
|
||||||
|
} catch (e) {
|
||||||
|
console.error('SweepCache failed', e);
|
||||||
|
}
|
||||||
if (advancedSettingsStore.isVRChatConfigDialogVisible) {
|
if (advancedSettingsStore.isVRChatConfigDialogVisible) {
|
||||||
getVRChatCacheSize();
|
getVRChatCacheSize();
|
||||||
}
|
}
|
||||||
@@ -170,7 +174,7 @@ export const useGameStore = defineStore('Game', () => {
|
|||||||
avatarStore.addAvatarWearTime(
|
avatarStore.addAvatarWearTime(
|
||||||
userStore.currentUser.currentAvatar
|
userStore.currentUser.currentAvatar
|
||||||
);
|
);
|
||||||
userStore.currentUser.$previousAvatarSwapTime = '';
|
userStore.currentUser.$previousAvatarSwapTime = null;
|
||||||
}
|
}
|
||||||
locationStore.lastLocationReset();
|
locationStore.lastLocationReset();
|
||||||
gameLogStore.clearNowPlaying();
|
gameLogStore.clearNowPlaying();
|
||||||
|
|||||||
@@ -76,6 +76,13 @@ export const useVrcStatusStore = defineStore('VrcStatus', () => {
|
|||||||
});
|
});
|
||||||
lastTimeFetched.value = Date.now();
|
lastTimeFetched.value = Date.now();
|
||||||
const data = JSON.parse(response.data);
|
const data = JSON.parse(response.data);
|
||||||
|
if (response.status !== 200) {
|
||||||
|
console.error('Failed to fetch VRChat status', response);
|
||||||
|
lastStatus.value = 'Failed to fetch VRC status';
|
||||||
|
pollingInterval.value = 2 * 60 * 1000; // 2 minutes
|
||||||
|
updateAlert();
|
||||||
|
return;
|
||||||
|
}
|
||||||
lastStatusTime.value = new Date(data.page.updated_at);
|
lastStatusTime.value = new Date(data.page.updated_at);
|
||||||
if (data.status.description === 'All Systems Operational') {
|
if (data.status.description === 'All Systems Operational') {
|
||||||
lastStatus.value = '';
|
lastStatus.value = '';
|
||||||
@@ -97,6 +104,10 @@ export const useVrcStatusStore = defineStore('VrcStatus', () => {
|
|||||||
Referer: 'https://vrcx.app'
|
Referer: 'https://vrcx.app'
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
if (response.status !== 200) {
|
||||||
|
console.error('Failed to fetch VRChat status summary', response);
|
||||||
|
return;
|
||||||
|
}
|
||||||
const data = JSON.parse(response.data);
|
const data = JSON.parse(response.data);
|
||||||
let summary = '';
|
let summary = '';
|
||||||
for (const component of data.components) {
|
for (const component of data.components) {
|
||||||
|
|||||||
Reference in New Issue
Block a user