diff --git a/modules/web/extensions/karmada-dashboard-ui/Dockerfile b/modules/web/extensions/karmada-dashboard-ui/Dockerfile deleted file mode 100644 index 50b393f..0000000 --- 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 02e2f91..0000000 --- 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 0000000..70a1750 --- /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 0000000..e36fdb1 --- /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 7bafcd5..253fe8e 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 bfd5211..807e23d 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 2c64c87..148beba 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 03c379b..756cbc8 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",