dashboard-nanobot/frontend
AlanPaine 8e6b4581cd feat: 支持配置 Whisper 模型并优化 API Key 管理
- 添加 download_model.sh 脚本,支持从 Hugging Face 下载 Whisper 语音识别模型
- 在 bot 状态和序列化接口中新增 api_key 字段,支持持久化存储
- 更新前端 i18n 文本,将“新的 API Key”改为“API Key”,明确其为必填项
- 设置 axios 默认携带凭证,确保身份验证
- 将管理面板名称从“Nanobot”更新为“Unisbot”
2026-04-15 17:23:00 +08:00
..
docker feat: add build.sh for dynamic docker image building and update deploy scripts 2026-04-13 19:35:41 +08:00
public v0.1.4-p4 2026-04-02 20:27:06 +08:00
src feat: 支持配置 Whisper 模型并优化 API Key 管理 2026-04-15 17:23:00 +08:00
.env.example v0.1.4-p5 2026-04-03 23:00:08 +08:00
.gitignore v0.1.1 2026-03-02 00:26:03 +08:00
Dockerfile v0.1.4-p2 2026-03-13 14:40:54 +08:00
README.md v0.1.1 2026-03-02 00:26:03 +08:00
eslint.config.js v0.1.1 2026-03-02 00:26:03 +08:00
index.html v0.1.1 2026-03-02 00:26:03 +08:00
package-lock.json v0.1.4-p4 2026-04-01 15:19:14 +08:00
package.json v0.1.2 2026-03-02 10:54:40 +08:00
postcss.config.js v0.1.1 2026-03-02 00:26:03 +08:00
tailwind.config.js v0.1.1 2026-03-02 00:26:03 +08:00
tsconfig.app.json fix git bugs. 2026-04-13 19:28:36 +08:00
tsconfig.json v0.1.1 2026-03-02 00:26:03 +08:00
tsconfig.node.json v0.1.1 2026-03-02 00:26:03 +08:00
vite.config.ts v0.1.4-p5 2026-04-03 23:00:08 +08:00
yarn.lock v0.1.4-p4 2026-04-01 15:19:14 +08:00

README.md

React + TypeScript + Vite

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

Currently, two official plugins are available:

React Compiler

The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see this documentation.

Expanding the ESLint configuration

If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules:

export default defineConfig([
  globalIgnores(['dist']),
  {
    files: ['**/*.{ts,tsx}'],
    extends: [
      // Other configs...

      // Remove tseslint.configs.recommended and replace with this
      tseslint.configs.recommendedTypeChecked,
      // Alternatively, use this for stricter rules
      tseslint.configs.strictTypeChecked,
      // Optionally, add this for stylistic rules
      tseslint.configs.stylisticTypeChecked,

      // Other configs...
    ],
    languageOptions: {
      parserOptions: {
        project: ['./tsconfig.node.json', './tsconfig.app.json'],
        tsconfigRootDir: import.meta.dirname,
      },
      // other options...
    },
  },
])

You can also install eslint-plugin-react-x and eslint-plugin-react-dom for React-specific lint rules:

// eslint.config.js
import reactX from 'eslint-plugin-react-x'
import reactDom from 'eslint-plugin-react-dom'

export default defineConfig([
  globalIgnores(['dist']),
  {
    files: ['**/*.{ts,tsx}'],
    extends: [
      // Other configs...
      // Enable lint rules for React
      reactX.configs['recommended-typescript'],
      // Enable lint rules for React DOM
      reactDom.configs.recommended,
    ],
    languageOptions: {
      parserOptions: {
        project: ['./tsconfig.node.json', './tsconfig.app.json'],
        tsconfigRootDir: import.meta.dirname,
      },
      // other options...
    },
  },
])