From ab0dd54504eb771f789aaa73d3ffbaa7b3296311 Mon Sep 17 00:00:00 2001 From: ROOMrepair Date: Fri, 3 Jan 2025 10:10:59 +0800 Subject: [PATCH] modify karmada web extension name Signed-off-by: ROOMrepair --- modules/web/extensions/karmada-dashboard-ui/Dockerfile | 3 --- modules/web/extensions/karmada-dashboard-ui/README.md | 5 ----- modules/web/extensions/karmada-dashboard/Dockerfile | 3 +++ modules/web/extensions/karmada-dashboard/README.md | 5 +++++ .../{karmada-dashboard-ui => karmada-dashboard}/package.json | 4 ++-- .../{karmada-dashboard-ui => karmada-dashboard}/src/App.tsx | 0 .../{karmada-dashboard-ui => karmada-dashboard}/src/index.ts | 4 ++-- .../src/locales/en/base.json | 0 .../src/locales/en/index.js | 0 .../src/locales/index.js | 0 .../src/locales/zh/base.json | 0 .../src/locales/zh/index.js | 0 .../src/routes/index.tsx | 2 +- .../src/utils/constants.ts | 0 .../src/utils/iframe.ts | 0 .../src/utils/request.ts | 0 .../src/utils/winState.ts | 0 ui/package.json | 2 +- 18 files changed, 14 insertions(+), 14 deletions(-) delete mode 100644 modules/web/extensions/karmada-dashboard-ui/Dockerfile delete mode 100644 modules/web/extensions/karmada-dashboard-ui/README.md create mode 100644 modules/web/extensions/karmada-dashboard/Dockerfile create mode 100644 modules/web/extensions/karmada-dashboard/README.md rename modules/web/extensions/{karmada-dashboard-ui => karmada-dashboard}/package.json (62%) rename modules/web/extensions/{karmada-dashboard-ui => karmada-dashboard}/src/App.tsx (100%) rename modules/web/extensions/{karmada-dashboard-ui => karmada-dashboard}/src/index.ts (79%) rename modules/web/extensions/{karmada-dashboard-ui => karmada-dashboard}/src/locales/en/base.json (100%) rename modules/web/extensions/{karmada-dashboard-ui => karmada-dashboard}/src/locales/en/index.js (100%) rename modules/web/extensions/{karmada-dashboard-ui => karmada-dashboard}/src/locales/index.js (100%) rename modules/web/extensions/{karmada-dashboard-ui => karmada-dashboard}/src/locales/zh/base.json (100%) rename modules/web/extensions/{karmada-dashboard-ui => karmada-dashboard}/src/locales/zh/index.js (100%) rename modules/web/extensions/{karmada-dashboard-ui => karmada-dashboard}/src/routes/index.tsx (75%) rename modules/web/extensions/{karmada-dashboard-ui => karmada-dashboard}/src/utils/constants.ts (100%) rename modules/web/extensions/{karmada-dashboard-ui => karmada-dashboard}/src/utils/iframe.ts (100%) rename modules/web/extensions/{karmada-dashboard-ui => karmada-dashboard}/src/utils/request.ts (100%) rename modules/web/extensions/{karmada-dashboard-ui => karmada-dashboard}/src/utils/winState.ts (100%) diff --git a/modules/web/extensions/karmada-dashboard-ui/Dockerfile b/modules/web/extensions/karmada-dashboard-ui/Dockerfile deleted file mode 100644 index 50b393f2..00000000 --- a/modules/web/extensions/karmada-dashboard-ui/Dockerfile +++ /dev/null @@ -1,3 +0,0 @@ -FROM nginx:alpine - -COPY dist /usr/share/nginx/html/dist/karmada-dashboard-ui-frontend diff --git a/modules/web/extensions/karmada-dashboard-ui/README.md b/modules/web/extensions/karmada-dashboard-ui/README.md deleted file mode 100644 index 02e2f915..00000000 --- a/modules/web/extensions/karmada-dashboard-ui/README.md +++ /dev/null @@ -1,5 +0,0 @@ -# karmada-dashboard-ui - -Hello karmada-dashboard-ui - -> TODO: README diff --git a/modules/web/extensions/karmada-dashboard/Dockerfile b/modules/web/extensions/karmada-dashboard/Dockerfile new file mode 100644 index 00000000..70a1750f --- /dev/null +++ b/modules/web/extensions/karmada-dashboard/Dockerfile @@ -0,0 +1,3 @@ +FROM nginx:alpine + +COPY dist /usr/share/nginx/html/dist/karmada-dashboard-frontend diff --git a/modules/web/extensions/karmada-dashboard/README.md b/modules/web/extensions/karmada-dashboard/README.md new file mode 100644 index 00000000..e36fdb19 --- /dev/null +++ b/modules/web/extensions/karmada-dashboard/README.md @@ -0,0 +1,5 @@ +# karmada-dashboard + +Hello karmada-dashboard + +> TODO: README diff --git a/modules/web/extensions/karmada-dashboard-ui/package.json b/modules/web/extensions/karmada-dashboard/package.json similarity index 62% rename from modules/web/extensions/karmada-dashboard-ui/package.json rename to modules/web/extensions/karmada-dashboard/package.json index 7bafcd56..253fe8e7 100644 --- a/modules/web/extensions/karmada-dashboard-ui/package.json +++ b/modules/web/extensions/karmada-dashboard/package.json @@ -1,8 +1,8 @@ { - "name": "karmada-dashboard-ui", + "name": "karmada-dashboard", "version": "1.0.0", "private": true, - "description": "Hello karmada-dashboard-ui", + "description": "Hello karmada-dashboard", "homepage": "", "author": "", "main": "dist/index.js", diff --git a/modules/web/extensions/karmada-dashboard-ui/src/App.tsx b/modules/web/extensions/karmada-dashboard/src/App.tsx similarity index 100% rename from modules/web/extensions/karmada-dashboard-ui/src/App.tsx rename to modules/web/extensions/karmada-dashboard/src/App.tsx diff --git a/modules/web/extensions/karmada-dashboard-ui/src/index.ts b/modules/web/extensions/karmada-dashboard/src/index.ts similarity index 79% rename from modules/web/extensions/karmada-dashboard-ui/src/index.ts rename to modules/web/extensions/karmada-dashboard/src/index.ts index bfd52114..807e23df 100644 --- a/modules/web/extensions/karmada-dashboard-ui/src/index.ts +++ b/modules/web/extensions/karmada-dashboard/src/index.ts @@ -4,11 +4,11 @@ import locales from './locales'; const menus = [ { parent: 'topbar', - name: 'karmada-dashboard-ui', + name: 'karmada-dashboard', title: 'Karmada Dashboard', icon: 'cluster', order: 0, - desc: 'Hello karmada-dashboard-ui', + desc: 'Hello karmada-dashboard', skipAuth: true, }, ]; diff --git a/modules/web/extensions/karmada-dashboard-ui/src/locales/en/base.json b/modules/web/extensions/karmada-dashboard/src/locales/en/base.json similarity index 100% rename from modules/web/extensions/karmada-dashboard-ui/src/locales/en/base.json rename to modules/web/extensions/karmada-dashboard/src/locales/en/base.json diff --git a/modules/web/extensions/karmada-dashboard-ui/src/locales/en/index.js b/modules/web/extensions/karmada-dashboard/src/locales/en/index.js similarity index 100% rename from modules/web/extensions/karmada-dashboard-ui/src/locales/en/index.js rename to modules/web/extensions/karmada-dashboard/src/locales/en/index.js diff --git a/modules/web/extensions/karmada-dashboard-ui/src/locales/index.js b/modules/web/extensions/karmada-dashboard/src/locales/index.js similarity index 100% rename from modules/web/extensions/karmada-dashboard-ui/src/locales/index.js rename to modules/web/extensions/karmada-dashboard/src/locales/index.js diff --git a/modules/web/extensions/karmada-dashboard-ui/src/locales/zh/base.json b/modules/web/extensions/karmada-dashboard/src/locales/zh/base.json similarity index 100% rename from modules/web/extensions/karmada-dashboard-ui/src/locales/zh/base.json rename to modules/web/extensions/karmada-dashboard/src/locales/zh/base.json diff --git a/modules/web/extensions/karmada-dashboard-ui/src/locales/zh/index.js b/modules/web/extensions/karmada-dashboard/src/locales/zh/index.js similarity index 100% rename from modules/web/extensions/karmada-dashboard-ui/src/locales/zh/index.js rename to modules/web/extensions/karmada-dashboard/src/locales/zh/index.js diff --git a/modules/web/extensions/karmada-dashboard-ui/src/routes/index.tsx b/modules/web/extensions/karmada-dashboard/src/routes/index.tsx similarity index 75% rename from modules/web/extensions/karmada-dashboard-ui/src/routes/index.tsx rename to modules/web/extensions/karmada-dashboard/src/routes/index.tsx index 2c64c876..148bebaf 100644 --- a/modules/web/extensions/karmada-dashboard-ui/src/routes/index.tsx +++ b/modules/web/extensions/karmada-dashboard/src/routes/index.tsx @@ -3,7 +3,7 @@ import App from '../App'; export default [ { - path: '/karmada-dashboard-ui', + path: '/karmada-dashboard', element: , }, ]; diff --git a/modules/web/extensions/karmada-dashboard-ui/src/utils/constants.ts b/modules/web/extensions/karmada-dashboard/src/utils/constants.ts similarity index 100% rename from modules/web/extensions/karmada-dashboard-ui/src/utils/constants.ts rename to modules/web/extensions/karmada-dashboard/src/utils/constants.ts diff --git a/modules/web/extensions/karmada-dashboard-ui/src/utils/iframe.ts b/modules/web/extensions/karmada-dashboard/src/utils/iframe.ts similarity index 100% rename from modules/web/extensions/karmada-dashboard-ui/src/utils/iframe.ts rename to modules/web/extensions/karmada-dashboard/src/utils/iframe.ts diff --git a/modules/web/extensions/karmada-dashboard-ui/src/utils/request.ts b/modules/web/extensions/karmada-dashboard/src/utils/request.ts similarity index 100% rename from modules/web/extensions/karmada-dashboard-ui/src/utils/request.ts rename to modules/web/extensions/karmada-dashboard/src/utils/request.ts diff --git a/modules/web/extensions/karmada-dashboard-ui/src/utils/winState.ts b/modules/web/extensions/karmada-dashboard/src/utils/winState.ts similarity index 100% rename from modules/web/extensions/karmada-dashboard-ui/src/utils/winState.ts rename to modules/web/extensions/karmada-dashboard/src/utils/winState.ts diff --git a/ui/package.json b/ui/package.json index 03c379b8..756cbc81 100644 --- a/ui/package.json +++ b/ui/package.json @@ -1,5 +1,5 @@ { - "name": "karmada-dashboard-ui", + "name": "karmada-dashboard", "version": "1.0.0", "description": "", "main": "index.js",