-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[PR] Refactor management system for post #29
Merged
Conversation
This file contains 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
- src/BlogMan/Models/Abstraction/IReadOnlyTree.cs: Create interface of tree - src/BlogMan/Models/Abstraction/ITree.cs: Create interface of tree - src/BlogMan/Models/IO/FileSystemTree.cs: Create tree implementation of FileSystemInfo - src/BlogMan/Models/Posts/PostBranch.cs: Create specialization of PostTree for directories - src/BlogMan/Models/Posts/PostLeaf.cs: Create specialization of PostTree for files - src/BlogMan/Models/Posts/PostRoot.cs: Create specialization of PostTree for a root of tree - src/BlogMan/Models/Posts/PostTree.cs: Create implementation of ITree for posts - src/BlogMan/Models/PostTree.cs: Delete legacy API - src/BlogMan/Models/PostTreeNode.cs: Delete legacy API - src/BlogMan/Models/Utilities/PostUtils.cs: Create utils for post-tree - src/BlogMan/Models/Utilities/TreeUtils.cs: Create utils for generic tree - src/BlogMan/Models/Utilities/UriUtils.cs: Create utils for generic uri
- src/BlogMan/Components/GoogleSitemapLinker.cs: Use new post management system - src/BlogMan/Components/LinkerBase.cs: Use new post management system - src/BlogMan/Components/RazorTemplateLinker.cs: Use new post management system - src/BlogMan/Models/TemplateModel.cs: Use new post management system
- src/BlogMan/Resources/post.razor: Keep consistence of quote style
- src/BlogMan/Components/RazorTemplateLinker.cs: Fix compilation error
- */*: Remove unnecessary codes with Qodana - src/qodana.yaml: Add qodana.yaml
- src/BlogMan.sln: Update solution - src/BlogMan.Test/BlogMan.Test.csproj: Create project for testing
- src/BlogMan.Test/BlogMan.Test.csproj: Add test-case adoption - src/BlogMan.Test/Program.cs: Add manual-testing line - src/BlogMan.Test/Resources/.gitignore: GIT should ignore test result - src/BlogMan.Test/Resoruces/**/*.*: Add test-case - src/BlogMan.Test/Resources/test.json: Add test-case - src/BlogMan/Program.cs: Expose entrypoint
A change for |
- src/BlogMan/Components/Logger.cs: Fix mismatched header for log
Error log from b47a65a in #28:
|
- src/BlogMan/Components/Initializer.cs: - Call cleanup task correctly - Update directories in project internally - src/BlogMan/Components/GoogleSitemapLinker.cs: - Fix runtime error when compiling xml - src/BlogMan/Components/LinkerBase.cs: - Provide new cleanup API - Merge cleanup task to Initializer: Each linker is a component of pipeline(blogman). if cleanup task is in linker class, result will be reset on each phase of building. - src/BlogMan/Components/Preprocessor.cs: Always clean build directory - src/BlogMan/Components/RazorTemplateLinker.cs: Use new cleanup API - src/BlogMan/Models/Posts/PostLeaf.cs: Reserve index file-name - src/BlogMan/Models/Posts/PostTree.cs: Simplify filtering condition - src/BlogMan/Models/Utilities/TreeUtils.cs: - Fix broken burning task - Fix invalid recursive call
Tested for only its concepts. LGTM |
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.
Before these commit,
blogman
adopted a management system for post based on a hash of the directory (hereinafter 'legacy-system'). Because of the characteristic of the legacy-system that uses the hash of the directory, the result URI for each post is confusing and not intuitive.Before these commits, the SOLID principle was entirely ignored, and the code was confusing to read. These commits make code for a management system for posts tidied and concise.
Work List