Commit Graph

1868 Commits (9fdc9c1bb7a4d305808080184711833c702918c8)

Author SHA1 Message Date
guqing c999c35a20
feat: Add bearer token and bearer authentication (#1864) 2022-04-21 07:58:12 +00:00
guqing 3f5e83fcae
chore: use providerSettings to create OAuth2TokenEndpointFilter (#1863) 2022-04-20 08:08:10 +00:00
guqing 8ac819ad14
chore: cleanup deprecated class (#1859) 2022-04-20 03:14:10 +00:00
guqing f1ccccb557
refactor: use OAuth2Password grant instead of JwtUsernamePassword authentication (#1857) 2022-04-20 03:02:10 +00:00
guqing ed6aea6245
feat: Add oauth2 refresh token authentication (#1856)
* feat: Add oauth2 refresh token authentication

* feat: Add unit test case
2022-04-19 10:16:14 +00:00
guqing ad562b4917
feat: Add InMemoryOAuth2AuthorizationService for development or testing (#1854) 2022-04-19 08:06:09 +00:00
guqing eee58989fe
feat: Allow configuration for token and refresh token time-to-live (#1853) 2022-04-19 03:16:15 +00:00
guqing 9dd778bdab
feat: Add ProviderContextHolder for token generate (#1852)
* 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 ProviderContextHolder for token generate

* chore: optimize imports
2022-04-18 06:58:13 +00:00
guqing 66be1d1ba7
feat: Add UsernamePasswordAuthenticationProvider and filter to authentication client password request (#1846)
* 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
2022-04-18 03:40:11 +00:00
guqing 20e6d4d1eb
feat: Add JwtGenerator for authentication (#1843)
* 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
2022-04-15 02:47:57 +00:00
guqing 90d61a27e9
feat: add token provider (#1841) 2022-04-13 11:38:34 +00:00
guqing b3c82396ac
feat: Add security config for halo (#1838)
* feat: Add security config for halo

* chore: delete file

* feat: add security config intergration test case

* refactor: use EnableWebSecurity annotation

* refactor: patch prefix

* Update src/test/java/run/halo/app/integration/security/AuthenticationTest.java

Co-authored-by: John Niang <johnniang@fastmail.com>

* refactor: mvc path prefix config

Co-authored-by: John Niang <johnniang@fastmail.com>
2022-04-13 09:08:34 +00:00
guqing e2843adbe7
Create basic project structure for halo 2.0 (#1699)
* feat: Add project structure

* feat: Add config

* feat: Add flyway migrate config for h2 and mysql and postgresql

* fix: checkstyle config

* chore: Upgrade springboot 2.6 to 3.0.0-m1

* feat: Add spring snapshot url for repositories

* refactor: Change jdk11 to jdk17 for github ci config

* refactor: update build.gradle config
2022-03-04 15:04:11 +08:00
Ryan Wang 641264ba5c chore: clean code for next major version
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-03-03 11:34:42 +08:00
guqing 68d263bef3
Add assembler for post and sheet to replace service convert (#1691) 2022-03-03 11:15:56 +08:00
guqing 52b3e4f605
Fix the problem jsonToCacheWrapper crashes when cache value is not JSON format (#1695)
* fix: json to cache wrapper convertor when other exception

* feat: Add test case for level cache
2022-03-02 18:06:54 +08:00
lan-yonghui 4354991a9e
fix: Remove the code that filters empty strings from the properties file
* fix: Remove the code that filters empty strings from the properties file.
* blog birthday default value set "0"
2022-03-02 16:36:20 +08:00
guqing 4d71185066
fix: leak of version number inference when create or update content patch (#1690) 2022-03-02 13:40:19 +08:00
guqing 4f1a3c5f0b
refactor: post and cateogry authentication (#1678) 2022-03-01 13:32:52 +08:00
扶醉 5064837cf8
Fix the problem post and sheet contents are empty in the content API (#1686)
* fix: Post and sheet content is empty in the Content API
2022-02-27 15:47:54 +08:00
Ryan Wang 567ad5ef46
chore: sync default theme repo (#1682)
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-02-25 20:42:47 +08:00
Ryan Wang a94dd8df7b
feat: add api for update photos in batch (#1679)
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-02-25 16:09:30 +08:00
Ryan Wang 5959fdfa2d feat: add api for delete photos in batch
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-02-25 15:55:11 +08:00
Ryan Wang 631b2149d3
release: 1.5.0-alpha.1 (#1671)
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-02-21 23:45:20 +08:00
guqing d889a08833
Add keep-raw option to decide how to render post (#1668)
* 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
2022-02-21 22:50:35 +08:00
guqing 923eb17577
Support post content version control (#1617)
* 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
2022-02-20 20:34:56 +08:00
Ryan Wang 1ee7b58ef1
Add password reset field verification (#1636)
* 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>
2022-02-20 10:30:42 +08:00
guqing acf6a98d25
Add an API to update categories in batch (#1657)
* feat: Add a api of update categories in batch

* fix: filter condition
2022-02-18 15:50:02 +08:00
guqing 15bde8eef7
Add APIs to fetch theme info and settings according to the theme id (#1660) 2022-02-18 14:08:36 +08:00
lan-yonghui d961a5e8a5
feat: add priority field into category table (#1650)
* feat: 分类增加排序字段

* style: Optimize and change categories sorting codes

* style: delete sql file

* style: update categories priority default value 0

* style: Optimize categories priority default value
2022-02-15 17:50:37 +08:00
John Niang 2249ef1103
Fix the problem where the activated field was not set correctly for a theme property (#1632)
Signed-off-by: John Niang <johnniang@fastmail.com>
2022-01-16 13:30:09 +08:00
Ryan Wang f83389ca4c
chore: sync default theme (#1621) 2022-01-11 11:19:25 +08:00
guqing 9ddd74b74b
Include posts that under the subcategories when getting posts b… (#1567)
* 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
2021-12-21 23:35:42 +08:00
Ryan Wang 27664fcb41
fix: huawei obs upload file address is incorrect (#1589) 2021-12-11 11:49:55 +08:00
guqing 514ccdb2a1
Add some APIs for group obtaining theme configurations and setting items (#1582) 2021-12-09 21:27:41 +08:00
Ryan Wang dbf954e20c
release: 1.4.15 (#1573) 2021-12-06 16:24:56 +08:00
guqing 448739cddd
Tag support color options (#1566)
* 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
2021-12-06 12:38:06 +08:00
Ryan Wang ab82fadd6e
release: 1.4.14 (#1568) 2021-12-05 20:35:07 +08:00
guqing a802572128
feat: add a batch creation api for photos (#1564)
* feat: add an api of batch creation photos

* feat: add an api verification
2021-12-04 15:58:10 +08:00
guqing 9801bc7a20
Fixed the problem that copying the default theme at halo startup did not use themeId as the theme folder name (#1549)
* fix: 1547

* refactor: replace the string magic value using a static constant
2021-12-03 10:21:55 +08:00
Mingjie Shao b301c8e074
Mark email as not required parameter in BaseComment (#1535)
* 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
2021-11-24 17:31:57 +08:00
guqing d965b6c3e7
fix: not clear access rights when the password of private posts or categories was changed (#1540)
* fix: 1518

* feat: add test case

* fix: remove unused import clause

* fix: unit test case
2021-11-22 09:10:59 +08:00
guqing 2ed5ef51c5
feat: add api for modifying journal comment content (#1536)
* feat: add api of modify comment content

* fix: remove update comment content api

* fix: remove comment content param
2021-11-18 20:29:21 +08:00
guqing c149d53f7e
feat: support photo likes (#1537)
* feat: support photo likes

* feat: add CacheLock annotation to likes api
2021-11-18 20:28:32 +08:00
guqing e1737145ac
fix: content Search page XSS injection problem (#1534) 2021-11-16 21:42:46 +08:00
guqing 641e03e401
Support querying multi post statuses (#1527)
* feat: post page list supports multiple status queries
2021-11-14 18:48:47 +08:00
guqing 62c84e9215
Fix the problem of updating categories and menus in batch (#1526)
* fix: batch update
2021-11-13 22:48:36 +08:00
stackcn c3536cb8ce
fix: typo (#1516) 2021-11-03 10:36:40 +08:00
扶醉 58d1b3f9c0
Add photo teams api in content api (#1515) 2021-11-02 22:09:31 +08:00
guqing 1d91450505
refactor: the naming method of uploaded attachments (#1500)
* 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
2021-10-29 19:36:37 +08:00
扶醉 44d740b760
Fix number of comment in detail of post and sheet and add it into detail of journal (#1503) 2021-10-29 19:36:09 +08:00
Ryan Wang 0a137136ce release: 1.4.13 2021-10-24 15:11:59 +08:00
guqing 0dc75e29bb
feat: add work dir backup options (#1494)
* feat: Add backup options

* feat: add sort for list backup items api

* refactor: rename varibles
2021-10-12 14:54:39 +08:00
zllr 8c26430b31
Compatible with markdown file from hexo (#1492)
* hexo语法省略开头的---时无法解析元信息,兼容此种情况

* 修复导入markdown文件时固定条件下出现 [该标签已存在] 的异常

* hexo语法的博客在实际使用时可以省略开头的 --- 分隔符 : add unit test

* fix code style

Co-authored-by: zhanglei <zhanglei9588@foxmail.com>
2021-10-08 15:39:02 +08:00
guqing de71f40de6
refactor: remove use of hutool toolset (#1488)
* 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
2021-10-01 17:55:58 +08:00
知雨 8f35382c39
Reset default avatar from "mm" to "" (#1485)
Co-authored-by: cetr <2058930674@qq.com>
2021-09-21 15:52:44 +08:00
Ryan Wang c4008b9333 release: 1.4.12 2021-09-16 20:55:03 +08:00
John Niang 0059668a76
Fix incorrectly non-git folder opening and fix start panic when no themes found (#1479) 2021-09-16 09:50:13 +08:00
颍川 a046f3edca
fix: the problem of incorrect query posts when accessing the category with a password (#1471)
* #1470 目录加密-目录输入密码访问-看不见文章

* status - > statuses
2021-09-14 16:52:05 +08:00
Menci‮ ca8bfd9eea
fix: add missing size parameter in comment gravatar URL (#1477) 2021-09-14 14:12:59 +08:00
Qiang156 75c8bb22ee
fix: the problem of without dimension information when uploading an ICO picture #1473 (#1474)
* fixed #1473

* fixed the problem of without dimension information when uploading an ICO picture#1473

Co-authored-by: Jenson-Mac <Jenson.zq@gmail.com>
2021-09-13 16:15:27 +08:00
kid1412621 35feddba18
Update application-dev.yaml (#1469) 2021-09-09 11:51:20 +08:00
Li 71a2e5a52d
refactor: detach admin and client option configuration (#1445)
* separate admin and client option configuration

* resolve checkstyle error
2021-08-23 11:51:44 +08:00
WangYa 8953a06b08
Fix access to MinIO server with TLS (#1458)
fix: minIO的Region修改为非必要配置项
2021-08-18 21:47:43 +08:00
安静的阿豪 6a84483b15
fix: add region for operate minio attachment (halo-dev#1439) (#1440)
Co-authored-by: li-guohao <liguohao_cn@qq.com>
2021-07-25 14:01:31 +08:00
Ryan Wang 84056cf9a0 release: 1.4.11 2021-07-24 12:26:12 +08:00
Ryan Wang 45ce44693d
fix: deleting a non-picture file throws an exception. (#1438)
* fix: deleting a non-picture file throws an exception.

#1437

* doc: update CHANGELOG.md
2021-07-24 12:05:52 +08:00
Ryan Wang 97941e37c1
fix: the keyword and categoryId parameters of the post list api are required #1432 (#1436)
* fix: #1432

* doc: update CHANGELOG.md
2021-07-24 00:33:50 +08:00
ryanwang 6eb8f32b85 release: 1.4.10 2021-07-20 14:09:48 +08:00
guqing 1ae186520e
fix: BytebuddyAgent Unable to use in the JRE environment so remove it (#1429)
* fix: BytebuddyAgent Unable to use in the JRE environment so remove it

* feat: Add package info
2021-07-20 09:39:08 +08:00
低调小熊猫 f42d4e2dae
pref: throw file deletion failure exception. (#1430)
* 又拍云文件删除失败无响应的问题修复

* Update QiniuOssFileHandler.java

* Update LocalFileHandler.java

* Update LocalFileHandler.java

* Update QiniuOssFileHandler.java

* Update UpOssFileHandler.java
2021-07-19 20:57:58 +08:00
Ryan Wang b6527823e4 release: 1.4.9 2021-07-18 23:58:18 +08:00
Ryan Wang b554be8165
fix: #1417 (#1427) 2021-07-18 22:57:23 +08:00
Ryan Wang 1e7d320f1c
fix: incorrect comment count statistics. #1411 (#1426)
* fix: incorrect comment count statistics. #1411

Signed-off-by: Ryan Wang <i@ryanc.cc>

* pref: add override annotation.
2021-07-18 22:08:05 +08:00
zhixiangyuan 189f7be47e
Fix visit bug (#1414)
* fix: fix visit bug #1381

* fix checkstyle

* fix: fix visit bug #1381

* fix: modify the article status check

* fix: Modify the url build method

* delete public article verification

Co-authored-by: 袁智翔(相北) <xiangbei.yzx@alibaba-inc.com>
2021-07-12 18:55:10 +08:00
Ryan Wang 02e4b88288
fix: api parameter names in the post list content api. (#1415) 2021-07-11 23:49:20 +08:00
Ryan Wang aee82a5146 fix: error log output path in default dev application config. 2021-06-29 23:04:46 +08:00
Ryan Wang 2420a44695
fix: #1409 (#1410) 2021-06-29 22:31:45 +08:00
guqing 5be4b83799
feat: markdown supports footnote rendering (#1406)
* feat: MarkDown supports footnote rendering

* fix: code style

* feat: Flexmark footnote rendering adapts to markdown-it

* feat: Adaptation markdown-it-footnote back-ref button rendering and add test

* fix: Fix doc

* refactor: FootnoteNodeRenderInterceptorTest

* fix: Fix test code style

* refactor: change footnote back ref string

* refactor: remove unicode
2021-06-29 13:27:58 +08:00
Ryan Wang 5539cf12f4
fix(security): freemarker SSTI vulnerability. (#1402) 2021-06-20 16:35:34 +08:00
Ryan Wang e72fe2179a
fix: #1394 (#1396) 2021-06-11 23:45:37 +08:00
linshenkx 9de40a0a1c
Repair multi-level category incorrect handle while importing markdown(#1380)
* 修复导入markdown时多级分类无法正确识别的问题

* 1.修复导入markdown对单行多tag的支持
2.添加导入markdown时对单引号的正确识别和处理
3.添加导入hexo的markdown的分类列表、标签列表无缩进的支持
4.完善导入markdown文档的测试用例
2021-06-01 23:05:17 +08:00
Ryan Wang 0ade01c518
fix: #1386 (#1390) 2021-06-01 20:24:08 +08:00
zhaoguhong 27c715ac7f
fix: intimate posts should not be searchable in the category list (#1379) 2021-05-20 18:03:09 +08:00
CuiYuSong 4c68ae9e89
feat: modify the content api to support list posts with keyword and category params. (#1373)
* 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>
2021-05-17 21:38:45 +08:00
Ryan Wang a2c9e42970
fix: checkstyle error. (#1375) 2021-05-16 17:03:58 +08:00
MasterWanna 15381e655e
Word count for markdown updated with test (#1354)
* 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>
2021-05-02 13:10:17 +08:00
扶醉 bec10e9066
fix: Returns the result in the content api for options getby (#1353) 2021-04-15 00:57:40 +08:00
Ryan Wang 25bb253e82 release: 1.4.8 2021-04-09 15:15:23 +08:00
John Niang 47c2c36460
Add OptionFilter for bulk option api (#1345)
* 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>
2021-04-09 13:19:15 +08:00
Lay 6ac9c7d231
pref: RSS/Atom (#1342)
* 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
2021-04-08 16:28:57 +08:00
Ryan Wang 1a3254deba
revert: #1297 (#1343) 2021-04-08 15:07:41 +08:00
Ryan Wang 9ba9dc40cc
chore: remove deprecated code. (#1334) 2021-03-29 16:57:21 +08:00
Ryan Wang 359c01c361
feat: add gravatar source field for comment options api. (#1333) 2021-03-29 12:02:41 +08:00
Ryan Wang 602f1704a1
fix: incorrect number of children comment. (#1332) 2021-03-28 22:11:34 +08:00
Ryan Wang f9a629c38f
feat: #1036 (#1331)
* feat: #1036

* revert: BaseCommentRepository.
2021-03-28 20:22:54 +08:00
Ryan Wang f0ba0fa606
fix: #1311 (#1327) 2021-03-28 11:21:47 +08:00
John Niang 8472a7b3d5
Automate attribute converter (#1325)
* Deprecate AbstractConverter

* Remove unused enum and attribute converter

* Add AttributeConverterApplyTest

* Add JpaConfiguration

* Add AttributeConverterAutoGenerator

* Integrate automate-attribute-converter

* Rename JpaConfiguration

* Remove useless attribute converters

* Exclude property enums for auto-generating

* Refine JournalType definition

* Fix an error about existing injected type
2021-03-27 23:05:27 +08:00
Ryan Wang e6b32ac8c2
feat: enable swagger configuration in development. (#1328) 2021-03-27 15:32:26 +08:00
Ryan Wang 444e649169 Merge branch '1.4.x' 2021-03-27 12:02:47 +08:00
肥鱼先生 cdb7e2cdc1
style: set the color of log to default after banner (#1321) 2021-03-24 00:50:44 +08:00
知雨 54b409ac2b
feat: add index page to sitemap.xml (#1318) 2021-03-17 18:31:57 +08:00
Ryan Wang 30c50f61f8 release: 1.4.7 2021-03-14 12:53:07 +08:00
Ryan Wang a72131de85 release: 1.4.7-beta.1 2021-03-14 12:34:56 +08:00
Ryan Wang 3235179ac2
feat: #1313 (#1315) 2021-03-14 11:49:10 +08:00
Ryan Wang 8e9f8007ca release: 1.4.6. 2021-03-07 22:42:08 +08:00
John Niang 7ba2377ae8
Remove random theme folder generation (#1305) 2021-03-07 22:39:38 +08:00
John Niang caab2f3b93
Refactor system configuration (#1303)
* Refactor application*.yml

* Remove application-user.yaml

* Fix invalid config for aspect
2021-03-07 21:43:18 +08:00
Ryan Wang c6a8757436
chore: sync default theme. (#1304) 2021-03-07 21:31:57 +08:00
John Niang 2b7ae41c02
Fix error about response committed (#1301)
* Add index page request test

* Add test for first page request

* Create session before requesting content
2021-03-07 15:48:24 +08:00
John Niang 38093df0c0
Fix error for updating activated theme (#1300) 2021-03-07 11:38:11 +08:00
John Niang 3019fe0d34
Make more tolerant of reading image (#1298) 2021-03-06 01:10:52 +08:00
John Niang c22348e03a
Upgrade spring boot version (#1289)
* 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>
2021-03-06 00:58:12 +08:00
Li 696a9ad2ee
feat: 扩展 freemarker 实现 block (#1295)
* fix #950 附件不存在时删除报错的问题

* pref: 扩展 freemarker 增加 block 功能

close #1292

* checkStyle

* add unit test

* update test
2021-03-05 23:37:02 +08:00
Ryan Wang 3571b3f0af
pref: init default theme. (#1297) 2021-03-05 23:36:39 +08:00
Ryan Wang ae73515537
pref: #1050 (#1287) 2021-02-27 13:34:37 +08:00
John Niang 65ed8b84af
Cache current theme in theme repository (#1286) 2021-02-25 22:39:40 +08:00
Ryan Wang 29466c5c76
fix: theme update by upload. (#1284) 2021-02-25 20:32:39 +08:00
Ryan Wang 867d1703ae
feat: support import user. (#1283) 2021-02-24 18:21:24 +08:00
Ryan Wang a848b734b7
fix: fetch work dir backup api. (#1282) 2021-02-22 09:22:23 +08:00
John Niang b412d5da2d
Fix incorrect cache lock of journal like api (#1279) 2021-02-19 23:32:57 +08:00
John Niang b57712e23e
Provide backup dto fetch api (#1278)
* Fix swagger security reference config error

* Add backup dto fetch api

* Rearrange fetch api
2021-02-19 23:26:17 +08:00
John Niang 49a461f245
Fix Page response model inconsistent in swagger ui (#1277) 2021-02-19 21:35:37 +08:00
Elvys Soares cdc15942cf
pref: grouping assertions (#1273)
* Grouping assertions

Signed-off-by: Elvys Soares <eas5@cin.ufpe.br>

* Grouping assertions

Signed-off-by: Elvys Soares <eas5@cin.ufpe.br>

* Grouping assertions

Signed-off-by: Elvys Soares <eas5@cin.ufpe.br>

* fix: code style check.

Co-authored-by: Ryan Wang <i@ryanc.cc>
2021-02-19 21:14:51 +08:00
Ryan Wang b591595541 release: 1.4.5. 2021-02-08 20:20:06 +08:00
Ryan Wang d508948dea
pref: sitemap.xml (#1267) 2021-02-08 19:56:36 +08:00
Ryan Wang 48ca0492d1
pref: journals likes api. (#1266) 2021-02-08 19:24:07 +08:00
Ryan Wang f567b94f91
fix: category authentication redirect url. (#1264) 2021-02-08 19:22:20 +08:00
Ryan Wang d509305998 release: 1.4.4. 2021-02-07 21:26:08 +08:00
Ryan Wang 92503e3822
fix: #1255. (#1256)
* fix: #1255.

* fix: #1255.
2021-02-05 23:22:04 +08:00
zhixiangyuan 7b88fcab5f
feat: #1225 (#1235)
* 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>
2021-01-31 14:48:52 +08:00
Ryan Wang a854adf53a release: 1.4.3. 2021-01-28 00:46:35 +08:00
Ryan Wang bbde1a7727
doc: add document website. (#1215)
* doc: add document website.

* doc: add document website.

* doc: add document website.
2021-01-28 00:42:16 +08:00
Ryan Wang 17b847082a
fix: unable to access custom sheet. (#1246) 2021-01-28 00:20:46 +08:00
John Niang be5c60083c
Fix folder copy error: ProviderMismatchException (#1249) 2021-01-28 00:19:22 +08:00
John Niang 30c9baf92b
Fix theme updation error (#1217)
* 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
2021-01-27 00:16:31 +08:00
Ryan Wang d1258c831d release: 1.4.3-beta.1. 2021-01-25 21:28:17 +08:00
Ryan Wang afe501f233
fix: #1214. (#1242) 2021-01-24 21:35:48 +08:00
John Niang feab7c4b5f
Refactor checkstyle (#1241)
* Refactor checkstyle.xml and add .editorconfig

* Optimized imports

* Rearrange codes

* Fix check sytle error in source codes

* Reformat test codes

* Fix check style error in test codes

* Config checkstyle plugin

* Fix merge conflicts
2021-01-24 17:11:10 +08:00
Ryan Wang de5e968025
pref: clean unnecessary code. (#1237)
* pref: clean unnecessary code.

* chore: change org.jetbrains.annotations.NotNull to org.springframework.lang.NonNull.
2021-01-24 14:53:32 +08:00
Ryan Wang 8bb416db1a
feat: support custom post password template. (#1236) 2021-01-24 14:50:24 +08:00
guqing 042e72f224
perft: Reduce the scope of pointcut to make the package scope of tangent point as small as possible (#1238) 2021-01-24 12:18:37 +08:00
Raremaa 8ba115ffb6
feat: add api for markdown export (#1199)
* add API for markdown-export

* add front-matter support

* optimize fileName for markdown-export

* fornt-matter与正文中间增加换行符
2020-12-27 23:58:52 +08:00
Ryan Wang 276aea4bdd
feat: #766 (#1210) 2020-12-25 22:02:50 +08:00
Ryan Wang 913bc6042e
fix: #1180 (#1209) 2020-12-25 22:00:31 +08:00
Ryan Wang 6b8cf2f57e
feat: #1160. (#1203) 2020-12-25 21:40:04 +08:00
Raremaa 625a89de77
fix: #1200 (#1207) 2020-12-25 21:36:39 +08:00
John Niang 6fb65d0128
Make more friendly error track (#1191)
* 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
2020-12-12 23:47:06 +08:00
Ryan Wang 9951a83ad6
chore: remove redis cache store (#1190)
* chore: remove redis cache store.

* chore: remove redis cache store.

* chore: update build.gradle.
2020-12-09 10:44:40 +08:00
John Niang 30e28b5257
Upgrade dependencies (#1184)
* 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
2020-12-08 01:20:19 +08:00