From 3f6474783927a686fe1fd24e16fda071d1efc5ae Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Mon, 24 Jun 2024 23:54:45 +0800 Subject: [PATCH] :recycle: Update the sign in web page to the latest API --- .idea/codeStyles/Project.xml | 59 +++++++++++++++ .idea/codeStyles/codeStyleConfig.xml | 5 ++ .idea/workspace.xml | 73 +++---------------- pkg/internal/server/api/auth_api.go | 4 +- pkg/internal/server/api/factors_api.go | 19 +++++ pkg/internal/server/api/index.go | 3 + web/src/components/Copyright.vue | 2 +- .../{AccountLocator.vue => Authenticate.vue} | 20 +++-- .../components/auth/AuthenticateCompleted.vue | 68 +++++++++++++++++ web/src/components/auth/FactorApplicator.vue | 62 ++++------------ web/src/components/auth/FactorPicker.vue | 31 +++++--- web/src/router/index.ts | 33 +++++---- .../views/auth/{connect.vue => authorize.vue} | 0 web/src/views/auth/sign-in.vue | 31 +++----- web/src/views/confirm.vue | 2 +- 15 files changed, 245 insertions(+), 167 deletions(-) create mode 100644 .idea/codeStyles/Project.xml create mode 100644 .idea/codeStyles/codeStyleConfig.xml rename web/src/components/auth/{AccountLocator.vue => Authenticate.vue} (65%) create mode 100644 web/src/components/auth/AuthenticateCompleted.vue rename web/src/views/auth/{connect.vue => authorize.vue} (100%) diff --git a/.idea/codeStyles/Project.xml b/.idea/codeStyles/Project.xml new file mode 100644 index 0000000..c0eeaef --- /dev/null +++ b/.idea/codeStyles/Project.xml @@ -0,0 +1,59 @@ + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/codeStyles/codeStyleConfig.xml b/.idea/codeStyles/codeStyleConfig.xml new file mode 100644 index 0000000..79ee123 --- /dev/null +++ b/.idea/codeStyles/codeStyleConfig.xml @@ -0,0 +1,5 @@ + + + + \ No newline at end of file diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 72a6cdd..fca4e41 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -5,70 +5,19 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - - - - + + - - - - - - - - - - - - - - - - - - - - + + + + + + + +