dream-weave
26706d65c9
feat: enable typecheck across all workspace packages ( #8482 )
* build(lint): bump oxc toolchain to the locked pairing
- oxlint ^1.90.0 + oxlint-tsgolint ^7.0.2005 + oxfmt ^0.75.0 锁定配对:
工具链版本间存在规则集兼容矩阵,浮动配对会错位;根 devDependencies
补充 eslint-plugin-oxlint 桥接依赖,catalog 与 lockfile 同步。
Co-Authored-By: Claude Code <noreply@anthropic.com>
* feat(@vben/oxlint-config ): migrate to native extends with type-aware rules
- 配置迁移到 oxlint 原生 extends + ignorePatterns,根 ignore 列表收敛为
configs/ignores.ts 单源(oxlint/eslint 双消费不再手工同步);删除已按
category 覆盖的逐条规则;oxfmt-config 去掉包装层、采用 0.75 的 markdown
换行;tsgolint 类型感知规则三批全开,仅 2 条显式 off 附原因
(no-unsafe-enum-assignment=cz-git ESM 缺陷、no-unsafe-type-assertion=
359 处命中)。
Co-Authored-By: Claude Code <noreply@anthropic.com>
* refactor(@vben/eslint-config ): restore the eslint-plugin-oxlint bridge
- 恢复官方 eslint-plugin-oxlint 桥接,替代 69 条手工维护的关停规则 Set;
桥接关停范围收敛到 oxlint 实际检查的文件;组装顺序改为 builtin →
oxlint 桥 → customConfig → 用户配置,customConfig 与用户配置保持
最终权威(与迁移前的覆盖契约一致)。
Co-Authored-By: Claude Code <noreply@anthropic.com>
* build(project): enable typecheck across all workspace packages
- 45 个包补 typecheck 脚本(vue-tsc --noEmit,不带 CLI 标志,tsconfig
是 skipLibCheck 的唯一来源;packages/types 显式 skipLibCheck: false
以检查自身与工作区依赖的已发布声明,并把 global.d.ts 纳入检查);
turbo typecheck 任务依赖 ^typecheck 与 ^stub——工具包类型解析读
依赖的 dist 产物,无 stub 脚本的依赖被 turbo 自动跳过,无需逐包
覆写;tsconfig 键序对齐 jsonc/sort-keys;lockfile 同步。
Co-Authored-By: Claude Code <noreply@anthropic.com>
* chore(project): split lint hooks and update toolchain scripts
- pre-commit 收敛为 oxlint/oxfmt/eslint 快检查,全量 typecheck 移交新增
pre-push 钩子;vsh lint 与 turbo-run 适配 oxc 调用;同步 .vscode 配置
与 lint 工具链文档。
Co-Authored-By: Claude Code <noreply@anthropic.com>
* fix(@vben-core/typings ): latent d.ts errors and the RouteMeta augmentation
- 开启声明检查后暴露:vue-router.d.ts 裸用非 ambient 的 Recordable
(helper.d.ts 模块化后不再全局可见)改为显式导入;EmitType 引用
未定义的 Name 改为 string,并对这个零消费者的宽泛别名标
@deprecated;增强接口底名用 VbenRouteMeta 避免打包自引用,导入
本包即激活增强,删除悬空的根级再导出文件;@vben/types/global.d.ts
删除与这里逐字重复的 declare module 块,增强只保留单源。
Co-Authored-By: Claude Code <noreply@anthropic.com>
* refactor(project): keep public signatures exact under type-aware rules
- 类型感知规则开启后被统一收窄/放宽的公共 API 恢复发布的泛型形态
(bindMethods/getNestedValue/use-sortable/use-priority-value 等),
保留跨包显式类型实参契约;form-ui 依赖回调语义还原(truthy 布尔化、
name 强转、trigger 顺序)并放宽条件类型;tabs-ui 将宽泛 EmitType
残留收窄为具体事件签名;typings、utils/helpers、hooks/access/
layouts/preferences 等的类型标注与泛型修复。
Co-Authored-By: Claude Code <noreply@anthropic.com>
* fix(project): resolve latent type errors surfaced by the full typecheck
- stores tabbar 不再对路由 meta 做冗余强转(RouteMeta 增强后类型
已收敛);common-ui icon-picker 的 inputComponent 显式并列为
Component | VNode(adapter 传组件定义、演示页传 h() 节点);
vite-config 移除 vite 实例的 unknown 桥(vite 8 已解析为单一
实例类型);tabs-ui use-tabs-drag 事件签名收窄残留清理;vsh lint
的死索引守卫改为无分支过滤。
Co-Authored-By: Claude Code <noreply@anthropic.com>
* fix(project): harden runtime paths surfaced by type-aware lint
- archiver 系列收敛为一个完整实现:outDir 依 vite root 解析、zip 失败
经 closeBundle 拒绝回传、输出流补 error 监听、watch 模式降级日志不再
杀 watcher;request 上传保留 axios 头抑制哨兵(AxiosHeaders 实例浅
拷贝自身属性,普通对象保持原样)、SSE 与响应拦截器默认值还原;
backend-mock 分页与同名参数规范化(firstQueryString/firstQueryInt);
echarts 30ms 窗口内卸载按 Nullable 语义 resolve(null);stores tabbar
刷新 fire-and-forget;各 app 入口/路由守卫与 playground 日期区间
守卫的浮动 Promise 处理。行为修复与对应回归测试同提交。
Co-Authored-By: Claude Code <noreply@anthropic.com>
* test(project): adapt test suites to strict typecheck
- shared 脚本与 css 变量测试、utils 路由 fixtures 提供稳定句柄
(noUncheckedIndexedAccess)、layout-ui collapse mock 对齐 emit
载荷、shadcn-ui popconfirm 按钮提取守卫 helper、form-ui 测试
改为直接依赖 element-plus(替代 .pnpm 字面路径)、vite-config
四处 hook 调用提取 callGenerateBundle 统一适配 rolldown 签名。
Co-Authored-By: Claude Code <noreply@anthropic.com>
* test(project): adapt tests to the toolchain and record changesets
- popup-ui drawer/modal 断言前先 await close;preferences 的两个存储
mock 派生自单一工厂;核心包测试适配类型感知规则;删除 image preview
adapter 遗留的无操作改名;记录 oxc 迁移 changeset。
Co-Authored-By: Claude Code <noreply@anthropic.com>
* chore(project): record the workspace typecheck changeset
Co-Authored-By: Claude Code <noreply@anthropic.com>
* fix(@vben/types ): activate the RouteMeta augmentation for the ./global entrypoint
A program that only imports the `@vben/types/global` subpath never loads
src/index.ts, so it used to lose the RouteMeta augmentation this entry
historically provided. A side-effect import of @vben-core/typings keeps the
single-source augmentation active for that entrypoint as well.
Co-Authored-By: Claude Code <noreply@anthropic.com>
* test(@vben/hooks ): drop redundant any-casts in use-tabs tests
Upstream #8488/#8490 introduced getTabDisableState tests that assert
store.getTabByKey(...) results with `as any`. getTabByKey now returns
TabDefinition, which is structurally identical to the TabIdentity
parameter type, so the casts are dead weight and trip the type-aware
no-unnecessary-type-assertion rule.
Co-Authored-By: Claude Code <noreply@anthropic.com>
* fix(@vben/vite-config ): re-resolve vite to the catalog 8.3.0 instance
The lockfile still pinned internal/vite-config to vite@8.2.2 (with stale
@types/node@26.2.0 / yaml@2.9.0 peers) while the catalog declares ^8.3.0
and every other importer resolved to 8.3.0. vite-plugin-lazy-import's
d.ts imports 'vite' through the pnpm hidden hoist (it declares no vite
peer), so its Plugin<any> came from the 8.3.0 instance while
vite-config's own Plugin came from 8.2.2 — vue-tsc then fails with
TS2321 "Excessive stack depth comparing types 'Plugin<any>' and
'Plugin<any>'" once this package gains a typecheck script.
Rewire the importer to the shared 8.3.0 instance (specifier stays
'catalog:') and let pnpm prune the now-orphaned 8.2.2 peer entries.
Co-Authored-By: Claude Code <noreply@anthropic.com>
* chore(@vben/tsconfig ): align base moduleResolution with bundler
base.json 仍写着 node(node10),但 web/web-app/node/library 四个 preset
早已各自覆盖为 bundler,仓库内 48 个 tsconfig 无一直接 extends base,
该值仅对直接 extends base 的外部消费方生效:
- module: ESNext 的官方推荐搭配是 bundler,node 组合是历史遗留错配
- node10 忽略 package.json exports,与 Vite 实际解析不一致
- node10 已废弃,且 tsgo 原生编译器不支持,直接报错
Co-Authored-By: Claude Code <noreply@anthropic.com>
---------
Co-authored-by: Claude Code <noreply@anthropic.com>
Co-authored-by: Jin Mao <50581550+jinmao88@users.noreply.github.com>
3 weeks ago
dream-weave
0b863783ef
refactor: migrate lint toolchain to oxc locked pairing ( #8481 )
* build(lint): bump oxc toolchain to the locked pairing
- oxlint ^1.90.0 + oxlint-tsgolint ^7.0.2005 + oxfmt ^0.75.0 锁定配对:
工具链版本间存在规则集兼容矩阵,浮动配对会错位;根 devDependencies
补充 eslint-plugin-oxlint 桥接依赖,catalog 与 lockfile 同步。
Co-Authored-By: Claude Code <noreply@anthropic.com>
* feat(@vben/oxlint-config ): migrate to native extends with type-aware rules
- 配置迁移到 oxlint 原生 extends + ignorePatterns,根 ignore 列表收敛为
configs/ignores.ts 单源(oxlint/eslint 双消费不再手工同步);删除已按
category 覆盖的逐条规则;oxfmt-config 去掉包装层、采用 0.75 的 markdown
换行;tsgolint 类型感知规则三批全开,仅 2 条显式 off 附原因
(no-unsafe-enum-assignment=cz-git ESM 缺陷、no-unsafe-type-assertion=
359 处命中)。
Co-Authored-By: Claude Code <noreply@anthropic.com>
* refactor(@vben/eslint-config ): restore the eslint-plugin-oxlint bridge
- 恢复官方 eslint-plugin-oxlint 桥接,替代 69 条手工维护的关停规则 Set;
桥接关停范围收敛到 oxlint 实际检查的文件;组装顺序改为 builtin →
oxlint 桥 → customConfig → 用户配置,customConfig 与用户配置保持
最终权威(与迁移前的覆盖契约一致)。
Co-Authored-By: Claude Code <noreply@anthropic.com>
* chore(project): split lint hooks and update toolchain scripts
- pre-commit 收敛为 oxlint/oxfmt/eslint 快检查,全量 typecheck 移交新增
pre-push 钩子;vsh lint 与 turbo-run 适配 oxc 调用;同步 .vscode 配置
与 lint 工具链文档。
Co-Authored-By: Claude Code <noreply@anthropic.com>
* refactor(project): keep public signatures exact under type-aware rules
- 类型感知规则开启后被统一收窄/放宽的公共 API 恢复发布的泛型形态
(bindMethods/getNestedValue/use-sortable/use-priority-value 等),
保留跨包显式类型实参契约;form-ui 依赖回调语义还原(truthy 布尔化、
name 强转、trigger 顺序)并放宽条件类型;tabs-ui 将宽泛 EmitType
残留收窄为具体事件签名;typings、utils/helpers、hooks/access/
layouts/preferences 等的类型标注与泛型修复。
Co-Authored-By: Claude Code <noreply@anthropic.com>
* fix(project): harden runtime paths surfaced by type-aware lint
- archiver 系列收敛为一个完整实现:outDir 依 vite root 解析、zip 失败
经 closeBundle 拒绝回传、输出流补 error 监听、watch 模式降级日志不再
杀 watcher;request 上传保留 axios 头抑制哨兵(AxiosHeaders 实例浅
拷贝自身属性,普通对象保持原样)、SSE 与响应拦截器默认值还原;
backend-mock 分页与同名参数规范化(firstQueryString/firstQueryInt);
echarts 30ms 窗口内卸载按 Nullable 语义 resolve(null);stores tabbar
刷新 fire-and-forget;各 app 入口/路由守卫与 playground 日期区间
守卫的浮动 Promise 处理。行为修复与对应回归测试同提交。
Co-Authored-By: Claude Code <noreply@anthropic.com>
* test(project): adapt tests to the toolchain and record changesets
- popup-ui drawer/modal 断言前先 await close;preferences 的两个存储
mock 派生自单一工厂;核心包测试适配类型感知规则;删除 image preview
adapter 遗留的无操作改名;记录 oxc 迁移 changeset。
Co-Authored-By: Claude Code <noreply@anthropic.com>
* test(@vben/hooks ): drop redundant any-casts in use-tabs tests
Upstream #8488/#8490 introduced getTabDisableState tests that assert
store.getTabByKey(...) results with `as any`. getTabByKey now returns
TabDefinition, which is structurally identical to the TabIdentity
parameter type, so the casts are dead weight and trip the type-aware
no-unnecessary-type-assertion rule.
Co-Authored-By: Claude Code <noreply@anthropic.com>
---------
Co-authored-by: Claude Code <noreply@anthropic.com>
Co-authored-by: Jin Mao <50581550+jinmao88@users.noreply.github.com>
3 weeks ago
Limbo
07def746ab
fix: declare model defaults to fix formatting checks ( #8407 )
2 months ago
xingyu
04fbb7a556
chore: 升级 shadcn-vue 组件到v4最新版 ( #7972 )
* fix: useStore is deprecated
* chore: update deps
* feat: 升级shadcn-ui v4
* fix: workbench style
* feat: 升级shadcn-ui v4 step2
* feat: 升级shadcn-ui v4 step3
* chore: 升级shadcn v4
* fix: pagination
* fix: dark style
* fix: doc import
* feat: 增加详情组件,参考 antdv-next
* docs: descriptions docs
* docs: Browser Support
* feat: add table action
* feat: icon use vbenIcon
* fix: type error
* fix: dropdown popConfirm
* feat: 使用默认的文字交互
* feat: 优化渲染性能
6 months ago
xingyu
0c300d040c
fix: tailwindcss config ( #7693 )
* chore: update deps
* fix: tailwindcss config
* fix: lint
* fix: lint
* chore: update deps
8 months ago
xingyu
37d72c1628
fix: oxlint config ( #7661 )
* chore: engines node
* chore: update deps
* fix: oxlint
* chore: fix lint issues
8 months ago
xingyu4j
ab3e6bb37c
chore: fix lint issues
8 months ago
xingyu4j
8fd6bf47b1
revert: restore px-based calc utilities
8 months ago
xingyu4j
f25f3a34d0
refactor: replace px calc spacing utilities
8 months ago
xingyu4j
2823848fae
refactor: migrate spacing utilities to tailwind v4 syntax
8 months ago
xingyu4j
fa190e0975
chore: checkpoint tailwind spacing updates
8 months ago
xingyu4j
600fc71aed
fix: eslint
9 months ago
xingyu4j
443e4b04cd
chore: update vite 8
9 months ago
xingyu
a4736a49f8
feat: migrate to Tailwind CSS v4 ( #7614 )
* chore: update deps
* feat: use jsonc/x language
* chore: update eslint 10.0
* fix: no-useless-assignment
* feat: add CLAUDE.md
* chore: ignore
* feat: claude
* fix: lint
* chore: suppot eslint v10
* fix: lint
* fix: lint
* fix: type check
* fix: unit test
* fix: Suggested fix
* fix: unit test
* chore: update stylelint v17
* chore: update all major deps
* fix: echarts console warn
* chore: update vitest v4
* feat: add skills ignores
* chore: update deps
* chore: update deps
* fix: cspell
* chore: update deps
* chore: update tailwindcss v4
* chore: remove postcss config
* fix: no use catalog
* chore: tailwind v4 config
* fix: tailwindcss v4 sort
* feat: use eslint-plugin-better-tailwindcss
* fix: Interference between enforce-consistent-line-wrapping, jsx-curly-brace-presence and Prettier
* fix: Interference between enforce-consistent-line-wrapping, jsx-curly-brace-presence and Prettier
* fix(lint): resolve prettier and better-tailwindcss formatting conflicts
* fix(tailwind): update theme references and lint sources
* style(format): normalize apps docs and playground vue files
* style(format): normalize core ui-kit components
* style(format): normalize effects ui and layout components
9 months ago
zouawen
893f74dc3e
fix: 优化横向布局时菜单激活或聚焦时背景色,标签工具栏新增刷新按钮,其他样式优化
10 months ago
xingyu
7680b33b99
fix : #7140 ( #7153 )
* chore: add yaml eslint validate
* chore: update deps
* fix: unused ts lint
* fix: 弹窗只能点击一次 #7140
* chore: update actions/checkout v6
* chore: update node version v22.22.0
10 months ago
xingyu4j
af3fe53ec8
fix: type error
11 months ago
米山
cd7c11c7d0
fix: run 'pnpm format' update various components and improve layout structure
- Updated demo-preview and preview-group components for better error handling and layout.
- Enhanced drawer and modal components for improved auto-height functionality.
- Refactored layout components including header, footer, sidebar, and tabbar for better responsiveness and usability.
- Adjusted tooltip and help tooltip components for better user guidance.
- Fixed issues in various UI components to ensure consistent styling and functionality across the application.
1 year ago
xingyu4j
bed52983a0
fix: lint
1 year ago
xingyu
20410aeb03
fix: updating Tailwind CSS variables from --radix-* to --reka-* ( #6890 )
* fix: radix => reka
* chore: add reka cspell
* fix: Composition url
1 year ago
ming4762
3d9dba965f
perf: perf the control logic of Tab ( #6220 )
* perf: perf the control logic of Tab
* 每个标签页Tab使用唯一的key来控制关闭打开等逻辑
* 统一函数获取tab的key
* 通过3种方式设置tab key:1、使用router query参数pageKey 2、使用路由meta参数fullPathKey设置使用fullPath或path作为key
* 单个路由可以打开多个标签页
* 如果设置fullPathKey为false,则query变更不会打开新的标签(这很实用)
* perf: perf the control logic of Tab
* perf: perf the control logic of Tab
* 测试用例适配
* perf: perf the control logic of Tab
* 解决AI提示的警告
2 years ago
Vben
17a18fc9ba
chore: close eslint object sorting ( #6101 )
2 years ago
Netfan
b8bffd884c
feat: allow close tab when mouse middle button click ( #5347 )
* 偏好设置增加鼠标中键关闭标签页的设置
2 years ago
Netfan
e10cbe23b9
chore: update deps
2 years ago
Vben
081d2aed23
perf: format code with better style ( #5283 )
2 years ago
Netfan
7fbf7b189a
feat: tabbar support mouse wheel vertical ( #5129 )
* feat: tabbar support mouse wheel
* docs: add tabbar wheelable tips
* chore: resolve vitest test
2 years ago
Vben
5e44aa9283
fix: drawer header is missing ( #4846 )
2 years ago
vince
c491b9e021
fix: maximum call stack size ( #4674 )
* fix: maximum call stack size
2 years ago
Netfan
c432e0ac33
feat: limit the drag range of tabs, fixed #4640 ( #4659 )
2 years ago
Netfan
ba539f6793
chore: correct spelling for 'dragable' ( #4600 )
2 years ago
Vben
60c615ce8a
refactor: adjust layout refresh button and watermark; allow static i18n on language switch ( #4579 )
* refactor: adjust layout refresh button and watermark; allow static i18n on language switch
* chore: typo
2 years ago
Li Kui
61faa1895a
fix: vue received a Component that was made a reactive object ( #4367 )
2 years ago
Li Kui
8f6bf6add3
perf: update menu icons ( #4357 )
2 years ago
invalid w
95a4a85c3b
chore( @vben-core/tabs-ui ): cancel drag and drop function on mobile devices ( #4303 )
resolve #4301
2 years ago
Vben
2b0aedbaba
style: optimizing style issues ( #4289 )
2 years ago
Vben
b3e3e05990
perf: axios default error interceptor allows you to customize error handling ( #4283 )
2 years ago
Vben
dc5cfab319
fix: tabbar does not meet expectations in a mixed layout ( #4242 )
2 years ago
afe1
c3631ef555
chore: error note ( #4209 )
Co-authored-by: afe1 <yunfei.zhu@nwowtec.com>
2 years ago
Vben
1db87ff7ce
fix: fix keepAlive parameter error ( #4194 )
* fix: mock server deployment error
* chore: typo
2 years ago
Vben
3c17f4e9f8
perf: all icons used in the core are offline ( #4173 )
* perf: all icons used in the core are offline
* chore: update default icon
* chore: update shadow
2 years ago
Vben
0faf7810b6
perf: optimization of tabbar display ( #4169 )
* perf: optimization of tabbar display
* fix: ci error
* chore: typo
* chore: typo
2 years ago
Vben
d71a20ad0a
perf: improve tabs-view scrolling ( #4164 )
2 years ago
P2K0
eb280ffeb7
feat: add left and right scroll buttons to Tabs bar ( #4161 ) ( #4162 )
2 years ago
Vben
8f40d5107c
feat: support custom background colors for sidebar and header ( #4151 )
* feat: support custom background colors for sidebar and header
* fix: type error
2 years ago
Li Kui
963e79063f
fix: some icons behave inconsistently on menu and tab ( #4144 )
2 years ago
Vben
4f5783d00b
perf: enable strict ts type checking ( #4045 )
2 years ago
vben
9a6e29c401
fix: element theme adjustment
2 years ago
vben
fdee2d2239
feat: add naive app
2 years ago
vben
cf0ec053e4
refactor: Integrate the @vben-core/shared package
2 years ago
vince
66fd052709
fix: fix known issues. fixed #59,fixed #61 , fixed #67 , fixed #68 [deploy]
2 years ago