From 6b26cad796034d4da5072329b24925aacc3c5990 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Sun, 21 Apr 2024 12:20:06 +0800 Subject: [PATCH] :sparkles: User center page --- .idea/Passport.iml | 2 + .idea/jsLibraryMappings.xml | 2 +- .idea/workspace.xml | 40 +++---- go.mod | 1 + go.sum | 2 + pkg/models/accounts.go | 4 +- pkg/models/auth.go | 8 +- pkg/models/clients.go | 2 +- pkg/server/accounts_api.go | 2 +- pkg/server/oauth_api.go | 22 ++-- pkg/server/security_api.go | 6 +- pkg/server/startup.go | 2 +- pkg/server/ui/accounts.go | 45 +++++++- pkg/server/ui/index.go | 2 - pkg/server/userinfo_api.go | 2 +- pkg/services/auth.go | 12 +-- pkg/services/ticker_maintainer.go | 2 +- pkg/services/ticket.go | 2 +- pkg/views/layouts/auth.gohtml | 4 +- pkg/views/layouts/user-center.gohtml | 87 +++++++++++++++ pkg/views/partials/header.gohtml | 11 +- pkg/views/users/me.gohtml | 151 +++++++++++++++++++++++++++ pkg/views/users/me/index.gohtml | 3 - 23 files changed, 353 insertions(+), 61 deletions(-) create mode 100644 pkg/views/layouts/user-center.gohtml create mode 100644 pkg/views/users/me.gohtml delete mode 100644 pkg/views/users/me/index.gohtml diff --git a/.idea/Passport.iml b/.idea/Passport.iml index 0da4db5..677a786 100644 --- a/.idea/Passport.iml +++ b/.idea/Passport.iml @@ -6,5 +6,7 @@ + + \ No newline at end of file diff --git a/.idea/jsLibraryMappings.xml b/.idea/jsLibraryMappings.xml index 42f1d58..079368f 100644 --- a/.idea/jsLibraryMappings.xml +++ b/.idea/jsLibraryMappings.xml @@ -1,6 +1,6 @@ - + \ No newline at end of file diff --git a/.idea/workspace.xml b/.idea/workspace.xml index ae7f761..cf03f0d 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -4,28 +4,30 @@