chore: fix linter warnings

This commit is contained in:
Settel 2024-02-18 14:06:34 +01:00
parent 113a5fb16e
commit 6f69ca91af
9 changed files with 15 additions and 12 deletions

View File

@ -3,9 +3,9 @@ import { useUserinfoStore } from "@/stores/UserinfoStore"
import { useGameinfoStore } from "@/stores/GameinfoStore"
import { useRoundStore } from "@/stores/RoundStore"
import { usePlayersStore } from "@/stores/PlayersStore"
import { EngineContext } from '@/composables/useEngine'
import useAlert from '@/composables/useAlert'
import useI18n from '@/composables/useI18n'
import type { EngineContext } from '@/composables/useEngine'
type EngineResponse = {
version: string,

View File

@ -1,5 +1,5 @@
import { EngineContext } from '@/composables/useEngine'
import { useUserinfoStore } from "@/stores/UserinfoStore"
import type { EngineContext } from '@/composables/useEngine'
import type { GameInfo, GameInfos, PlayerEdit, Lang, CreateGameStatus } from '@/composables/engine.d'
export async function fetchGameInfo(this: EngineContext): Promise<GameInfo> {

View File

@ -1,5 +1,5 @@
import { EngineContext } from '@/composables/useEngine'
import { useUserinfoStore } from "@/stores/UserinfoStore"
import type { EngineContext } from '@/composables/useEngine'
export async function collectQuotes(this: EngineContext): Promise<void> {
const userInfoStore = useUserinfoStore()

View File

@ -1,5 +1,5 @@
import { useUserinfoStore } from "@/stores/UserinfoStore"
import { EngineContext } from '@/composables/useEngine'
import type { EngineContext } from '@/composables/useEngine'
export async function saveSelection(this: EngineContext, selection: string): Promise<void> {
const userInfoStore = useUserinfoStore()

View File

@ -1,7 +1,8 @@
import { Ref, ref } from 'vue'
import { ref } from 'vue'
import type { Quotes } from '@/composables/engine.d'
import { useUserinfoStore } from "@/stores/UserinfoStore"
import { EngineContext } from '@/composables/useEngine'
import type { Ref } from 'vue'
import type { EngineContext } from '@/composables/useEngine'
type QuotesResponse = {
quotes: Quotes

View File

@ -1,5 +1,4 @@
import { useUserinfoStore } from "@/stores/UserinfoStore"
import { EngineContext } from '@/composables/useEngine'
import type { EngineContext } from '@/composables/useEngine'
export async function setupApp(this: EngineContext, authcode: string): Promise<void> {
await this.callApi('/api/setupApp', {

View File

@ -1,6 +1,6 @@
import { useUserinfoStore } from "@/stores/UserinfoStore"
import { EngineContext } from '@/composables/useEngine'
import useAlert from '@/composables/useAlert'
import type { EngineContext } from '@/composables/useEngine'
export function start(this: EngineContext): void {
if (this.isActive && !this.shouldStop) {

View File

@ -1,4 +1,5 @@
import { Ref, ref } from 'vue'
import { ref } from 'vue'
import type { Ref } from 'vue'
export type AlertMessages = Array<string>

View File

@ -1,5 +1,5 @@
import { Ref, ref } from 'vue'
import { callApi, QueryParams } from '@/composables/engine/callApi'
import { ref } from 'vue'
import { callApi } from '@/composables/engine/callApi'
import { start, stop } from '@/composables/engine/startStop'
import { setupApp } from '@/composables/engine/setupApp'
import { fetchUpdate } from '@/composables/engine/fetchUpdate'
@ -7,6 +7,8 @@ import { loadQuotes, getQuotesRef, deleteQuote, saveQuote } from '@/composables/
import { fetchGameInfo, fetchGameInfos, setGameLang, setGameName, savePlayer, removePlayer, createGame, cameo, logoutCameo } from '@/composables/engine/gameManagement'
import { collectQuotes, startGame, continueGame, resetGame, finishGame, disableGame, removeGame } from '@/composables/engine/gameState'
import { saveSelection } from '@/composables/engine/play'
import type { Ref } from 'vue'
import type { QueryParams } from '@/composables/engine/callApi'
import type { Quotes, GameInfo, GameInfos, PlayerEdit, Lang, CreateGameStatus } from '@/composables/engine.d'
export interface EngineContext {