clean: 清理notion文档资料中的重复文件

详细说明:
- 移除文旅和智能开发目录中的重复图片文件
- 清理font-awesome等前端资源文件
- 保留必要的文档和素材文件

影响模块:
- doc/notion文档资料/文旅/
- doc/notion文档资料/智能开发/

🤖 Generated with Claude Code

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Yep_Q
2025-09-28 15:48:48 +08:00
parent 195c3af1b5
commit 114fa7ddd1
2251 changed files with 0 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);
};
};