diff --git a/composables/usePermissions.ts b/composables/usePermissions.ts
index 017ba90..fb8c3b9 100644
--- a/composables/usePermissions.ts
+++ b/composables/usePermissions.ts
@@ -17,7 +17,7 @@ export const usePermission = () => {
*/
const fetchPermission = async (path: string) => {
const { group, role } = parsePath(path);
- const url = `http://10.10.150.131:8080/api/permission?roles=${role}&groups=${group}`;
+ const url = `http://10.10.123.140:8089/api/permission?roles=${role}&groups=${group}`;
const { data, error } = await useFetch(url, {
method: "GET",
diff --git a/nuxt.config.ts b/nuxt.config.ts
index 86d99d8..1954194 100644
--- a/nuxt.config.ts
+++ b/nuxt.config.ts
@@ -73,16 +73,16 @@ export default defineNuxtConfig({
oauthStateDurationMinutes: parseInt(process.env.OAUTH_STATE_DURATION_MINUTES || '10', 10),
// External API
- externalApiBaseUrl: process.env.EXTERNAL_API_BASE_URL || 'http://10.10.150.100:8084',
+ externalApiBaseUrl: process.env.EXTERNAL_API_BASE_URL || 'http://10.10.123.135:8084',
externalApiTimeout: parseInt(process.env.EXTERNAL_API_TIMEOUT || '10000', 10),
public: {
authUrl: process.env.AUTH_ORIGIN,
// authUrl: process.env.AUTH_ORIGIN || "http://10.10.150.175:3001",
// authUrl: process.env.AUTH_ORIGIN || "http://localhost:3001",
- wsBaseUrl: process.env.WS_BASE_URL || 'ws://10.10.150.100:8084/api/v1/ws',
+ wsBaseUrl: process.env.WS_BASE_URL || 'ws://10.10.123.135x:8084/api/v1/ws',
ekstrakExpertiseUrl: process.env.EKSTRAK_EXPERTISE_URL || 'http://10.10.123.218/ekstrakexpertise',
- verificationApiBaseUrl: process.env.VERIFICATION_API_BASE_URL || 'http://10.10.150.131:8089/api/v1',
+ verificationApiBaseUrl: process.env.VERIFICATION_API_BASE_URL || 'http://10.10.123.140:8089/api/v1',
},
},
@@ -121,10 +121,10 @@ export default defineNuxtConfig({
routeRules: {
'/stats-api/**': {
- proxy: 'http://10.10.150.100:8084/api/v1/**'
+ proxy: 'http://10.10.123.135:8084/api/v1/**'
},
'/visit-api/**': {
- proxy: 'http://10.10.150.100:8084/api/v1/**'
+ proxy: 'http://10.10.123.135:8084/api/v1/**'
},
},
diff --git a/pages/AdminLoket/[id].vue b/pages/AdminLoket/[id].vue
index ccd97fd..c3d49f5 100644
--- a/pages/AdminLoket/[id].vue
+++ b/pages/AdminLoket/[id].vue
@@ -485,7 +485,7 @@ const apiQuota = ref(null);
const fetchQuotaFromAPI = async () => {
try {
const response = await fetch(
- "http://10.10.150.131:8089/api/v1/klinik/loket",
+ "http://10.10.123.140:8089/api/v1/klinik/loket",
);
const data = await response.json();
@@ -1194,7 +1194,7 @@ const buatAntreanKlinikRuang = async (klinikRuang, ruang) => {
console.log("📤 Sending visit ticket to API:", visitTicketBody);
const visitResponse = await fetch(
- "http://10.10.150.100:8084/api/v1/visit/ticket/klinik",
+ "http://10.10.123.135:8084/api/v1/visit/ticket/klinik",
{
method: "POST",
headers: {
diff --git a/pages/Anjungan/AntreanMasuk/[id].vue b/pages/Anjungan/AntreanMasuk/[id].vue
index 7957f89..57ff52d 100644
--- a/pages/Anjungan/AntreanMasuk/[id].vue
+++ b/pages/Anjungan/AntreanMasuk/[id].vue
@@ -490,7 +490,7 @@ const fetchAllData = async () => {
// WebSocket configuration for Anjungan
const config = useRuntimeConfig()
-const wsBaseUrl = config.public?.wsBaseUrl || 'ws://10.10.150.100:8084/api/v1/ws'
+const wsBaseUrl = config.public?.wsBaseUrl || 'ws://10.10.123.135:8084/api/v1/ws'
// Generate a unique session suffix (random ID) to fulfill "use different id" request
// This ensures that even if the same screen is opened in multiple tabs, they have distinct client IDs
diff --git a/pages/Anjungan/AntrianKlinikRuang/[kodeKlinik].vue b/pages/Anjungan/AntrianKlinikRuang/[kodeKlinik].vue
index ae161ca..9a565c8 100644
--- a/pages/Anjungan/AntrianKlinikRuang/[kodeKlinik].vue
+++ b/pages/Anjungan/AntrianKlinikRuang/[kodeKlinik].vue
@@ -460,7 +460,7 @@ const updateTime = () => {
// WebSocket configuration for Anjungan
const config = useRuntimeConfig()
-const wsBaseUrl = config.public?.wsBaseUrl || 'ws://10.10.150.100:8084/api/v1/ws'
+const wsBaseUrl = config.public?.wsBaseUrl || 'ws://10.10.123.135:8084/api/v1/ws'
// Generate a unique session suffix (random ID)
const uniqueSessionSuffix = ref(process.client ? Math.random().toString(36).substring(2, 8) : '')
diff --git a/pages/Anjungan/AntrianLoket/[id].vue b/pages/Anjungan/AntrianLoket/[id].vue
index 0743e5f..d5854d7 100644
--- a/pages/Anjungan/AntrianLoket/[id].vue
+++ b/pages/Anjungan/AntrianLoket/[id].vue
@@ -858,7 +858,7 @@ const updateTime = () => {
// WebSocket configuration (Placeholder)
const config = useRuntimeConfig()
-const wsBaseUrl = config.public?.wsBaseUrl || 'ws://10.10.150.100:8084/api/v1/ws'
+const wsBaseUrl = config.public?.wsBaseUrl || 'ws://10.10.123.135:8084/api/v1/ws'
const anjunganClientId = computed(() => {
if (!loketId.value) return ''
return `anjungan-loket-${loketId.value}-${uniqueSessionSuffix.value}`
diff --git a/pages/CheckInPasien/checkIn.vue b/pages/CheckInPasien/checkIn.vue
index e422103..7d8665f 100644
--- a/pages/CheckInPasien/checkIn.vue
+++ b/pages/CheckInPasien/checkIn.vue
@@ -1683,7 +1683,7 @@ const masterStore = useMasterStore();
const { printTicketFromPatient, isPrinting } = useThermalPrint();
const config = useRuntimeConfig();
const wsBaseUrl =
- config.public?.wsBaseUrl || "ws://10.10.150.100:8084/api/v1/ws";
+ config.public?.wsBaseUrl || "ws://10.10.123.135:8084/api/v1/ws";
// TypeScript declaration for QRCode
declare global {
diff --git a/pages/index.vue b/pages/index.vue
index 6e4069b..fd7d6f6 100644
--- a/pages/index.vue
+++ b/pages/index.vue
@@ -181,7 +181,7 @@ onMounted(async () => {
Test and validate your current access token against the external API endpoint:
- http://10.10.150.100:8084/api/v1/auth/me
+ http://10.10.123.135:8084/api/v1/auth/me
diff --git a/public/RSSA logo 1.png b/public/RSSA logo 1.png
new file mode 100644
index 0000000..b6e058e
Binary files /dev/null and b/public/RSSA logo 1.png differ
diff --git a/server/api/permission.get.ts b/server/api/permission.get.ts
index c799ef7..492cd45 100644
--- a/server/api/permission.get.ts
+++ b/server/api/permission.get.ts
@@ -187,7 +187,7 @@ export default defineEventHandler(async (event) => {
if (primaryGroup) params.append('groups', primaryGroup);
// Backend API URL - adjust this to match your backend
- const backendUrl = `http://10.10.150.131:8089/api/v1/permission?${params.toString()}`;
+ const backendUrl = `http://10.10.123.140:8089/api/v1/permission?${params.toString()}`;
try {
console.log(`📡 Fetching permissions from: ${backendUrl}`);
diff --git a/stores/antreanMasukScreenStore.js b/stores/antreanMasukScreenStore.js
index 6c69715..d942f54 100644
--- a/stores/antreanMasukScreenStore.js
+++ b/stores/antreanMasukScreenStore.js
@@ -9,7 +9,7 @@ export const useAntreanMasukScreenStore = defineStore('antreanMasukScreen', () =
id: 1,
namaScreen: "Layar Antrean Masuk 1",
nomorScreen: "AM-001",
- loket: [1, 2], // Array of loket IDs
+ loket: [1, 2, 12, 14], // Array of loket IDs
},
{
id: 2,
diff --git a/stores/clinicStore.js b/stores/clinicStore.js
index 3e54c19..5b29b00 100644
--- a/stores/clinicStore.js
+++ b/stores/clinicStore.js
@@ -773,7 +773,7 @@ export const useClinicStore = defineStore('clinic', () => {
try {
console.log(`🔄 Fetching clinics from API (Try ${retryCount + 1})...`);
- const response = await fetch('http://10.10.150.131:8089/api/v1/klinik/reguler');
+ const response = await fetch('http://10.10.123.140:8089/api/v1/klinik/reguler');
if (!response.ok) {
// Handle Rate Limiting with exponential backoff
diff --git a/stores/doctorStore.js b/stores/doctorStore.js
index 8d0deb5..59ab35f 100644
--- a/stores/doctorStore.js
+++ b/stores/doctorStore.js
@@ -67,7 +67,7 @@ export const useDoctorStore = defineStore('doctor', () => {
for (let i = 0; i <= retries; i++) {
try {
data = await $fetch(
- `http://10.10.150.131:8089/api/v1/dokter/${idklinik}`,
+ `http://10.10.123.140:8089/api/v1/dokter/${idklinik}`,
{ timeout: 5000 }
);
lastError = null;
diff --git a/stores/loketStore.js b/stores/loketStore.js
index 0b536fd..74b53ab 100644
--- a/stores/loketStore.js
+++ b/stores/loketStore.js
@@ -296,7 +296,7 @@ export const useLoketStore = defineStore('loket', () => {
try {
console.log(`🔄 [loketStore] Fetching loket configuration (Try ${retryCount + 1})...`);
- const response = await fetch('http://10.10.150.131:8089/api/v1/klinik/loket');
+ const response = await fetch('http://10.10.123.140:8089/api/v1/klinik/loket');
if (!response.ok) {
if (response.status === 429 && retryCount < 3) {
@@ -435,7 +435,7 @@ export const useLoketStore = defineStore('loket', () => {
try {
console.log(`🔄 [loketStore] Fetching detail for loket ${loketId}...`);
- const response = await fetch(`http://10.10.150.131:8089/api/v1/loket/${loketId}`);
+ const response = await fetch(`http://10.10.123.140:8089/api/v1/loket/${loketId}`);
if (!response.ok) {
throw new Error(`HTTP error! status: ${response.status}`);
diff --git a/stores/permissionStore.ts b/stores/permissionStore.ts
index b5825c8..43c5460 100644
--- a/stores/permissionStore.ts
+++ b/stores/permissionStore.ts
@@ -10,7 +10,7 @@ export const usePermissionStore = defineStore("permission", {
const parts = path.split("/").filter(Boolean);
const group = parts[1] || "";
const role = parts.at(-1)?.toLowerCase() || "";
- const url = `http://10.10.150.131:8080/api/permission?roles=${role}&groups=${group}`;
+ const url = `http://10.10.123.140:8089/api/permission?roles=${role}&groups=${group}`;
const { data } = await useFetch(url);
this.data = data.value;
},
@@ -18,4 +18,4 @@ export const usePermissionStore = defineStore("permission", {
return this.data?.[action] === true;
},
},
-});
\ No newline at end of file
+});
diff --git a/stores/queueStore.js b/stores/queueStore.js
index 9848154..27c48d5 100644
--- a/stores/queueStore.js
+++ b/stores/queueStore.js
@@ -350,7 +350,7 @@ export const useQueueStore = defineStore('queue', () => {
};
const config = useRuntimeConfig();
- const wsBaseUrl = config.public?.wsBaseUrl || "ws://10.10.150.100:8084/api/v1/ws";
+ const wsBaseUrl = config.public?.wsBaseUrl || "ws://10.10.123.135:8084/api/v1/ws";
const { connect, disconnect, sendViaPost, isConnected } = useWebSocket({
url: wsBaseUrl,
@@ -640,7 +640,7 @@ export const useQueueStore = defineStore('queue', () => {
try {
console.log(`🔄 [queueStore] Fetching patients for loket ${loketId}...`);
- const response = await fetch(`http://10.10.150.131:8089/api/v1/loket/${loketId}`);
+ const response = await fetch(`http://10.10.123.140:8089/api/v1/loket/${loketId}`);
if (!response.ok) {
throw new Error(`HTTP error! status: ${response.status}`);
@@ -1620,7 +1620,7 @@ export const useQueueStore = defineStore('queue', () => {
// POST to external API when patient is called
try {
- fetch('http://10.10.150.131:8089/api/v1/tiket/update', {
+ fetch('http://10.10.123.140:8089/api/v1/tiket/update', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
@@ -1731,7 +1731,7 @@ export const useQueueStore = defineStore('queue', () => {
// POST to external API when patient is called
try {
- const response = await fetch('http://10.10.150.131:8089/api/v1/tiket/update', {
+ const response = await fetch('http://10.10.123.140:8089/api/v1/tiket/update', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
@@ -1789,7 +1789,7 @@ export const useQueueStore = defineStore('queue', () => {
// POST to external API when patient finishes at loket
try {
- fetch('http://10.10.150.131:8089/api/v1/tiket/selesai', {
+ fetch('http://10.10.123.140:8089/api/v1/tiket/selesai', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
@@ -1860,7 +1860,7 @@ export const useQueueStore = defineStore('queue', () => {
// POST to external API and WAIT for response
try {
- const response = await fetch('http://10.10.150.131:8089/api/v1/tiket/update', {
+ const response = await fetch('http://10.10.123.140:8089/api/v1/tiket/update', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
@@ -1952,7 +1952,7 @@ export const useQueueStore = defineStore('queue', () => {
// POST to external API and WAIT for response
try {
- const response = await fetch('http://10.10.150.131:8089/api/v1/tiket/update', {
+ const response = await fetch('http://10.10.123.140:8089/api/v1/tiket/update', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
@@ -2035,7 +2035,7 @@ export const useQueueStore = defineStore('queue', () => {
// POST to external API to revert status to sedang diproses (status 8)
try {
- fetch('http://10.10.150.131:8089/api/v1/tiket/update', {
+ fetch('http://10.10.123.140:8089/api/v1/tiket/update', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
@@ -2095,7 +2095,7 @@ export const useQueueStore = defineStore('queue', () => {
// POST to external API when patient is being processed (sedang diproses)
try {
- fetch('http://10.10.150.131:8089/api/v1/tiket/update', {
+ fetch('http://10.10.123.140:8089/api/v1/tiket/update', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
@@ -2658,7 +2658,7 @@ export const useQueueStore = defineStore('queue', () => {
case "selesai":
// Send API call to finish endpoint
try {
- const apiUrl = 'http://10.10.150.100:8084/api/v1/visit/status/finish';
+ const apiUrl = 'http://10.10.123.135:8084/api/v1/visit/status/finish';
const requestBody = {
patient_visit_healthcare_service_id: patient.healthcareServiceId,
visit_code: patient.barcode || patient.visitCode,
@@ -2906,7 +2906,7 @@ export const useQueueStore = defineStore('queue', () => {
/**
* Register REGULER patient via API
- * POST to http://10.10.150.131:8089/api/v1/tiket/generate
+ * POST to http://10.10.123.140:8089/api/v1/tiket/generate
*/
const registerRegulerPatientViaApi = async (clinic, paymentType, visitType = 'SEKARANG', isFastTrack = false, fastTrackData = null) => {
try {
@@ -2988,7 +2988,7 @@ export const useQueueStore = defineStore('queue', () => {
console.log('📤 [queueStore] API Body:', body);
// 3. Call API
- const response = await fetch('http://10.10.150.131:8089/api/v1/tiket/generate', {
+ const response = await fetch('http://10.10.123.140:8089/api/v1/tiket/generate', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
@@ -3079,7 +3079,7 @@ export const useQueueStore = defineStore('queue', () => {
/**
* Check-in patient via API
- * POST to http://10.10.150.131:8089/api/v1/tiket/checkin
+ * POST to http://10.10.123.140:8089/api/v1/tiket/checkin
*/
const checkInPatientViaApi = async (barcode) => {
try {
@@ -3095,7 +3095,7 @@ export const useQueueStore = defineStore('queue', () => {
console.log('📤 [queueStore] Check-in API Body:', body);
- const response = await fetch('http://10.10.150.131:8089/api/v1/tiket/checkin', {
+ const response = await fetch('http://10.10.123.140:8089/api/v1/tiket/checkin', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
@@ -3368,4 +3368,4 @@ export const useQueueStore = defineStore('queue', () => {
return value;
},
},
-});
\ No newline at end of file
+});
diff --git a/stores/ruangStore.js b/stores/ruangStore.js
index bbcb570..bb6b0b0 100644
--- a/stores/ruangStore.js
+++ b/stores/ruangStore.js
@@ -336,7 +336,7 @@ export const useRuangStore = defineStore('ruang', () => {
const allClinics = clinicStore.clinics;
// 2. Fetch room data from new API
- const response = await fetch('http://10.10.150.131:8089/api/v1/loket/ruang');
+ const response = await fetch('http://10.10.123.140:8089/api/v1/loket/ruang');
if (!response.ok) {
throw new Error(`HTTP error! status: ${response.status}`);
}
diff --git a/stores/verificationStore.js b/stores/verificationStore.js
index 559dc7f..f3ca420 100644
--- a/stores/verificationStore.js
+++ b/stores/verificationStore.js
@@ -16,7 +16,7 @@ export const useVerificationStore = defineStore('verification', () => {
const url = config.public.verificationApiBaseUrl;
if (!url) {
console.warn('verificationApiBaseUrl is undefined in runtimeConfig, using fallback');
- return 'http://10.10.150.131:8089/api/v1';
+ return 'http://10.10.123.140:8089/api/v1';
}
return url;
};