Commit Graph

2115 Commits (1d25a58767bb47984a97d86c761b5f71c8ad62ae)

Author SHA1 Message Date
John Niang be5c60083c
Fix folder copy error: ProviderMismatchException (#1249) 2021-01-28 00:19:22 +08:00
John Niang bcf26fdc50
Refactor Dockerfile with layered jar (#1248)
* Refactor Dockerfile with layered jar

* Add projectVersion print task

* Refactor docker build process

* Remove aliyun maven mirror

* Correct multi platforms list

* Correct multi platforms list again

* Make docker platforms configurable
2021-01-27 23:55:57 +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 eaa3a80358
Update README.md 2021-01-25 23:13:56 +08:00
Ryan Wang 305b62c0e4 release: 1.4.3-beta.2. 2021-01-25 22:00:27 +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
John Niang 7cb4f3464a
Replace travis ci with github action (#1212)
* 1196 refactor/ci (#3)

* Remove .travis.yml

* Refactor github action partially

* Fix yaml syntax error

* Add run command for every step

* Set current branch name into halo.yml temporarily

* Test validation.yml

* Add upload-release-asset step into release.yml

* Perfect release.yml

* Fix indent error

* Refactor on condition in release.yml

* Refactor on condition in validation.yml

* Fix release.yml

* Fix upload_url value set

* Fix environment set error

* Change artifact variable from output into global environment

* Fix deprecated environment set method

* Fix environment variable set error

* Change assert_content_type with application/zip

* Refactor upload release step

* Fix release id set

* Fix release id set again

* Fix syntax error

* Refactor upload process

* Refactor halo ci

* Make build step rely on check step

* Inspect docker action

* Inspect docker action again

* Refine bootBuildImage config

* Refactor bootBuildImage config and halo ci

* Fix download artifact path error

* Fix docker image name concat error

* Remove downloaded files inspect tips
2021-01-03 22:05:39 +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
Ryan Wang 7c0be43c0d
feat: #1158 (#1176) 2020-12-02 10:24:14 +08:00
Ryan Wang 7de339571d
feat: #1174 (#1177) 2020-12-02 10:23:49 +08:00
Ryan Wang dccd213e72
feat: #1103 (#1173) 2020-12-01 14:11:11 +08:00
Ryan Wang a05c74ae38
Update README.md 2020-11-29 00:49:49 +08:00
Ryan Wang 6c04d5a30d
doc: update swagger contact email. (#1147) 2020-11-12 02:20:14 +08:00
GalvinGao 400d7f7218
Create SECURITY.md (#1144) 2020-11-11 11:03:11 +08:00
Ryan Wang fa3fad1725 release: 1.4.2 2020-11-02 23:33:44 +08:00
Joel Allred 7b40d1643a
Add useJunitPlatform() to build.gradle (#1130)
This is required for the JUnit tests to run.

Source:
https://docs.gradle.org/current/userguide/java_testing.html#using_junit5
2020-11-02 22:51:52 +08:00
John Niang 92eda2faf8
Fix failing tests (#1131) 2020-11-02 22:35:40 +08:00
Ryan Wang c9ce7d29fd
feat: #1119 (#1120)
* feat: #1119

* feat: #1119

* pref: allows multiple same menus.

* feat: support create menu in batch.

* feat: support delete menu in batch.

* feat: #1119
2020-11-02 22:33:23 +08:00
Wh1te ff734ed153
feat: support automatic cleaning recycled posts. #1031 (#1114) 2020-10-25 21:23:14 +08:00
johnwonder b5f742582c
fix bug #1085 (#1122)
* fix bug #1085

* move exclude to Application class

* enable multipart configuration

* fixt multipart config error and catch MaxUploadSizeExceededException

* fix checkstyle error

* fix if not followed by whitespace

* fix checkstyle error

* modify multipart exception handling to  global exception handling

* remove unnecessary catch

* remove unnecessary catch
2020-10-25 13:56:01 +08:00
John Niang 2ca92b5391
Refactor AbstractConverter constructor (#1110) 2020-10-14 23:42:33 +08:00
Wh1te 036644bf10
feat: 删除主题时可选是否删除配置 (#1105)
* feat: 删除主题时可选是否删除配置

* doc: add java doc for run/halo/app/repository/ThemeSettingRepository.java#deleteByThemeId

Co-authored-by: Ryan Wang <i@ryanc.cc>
2020-10-12 22:30:31 +08:00
Ryan Wang 5520baf046
fix: #1098 (#1099) 2020-10-07 16:00:46 +08:00
Wh1te ab74d8c28b
feat: add MinIO support for attachment management. #1024 (#1097) 2020-10-07 10:52:20 +08:00
Wh1te a4da9a7d58
feat: 文章固定链接类型增加年型 #1026 (#1095) 2020-10-01 10:29:20 +08:00
Wh1te e58d8fbe73
feat: 添加或修改友链时校验 name 和 url 是否重复 (#997) (#1079) 2020-09-30 00:25:26 +08:00
Dylan·Yuan 868efecdce
pref: 添加错误码&修改过时方法 (#1089) 2020-09-30 00:15:55 +08:00
OnFr d3953fe864
fix: #1028 (#1094) 2020-09-30 00:06:01 +08:00
Ryan Wang 5828516733 release: 1.4.1 2020-09-29 23:58:51 +08:00
Ryan Wang 683caf7a85
fix: #1082 (#1083) 2020-09-25 09:24:23 +08:00
Ryan Wang a69168e764 release: 1.4.0 2020-09-24 00:20:50 +08:00
John Niang 845fe1114f
Fix handling root theme folder unexpectedly (#1081)
* Fix handling root theme folder unexpectedly

* Ignore .git folder while finding root path
2020-09-24 00:16:02 +08:00
John Niang d0568686c0
Fix theme zip file upload bug and provide finding root folder function (#1080)
* Fix theme zip file upload bug and provide finding root folder function

* Update ThemeServiceImpl.java

Co-authored-by: Ryan Wang <i@ryanc.cc>
2020-09-23 20:20:52 +08:00
Ryan Wang fc5742eae8
chore: remove hazelcast cache store. (#1076) 2020-09-22 01:20:05 +08:00
manjusaka d60a940a62
Update BaseCommentParam.java (#1072)
兼容微信头像长度
2020-09-18 08:27:24 +08:00
王存露 ed46ab7031
fix: #1068 (#1070)
* fix: #1068

* add: ThemeSettingService.save add SERIALIZABLE level

* add: saveSettingsByThemeId Api add @CacheLock
2020-09-15 00:13:01 +08:00
王存露 504e6e187e
fix: #897 && fix: halo-dev/halo-admin#236 (#1057)
* fix: #897

* fix: 网站备份时,上级目录不存在的问题 (#1056)

* 增加网站备份,临时文件不存在时创建

* 增加数据导出,临时文件不存在时创建

* 修改整站备份,数据导出,临时文件不存在时创建

* add: file upload unit test

* change : FileHandlersTest.java file format

* feat: #1065 (#1066)

* feat: #1065

* feat: #1065

* fix: #897

* add: file upload unit test

* change : FileHandlersTest.java file format

* fix: https://github.com/halo-dev/halo-admin/issues/236

* delete : FileHandlersTest.java
change : FilenameUtilsTest.java add file name double suffix test

Co-authored-by: bruin-sxk <45200590+bruin-sxk@users.noreply.github.com>
Co-authored-by: Ryan Wang <i@ryanc.cc>
2020-09-14 13:14:59 +08:00
Ryan Wang ac8b43a30e
feat: #1065 (#1066)
* feat: #1065

* feat: #1065
2020-09-13 10:29:51 +08:00