From c25a1f5c8285b37a4e32d7a817bae512fde85307 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Sun, 21 Apr 2024 17:18:00 +0800 Subject: [PATCH] :sparkles: OAuth --- .idea/workspace.xml | 13 ++- pkg/i18n/locale.en.json | 4 + pkg/i18n/locale.zh.json | 4 + pkg/server/ui/index.go | 2 + pkg/server/ui/oauth.go | 154 +++++++++++++++++++++++++++ pkg/views/authorize.gohtml | 50 +++++++++ pkg/views/layouts/user-center.gohtml | 8 -- pkg/views/users/personalize.gohtml | 2 +- 8 files changed, 221 insertions(+), 16 deletions(-) create mode 100644 pkg/server/ui/oauth.go create mode 100644 pkg/views/authorize.gohtml diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 4bdf07e..c7b4b84 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -4,17 +4,15 @@