mindoc-org / mindoc Goto Github PK
View Code? Open in Web Editor NEWGolang实现的基于beego框架的接口在线文档管理系统
Home Page: https://mindoc.com.cn/docs/mindochelp
License: Apache License 2.0
Golang实现的基于beego框架的接口在线文档管理系统
Home Page: https://mindoc.com.cn/docs/mindochelp
License: Apache License 2.0
文档编辑可以上传图片
2017/05/23 10:11:39 SUCCESS ▶ 0016 './godoc' is running...
./godoc flag redefined: graceful
panic: ./godoc flag redefined: graceful
goroutine 1 [running]:
flag.(*FlagSet).Var(0xc0420381e0, 0xdfa6e0, 0xe54f55, 0xb0c8d0, 0x8, 0xb21c18, 0x21)
C:/Go/src/flag/flag.go:793 +0x427
flag.BoolVar(0xe54f55, 0xb0c8d0, 0x8, 0x0, 0xb21c18, 0x21)
C:/Go/src/flag/flag.go:572 +0x79
github.com/lifei6671/godoc/vendor/github.com/astaxie/beego/grace.init.1()
C:/dev/golang/src/github.com/lifei6671/godoc/vendor/github.com/astaxie/beego/grace/grace.go:93 +0x67
github.com/lifei6671/godoc/vendor/github.com/astaxie/beego/grace.init()
C:/dev/golang/src/github.com/lifei6671/godoc/vendor/github.com/astaxie/beego/grace/server.go:307 +0x90
github.com/lifei6671/godoc/vendor/github.com/astaxie/beego.init()
C:/dev/golang/src/github.com/lifei6671/godoc/vendor/github.com/astaxie/beego/tree.go:581 +0x8e
github.com/lifei6671/godoc/conf.init()
C:/dev/golang/src/github.com/lifei6671/godoc/conf/mail.go:38 +0x50
main.init()
C:/dev/golang/src/godoc/main.go:35 +0x6e
谁编辑的能有记录吗?
html编辑器下面没办法添加附件?好多东西都都要添加进去。比如音频一些软件文件啊。
在编辑界面的左侧菜单不显示滚动条
如题
godoc/vendor/github.com/astaxie/beego/toolbox
godoc/vendor/github.com/bradfitz/gomemcache/memcache
godoc/vendor/github.com/astaxie/beego/session
godoc/vendor/github.com/go-sql-driver/mysql
godoc/vendor/github.com/garyburd/redigo/internal
godoc/vendor/github.com/garyburd/redigo/redis
github.com/lifei6671/godoc/vendor/github.com/astaxie/beego/config
godoc/vendor/github.com/astaxie/beego/context
godoc/vendor/github.com/astaxie/beego/session/memcache
github.com/lifei6671/godoc/vendor/github.com/astaxie/beego/utils
godoc/vendor/github.com/astaxie/beego/session/redis
godoc/vendor/github.com/astaxie/beego
github.com/lifei6671/godoc/vendor/github.com/astaxie/beego/grace
godoc/vendor/github.com/astaxie/beego/session/mysql
github.com/lifei6671/godoc/vendor/github.com/astaxie/beego/session
github.com/lifei6671/godoc/vendor/github.com/astaxie/beego/logs
github.com/lifei6671/godoc/vendor/github.com/astaxie/beego/toolbox
github.com/lifei6671/godoc/vendor/github.com/astaxie/beego/context
github.com/lifei6671/godoc/vendor/github.com/astaxie/beego/orm
github.com/lifei6671/godoc/vendor/golang.org/x/image/math/fixed
github.com/lifei6671/godoc/vendor/github.com/golang/freetype/raster
github.com/lifei6671/godoc/vendor/golang.org/x/image/font
github.com/lifei6671/godoc/vendor/github.com/astaxie/beego
github.com/lifei6671/godoc/vendor/github.com/golang/freetype/truetype
github.com/lifei6671/godoc/vendor/github.com/boombuler/barcode
github.com/lifei6671/godoc/vendor/github.com/boombuler/barcode/utils
github.com/lifei6671/godoc/vendor/github.com/boombuler/barcode/qr
github.com/lifei6671/godoc/vendor/github.com/golang/freetype
github.com/lifei6671/godoc/vendor/github.com/lifei6671/gocaptcha
github.com/lifei6671/godoc/vendor/github.com/nfnt/resize
github.com/lifei6671/godoc/utils/wkhtmltopdf
github.com/lifei6671/godoc/conf
github.com/lifei6671/godoc/graphics
github.com/lifei6671/godoc/utils
github.com/lifei6671/godoc/models
github.com/lifei6671/godoc/commands
github.com/lifei6671/godoc/controllers
github.com/lifei6671/godoc/routers
godoc
./main.go:29: cannot use controllers.ErrorController literal (type controllers.ErrorController) as type "godoc/vendor/github.com/astaxie/beego".ControllerInterface in argument to "godoc/vendor/github.com/astaxie/beego".ErrorController:
controllers.ErrorController does not implement "godoc/vendor/github.com/astaxie/beego".ControllerInterface (wrong type for Init method)
have Init("github.com/lifei6671/godoc/vendor/github.com/astaxie/beego/context".Context, string, string, interface {})
want Init("godoc/vendor/github.com/astaxie/beego/context".Context, string, string, interface {})
http://doc.iminho.me/
打开是 502,啥情况
很多东西都已经做了office文件,一个个复制粘贴之后进去排版。比较费力,尤其有图片的。更麻烦,一个个放抠出来,在排版。为何不做个添加OFFice导入功能呢?PDF应该可以啊
还有个就是多部门未必每个人都可以参与进来,他们只要查阅,单独开个窗口不需要登录都可以查看公开项目。
项目转让出去超级管理员应该可以控制所有项目才对。同事用户不能删除的BUG。项目转让超级管理无法对项目控制了。
1、后台管理-项目管理
可以增加添加项目,不然还要跑到个人项目管理去添加。感觉使用上不方便
2、超级管理员在仪表盘可以看所有文章的列表或者标题以及附件内容,而不是只是显示数目
3、在私有项目分配权限的时候添加用户应该采用列表选择或者分组选择,而不是手动输入用户名
4、添加用户分组功能
创始人和成员访问时都提示 403
要是支持sqlite数据库就好了,小范围使用不想装MySQL这东东。
daocloud.io/lifei6671/godoc:latest 创建的容器中,观测者没有权限
glanger。。。。逗死我了,是gopher。。。。
这个导出PDF经常出问题,是否开放导入功能呢。pdf文档office文档呢?文档搜索也没加亮,这个不好
log显示·[E] [server.go:2568] template: manager/setting.tpl:84:61: executing "manager/setting.tpl" at <eq .ENABLE_DOCUMENT_...>: error calling eq: invalid type for comparison·
模版有问题
go get -d ./...
输出如下
vendor/github.com/garyburd/redigo/redis/pool.go:28:2: use of internal package not allowed
C:\Users\huangzuqiang\Desktop\godoc>.\godoc_windows_amd64.exe
MinDoc version => 0.1.2
build time => Fri May 5 12:00:02 UTC 2017
start directory => .\godoc_windows_amd64.exe
go version go1.8.1 linux/amd64
[ORM]2017/05/08 16:39:43 register db Ping default
, open /usr/local/go\lib\time
\zoneinfo.zip: The system cannot find the path specified.
must have one register DataBase alias named default
建议-能否增加功能在文档页面显示当前文档的树状导航图,类似以下网址:
https://www.teakki.com/p/58478c3e67d0464a3969d1d8
用wkhtmltopdf分页导出pdf功能很强大,但是文档中的图片没有导出。临时页面html文件在服务器cache目录下无法引用/uploads/目录下上传的图片。
wkhtmltopdf的命令中,如果把分页文件放在/uploads/目录下的临时文件夹,再加上 http://127.0.0.1:8181 前缀,应该可以访问上传的图片,不过导出时经过服务器请求静态页面。
不能像项目分组一样公开的项目,项目组成员(身份为管理员的)都可以编辑同一个文档
我尝试下载了 v0.1.1 的 godoc_linux_amd64.tar.gz
和 godoc_windows_amd64.zip
,分别在 Linux 和 Windows 下运行都失败了。
Linux :
~ ./godoc_linux_amd64
zsh: no such file or directory: ./godoc_linux_amd64
Windows:直接运行或者使用 vbs 都直接推出,也没有任何日至打印出来。
这样能方便的接入公司的员工系统
如题
编辑页面,在左边目录名称右键选择添加文档,弹出来的仍然是“添加目录”对话框,这样就无法创建树形目录结构。
做的很不错啊
beego:runtime error: invalid memory address or nil pointer dereference
Request Method: GET
Request URL: /
RemoteAddr: 61.149.254.18
Stack
/home/travis/.gimme/versions/go1.8.linux.amd64/src/runtime/asm_amd64.s:514
/home/travis/.gimme/versions/go1.8.linux.amd64/src/runtime/panic.go:489
/home/travis/.gimme/versions/go1.8.linux.amd64/src/runtime/panic.go:63
/home/travis/.gimme/versions/go1.8.linux.amd64/src/runtime/signal_unix.go:290
/home/travis/gopath/src/github.com/lifei6671/godoc/vendor/github.com/astaxie/beego/controller.go:578
/home/travis/gopath/src/github.com/lifei6671/godoc/controllers/base.go:30
/home/travis/gopath/src/github.com/lifei6671/godoc/vendor/github.com/astaxie/beego/router.go:775
/home/travis/.gimme/versions/go1.8.linux.amd64/src/net/http/server.go:2568
/home/travis/.gimme/versions/go1.8.linux.amd64/src/net/http/server.go:1825
/home/travis/.gimme/versions/go1.8.linux.amd64/src/runtime/asm_amd64.s:2197
beego 1.8.0 (beego framework)
golang version: go1.8
评论的功能已取消了吗?看演示已没这功能了。但公布的图上有!
基于mysql数据库的存储,完整的文档回溯不好实现,可否增加简单的项目编辑log
数据库里面发现一个空的md_log
登录随便输入无提示反馈。
目前升级数据库结构使用func mysqlUpdate()
,建议以后改成migration的方式,不然这个func会越来越复杂
系统环境Linux
错误日志2017/05/24 16:13:53 [E] [document.go:781] fork/exec D:/Program Files/wkhtmltopdf/bin/wkhtmltopdf.exe: no such file or directory
mindoc放在nginx后面,分享出来的网址会包含localhost:8181
还有编辑项目时候的“标识”也是同样问题
对这两个功能有点不明白:
文章修改的内容必须保存并且发布之后,才会在阅读那边看到,为何不做成点发布以后,就直接自动保存+发布,这样可以省去一次操作。又或者干脆两个功能合并在一起,保存发布一次完成?
github这个边不大会上传图片,我把错误内容放到git.oschina了
http://git.oschina.net/longfei6671/godoc/issues/3
希望提供doc和pdf的附件全文检索
不大明白 应该怎么去配置 这个wkhtmltopdf的参数; 我已经将wkhtmltox 解压到了linux的一个目录 ;然后呢;该如何去配置 ; 要注意什么;
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.