Commit Graph

1626 Commits (8ba115ffb6fd08568b7699ced72e0baa91f87759)

Author SHA1 Message Date
ruibaby 46000fd0d0 release: 1.4.0-beta.1 2020-07-19 22:43:28 +08:00
Ryan Wang 69018e85d3
fix: #853 (#979) 2020-07-19 22:04:43 +08:00
Ryan Wang 23789b7acd
fix: #822 (#981) 2020-07-19 22:04:31 +08:00
John Niang 50b19f8d3a
pref: make some unnecessary error detail hide (#962) 2020-07-14 00:57:24 +08:00
John Niang 7a71c85862
Add iterable objects validation (#970) 2020-07-14 00:15:16 +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
sheiy feefebe07f
修改缓存时长 (#954) 2020-07-09 10:59:18 +08:00
coortop 8734e99445
perfect: Link random order display,listByRandom and listTeamsByRandom. (#952) 2020-07-09 01:08:21 +08:00
Li 65c1424086
fix #950 附件不存在时删除报错的问题 (#951) 2020-07-08 11:21:47 +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
BigBang019 2b99bd599f
Fix issue #515 & #592 (#835)
* add release access and branch access(#515)

* add release and branch access(#515)

* always update to latest release(#515)

* #515

* #515

* add testcases(#515)

* fix 515

* fix 515

* deal with connection refused

* disable disk operation related test

* fix #592

* fix #515 & #592

* mockito test

* ignored network related test

* resolve conflict
2020-07-02 23:34:47 +08:00
John Niang a179f4fc9c
Add top priority sort at post list in category and tag (#918) 2020-06-16 14:37:43 +08:00
John Niang aee79ef7b4
Remove restart feature (#917)
* Ignore application-local file

* Remove restart feature
2020-06-15 23:43:02 +08:00
John Niang 658f0a2b3f
fix: Fix startup exception and theme imports in dev environment (#916)
* Log error instead of throwing while starting halo

* Provide unknown version support

* Fix code format
2020-06-15 21:45:01 +08:00
John Niang 73362869b7
Perfect checkstyle.xml (#915) 2020-06-14 12:40:04 +08:00
coortop 4ee9e151d4
feat: add links sort by random (#912)
* feat: add links sort by random

* feat: add links sort by random
2020-06-13 22:29:10 +08:00
John Niang ccea5ed6c3
Refactor theme sacn (#869)
* Provide theme collector

* Refactor theme property scan

* Refactor ThemePropertyScanner

* Rectify return type

* Change activated theme fetch strategy

* Refactor theme service

* Reformat unexpected codes

* Remove unused imports

Co-authored-by: johnniang <johnniang@fastmail.com>
2020-06-08 10:26:32 +08:00
John Niang cf6cd7c3d2
Remove redundant annotations (#880) 2020-05-29 00:18:53 +08:00
giveup bc30ab7c03
改进脱敏 (#874)
* fixed typos

* 改进脱敏

* 改进脱敏

* 添加脱敏单元测试

Co-authored-by: Your Name <you@example.com>
2020-05-27 23:29:00 +08:00
giveup b40c3f7ed9
fixed typos (#873)
Co-authored-by: Your Name <you@example.com>
2020-05-25 17:58:34 +08:00
Ryan Wang 2b8f218c8f
chore: remove fastjson dependency. (#871)
* chore: remove fastjson dependency.

* fix: test.
2020-05-23 15:17:30 +08:00
Ryan Wang f383cd4aa3
fix: #785 (#854) 2020-05-16 19:21:42 +08:00
sebastiancoteanu c3f777fba3
pref: replace == usage with equals to avoid bugs. (#851)
Co-authored-by: sebastiancoteanu <sebastian.coteanu@arnia.ro>
2020-05-15 16:55:07 +08:00
Ryan Wang ecc97c207f
chore: remove useless code and dependencies. (#845)
* chore: remove useless code and dependencies.

* Update build.gradle
2020-05-15 11:40:02 +08:00
Ryan Wang e7addd41f9
fix: rollback #714 pull request. (#838) 2020-05-12 11:49:40 +08:00
Yqhg8Nt4tuu 4197ca33d8
feat: Support Rename and Edit Staitc Files (#573) (#819)
* Add rename API

* Add save API

* Add unit test for rename API

* Fix an indentation

* Add a space before '{'

* Add a Param and some invalid checks

* Change comments

* Change test annotation

* Delete impl test unit

* Add directory traversal check for static file operations

Co-authored-by: Rokita <35868425+Ruukita@users.noreply.github.com>
2020-05-11 22:25:08 +08:00
Gxz-NGU a81f335ee8
pref: 删除冗余注解 (#827) (#830) 2020-05-07 15:20:24 +08:00
chaos.su 9ec3088f1e
support distributed cache and customized halo home. (#754)
* support distributed cache with redis

* fix HOME_DIR; theme configurations auto update in distributed deployment; update redis cache configuration demo

* remove redundant const of WORK_DIR

Co-authored-by: John Niang <johnniang@riseup.net>
2020-05-01 14:43:01 +08:00
liaozan f0f354af07
抽取 yyyy-MM-dd-HH-mm-ss- 格式的日期pattern到工具类中 (#813)
* 排序使用Comparator静态方法实现

* 修复排序逻辑错误

* fix compile error

* 抽取 yyyy-MM-dd-HH-mm-ss- 格式的日期pattern到工具类中
2020-05-01 00:30:23 +08:00
liaozan 36b3a2d3b4
排序使用Comparator静态方法实现 (#812)
* 排序使用Comparator静态方法实现

* 修复排序逻辑错误

* fix compile error
2020-04-30 22:25:37 +08:00
Wu Yuncheng 532b7f0532
fix: volatile in double-checked locking (#799) 2020-04-28 17:58:37 +08:00
ruibaby 11cbe95ed5 release: 1.3.2 2020-04-12 13:32:36 +08:00
jinqilin721 246930ecbe
feat: 附件上传增加华为云OBS支持 (#756)
* 附件上传增加华为云OBS支持

* Revert "附件上传增加华为云OBS支持"

This reverts commit cad9a352

* 附件上传增加华为云OBS支持
2020-04-09 10:03:37 +08:00
Ryan Wang ba1eb8fc50
fix: #748 (#749) 2020-04-05 14:51:07 +08:00
bear 3a45b7a5ed
Support MFA-TOTP Auth (#745)
* add tfa utils

* MFA check api completed

* adminController add loginPreCheck api

* halo-admin test

* checkstyle

* add unit test

* reset MFA
2020-04-04 19:41:22 +08:00
Ryan Wang b3dafa195a
feat: add switch type for theme settings. (#735) 2020-03-29 11:48:37 +08:00
ruibaby c353411997 release: 1.3.1 2020-03-28 16:03:03 +08:00
Lei XinXin b4ebf7218e
新增DateTimeUtils (#731)
* 新增DateTimeUtils

* 提交测试用例
2020-03-28 15:08:24 +08:00
ming 49486198df
fix: #713, 开发环境也能获取版本信息了 (#714)
* fix #713, 开发环境也能获取版本信息了

* banner version show ok
2020-03-28 14:33:23 +08:00
wtune f21f5933bf
feat: add index on attachments.create_time (#725) 2020-03-28 00:16:12 +08:00
wtune 51e0620393
feat: add index on photos.create_time (#727) 2020-03-28 00:15:45 +08:00
wtune 4f99e72669
feat: add index on menus.name (#722) 2020-03-27 17:07:25 +08:00
wtune 01e4e5e271
feat: add index on attachments.media_type (#718) 2020-03-27 12:58:27 +08:00
ruibaby 89dc411b0f release: 1.3.0 2020-03-25 18:15:09 +08:00
iwangbingzhi abaaadafe8
update some chinese descriptions (#711)
Co-authored-by: wangbingzhi <853244870@qq.com>
2020-03-25 09:01:07 +08:00
ruibaby 8f2894a2a4 release: 1.3.0-beta.4 2020-03-24 23:02:53 +08:00
Ryan Wang bc75275815
feat: provide static mapping feature (#710)
* Provide static mapping feature

* feat: filter inner mapping for static storage.
2020-03-24 22:48:58 +08:00
Ryan Wang 2792d11cd2
Fix installation bug (#708) 2020-03-24 20:42:15 +08:00
Ryan Wang ac52e7f677
fix: #703 (#705) 2020-03-22 22:15:52 +08:00
Ryan Wang bee21d7de8
refactor: get database version. (#698) 2020-03-20 22:54:05 +08:00
Ryan Wang 40f510f371
refactor: independent sheet. (#697) 2020-03-20 20:34:51 +08:00
Ryan Wang 26fdbb2cf3
chore: upgrade flexmark version. (#695)
* chore: upgrade flexmark version.

* fix: test case.
2020-03-19 17:01:17 +08:00
Ryan Wang a70780c5df
style: code. (#692) 2020-03-18 21:44:46 +08:00
Ryan Wang c847bef498
feat: support custom email templates. (#691) 2020-03-18 21:38:26 +08:00
ruibaby 8eac5716f1 release: 1.3.0-beta.3. 2020-03-18 01:19:25 +08:00
Ryan Wang fc989c965c
chore: upgrade gradle and dependencies. (#688) 2020-03-17 23:56:24 +08:00
Ryan Wang d4cfc3ae7f
feat: #598 (#689) 2020-03-17 23:56:01 +08:00
Ryan Wang a77ebed299
refactor: backup service. (#687)
* refactor: backup service.

* fix: test case error.
2020-03-17 20:22:51 +08:00
wtune 03a43fb245
feat: add Index on comments.(type,status) and comments.parent_id (#686) 2020-03-17 15:18:56 +08:00
wtune 9ccd23d730
feat: add Index on posts.(type,status) and posts.create_time (#684) 2020-03-17 15:17:51 +08:00
Ryan Wang 4bc8ad44da
feat: add data export and import api. (#672)
* feat: add data export and import api.

* refactor: data export and import api.
2020-03-17 13:14:15 +08:00
Ryan Wang d6b3d6cb5d
fix: #547 (#677) 2020-03-16 23:43:25 +08:00
Ryan Wang fae1df3859
fix: post query sql. (#676) 2020-03-16 22:04:44 +08:00
wtune 4d431fd85d
feat: add Index on theme_settings.setting_key and theme_settings.theme_id (#681) 2020-03-16 22:03:44 +08:00
wtune 2363f4adf7
feat: add Index on post_tags.post_id and post_tags.tag.id (#675) 2020-03-16 14:11:58 +08:00
wtune 1248cb7b14
feat: add Index on post_categories.post_id and post_categories.category_id (#671) 2020-03-16 13:22:24 +08:00
wtune 839a029012
feat: add Index on logs.create_time (#668) 2020-03-16 11:21:35 +08:00
bestsort fe65eccdf7
reduce: memory usage during image upload (#659)
* optimize FileHandler's logic

* fix code style

* fix: maybe happen OOM when file upload, see #529

* refactor: HashMap -> ConcurrentHashMap

* remove unused class

* reduce memory usage during image upload

* code clean
2020-03-14 19:19:35 +08:00
wtune e357b7a462
feat: add Index on comments.post_id (#649) 2020-03-14 19:16:33 +08:00
wtune c1f01df394
feat: add index on categories.name and categories.parent_id (#658)
* Add Index on categories.name

* Add Index on categories.name and categories.parent_id
2020-03-14 19:10:32 +08:00
wtune 124f352ebb
feat: add Index on links.name (#651) 2020-03-14 17:52:10 +08:00
wtune b2b349ae27
feat: add Index on menus.parent_id (#655) 2020-03-14 17:51:40 +08:00
wtune ee4bc01f65
feat: add Index on photos.team (#657) 2020-03-14 17:50:47 +08:00
wtune fc37803e73
feat: add Index on tags.name (#653) 2020-03-14 17:50:01 +08:00
Ryan Wang c5af5d787d
refactor: hibernate column build. (#638)
* refactor: hibernate column build.

* feat: after the database migration fails, the record table is automatically cleaned up.
2020-03-14 11:10:34 +08:00
Ryan Wang 7ae722e6fd
fix: #629 (#641) 2020-03-14 11:09:48 +08:00
bestsort 1d020ff550
Optimize FileHandler's logic (#639)
* optimize FileHandler's logic

* fix code style

* fix: maybe happen OOM when file upload, see #529

* refactor: HashMap -> ConcurrentHashMap

* remove unused class
2020-03-14 10:05:53 +08:00
Ryan Wang 153f8ebbef
refactor: attachment month path. (#636) 2020-03-12 15:04:35 +08:00
Ryan Wang 437e59d8a2
refactor: post month path type. (#635) 2020-03-12 14:43:16 +08:00
Ryan Wang 22b24835aa
refactor: banner info. (#634) 2020-03-11 20:09:59 +08:00
Ryan Wang 6b967ad256
refactor: remove recovery api. (#633)
* refactor: remove recovery api.

* refactor: remove recovery api.
2020-03-11 13:50:53 +08:00
Ryan Wang a563c493e0
refactor: metas variable. (#632)
* refactor: metas variable.

* refactor: metas variable.
2020-03-11 13:49:37 +08:00
ruibaby 378049ba21 release: 1.3.0-beta.2 2020-03-08 11:45:10 +08:00
John Niang 55a9d573bc
fix: a fatal filter bug (#626) 2020-03-08 11:27:41 +08:00
Ryan Wang fd251a4724
refactor: pagination tag. (#625) 2020-03-08 11:25:44 +08:00
Ryan Wang 38b4bb4aeb
chore: upgrade default theme. (#624) 2020-03-07 22:54:52 +08:00
Ryan Wang fa50d2d5d6
refactor: freemarker pagination tag. (#621) 2020-03-07 10:53:13 +08:00
Ryan Wang eb71e98087
refactor: modify the address of the default comment plugin. (#620) 2020-03-06 14:10:00 +08:00
Ryan Wang 491b8c89e8
fix: failure of suffixes in posts. (#619) 2020-03-06 14:09:36 +08:00
Ryan Wang d82f3847c2
feat: support meta_keywords and meta_description in every page. (#612) 2020-03-04 20:03:08 +08:00
Ryan Wang a9fedef8b2
feat: support set archives page size. (#610) 2020-03-02 14:41:16 +08:00
Ryan Wang b70806960b
fix: attachment upload to sm.ms failed. (#609)
* fix: attachment upload to sm.ms failed.

* fix: attachment upload to sm.ms failed.

* refactor: SmmsFileHandler.

* refactor: SmmsFileHandler.
2020-03-02 13:04:53 +08:00
Ryan Wang b23755a568
feat: support paging of archive pages. (#608)
* feat: support paging of archive pages.

* fix: test case.
2020-03-01 13:52:27 +08:00
Ryan Wang 62eba99d21
feat: add editorType for post. (#605)
* feat: add editorType for post.

* fix: test case failed.
2020-02-28 23:17:07 +08:00
Ryan Wang 949a3da3de
refactor: installation data. (#600) 2020-02-27 16:23:22 +08:00
Ryan Wang 136b1fb3b9
refactor: change url field to slug in post. (#597) 2020-02-25 19:44:30 +08:00
Ryan Wang f4a4d5f250
feat: #586 (#595) 2020-02-25 16:08:59 +08:00
ruibaby 7166829d87 release: 1.3.0-beta.1. 2020-02-25 15:30:19 +08:00
Ryan Wang ca33475e31
chore: upgrade default theme. (#594)
* chore: upgrade default theme.

* Update anatole
2020-02-25 13:18:55 +08:00
Ryan Wang 72d59a5617
refactor: stop supporting admin folder mapping in workspace. (#593) 2020-02-25 12:52:17 +08:00