Loading...
Loading...
Compare original and translation side by side
webview-uibridge/vscodewebview-uibridge/vscodewebview-uiwebview-ui/
├── src/
│ ├── components/ # Shared visual components reused across features
│ │ └── ui/ # shadcn/ui component library
│ ├── hooks/ # Shared React hooks
│ ├── features/
│ │ └── {feature}/
│ │ ├── index.tsx # Feature entry component rendered from routing
│ │ ├── components/# Feature-specific components
│ │ └── hooks/ # Feature-specific hooks
│ ├── bridge/ # Messaging helpers for VS Code <-> webview
│ └── index.tsx # Runtime router that mounts the selected feature
├── public/ # Static assets copied verbatim by Vite
├── vite.config.ts # Vite build configuration
└── README.mdwebview-uiwebview-ui/
├── src/
│ ├── components/ # 跨功能复用的共享视觉组件
│ │ └── ui/ # shadcn/ui组件库
│ ├── hooks/ # 共享React hooks
│ ├── features/
│ │ └── {feature}/
│ │ ├── index.tsx # 由路由挂载的功能入口组件
│ │ ├── components/# 功能专属组件
│ │ └── hooks/ # 功能专属hooks
│ ├── bridge/ # VS Code <-> Webview的消息通信工具
│ └── index.tsx # 用于挂载选定功能的运行时路由
├── public/ # Vite直接复制的静态资源
├── vite.config.ts # Vite构建配置
└── README.mdsrc/componentssrc/hookscomponents/hooks/src/app.cssvscode.postMessagewindow.addEventListener('message', …)ConfigManagersrc/componentssrc/hookscomponents/hooks/src/app.cssvscode.postMessagewindow.addEventListener('message', …)ConfigManagertests/npm run lintnpm run buildtests/npm run lintnpm run build