mirror of
https://github.com/haexhub/haex-hub.git
synced 2025-12-17 06:30:50 +01:00
feature: window overview
This commit is contained in:
@ -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,
|
||||
|
||||
@ -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
|
||||
|
||||
Reference in New Issue
Block a user