refactor: 重新组织订单班文档资料目录结构

- 将所有订单班文档从 doc/ 迁移到 data/ 目录
- 保持原有目录结构不变,仅改变顶层路径
- 包含所有12个订单班的完整文档资料
  - 文旅、财经商贸、食品、智能开发、智能制造
  - 视觉设计、交通物流、土木、大健康
  - 能源、化工、环保
- 文件总数:2345个文件(包括文档、图片、Agent配置等)
This commit is contained in:
Yep_Q
2025-09-28 16:19:11 +08:00
parent 9ab8cf48ab
commit beb1ba38fa
2345 changed files with 541 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
function handleCode (code, isWeb) {
if (isWeb) {
return code;
}
// 要插入的滚动条样式
const scrollbarStyle = `
<style>
::-webkit-scrollbar {
width: 0px;
}
</style>
`;
// 将样式插入到 <head> 标签内(如果存在 <head>
let modifiedHtml = code;
if (/\s*<\/head\s*>/i.test(modifiedHtml)) {
modifiedHtml = modifiedHtml.replace(/(\s*<\/head\s*>)/i, `${scrollbarStyle}$1`);
} else {
// 如果没有 <head>,直接插入到 <html> 之后
modifiedHtml = modifiedHtml.replace('<html>', `<html>${scrollbarStyle}`);
}
return modifiedHtml
}
const useEventListener = (element, eventType, callback, useCapture = false) => {
if (!element || !callback) return null;
const handler = (event) => callback(event);
element.addEventListener(eventType, handler, useCapture);
return () => {
element.removeEventListener(eventType, handler, useCapture);
};
};