mirror of
https://github.com/bolucat/Archive.git
synced 2025-12-24 13:28:37 +08:00
Update On Wed Oct 8 20:42:26 CEST 2025
This commit is contained in:
@@ -720,49 +720,6 @@ export const commands = {
|
||||
else return { status: 'error', error: e as any }
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Move window to another monitor
|
||||
*/
|
||||
async moveWindowToOtherMonitor(
|
||||
targetMonitorIndex: number,
|
||||
): Promise<Result<null, string>> {
|
||||
try {
|
||||
return {
|
||||
status: 'ok',
|
||||
data: await TAURI_INVOKE('move_window_to_other_monitor', {
|
||||
targetMonitorIndex,
|
||||
}),
|
||||
}
|
||||
} catch (e) {
|
||||
if (e instanceof Error) throw e
|
||||
else return { status: 'error', error: e as any }
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Center window on current monitor
|
||||
*/
|
||||
async centerWindow(): Promise<Result<null, string>> {
|
||||
try {
|
||||
return { status: 'ok', data: await TAURI_INVOKE('center_window') }
|
||||
} catch (e) {
|
||||
if (e instanceof Error) throw e
|
||||
else return { status: 'error', error: e as any }
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Get available monitors
|
||||
*/
|
||||
async getAvailableMonitors(): Promise<Result<MonitorInfo[], string>> {
|
||||
try {
|
||||
return {
|
||||
status: 'ok',
|
||||
data: await TAURI_INVOKE('get_available_monitors'),
|
||||
}
|
||||
} catch (e) {
|
||||
if (e instanceof Error) throw e
|
||||
else return { status: 'error', error: e as any }
|
||||
}
|
||||
},
|
||||
async checkUpdate(): Promise<Result<UpdateWrapper | null, string>> {
|
||||
try {
|
||||
return { status: 'ok', data: await TAURI_INVOKE('check_update') }
|
||||
@@ -1216,16 +1173,6 @@ export type MergeProfileBuilder = {
|
||||
*/
|
||||
updated: number | null
|
||||
}
|
||||
/**
|
||||
* Simplified monitor information for IPC
|
||||
*/
|
||||
export type MonitorInfo = {
|
||||
id: number
|
||||
name: string
|
||||
position: [number, number]
|
||||
size: [number, number]
|
||||
scale_factor: number
|
||||
}
|
||||
export type NetworkStatisticWidgetConfig =
|
||||
| { kind: 'disabled' }
|
||||
| { kind: 'enabled'; value: StatisticWidgetVariant }
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
"country-emoji": "1.5.6",
|
||||
"dayjs": "1.11.18",
|
||||
"framer-motion": "12.23.22",
|
||||
"i18next": "25.5.2",
|
||||
"i18next": "25.5.3",
|
||||
"jotai": "2.15.0",
|
||||
"json-schema": "0.4.0",
|
||||
"material-react-table": "3.2.1",
|
||||
@@ -56,11 +56,11 @@
|
||||
"@csstools/normalize.css": "12.1.1",
|
||||
"@emotion/babel-plugin": "11.13.5",
|
||||
"@emotion/react": "11.14.0",
|
||||
"@iconify/json": "2.2.392",
|
||||
"@iconify/json": "2.2.393",
|
||||
"@monaco-editor/react": "4.7.0",
|
||||
"@tanstack/react-query": "5.90.2",
|
||||
"@tanstack/react-router": "1.132.47",
|
||||
"@tanstack/react-router-devtools": "1.132.47",
|
||||
"@tanstack/react-router-devtools": "1.132.50",
|
||||
"@tanstack/router-plugin": "1.132.47",
|
||||
"@tauri-apps/plugin-clipboard-manager": "2.3.0",
|
||||
"@tauri-apps/plugin-dialog": "2.4.0",
|
||||
@@ -93,6 +93,6 @@
|
||||
"vite-plugin-sass-dts": "1.3.31",
|
||||
"vite-plugin-svgr": "4.5.0",
|
||||
"vite-tsconfig-paths": "5.1.4",
|
||||
"zod": "4.1.11"
|
||||
"zod": "4.1.12"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user