diff --git a/packages/design-system/src/composables/useDeviceSupport.ts b/packages/design-system/src/composables/useDeviceSupport.ts index 63d5549dcc..8f713ffd30 100644 --- a/packages/design-system/src/composables/useDeviceSupport.ts +++ b/packages/design-system/src/composables/useDeviceSupport.ts @@ -28,6 +28,7 @@ export function useDeviceSupport() { } return { + userAgent: userAgent.value, isTouchDevice: isTouchDevice.value, isMacOs: isMacOs.value, controlKeyCode: controlKeyCode.value, diff --git a/packages/editor-ui/package.json b/packages/editor-ui/package.json index d3a4eb79d1..69d52a8138 100644 --- a/packages/editor-ui/package.json +++ b/packages/editor-ui/package.json @@ -14,7 +14,7 @@ "format:check": "biome ci . && prettier --check . --ignore-path ../../.prettierignore", "serve": "cross-env VUE_APP_URL_BASE_API=http://localhost:5678/ vite --host 0.0.0.0 --port 8080 dev", "test": "vitest run", - "test:dev": "vitest" + "test:dev": "vitest --silent=false" }, "dependencies": { "@codemirror/autocomplete": "^6.16.0", diff --git a/packages/editor-ui/src/components/KeyboardShortcutTooltip.vue b/packages/editor-ui/src/components/KeyboardShortcutTooltip.vue index 1c006d4050..56625f004f 100644 --- a/packages/editor-ui/src/components/KeyboardShortcutTooltip.vue +++ b/packages/editor-ui/src/components/KeyboardShortcutTooltip.vue @@ -4,10 +4,10 @@ import type { Placement } from 'element-plus'; interface Props { label: string; - shortcut: KeyboardShortcut; + shortcut?: KeyboardShortcut; placement?: Placement; } -withDefaults(defineProps(), { placement: 'top' }); +withDefaults(defineProps(), { placement: 'top', shortcut: undefined });