* feat: Add auhentication provider and password authentication filter
* refactor: JwtUsernamePasswordAuthenticationFilter and add test case
* chore: delete unused class
* fix: code style
* refactor: web secutity config
* feat: Add JwtGenerator for authentication
* fix: code style
* refactor: change OAuth2TokenType type to record
* refactor: remove explicit declaration of equals and hashcode for records class
* feat: Content add front-end rendering options and refactor post params
* feat: add default value for serverSidemarkdownRender
* refactor: content save api
* fix: generate summary
* refactor: remove useless server-side markdown render code
* refactor: allow the formatContent to be empty
* refactor: Rename serverSideMarkdownRender to keepRaw
* refactor: Rename test case
* feat: split post content to new table and support content version control
* feat: Improve post version management
* feat: Add post content and version record deletion
* feat: Add isInProcess attribute for post list and detail api
* feat: Add migrate sql script
* fix: Add a sql of allow origin_content to null in posts table
* feat: Assign a value to the source of the post content version record
* perf: add password reset field verification
Signed-off-by: Ryan Wang <i@ryanc.cc>
* feat: add unit test case
Co-authored-by: guqing <1484563614@qq.com>
* feat: include posts that under the subcategories when getting posts by category
* refactor: list as tree
* fix: can nott query the problem of encrypted category
* refactor: post count under the category
* fix: list all by parent id
* feat: tag support color options
* refactor: change the color of tag
* feat: add api model property
* refactor: change color field length
* refactor: color field length in tag param
* Removing email field from the required arguments in comments
* Fixed gravatar and added database migration script
* Adding validation test cases for PostCommentParam
* Added unit test for PostCommentServiceImpl
* Address comments: removing identicon in gravatar, renaming migration script
* Address comment: removing gravata identicon from CommentProperties
* Address comments: Adding more unit tests for comment API
* Address comments: Adding integration tests for comment API
* feat: Refactor the naming method of uploaded attachments
* refactor: attachment upload parameter
* refactor: 重构文件名称是否重复的判断方式
* refactor: the usage of file path descriptor
* fix: remove blank line
* feat: add more test case
* fix: file base name in FilePathDescriptor
* Revert "refactor: the usage of file path descriptor"
This reverts commit b46ff3b4
* feat: Add date parse methods and test
* feat: Add utility methods of get the specified part of the given date
* refactor: Replace the use of dateutil in hutool
* refactor: Replace the StrUtil of hutool with StringUtils of commons-lang3
* refactor: Replace the use of Tuple in hutool
* refactor: Replace the use of ServltUtil in hutool
* refactor: Replace the use of PageUtil in hutool
* refactor: Replace the use of CollectionUtil in hutool
* refactor: Add QRcode generate method
* refactor: replace all hutool utility and add some utils
* fix: check style of tests
* refactor: add logging
* fix: logging
* fix: set default timezone
* fix: code style
* refactor: rename variable tfaKey to mfaKey
* refactor: Use commons-lang3's RandomStringUtils to replace some methods
* refactor: update javadoc
* refactor: update test
* refactor: reformat code
* feat: Add more test case
* feat: Add source
* Modefy the content api to support list posts with new class PostQueryContent
* Modefy the content api to support list posts with new class PostQueryContent
* using parameters
* with categoryid
* checkstyle
Co-authored-by: Cui <11811305@mail.sustech.edu.cn>
* Word count for markdown updated with test
* HTML word count updated with test
* Convert pattern to static final variable
* More HTML test added
* Workaround URL added
* CS304 issue link URL added
* Pure HTML Test added, checkstyle checked
Co-authored-by: MasterWanna <MasterWanna@users.noreply.github.com>
* Add OptionFilter for bulk option api
* Add another filter method for single option
* Restrict OptionController response
* Remove redundant api
* feat: complete private option keys.
* feat: complete private option keys.
Co-authored-by: Ryan Wang <i@ryanc.cc>
* 1.Add the lastBuildDate in RSS.
2.Add the updated in Atom.
3.Change the date format in RSS and Atom
4.Add the lastModified in the response header.
* fix code style
* Update gradle wrapper version
* Update spring boot version to 2.5.0-M2
* Fix wrong const of temp_dir
* Refactor error controller
* Fix startup error due to theme not found
* Refine error controller handler
* Refine multipart resolver config
* Fix ThemeRepositoryImplTest error
* Fix freemarker not found error
* chore: change jetty to undertow.
* Remove useless throws
Co-authored-by: Ryan Wang <i@ryanc.cc>
* feat: #1225
* fix: compatible with jdk1.8
* fix: format code
* fix: fix the problem that the status of the recycle bin file is incorrect when revocering
* fix: format code
* fix: format code
* fix: fix the post cannot be converted to recyling mode
* fix: post cannot be published on deleting the category password
* fix: fix jpa error
* fix: format code
* fix: encryption type extracted into enum
* fix: format code
* fix: format code
* fix: changes requested
* fix: format code
* fix: revert checkstyle.xml
* fix: change request
* fix: not encrypt 方法改为重载方法
* fix: 修复因调整 git 版本被回退的代码
Co-authored-by: xiangbei.yzx <xiangbei.yzx@alibaba-inc.com>
* Make rest controller loggable
* Refactor pull from git process
* Replace Callback interface with Consumer
* Tag theme fetch apis and services deprecated
* Add getAllBranchesTest
* Refactor theme fetcher partially
* Refactor theme property scanner
* Add ThemeFetcherComposite
* Add InputStreamThemeFetcher
* Accomplish multipart zip file theme fetcher
* Reformat ThemeServiceImpl
* Reformat codes
* Provide ThemeRepository
* Complete MultipartFileThemeUpdater
* Make CommonsMultipartResolver support put request method
* Replace some methods with ThemeRepository
* Add GitThemeUpdater
* Add merge two local repo test
* Refine merge process with two repos
* Add more test entry point in GitTest
* Add shutdown hook after creating temporary directory
* Add test: find commit by tag
* Refactor git clone process in GitThemeFetcher
* Refine merge process of two repo
* Make sure that RevWalk closed
* Fix FileUtils#findRootPath bug
* Add clean task before gradle check
* Add fallback theme fetcher
* Disable logback-test.xml
* Set testLogging.showStandardStreams with true
* Fix test error while missing halo-test folder
* Enhance git theme fetcher
* Add copy hidden folder test
* Refine GitThemeFetcherTest
* Accomplish GitThemeUpdater
* Accomplish theme update
* Fix checkstyle error
* Add more deprecated details
* Update gradle wrapper version to 6.6.1
* Upgrade h2 version to 1.4.197
* Make controller log more details
* Refactor FileHandler
* Fix image reader error
* Update spring boot version and source compatibility version
* Rearrange some configs
* Upgrade swagger to 3.0.0
* Make swagger configurable
* Make swagger-ui.html path backward compatible
* Change jdk version into 11 in ci/cd scripts and Dockerfile