重构目录结构与组件复用逻辑,可能问题有点多,我没仔细Review#62
Open
exyone-js wants to merge 1 commit into
Open
Conversation
将所有根目录模板文件统一到 templates/ 下的分层目录结构,建立
src/、config/、modules/、assets/{styles,scripts,vendor,media}/
等模块化目录,提升代码复用率与可维护性。
主要变更:
- 13 个根目录模板文件(404/about/acg/archived/cross/douban/github/
links/links_new/memos/messages/steam/tags)统一引入
templates/layouts/{header,sidebar,footer}.php 替换 compoment/head.php
- 引入 templates/partials/{grid-open,grid-close,pagination,seo-meta,
footer-scripts}.php 复用页面片段
- 新建 src/Helpers/layout.php 提供 bs_content_columns() 等布局助手
- 新建 config/{bootstrap,paths}.php 统一加载与路径常量管理
- vendors/ 目录迁移:Upload.php → src/Overrides/UploadWidget.php,
BearSimpleCacheRules.js → assets/scripts/service-worker-rules.js
- assets/css/lxgw/ 字体文件迁移至 assets/styles/lxgw/
- assets/scripts/、assets/styles/、assets/vendor/、assets/media/
按功能分子目录组织
- modules/ 下各功能模块(access-control、code-highlight、go-links、
poster、site-maintenance、sticky、tools、translate、user-center、
verify/*)独立目录化
- 手动修复 13 个文件的 div 开闭平衡问题
Co-Authored-By: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
将所有根目录模板文件统一到 templates/ 下的分层目录结构,建立
src/、config/、modules/、assets/{styles,scripts,vendor,media}/ 等模块化目录,提升代码复用率与可维护性。
主要变更: