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/public/config.json b/public/config.json new file mode 100644 index 0000000..65d0c7c --- /dev/null +++ b/public/config.json @@ -0,0 +1,44 @@ +{ + "heatmap": { + "temp": { + "range": [0, 50], + "color": ["#0023F5", "#FF1C05"], + "unit": "°C" + }, + "humi": { + "range": [15, 95], + "color": ["#ADD8E6", "#00008B"], + "unit": "%" + }, + "CO2": { + "range": [0, 5000], + "color": ["#FFDAB9", "#FF8C00"], + "unit": "ppm" + }, + "CO": { + "range": [0, 1000], + "color": ["#FFFFE0", "#FFD700"], + "unit": "ppm" + }, + "CH2O": { + "range": [0, 100], + "color": ["#90EE90", "#006400"], + "unit": "ppb" + }, + "PM1": { + "range": [0, 20], + "color": ["#E6E6FA", "#800080"], + "unit": "µg/m³" + }, + "PM2.5": { + "range": [0, 55], + "color": ["#FFB6C1", "#FF0000"], + "unit": "µg/m³" + }, + "PM10": { + "range": [0, 150], + "color": ["#FFDDC1", "#FF1493"], + "unit": "µg/m³" + } + } +} 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, });