From 8d0defdba4a5bfe6d35548847beab08bc6079868 Mon Sep 17 00:00:00 2001 From: chen Date: Thu, 13 Jun 2024 17:20:42 +0800 Subject: [PATCH] url --- .deepsource.toml | 2 +- .drone.yml | 12 +- CONTRIBUTING.md | 12 +- CONTRIBUTING_CN.md | 12 +- README.md | 34 ++-- README_CN.md | 36 ++-- adapter/adapter.go | 24 +-- adapter/beego/beego.go | 16 +- adapter/beego2/beego2.go | 16 +- adapter/buffalo/buffalo.go | 16 +- adapter/chi/chi.go | 16 +- adapter/echo/echo.go | 16 +- adapter/fasthttp/fasthttp.go | 16 +- adapter/gear/gear.go | 18 +- adapter/gf/gf.go | 18 +- adapter/gf2/gf2.go | 18 +- adapter/gin/gin.go | 16 +- adapter/gofiber/gofiber.go | 16 +- adapter/gorilla/gorilla.go | 16 +- adapter/iris/iris.go | 16 +- adm/add.go | 6 +- adm/cli.go | 8 +- adm/cli_test.go | 2 +- adm/db.go | 4 +- adm/generate.go | 6 +- adm/helper.go | 4 +- adm/plugin_template.go | 44 ++--- adm/project.go | 14 +- adm/project_template.go | 172 +++++++++--------- adm/project_web.go | 8 +- adm/project_web.tmpl | 4 +- adm/project_web.tmpl.go | 4 +- adm/template.go | 4 +- context/context.go | 21 +-- engine/engine.go | 44 ++--- examples/beego/main.go | 22 +-- examples/beego2/main.go | 20 +- examples/buffalo/main.go | 22 +-- examples/chi/main.go | 22 +-- examples/datamodel/authors.go | 8 +- examples/datamodel/content.go | 22 +-- examples/datamodel/goadmin_super_users.go | 8 +- examples/datamodel/mysql_types.go | 6 +- examples/datamodel/posts.go | 14 +- examples/datamodel/tables.go | 2 +- examples/datamodel/user.go | 22 +-- examples/echo/main.go | 22 +-- examples/fasthttp/main.go | 22 +-- examples/gear/main.go | 22 +-- examples/gf/main.go | 22 +-- examples/gf2/main.go | 24 +-- examples/gin/main.go | 24 +-- examples/gofiber/main.go | 22 +-- examples/gorilla/main.go | 22 +-- examples/iris/main.go | 22 +-- go.mod | 2 +- modules/auth/auth.go | 16 +- modules/auth/middleware.go | 22 +-- modules/auth/middleware_test.go | 4 +- modules/auth/session.go | 12 +- modules/config/config.go | 6 +- modules/config/config_test.go | 4 +- modules/db/base.go | 2 +- modules/db/connection.go | 4 +- modules/db/dialect/dialect.go | 2 +- modules/db/mssql.go | 6 +- modules/db/mysql.go | 2 +- modules/db/oceanbase.go | 2 +- modules/db/postgresql.go | 2 +- modules/db/sqlite.go | 2 +- modules/db/statement.go | 4 +- modules/db/statement_mssql_test.go | 4 +- modules/db/statement_mysql_test.go | 2 +- modules/db/statement_postgresql_test.go | 2 +- modules/db/statement_sqlite_test.go | 4 +- modules/db/statement_test.go | 4 +- modules/db/types_test.go | 4 +- modules/errors/error.go | 4 +- modules/file/file.go | 2 +- modules/file/local.go | 2 +- modules/language/language.go | 2 +- modules/language/language_test.go | 2 +- modules/logger/logger.go | 4 +- modules/menu/menu.go | 8 +- modules/page/page.go | 16 +- modules/remote_server/remote_server.go | 4 +- modules/system/application.go | 6 +- modules/ui/ui.go | 12 +- plugins/admin/admin.go | 24 +-- plugins/admin/controller/Update.go | 6 +- plugins/admin/controller/api_create.go | 10 +- plugins/admin/controller/api_detail.go | 18 +- plugins/admin/controller/api_list.go | 8 +- plugins/admin/controller/api_update.go | 16 +- plugins/admin/controller/auth.go | 22 +-- plugins/admin/controller/common.go | 32 ++-- plugins/admin/controller/delete.go | 8 +- plugins/admin/controller/detail.go | 20 +- plugins/admin/controller/edit.go | 34 ++-- plugins/admin/controller/handler.go | 22 +-- plugins/admin/controller/install.go | 4 +- plugins/admin/controller/menu.go | 30 +-- plugins/admin/controller/new.go | 24 +-- plugins/admin/controller/operation.go | 10 +- plugins/admin/controller/plugins.go | 32 ++-- plugins/admin/controller/plugins_tmpl.go | 6 +- plugins/admin/controller/show.go | 32 ++-- plugins/admin/controller/system.go | 10 +- plugins/admin/models/base.go | 2 +- plugins/admin/models/menu.go | 4 +- plugins/admin/models/operation_log.go | 4 +- plugins/admin/models/permission.go | 2 +- plugins/admin/models/role.go | 4 +- plugins/admin/models/site.go | 10 +- plugins/admin/models/user.go | 12 +- plugins/admin/modules/constant/constant.go | 2 +- plugins/admin/modules/guard/delete.go | 6 +- plugins/admin/modules/guard/edit.go | 26 +-- plugins/admin/modules/guard/export.go | 6 +- plugins/admin/modules/guard/guard.go | 18 +- plugins/admin/modules/guard/menu_delete.go | 4 +- plugins/admin/modules/guard/menu_edit.go | 8 +- plugins/admin/modules/guard/menu_new.go | 8 +- plugins/admin/modules/guard/new.go | 18 +- plugins/admin/modules/guard/server_login.go | 4 +- plugins/admin/modules/guard/update.go | 6 +- plugins/admin/modules/paginator/paginator.go | 12 +- .../admin/modules/paginator/paginator_test.go | 6 +- plugins/admin/modules/parameter/parameter.go | 6 +- plugins/admin/modules/response/response.go | 18 +- plugins/admin/modules/table/config.go | 2 +- plugins/admin/modules/table/default.go | 26 +-- plugins/admin/modules/table/generators.go | 46 ++--- plugins/admin/modules/table/table.go | 14 +- plugins/admin/modules/tools/generator.go | 12 +- plugins/admin/modules/tools/template.go | 8 +- plugins/admin/router.go | 12 +- plugins/example/controller.go | 24 +-- plugins/example/example.go | 6 +- plugins/example/go_plugin/main.go | 12 +- plugins/example/router.go | 8 +- plugins/plugins.go | 36 ++-- template/chartjs/bar.go | 2 +- template/chartjs/chart.go | 2 +- template/chartjs/line.go | 2 +- template/chartjs/pie.go | 2 +- template/components/alert.go | 6 +- template/components/base.go | 8 +- template/components/box.go | 2 +- template/components/button.go | 8 +- template/components/col.go | 2 +- template/components/composer.go | 8 +- template/components/form.go | 12 +- template/components/image.go | 4 +- template/components/label.go | 2 +- template/components/link.go | 2 +- template/components/paninator.go | 2 +- template/components/popup.go | 2 +- template/components/row.go | 2 +- template/components/table.go | 2 +- template/components/tabs.go | 2 +- template/components/tree.go | 4 +- template/components/treeview.go | 4 +- template/installation/installation.go | 4 +- template/login/login.go | 6 +- template/template.go | 24 +-- template/types/action/ajax.go | 8 +- template/types/action/base.go | 8 +- template/types/action/fieldfilter.go | 6 +- template/types/action/file_upload.go | 6 +- template/types/action/jump.go | 4 +- template/types/action/popup.go | 18 +- template/types/button.go | 6 +- template/types/components.go | 6 +- template/types/display.go | 4 +- template/types/display/bool.go | 4 +- template/types/display/carousel.go | 2 +- template/types/display/copy.go | 2 +- template/types/display/date.go | 2 +- template/types/display/dot.go | 2 +- template/types/display/downloadable.go | 2 +- template/types/display/filesize.go | 4 +- template/types/display/icon.go | 4 +- template/types/display/image.go | 4 +- template/types/display/label.go | 4 +- template/types/display/link.go | 4 +- template/types/display/loading.go | 2 +- template/types/display/progressbar.go | 2 +- template/types/display/qrcode.go | 2 +- template/types/form.go | 24 +-- template/types/form/form.go | 6 +- template/types/info.go | 37 ++-- template/types/page.go | 12 +- template/types/select.go | 4 +- tests/common/api.go | 4 +- tests/common/auth.go | 4 +- tests/common/common.go | 2 +- tests/common/external.go | 4 +- tests/common/manager.go | 8 +- tests/common/menu.go | 8 +- tests/common/normal.go | 2 +- tests/common/operation_log.go | 4 +- tests/common/permission.go | 6 +- tests/common/role.go | 6 +- tests/frameworks/beego/beego.go | 30 +-- tests/frameworks/beego/beego_test.go | 2 +- tests/frameworks/beego2/beego.go | 32 ++-- tests/frameworks/beego2/beego_test.go | 2 +- tests/frameworks/buffalo/buffalo.go | 32 ++-- tests/frameworks/buffalo/buffalo_test.go | 2 +- tests/frameworks/chi/chi.go | 30 +-- tests/frameworks/chi/chi_test.go | 2 +- tests/frameworks/echo/echo.go | 30 +-- tests/frameworks/echo/echo_test.go | 2 +- tests/frameworks/fasthttp/fasthttp.go | 28 +-- tests/frameworks/fasthttp/fasthttp_test.go | 2 +- tests/frameworks/gear/gear.go | 26 +-- tests/frameworks/gear/gear_test.go | 2 +- tests/frameworks/gf/gf.go | 30 +-- tests/frameworks/gf/gf_test.go | 2 +- tests/frameworks/gf2/gf.go | 28 +-- tests/frameworks/gf2/gf_test.go | 2 +- tests/frameworks/gin/gin.go | 26 +-- tests/frameworks/gin/gin_test.go | 2 +- tests/frameworks/gofiber/gofiber.go | 28 +-- tests/frameworks/gofiber/gofiber_test.go | 2 +- tests/frameworks/gorilla/gorilla.go | 30 +-- tests/frameworks/gorilla/gorilla_test.go | 2 +- tests/frameworks/iris/iris.go | 30 +-- tests/frameworks/iris/iris_test.go | 2 +- tests/tables/authors.go | 8 +- tests/tables/content.go | 22 +-- tests/tables/external.go | 10 +- tests/tables/posts.go | 14 +- tests/tables/tables.go | 2 +- tests/tables/user.go | 20 +- tests/test.go | 12 +- tests/test_test.go | 4 +- tests/web/test.go | 6 +- tests/web/web_test.go | 20 +- 240 files changed, 1434 insertions(+), 1436 deletions(-) diff --git a/.deepsource.toml b/.deepsource.toml index 5dc1307dd..1f273ce35 100644 --- a/.deepsource.toml +++ b/.deepsource.toml @@ -5,4 +5,4 @@ name = "go" enabled = true [analyzers.meta] - import_paths = ["github.com/GoAdminGroup/go-admin"] + import_paths = ["github.com/ChenSee/go-admin"] diff --git a/.drone.yml b/.drone.yml index fe354a030..9db051f9e 100644 --- a/.drone.yml +++ b/.drone.yml @@ -24,7 +24,7 @@ steps: GO111MODULE: on GOPROXY: https://goproxy.cn commands: - - cd /go/src/github.com/GoAdminGroup/go-admin + - cd /go/src/github.com/ChenSee/go-admin - git pull - git fetch origin pull/$DRONE_PULL_REQUEST/head:pr$DRONE_PULL_REQUEST - git checkout pr$DRONE_PULL_REQUEST @@ -62,12 +62,12 @@ steps: image: chg80333/goadmin-test:v8 volumes: - name: data - path: /go/src/github.com/GoAdminGroup/go-admin/tests/data + path: /go/src/github.com/ChenSee/go-admin/tests/data environment: GO111MODULE: on GOPROXY: https://goproxy.cn commands: - - cd /go/src/github.com/GoAdminGroup/go-admin + - cd /go/src/github.com/ChenSee/go-admin - git pull - git fetch origin pull/$DRONE_PULL_REQUEST/head:pr$DRONE_PULL_REQUEST - git checkout pr$DRONE_PULL_REQUEST @@ -101,7 +101,7 @@ steps: GO111MODULE: on GOPROXY: https://goproxy.cn commands: - - cd /go/src/github.com/GoAdminGroup/go-admin + - cd /go/src/github.com/ChenSee/go-admin - git pull - git fetch origin pull/$DRONE_PULL_REQUEST/head:pr$DRONE_PULL_REQUEST - git checkout pr$DRONE_PULL_REQUEST @@ -127,7 +127,7 @@ steps: GO111MODULE: on GOPROXY: https://goproxy.cn commands: - - cd /go/src/github.com/GoAdminGroup/go-admin + - cd /go/src/github.com/ChenSee/go-admin - git pull - git fetch origin pull/$DRONE_PULL_REQUEST/head:pr$DRONE_PULL_REQUEST - git checkout pr$DRONE_PULL_REQUEST @@ -160,7 +160,7 @@ steps: GO111MODULE: on GOPROXY: https://goproxy.cn commands: - - cd /go/src/github.com/GoAdminGroup/go-admin + - cd /go/src/github.com/ChenSee/go-admin - git pull - git fetch origin pull/$DRONE_PULL_REQUEST/head:pr$DRONE_PULL_REQUEST - git checkout pr$DRONE_PULL_REQUEST diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 1656ab7e4..189d548b3 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -9,7 +9,7 @@ If you want to contribute, but not sure what to do, here's a list of things that * Finding security problems * Themes and Plugins -See [manual](https://github.com/GoAdminGroup/go-admin/projects/3) for more information. +See [manual](https://github.com/ChenSee/go-admin/projects/3) for more information. You can view all open issues on github, which is usually a good starting point if you want to start contributing: @@ -22,12 +22,12 @@ GoAdmin uses GitHub to manage reviews of pull requests: - If you have a trivial fix or improvement, go ahead and create a pull request. - If you plan to do something more involved, discuss your ideas on the relevant GitHub issue. -For now, you need to add your fork as a remote on the original **\$GOPATH**/src/github.com/GoAdminGroup/go-admin clone, so: +For now, you need to add your fork as a remote on the original **\$GOPATH**/src/github.com/ChenSee/go-admin clone, so: ```bash -$ go get github.com/GoAdminGroup/go-admin -$ cd $GOPATH/src/github.com/GoAdminGroup/go-admin # GOPATH is $HOME/go by default. +$ go get github.com/ChenSee/go-admin +$ cd $GOPATH/src/github.com/ChenSee/go-admin # GOPATH is $HOME/go by default. $ git remote add ``` @@ -40,7 +40,7 @@ make test See the Makefile for more details. -Notice: `go get` return `package github.com/GoAdminGroup/go-admin: no Go files in /go/src/github.com/GoAdminGroup/go-admin` is normal. +Notice: `go get` return `package github.com/ChenSee/go-admin: no Go files in /go/src/github.com/ChenSee/go-admin` is normal. ### Dependency management @@ -80,5 +80,5 @@ You can also donate or become a patreon, which helps out covering server costs a If you are a member of the official GoAdmin developer Team: * [Discussions](http://forum.go-admin.cn) -* [Tasks](https://github.com/GoAdminGroup/go-admin/projects) +* [Tasks](https://github.com/ChenSee/go-admin/projects) * [Chat](https://t.me/joinchat/NlyH6Bch2QARZkArithKvg) \ No newline at end of file diff --git a/CONTRIBUTING_CN.md b/CONTRIBUTING_CN.md index a2ef93bf2..a9b926cc7 100644 --- a/CONTRIBUTING_CN.md +++ b/CONTRIBUTING_CN.md @@ -9,7 +9,7 @@ * 寻找安全问题 * 主题和插件 -在这里:[功能规划](https://github.com/GoAdminGroup/go-admin/projects/3) 可以获得更多信息。 +在这里:[功能规划](https://github.com/ChenSee/go-admin/projects/3) 可以获得更多信息。 你也可以看一下所有开放的issues,从这里去入手: @@ -22,12 +22,12 @@ GoAdmin 使用 GitHub 来管理项目代码: - 如果你发现一些微不足道的fix或者功能增加,直接提pr即可; - 如果你有一些提议,那么你可以先开一个issue进行讨论; -然后,你需要fork远程的master分支到你本地 **\$GOPATH**/src/github.com/GoAdminGroup/go-admin : +然后,你需要fork远程的master分支到你本地 **\$GOPATH**/src/github.com/ChenSee/go-admin : ```bash -$ go get github.com/GoAdminGroup/go-admin -$ cd $GOPATH/src/github.com/GoAdminGroup/go-admin # GOPATH is $HOME/go by default. +$ go get github.com/ChenSee/go-admin +$ cd $GOPATH/src/github.com/ChenSee/go-admin # GOPATH is $HOME/go by default. $ git remote add ``` @@ -40,7 +40,7 @@ make test 看根目录下的```Makefile```获得更多信息。 -注意了: `go get` 返回 `package github.com/GoAdminGroup/go-admin: no Go files in /go/src/github.com/GoAdminGroup/go-admin` 是正常的。 +注意了: `go get` 返回 `package github.com/ChenSee/go-admin: no Go files in /go/src/github.com/ChenSee/go-admin` 是正常的。 ### 依赖管理 @@ -80,5 +80,5 @@ git commit 如果你已经是GoAdmin的官方开发组成员: * [Discussions](http://forum.go-admin.cn) -* [Tasks](https://github.com/GoAdminGroup/go-admin/projects) +* [Tasks](https://github.com/ChenSee/go-admin/projects) * [Chat](https://t.me/joinchat/NlyH6Bch2QARZkArithKvg) \ No newline at end of file diff --git a/README.md b/README.md index 732526061..c28010f43 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@

- + go-admin

@@ -20,11 +20,11 @@

Build Status - Go Report Card - golang + Go Report Card + golang telegram slack - GoDoc + GoDoc license

@@ -57,7 +57,7 @@ We need your help: [https://github.com/GoAdminGroup/docs/issues/1](https://githu ## Who is using -[Comment the issue to tell us](https://github.com/GoAdminGroup/go-admin/issues/71). +[Comment the issue to tell us](https://github.com/ChenSee/go-admin/issues/71). ## How to @@ -98,17 +98,17 @@ package main import ( "github.com/gin-gonic/gin" - _ "github.com/GoAdminGroup/go-admin/adapter/gin" - _ "github.com/GoAdminGroup/go-admin/modules/db/drivers/mysql" - "github.com/GoAdminGroup/go-admin/engine" - "github.com/GoAdminGroup/go-admin/plugins/admin" - "github.com/GoAdminGroup/go-admin/modules/config" - "github.com/GoAdminGroup/themes/adminlte" - "github.com/GoAdminGroup/go-admin/template" - "github.com/GoAdminGroup/go-admin/template/chartjs" - "github.com/GoAdminGroup/go-admin/template/types" - "github.com/GoAdminGroup/go-admin/examples/datamodel" - "github.com/GoAdminGroup/go-admin/modules/language" + _ "github.com/ChenSee/go-admin/adapter/gin" + _ "github.com/ChenSee/go-admin/modules/db/drivers/mysql" + "github.com/ChenSee/go-admin/engine" + "github.com/ChenSee/go-admin/plugins/admin" + "github.com/ChenSee/go-admin/modules/config" + "github.com/ChenSee/goAdminThemes/adminlte" + "github.com/ChenSee/go-admin/template" + "github.com/ChenSee/go-admin/template/chartjs" + "github.com/ChenSee/go-admin/template/types" + "github.com/ChenSee/go-admin/examples/datamodel" + "github.com/ChenSee/go-admin/modules/language" ) func main() { @@ -170,7 +170,7 @@ func main() {

-More framework examples: [https://github.com/GoAdminGroup/go-admin/tree/master/examples](https://github.com/GoAdminGroup/go-admin/tree/master/examples) +More framework examples: [https://github.com/ChenSee/go-admin/tree/master/examples](https://github.com/ChenSee/go-admin/tree/master/examples) ### Step 3: run diff --git a/README_CN.md b/README_CN.md index dbd50fca7..28b7375aa 100644 --- a/README_CN.md +++ b/README_CN.md @@ -1,5 +1,5 @@

- + go-admin

@@ -8,11 +8,11 @@

Build Status - Go Report Card - golang + Go Report Card + golang telegram qq群 - GoDoc + GoDoc license

@@ -41,7 +41,7 @@ GoAdmin 可以帮助你的golang应用快速实现数据可视化,搭建一个 ## 谁在使用GoAdmin -[评论这个issue告诉我们](https://github.com/GoAdminGroup/go-admin/issues/71). +[评论这个issue告诉我们](https://github.com/ChenSee/go-admin/issues/71). ## 使用 @@ -81,17 +81,17 @@ package main import ( "github.com/gin-gonic/gin" - _ "github.com/GoAdminGroup/go-admin/adapter/gin" - _ "github.com/GoAdminGroup/go-admin/modules/db/drivers/mysql" - "github.com/GoAdminGroup/go-admin/engine" - "github.com/GoAdminGroup/go-admin/plugins/admin" - "github.com/GoAdminGroup/themes/adminlte" - "github.com/GoAdminGroup/go-admin/modules/config" - "github.com/GoAdminGroup/go-admin/template" - "github.com/GoAdminGroup/go-admin/template/chartjs" - "github.com/GoAdminGroup/go-admin/template/types" - "github.com/GoAdminGroup/go-admin/examples/datamodel" - "github.com/GoAdminGroup/go-admin/modules/language" + _ "github.com/ChenSee/go-admin/adapter/gin" + _ "github.com/ChenSee/go-admin/modules/db/drivers/mysql" + "github.com/ChenSee/go-admin/engine" + "github.com/ChenSee/go-admin/plugins/admin" + "github.com/ChenSee/goAdminThemes/adminlte" + "github.com/ChenSee/go-admin/modules/config" + "github.com/ChenSee/go-admin/template" + "github.com/ChenSee/go-admin/template/chartjs" + "github.com/ChenSee/go-admin/template/types" + "github.com/ChenSee/go-admin/examples/datamodel" + "github.com/ChenSee/go-admin/modules/language" ) func main() { @@ -153,7 +153,7 @@ func main() {

-更多框架的例子: [https://github.com/GoAdminGroup/go-admin/tree/master/examples](https://github.com/GoAdminGroup/go-admin/tree/master/examples) +更多框架的例子: [https://github.com/ChenSee/go-admin/tree/master/examples](https://github.com/ChenSee/go-admin/tree/master/examples) ### 第三步:运行 @@ -177,7 +177,7 @@ GO111MODULE=on go run main.go QQ群:[641768714](https://jq.qq.com/?_wv=1027&k=qn8oXyGC),记得备注加群来意 -这里是[开发计划](https://github.com/GoAdminGroup/go-admin/projects) +这里是[开发计划](https://github.com/ChenSee/go-admin/projects) [点击这里申请加微信群(记得备注加群)](http://quick.go-admin.cn/resource/wechat_qrcode_02.jpg) diff --git a/adapter/adapter.go b/adapter/adapter.go index 59dc4c0ce..e33de817c 100644 --- a/adapter/adapter.go +++ b/adapter/adapter.go @@ -9,18 +9,18 @@ import ( "fmt" "net/url" - "github.com/GoAdminGroup/go-admin/context" - "github.com/GoAdminGroup/go-admin/modules/auth" - "github.com/GoAdminGroup/go-admin/modules/config" - "github.com/GoAdminGroup/go-admin/modules/constant" - "github.com/GoAdminGroup/go-admin/modules/db" - "github.com/GoAdminGroup/go-admin/modules/errors" - "github.com/GoAdminGroup/go-admin/modules/logger" - "github.com/GoAdminGroup/go-admin/modules/menu" - "github.com/GoAdminGroup/go-admin/plugins" - "github.com/GoAdminGroup/go-admin/plugins/admin/models" - "github.com/GoAdminGroup/go-admin/template" - "github.com/GoAdminGroup/go-admin/template/types" + "github.com/ChenSee/go-admin/context" + "github.com/ChenSee/go-admin/modules/auth" + "github.com/ChenSee/go-admin/modules/config" + "github.com/ChenSee/go-admin/modules/constant" + "github.com/ChenSee/go-admin/modules/db" + "github.com/ChenSee/go-admin/modules/errors" + "github.com/ChenSee/go-admin/modules/logger" + "github.com/ChenSee/go-admin/modules/menu" + "github.com/ChenSee/go-admin/plugins" + "github.com/ChenSee/go-admin/plugins/admin/models" + "github.com/ChenSee/go-admin/template" + "github.com/ChenSee/go-admin/template/types" ) // WebFrameWork is an interface which is used as an adapter of diff --git a/adapter/beego/beego.go b/adapter/beego/beego.go index 07b1914c8..b95e45dce 100644 --- a/adapter/beego/beego.go +++ b/adapter/beego/beego.go @@ -11,14 +11,14 @@ import ( "net/url" "strings" - "github.com/GoAdminGroup/go-admin/adapter" - gctx "github.com/GoAdminGroup/go-admin/context" - "github.com/GoAdminGroup/go-admin/engine" - "github.com/GoAdminGroup/go-admin/modules/config" - "github.com/GoAdminGroup/go-admin/plugins" - "github.com/GoAdminGroup/go-admin/plugins/admin/models" - "github.com/GoAdminGroup/go-admin/plugins/admin/modules/constant" - "github.com/GoAdminGroup/go-admin/template/types" + "github.com/ChenSee/go-admin/adapter" + gctx "github.com/ChenSee/go-admin/context" + "github.com/ChenSee/go-admin/engine" + "github.com/ChenSee/go-admin/modules/config" + "github.com/ChenSee/go-admin/plugins" + "github.com/ChenSee/go-admin/plugins/admin/models" + "github.com/ChenSee/go-admin/plugins/admin/modules/constant" + "github.com/ChenSee/go-admin/template/types" "github.com/astaxie/beego" "github.com/astaxie/beego/context" ) diff --git a/adapter/beego2/beego2.go b/adapter/beego2/beego2.go index 92367e2b4..82055d6fb 100644 --- a/adapter/beego2/beego2.go +++ b/adapter/beego2/beego2.go @@ -7,14 +7,14 @@ import ( "net/url" "strings" - "github.com/GoAdminGroup/go-admin/adapter" - gctx "github.com/GoAdminGroup/go-admin/context" - "github.com/GoAdminGroup/go-admin/engine" - "github.com/GoAdminGroup/go-admin/modules/config" - "github.com/GoAdminGroup/go-admin/modules/constant" - "github.com/GoAdminGroup/go-admin/plugins" - "github.com/GoAdminGroup/go-admin/plugins/admin/models" - "github.com/GoAdminGroup/go-admin/template/types" + "github.com/ChenSee/go-admin/adapter" + gctx "github.com/ChenSee/go-admin/context" + "github.com/ChenSee/go-admin/engine" + "github.com/ChenSee/go-admin/modules/config" + "github.com/ChenSee/go-admin/modules/constant" + "github.com/ChenSee/go-admin/plugins" + "github.com/ChenSee/go-admin/plugins/admin/models" + "github.com/ChenSee/go-admin/template/types" "github.com/beego/beego/v2/server/web" "github.com/beego/beego/v2/server/web/context" ) diff --git a/adapter/buffalo/buffalo.go b/adapter/buffalo/buffalo.go index 552c21276..f7117640a 100644 --- a/adapter/buffalo/buffalo.go +++ b/adapter/buffalo/buffalo.go @@ -12,14 +12,14 @@ import ( "regexp" "strings" - "github.com/GoAdminGroup/go-admin/adapter" - "github.com/GoAdminGroup/go-admin/context" - "github.com/GoAdminGroup/go-admin/engine" - "github.com/GoAdminGroup/go-admin/modules/config" - "github.com/GoAdminGroup/go-admin/plugins" - "github.com/GoAdminGroup/go-admin/plugins/admin/models" - "github.com/GoAdminGroup/go-admin/plugins/admin/modules/constant" - "github.com/GoAdminGroup/go-admin/template/types" + "github.com/ChenSee/go-admin/adapter" + "github.com/ChenSee/go-admin/context" + "github.com/ChenSee/go-admin/engine" + "github.com/ChenSee/go-admin/modules/config" + "github.com/ChenSee/go-admin/plugins" + "github.com/ChenSee/go-admin/plugins/admin/models" + "github.com/ChenSee/go-admin/plugins/admin/modules/constant" + "github.com/ChenSee/go-admin/template/types" "github.com/gobuffalo/buffalo" ) diff --git a/adapter/chi/chi.go b/adapter/chi/chi.go index 45bbe7739..3c0ed7043 100644 --- a/adapter/chi/chi.go +++ b/adapter/chi/chi.go @@ -12,14 +12,14 @@ import ( "regexp" "strings" - "github.com/GoAdminGroup/go-admin/adapter" - "github.com/GoAdminGroup/go-admin/context" - "github.com/GoAdminGroup/go-admin/engine" - cfg "github.com/GoAdminGroup/go-admin/modules/config" - "github.com/GoAdminGroup/go-admin/plugins" - "github.com/GoAdminGroup/go-admin/plugins/admin/models" - "github.com/GoAdminGroup/go-admin/plugins/admin/modules/constant" - "github.com/GoAdminGroup/go-admin/template/types" + "github.com/ChenSee/go-admin/adapter" + "github.com/ChenSee/go-admin/context" + "github.com/ChenSee/go-admin/engine" + cfg "github.com/ChenSee/go-admin/modules/config" + "github.com/ChenSee/go-admin/plugins" + "github.com/ChenSee/go-admin/plugins/admin/models" + "github.com/ChenSee/go-admin/plugins/admin/modules/constant" + "github.com/ChenSee/go-admin/template/types" "github.com/go-chi/chi" ) diff --git a/adapter/echo/echo.go b/adapter/echo/echo.go index 8151326cd..f0d07509b 100644 --- a/adapter/echo/echo.go +++ b/adapter/echo/echo.go @@ -11,14 +11,14 @@ import ( "net/url" "strings" - "github.com/GoAdminGroup/go-admin/adapter" - "github.com/GoAdminGroup/go-admin/context" - "github.com/GoAdminGroup/go-admin/engine" - "github.com/GoAdminGroup/go-admin/modules/config" - "github.com/GoAdminGroup/go-admin/plugins" - "github.com/GoAdminGroup/go-admin/plugins/admin/models" - "github.com/GoAdminGroup/go-admin/plugins/admin/modules/constant" - "github.com/GoAdminGroup/go-admin/template/types" + "github.com/ChenSee/go-admin/adapter" + "github.com/ChenSee/go-admin/context" + "github.com/ChenSee/go-admin/engine" + "github.com/ChenSee/go-admin/modules/config" + "github.com/ChenSee/go-admin/plugins" + "github.com/ChenSee/go-admin/plugins/admin/models" + "github.com/ChenSee/go-admin/plugins/admin/modules/constant" + "github.com/ChenSee/go-admin/template/types" "github.com/labstack/echo/v4" ) diff --git a/adapter/fasthttp/fasthttp.go b/adapter/fasthttp/fasthttp.go index e6632ffc6..0654cbc4e 100644 --- a/adapter/fasthttp/fasthttp.go +++ b/adapter/fasthttp/fasthttp.go @@ -12,14 +12,14 @@ import ( "net/url" "strings" - "github.com/GoAdminGroup/go-admin/adapter" - "github.com/GoAdminGroup/go-admin/context" - "github.com/GoAdminGroup/go-admin/engine" - "github.com/GoAdminGroup/go-admin/modules/config" - "github.com/GoAdminGroup/go-admin/plugins" - "github.com/GoAdminGroup/go-admin/plugins/admin/models" - "github.com/GoAdminGroup/go-admin/plugins/admin/modules/constant" - "github.com/GoAdminGroup/go-admin/template/types" + "github.com/ChenSee/go-admin/adapter" + "github.com/ChenSee/go-admin/context" + "github.com/ChenSee/go-admin/engine" + "github.com/ChenSee/go-admin/modules/config" + "github.com/ChenSee/go-admin/plugins" + "github.com/ChenSee/go-admin/plugins/admin/models" + "github.com/ChenSee/go-admin/plugins/admin/modules/constant" + "github.com/ChenSee/go-admin/template/types" "github.com/buaazp/fasthttprouter" "github.com/valyala/fasthttp" ) diff --git a/adapter/gear/gear.go b/adapter/gear/gear.go index 8a5835344..16bf61aef 100644 --- a/adapter/gear/gear.go +++ b/adapter/gear/gear.go @@ -15,15 +15,15 @@ import ( "regexp" "strings" - "github.com/GoAdminGroup/go-admin/adapter" - "github.com/GoAdminGroup/go-admin/context" - "github.com/GoAdminGroup/go-admin/engine" - "github.com/GoAdminGroup/go-admin/modules/config" - "github.com/GoAdminGroup/go-admin/modules/utils" - "github.com/GoAdminGroup/go-admin/plugins" - "github.com/GoAdminGroup/go-admin/plugins/admin/models" - "github.com/GoAdminGroup/go-admin/plugins/admin/modules/constant" - "github.com/GoAdminGroup/go-admin/template/types" + "github.com/ChenSee/go-admin/adapter" + "github.com/ChenSee/go-admin/context" + "github.com/ChenSee/go-admin/engine" + "github.com/ChenSee/go-admin/modules/config" + "github.com/ChenSee/go-admin/modules/utils" + "github.com/ChenSee/go-admin/plugins" + "github.com/ChenSee/go-admin/plugins/admin/models" + "github.com/ChenSee/go-admin/plugins/admin/modules/constant" + "github.com/ChenSee/go-admin/template/types" "github.com/teambition/gear" ) diff --git a/adapter/gf/gf.go b/adapter/gf/gf.go index 4708c1cb8..ae79db11e 100644 --- a/adapter/gf/gf.go +++ b/adapter/gf/gf.go @@ -12,15 +12,15 @@ import ( "regexp" "strings" - "github.com/GoAdminGroup/go-admin/adapter" - "github.com/GoAdminGroup/go-admin/context" - "github.com/GoAdminGroup/go-admin/engine" - "github.com/GoAdminGroup/go-admin/modules/config" - "github.com/GoAdminGroup/go-admin/modules/utils" - "github.com/GoAdminGroup/go-admin/plugins" - "github.com/GoAdminGroup/go-admin/plugins/admin/models" - "github.com/GoAdminGroup/go-admin/plugins/admin/modules/constant" - "github.com/GoAdminGroup/go-admin/template/types" + "github.com/ChenSee/go-admin/adapter" + "github.com/ChenSee/go-admin/context" + "github.com/ChenSee/go-admin/engine" + "github.com/ChenSee/go-admin/modules/config" + "github.com/ChenSee/go-admin/modules/utils" + "github.com/ChenSee/go-admin/plugins" + "github.com/ChenSee/go-admin/plugins/admin/models" + "github.com/ChenSee/go-admin/plugins/admin/modules/constant" + "github.com/ChenSee/go-admin/template/types" "github.com/gogf/gf/net/ghttp" ) diff --git a/adapter/gf2/gf2.go b/adapter/gf2/gf2.go index 20daa03c1..682ff81e8 100644 --- a/adapter/gf2/gf2.go +++ b/adapter/gf2/gf2.go @@ -8,15 +8,15 @@ import ( "regexp" "strings" - "github.com/GoAdminGroup/go-admin/adapter" - "github.com/GoAdminGroup/go-admin/context" - "github.com/GoAdminGroup/go-admin/engine" - "github.com/GoAdminGroup/go-admin/modules/config" - "github.com/GoAdminGroup/go-admin/modules/constant" - "github.com/GoAdminGroup/go-admin/modules/utils" - "github.com/GoAdminGroup/go-admin/plugins" - "github.com/GoAdminGroup/go-admin/plugins/admin/models" - "github.com/GoAdminGroup/go-admin/template/types" + "github.com/ChenSee/go-admin/adapter" + "github.com/ChenSee/go-admin/context" + "github.com/ChenSee/go-admin/engine" + "github.com/ChenSee/go-admin/modules/config" + "github.com/ChenSee/go-admin/modules/constant" + "github.com/ChenSee/go-admin/modules/utils" + "github.com/ChenSee/go-admin/plugins" + "github.com/ChenSee/go-admin/plugins/admin/models" + "github.com/ChenSee/go-admin/template/types" "github.com/gogf/gf/v2/net/ghttp" ) diff --git a/adapter/gin/gin.go b/adapter/gin/gin.go index cb580b9e1..300b152d9 100644 --- a/adapter/gin/gin.go +++ b/adapter/gin/gin.go @@ -11,14 +11,14 @@ import ( "net/url" "strings" - "github.com/GoAdminGroup/go-admin/adapter" - "github.com/GoAdminGroup/go-admin/context" - "github.com/GoAdminGroup/go-admin/engine" - "github.com/GoAdminGroup/go-admin/modules/config" - "github.com/GoAdminGroup/go-admin/plugins" - "github.com/GoAdminGroup/go-admin/plugins/admin/models" - "github.com/GoAdminGroup/go-admin/plugins/admin/modules/constant" - "github.com/GoAdminGroup/go-admin/template/types" + "github.com/ChenSee/go-admin/adapter" + "github.com/ChenSee/go-admin/context" + "github.com/ChenSee/go-admin/engine" + "github.com/ChenSee/go-admin/modules/config" + "github.com/ChenSee/go-admin/plugins" + "github.com/ChenSee/go-admin/plugins/admin/models" + "github.com/ChenSee/go-admin/plugins/admin/modules/constant" + "github.com/ChenSee/go-admin/template/types" "github.com/gin-gonic/gin" ) diff --git a/adapter/gofiber/gofiber.go b/adapter/gofiber/gofiber.go index 9b9dea265..bab30672c 100644 --- a/adapter/gofiber/gofiber.go +++ b/adapter/gofiber/gofiber.go @@ -11,14 +11,14 @@ import ( "net/url" "strings" - "github.com/GoAdminGroup/go-admin/adapter" - "github.com/GoAdminGroup/go-admin/context" - "github.com/GoAdminGroup/go-admin/engine" - "github.com/GoAdminGroup/go-admin/modules/config" - "github.com/GoAdminGroup/go-admin/plugins" - "github.com/GoAdminGroup/go-admin/plugins/admin/models" - "github.com/GoAdminGroup/go-admin/plugins/admin/modules/constant" - "github.com/GoAdminGroup/go-admin/template/types" + "github.com/ChenSee/go-admin/adapter" + "github.com/ChenSee/go-admin/context" + "github.com/ChenSee/go-admin/engine" + "github.com/ChenSee/go-admin/modules/config" + "github.com/ChenSee/go-admin/plugins" + "github.com/ChenSee/go-admin/plugins/admin/models" + "github.com/ChenSee/go-admin/plugins/admin/modules/constant" + "github.com/ChenSee/go-admin/template/types" "github.com/gofiber/fiber/v2" "github.com/valyala/fasthttp" ) diff --git a/adapter/gorilla/gorilla.go b/adapter/gorilla/gorilla.go index 154561e43..c352eeba2 100644 --- a/adapter/gorilla/gorilla.go +++ b/adapter/gorilla/gorilla.go @@ -12,14 +12,14 @@ import ( "regexp" "strings" - "github.com/GoAdminGroup/go-admin/adapter" - "github.com/GoAdminGroup/go-admin/context" - "github.com/GoAdminGroup/go-admin/engine" - "github.com/GoAdminGroup/go-admin/modules/config" - "github.com/GoAdminGroup/go-admin/plugins" - "github.com/GoAdminGroup/go-admin/plugins/admin/models" - "github.com/GoAdminGroup/go-admin/plugins/admin/modules/constant" - "github.com/GoAdminGroup/go-admin/template/types" + "github.com/ChenSee/go-admin/adapter" + "github.com/ChenSee/go-admin/context" + "github.com/ChenSee/go-admin/engine" + "github.com/ChenSee/go-admin/modules/config" + "github.com/ChenSee/go-admin/plugins" + "github.com/ChenSee/go-admin/plugins/admin/models" + "github.com/ChenSee/go-admin/plugins/admin/modules/constant" + "github.com/ChenSee/go-admin/template/types" "github.com/gorilla/mux" ) diff --git a/adapter/iris/iris.go b/adapter/iris/iris.go index 08f5bfcdd..67e2adc92 100644 --- a/adapter/iris/iris.go +++ b/adapter/iris/iris.go @@ -11,16 +11,16 @@ import ( "net/url" "strings" - "github.com/GoAdminGroup/go-admin/adapter" - "github.com/GoAdminGroup/go-admin/plugins/admin/models" - "github.com/GoAdminGroup/go-admin/template/types" + "github.com/ChenSee/go-admin/adapter" + "github.com/ChenSee/go-admin/plugins/admin/models" + "github.com/ChenSee/go-admin/template/types" "github.com/kataras/iris/v12" - "github.com/GoAdminGroup/go-admin/context" - "github.com/GoAdminGroup/go-admin/engine" - "github.com/GoAdminGroup/go-admin/modules/config" - "github.com/GoAdminGroup/go-admin/plugins" - "github.com/GoAdminGroup/go-admin/plugins/admin/modules/constant" + "github.com/ChenSee/go-admin/context" + "github.com/ChenSee/go-admin/engine" + "github.com/ChenSee/go-admin/modules/config" + "github.com/ChenSee/go-admin/plugins" + "github.com/ChenSee/go-admin/plugins/admin/modules/constant" ) // Iris structure value is an Iris GoAdmin adapter. diff --git a/adm/add.go b/adm/add.go index 5ae23222c..7fdd494b0 100644 --- a/adm/add.go +++ b/adm/add.go @@ -4,9 +4,9 @@ import ( "runtime" "strings" - "github.com/GoAdminGroup/go-admin/modules/auth" - "github.com/GoAdminGroup/go-admin/modules/db" - "github.com/GoAdminGroup/go-admin/modules/db/dialect" + "github.com/ChenSee/go-admin/modules/auth" + "github.com/ChenSee/go-admin/modules/db" + "github.com/ChenSee/go-admin/modules/db/dialect" "gopkg.in/ini.v1" ) diff --git a/adm/cli.go b/adm/cli.go index 17e34ac76..6d39e378d 100644 --- a/adm/cli.go +++ b/adm/cli.go @@ -6,10 +6,10 @@ package main import ( "fmt" - _ "github.com/GoAdminGroup/go-admin/modules/db/drivers/mysql" - _ "github.com/GoAdminGroup/go-admin/modules/db/drivers/oceanbase" - _ "github.com/GoAdminGroup/go-admin/modules/db/drivers/postgres" - _ "github.com/GoAdminGroup/go-admin/modules/db/drivers/sqlite" + _ "github.com/ChenSee/go-admin/modules/db/drivers/mysql" + _ "github.com/ChenSee/go-admin/modules/db/drivers/oceanbase" + _ "github.com/ChenSee/go-admin/modules/db/drivers/postgres" + _ "github.com/ChenSee/go-admin/modules/db/drivers/sqlite" "os" "runtime" "runtime/debug" diff --git a/adm/cli_test.go b/adm/cli_test.go index 7a9f2327c..438c801b8 100644 --- a/adm/cli_test.go +++ b/adm/cli_test.go @@ -3,7 +3,7 @@ package main import ( "testing" - "github.com/GoAdminGroup/go-admin/modules/system" + "github.com/ChenSee/go-admin/modules/system" "github.com/magiconair/properties/assert" ) diff --git a/adm/db.go b/adm/db.go index 43b04cc31..dc5f0530b 100644 --- a/adm/db.go +++ b/adm/db.go @@ -5,8 +5,8 @@ import ( "time" "github.com/AlecAivazis/survey/v2" - "github.com/GoAdminGroup/go-admin/modules/config" - "github.com/GoAdminGroup/go-admin/modules/db" + "github.com/ChenSee/go-admin/modules/config" + "github.com/ChenSee/go-admin/modules/db" "gopkg.in/ini.v1" ) diff --git a/adm/generate.go b/adm/generate.go index 348e9e0b4..b8c5d34bf 100644 --- a/adm/generate.go +++ b/adm/generate.go @@ -11,9 +11,9 @@ import ( "github.com/AlecAivazis/survey/v2" "github.com/AlecAivazis/survey/v2/core" - "github.com/GoAdminGroup/go-admin/modules/db" - "github.com/GoAdminGroup/go-admin/plugins/admin/modules" - "github.com/GoAdminGroup/go-admin/plugins/admin/modules/tools" + "github.com/ChenSee/go-admin/modules/db" + "github.com/ChenSee/go-admin/plugins/admin/modules" + "github.com/ChenSee/go-admin/plugins/admin/modules/tools" "github.com/mgutz/ansi" "github.com/schollz/progressbar" "gopkg.in/ini.v1" diff --git a/adm/helper.go b/adm/helper.go index a5ca6dc47..9e89e880e 100644 --- a/adm/helper.go +++ b/adm/helper.go @@ -8,10 +8,10 @@ import ( "strings" "time" - "github.com/GoAdminGroup/go-admin/modules/utils" + "github.com/ChenSee/go-admin/modules/utils" "github.com/mgutz/ansi" - "github.com/GoAdminGroup/go-admin/modules/system" + "github.com/ChenSee/go-admin/modules/system" ) func cliInfo() { diff --git a/adm/plugin_template.go b/adm/plugin_template.go index 6148683eb..c4e1ff5ee 100644 --- a/adm/plugin_template.go +++ b/adm/plugin_template.go @@ -7,15 +7,15 @@ import ( "{{.ModulePath}}/controller" "{{.ModulePath}}/guard" language2 "{{.ModulePath}}/modules/language" - "github.com/GoAdminGroup/go-admin/context" - "github.com/GoAdminGroup/go-admin/modules/config" - "github.com/GoAdminGroup/go-admin/modules/language" - "github.com/GoAdminGroup/go-admin/modules/service" - "github.com/GoAdminGroup/go-admin/modules/utils" - "github.com/GoAdminGroup/go-admin/plugins" - form2 "github.com/GoAdminGroup/go-admin/plugins/admin/modules/form" - "github.com/GoAdminGroup/go-admin/plugins/admin/modules/table" - "github.com/GoAdminGroup/go-admin/template/types" + "github.com/ChenSee/go-admin/context" + "github.com/ChenSee/go-admin/modules/config" + "github.com/ChenSee/go-admin/modules/language" + "github.com/ChenSee/go-admin/modules/service" + "github.com/ChenSee/go-admin/modules/utils" + "github.com/ChenSee/go-admin/plugins" + form2 "github.com/ChenSee/go-admin/plugins/admin/modules/form" + "github.com/ChenSee/go-admin/plugins/admin/modules/table" + "github.com/ChenSee/go-admin/template/types" ) type {{.PluginTitle}} struct { @@ -124,9 +124,9 @@ func (plug *{{.PluginTitle}}) GetSettingPage() table.Generator { "controller": `package controller import ( - "github.com/GoAdminGroup/go-admin/context" - "github.com/GoAdminGroup/go-admin/template" - "github.com/GoAdminGroup/go-admin/template/types" + "github.com/ChenSee/go-admin/context" + "github.com/ChenSee/go-admin/template" + "github.com/ChenSee/go-admin/template/types" ) type Handler struct { @@ -146,8 +146,8 @@ func (h *Handler) Update(/*...*/) { "controller_example": `package controller import ( - "github.com/GoAdminGroup/go-admin/context" - "github.com/GoAdminGroup/go-admin/template/types" + "github.com/ChenSee/go-admin/context" + "github.com/ChenSee/go-admin/template/types" "html/template" "{{.ModulePath}}/guard" ) @@ -164,7 +164,7 @@ func (h *Handler) Example(ctx *context.Context) { "guard": `package guard import ( - "github.com/GoAdminGroup/go-admin/modules/db" + "github.com/ChenSee/go-admin/modules/db" ) type Guardian struct { @@ -183,7 +183,7 @@ func (g *Guardian) Update(/*...*/) { "guard_example": `package guard import ( - "github.com/GoAdminGroup/go-admin/context" + "github.com/ChenSee/go-admin/context" ) type ExampleParam struct { @@ -215,9 +215,9 @@ test: "router": `package {{.PluginName}} import ( - "github.com/GoAdminGroup/go-admin/context" - "github.com/GoAdminGroup/go-admin/modules/auth" - "github.com/GoAdminGroup/go-admin/modules/service" + "github.com/ChenSee/go-admin/context" + "github.com/ChenSee/go-admin/modules/auth" + "github.com/ChenSee/go-admin/modules/service" ) func (plug *{{.PluginTitle}}) initRouter(srv service.List) *context.App { @@ -232,7 +232,7 @@ func (plug *{{.PluginTitle}}) initRouter(srv service.List) *context.App { "language": `package language import ( - "github.com/GoAdminGroup/go-admin/modules/language" + "github.com/ChenSee/go-admin/modules/language" "html/template" ) @@ -245,14 +245,14 @@ func GetHTML(key string) template.HTML { }`, "language_cn": `package language -import "github.com/GoAdminGroup/go-admin/modules/language" +import "github.com/ChenSee/go-admin/modules/language" var CN = language.LangSet{ "{{.PluginName}}.aaa": "aaa", }`, "language_en": `package language -import "github.com/GoAdminGroup/go-admin/modules/language" +import "github.com/ChenSee/go-admin/modules/language" var EN = language.LangSet{ "{{.PluginName}}.aaa": "aaa", diff --git a/adm/project.go b/adm/project.go index e65c7b20f..b532bde03 100644 --- a/adm/project.go +++ b/adm/project.go @@ -13,11 +13,11 @@ import ( "strings" "text/template" - "github.com/GoAdminGroup/go-admin/modules/db" + "github.com/ChenSee/go-admin/modules/db" - "github.com/GoAdminGroup/go-admin/modules/config" - "github.com/GoAdminGroup/go-admin/modules/language" - template2 "github.com/GoAdminGroup/go-admin/template" + "github.com/ChenSee/go-admin/modules/config" + "github.com/ChenSee/go-admin/modules/language" + template2 "github.com/ChenSee/go-admin/template" "github.com/mgutz/ansi" "gopkg.in/ini.v1" ) @@ -177,7 +177,7 @@ func buildProject(cfgFile string) { fmt.Println("- postgresql: " + ansi.Color("https://gitee.com/go-admin/go-admin/raw/master/data/admin.pgsql", "blue")) fmt.Println("- mysql: " + ansi.Color("https://gitee.com/go-admin/go-admin/raw/master/data/admin.sql", "blue")) } else { - fmt.Println("- sqlite: " + ansi.Color("https://github.com/GoAdminGroup/go-admin/raw/master/data/admin.db", "blue")) + fmt.Println("- sqlite: " + ansi.Color("https://github.com/ChenSee/go-admin/raw/master/data/admin.db", "blue")) fmt.Println("- mssql: " + ansi.Color("https://raw.githubusercontent.com/GoAdminGroup/go-admin/master/data/admin.mssql", "blue")) fmt.Println("- postgresql: " + ansi.Color("https://raw.githubusercontent.com/GoAdminGroup/go-admin/master/data/admin.pgsql", "blue")) fmt.Println("- mysql: " + ansi.Color("https://raw.githubusercontent.com/GoAdminGroup/go-admin/master/data/admin.sql", "blue")) @@ -260,7 +260,7 @@ func installProjectTmpl(p Project, cfg *config.Config, cfgFile string, info *dbI checkError(ioutil.WriteFile("./models/base.go", []byte(`package models import ( - "github.com/GoAdminGroup/go-admin/modules/db" + "github.com/ChenSee/go-admin/modules/db" "github.com/jinzhu/gorm" ) @@ -321,7 +321,7 @@ func Init(c db.Connection) { checkError(ioutil.WriteFile("./tables/tables.go", []byte(`// This file is generated by GoAdmin CLI adm. package tables -import "github.com/GoAdminGroup/go-admin/plugins/admin/modules/table" +import "github.com/ChenSee/go-admin/plugins/admin/modules/table" // Generators is a map of table models. // diff --git a/adm/project_template.go b/adm/project_template.go index 672debefa..58121d7cc 100644 --- a/adm/project_template.go +++ b/adm/project_template.go @@ -15,13 +15,13 @@ import ( "syscall" "time" - _ "github.com/GoAdminGroup/go-admin/adapter/gin" // web framework adapter - _ "github.com/GoAdminGroup/go-admin/modules/db/drivers/{{.DriverModule}}" // sql driver - _ "github.com/GoAdminGroup/themes/{{.Theme}}" // ui theme + _ "github.com/ChenSee/go-admin/adapter/gin" // web framework adapter + _ "github.com/ChenSee/go-admin/modules/db/drivers/{{.DriverModule}}" // sql driver + _ "github.com/ChenSee/goAdminThemes/{{.Theme}}" // ui theme - "github.com/GoAdminGroup/go-admin/engine" - "github.com/GoAdminGroup/go-admin/template" - "github.com/GoAdminGroup/go-admin/template/chartjs" + "github.com/ChenSee/go-admin/engine" + "github.com/ChenSee/go-admin/template" + "github.com/ChenSee/go-admin/template/chartjs" "github.com/gin-gonic/gin" "{{.Module}}/pages" @@ -95,13 +95,13 @@ import ( "os" "os/signal" - _ "github.com/GoAdminGroup/go-admin/adapter/beego" // web framework adapter - _ "github.com/GoAdminGroup/go-admin/modules/db/drivers/{{.DriverModule}}" // sql driver - _ "github.com/GoAdminGroup/themes/{{.Theme}}" // ui theme + _ "github.com/ChenSee/go-admin/adapter/beego" // web framework adapter + _ "github.com/ChenSee/go-admin/modules/db/drivers/{{.DriverModule}}" // sql driver + _ "github.com/ChenSee/goAdminThemes/{{.Theme}}" // ui theme - "github.com/GoAdminGroup/go-admin/engine" - "github.com/GoAdminGroup/go-admin/template" - "github.com/GoAdminGroup/go-admin/template/chartjs" + "github.com/ChenSee/go-admin/engine" + "github.com/ChenSee/go-admin/template" + "github.com/ChenSee/go-admin/template/chartjs" "github.com/astaxie/beego" "{{.Module}}/pages" @@ -156,13 +156,13 @@ import ( "os" "os/signal" - _ "github.com/GoAdminGroup/go-admin/adapter/buffalo" // web framework adapter - _ "github.com/GoAdminGroup/go-admin/modules/db/drivers/{{.DriverModule}}" // sql driver - _ "github.com/GoAdminGroup/themes/{{.Theme}}" // ui theme + _ "github.com/ChenSee/go-admin/adapter/buffalo" // web framework adapter + _ "github.com/ChenSee/go-admin/modules/db/drivers/{{.DriverModule}}" // sql driver + _ "github.com/ChenSee/goAdminThemes/{{.Theme}}" // ui theme - "github.com/GoAdminGroup/go-admin/engine" - "github.com/GoAdminGroup/go-admin/template" - "github.com/GoAdminGroup/go-admin/template/chartjs" + "github.com/ChenSee/go-admin/engine" + "github.com/ChenSee/go-admin/template" + "github.com/ChenSee/go-admin/template/chartjs" "github.com/gobuffalo/buffalo" "{{.Module}}/pages" @@ -222,13 +222,13 @@ import ( "path/filepath" "strings" - _ "github.com/GoAdminGroup/go-admin/adapter/chi" // web framework adapter - _ "github.com/GoAdminGroup/go-admin/modules/db/drivers/{{.DriverModule}}" // sql driver - _ "github.com/GoAdminGroup/themes/{{.Theme}}" // ui theme + _ "github.com/ChenSee/go-admin/adapter/chi" // web framework adapter + _ "github.com/ChenSee/go-admin/modules/db/drivers/{{.DriverModule}}" // sql driver + _ "github.com/ChenSee/goAdminThemes/{{.Theme}}" // ui theme - "github.com/GoAdminGroup/go-admin/engine" - "github.com/GoAdminGroup/go-admin/template" - "github.com/GoAdminGroup/go-admin/template/chartjs" + "github.com/ChenSee/go-admin/engine" + "github.com/ChenSee/go-admin/template" + "github.com/ChenSee/go-admin/template/chartjs" "github.com/go-chi/chi" "{{.Module}}/pages" @@ -305,13 +305,13 @@ import ( "os" "os/signal" - _ "github.com/GoAdminGroup/go-admin/adapter/echo" // web framework adapter - _ "github.com/GoAdminGroup/go-admin/modules/db/drivers/{{.DriverModule}}" // sql driver - _ "github.com/GoAdminGroup/themes/{{.Theme}}" // ui theme + _ "github.com/ChenSee/go-admin/adapter/echo" // web framework adapter + _ "github.com/ChenSee/go-admin/modules/db/drivers/{{.DriverModule}}" // sql driver + _ "github.com/ChenSee/goAdminThemes/{{.Theme}}" // ui theme - "github.com/GoAdminGroup/go-admin/engine" - "github.com/GoAdminGroup/go-admin/template" - "github.com/GoAdminGroup/go-admin/template/chartjs" + "github.com/ChenSee/go-admin/engine" + "github.com/ChenSee/go-admin/template" + "github.com/ChenSee/go-admin/template/chartjs" "github.com/labstack/echo/v4" "{{.Module}}/pages" @@ -363,13 +363,13 @@ import ( "os" "os/signal" - _ "github.com/GoAdminGroup/go-admin/adapter/fasthttp" // web framework adapter - _ "github.com/GoAdminGroup/go-admin/modules/db/drivers/{{.DriverModule}}" // sql driver - _ "github.com/GoAdminGroup/themes/{{.Theme}}" // ui theme + _ "github.com/ChenSee/go-admin/adapter/fasthttp" // web framework adapter + _ "github.com/ChenSee/go-admin/modules/db/drivers/{{.DriverModule}}" // sql driver + _ "github.com/ChenSee/goAdminThemes/{{.Theme}}" // ui theme - "github.com/GoAdminGroup/go-admin/engine" - "github.com/GoAdminGroup/go-admin/template" - "github.com/GoAdminGroup/go-admin/template/chartjs" + "github.com/ChenSee/go-admin/engine" + "github.com/ChenSee/go-admin/template" + "github.com/ChenSee/go-admin/template/chartjs" "github.com/buaazp/fasthttprouter" "github.com/valyala/fasthttp" @@ -424,13 +424,13 @@ import ( "os" "os/signal" - _ "github.com/GoAdminGroup/go-admin/adapter/gf" // web framework adapter - _ "github.com/GoAdminGroup/go-admin/modules/db/drivers/{{.DriverModule}}" // sql driver - _ "github.com/GoAdminGroup/themes/{{.Theme}}" // ui theme + _ "github.com/ChenSee/go-admin/adapter/gf" // web framework adapter + _ "github.com/ChenSee/go-admin/modules/db/drivers/{{.DriverModule}}" // sql driver + _ "github.com/ChenSee/goAdminThemes/{{.Theme}}" // ui theme - "github.com/GoAdminGroup/go-admin/engine" - "github.com/GoAdminGroup/go-admin/template" - "github.com/GoAdminGroup/go-admin/template/chartjs" + "github.com/ChenSee/go-admin/engine" + "github.com/ChenSee/go-admin/template" + "github.com/ChenSee/go-admin/template/chartjs" "github.com/gogf/gf/frame/g" "{{.Module}}/pages" @@ -484,13 +484,13 @@ import ( "os" "os/signal" - _ "github.com/GoAdminGroup/go-admin/adapter/gorilla" // web framework adapter - _ "github.com/GoAdminGroup/go-admin/modules/db/drivers/{{.DriverModule}}" // sql driver - _ "github.com/GoAdminGroup/themes/{{.Theme}}" // ui theme + _ "github.com/ChenSee/go-admin/adapter/gorilla" // web framework adapter + _ "github.com/ChenSee/go-admin/modules/db/drivers/{{.DriverModule}}" // sql driver + _ "github.com/ChenSee/goAdminThemes/{{.Theme}}" // ui theme - "github.com/GoAdminGroup/go-admin/engine" - "github.com/GoAdminGroup/go-admin/template" - "github.com/GoAdminGroup/go-admin/template/chartjs" + "github.com/ChenSee/go-admin/engine" + "github.com/ChenSee/go-admin/template" + "github.com/ChenSee/go-admin/template/chartjs" "github.com/gorilla/mux" "{{.Module}}/pages" @@ -544,13 +544,13 @@ import ( "os" "os/signal" - _ "github.com/GoAdminGroup/go-admin/adapter/iris" // web framework adapter - _ "github.com/GoAdminGroup/go-admin/modules/db/drivers/{{.DriverModule}}" // sql driver - _ "github.com/GoAdminGroup/themes/{{.Theme}}" // ui theme + _ "github.com/ChenSee/go-admin/adapter/iris" // web framework adapter + _ "github.com/ChenSee/go-admin/modules/db/drivers/{{.DriverModule}}" // sql driver + _ "github.com/ChenSee/goAdminThemes/{{.Theme}}" // ui theme - "github.com/GoAdminGroup/go-admin/engine" - "github.com/GoAdminGroup/go-admin/template" - "github.com/GoAdminGroup/go-admin/template/chartjs" + "github.com/ChenSee/go-admin/engine" + "github.com/ChenSee/go-admin/template" + "github.com/ChenSee/go-admin/template/chartjs" "github.com/kataras/iris/v12" "{{.Module}}/pages" @@ -604,15 +604,15 @@ func startServer() { var swordIndexPage = []byte(`package pages import ( - "github.com/GoAdminGroup/go-admin/context" - "github.com/GoAdminGroup/go-admin/modules/config" - template2 "github.com/GoAdminGroup/go-admin/template" - "github.com/GoAdminGroup/go-admin/template/chartjs" - "github.com/GoAdminGroup/go-admin/template/types" - "github.com/GoAdminGroup/themes/sword/components/card" - "github.com/GoAdminGroup/themes/sword/components/chart_legend" - "github.com/GoAdminGroup/themes/sword/components/description" - "github.com/GoAdminGroup/themes/sword/components/progress_group" + "github.com/ChenSee/go-admin/context" + "github.com/ChenSee/go-admin/modules/config" + template2 "github.com/ChenSee/go-admin/template" + "github.com/ChenSee/go-admin/template/chartjs" + "github.com/ChenSee/go-admin/template/types" + "github.com/ChenSee/goAdminThemes/sword/components/card" + "github.com/ChenSee/goAdminThemes/sword/components/chart_legend" + "github.com/ChenSee/goAdminThemes/sword/components/description" + "github.com/ChenSee/goAdminThemes/sword/components/progress_group" "html/template" ) @@ -877,17 +877,17 @@ like Aldus PageMaker including versions of Lorem Ipsum. var adminlteIndexPage = []byte(`package pages import ( - "github.com/GoAdminGroup/go-admin/context" - tmpl "github.com/GoAdminGroup/go-admin/template" - "github.com/GoAdminGroup/go-admin/template/chartjs" - "github.com/GoAdminGroup/go-admin/template/icon" - "github.com/GoAdminGroup/go-admin/template/types" - "github.com/GoAdminGroup/themes/adminlte/components/chart_legend" - "github.com/GoAdminGroup/themes/adminlte/components/description" - "github.com/GoAdminGroup/themes/adminlte/components/infobox" - "github.com/GoAdminGroup/themes/adminlte/components/productlist" - "github.com/GoAdminGroup/themes/adminlte/components/progress_group" - "github.com/GoAdminGroup/themes/adminlte/components/smallbox" + "github.com/ChenSee/go-admin/context" + tmpl "github.com/ChenSee/go-admin/template" + "github.com/ChenSee/go-admin/template/chartjs" + "github.com/ChenSee/go-admin/template/icon" + "github.com/ChenSee/go-admin/template/types" + "github.com/ChenSee/goAdminThemes/adminlte/components/chart_legend" + "github.com/ChenSee/goAdminThemes/adminlte/components/description" + "github.com/ChenSee/goAdminThemes/adminlte/components/infobox" + "github.com/ChenSee/goAdminThemes/adminlte/components/productlist" + "github.com/ChenSee/goAdminThemes/adminlte/components/progress_group" + "github.com/ChenSee/goAdminThemes/adminlte/components/smallbox" "html/template" ) @@ -1273,11 +1273,11 @@ var mainTest = []byte(`package main import ( "./tables" - "github.com/GoAdminGroup/go-admin/modules/config" - "github.com/GoAdminGroup/go-admin/tests" - "github.com/GoAdminGroup/go-admin/tests/common" - "github.com/GoAdminGroup/go-admin/tests/frameworks/gin" - "github.com/GoAdminGroup/go-admin/tests/web" + "github.com/ChenSee/go-admin/modules/config" + "github.com/ChenSee/go-admin/tests" + "github.com/ChenSee/go-admin/tests/common" + "github.com/ChenSee/go-admin/tests/frameworks/gin" + "github.com/ChenSee/go-admin/tests/web" "github.com/gavv/httpexpect" "log" "testing" @@ -1321,11 +1321,11 @@ var mainTestCN = []byte(`package main import ( "./tables" - "github.com/GoAdminGroup/go-admin/modules/config" - "github.com/GoAdminGroup/go-admin/tests" - "github.com/GoAdminGroup/go-admin/tests/common" - "github.com/GoAdminGroup/go-admin/tests/frameworks/gin" - "github.com/GoAdminGroup/go-admin/tests/web" + "github.com/ChenSee/go-admin/modules/config" + "github.com/ChenSee/go-admin/tests" + "github.com/ChenSee/go-admin/tests/common" + "github.com/ChenSee/go-admin/tests/frameworks/gin" + "github.com/ChenSee/go-admin/tests/web" "github.com/gavv/httpexpect" "log" "testing" @@ -1438,7 +1438,7 @@ var readme = `# GoAdmin Instruction GoAdmin is a golang framework help gopher quickly build a data visualization platform. -- [github](https://github.com/GoAdminGroup/go-admin) +- [github](https://github.com/ChenSee/go-admin) - [forum](http://discuss.go-admin.com) - [document](https://book.go-admin.cn) @@ -1481,7 +1481,7 @@ var readmeCN = `# GoAdmin 介绍 GoAdmin 是一个帮你快速搭建数据可视化管理应用平台的框架。 -- [github](https://github.com/GoAdminGroup/go-admin) +- [github](https://github.com/ChenSee/go-admin) - [论坛](http://discuss.go-admin.com) - [文档](https://book.go-admin.cn) diff --git a/adm/project_web.go b/adm/project_web.go index 80d4c57c7..46021e590 100644 --- a/adm/project_web.go +++ b/adm/project_web.go @@ -14,10 +14,10 @@ import ( "strings" "time" - "github.com/GoAdminGroup/go-admin/modules/config" - "github.com/GoAdminGroup/go-admin/modules/db" - "github.com/GoAdminGroup/go-admin/modules/system" - "github.com/GoAdminGroup/go-admin/modules/utils" + "github.com/ChenSee/go-admin/modules/config" + "github.com/ChenSee/go-admin/modules/db" + "github.com/ChenSee/go-admin/modules/system" + "github.com/ChenSee/go-admin/modules/utils" ) func buildProjectWeb(port string) { diff --git a/adm/project_web.tmpl b/adm/project_web.tmpl index 9b27d7f13..b33b8bd88 100644 --- a/adm/project_web.tmpl +++ b/adm/project_web.tmpl @@ -405,7 +405,7 @@