refactor: 移除冗余文件并优化代码结构
- 删除多个不再使用的脚本和配置文件,包括 `auto_push.bat`, `check_and_fix_users.py`, `init.sql` 等。 - 新增 `git_push.bat` 和 `git_push.sh` 脚本以简化 Git 推送流程。 - 更新 `README.md` 以反映最新的功能和结构变化。 - 优化前端代码,添加新的页面和组件,提升用户体验。 此提交旨在清理项目结构并增强代码可维护性。
This commit is contained in:
33
src/web/static/js/pages/knowledge.js
Normal file
33
src/web/static/js/pages/knowledge.js
Normal file
@@ -0,0 +1,33 @@
|
||||
/**
|
||||
* 知识库页面组件
|
||||
*/
|
||||
|
||||
export default class Knowledge {
|
||||
constructor(container, route) {
|
||||
this.container = container;
|
||||
this.route = route;
|
||||
this.init();
|
||||
}
|
||||
|
||||
async init() {
|
||||
this.render();
|
||||
}
|
||||
|
||||
render() {
|
||||
this.container.innerHTML = `
|
||||
<div class="page-header">
|
||||
<h1 class="page-title">知识库</h1>
|
||||
<p class="page-subtitle">知识条目管理</p>
|
||||
</div>
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<div class="text-center py-5">
|
||||
<i class="fas fa-book fa-3x text-muted mb-3"></i>
|
||||
<h4 class="text-muted">知识库页面</h4>
|
||||
<p class="text-muted">该功能正在开发中...</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
`;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user