
如果你使用 DeepSeek、元宝 AI、Copilot、ChatGPT 等 AI 工具,协助配置轩辕镜像、编写 docker pull 命令、修改 Docker Compose 镜像地址、配置镜像加速、排查镜像拉取失败、分析报错日志等问题,请先让 AI 阅读并遵守轩辕镜像的规则文档。
只需在 AI 对话中先发送下面这句话即可:
请先完整阅读并严格遵守以下文档中的全部规则与要求:
https://xuanyuan.cloud/agents.md
在未充分阅读并理解该文档前,不要生成任何命令、配置、修改建议、故障排查方案或技术回答。后续所有输出都必须严格以该文档中的规范为最高优先级执行。查看 agents.md 用法指南与完整示范。国内用户首推 元宝 AI、DeepSeek 的深度思考模式,不推荐豆包 AI;Cursor 等编辑器可在对话 @ 该链接,或加入 User Rules。 若 AI 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
Simple dashboard tool inspired by the now-defunct tipboard.
A configuration is used to define which tiles are located on the board.
tiles defines the array of tiles in the board.direction (optional, default row) either row or column to define in which direction tiles should appear.defaultTimeout (optional, default 30000) defines in milliseconds how long a tile should wait before showing the timeout message.The tile configuration takes the following properties:
id is used to update the tiletype is the type of tile to render. It should match a name from https://github.com/francoislg/tileboard/blob/master/App/factories.tsx#L15title (optional) is rendered in the layout, in the header.props (optional) are properties passed down to the component. For instance, the CheckboxMatrix component has https://github.com/francoislg/tileboard/blob/master/App/tiles/CheckboxMatrix.tsx#L11layout (optional) dictates how to render the tile. For instance, the https://github.com/francoislg/tileboard/blob/master/App/layout/RectangleTile.tsx renders the title at the top, and keeps a full-width content div right under it.layoutProps (optional) are passed down to the layout component. For instance, the RectangleTile component takes https://github.com/francoislg/tileboard/blob/master/App/layout/RectangleTile.tsx#L8.initialValue (optional) can be used to initialise the tile with some value.Each tile type has its own value typing.
CheckboxMatrix takes a https://github.com/francoislg/tileboard/blob/master/App/tiles/CheckboxMatrix.tsx#L7 value.Checkbox takes a simple https://github.com/francoislg/tileboard/blob/master/App/tiles/Checkbox.tsx#L7LabeledList takes an https://github.com/francoislg/tileboard/blob/master/App/tiles/LabeledList.tsx#L12This repository automatically builds a docker ready for usage.
docker pull flguillemette/tileboard:latest will bring you the latest version.
You can then run this docker by exposing the 7272 (http) and 7273 (socket) ports. You must also define the API_KEY environment variable that will be used by your calls to the API.
For instance, running your docker could look like:
cmddocker run -e API_KEY=abc123 -p "7272:7272" -p "7273:7273" flguillemette/tileboard:latest
Say you want a simple tile that takes two rows and two columns and renders a 2x2 matrix of checkboxes.
You can create the configuration using the following request:
POST /config Authorization: Bearer <TOKEN> { "tiles": [{ "id": "matrix-tile", "type": "checkboxMatrix", "title": "Matrix Example", "props": { "columnLabels: ["1", "2"], "rowLabels": ["a", "b"] }, layoutProps: { width: 2, height: 2 } }] }
This will give you the following tile:
!Example Matrix 1
You can now update its value multiple times by using the following request:
POST /update/matrix-tile Authorization: Bearer <TOKEN> { "value": [ [true, true], [false, true] ] }
This will give you the following tile:
!Example Matrix 2
npm run start runs the server locally in watch mode, allowing you to execute requests against it. It will refresh the server when a change is made to the code.
To add a new tile, create a new tsx file and a .scss file named after your component in the tiles folder. It must implement the IDefaultTileProps<T> interface, where T is the value that will be accepted by the update API.
Then, add a reference to this component in the src/factories.tsx file so that it is properly wired to the type attribute of the tile configuration.
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务