
如果你使用 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 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
1. Clone this repo:
shgit clone https://github.com/booqed/ui.git cd ui
2. Checkout to dev branch
shgit checkout dev
:information_source: This re-initializes the repo and sets up your NPM project.
3. Install the dependencies:
shgit submodule init git submodule update npm i
You're done installing! Now let's get started developing.
4. Start a live-reload development server:
shnpm run dev
This is a full web server nicely suited to your project. Any time you make changes within the
srcdirectory, it will rebuild and even refresh your browser.
5. Testing with jest and puppeteer:
🌟 To run component and unit tests:
shnpm test
🌟 To run end-to-end test locally:
shnpm run test_e2e_local
🌟 This also instruments the code in
src/using https://github.com/douglasduteil/isparta, giving you pretty code coverage statistics at the end of your tests! If you want to see detailed coverage information, a full HTML report is placed intocoverage/.
6. Generate a production build in ./build:
shnpm run build
5. Start local production server with https://github.com/zeit/serve:
shnpm start
This project is set up to support https://github.com/css-modules/css-modules. By default, styles in src/style are global (not using CSS Modules) to make global declarations, imports and helpers easy to declare. Styles in src/components are loaded as CSS Modules via https://github.com/webpack/css-loader#css-modules. Modular CSS namespaces class names, and when imported into JavaScript returns a mapping of canonical (unmodified) CSS classes to their local (namespaced/suffixed) counterparts.
When imported, this LESS/CSS:
css.redText { color:red; } .blueText { color:blue; }
... returns the following map:
jsimport styles from './style.css'; console.log(styles); // { // redText: 'redText_local_9gt72', // blueText: 'blueText_local_9gt72' // }
Note that the suffix for local classNames is generated based on an md5 hash of the file. Changing the file changes the hash.
:information_desk_person: This project contains a basic two-page app with http://git.io/preact-router.
Pages are just regular components that get mounted when you navigate to a certain URL. Any URL parameters get passed to the component as props.
Defining what component(s) to load for a given URL is easy and declarative. You can even mix-and-match URL parameters and normal props.
js<Router> <A path="/" /> <B path="/b" id="42" /> <C path="/c/:id" /> </Router>
This project includes https://github.com/developit/preact-compat alias in as react and react-dom right out-of-the-box. This means you can install and use third-party React components, and they will use Preact automatically! It also means that if you don't install third-party React components, preact-compat doesn't get included in your JavaScript bundle - it's free if you don't use it 👍
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务