mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-19 14:53:50 +02:00
Lint
This commit is contained in:
@@ -14,9 +14,9 @@ import {
|
|||||||
timeToText
|
timeToText
|
||||||
} from '../shared/utils';
|
} from '../shared/utils';
|
||||||
import { instanceRequest, userRequest } from '../api';
|
import { instanceRequest, userRequest } from '../api';
|
||||||
|
import { photonEmojis, photonEventType } from '../shared/constants/photon';
|
||||||
import { AppDebug } from '../service/appConfig';
|
import { AppDebug } from '../service/appConfig';
|
||||||
import { database } from '../service/database';
|
import { database } from '../service/database';
|
||||||
import { photonEmojis, photonEventType } from '../shared/constants/photon';
|
|
||||||
import { useAvatarStore } from './avatar';
|
import { useAvatarStore } from './avatar';
|
||||||
import { useFavoriteStore } from './favorite';
|
import { useFavoriteStore } from './favorite';
|
||||||
import { useFriendStore } from './friend';
|
import { useFriendStore } from './friend';
|
||||||
@@ -136,7 +136,6 @@ export const usePhotonStore = defineStore('Photon', () => {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
const chatboxUserBlacklist = ref(new Map());
|
const chatboxUserBlacklist = ref(new Map());
|
||||||
// Keyword-based chatbox blacklist (array of strings)
|
|
||||||
const chatboxBlacklist = ref([
|
const chatboxBlacklist = ref([
|
||||||
'NP: ',
|
'NP: ',
|
||||||
'Now Playing',
|
'Now Playing',
|
||||||
@@ -220,7 +219,10 @@ export const usePhotonStore = defineStore('Photon', () => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.error('Failed to parse chatbox keyword blacklist config', err);
|
console.error(
|
||||||
|
'Failed to parse chatbox keyword blacklist config',
|
||||||
|
err
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -353,7 +355,8 @@ export const usePhotonStore = defineStore('Photon', () => {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
let hasInstantiated = false;
|
let hasInstantiated = false;
|
||||||
const lobbyJointime = photonLobbyJointime.value.get(idNum);
|
const lobbyJointime =
|
||||||
|
photonLobbyJointime.value.get(idNum);
|
||||||
if (typeof lobbyJointime !== 'undefined') {
|
if (typeof lobbyJointime !== 'undefined') {
|
||||||
hasInstantiated = lobbyJointime.hasInstantiated;
|
hasInstantiated = lobbyJointime.hasInstantiated;
|
||||||
}
|
}
|
||||||
@@ -756,7 +759,8 @@ export const usePhotonStore = defineStore('Photon', () => {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
var hasInstantiated = false;
|
var hasInstantiated = false;
|
||||||
var lobbyJointime = photonLobbyJointime.value.get(idNum);
|
var lobbyJointime =
|
||||||
|
photonLobbyJointime.value.get(idNum);
|
||||||
if (typeof lobbyJointime !== 'undefined') {
|
if (typeof lobbyJointime !== 'undefined') {
|
||||||
hasInstantiated = lobbyJointime.hasInstantiated;
|
hasInstantiated = lobbyJointime.hasInstantiated;
|
||||||
}
|
}
|
||||||
@@ -1825,7 +1829,7 @@ export const usePhotonStore = defineStore('Photon', () => {
|
|||||||
photonEventTable,
|
photonEventTable,
|
||||||
photonEventTablePrevious,
|
photonEventTablePrevious,
|
||||||
chatboxUserBlacklist,
|
chatboxUserBlacklist,
|
||||||
chatboxBlacklist,
|
chatboxBlacklist,
|
||||||
photonEventTableFilter,
|
photonEventTableFilter,
|
||||||
photonLobby,
|
photonLobby,
|
||||||
photonLobbyMaster,
|
photonLobbyMaster,
|
||||||
@@ -1854,7 +1858,7 @@ export const usePhotonStore = defineStore('Photon', () => {
|
|||||||
saveEventOverlay,
|
saveEventOverlay,
|
||||||
checkChatboxBlacklist,
|
checkChatboxBlacklist,
|
||||||
saveChatboxUserBlacklist,
|
saveChatboxUserBlacklist,
|
||||||
saveChatboxBlacklist,
|
saveChatboxBlacklist,
|
||||||
photonEventTableFilterChange,
|
photonEventTableFilterChange,
|
||||||
showUserFromPhotonId,
|
showUserFromPhotonId,
|
||||||
promptPhotonOverlayMessageTimeout,
|
promptPhotonOverlayMessageTimeout,
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { defineStore } from 'pinia';
|
import { defineStore } from 'pinia';
|
||||||
import { watch, computed } from 'vue';
|
import { watch } from 'vue';
|
||||||
|
|
||||||
import { database } from '../service/database';
|
import { database } from '../service/database';
|
||||||
import { groupRequest } from '../api';
|
import { groupRequest } from '../api';
|
||||||
@@ -60,12 +60,7 @@ export const useUpdateLoopStore = defineStore('UpdateLoop', () => {
|
|||||||
|
|
||||||
const nextDiscordUpdate = state.nextDiscordUpdate;
|
const nextDiscordUpdate = state.nextDiscordUpdate;
|
||||||
|
|
||||||
const ipcTimeout = computed({
|
const ipcTimeout = state.ipcTimeout;
|
||||||
get: () => state.ipcTimeout,
|
|
||||||
set: (seconds) => {
|
|
||||||
state.ipcTimeout = Number(seconds) || 0;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
async function updateLoop() {
|
async function updateLoop() {
|
||||||
try {
|
try {
|
||||||
|
|||||||
1
src/types/globals.d.ts
vendored
1
src/types/globals.d.ts
vendored
@@ -83,6 +83,7 @@ declare global {
|
|||||||
debugGameLog: boolean;
|
debugGameLog: boolean;
|
||||||
debugWebRequests: boolean;
|
debugWebRequests: boolean;
|
||||||
debugFriendState: boolean;
|
debugFriendState: boolean;
|
||||||
|
debugIPC: boolean;
|
||||||
errorNoty: any;
|
errorNoty: any;
|
||||||
dontLogMeOut: boolean;
|
dontLogMeOut: boolean;
|
||||||
endpointDomain: string;
|
endpointDomain: string;
|
||||||
|
|||||||
Reference in New Issue
Block a user