feat:游戏启动自动置顶+聚焦
Some checks failed
Axolotl desktop CI / guardrails (push) Has been cancelled
Axolotl desktop CI / desktop (macos-latest) (push) Has been cancelled
Axolotl desktop CI / desktop (ubuntu-latest) (push) Has been cancelled
Axolotl desktop CI / desktop (windows-latest) (push) Has been cancelled
Axolotl desktop CI / website (push) Has been cancelled
Repository checks / typos (push) Has been cancelled
Repository checks / tombi (push) Has been cancelled
Rust checks / shear (push) Has been cancelled
Sync source to CNB / Sync Git ref (push) Has been cancelled

This commit is contained in:
2026-09-13 13:41:58 +08:00
parent 9b704919cf
commit 567184b061
9 changed files with 68 additions and 1574 deletions

View File

@ -5,8 +5,7 @@
"type": "module",
"scripts": {
"dev": "vite",
"build": "pnpm contributors:sync && vue-tsc --noEmit && vite build",
"contributors:sync": "node ../../scripts/axolotl/sync-contributors.mjs",
"build": "vue-tsc --noEmit && vite build",
"tsc:check": "vue-tsc --noEmit",
"lint": "eslint . && prettier --check .",
"fix": "eslint . --fix && prettier --write .",

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

File diff suppressed because it is too large Load Diff

View File

@ -1,3 +1,4 @@
import contributorsData from './contributors.json'
import teamData from './team.json'
@ -10,7 +11,7 @@ export interface TeamMember {
export interface Contributor {
name: string
avatarUrl: string
avatar: string
url: string
contributions: number
}
@ -26,4 +27,9 @@ export const teamMembers: (TeamMember & { avatarUrl: string })[] = teamData.map(
avatarUrl: teamAvatarModules[`./avatars/${member.avatar}`],
}))
export const contributors = contributorsData as Contributor[]
export const contributors: (Contributor & { avatarUrl: string })[] = (
contributorsData as Contributor[]
).map((contributor) => ({
...contributor,
avatarUrl: teamAvatarModules[`./avatars/${contributor.avatar}`],
}))

View File

@ -26,7 +26,10 @@
"core:window:allow-set-effects",
"core:window:allow-set-cursor-grab",
"core:window:allow-set-cursor-visible",
"core:window:allow-start-dragging",
"core:window:allow-set-always-on-top",
"core:window:allow-set-focus",
"core:webview:allow-set-webview-zoom"
]
}

View File

@ -354,7 +354,7 @@ unsafe extern "system" fn maximize_if_owned_by_process(
_: windows::Win32::Foundation::LPARAM,
) -> windows::core::BOOL {
use windows::Win32::UI::WindowsAndMessaging::{
GetWindowThreadProcessId, IsWindowVisible, SW_MAXIMIZE, ShowWindow,
GetWindowThreadProcessId, IsWindowVisible, SW_MAXIMIZE, SetForegroundWindow, ShowWindow,
};
use windows::core::BOOL;
@ -363,6 +363,7 @@ unsafe extern "system" fn maximize_if_owned_by_process(
if window_pid == MAXIMIZE_PROCESS_ID.load(Ordering::Relaxed)
&& unsafe { IsWindowVisible(hwnd).as_bool() }
{
let _ = unsafe { SetForegroundWindow(hwnd) };
let _ = unsafe { ShowWindow(hwnd, SW_MAXIMIZE) };
MAXIMIZE_WINDOW_FOUND.store(true, Ordering::Relaxed);
return BOOL(0);