fix: 修复 lint 错误

- 移除 index.ts 中未使用的 logLevel 导入
- 移除 GlobalSidebar.tsx 中未使用的 useEffect 导入
- 修复 WindowManager.ts 中的 require() 导入,改为 ES6 导入
This commit is contained in:
Linkon
2026-01-18 23:48:07 +08:00
parent 8f79653e06
commit 9c0bb8cac3
3 changed files with 30 additions and 23 deletions
+1 -2
View File
@@ -1,6 +1,6 @@
import { Service } from '../../shared/kernel'
import { MainContext } from '../context'
import { BrowserWindow, shell } from 'electron'
import { BrowserWindow, shell, screen } from 'electron'
import type { BrowserWindowConstructorOptions } from 'electron'
export type windowOpenInput = {
@@ -77,7 +77,6 @@ export class WindowManager extends Service {
// Special positioning for global sidebar
if (input.key === 'global-sidebar') {
const { screen } = require('electron')
const primaryDisplay = screen.getPrimaryDisplay()
const { width, height } = primaryDisplay.workAreaSize
const winWidth = 84