From 005cdbd95b84ec427bc4e8291359d7ef2a633c23 Mon Sep 17 00:00:00 2001 From: waruneeauy Date: Mon, 27 Apr 2026 20:18:09 +0700 Subject: [PATCH 01/33] fixed map api key --- docker/entrypoint.sh | 2 -- src/components/AscGISMap.vue | 3 +-- src/components/MapCheckin.vue | 2 +- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh index 17560f4..aacd544 100644 --- a/docker/entrypoint.sh +++ b/docker/entrypoint.sh @@ -12,8 +12,6 @@ do sed -i 's|VITE_URL_SSO|'${VITE_URL_SSO}'|g' $file sed -i 's|VITE_URL_LANDING|'${VITE_URL_LANDING}'|g' $file sed -i 's|VITE_URL_USER|'${VITE_URL_USER}'|g' $file - sed -i 's|VITE_GOOGLE_MAPS_API_KEY|'${VITE_GOOGLE_MAPS_API_KEY}'|g' $file - sed -i 's|VITE_ARCGIS_API_KEY|'${VITE_ARCGIS_API_KEY}'|g' $file done diff --git a/src/components/AscGISMap.vue b/src/components/AscGISMap.vue index 828f81a..e39f58d 100644 --- a/src/components/AscGISMap.vue +++ b/src/components/AscGISMap.vue @@ -33,8 +33,7 @@ const mapView = shallowRef(null) // Store mapView reference for cleanup (us // ArcGIS API key from environment variable const apiKey = ref( - import.meta.env.VITE_ARCGIS_API_KEY || - 'YLATgWuywoeRLHn6KImj5rg7UaP8bJoR9jiTldoCVBHlqFIebwMSA5wIXEmcYhwXwMHkmNISEYtUz3x0oiGIIx0bIXXnUwi0OzupoOEtDrQIsRPVtor7gaPpXEmH8TrNaMT3snf6zO_yujHLGzborg-L9aeAjTJn4ndL6f8qFmRzYcX93E2vyA-7XCufLYTRsdTE5Aq-9hnx1q9PmYVMqhAZpL7dWqn3JgO33fRXetk.' + 'YLATgWuywoeRLHn6KImj5rg7UaP8bJoR9jiTldoCVBHlqFIebwMSA5wIXEmcYhwXwMHkmNISEYtUz3x0oiGIIx0bIXXnUwi0OzupoOEtDrQIsRPVtor7gaPpXEmH8TrNaMT3snf6zO_yujHLGzborg-L9aeAjTJn4ndL6f8qFmRzYcX93E2vyA-7XCufLYTRsdTE5Aq-9hnx1q9PmYVMqhAZpL7dWqn3JgO33fRXetk.' ) const zoomMap = ref(18) const textTooltip = ref( diff --git a/src/components/MapCheckin.vue b/src/components/MapCheckin.vue index 9e18ec0..6925eaa 100644 --- a/src/components/MapCheckin.vue +++ b/src/components/MapCheckin.vue @@ -5,7 +5,7 @@ import { useQuasar } from 'quasar' const $q = useQuasar() -const googleMapsApiKey = import.meta.env.VITE_GOOGLE_MAPS_API_KEY || '' +const googleMapsApiKey = 'AIzaSyBzPSF5NxUZ1G8DKBnJvJPTqCR0Ct2xf58' declare var google: any const center = ref() From 001e7d35801e3726d0777b1a606ed77c8aa6b0cc Mon Sep 17 00:00:00 2001 From: waruneeauy Date: Tue, 28 Apr 2026 09:47:12 +0700 Subject: [PATCH 02/33] fixed image profile to store --- src/stores/positionKeycloak.ts | 12 ++++++++++++ src/views/MainView.vue | 17 +++++++---------- 2 files changed, 19 insertions(+), 10 deletions(-) diff --git a/src/stores/positionKeycloak.ts b/src/stores/positionKeycloak.ts index a856ede..22ffb52 100644 --- a/src/stores/positionKeycloak.ts +++ b/src/stores/positionKeycloak.ts @@ -11,16 +11,26 @@ export const usePositionKeycloakStore = defineStore( 'รายการลงเวลากรณีพิเศษ', ]) const dataPositionKeycloak = ref(null) + const profileImg = ref('') function setPositionKeycloak(data: KeycloakPosition) { dataPositionKeycloak.value = data } + /** + * ตั้งค่ารูปโปรไฟล์ผู้ใช้งาน + * @param url URL ของรูปโปรไฟล์ + */ + function setProfileImg(url: string) { + profileImg.value = url + } + /** * ล้างข้อมูล Keycloak position (ใช้เมื่อ logout) */ function clearPositionKeycloak() { dataPositionKeycloak.value = null + profileImg.value = '' // ลบ localStorage ด้วยเพื่อให้แน่ใจว่าข้อมูลหายจริง localStorage.removeItem('positionKeycloak') } @@ -52,7 +62,9 @@ export const usePositionKeycloakStore = defineStore( return { setPositionKeycloak, clearPositionKeycloak, + setProfileImg, dataPositionKeycloak, + profileImg, findOrgName, menuData, } diff --git a/src/views/MainView.vue b/src/views/MainView.vue index edebfbc..7e7d42b 100644 --- a/src/views/MainView.vue +++ b/src/views/MainView.vue @@ -1,5 +1,5 @@ -
+
diff --git a/src/components/AscGISMapTime.vue b/src/components/AscGISMapTime.vue index 7360980..2bd31d7 100644 --- a/src/components/AscGISMapTime.vue +++ b/src/components/AscGISMapTime.vue @@ -1,10 +1,8 @@