@lobehub/chat
Version:
Lobe Chat - an open-source, high-performance chatbot framework that supports speech synthesis, multimodal, and extensible Function Call plugin system. Supports one-click free deployment of your private ChatGPT/LLM web application.
41 lines (34 loc) • 2.18 kB
text/mdx
const
├── features
├── hooks
├── layout
├── locales
├── services
├── store
├── types
└── utils
```
在 `app` 文件夹中,我们将每个路由页面按照 app router 的 [Route Groups](https://nextjs.org/docs/app/building-your-application/routing/route-groups) 进行组织,以此来分别处理桌面端和移动端的代码实现。以 `welcome` 页面的文件结构为例:
```bash
welcome
├── (desktop)
│ ├── features
│ ├── index.tsx
│ └── layout.desktop.tsx
├── (mobile)
│ ├── features
│ ├── index.tsx
│ └── layout.mobile.tsx
├── features
│ └── Banner
└── page.tsx
```
通过这种方式,我们可以清晰地区分和管理桌面端和移动端的代码,同时也能方便地复用在两种设备上都需要的代码,从而提高开发效率并保持代码的整洁和可维护性。
LobeChat 的文件夹目录架构如下:
```bash
src
├── app
├── components
├── config
├──