feat: Add native Android driver tracking app and real-time backend/frontend bus tracking system

This commit is contained in:
Shanmuga Krishnan S M
2026-07-24 21:22:37 +05:30
parent 8e87bd72cd
commit 85b128bef5
71 changed files with 206796 additions and 1368 deletions

View File

@@ -20,3 +20,13 @@ export function formatTime(timeStr: string): string {
export function truncate(str: string, n: number): string {
return str.length > n ? str.substring(0, n - 1) + '…' : str;
}
export const getBackendUrl = (path: string = ''): string => {
const host = window.location.hostname;
return `http://${host}:8085${path}`;
};
export const getChatbotUrl = (path: string = ''): string => {
const host = window.location.hostname;
return `http://${host}:8081${path}`;
};