Skip to content

Commit

Permalink
Fix linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielHirschTNG committed Feb 20, 2025
1 parent 3f38e5f commit 9d0cd49
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 40 deletions.
2 changes: 1 addition & 1 deletion WebUI/electron/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ function initEventHandle() {
return pathsManager.scanGGUFLLMModels()
})

ipcMain.handle('getDownloadedOpenVINOLLMModels', (event) => {
ipcMain.handle('getDownloadedOpenVINOLLMModels', (_event) => {
return pathsManager.scanOpenVINOModels()
})

Expand Down
3 changes: 1 addition & 2 deletions WebUI/electron/subprocesses/openVINOBackendService.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { app } from 'electron'
import { ChildProcess, spawn } from 'node:child_process'
import path from 'node:path'
import * as filesystem from 'fs-extra'
Expand Down Expand Up @@ -112,7 +111,7 @@ export class OpenVINOBackendService extends LongLivedPythonApiService {

//must be at the same tick as the spawn function call
//otherwise we cannot really track errors given the nature of spawn() with a longlived process
const didProcessExitEarlyTracker = new Promise<boolean>((resolve, reject) => {
const didProcessExitEarlyTracker = new Promise<boolean>((resolve, _reject) => {
apiProcess.on('error', (error) => {
this.appLogger.error(`encountered error of process in ${this.name} : ${error}`, this.name)
resolve(true)
Expand Down
38 changes: 1 addition & 37 deletions WebUI/src/views/Answer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -440,43 +440,7 @@ const emits = defineEmits<{

let abortContooler: AbortController | null
const stopping = ref(false)
const fontSizeIndex = ref(1) // sets default to text-sm

const fontSizes = [
'text-xs',
'text-sm',
'text-base',
'text-lg',
'text-xl',
'text-2xl',
'text-3xl',
'text-4xl',
'text-5xl',
'text-6xl',
'text-7xl',
'text-8xl',
'text-9xl',
]
const iconSizes = [
'size-[40px]',
'size-[42px]',
'size-[44px]',
'size-[46px]',
'size-[48px]',
'size-[50px]',
'size-[52px]',
'size-[54px]',
'size-[56px]',
'size-[58px]',
'size-[60px]',
'size-[62px]',
'size-[64px]',
]
const fontSizeClass = computed(() => fontSizes[fontSizeIndex.value])
const nameSizeClass = computed(() => fontSizes[Math.max(fontSizeIndex.value - 2, 0)])
const iconSizeClass = computed(() => iconSizes[fontSizeIndex.value])
const isMaxSize = computed(() => fontSizeIndex.value >= fontSizes.length - 1)
const isMinSize = computed(() => fontSizeIndex.value <= 0)

const isHistoryVisible = ref(false)

const currentBackendAPI = computed(() => {
Expand Down

0 comments on commit 9d0cd49

Please sign in to comment.