From e12b78942265c610c6054027b0cd8513964ee330 Mon Sep 17 00:00:00 2001 From: labbomb <739955946@qq.com> Date: Fri, 15 Sep 2023 13:13:47 +0800 Subject: [PATCH] [Feature] Introduce Layout (#41) --- paimon-web-ui-new/index.html | 4 +- paimon-web-ui-new/package.json | 1 + paimon-web-ui-new/pnpm-lock.yaml | 7 ++ paimon-web-ui-new/public/favicon.ico | Bin 4286 -> 0 bytes paimon-web-ui-new/public/favicon_blue.svg | 16 ++++ paimon-web-ui-new/src/App.tsx | 1 + paimon-web-ui-new/src/api/request.ts | 8 +- paimon-web-ui-new/src/assets/styles/main.scss | 28 +++++++ .../content/components/menubar/index.tsx | 67 ++++++++++++++++ .../content/components/toolbar/index.tsx | 74 ++++++++++++++++++ .../components/topbar/index.module.scss | 53 +++++++++++++ .../content/components/topbar/index.tsx | 47 +++++++++++ .../src/layouts/content/index.module.scss | 21 +++++ .../src/layouts/content/index.tsx | 39 +++++++++ paimon-web-ui-new/src/locales/en/index.ts | 4 +- .../src/locales/en/modules/layout.ts | 25 ++++++ paimon-web-ui-new/src/locales/zh/index.ts | 4 +- .../src/locales/zh/modules/layout.ts | 25 ++++++ .../src/locales/zh/modules/login.ts | 2 +- paimon-web-ui-new/src/main.ts | 1 + paimon-web-ui-new/src/router/index.ts | 2 +- .../{HomePage.tsx => homepage/index.tsx} | 8 +- paimon-web-ui-new/src/views/login/index.tsx | 2 +- paimon-web-ui-new/src/views/login/use-form.ts | 5 +- 24 files changed, 426 insertions(+), 18 deletions(-) delete mode 100644 paimon-web-ui-new/public/favicon.ico create mode 100644 paimon-web-ui-new/public/favicon_blue.svg create mode 100644 paimon-web-ui-new/src/assets/styles/main.scss create mode 100644 paimon-web-ui-new/src/layouts/content/components/menubar/index.tsx create mode 100644 paimon-web-ui-new/src/layouts/content/components/toolbar/index.tsx create mode 100644 paimon-web-ui-new/src/layouts/content/components/topbar/index.module.scss create mode 100644 paimon-web-ui-new/src/layouts/content/components/topbar/index.tsx create mode 100644 paimon-web-ui-new/src/layouts/content/index.module.scss create mode 100644 paimon-web-ui-new/src/layouts/content/index.tsx create mode 100644 paimon-web-ui-new/src/locales/en/modules/layout.ts create mode 100644 paimon-web-ui-new/src/locales/zh/modules/layout.ts rename paimon-web-ui-new/src/views/{HomePage.tsx => homepage/index.tsx} (70%) diff --git a/paimon-web-ui-new/index.html b/paimon-web-ui-new/index.html index 4b4c9d2d4..dd2ddbac9 100644 --- a/paimon-web-ui-new/index.html +++ b/paimon-web-ui-new/index.html @@ -21,9 +21,9 @@
- + -