Commit Graph

1745 Commits (fe65eccdf7b8be0796c07e6cccef998440c77611)

Author SHA1 Message Date
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
John Niang e8db12a93d
Enable code style check available (#590)
* Add check style plugin and remove halo code style

* Reformat codes for whole project

* Resolve conflicts due to provided checkstyle.xml
2020-02-25 00:24:51 +08:00
Ryan Wang c224b68fbc
feat: supports setting the post path type and path suffix. (#563)
* feat: build full path for category and tag.

* feat: build full path for post.

* feat: build full path for sheet.

* feat: build full path for post.

* feat: change post url for rss sitemap pages.

* feat: support set links/photos/journal page prefix.

* feat: support set internal sheet's title.

* refactor: build full path method.

* refactor: archives post full path.

* feat: support nextPageFullPath and prePageFullPath variable in pageable pages.

* Update CommentEventListener.java

* feat: make rss formats more standard.

* feat: add some useful freemarker variable.

* feat: add some useful freemarker variable.

* feat: add some useful freemarker variable.

* refactor: preview post and password post.
2020-02-24 23:42:54 +08:00
Ryan Wang 8f36a5d124
fix: #549 (#587)
* fix: #549

* style: change normalizeImageUrl to normalizeUrl.
2020-02-23 23:34:20 +08:00
John Niang b7b11e2c8f
Refactor email service and remove oh-my-email dependency (#584)
* Refactor email service

* Remove oh-my-email dependency

* Add mail dependency

* Provide connection test with email server

* Enable send message asynchronously

* Make more friendly information.
2020-02-21 21:21:28 +08:00
John Niang 4092ed1633
Fix typo about login translate (#583) 2020-02-21 12:19:48 +08:00
John Niang 50af1ec1aa
Fix file upload exception (#581)
* Refactor FileHandler and related implementations

* Add more friendly error throw

* Make tmp directory as default location for multipart file

* Change error message in Chinese
2020-02-20 14:47:57 +08:00
John Niang 594923ebd8
Fix installation on the first startup (#578) 2020-02-18 23:39:17 +08:00
Ryan Wang bffd213a55
Correct demo configuration. (#575) 2020-02-15 20:50:36 +08:00
Ryan Wang 78c389b2d4
Support set thumbnail to category and tag. (#574)
* feat: support set thumbnail to category and tag.

* style: reformat code.
2020-02-15 20:48:04 +08:00
guqing b78e2161e5
feat: add basic functions of demo mode (#569)
* feat: add basic functions of demo mode

* feat: add @disableApi annotation to some API that should be disabled

* feat: add DisableApi test case

* fix: change DisableApi annotation name to DisableOnConditation

* Fix test cases

* Add more strict test on failing case

Co-authored-by: John Niang <johnniang@foxmail.com>
2020-02-14 22:08:38 +08:00
John Niang df3601a751
Refactor halo mode (#571) 2020-02-14 20:57:41 +08:00
Ryan Wang baa2f1ecfd
style: modify email copy. (#568)
* style: modify email copy.

* style: modify email copy.
2020-02-14 16:33:40 +08:00
John Niang f35648ac75
Merge pull request #565 from JohnNiang/fix-backup-function
Fix backup function and create one-time token mechanism
2020-02-12 21:45:45 +08:00
johnniang 118aaf8ddc Create one-time token mechanism 2020-02-12 21:10:00 +08:00
johnniang e0c12a23ee Merge branch 'master' of github.com:halo-dev/halo into fix-backup-function 2020-02-11 21:32:56 +08:00
John Niang 84b6c2aa14
Fix admin index page redirect (#566)
* Add custom RequestMappingHandlerMapping for enable static resources access

* Fix admin index page redirect
2020-02-11 21:29:01 +08:00
johnniang 078e3b3013 Remove temp token mechanism 2020-02-11 19:57:07 +08:00