Vben
3 weeks ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
19 changed files with 99 additions and 34 deletions
-
3.vscode/settings.json
-
2packages/@core/base/design/src/css/global.css
-
2packages/@core/base/shared/src/utils/__tests__/dom.test.ts
-
1packages/@core/base/shared/src/utils/__tests__/letter.test.ts
-
3packages/@core/base/shared/src/utils/__tests__/unique.test.ts
-
1packages/@core/composables/src/index.ts
-
7packages/@core/composables/src/use-is-mobile.ts
-
2packages/@core/ui-kit/popup-ui/src/drawer/drawer-api.ts
-
11packages/@core/ui-kit/popup-ui/src/drawer/drawer.ts
-
46packages/@core/ui-kit/popup-ui/src/drawer/drawer.vue
-
40packages/@core/ui-kit/popup-ui/src/modal/modal.vue
-
2packages/@core/ui-kit/popup-ui/src/modal/use-modal.ts
-
1packages/@core/ui-kit/shadcn-ui/src/components/ui/dialog/DialogContent.vue
-
1packages/@core/ui-kit/shadcn-ui/src/components/ui/sheet/SheetContent.vue
-
2packages/effects/layouts/src/widgets/lock-screen/lock-screen.vue
-
2packages/effects/layouts/src/widgets/preferences/preferences.vue
-
3packages/utils/src/helpers/get-popup-container.ts
-
1packages/utils/src/helpers/index.ts
-
3vitest.workspace.ts
@ -0,0 +1,7 @@ |
|||
import { breakpointsTailwind, useBreakpoints } from '@vueuse/core'; |
|||
|
|||
export function useIsMobile() { |
|||
const breakpoints = useBreakpoints(breakpointsTailwind); |
|||
const isMobile = breakpoints.smaller('md'); |
|||
return { isMobile }; |
|||
} |
@ -0,0 +1,3 @@ |
|||
export function getPopupContainer(node?: HTMLElement): HTMLElement { |
|||
return (node?.parentNode as HTMLElement) ?? document.body; |
|||
} |
@ -0,0 +1,3 @@ |
|||
import { defineWorkspace } from 'vitest/config'; |
|||
|
|||
export default defineWorkspace(['vitest.config.ts']); |
Write
Preview
Loading…
Cancel
Save
Reference in new issue