Skip to content

Commit

Permalink
feat(release): release v0.0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
cg33 committed Aug 1, 2020
1 parent 1c6947c commit 3467571
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
6 changes: 3 additions & 3 deletions filemanager.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,12 +175,12 @@ func (f *FileManager) InitPlugin(srv service.List) {
}

var info = plugins.Info{
Website: "https://www.go-admin.cn",
Website: "http://www.go-admin.cn/plugins/detail/DDN7VxZDTHTeaF8HUU",
Title: "FileManager",
Description: "A plugin help you manage files in your server",
Version: "v0.0.4",
Version: "v0.0.5",
Author: "Official",
Url: "https://github.com/GoAdminGroup/filemanager/archive/v0.0.4.zip",
Url: "https://github.com/GoAdminGroup/filemanager/archive/v0.0.5.zip",
Cover: "",
Agreement: "",
Uuid: "DDN7VxZDTHTeaF8HUU",
Expand Down
5 changes: 4 additions & 1 deletion installation.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ func (f *FileManager) GetSettingPage() table.Generator {
}

formList.AddField(language2.Get("Connection"), "conn", db.Varchar, form.SelectSingle).
FieldOptions(ops)
FieldOptions(ops).FieldHelpMsg(language2.GetHTML("sqlite3 need to import the sql first"))

formList.AddRow(func(panel *types.FormPanel) {
panel.AddField(language2.Get("allow upload"), "allowUpload", db.Int, form.Switch).FieldOptions(types.FieldOptions{
Expand Down Expand Up @@ -160,6 +160,7 @@ func (f *FileManager) GetSettingPage() table.Generator {
}
tables, err := db.WithDriver(f.Conn).Table(f.Conn.GetConfig(connName).Name).ShowTables()
if err != nil {
logger.Error("filemanager get sql tables error: ", err)
return err
}
var rootsMap = make(root.Roots, len(values["name"]))
Expand All @@ -185,9 +186,11 @@ func (f *FileManager) GetSettingPage() table.Generator {
}
}
roots, _ := json.Marshal(rootsMap)

if !utils.InArray(tables, TableName) {
err = f.Conn.CreateDB(connName, new(Table))
if err != nil {
logger.Error("filemanager create database table error: ", err)
return err
}
_, err = db.WithDriverAndConnection(connName, f.Conn).
Expand Down
2 changes: 2 additions & 0 deletions modules/language/cn.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,6 @@ var CN = language.LangSet{
"filemanager.filemanager setting": "文件管理器设置",

"filemanager.filemanager installation": "安装文件管理器",

"filemanager.sqlite3 need to import the sql first": "如果使用sqlite3,需要先导入执行安装sql",
}
2 changes: 2 additions & 0 deletions modules/language/en.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,6 @@ var EN = language.LangSet{
"filemanager.filemanager setting": "FileManager Setting",

"filemanager.filemanager installation": "FileManager Installation",

"filemanager.sqlite3 need to import the sql first": "sqlite3 need to import and execute the sql command first",
}

0 comments on commit 3467571

Please sign in to comment.