mirror of
https://github.com/SECTL/SecScore.git
synced 2026-07-21 18:19:03 +08:00
fix: 修复 lint 错误
- 移除 index.ts 中未使用的 logLevel 导入 - 移除 GlobalSidebar.tsx 中未使用的 useEffect 导入 - 修复 WindowManager.ts 中的 require() 导入,改为 ES6 导入
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user