guqing
fcbf0031a4
feat: plugin supports multiple ways of specifying licenses ( #2152 )
...
* feat: plugin supports multiple ways of specifying licenses
* feat: add unit test case for deserialize license
2022-06-15 15:36:12 +00:00
guqing
83d668b0a9
feat: add plugin unstructured resource loader ( #2154 )
...
* feat: add plugin unstructured resource loader
* feat: add test unit case
2022-06-14 15:38:12 +00:00
guqing
6bbaa9aeba
feat: add reverse proxy router registry for plugin by reverse proxy rules ( #2151 )
...
* feat: add reverse proxy router registry for plugin by reverse proxy rules
* Update src/main/java/run/halo/app/plugin/resources/ReverseProxyRouterFunctionFactory.java
Co-authored-by: John Niang <johnniang@fastmail.com>
* refactor: merge stream operation
* refactor: plugin composite router function
* feat: add unit test case
Co-authored-by: John Niang <johnniang@fastmail.com>
2022-06-14 10:58:21 +00:00
guqing
a2f49c60bc
feat: add plugin life cycle management ( #2134 )
...
* feat: add plugin life cycle management
* refactor: plugin lifecycle endpoint mapping
2022-06-13 02:36:11 +00:00
John Niang
a956758a2f
Overwrite Jackson2Json decoder and encoder ( #2145 )
2022-06-09 08:04:13 +00:00
guqing
b3b13bc820
feat: add yaml descriptor finder for plugin ( #2132 )
...
* feat: add yaml plugin descriptor finder
* refactor: json assert
* refactor: plugin descriptor finder
* refactor: yaml plguin finder
* refactor: plugin dependencies
2022-06-07 06:32:12 +00:00
John Niang
1024f71635
Replace webmvc with webflux ( #2138 )
...
* Replace webmvc to webflux
Signed-off-by: johnniang <johnniang@fastmail.com>
* Remove jetty dependency
Signed-off-by: johnniang <johnniang@fastmail.com>
* Refactor authentication module
* Refactor authentication module
* Migrate authorization module
* Refactor Login components
* Fix broken imports
* Upgrade springdoc version
* Refine security matcher using pathMatchers utility
2022-06-07 02:20:12 +00:00
guqing
19db04c430
refactor: policy rule constructor to avoid null values ( #2131 )
...
* refactor: policy rule constructor to avoid null values
* fix: unit test case
2022-06-02 02:52:10 +00:00
guqing
f4a943e45a
refactor: rule resolver and role binding lister ( #2119 )
2022-05-30 09:08:09 +00:00
guqing
9a05942bc4
feat: add yaml unstructured loader ( #2122 )
2022-05-28 09:44:08 +00:00
guqing
3c856d04af
feat: add personal access token authentication mechanism ( #2116 )
...
* feat: add personal access token authentication
* fix: merge conflicts
* refactor: remove base62 codec
* refactor: remove deprecated method
* feat: add base64 test
* chore: add todo for test only methods
2022-05-27 06:26:37 +00:00
John Niang
b5d7f194ef
Create unstructured Extension which can store any Extensions ( #2111 )
...
* Extract ExtensionOperator and MetadataOperator
* Move groupVersionKind methods up to ExtensionOperator interface
* Add Unstructured Extension for generic Extension
* Refine mapping of GVK and Scheme
* Add two compatible methods
2022-05-26 08:38:10 +00:00
guqing
0f4ae08fd8
feat: add logout handler ( #2110 )
...
* feat: add logout handler
* chore: delete unused code
* fix: merge conflicts
2022-05-25 09:58:10 +00:00
guqing
c5df6d3dbb
feat: add default role binding lister and role getter ( #2108 )
...
* feat: add default role binding lister and role getter
* feat: add initial capacity for role binding list
2022-05-25 07:52:10 +00:00
John Niang
5f9daf4735
Add JSON schema generator and validator ( #2093 )
...
Only validate the JSON schema when saving Extension into database.
2022-05-17 16:06:12 +00:00
John Niang
264f9e39cb
Add support for Extension mechanism ( #2086 )
...
* Add support for Extension mechanism
1. Add ExtensionStore
2. Add Extension
3. Add Scheme
* Add more unit tests
* Fix checkstyle violations
* Remove unused import
2022-05-17 10:36:13 +00:00
guqing
be2c0654a2
chore: add checkstyle rule ( #2091 )
...
* feat: add unused imports checkstyle rule
* feat: add java doc style rule
* fix: check style
2022-05-17 06:46:11 +00:00
guqing
b4e9b54ffe
refactor: remove authorization filter and replace it with the RequestInfoAuthorizationManager ( #2081 )
2022-05-11 02:26:11 +00:00
guqing
d9bccdb5e1
feat: Add rule resolver and authorization filter ( #1904 )
...
* feat: Add request info resolver and evaluation
* feat: Add attributes record
* feat: Add rule resolver and authorization filter
* feat: Add authorization intergation test case
* chore: add todo for only testing class
2022-04-29 06:39:08 +00:00
guqing
e8d8ef8f28
feat: Add jwt token and provider for jwt authentication ( #1871 )
2022-04-22 06:00:12 +00:00
guqing
673c2068d9
feat: Add default bearer token resolver for rfc6750#section-2.1-2.3 ( #1869 )
2022-04-22 03:04:10 +00:00
guqing
599ab5618b
feat: Add bearer token errors for rfc6750#section-3.1 ( #1868 )
2022-04-21 08:46:12 +00:00
guqing
c999c35a20
feat: Add bearer token and bearer authentication ( #1864 )
2022-04-21 07:58:12 +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
guqing
4f1a3c5f0b
refactor: post and cateogry authentication ( #1678 )
2022-03-01 13:32:52 +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
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
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
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
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
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
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
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
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
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
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
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
Ryan Wang
9ba9dc40cc
chore: remove deprecated code. ( #1334 )
2021-03-29 16:57:21 +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
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
John Niang
65ed8b84af
Cache current theme in theme repository ( #1286 )
2021-02-25 22:39:40 +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
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
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
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
6c04d5a30d
doc: update swagger contact email. ( #1147 )
2020-11-12 02:20:14 +08:00
John Niang
92eda2faf8
Fix failing tests ( #1131 )
2020-11-02 22:35:40 +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
王存露
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
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
John Niang
60ad4dad80
Fix an error about version comparision in development environment ( #1039 )
...
* Let unknown version as maximum version
* Fix VersionUtilTest error
* Remove deprecated version comparision method and related test
2020-08-23 17:47:52 +08:00
John Niang
3bfb60d5fb
Enable beta version comparable ( #1011 )
...
* Ensure whitespace after comma
* Provide version resolver
* Make version comparable
* Refactor version util with version resolver
2020-08-03 02:07:03 +08:00
John Niang
60b2527003
Reformat all codes with newly checkstyle(more strict indentation check) ( #1009 )
...
* Reformat all codes with newly checkstyle
* Fix invalid indentation of code comment
* Fix indentation error of test source codes
2020-08-02 09:41:36 +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
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
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
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
giveup
bc30ab7c03
改进脱敏 ( #874 )
...
* fixed typos
* 改进脱敏
* 改进脱敏
* 添加脱敏单元测试
Co-authored-by: Your Name <you@example.com>
2020-05-27 23:29:00 +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
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
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
Lei XinXin
b4ebf7218e
新增DateTimeUtils ( #731 )
...
* 新增DateTimeUtils
* 提交测试用例
2020-03-28 15:08:24 +08:00
iwangbingzhi
abaaadafe8
update some chinese descriptions ( #711 )
...
Co-authored-by: wangbingzhi <853244870@qq.com>
2020-03-25 09:01:07 +08:00
Ryan Wang
a70780c5df
style: code. ( #692 )
2020-03-18 21:44:46 +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
8f36a5d124
fix : #549 ( #587 )
...
* fix : #549
* style: change normalizeImageUrl to normalizeUrl.
2020-02-23 23:34:20 +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
johnniang
118aaf8ddc
Create one-time token mechanism
2020-02-12 21:10:00 +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
Ryan Wang
08c579a095
feat: support theme require halo version. ( #544 )
...
* feat: support theme require halo version.
* fix: com.sun.xml.internal.ws.util does not exist error.
* fix: com.sun.xml.internal.ws.util does not exist error again.
* Update ThemeServiceImpl.java
2020-02-04 16:35:02 +08:00
John Niang
bc129977d9
Fix test error ( #528 )
2020-01-31 11:05:15 +08:00
guqing
61f0748a6a
refactor: WordPress data import ( #506 )
...
* refactor: WordPress data import
* refactor: change wordpress convert class to interface and add wordpress convert null judgment
* fix: add some class doc
* fix: exclude commons io
* feat: add custom annotation: @PropertyMappingTo and reflection utils, It can be used to mapping the relationship between source model and target model
* feat: replace the original wordpressconvert implementation with a custom annotation
* fix: change wordpress convert method name
* fix: change wordpress convert method name
* fix: merger conflict
2020-01-20 15:23:48 +08:00
johnniang
dc166d0b4a
none: add some test case, but ignored
2020-01-15 23:04:12 +08:00
pencilso
d867f4cca3
feat: add leveldb cache store impl ( #494 )
...
add leveldb config by yaml dev
add cache impl test
2020-01-12 19:41:09 +08:00
ruibaby
79e66cd3c0
style: add some comment.
2020-01-01 21:24:28 +08:00
johnniang
d59877a9ce
Fix directory traversal vulnerability
2019-12-13 00:17:11 +08:00
johnniang
bd2eebf1cd
Add base post services
2019-12-11 23:10:01 +08:00
johnniang
2153998a32
Secure backup file downloading
2019-11-30 01:29:01 +08:00
ruibaby
61a98b8f7b
style: change some class name.
2019-11-25 23:13:42 +08:00
ruibaby
cd2c3a17b3
feat: unified formatted slug.
2019-11-18 12:55:32 +08:00
johnniang
c7d88b1d1f
Accomplish backup listing and deletion
2019-11-18 02:37:36 +08:00
johnniang
a041409ff7
Accomplish zip utility
2019-11-17 23:00:50 +08:00
johnniang
74349a11e2
Add Transactional support
2019-07-02 16:20:19 +08:00
johnniang
000d1ff1f2
Complete halo admin updation feature
2019-06-13 00:07:10 +08:00
johnniang
cad37f5f81
Fix #198 failed to delete theme folder
2019-06-12 20:40:20 +08:00
johnniang
43bfa89dac
Fix test error of HaloUtilsTest
2019-06-07 15:50:25 +08:00
johnniang
46954ec610
Fix #185 Desensitize the old password while logging
2019-06-07 10:50:08 +08:00
johnniang
7e85cd6887
Fix #173
2019-06-01 12:33:44 +08:00
johnniang
9aba7ca37c
Fix test error again
2019-05-30 23:48:19 +08:00
johnniang
78d7f17a1b
Resolve test error
2019-05-30 23:41:14 +08:00
johnniang
0c8955dfcf
Complete theme updating
2019-05-30 23:06:59 +08:00
ruibaby
58d5a4e6e2
Fixed sitemap.html rendered error.
2019-05-24 00:23:08 +08:00
ruibaby
93f146c2c1
Support post and sheet export.
2019-05-24 00:01:40 +08:00
johnniang
527d8bf390
Ignore GithubTest an GitTest
2019-05-22 23:46:26 +08:00
johnniang
08ba24d330
Add git and github test
2019-05-21 23:45:50 +08:00
johnniang
30955e598f
Complete issue( #156 )
2019-05-20 22:36:41 +08:00
johnniang
ed81be4ffd
Remove deprecated methods and resolve warnings on building
2019-05-12 23:49:27 +08:00
johnniang
9bad78d552
Fix unsupported theme media type bug
2019-05-09 22:25:30 +08:00
johnniang
3738b7adde
Fix test errors
2019-05-09 00:47:32 +08:00
johnniang
d16a1f8de6
Remove resolved TODO tasks
2019-05-06 22:47:42 +08:00
johnniang
0b35392b1a
Fix cache expiry calculation error
2019-04-29 17:02:09 +08:00
johnniang
b0cb31ad48
Enhance string cache store
2019-04-29 01:24:02 +08:00
ruibaby
6f35efe90f
Support journal search.
2019-04-26 22:58:27 +08:00
johnniang
c438d99d47
Complete migration handler
2019-04-26 17:09:27 +08:00
johnniang
388a37adfe
Enhance InputConverter
2019-04-25 19:59:19 +08:00
johnniang
4819a9824f
Complete option default value and type feature
2019-04-25 02:23:19 +08:00
johnniang
7b21b085e7
Change Post entity to Sheet
2019-04-24 11:27:20 +08:00
johnniang
d0576bf653
Change log package to logger
2019-04-22 22:22:40 +08:00
johnniang
cee5ccba69
Complete post likes feature
2019-04-22 21:11:33 +08:00
johnniang
27a8460ce1
Complete event queue publishing
2019-04-21 22:52:32 +08:00
johnniang
5a7b02c4aa
Convert theme setting with type
2019-04-21 00:52:43 +08:00
johnniang
5b59a8ab50
Complete theme fetching feature
2019-04-19 13:57:28 +08:00
johnniang
01b57826f0
Refactor theme uploading and addition
2019-04-19 10:15:28 +08:00
johnniang
3d17e0f786
Perfect FileUtils
2019-04-19 08:31:05 +08:00
johnniang
5ebf5653f3
Move theme config handler to new package
2019-04-18 23:42:51 +08:00
johnniang
dda7225b2d
Refactor theme configuration and theme property resolvers
2019-04-11 23:42:24 +08:00
johnniang
901a6a0456
Change Tab to Group
2019-04-10 11:58:40 +08:00
johnniang
e84025e9e3
Complete yaml theme configuration resolver
2019-04-10 11:53:22 +08:00
johnniang
f72be35337
Move theme configuration entities
2019-04-10 11:29:20 +08:00
johnniang
8054b8f714
Complete yaml conversion test
2019-04-10 11:12:15 +08:00
johnniang
b8fd0e4841
Add screenshots and isActivated into ThemeProperties
2019-04-09 22:06:46 +08:00
johnniang
fbb3653599
Add DirectoryAttackTest
2019-04-09 14:05:36 +08:00
johnniang
1f703ecf45
Fix some implicit bugs
2019-04-09 09:10:25 +08:00
johnniang
99e12d7941
Deprecate some dangerous services
2019-04-08 11:34:54 +08:00
ruibaby
2db1669e3f
Change base package to run.halo.app.
2019-04-03 20:06:59 +08:00
johnniang
ed8d86f2bd
Fix test errors and comment build.testResources in pom.xml
2019-04-03 09:26:41 +08:00
johnniang
64d108d929
Repackage properties
2019-04-01 23:01:45 +08:00
johnniang
fd59393634
Format error tip for banning
2019-03-29 15:08:38 +08:00
johnniang
fdc294b335
Fix user login error
2019-03-29 14:41:45 +08:00
johnniang
68b78b9267
Refactor CacheStore
2019-03-28 14:21:42 +08:00
johnniang
dd2caca58d
Complete admin login api
2019-03-28 01:16:15 +08:00
johnniang
b6f1a29951
Complete local file deletion service
2019-03-27 19:19:54 +08:00
johnniang
e48e0de6a4
Refactor FileHandler
2019-03-27 13:28:58 +08:00
johnniang
3c56b60b95
Complete uploadQnYun service
2019-03-27 00:40:40 +08:00
johnniang
17e68daf76
Complete file upload locally
2019-03-26 20:32:28 +08:00
johnniang
8575bcb2ad
Refactor Post entity for including Page and Journal entity
2019-03-22 23:50:17 +08:00
johnniang
a7af1e7f77
Refactor OPTIONS and remove it
2019-03-22 19:35:11 +08:00
johnniang
2b7753bccf
Refactor HaloUtils
2019-03-22 19:06:42 +08:00
johnniang
72a0e5e255
Complete TagController#createTag api
2019-03-20 23:28:44 +08:00
johnniang
b2c933fe8b
Add custom conversion test
2019-03-14 22:07:15 +08:00
johnniang
b9e4aea7e8
Remove unrelated files
2019-03-14 11:50:43 +08:00
johnniang
d49a21501d
Refactor InputConverter and OutputConverter
2019-03-11 16:51:21 +08:00
johnniang
82695a2e30
Enhance HaloUtils
2019-03-08 20:47:53 +08:00
johnniang
7715fb07cf
Add HaloUtilsTest for HaloUtils #110
2019-03-05 18:56:05 +08:00
johnniang
06e5c18cc7
Enhance ApiJournalController
2019-03-04 22:53:27 +08:00
johnniang
f79d261ea3
Add BeanUtilsTest
2019-03-04 13:58:00 +08:00
ruibaby
a1e7d80cc8
👽 代码优化
2018-05-30 18:17:34 +08:00
RYAN0UP_
704ca6cf54
👽 1. 发表文章页可直接弹出附件窗口,2. 修复了我疑惑了很久的事:为啥我天天收到测试邮件,原来是我单元测试的邮箱配置没有删。
2018-05-17 12:07:51 +08:00
RYAN0UP_
41c987583e
👽 细节修改
2018-05-11 20:47:51 +08:00
RYAN0UP_
10752ea6d1
👽 Updating Spring Boot to 2.0.1
2018-03-21 11:09:23 +08:00
RYAN0UP_
f1a565a771
fix some bugs
2018-03-19 09:52:30 +08:00
RYAN0UP_
d13bb16c32
first commit
2018-01-21 18:08:26 +08:00