Code Monkey home page Code Monkey logo

mindoc's Issues

beego:runtime error: invalid memory address or nil pointer dereference

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

文章的保存与发布

对这两个功能有点不明白:
文章修改的内容必须保存并且发布之后,才会在阅读那边看到,为何不做成点发布以后,就直接自动保存+发布,这样可以省去一次操作。又或者干脆两个功能合并在一起,保存发布一次完成?

附件问题

html编辑器下面没办法添加附件?好多东西都都要添加进去。比如音频一些软件文件啊。

分享url显示localhost:8181

mindoc放在nginx后面,分享出来的网址会包含localhost:8181
还有编辑项目时候的“标识”也是同样问题

针对V0.2 关于mindoc一点建议

1、后台管理-项目管理
可以增加添加项目,不然还要跑到个人项目管理去添加。感觉使用上不方便
2、超级管理员在仪表盘可以看所有文章的列表或者标题以及附件内容,而不是只是显示数目
3、在私有项目分配权限的时候添加用户应该采用列表选择或者分组选择,而不是手动输入用户名
4、添加用户分组功能

建议增强

做的很不错啊

  1. 右侧添加类似目录功能。类似 teakki.com ,要不宽屏看文档时太宽不好看
  2. 左侧添加子文档,和上一级首字离的太远了

build 过程出错

go get -d ./...

输出如下
vendor/github.com/garyburd/redigo/redis/pool.go:28:2: use of internal package not allowed

go get error

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

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 {})

不支持多人编辑

不能像项目分组一样公开的项目,项目组成员(身份为管理员的)都可以编辑同一个文档

win7下安装不成功

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

本地跑不起来

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

pdf导出配置说明有点简单

不大明白 应该怎么去配置 这个wkhtmltopdf的参数; 我已经将wkhtmltox 解压到了linux的一个目录 ;然后呢;该如何去配置 ; 要注意什么;

导出pdf中的图片资源问题

用wkhtmltopdf分页导出pdf功能很强大,但是文档中的图片没有导出。临时页面html文件在服务器cache目录下无法引用/uploads/目录下上传的图片。
wkhtmltopdf的命令中,如果把分页文件放在/uploads/目录下的临时文件夹,再加上 http://127.0.0.1:8181 前缀,应该可以访问上传的图片,不过导出时经过服务器请求静态页面。

只有导出为何不增加导入office和PDF文档呢。

很多东西都已经做了office文件,一个个复制粘贴之后进去排版。比较费力,尤其有图片的。更麻烦,一个个放抠出来,在排版。为何不做个添加OFFice导入功能呢?PDF应该可以啊
还有个就是多部门未必每个人都可以参与进来,他们只要查阅,单独开个窗口不需要登录都可以查看公开项目。
项目转让出去超级管理员应该可以控制所有项目才对。同事用户不能删除的BUG。项目转让超级管理无法对项目控制了。

数据库结构升级

目前升级数据库结构使用func mysqlUpdate() ,建议以后改成migration的方式,不然这个func会越来越复杂

dev分支 管理后台->配置管理 无法打开

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·
模版有问题

文件导出导入问题

这个导出PDF经常出问题,是否开放导入功能呢。pdf文档office文档呢?文档搜索也没加亮,这个不好

导出pdf异常

系统环境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

release 中的文件不能运行?

我尝试下载了 v0.1.1 的 godoc_linux_amd64.tar.gzgodoc_windows_amd64.zip,分别在 Linux 和 Windows 下运行都失败了。

Linux :

~ ./godoc_linux_amd64
zsh: no such file or directory: ./godoc_linux_amd64

Windows:直接运行或者使用 vbs 都直接推出,也没有任何日至打印出来。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.