Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
67 commits
Select commit Hold shift + click to select a range
67229be
feat(poc): 初始化 Vue3 + TS + Vite 依赖验证项目
lidaixingchen May 31, 2026
2dc2a56
chore: 删除过时的cursor规则文件
lidaixingchen May 31, 2026
9b55bf6
refactor(ui): 将组件库从React迁移至Vue 3
lidaixingchen May 31, 2026
b628fad
feat(ui): add 批量新组件并优化 Button 组件
lidaixingchen May 31, 2026
af84479
feat(ui): add大量新组件并完善样式配置
lidaixingchen May 31, 2026
dfd3861
feat: 新增大量 Brutalist 风格组件并完善现有功能
lidaixingchen May 31, 2026
f6dd248
feat(ui): 完成 Brutalism 风格 完整的单元测试覆盖
lidaixingchen May 31, 2026
29550d6
ci(github workflows): 移除pnpm版本固定配置
lidaixingchen May 31, 2026
d663fd4
chore: 移除未使用的@popperjs/core依赖并修正其dev标记
lidaixingchen May 31, 2026
9ee1cc1
chore: 迁移文档站框架从 Next.js 到 VitePress,更新项目信息
lidaixingchen May 31, 2026
e1ffff3
chore(docs): clean up vitepress dev cache files
lidaixingchen Jun 1, 2026
e2571a6
docs: 更新文档与配置,同步项目变更
lidaixingchen Jun 1, 2026
8fe8e39
refactor: 全面迁移到 Vue 3 技术栈,替换 React 依赖与项目配置
lidaixingchen Jun 1, 2026
40c4145
refactor(ui): 为所有UI组件添加默认class属性,优化样式扩展性
lidaixingchen Jun 1, 2026
ac88834
feat(docs): 更新 CLI 和安装文档,添加主题功能说明
lidaixingchen Jun 1, 2026
572abda
chore(docs): 更新文档和示例,修正信息和链接
lidaixingchen Jun 1, 2026
e9e8623
feat(ui): 更新组件以支持更多默认属性
lidaixingchen Jun 1, 2026
ecea153
chore: 删除多个演示组件和配置文件
lidaixingchen Jun 1, 2026
d8299eb
docs: 更新文档,修正 CLI 工具名称
lidaixingchen Jun 1, 2026
9f96e45
ci: 添加文档部署工作流
lidaixingchen Jun 1, 2026
f42bbc2
style(InstallationTabs): 更新代码块样式以改善可读性
lidaixingchen Jun 1, 2026
59d172a
feat(docs): 更新组件文档示例
lidaixingchen Jun 1, 2026
2f84969
feat(ui): 更新组件样式和版本号
lidaixingchen Jun 1, 2026
7db554d
fix(docs): 用 ClientOnly 包裹 CalendarDemo 修复 SSR 渲染问题
lidaixingchen Jun 1, 2026
015dd87
chore(docs): 删除 Vue 相关缓存文件
lidaixingchen Jun 1, 2026
16caaa4
chore(.gitignore): 更新 VitePress 缓存路径规则
lidaixingchen Jun 1, 2026
c0b4d7b
fix: 修复文档站点四个 UI 问题
lidaixingchen Jun 1, 2026
df7fe63
feat(docs): 按 brutxui.site 标准重构文档站点样式
lidaixingchen Jun 1, 2026
a85c0d7
feat(theme): 更新组件样式和主题设置
lidaixingchen Jun 1, 2026
2d9a385
feat(ui): 更新组件样式和功能
lidaixingchen Jun 1, 2026
f5f4dbe
feat(toast): 添加 Toast 组件及其变体
lidaixingchen Jun 1, 2026
9ec025c
feat(registry): 更新多个组件的依赖和路径
lidaixingchen Jun 1, 2026
1dab905
feat(docs): 更新 InstallationTabs 和 Logo 组件,调整样式
lidaixingchen Jun 1, 2026
ca5c1a1
feat: 添加四个新的neo-brutalism风格组件
lidaixingchen Jun 1, 2026
13f9b76
feat: add 7 new components and related docs, styles
lidaixingchen Jun 1, 2026
2d3683b
refactor: 完成项目整体样式规范与安全优化
lidaixingchen Jun 1, 2026
bc9c4af
chore: 批量更新组件库与CLI的功能与修复
lidaixingchen Jun 1, 2026
e9b7569
refactor: 整理代码并修复多处安全与功能问题
lidaixingchen Jun 1, 2026
abcfd9d
docs(website): 调整首页文案结构,拆分tagline和描述
lidaixingchen Jun 1, 2026
6642dd3
docs: 更新AI集成文档,替换旧的AI配置文件说明
lidaixingchen Jun 1, 2026
a255c1c
docs( docs/index.md ): 移除冗余的空description字段
lidaixingchen Jun 1, 2026
d06c59d
feat: add 4 new components and docs, add embla-carousel-vue dependency
lidaixingchen Jun 1, 2026
25a69f0
feat: 新增kbd、counter、stepper组件,修复carousel autoplay初始问题
lidaixingchen Jun 1, 2026
3245413
refactor(ui): 重构组件样式系统,新增多套变体组件与测试用例
lidaixingchen Jun 1, 2026
f7be55b
refactor(ui): 优化跑马灯和代码块组件样式配置
lidaixingchen Jun 1, 2026
274df0e
release(ui): bump version to 0.2.1
lidaixingchen Jun 1, 2026
0c029a2
chore: 重命名项目包名并更新相关引用
lidaixingchen Jun 1, 2026
28088f4
chore(cli): 更新版本号至0.1.1并优化命令描述
lidaixingchen Jun 1, 2026
ee1adea
docs: 补全所有组件文档的中文标题与描述
lidaixingchen Jun 1, 2026
81206b7
feat: 新增多语言支持功能,重构组件使用国际化文本
lidaixingchen Jun 1, 2026
d61236d
release: v0.1.2 cli & v0.3.0 ui, add full i18n support
lidaixingchen Jun 1, 2026
69502ba
chore(docs,ui): 更新文档代码块样式与发布v0.3.1版本
lidaixingchen Jun 1, 2026
3706c5a
feat: 新增一批粗野主义风格组件与工具函数
lidaixingchen Jun 2, 2026
ae5600f
release: bump versions of cli and ui packages
lidaixingchen Jun 2, 2026
a88d0f6
docs: add 6 new component demos and documentation
lidaixingchen Jun 2, 2026
9dc5882
style(glitch-text): 添加基础类名glitch-text
lidaixingchen Jun 2, 2026
4c3e587
style( docs主题 ): 修复文档页按钮点击后焦点环不显示的问题
lidaixingchen Jun 2, 2026
e0d7918
release(ui): bump version to 0.4.1
lidaixingchen Jun 2, 2026
90c332e
feat: 新增10个新组件并完善文档
lidaixingchen Jun 2, 2026
905b86e
feat: 新增8个新组件并完善文档支持
lidaixingchen Jun 2, 2026
b2978d4
feat: 新增7个区块组件并完善相关配置
lidaixingchen Jun 2, 2026
1f32d3a
release: bump version to 0.3.0(cli) and 0.5.0(ui)
lidaixingchen Jun 2, 2026
faaa81c
refactor(ui): 统一组件样式规范,补充多语言与插槽支持
lidaixingchen Jun 2, 2026
3b950b6
chore(ui): bump version to 0.5.1
lidaixingchen Jun 2, 2026
e44b433
docs: 添加所有组件的演示页面并更新文档预览
lidaixingchen Jun 2, 2026
b80f5db
release: 发布v0.3.1 cli和v0.5.2 ui版本,完成多项功能优化与修复
lidaixingchen Jun 3, 2026
4fcd40b
fix(form): 修复表单上下文error的类型定义不匹配问题
lidaixingchen Jun 3, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
31 changes: 0 additions & 31 deletions .cursor/rules/brutxui.mdc

This file was deleted.

22 changes: 0 additions & 22 deletions .cursorrules

This file was deleted.

5 changes: 0 additions & 5 deletions .github/FUNDING.yml

This file was deleted.

43 changes: 23 additions & 20 deletions .github/copilot-instructions.md
Original file line number Diff line number Diff line change
@@ -1,33 +1,36 @@
# GitHub Copilot System Rules for BrutxUI
# GitHub Copilot BrutxUI 系统规则

You are an expert React and Tailwind CSS developer tasked with generating high-fidelity components, pricing blocks, and utility CLI commands for the BrutxUI codebase. Follow these guidelines closely:
你是一名精通 Vue 3 和 Tailwind CSS 的开发者,负责为 BrutxUI 代码库生成高保真组件、定价块和实用 CLI 命令。请严格遵循以下准则:

---

## 🎨 Visual System Constraints
## 视觉系统约束

Every element in BrutxUI is modeled on a high-contrast Neo-Brutalist design language:
- **Thick Outlines:** Outlines must use `border-3 border-black` (or `dark:border-white`). Never drop down to thin slate lines.
- **Flat Shadow Offsets:** Saturated, unblurred flat shadows only:
- `shadow-brutal` (4px offset)
- `shadow-brutal-sm` (2px offset)
- `shadow-brutal-lg` (6px offset)
- **Sharp Corners:** Default to sharp unrounded edges via `rounded-none`, or global parameter classes like `rounded-brutal`.
- **Physical Press Feedback:** Buttons translate down and right when active: `active:translate-x-[2px] active:translate-y-[2px] active:shadow-[2px_2px_0px_0px_#000] transition-all`.
- **Contrast Accents:** Use saturated high-contrast colors: Coral `#FF6B6B`, Mint Teal `#4ECDC4`, Saturated Yellow `#FFE66D`.
BrutxUI 中的每个元素都基于高对比度 Neo-Brutalist 设计语言:
- **粗边框:** 边框必须使用 `border-3 border-brutal`(使用 CSS 变量 `--brutal-border-color`,暗色模式自动切换)。切勿降级为细浅色线条。
- **扁平阴影偏移:** 仅使用饱和、无模糊的扁平阴影:
- `shadow-brutal`(4px 偏移)
- `shadow-brutal-sm`(2px 偏移)
- `shadow-brutal-lg`(6px 偏移)
- `shadow-brutal-xl`(8px 偏移)
- **锐利圆角:** 默认通过 `rounded-none` 实现锐利无圆角边缘,或使用全局参数类如 `rounded-brutal`。
- **物理按压反馈:** 按钮在激活时向下位移:`active:translate-y-[var(--brutal-pressed-offset,2px)] active:shadow-none transition-all`。
- **对比强调色:** 通过 CSS 变量使用饱和高对比度颜色:珊瑚红 `#FF6B6B`(`bg-brutal-primary`)、薄荷青 `#4ECDC4`(`bg-brutal-secondary`)、饱和黄 `#FFE66D`(`bg-brutal-accent`)。

---

## 🧩 Component Blueprints & Architecture
## 组件蓝图与架构

1. **Class Variance Authority:** Define all variants via CVA.
2. **Merge Helper:** Merge external classes via `cn(...)` from `@/lib/utils` or equivalent nesting depths.
3. **Accessibility:** Keep Radix modal traps, focus loops, ARIA tags, and keyboard outline rings.
4. **Display Name:** Declare displays on all exports (e.g. `Button.displayName = 'Button'`).
1. **Vue 3 SFC:** 所有组件使用 `<script setup lang="ts">` 配合 `defineProps<T>()` + `withDefaults()`。
2. **类变体权限:** 通过 CVA 在与组件同目录的独立 `*-variants.ts` 文件中定义所有变体。
3. **合并辅助工具:** 通过来自 `@/lib/utils` 或等效嵌套深度的 `cn(...)` 合并外部类。
4. **计算属性类:** 始终使用 `computed()` 进行动态类合并——切勿在模板中调用 `cn()`。
5. **无障碍:** 使用 reka-ui 处理模态框、对话框、弹出框和输入框,以保持标记健壮且完全无障碍。
6. **导出:** 始终从 `src/index.ts` 导出新组件。

---

## 🔒 Security Requirements
## 安全要求

1. **Path Safety:** When working on the CLI tool (`packages/cli`), avoid directory traversal vulnerabilities. Normalise paths and ensure all resolved destination folders pass `isSafePath`.
2. **Duplication Guard:** When updating configuration stylesheets, ensure that the token utility sets are not duplicated.
1. **路径安全:** 在开发 CLI 工具(`packages/cli`)时,避免目录穿越漏洞。规范化路径并确保所有解析的目标文件夹通过 `isSafePath` 检查。
2. **去重守卫:** 更新配置样式表时,确保令牌工具集不重复。
30 changes: 30 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: CI

on:
push:
branches: [main, vue]
pull_request:
branches: [main, vue]

jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: pnpm/action-setup@v4

- uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm

- run: pnpm install --frozen-lockfile

- run: pnpm --filter brutx-ui-vue build

- run: pnpm --filter brutx-ui-vue typecheck

- run: pnpm --filter brutx-ui-vue lint

- run: pnpm --filter brutx-ui-vue test
58 changes: 58 additions & 0 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: Deploy Docs

on:
push:
branches: [main]
workflow_dispatch:

permissions:
contents: read
pages: write
id-token: write

concurrency:
group: pages
cancel-in-progress: false

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: pnpm/action-setup@v4

- uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Build UI library
run: pnpm --filter brutx-ui-vue build

- name: Build docs
run: pnpm --filter docs build

- name: Setup Pages
uses: actions/configure-pages@v4

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: apps/docs/.vitepress/dist

deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
needs: build
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
20 changes: 19 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,29 +4,41 @@ node_modules

# Build outputs
dist
dist-ssr
.next
out
build
.codegraph
.superpowers

# IDE
.vscode
.idea
.trae
.claude
.cursor
.cursorrules
*.swp
*.swo

# OS
.DS_Store
Thumbs.db
Desktop.ini

# Environment
.env
.env.local
.env.*.local
*.local

# Logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

# Testing
coverage
Expand All @@ -36,9 +48,15 @@ coverage
.turbo
*.tsbuildinfo

# VitePress
**/.vitepress/cache

# Next.js
next-env.d.ts

# Misc
.vercel

# Development docs (internal only)
DEVELOPMENT.md
DEV_*.md
DEV_*.md
Loading