From afe89dde888da0bfc81c330ad99e23fbaef9add6 Mon Sep 17 00:00:00 2001 From: ko1234 Date: Mon, 28 Oct 2024 15:05:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=8B=E9=9D=A2=E8=AA=BF=E6=95=B4=20|=20?= =?UTF-8?q?=E6=AD=B7=E5=8F=B2=E8=B3=87=E6=96=99:sidebar=E6=90=9C=E5=B0=8B?= =?UTF-8?q?=E7=AF=A9=E9=81=B8=20|=20button-group=E5=8A=A0=E4=B8=8A?= =?UTF-8?q?=E6=A8=A3=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 2 +- .env.production | 4 +- src/assets/index.css | 12 ++ src/components/customUI/ButtonGroup.vue | 34 +++- src/components/customUI/Pagination.vue | 2 +- src/components/customUI/Table.vue | 9 +- src/components/navbar/NavbarItem.vue | 131 +++++++++----- src/config/cn.json | 3 +- src/config/tw.json | 3 +- src/config/us.json | 167 +++++++++--------- src/fontawsomeIconRegister.js | 6 +- .../components/AssetTableAddModal.vue | 2 +- .../components/AssetTableModalLeftInfo.vue | 3 +- .../components/AssetTableModalLeftInfoIoT.vue | 3 +- .../components/AssetTableModalRightInfo.vue | 7 +- .../accountManagement/components/Account.vue | 26 ++- .../accountManagement/components/Role.vue | 8 +- .../components/AlertQuery/AlertSearch.vue | 5 +- .../AlertSetting/AlertNotifyTableAddModal.vue | 2 +- .../AlertOutliersTableAddModal.vue | 2 +- .../dashboard/components/DashboardSysCard.vue | 41 +++-- .../graphManagement/components/GraphModal.vue | 6 +- .../components/HistoryActionButton.vue | 8 +- .../history/components/HistorySearchTime.vue | 16 +- .../history/components/HistorySidebar.vue | 29 ++- .../components/OperationActionButton.vue | 9 +- .../operation/components/OperationSearch.vue | 2 +- .../components/OperationTableModal.vue | 2 +- 28 files changed, 334 insertions(+), 210 deletions(-) diff --git a/.env.development b/.env.development index 70caef8..013064f 100644 --- a/.env.development +++ b/.env.development @@ -1,3 +1,3 @@ VITE_API_BASEURL = "https://ibms-cvilux-api.production.mjmtech.com.tw" VITE_FILE_API_BASEURL = "https://cgems.cvilux-group.com:8088" -VITE_FORGE_BASEURL = "http://localhost:5173" \ No newline at end of file +VITE_FORGE_BASEURL = "https://cgems.cvilux-group.com:8088/dist" \ No newline at end of file diff --git a/.env.production b/.env.production index a7e4527..013064f 100644 --- a/.env.production +++ b/.env.production @@ -1,3 +1,3 @@ VITE_API_BASEURL = "https://ibms-cvilux-api.production.mjmtech.com.tw" -VITE_FILE_API_BASEURL = "https://ibms-cvilux.production.mjmtech.com.tw" -VITE_FORGE_BASEURL = "http://202.39.218.221:8080/file/netzero" \ No newline at end of file +VITE_FILE_API_BASEURL = "https://cgems.cvilux-group.com:8088" +VITE_FORGE_BASEURL = "https://cgems.cvilux-group.com:8088/dist" \ No newline at end of file diff --git a/src/assets/index.css b/src/assets/index.css index b6ae254..34de754 100644 --- a/src/assets/index.css +++ b/src/assets/index.css @@ -65,4 +65,16 @@ .btn-text-without-border { @apply active:border-0 focus:border-0 focus-visible:border-0 active:outline-none focus:outline-none focus-visible:outline-none; } + + .btn-add { + @apply text-white border border-cyan-400 bg-cyan-400 hover:bg-[theme("colors.cyan.500")] + } + + .btn-search { + @apply text-white border border-sky-400 bg-sky-400 hover:bg-[theme("colors.sky.500")] + } + + .btn-export { + @apply text-white border border-emerald-400 bg-emerald-400 hover:bg-[theme("colors.emerald.500")] + } } \ No newline at end of file diff --git a/src/components/customUI/ButtonGroup.vue b/src/components/customUI/ButtonGroup.vue index 4a90fd6..5235a03 100644 --- a/src/components/customUI/ButtonGroup.vue +++ b/src/components/customUI/ButtonGroup.vue @@ -5,24 +5,40 @@ import { twMerge } from "tailwind-merge"; const props = defineProps({ items: Array, withLine: Boolean, + withBtnClass: { type: Boolean, default: false }, // this is for change active button onclick: Function, - className: String + className: String, });