feature: window overview

This commit is contained in:
2025-10-24 13:17:29 +02:00
parent 4f839aa856
commit 252b8711de
13 changed files with 934 additions and 1208 deletions

View File

@ -39,6 +39,15 @@ export const useWindowManagerStore = defineStore('windowManager', () => {
const activeWindowId = ref<string | null>(null)
const nextZIndex = ref(100)
// Window Overview State
const showWindowOverview = ref(false)
// Computed: Count of all open windows (including minimized)
const openWindowsCount = computed(() => windows.value.length)
// Window Dragging State (for drag & drop to workspaces)
const draggingWindowId = ref<string | null>(null)
// System Windows Registry
const systemWindows: Record<string, SystemWindowDefinition> = {
developer: {
@ -332,6 +341,7 @@ export const useWindowManagerStore = defineStore('windowManager', () => {
activeWindowId,
closeWindow,
currentWorkspaceWindows,
draggingWindowId,
getAllSystemWindows,
getMinimizedWindows,
getSystemWindow,
@ -340,7 +350,9 @@ export const useWindowManagerStore = defineStore('windowManager', () => {
minimizeWindow,
moveWindowsToWorkspace,
openWindowAsync,
openWindowsCount,
restoreWindow,
showWindowOverview,
updateWindowPosition,
updateWindowSize,
windowAnimationDuration,

View File

@ -136,6 +136,8 @@ const drizzleCallback = (async (
params: unknown[],
method: 'get' | 'run' | 'all' | 'values',
) => {
// Wir MÜSSEN 'any[]' verwenden, um Drizzle's Typ zu erfüllen.
// eslint-disable-next-line @typescript-eslint/no-explicit-any
let rows: any[] = []
try {
@ -179,7 +181,8 @@ const drizzleCallback = (async (
console.log('drizzleCallback rows', rows)
if (method === 'get') {
return rows.length > 0 ? { rows: rows[0] } : { rows }
return { rows: rows.slice(0, 1) }
//return rows.length > 0 ? { rows: rows[0] } : { rows }
}
return { rows }
}) satisfies AsyncRemoteCallback