From 5560d4f6cfaebdbfa7c083711390a346fba46eec Mon Sep 17 00:00:00 2001 From: wangjunbo Date: Wed, 10 Apr 2024 17:03:39 +0800 Subject: [PATCH] [KYUUBI #6079] Web UI support Basic authN --- kyuubi-server/web-ui/src/App.vue | 1 + .../src/components/login/LoginModal.vue | 88 ++++++++++++++++++ .../src/layout/components/header/index.vue | 91 ++++++++++++++----- kyuubi-server/web-ui/src/main.ts | 5 +- kyuubi-server/web-ui/src/pinia/auth/auth.ts | 42 +++++++++ kyuubi-server/web-ui/src/utils/request.ts | 8 ++ 6 files changed, 212 insertions(+), 23 deletions(-) create mode 100644 kyuubi-server/web-ui/src/components/login/LoginModal.vue create mode 100644 kyuubi-server/web-ui/src/pinia/auth/auth.ts diff --git a/kyuubi-server/web-ui/src/App.vue b/kyuubi-server/web-ui/src/App.vue index 76f5f08cd49..5a4eeb9f0e1 100644 --- a/kyuubi-server/web-ui/src/App.vue +++ b/kyuubi-server/web-ui/src/App.vue @@ -21,6 +21,7 @@ diff --git a/kyuubi-server/web-ui/src/components/login/LoginModal.vue b/kyuubi-server/web-ui/src/components/login/LoginModal.vue new file mode 100644 index 00000000000..bf89be6ff35 --- /dev/null +++ b/kyuubi-server/web-ui/src/components/login/LoginModal.vue @@ -0,0 +1,88 @@ + + + + + diff --git a/kyuubi-server/web-ui/src/layout/components/header/index.vue b/kyuubi-server/web-ui/src/layout/components/header/index.vue index ada2a860543..57a128ff7fb 100644 --- a/kyuubi-server/web-ui/src/layout/components/header/index.vue +++ b/kyuubi-server/web-ui/src/layout/components/header/index.vue @@ -18,27 +18,44 @@