web

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 19, 2026 License: MIT Imports: 1 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

My API 的前端界面

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

[!WARNING] 不是每一个主题都及时同步了所有功能,由于精力有限,优先更新默认主题,其他主题欢迎 & 期待 PR

提交新的主题

欢迎在页面底部保留你和 My 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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BuildFS embed.FS

BuildFS 内嵌编译好的前端产物(web/build)。

单独放进可 import 的包,是因为 //go:embed 不能跨包、不支持 "../"、不支持符号链接: 外部扩展方的 main(以及本仓的 app.Run)都需要通过 import 本包取得同一份前端 FS, 而无法各自 embed 到本仓根目录下的 web/build。

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL