Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
monorepo
/
venus
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
1
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 3f9ce638
authored
Aug 11, 2024
by
Vben
Committed by
GitHub
Aug 11, 2024
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat: support vue file unit testing, add some components unit testing (#4119)
1 parent
517acada
Hide whitespace changes
Inline
Side-by-side
Showing
53 changed files
with
241 additions
and
156 deletions
.github/workflows/deploy.yml
package.json
packages/@core/ui-kit/shadcn-ui/src/components/alert-dialog/alert-dialog.vue
packages/@core/ui-kit/shadcn-ui/src/components/avatar/avatar.vue
packages/@core/ui-kit/shadcn-ui/src/components/breadcrumb/breadcrumb-background.vue
packages/@core/ui-kit/shadcn-ui/src/components/breadcrumb/breadcrumb.vue
packages/@core/ui-kit/shadcn-ui/src/components/breadcrumb/index.ts
packages/@core/ui-kit/shadcn-ui/src/components/breadcrumb/interface.ts → packages/@core/ui-kit/shadcn-ui/src/components/breadcrumb/types.ts
packages/@core/ui-kit/shadcn-ui/src/components/button/button.vue
packages/@core/ui-kit/shadcn-ui/src/components/button/icon-button.vue
packages/@core/ui-kit/shadcn-ui/src/components/checkbox/checkbox.vue
packages/@core/ui-kit/shadcn-ui/src/components/context-menu/context-menu.vue
packages/@core/ui-kit/shadcn-ui/src/components/dropdown-menu/dropdown-menu.vue
packages/@core/ui-kit/shadcn-ui/src/components/dropdown-menu/dropdown-radio-menu.vue
packages/@core/ui-kit/shadcn-ui/src/components/hover-card/hover-card.vue
packages/@core/ui-kit/shadcn-ui/src/components/input-password/input-password.vue
packages/@core/ui-kit/shadcn-ui/src/components/input/index.ts
packages/@core/ui-kit/shadcn-ui/src/components/input/input.vue
packages/@core/ui-kit/shadcn-ui/src/components/input/interface.ts → packages/@core/ui-kit/shadcn-ui/src/components/input/types.ts
packages/@core/ui-kit/shadcn-ui/src/components/pin-input/index.ts
packages/@core/ui-kit/shadcn-ui/src/components/pin-input/input.vue
packages/@core/ui-kit/shadcn-ui/src/components/pin-input/interface.ts → packages/@core/ui-kit/shadcn-ui/src/components/pin-input/types.ts
packages/@core/ui-kit/shadcn-ui/src/components/popover/popover.vue
packages/@core/ui-kit/shadcn-ui/src/components/scrollbar/scrollbar.vue
packages/@core/ui-kit/shadcn-ui/src/components/segmented/index.ts
packages/@core/ui-kit/shadcn-ui/src/components/segmented/segmented.vue
packages/@core/ui-kit/shadcn-ui/src/components/segmented/interface.ts → packages/@core/ui-kit/shadcn-ui/src/components/segmented/types.ts
packages/@core/ui-kit/shadcn-ui/src/components/sheet/sheet.vue
packages/@core/ui-kit/shadcn-ui/src/components/tooltip/tooltip.vue
packages/@core/ui-kit/shadcn-ui/src/components/ui/alert-dialog/AlertDialogAction.vue
packages/@core/ui-kit/shadcn-ui/src/components/ui/alert-dialog/AlertDialogCancel.vue
packages/@core/ui-kit/shadcn-ui/src/components/ui/toggle-group/ToggleGroup.vue
packages/@core/ui-kit/shadcn-ui/src/components/ui/toggle-group/ToggleGroupItem.vue
packages/effects/common-ui/src/components/ellipsis-text/__tests__/ellipsis-text.test.ts
packages/effects/common-ui/src/components/ellipsis-text/ellipsis-text.vue
packages/effects/common-ui/src/components/page/__tests__/page.test.ts
packages/effects/common-ui/src/components/page/page-footer.vue
packages/effects/common-ui/src/components/page/page-header.vue
packages/effects/common-ui/src/components/page/page.ts
packages/effects/common-ui/src/components/page/page.vue
packages/effects/common-ui/src/ui/authentication/code-login.vue
packages/effects/common-ui/src/ui/authentication/index.ts
packages/effects/common-ui/src/ui/authentication/login-expired-modal.vue
packages/effects/common-ui/src/ui/authentication/login.vue
packages/effects/common-ui/src/ui/authentication/register.vue
packages/effects/common-ui/src/ui/authentication/typings.ts → packages/effects/common-ui/src/ui/authentication/types.ts
packages/effects/layouts/src/widgets/lock-screen/lock-screen-modal.vue
packages/effects/layouts/src/widgets/lock-screen/typings.ts
playground/src/views/demos/access/admin-visible.vue
playground/src/views/demos/access/super-visible.vue
playground/src/views/demos/access/user-visible.vue
pnpm-lock.yaml
vitest.config.ts
.github/workflows/deploy.yml
View file @
3f9ce63
...
@@ -7,7 +7,7 @@ on:
...
@@ -7,7 +7,7 @@ on:
jobs
:
jobs
:
deploy-push-playground-ftp
:
deploy-push-playground-ftp
:
name
:
Deploy Push Ftp
name
:
Deploy Push
Playground
Ftp
if
:
github.actor != 'dependabot[bot]' && !contains(github.event.head_commit.message, '[skip ci]')
if
:
github.actor != 'dependabot[bot]' && !contains(github.event.head_commit.message, '[skip ci]')
runs-on
:
ubuntu-latest
runs-on
:
ubuntu-latest
steps
:
steps
:
...
@@ -46,7 +46,7 @@ jobs:
...
@@ -46,7 +46,7 @@ jobs:
local-dir
:
./docs/.vitepress/dist/
local-dir
:
./docs/.vitepress/dist/
deploy-push-antd-ftp
:
deploy-push-antd-ftp
:
name
:
Deploy Push Ftp
name
:
Deploy Push
Antd
Ftp
if
:
github.actor != 'dependabot[bot]' && !contains(github.event.head_commit.message, '[skip ci]')
if
:
github.actor != 'dependabot[bot]' && !contains(github.event.head_commit.message, '[skip ci]')
runs-on
:
ubuntu-latest
runs-on
:
ubuntu-latest
steps
:
steps
:
...
@@ -77,7 +77,7 @@ jobs:
...
@@ -77,7 +77,7 @@ jobs:
local-dir
:
./apps/web-antd/dist/
local-dir
:
./apps/web-antd/dist/
deploy-push-ele-ftp
:
deploy-push-ele-ftp
:
name
:
Deploy Push Ftp
name
:
Deploy Push
Element
Ftp
if
:
github.actor != 'dependabot[bot]' && !contains(github.event.head_commit.message, '[skip ci]')
if
:
github.actor != 'dependabot[bot]' && !contains(github.event.head_commit.message, '[skip ci]')
runs-on
:
ubuntu-latest
runs-on
:
ubuntu-latest
steps
:
steps
:
...
@@ -108,7 +108,7 @@ jobs:
...
@@ -108,7 +108,7 @@ jobs:
local-dir
:
./apps/web-ele/dist/
local-dir
:
./apps/web-ele/dist/
deploy-push-naive-ftp
:
deploy-push-naive-ftp
:
name
:
Deploy Push Ftp
name
:
Deploy Push
Naive
Ftp
if
:
github.actor != 'dependabot[bot]' && !contains(github.event.head_commit.message, '[skip ci]')
if
:
github.actor != 'dependabot[bot]' && !contains(github.event.head_commit.message, '[skip ci]')
runs-on
:
ubuntu-latest
runs-on
:
ubuntu-latest
steps
:
steps
:
...
...
package.json
View file @
3f9ce63
...
@@ -70,6 +70,8 @@
...
@@ -70,6 +70,8 @@
"@vben/turbo-run"
:
"workspace:*"
,
"@vben/turbo-run"
:
"workspace:*"
,
"@vben/vite-config"
:
"workspace:*"
,
"@vben/vite-config"
:
"workspace:*"
,
"@vben/vsh"
:
"workspace:*"
,
"@vben/vsh"
:
"workspace:*"
,
"@vitejs/plugin-vue"
:
"^5.1.2"
,
"@vitejs/plugin-vue-jsx"
:
"^4.0.0"
,
"@vue/test-utils"
:
"^2.4.6"
,
"@vue/test-utils"
:
"^2.4.6"
,
"autoprefixer"
:
"^10.4.20"
,
"autoprefixer"
:
"^10.4.20"
,
"cross-env"
:
"^7.0.3"
,
"cross-env"
:
"^7.0.3"
,
...
@@ -85,6 +87,7 @@
...
@@ -85,6 +87,7 @@
"unbuild"
:
"^2.0.0"
,
"unbuild"
:
"^2.0.0"
,
"vite"
:
"^5.4.0"
,
"vite"
:
"^5.4.0"
,
"vitest"
:
"^2.0.5"
,
"vitest"
:
"^2.0.5"
,
"vue"
:
"^3.4.37"
,
"vue-tsc"
:
"^2.0.29"
"vue-tsc"
:
"^2.0.29"
},
},
"engines"
:
{
"engines"
:
{
...
...
packages/@core/ui-kit/shadcn-ui/src/components/alert-dialog/alert-dialog.vue
View file @
3f9ce63
...
@@ -8,7 +8,7 @@ import {
...
@@ -8,7 +8,7 @@ import {
AlertDialogHeader
,
AlertDialogHeader
,
AlertDialog
as
AlertDialogRoot
,
AlertDialog
as
AlertDialogRoot
,
AlertDialogTitle
,
AlertDialogTitle
,
}
from
'
@vben-core/shadcn-ui/components
/ui/alert-dialog'
;
}
from
'
..
/ui/alert-dialog'
;
interface
Props
{
interface
Props
{
cancelText
?:
string
;
cancelText
?:
string
;
...
...
packages/@core/ui-kit/shadcn-ui/src/components/avatar/avatar.vue
View file @
3f9ce63
...
@@ -7,11 +7,7 @@ import type {
...
@@ -7,11 +7,7 @@ import type {
import
{
computed
}
from
'vue'
;
import
{
computed
}
from
'vue'
;
import
{
import
{
Avatar
,
AvatarFallback
,
AvatarImage
}
from
'../ui/avatar'
;
Avatar
,
AvatarFallback
,
AvatarImage
,
}
from
'@vben-core/shadcn-ui/components/ui/avatar'
;
interface
Props
extends
AvatarRootProps
,
AvatarFallbackProps
,
AvatarImageProps
{
interface
Props
extends
AvatarRootProps
,
AvatarFallbackProps
,
AvatarImageProps
{
alt
?:
string
;
alt
?:
string
;
...
...
packages/@core/ui-kit/shadcn-ui/src/components/breadcrumb/breadcrumb-background.vue
View file @
3f9ce63
<
script
lang=
"ts"
setup
>
<
script
lang=
"ts"
setup
>
import
type
{
IBreadcrumb
}
from
'./
interface
'
;
import
type
{
IBreadcrumb
}
from
'./
types
'
;
import
{
VbenIcon
}
from
'../icon'
;
import
{
VbenIcon
}
from
'../icon'
;
...
...
packages/@core/ui-kit/shadcn-ui/src/components/breadcrumb/breadcrumb.vue
View file @
3f9ce63
<
script
lang=
"ts"
setup
>
<
script
lang=
"ts"
setup
>
import
type
{
IBreadcrumb
}
from
'./
interface
'
;
import
type
{
IBreadcrumb
}
from
'./
types
'
;
import
{
ChevronDown
}
from
'@vben-core/icons'
;
import
{
ChevronDown
}
from
'@vben-core/icons'
;
import
{
VbenIcon
}
from
'../icon'
;
import
{
import
{
Breadcrumb
,
Breadcrumb
,
BreadcrumbItem
,
BreadcrumbItem
,
...
@@ -9,15 +11,13 @@ import {
...
@@ -9,15 +11,13 @@ import {
BreadcrumbList
,
BreadcrumbList
,
BreadcrumbPage
,
BreadcrumbPage
,
BreadcrumbSeparator
,
BreadcrumbSeparator
,
}
from
'
@vben-core/shadcn-ui/components
/ui/breadcrumb'
;
}
from
'
..
/ui/breadcrumb'
;
import
{
import
{
DropdownMenu
,
DropdownMenu
,
DropdownMenuContent
,
DropdownMenuContent
,
DropdownMenuItem
,
DropdownMenuItem
,
DropdownMenuTrigger
,
DropdownMenuTrigger
,
}
from
'@vben-core/shadcn-ui/components/ui/dropdown-menu'
;
}
from
'../ui/dropdown-menu'
;
import
{
VbenIcon
}
from
'../icon'
;
interface
Props
{
interface
Props
{
breadcrumbs
:
IBreadcrumb
[];
breadcrumbs
:
IBreadcrumb
[];
...
...
packages/@core/ui-kit/shadcn-ui/src/components/breadcrumb/index.ts
View file @
3f9ce63
export
{
default
as
VbenBreadcrumb
}
from
'./breadcrumb.vue'
;
export
{
default
as
VbenBreadcrumb
}
from
'./breadcrumb.vue'
;
export
{
default
as
VbenBackgroundBreadcrumb
}
from
'./breadcrumb-background.vue'
;
export
{
default
as
VbenBackgroundBreadcrumb
}
from
'./breadcrumb-background.vue'
;
export
type
*
from
'./
interface
'
;
export
type
*
from
'./
types
'
;
packages/@core/ui-kit/shadcn-ui/src/components/breadcrumb/
interface
.ts
→
packages/@core/ui-kit/shadcn-ui/src/components/breadcrumb/
types
.ts
View file @
3f9ce63
File moved
packages/@core/ui-kit/shadcn-ui/src/components/button/button.vue
View file @
3f9ce63
...
@@ -2,14 +2,12 @@
...
@@ -2,14 +2,12 @@
import
{
computed
}
from
'vue'
;
import
{
computed
}
from
'vue'
;
import
{
LoaderCircle
}
from
'@vben-core/icons'
;
import
{
LoaderCircle
}
from
'@vben-core/icons'
;
import
{
type
ButtonVariants
,
buttonVariants
,
}
from
'@vben-core/shadcn-ui/components/ui/button'
;
import
{
cn
}
from
'@vben-core/shared'
;
import
{
cn
}
from
'@vben-core/shared'
;
import
{
Primitive
,
type
PrimitiveProps
}
from
'radix-vue'
;
import
{
Primitive
,
type
PrimitiveProps
}
from
'radix-vue'
;
import
{
type
ButtonVariants
,
buttonVariants
}
from
'../ui/button'
;
interface
Props
extends
PrimitiveProps
{
interface
Props
extends
PrimitiveProps
{
class
?:
any
;
class
?:
any
;
disabled
?:
boolean
;
disabled
?:
boolean
;
...
...
packages/@core/ui-kit/shadcn-ui/src/components/button/icon-button.vue
View file @
3f9ce63
<
script
setup
lang=
"ts"
>
<
script
setup
lang=
"ts"
>
import
type
{
ButtonVariants
}
from
'
@vben-core/shadcn-ui/components
/ui/button'
;
import
type
{
ButtonVariants
}
from
'
..
/ui/button'
;
import
{
computed
,
useSlots
}
from
'vue'
;
import
{
computed
,
useSlots
}
from
'vue'
;
import
{
VbenTooltip
}
from
'@vben-core/shadcn-ui/components/tooltip'
;
import
{
cn
}
from
'@vben-core/shared'
;
import
{
cn
}
from
'@vben-core/shared'
;
import
{
type
PrimitiveProps
}
from
'radix-vue'
;
import
{
type
PrimitiveProps
}
from
'radix-vue'
;
import
{
VbenTooltip
}
from
'../tooltip'
;
import
VbenButton
from
'./button.vue'
;
import
VbenButton
from
'./button.vue'
;
interface
Props
extends
PrimitiveProps
{
interface
Props
extends
PrimitiveProps
{
...
...
packages/@core/ui-kit/shadcn-ui/src/components/checkbox/checkbox.vue
View file @
3f9ce63
<
script
setup
lang=
"ts"
>
<
script
setup
lang=
"ts"
>
import
type
{
CheckboxRootEmits
,
CheckboxRootProps
}
from
'radix-vue'
;
import
type
{
CheckboxRootEmits
,
CheckboxRootProps
}
from
'radix-vue'
;
import
{
Checkbox
}
from
'@vben-core/shadcn-ui/components/ui/checkbox'
;
import
{
useForwardPropsEmits
}
from
'radix-vue'
;
import
{
useForwardPropsEmits
}
from
'radix-vue'
;
import
{
Checkbox
}
from
'../ui/checkbox'
;
const
props
=
defineProps
<
const
props
=
defineProps
<
{
{
name
:
string
;
name
:
string
;
...
...
packages/@core/ui-kit/shadcn-ui/src/components/context-menu/context-menu.vue
View file @
3f9ce63
...
@@ -9,6 +9,8 @@ import type { IContextMenuItem } from './interface';
...
@@ -9,6 +9,8 @@ import type { IContextMenuItem } from './interface';
import
{
computed
}
from
'vue'
;
import
{
computed
}
from
'vue'
;
import
{
useForwardPropsEmits
}
from
'radix-vue'
;
import
{
import
{
ContextMenu
,
ContextMenu
,
ContextMenuContent
,
ContextMenuContent
,
...
@@ -16,9 +18,7 @@ import {
...
@@ -16,9 +18,7 @@ import {
ContextMenuSeparator
,
ContextMenuSeparator
,
ContextMenuShortcut
,
ContextMenuShortcut
,
ContextMenuTrigger
,
ContextMenuTrigger
,
}
from
'@vben-core/shadcn-ui/components/ui/context-menu'
;
}
from
'../ui/context-menu'
;
import
{
useForwardPropsEmits
}
from
'radix-vue'
;
const
props
=
defineProps
<
const
props
=
defineProps
<
{
{
...
...
packages/@core/ui-kit/shadcn-ui/src/components/dropdown-menu/dropdown-menu.vue
View file @
3f9ce63
...
@@ -11,7 +11,7 @@ import {
...
@@ -11,7 +11,7 @@ import {
DropdownMenuItem
,
DropdownMenuItem
,
DropdownMenuSeparator
,
DropdownMenuSeparator
,
DropdownMenuTrigger
,
DropdownMenuTrigger
,
}
from
'
@vben-core/shadcn-ui/components
/ui/dropdown-menu'
;
}
from
'
..
/ui/dropdown-menu'
;
interface
Props
extends
DropdownMenuProps
{}
interface
Props
extends
DropdownMenuProps
{}
...
...
packages/@core/ui-kit/shadcn-ui/src/components/dropdown-menu/dropdown-radio-menu.vue
View file @
3f9ce63
...
@@ -7,7 +7,7 @@ import {
...
@@ -7,7 +7,7 @@ import {
DropdownMenuGroup
,
DropdownMenuGroup
,
DropdownMenuItem
,
DropdownMenuItem
,
DropdownMenuTrigger
,
DropdownMenuTrigger
,
}
from
'
@vben-core/shadcn-ui/components
/ui/dropdown-menu'
;
}
from
'
..
/ui/dropdown-menu'
;
interface
Props
extends
DropdownMenuProps
{}
interface
Props
extends
DropdownMenuProps
{}
...
...
packages/@core/ui-kit/shadcn-ui/src/components/hover-card/hover-card.vue
View file @
3f9ce63
...
@@ -7,13 +7,13 @@ import type {
...
@@ -7,13 +7,13 @@ import type {
import
{
computed
}
from
'vue'
;
import
{
computed
}
from
'vue'
;
import
{
useForwardPropsEmits
}
from
'radix-vue'
;
import
{
import
{
HoverCard
,
HoverCard
,
HoverCardContent
,
HoverCardContent
,
HoverCardTrigger
,
HoverCardTrigger
,
}
from
'@vben-core/shadcn-ui/components/ui/hover-card'
;
}
from
'../ui/hover-card'
;
import
{
useForwardPropsEmits
}
from
'radix-vue'
;
interface
Props
extends
HoverCardRootProps
{
interface
Props
extends
HoverCardRootProps
{
class
?:
any
;
class
?:
any
;
...
...
packages/@core/ui-kit/shadcn-ui/src/components/input-password/input-password.vue
View file @
3f9ce63
...
@@ -2,13 +2,10 @@
...
@@ -2,13 +2,10 @@
import
{
ref
,
useSlots
}
from
'vue'
;
import
{
ref
,
useSlots
}
from
'vue'
;
import
{
Eye
,
EyeOff
}
from
'@vben-core/icons'
;
import
{
Eye
,
EyeOff
}
from
'@vben-core/icons'
;
import
{
type
InputProps
,
VbenInput
,
}
from
'@vben-core/shadcn-ui/components/input'
;
import
{
useForwardProps
}
from
'radix-vue'
;
import
{
useForwardProps
}
from
'radix-vue'
;
import
{
type
InputProps
,
VbenInput
}
from
'../input'
;
import
PasswordStrength
from
'./password-strength.vue'
;
import
PasswordStrength
from
'./password-strength.vue'
;
interface
Props
extends
InputProps
{}
interface
Props
extends
InputProps
{}
...
...
packages/@core/ui-kit/shadcn-ui/src/components/input/index.ts
View file @
3f9ce63
export
{
default
as
VbenInput
}
from
'./input.vue'
;
export
{
default
as
VbenInput
}
from
'./input.vue'
;
export
type
*
from
'./
interface
'
;
export
type
*
from
'./
types
'
;
packages/@core/ui-kit/shadcn-ui/src/components/input/input.vue
View file @
3f9ce63
<
script
setup
lang=
"ts"
>
<
script
setup
lang=
"ts"
>
import
type
{
InputProps
}
from
'./
interface
'
;
import
type
{
InputProps
}
from
'./
types
'
;
import
{
computed
}
from
'vue'
;
import
{
computed
}
from
'vue'
;
...
...
packages/@core/ui-kit/shadcn-ui/src/components/input/
interface
.ts
→
packages/@core/ui-kit/shadcn-ui/src/components/input/
types
.ts
View file @
3f9ce63
File moved
packages/@core/ui-kit/shadcn-ui/src/components/pin-input/index.ts
View file @
3f9ce63
export
{
default
as
VbenPinInput
}
from
'./input.vue'
;
export
{
default
as
VbenPinInput
}
from
'./input.vue'
;
export
type
*
from
'./
interface
'
;
export
type
*
from
'./
types
'
;
packages/@core/ui-kit/shadcn-ui/src/components/pin-input/input.vue
View file @
3f9ce63
<
script
setup
lang=
"ts"
>
<
script
setup
lang=
"ts"
>
import
type
{
PinInputProps
}
from
'./
interface
'
;
import
type
{
PinInputProps
}
from
'./
types
'
;
import
{
computed
,
ref
,
watch
}
from
'vue'
;
import
{
computed
,
ref
,
watch
}
from
'vue'
;
import
{
VbenButton
}
from
'@vben-core/shadcn-ui/components/button'
;
import
{
VbenButton
}
from
'../button'
;
import
{
import
{
PinInput
,
PinInputGroup
,
PinInputInput
}
from
'../ui/pin-input'
;
PinInput
,
PinInputGroup
,
PinInputInput
,
}
from
'@vben-core/shadcn-ui/components/ui/pin-input'
;
defineOptions
({
defineOptions
({
inheritAttrs
:
false
,
inheritAttrs
:
false
,
...
...
packages/@core/ui-kit/shadcn-ui/src/components/pin-input/
interface
.ts
→
packages/@core/ui-kit/shadcn-ui/src/components/pin-input/
types
.ts
View file @
3f9ce63
File moved
packages/@core/ui-kit/shadcn-ui/src/components/popover/popover.vue
View file @
3f9ce63
...
@@ -7,13 +7,13 @@ import type {
...
@@ -7,13 +7,13 @@ import type {
import
{
computed
}
from
'vue'
;
import
{
computed
}
from
'vue'
;
import
{
useForwardPropsEmits
}
from
'radix-vue'
;
import
{
import
{
PopoverContent
,
PopoverContent
,
Popover
as
PopoverRoot
,
Popover
as
PopoverRoot
,
PopoverTrigger
,
PopoverTrigger
,
}
from
'@vben-core/shadcn-ui/components/ui/popover'
;
}
from
'../ui/popover'
;
import
{
useForwardPropsEmits
}
from
'radix-vue'
;
interface
Props
extends
PopoverRootProps
{
interface
Props
extends
PopoverRootProps
{
class
?:
any
;
class
?:
any
;
...
...
packages/@core/ui-kit/shadcn-ui/src/components/scrollbar/scrollbar.vue
View file @
3f9ce63
<
script
setup
lang=
"ts"
>
<
script
setup
lang=
"ts"
>
import
{
ref
}
from
'vue'
;
import
{
ref
}
from
'vue'
;
import
{
ScrollArea
,
ScrollBar
,
}
from
'@vben-core/shadcn-ui/components/ui/scroll-area'
;
import
{
cn
}
from
'@vben-core/shared'
;
import
{
cn
}
from
'@vben-core/shared'
;
import
{
ScrollArea
,
ScrollBar
}
from
'../ui/scroll-area'
;
interface
Props
{
interface
Props
{
class
?:
any
;
class
?:
any
;
horizontal
?:
boolean
;
horizontal
?:
boolean
;
...
...
packages/@core/ui-kit/shadcn-ui/src/components/segmented/index.ts
View file @
3f9ce63
export
type
*
from
'./interface'
;
export
{
default
as
VbenSegmented
}
from
'./segmented.vue'
;
export
{
default
as
VbenSegmented
}
from
'./segmented.vue'
;
export
type
*
from
'./types'
;
packages/@core/ui-kit/shadcn-ui/src/components/segmented/segmented.vue
View file @
3f9ce63
<
script
setup
lang=
"ts"
>
<
script
setup
lang=
"ts"
>
import
type
{
SegmentedItem
}
from
'./
interface
'
;
import
type
{
SegmentedItem
}
from
'./
types
'
;
import
{
computed
}
from
'vue'
;
import
{
computed
}
from
'vue'
;
import
{
Tabs
,
TabsContent
,
TabsList
,
}
from
'@vben-core/shadcn-ui/components/ui/tabs'
;
import
{
TabsTrigger
}
from
'radix-vue'
;
import
{
TabsTrigger
}
from
'radix-vue'
;
import
{
Tabs
,
TabsContent
,
TabsList
}
from
'../ui/tabs'
;
import
TabsIndicator
from
'./tabs-indicator.vue'
;
import
TabsIndicator
from
'./tabs-indicator.vue'
;
interface
Props
{
interface
Props
{
...
...
packages/@core/ui-kit/shadcn-ui/src/components/segmented/
interface
.ts
→
packages/@core/ui-kit/shadcn-ui/src/components/segmented/
types
.ts
View file @
3f9ce63
File moved
packages/@core/ui-kit/shadcn-ui/src/components/sheet/sheet.vue
View file @
3f9ce63
<
script
setup
lang=
"ts"
>
<
script
setup
lang=
"ts"
>
import
{
computed
,
useSlots
}
from
'vue'
;
import
{
computed
,
useSlots
}
from
'vue'
;
import
{
import
{
X
}
from
'lucide-vue-next'
;
VbenButton
,
VbenIconButton
,
import
{
VbenButton
,
VbenIconButton
}
from
'../button'
;
}
from
'@vben-core/shadcn-ui/components/button'
;
import
{
VbenScrollbar
}
from
'../scrollbar'
;
import
{
VbenScrollbar
}
from
'@vben-core/shadcn-ui/components/scrollbar'
;
import
{
import
{
Sheet
,
Sheet
,
SheetClose
,
SheetClose
,
...
@@ -15,9 +14,7 @@ import {
...
@@ -15,9 +14,7 @@ import {
SheetHeader
,
SheetHeader
,
SheetTitle
,
SheetTitle
,
SheetTrigger
,
SheetTrigger
,
}
from
'@vben-core/shadcn-ui/components/ui/sheet'
;
}
from
'../ui/sheet'
;
import
{
X
}
from
'lucide-vue-next'
;
interface
Props
{
interface
Props
{
cancelText
?:
string
;
cancelText
?:
string
;
...
...
packages/@core/ui-kit/shadcn-ui/src/components/tooltip/tooltip.vue
View file @
3f9ce63
...
@@ -8,7 +8,7 @@ import {
...
@@ -8,7 +8,7 @@ import {
TooltipContent
,
TooltipContent
,
TooltipProvider
,
TooltipProvider
,
TooltipTrigger
,
TooltipTrigger
,
}
from
'
@vben-core/shadcn-ui/components
/ui/tooltip'
;
}
from
'
..
/ui/tooltip'
;
interface
Props
{
interface
Props
{
contentClass
?:
any
;
contentClass
?:
any
;
...
...
packages/@core/ui-kit/shadcn-ui/src/components/ui/alert-dialog/AlertDialogAction.vue
View file @
3f9ce63
<
script
setup
lang=
"ts"
>
<
script
setup
lang=
"ts"
>
import
{
computed
,
type
HTMLAttributes
}
from
'vue'
;
import
{
computed
,
type
HTMLAttributes
}
from
'vue'
;
import
{
buttonVariants
}
from
'@vben-core/shadcn-ui/components/ui/button'
;
import
{
cn
}
from
'@vben-core/shared'
;
import
{
cn
}
from
'@vben-core/shared'
;
import
{
AlertDialogAction
,
type
AlertDialogActionProps
}
from
'radix-vue'
;
import
{
AlertDialogAction
,
type
AlertDialogActionProps
}
from
'radix-vue'
;
import
{
buttonVariants
}
from
'../button'
;
const
props
=
defineProps
<
const
props
=
defineProps
<
{
class
?:
HTMLAttributes
[
'class'
]
}
&
AlertDialogActionProps
{
class
?:
HTMLAttributes
[
'class'
]
}
&
AlertDialogActionProps
>
();
>
();
...
...
packages/@core/ui-kit/shadcn-ui/src/components/ui/alert-dialog/AlertDialogCancel.vue
View file @
3f9ce63
<
script
setup
lang=
"ts"
>
<
script
setup
lang=
"ts"
>
import
{
computed
,
type
HTMLAttributes
}
from
'vue'
;
import
{
computed
,
type
HTMLAttributes
}
from
'vue'
;
import
{
buttonVariants
}
from
'@vben-core/shadcn-ui/components/ui/button'
;
import
{
cn
}
from
'@vben-core/shared'
;
import
{
cn
}
from
'@vben-core/shared'
;
import
{
AlertDialogCancel
,
type
AlertDialogCancelProps
}
from
'radix-vue'
;
import
{
AlertDialogCancel
,
type
AlertDialogCancelProps
}
from
'radix-vue'
;
import
{
buttonVariants
}
from
'../button'
;
const
props
=
defineProps
<
const
props
=
defineProps
<
{
class
?:
HTMLAttributes
[
'class'
]
}
&
AlertDialogCancelProps
{
class
?:
HTMLAttributes
[
'class'
]
}
&
AlertDialogCancelProps
>
();
>
();
...
...
packages/@core/ui-kit/shadcn-ui/src/components/ui/toggle-group/ToggleGroup.vue
View file @
3f9ce63
<
script
setup
lang=
"ts"
>
<
script
setup
lang=
"ts"
>
import
type
{
toggleVariants
}
from
'@vben-core/shadcn-ui/components/ui/toggle'
;
import
type
{
VariantProps
}
from
'class-variance-authority'
;
import
type
{
VariantProps
}
from
'class-variance-authority'
;
import
type
{
toggleVariants
}
from
'../toggle'
;
import
{
computed
,
type
HTMLAttributes
,
provide
}
from
'vue'
;
import
{
computed
,
type
HTMLAttributes
,
provide
}
from
'vue'
;
import
{
cn
}
from
'@vben-core/shared'
;
import
{
cn
}
from
'@vben-core/shared'
;
...
...
packages/@core/ui-kit/shadcn-ui/src/components/ui/toggle-group/ToggleGroupItem.vue
View file @
3f9ce63
...
@@ -3,7 +3,6 @@ import type { VariantProps } from 'class-variance-authority';
...
@@ -3,7 +3,6 @@ import type { VariantProps } from 'class-variance-authority';
import
{
computed
,
type
HTMLAttributes
,
inject
}
from
'vue'
;
import
{
computed
,
type
HTMLAttributes
,
inject
}
from
'vue'
;
import
{
toggleVariants
}
from
'@vben-core/shadcn-ui/components/ui/toggle'
;
import
{
cn
}
from
'@vben-core/shared'
;
import
{
cn
}
from
'@vben-core/shared'
;
import
{
import
{
...
@@ -12,6 +11,8 @@ import {
...
@@ -12,6 +11,8 @@ import {
useForwardProps
,
useForwardProps
,
}
from
'radix-vue'
;
}
from
'radix-vue'
;
import
{
toggleVariants
}
from
'../toggle'
;
type
ToggleGroupVariants
=
VariantProps
<
typeof
toggleVariants
>
;
type
ToggleGroupVariants
=
VariantProps
<
typeof
toggleVariants
>
;
const
props
=
defineProps
<
const
props
=
defineProps
<
...
...
packages/effects/common-ui/src/components/ellipsis-text/__tests__/ellipsis-text.test.ts
0 → 100644
View file @
3f9ce63
import
{
mount
}
from
'@vue/test-utils'
;
import
{
describe
,
expect
,
it
}
from
'vitest'
;
import
{
EllipsisText
}
from
'..'
;
describe
(
'ellipsis-text.vue'
,
()
=>
{
it
(
'renders the correct content and truncates text'
,
async
()
=>
{
const
wrapper
=
mount
(
EllipsisText
,
{
props
:
{
line
:
1
,
title
:
'Test Title'
,
},
slots
:
{
default
:
'This is a very long text that should be truncated.'
,
},
});
expect
(
wrapper
.
text
()).
toContain
(
'This is a very long text'
);
// 检查 ellipsis 是否应用了正确的 class
const
ellipsis
=
wrapper
.
find
(
'.truncate'
);
expect
(
ellipsis
.
exists
()).
toBe
(
true
);
});
it
(
'expands text on click if expand is true'
,
async
()
=>
{
const
wrapper
=
mount
(
EllipsisText
,
{
props
:
{
expand
:
true
,
line
:
1
,
},
slots
:
{
default
:
'This is a very long text that should be truncated.'
,
},
});
const
ellipsis
=
wrapper
.
find
(
'.truncate'
);
await
ellipsis
.
trigger
(
'click'
);
expect
(
wrapper
.
emitted
(
'expandChange'
)).
toBeTruthy
();
});
});
packages/effects/common-ui/src/components/ellipsis-text/ellipsis-text.vue
View file @
3f9ce63
...
@@ -51,6 +51,7 @@ interface Props {
...
@@ -51,6 +51,7 @@ interface Props {
*/
*/
tooltipOverlayStyle
?:
CSSProperties
;
tooltipOverlayStyle
?:
CSSProperties
;
}
}
const
props
=
withDefaults
(
defineProps
<
Props
>
(),
{
const
props
=
withDefaults
(
defineProps
<
Props
>
(),
{
expand
:
false
,
expand
:
false
,
line
:
1
,
line
:
1
,
...
...
packages/effects/common-ui/src/components/page/__tests__/page.test.ts
0 → 100644
View file @
3f9ce63
import
{
mount
}
from
'@vue/test-utils'
;
import
{
describe
,
expect
,
it
}
from
'vitest'
;
import
{
Page
}
from
'..'
;
describe
(
'page.vue'
,
()
=>
{
it
(
'renders title when passed'
,
()
=>
{
const
wrapper
=
mount
(
Page
,
{
props
:
{
title
:
'Test Title'
,
},
});
expect
(
wrapper
.
text
()).
toContain
(
'Test Title'
);
});
it
(
'renders description when passed'
,
()
=>
{
const
wrapper
=
mount
(
Page
,
{
props
:
{
description
:
'Test Description'
,
},
});
expect
(
wrapper
.
text
()).
toContain
(
'Test Description'
);
});
it
(
'renders default slot content'
,
()
=>
{
const
wrapper
=
mount
(
Page
,
{
slots
:
{
default
:
'<p>Default Slot Content</p>'
,
},
});
expect
(
wrapper
.
html
()).
toContain
(
'<p>Default Slot Content</p>'
);
});
it
(
'renders footer slot when showFooter is true'
,
()
=>
{
const
wrapper
=
mount
(
Page
,
{
props
:
{
showFooter
:
true
,
},
slots
:
{
footer
:
'<p>Footer Slot Content</p>'
,
},
});
expect
(
wrapper
.
html
()).
toContain
(
'<p>Footer Slot Content</p>'
);
});
it
(
'applies the custom contentClass'
,
()
=>
{
const
wrapper
=
mount
(
Page
,
{
props
:
{
contentClass
:
'custom-class'
,
},
});
const
contentDiv
=
wrapper
.
find
(
'.m-4'
);
expect
(
contentDiv
.
classes
()).
toContain
(
'custom-class'
);
});
it
(
'does not render description slot if description prop is provided'
,
()
=>
{
const
wrapper
=
mount
(
Page
,
{
props
:
{
description
:
'Test Description'
,
},
slots
:
{
description
:
'<p>Description Slot Content</p>'
,
},
});
expect
(
wrapper
.
text
()).
toContain
(
'Test Description'
);
expect
(
wrapper
.
html
()).
not
.
toContain
(
'Description Slot Content'
);
});
});
packages/effects/common-ui/src/components/page/page-footer.vue
deleted
100644 → 0
View file @
517acad
<
script
setup
lang=
"ts"
>
defineOptions
({
name
:
'PageFooter'
,
});
</
script
>
<
template
>
<div
class=
"bg-card align-center absolute bottom-0 left-0 right-0 flex px-6 py-4"
>
<slot></slot>
</div>
</
template
>
packages/effects/common-ui/src/components/page/page-header.vue
deleted
100644 → 0
View file @
517acad
<
script
setup
lang=
"ts"
>
import
type
{
PageHeaderProps
}
from
'./page.ts'
;
defineOptions
({
name
:
'PageHeader'
,
});
const
props
=
defineProps
<
PageHeaderProps
>
();
</
script
>
<
template
>
<div
class=
"bg-card px-6 py-4"
>
<div
class=
"mb-2 flex justify-between text-xl font-bold leading-10"
>
{{
props
.
title
}}
</div>
<slot></slot>
</div>
</
template
>
packages/effects/common-ui/src/components/page/page.ts
deleted
100644 → 0
View file @
517acad
interface
PageHeaderProps
{
title
?:
string
;
description
?:
string
;
}
interface
Props
extends
PageHeaderProps
{
contentClass
?:
string
;
showFooter
?:
boolean
;
}
export
type
{
PageHeaderProps
,
Props
};
packages/effects/common-ui/src/components/page/page.vue
View file @
3f9ce63
<
script
setup
lang=
"ts"
>
<
script
setup
lang=
"ts"
>
import
type
{
Props
}
from
'./page'
;
interface
Props
{
title
?:
string
;
import
PageFooter
from
'./page-footer.vue'
;
description
?:
string
;
import
PageHeader
from
'./page-header.vue'
;
contentClass
?:
string
;
showFooter
?:
boolean
;
}
defineOptions
({
defineOptions
({
name
:
'Page'
,
name
:
'Page'
,
});
});
const
props
=
withDefaults
(
defineProps
<
Props
>
(),
{
const
props
=
withDefaults
(
defineProps
<
Props
>
(),
{
contentClass
:
''
,
description
:
''
,
description
:
''
,
showFooter
:
false
,
showFooter
:
false
,
title
:
''
,
title
:
''
,
...
@@ -17,22 +20,26 @@ const props = withDefaults(defineProps<Props>(), {
...
@@ -17,22 +20,26 @@ const props = withDefaults(defineProps<Props>(), {
<
template
>
<
template
>
<div
class=
"relative h-full"
>
<div
class=
"relative h-full"
>
<
PageHeader
<
div
v-if=
"description || $slots.description || title"
v-if=
"description || $slots.description || title"
:title=
"props.title
"
class=
"bg-card px-6 py-4
"
>
>
<template
#
default
>
<div
class=
"mb-2 flex justify-between text-xl font-bold leading-10"
>
<template
v-if=
"description"
>
{{
description
}}
</
template
>
{{
title
}}
<slot
v-else
name=
"description"
></slot>
</div>
</template>
<template
v-if=
"description"
>
{{
description
}}
</
template
>
</PageHeader>
<slot
v-else
name=
"description"
></slot>
</div>
<div
:class=
"contentClass"
class=
"m-4"
>
<div
:class=
"contentClass"
class=
"m-4"
>
<slot></slot>
<slot></slot>
</div>
</div>
<PageFooter
v-if=
"props.showFooter"
>
<
template
#
default
>
<div
<slot
name=
"footer"
></slot>
v-if=
"props.showFooter"
</
template
>
class=
"bg-card align-center absolute bottom-0 left-0 right-0 flex px-6 py-4"
</PageFooter>
>
<slot
name=
"footer"
></slot>
</div>
</div>
</div>
</template>
</template>
packages/effects/common-ui/src/ui/authentication/code-login.vue
View file @
3f9ce63
<
script
setup
lang=
"ts"
>
<
script
setup
lang=
"ts"
>
import
type
{
LoginCodeEmits
}
from
'./typ
ing
s'
;
import
type
{
LoginCodeEmits
}
from
'./typ
e
s'
;
import
{
computed
,
onBeforeUnmount
,
reactive
,
ref
}
from
'vue'
;
import
{
computed
,
onBeforeUnmount
,
reactive
,
ref
}
from
'vue'
;
import
{
useRouter
}
from
'vue-router'
;
import
{
useRouter
}
from
'vue-router'
;
...
...
packages/effects/common-ui/src/ui/authentication/index.ts
View file @
3f9ce63
...
@@ -8,4 +8,4 @@ export type {
...
@@ -8,4 +8,4 @@ export type {
AuthenticationProps
,
AuthenticationProps
,
LoginAndRegisterParams
,
LoginAndRegisterParams
,
LoginCodeParams
,
LoginCodeParams
,
}
from
'./typ
ing
s'
;
}
from
'./typ
e
s'
;
packages/effects/common-ui/src/ui/authentication/login-expired-modal.vue
View file @
3f9ce63
<
script
setup
lang=
"ts"
>
<
script
setup
lang=
"ts"
>
import
type
{
AuthenticationProps
,
LoginAndRegisterParams
}
from
'./typ
ing
s'
;
import
type
{
AuthenticationProps
,
LoginAndRegisterParams
}
from
'./typ
e
s'
;
import
{
useForwardPropsEmits
}
from
'@vben/hooks'
;
import
{
useForwardPropsEmits
}
from
'@vben/hooks'
;
import
{
import
{
...
...
packages/effects/common-ui/src/ui/authentication/login.vue
View file @
3f9ce63
<
script
setup
lang=
"ts"
>
<
script
setup
lang=
"ts"
>
import
type
{
AuthenticationProps
,
LoginEmits
}
from
'./typ
ing
s'
;
import
type
{
AuthenticationProps
,
LoginEmits
}
from
'./typ
e
s'
;
import
{
computed
,
reactive
}
from
'vue'
;
import
{
computed
,
reactive
}
from
'vue'
;
import
{
useRouter
}
from
'vue-router'
;
import
{
useRouter
}
from
'vue-router'
;
...
...
packages/effects/common-ui/src/ui/authentication/register.vue
View file @
3f9ce63
<
script
setup
lang=
"ts"
>
<
script
setup
lang=
"ts"
>
import
type
{
RegisterEmits
}
from
'./typ
ing
s'
;
import
type
{
RegisterEmits
}
from
'./typ
e
s'
;
import
{
computed
,
reactive
}
from
'vue'
;
import
{
computed
,
reactive
}
from
'vue'
;
import
{
useRouter
}
from
'vue-router'
;
import
{
useRouter
}
from
'vue-router'
;
...
...
packages/effects/common-ui/src/ui/authentication/typ
ing
s.ts
→
packages/effects/common-ui/src/ui/authentication/typ
e
s.ts
View file @
3f9ce63
File moved
packages/effects/layouts/src/widgets/lock-screen/lock-screen-modal.vue
View file @
3f9ce63
<
script
setup
lang=
"ts"
>
<
script
setup
lang=
"ts"
>
import
type
{
RegisterEmits
}
from
'./typings'
;
import
{
computed
,
reactive
}
from
'vue'
;
import
{
computed
,
reactive
}
from
'vue'
;
import
{
import
{
...
@@ -19,6 +17,14 @@ interface Props {
...
@@ -19,6 +17,14 @@ interface Props {
text
?:
string
;
text
?:
string
;
}
}
interface
LockAndRegisterParams
{
lockScreenPassword
:
string
;
}
interface
RegisterEmits
{
submit
:
[
LockAndRegisterParams
];
}
defineOptions
({
defineOptions
({
name
:
'LockScreenModal'
,
name
:
'LockScreenModal'
,
});
});
...
...
packages/effects/layouts/src/widgets/lock-screen/typings.ts
deleted
100644 → 0
View file @
517acad
interface
LockAndRegisterParams
{
lockScreenPassword
:
string
;
}
interface
RegisterEmits
{
submit
:
[
LockAndRegisterParams
];
}
export
type
{
LockAndRegisterParams
,
RegisterEmits
};
playground/src/views/demos/access/admin-visible.vue
View file @
3f9ce63
<
script
lang=
"ts"
setup
>
<
script
lang=
"ts"
setup
>
import
{
Page
}
from
'@vben/common-ui'
;
import
{
Fallback
}
from
'@vben/common-ui'
;
</
script
>
</
script
>
<
template
>
<
template
>
<Page
description=
"当前页面仅 Admin 账号可见"
title=
"页面访问测试"
/>
<Fallback
description=
"当前页面仅 Admin 账号可见"
status=
"coming-soon"
title=
"页面访问测试"
/>
</
template
>
</
template
>
playground/src/views/demos/access/super-visible.vue
View file @
3f9ce63
<
script
lang=
"ts"
setup
>
<
script
lang=
"ts"
setup
>
import
{
Page
}
from
'@vben/common-ui'
;
import
{
Fallback
}
from
'@vben/common-ui'
;
</
script
>
</
script
>
<
template
>
<
template
>
<Page
description=
"当前页面仅 Super 账号可见"
title=
"页面访问测试"
/>
<Fallback
description=
"当前页面仅 Super 账号可见"
status=
"coming-soon"
title=
"页面访问测试"
/>
</
template
>
</
template
>
playground/src/views/demos/access/user-visible.vue
View file @
3f9ce63
<
script
lang=
"ts"
setup
>
<
script
lang=
"ts"
setup
>
import
{
Page
}
from
'@vben/common-ui'
;
import
{
Fallback
}
from
'@vben/common-ui'
;
</
script
>
</
script
>
<
template
>
<
template
>
<Page
description=
"当前页面仅 User 账号可见"
title=
"页面访问测试"
/>
<Fallback
description=
"当前页面仅 User 账号可见"
status=
"coming-soon"
title=
"页面访问测试"
/>
</
template
>
</
template
>
pnpm-lock.yaml
View file @
3f9ce63
...
@@ -55,6 +55,12 @@ importers:
...
@@ -55,6 +55,12 @@ importers:
'
@vben/vsh'
:
'
@vben/vsh'
:
specifier
:
workspace:*
specifier
:
workspace:*
version
:
link:scripts/vsh
version
:
link:scripts/vsh
'
@vitejs/plugin-vue'
:
specifier
:
^5.1.2
version
:
5.1.2(vite@5.4.0(@types/node@22.2.0)(sass@1.77.8)(terser@5.31.3))(vue@3.4.37(typescript@5.5.4))
'
@vitejs/plugin-vue-jsx'
:
specifier
:
^4.0.0
version
:
4.0.0(vite@5.4.0(@types/node@22.2.0)(sass@1.77.8)(terser@5.31.3))(vue@3.4.37(typescript@5.5.4))
'
@vue/test-utils'
:
'
@vue/test-utils'
:
specifier
:
^2.4.6
specifier
:
^2.4.6
version
:
2.4.6
version
:
2.4.6
...
@@ -100,6 +106,9 @@ importers:
...
@@ -100,6 +106,9 @@ importers:
vitest
:
vitest
:
specifier
:
^2.0.5
specifier
:
^2.0.5
version
:
2.0.5(@types/node@22.2.0)(jsdom@24.1.1)(sass@1.77.8)(terser@5.31.3)
version
:
2.0.5(@types/node@22.2.0)(jsdom@24.1.1)(sass@1.77.8)(terser@5.31.3)
vue
:
specifier
:
^3.4.37
version
:
3.4.37(typescript@5.5.4)
vue-tsc
:
vue-tsc
:
specifier
:
^2.0.29
specifier
:
^2.0.29
version
:
2.0.29(typescript@5.5.4)
version
:
2.0.29(typescript@5.5.4)
...
@@ -3344,6 +3353,7 @@ packages:
...
@@ -3344,6 +3353,7 @@ packages:
'
@ls-lint/ls-lint@2.2.3'
:
'
@ls-lint/ls-lint@2.2.3'
:
resolution
:
{
integrity
:
sha512-ekM12jNm/7O2I/hsRv9HvYkRdfrHpiV1epVuI2NP+eTIcEgdIdKkKCs9KgQydu/8R5YXTov9aHdOgplmCHLupw==
}
resolution
:
{
integrity
:
sha512-ekM12jNm/7O2I/hsRv9HvYkRdfrHpiV1epVuI2NP+eTIcEgdIdKkKCs9KgQydu/8R5YXTov9aHdOgplmCHLupw==
}
cpu
:
[
x64
,
arm64
,
s390x
]
os
:
[
darwin
,
linux
,
win32
]
os
:
[
darwin
,
linux
,
win32
]
hasBin
:
true
hasBin
:
true
...
...
vitest.config.ts
View file @
3f9ce63
import
Vue
from
'@vitejs/plugin-vue'
;
import
VueJsx
from
'@vitejs/plugin-vue-jsx'
;
import
{
defineConfig
}
from
'vitest/config'
;
import
{
defineConfig
}
from
'vitest/config'
;
export
default
defineConfig
({
export
default
defineConfig
({
plugins
:
[
Vue
(),
VueJsx
()],
test
:
{
test
:
{
environment
:
'jsdom'
,
environment
:
'jsdom'
,
},
},
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment