This repository has been archived by the owner on Jun 6, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #88 from qor5/vue3
Vue3
- Loading branch information
Showing
242 changed files
with
20,721 additions
and
7,809 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
.idea | ||
.DS_Store | ||
_tmp | ||
__debug_* | ||
_backup |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,22 +3,22 @@ package admin | |
import ( | ||
"net/http" | ||
|
||
"github.com/qor5/admin/presets" | ||
"github.com/qor5/admin/presets/gorm2op" | ||
"github.com/qor5/docs/cmd/qor5/admin-template/models" | ||
"github.com/qor5/ui/vuetify" | ||
"github.com/qor5/web" | ||
h "github.com/theplant/htmlgo" | ||
"github.com/qor5/admin/v3/presets" | ||
Check failure on line 6 in cmd/qor5/admin-template/admin/config.go
|
||
"github.com/qor5/admin/v3/presets/gorm2op" | ||
Check failure on line 7 in cmd/qor5/admin-template/admin/config.go
|
||
"github.com/qor5/docs/v3/cmd/qor5/admin-template/models" | ||
. "github.com/qor5/ui/v3/vuetify" | ||
"github.com/qor5/web/v3" | ||
. "github.com/theplant/htmlgo" | ||
) | ||
|
||
func Initialize() *http.ServeMux { | ||
b := initializeProject() | ||
mux := SetupRouter(b) | ||
b := setupAdmin() | ||
mux := setupRouter(b) | ||
|
||
return mux | ||
} | ||
|
||
func initializeProject() (b *presets.Builder) { | ||
func setupAdmin() (b *presets.Builder) { | ||
db := ConnectDB() | ||
|
||
// Initialize the builder of QOR5 | ||
|
@@ -29,9 +29,9 @@ func initializeProject() (b *presets.Builder) { | |
BrandTitle("Admin"). | ||
DataOperator(gorm2op.DataOperator(db)). | ||
HomePageFunc(func(ctx *web.EventContext) (r web.PageResponse, err error) { | ||
r.Body = vuetify.VContainer( | ||
h.H1("Home"), | ||
h.P().Text("Change your home page here")) | ||
r.Body = VContainer( | ||
H1("Home"), | ||
P().Text("Change your home page here")) | ||
return | ||
}) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
publish |
Oops, something went wrong.