Commit Graph

156 Commits (1ae186520e940cad66dddf7eecbac86fc0e947c2)

Author SHA1 Message Date
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
Ryan Wang b6527823e4 release: 1.4.9 2021-07-18 23:58:18 +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 f4807b5b56
chore(deps): upgrade spring-boot to 2.5.1 (#1401) 2021-06-20 16:35:49 +08:00
John Niang 1f89ba0ed2
Upgrade SpringBoot to 2.5.0 (#1389) 2021-05-28 08:41:07 +08:00
Ryan Wang 0dff0e9ce5
chore(deps): upgrade to spring boot 2.5.0-RC.1. (#1376) 2021-05-17 20:22:04 +08:00
Ryan Wang 25bb253e82 release: 1.4.8 2021-04-09 15:15:23 +08:00
Ryan Wang eed1ef379d
chore(deps): upgrade ali oss sdk dependency. (#1335) 2021-03-29 23:32:59 +08:00
Ryan Wang 9ba9dc40cc
chore: remove deprecated code. (#1334) 2021-03-29 16:57:21 +08:00
John Niang a3033f294e
Upgrade to Spring Boot 2.5.0-M3 (#1324) 2021-03-27 10:46:47 +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 8e9f8007ca release: 1.4.6. 2021-03-07 22:42:08 +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 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 b591595541 release: 1.4.5. 2021-02-08 20:20:06 +08:00
Ryan Wang d509305998 release: 1.4.4. 2021-02-07 21:26:08 +08:00
Ryan Wang a854adf53a release: 1.4.3. 2021-01-28 00:46:35 +08:00
Ryan Wang d4b0e097cb release: 1.4.3-beta.2. 2021-01-28 00:26:47 +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 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
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
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 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
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
Wh1te ab74d8c28b
feat: add MinIO support for attachment management. #1024 (#1097) 2020-10-07 10:52:20 +08:00
Ryan Wang 5828516733 release: 1.4.1 2020-09-29 23:58:51 +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
Ryan Wang fc5742eae8
chore: remove hazelcast cache store. (#1076) 2020-09-22 01:20:05 +08:00
Ryan Wang dd4c602526 release: 1.4.0-beta.3 2020-09-06 20:53:38 +08:00
Turgay Can 437d4bd81b
Add hazelcast cache store, revised the cache implementation (#1047)
* Add hazelcast cache store, revised the cache implementation

* Remove unsued import

Co-authored-by: Turgay Can <turgay.can@inomera.com>
2020-08-29 14:28:55 +08:00
ruibaby 782079dc9f release: 1.4.0-beta.2 2020-08-04 21:53:48 +08:00
zhixiangyuan 91a54a4bb3
fix: #975 (#977)
* chore: build.gradle add mavenLocal()(#975)

* feat: markdown import compatible with hugo(#975)
2020-07-19 23:09:38 +08:00
ruibaby 46000fd0d0 release: 1.4.0-beta.1 2020-07-19 22:43:28 +08:00
Ryan Wang 83d4ca1565
chore: add zxing dependency. (#960) 2020-07-11 16:57:24 +08:00
sheiy d4b23afb55
pref: 如果系统设置了http代理则创建httpClient时设置代理 (#956)
* 修改缓存时长

* 如果系统设置了http代理则创建httpClient时设置代理

* 如果系统设置了http代理则创建httpClient时设置代理

* 如果系统设置了http代理则创建httpClient时设置代理

* 如果系统设置了http代理则创建httpClient时设置代理

* 如果系统设置了http代理则创建httpClient时设置代理
添加注释

* 添加单元测试
没有useJUnitPlatform()单元测试跑不起来

* 修改单元测试,删除zxing的依赖

* 修正错误的http配置格式

Co-authored-by: Sheiy <35429674@qq.com>
2020-07-10 12:04:43 +08:00
John Niang 11f48781cb
Upgrade spring boot dependency and change some mockito tests (#943)
* Upgrade spring boot dependency and change some mockito tests

* Refactor all test with junit5

Co-authored-by: Ryan Wang <i@ryanc.cc>
2020-07-05 13:36:57 +08:00
Ryan Wang 10fc93569b
chore(deps): bump qiniu-java-sdk from 7.2.28 to 7.2.29 (#840)
Bumps [qiniu-java-sdk](https://github.com/qiniu/java-sdk) from 7.2.28 to 7.2.29.
- [Release notes](https://github.com/qiniu/java-sdk/releases)
- [Changelog](https://github.com/qiniu/java-sdk/blob/master/CHANGELOG.md)
- [Commits](https://github.com/qiniu/java-sdk/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-07-03 09:59:46 +08:00
dependabot-preview[bot] 1a39662f7f
chore(deps): bump flexmarkVersion from 0.62.0 to 0.62.2 (#895)
Bumps `flexmarkVersion` from 0.62.0 to 0.62.2.

Updates `flexmark` from 0.62.0 to 0.62.2
- [Release notes](https://github.com/vsch/flexmark-java/releases)
- [Commits](https://github.com/vsch/flexmark-java/compare/0.62.0...0.62.2)

Updates `flexmark-ext-attributes` from 0.62.0 to 0.62.2
- [Release notes](https://github.com/vsch/flexmark-java/releases)
- [Commits](https://github.com/vsch/flexmark-java/compare/0.62.0...0.62.2)

Updates `flexmark-ext-autolink` from 0.62.0 to 0.62.2
- [Release notes](https://github.com/vsch/flexmark-java/releases)
- [Commits](https://github.com/vsch/flexmark-java/compare/0.62.0...0.62.2)

Updates `flexmark-ext-emoji` from 0.62.0 to 0.62.2
- [Release notes](https://github.com/vsch/flexmark-java/releases)
- [Commits](https://github.com/vsch/flexmark-java/compare/0.62.0...0.62.2)

Updates `flexmark-ext-escaped-character` from 0.62.0 to 0.62.2
- [Release notes](https://github.com/vsch/flexmark-java/releases)
- [Commits](https://github.com/vsch/flexmark-java/compare/0.62.0...0.62.2)

Updates `flexmark-ext-gfm-strikethrough` from 0.62.0 to 0.62.2
- [Release notes](https://github.com/vsch/flexmark-java/releases)
- [Commits](https://github.com/vsch/flexmark-java/compare/0.62.0...0.62.2)

Updates `flexmark-ext-gfm-tasklist` from 0.62.0 to 0.62.2
- [Release notes](https://github.com/vsch/flexmark-java/releases)
- [Commits](https://github.com/vsch/flexmark-java/compare/0.62.0...0.62.2)

Updates `flexmark-ext-ins` from 0.62.0 to 0.62.2
- [Release notes](https://github.com/vsch/flexmark-java/releases)
- [Commits](https://github.com/vsch/flexmark-java/compare/0.62.0...0.62.2)

Updates `flexmark-ext-media-tags` from 0.62.0 to 0.62.2
- [Release notes](https://github.com/vsch/flexmark-java/releases)
- [Commits](https://github.com/vsch/flexmark-java/compare/0.62.0...0.62.2)

Updates `flexmark-ext-tables` from 0.62.0 to 0.62.2
- [Release notes](https://github.com/vsch/flexmark-java/releases)
- [Commits](https://github.com/vsch/flexmark-java/compare/0.62.0...0.62.2)

Updates `flexmark-ext-toc` from 0.62.0 to 0.62.2
- [Release notes](https://github.com/vsch/flexmark-java/releases)
- [Commits](https://github.com/vsch/flexmark-java/compare/0.62.0...0.62.2)

Updates `flexmark-ext-superscript` from 0.62.0 to 0.62.2
- [Release notes](https://github.com/vsch/flexmark-java/releases)
- [Commits](https://github.com/vsch/flexmark-java/compare/0.62.0...0.62.2)

Updates `flexmark-ext-yaml-front-matter` from 0.62.0 to 0.62.2
- [Release notes](https://github.com/vsch/flexmark-java/releases)
- [Commits](https://github.com/vsch/flexmark-java/compare/0.62.0...0.62.2)

Updates `flexmark-ext-gitlab` from 0.62.0 to 0.62.2
- [Release notes](https://github.com/vsch/flexmark-java/releases)
- [Commits](https://github.com/vsch/flexmark-java/compare/0.62.0...0.62.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-07-03 09:59:33 +08:00
dependabot-preview[bot] 5df85542ae
chore(deps): bump hutoolVersion from 5.3.3 to 5.3.8 (#921)
Bumps `hutoolVersion` from 5.3.3 to 5.3.8.

Updates `hutool-core` from 5.3.3 to 5.3.8
- [Release notes](https://github.com/looly/hutool/releases)
- [Changelog](https://github.com/looly/hutool/blob/v5-master/CHANGELOG.md)
- [Commits](https://github.com/looly/hutool/commits)

Updates `hutool-crypto` from 5.3.3 to 5.3.8
- [Release notes](https://github.com/looly/hutool/releases)
- [Changelog](https://github.com/looly/hutool/blob/v5-master/CHANGELOG.md)
- [Commits](https://github.com/looly/hutool/commits)

Updates `hutool-extra` from 5.3.3 to 5.3.8
- [Release notes](https://github.com/looly/hutool/releases)
- [Changelog](https://github.com/looly/hutool/blob/v5-master/CHANGELOG.md)
- [Commits](https://github.com/looly/hutool/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-07-03 09:59:01 +08:00
dependabot-preview[bot] 43836727b6
chore(deps): bump cos_api from 5.6.22 to 5.6.25 (#922)
Bumps [cos_api](https://github.com/tencentyun/cos-java-sdk-v5) from 5.6.22 to 5.6.25.
- [Release notes](https://github.com/tencentyun/cos-java-sdk-v5/releases)
- [Changelog](https://github.com/tencentyun/cos-java-sdk-v5/blob/master/CHANGELOG.md)
- [Commits](https://github.com/tencentyun/cos-java-sdk-v5/commits/v5.6.25)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-07-03 09:58:50 +08:00