ai-gateway/web
2024-03-24 23:01:03 +08:00
..
air chore: update copy 2024-03-24 23:01:03 +08:00
berry chore: update copy 2024-03-24 23:01:03 +08:00
build feat: able to add more UI theme (#860) 2024-01-01 18:55:03 +08:00
default chore: update copy 2024-03-24 23:01:03 +08:00
build.sh fix: rm history build before building 2024-02-25 02:07:34 +08:00
README.md docs: update readme 2024-03-17 14:00:33 +08:00
THEMES feat: add new theme air (#1167) 2024-03-16 15:29:35 +08:00

One API 的前端界面

每个文件夹代表一个主题,欢迎提交你的主题

提交新的主题

欢迎在页面底部保留你和 One API 的版权信息以及指向链接

  1. web 文件夹下新建一个文件夹,文件夹名为主题名。
  2. 把你的主题文件放到这个文件夹下。
  3. 修改你的 package.json 文件,把 build 命令改为:"build": "react-scripts build && mv -f build ../build/default",其中 default 为你的主题名。
  4. 修改 common/config/config.go 中的 ValidThemes,把你的主题名称注册进去。
  5. 修改 web/THEMES 文件,这里也需要同步修改。

主题列表

主题default

默认主题,由 JustSong 开发。

预览:

image image

主题berry

MartialBE 开发。

预览:

image image
image image
image image

主题air

Calon 开发。

image image

开发说明

请查看 web/berry/README.md