Commit Graph

85 Commits

Author SHA1 Message Date
shiqstone
4ad0fe74d0 merge from mindoc-org/mindoc and resolved conflict 2021-04-21 20:40:54 +08:00
shiqstone
1239620f75 refactor and add i18n, to be continue 2021-03-30 16:18:02 +08:00
shiqstone
782ea44388 refactor, replace beego.Error with logs.Error 2021-03-30 14:24:14 +08:00
Ben Stone
53310d4289
Update command.go
load i18n langs config
2021-03-29 18:00:24 +08:00
roberChen
debc3aa5c9 fix(all): don't use adapter in FuncMap and Filter etc. 2021-03-26 15:37:19 +08:00
roberChen
916c9c6c2a fix(models): use client/orm instead of adapter/orm
- using new orm api, change some related logics
- newer orm api has the concept of TxOrmer, for purpose of transaction
handling. A transaction ormer in v2 is a stateful object, it should be
dropped after using. A Ormer object is stateless and thread(routine)
    safe, and should not be used for transaction handling. More details
    count be found at official doc:
    https://beego.me/docs/mvc/model/orm.md, and pr note: https://github.com/mindoc-org/mindoc/pull/662#issuecomment-807040262
2021-03-26 11:34:02 +08:00
roberChen
272316f7b4 Merge branch 'master' into new-beego-path 2021-03-25 11:49:39 +08:00
roberChen
2d05b5a80f fix(config): use web.AppConfig instead of adapter
- use web.AppConfig, and change related codes

TODO: handles errors
2021-03-25 10:42:18 +08:00
LawyZHENG
34499969cc 修复第一次登录失败的BUG 2021-03-24 13:13:23 +08:00
roberChen
90c1329de2 chore!(all): attempt to update beego to v2
BREAKING CHANGE: beego has update to v2, and this version of mindoc IS
NOT TESTED AND STABLE!!!
2021-03-23 21:55:50 +08:00
LawyZHENG
6f06e72411 Merge branch 'dev/pkg-upgrade'
# Conflicts:
#	commands/command.go
#	commands/daemon/daemon.go
#	controllers/AccountController.go
#	controllers/DocumentController.go
#	models/Member.go
#	models/TeamMember.go
#	models/comment_vote.go
2021-03-23 19:28:22 +08:00
LawyZHENG
6730f948e4 增加redis 2021-03-23 16:50:53 +08:00
LawyZHENG
9b3a94e4e9 移除Redis缓存,升级Beego v1.12,尝试解决部分设备无法登录问题 2021-03-23 15:54:05 +08:00
roberChen
79f70d830d chore!(all): update go import path
BREAKING CHANGE: use github.com/mindoc-org/mindoc as import path
2021-03-23 15:09:17 +08:00
ai*3
84c855902e
Update command.go 2021-03-16 12:45:12 +08:00
lifei6671
d8e56548ea perf:过滤内容中的非法字符,增强安全性 2019-05-20 12:08:14 +08:00
lifei6671
ead36721d4 feat:增加错误日志 2019-02-27 17:55:18 +08:00
lifei6671
91df6bb024 feat:实现项目集功能 2018-11-20 20:36:14 +08:00
lifei6671
7785fb270d fix:修复beego使用file储存session时存在的路径BUG 2018-11-09 18:10:34 +08:00
lifei6671
b897c87476 feat:实现团队功能 2018-11-05 18:50:01 +08:00
lifei6671
4e337821d6 fix:优化配置文件自动加载逻辑 2018-09-27 18:18:02 +08:00
lifei6671
3aa703d479 fix:1、修复匿名访问判断错误的BUG
2、重构配置文件自动加载逻辑
2018-09-19 11:32:29 +08:00
lifei6671
2b8bd2cfb2 fix:数据库时间问题 2018-09-17 17:07:58 +08:00
lifei6671
8243a89e23 fix:修复管理员或作者读取文章时弹出密码页的问题 2018-08-31 10:40:11 +08:00
lifei6671
99643b0712 fix:修复导出PDF代码折叠的BUG 2018-08-24 15:05:15 +08:00
lifei6671
790b2aa611 feat:实现自定义模板功能 2018-08-13 19:05:49 +08:00
lifei6671
c7251697b3 fix:修复旧版本没有标识文档读写缓存失败的BUG 2018-08-13 15:04:52 +08:00
lifei6671
b50d39f690 feat:兼容数据库类型大小写 2018-08-10 17:59:34 +08:00
lifei6671
327d6fb8d8 feat:1、修复无数据时报错的问题。
2、新增自定义代码着色格式
3、新增自动加载配置文件
2018-08-07 17:19:56 +08:00
lifei6671
1cbdd4baca 1、完善日志配置
2、文章自动生成摘要
3、修正文档名称问题
4、修复Redis无法读取缓存的BUG
2018-07-25 14:46:56 +08:00
lifei6671
96ba414dd8 实现单页文章功能 2018-07-13 19:04:51 +08:00
lifei6671
cf043c25a3 移除过时命令 2018-07-11 18:06:02 +08:00
lifei6671
894382dfe0 优化工作路径拼接方法 2018-07-11 14:18:27 +08:00
lifei6671
f5737c6a73 增加命令行修改密码功能 2018-07-10 19:13:33 +08:00
zhouqiang
083edf3309
Update command.go 2018-06-11 16:26:06 +08:00
Minho
4d1a03998a 实现导入Markdown 2018-03-24 17:24:02 +08:00
Minho
7e9769dfbb 优化时区 2018-03-23 17:50:10 +08:00
Minho
e56210165f 实现设置第一篇文章为项目默认打开的页面 2018-03-23 10:00:36 +08:00
Minho
813ef8a17b 解决时区问题 2018-03-22 16:42:34 +08:00
Minho
08e86e0f41 实现分享开关 2018-03-13 19:20:50 +08:00
Minho
c278b72f15 实现部署到二级虚拟目录 2018-03-13 14:14:56 +08:00
Minho
e9a78f0aa7 优化文件缓存 2018-03-01 10:12:31 +08:00
Minho
87f0f2faf8 * 2018-02-28 16:29:26 +08:00
Minho
44907fa966 * 2018-02-28 16:08:30 +08:00
Minho
849058ff8a 实现文档缓存 2018-02-27 17:20:42 +08:00
Minho
882d93e7b0 1、实现富文本编辑器
2、实现文档转换为PDF、MOBI、EPUB、Word格式
3、实现登录后跳转到来源地址
2018-01-26 17:17:38 +08:00
Minho
54b51d7c27 1、解决分页BUG
2、解决切换文档上传附件混乱的BUG
3、无法清空文档标识的BUG
4、实现上传文件不限制后缀
5、实现上传文件大小限制
6、实现自动发布功能
7、优化登录时密码框错误提示不消失问题
8、优化网站首页限制网站title
2018-01-18 19:54:05 +08:00
Minho
47687cc5b1 1、实现标签功能
2、实现删除用户,当删除一个用户时,该用户的所有信息将转义到超级管理员账户上
2017-07-07 16:20:55 +08:00
Minho
9223966ed8 修改包引用 2017-06-14 09:23:29 +08:00
Minho
ff9f2a07b1 修复文件上传错误 2017-06-05 13:55:07 +08:00