This commit is contained in:
Sebastien Riviere
2026-02-13 00:22:29 +01:00
parent eb72a1e5da
commit 5f16500634
11 changed files with 79 additions and 37 deletions

View File

@@ -29,7 +29,7 @@
"android"
],
"android": {
"package": "com.anonymous.traqueapp",
"package": "net.rezel.traque",
"permissions": [
"ACCESS_FINE_LOCATION",
"ACCESS_COARSE_LOCATION",
@@ -48,7 +48,7 @@
}
},
"ios": {
"bundleIdentifier": "com.anonymous.traqueapp",
"bundleIdentifier": "net.rezel.traque",
"infoPlist": {
"UIBackgroundModes": [
"location"

View File

@@ -131,7 +131,7 @@ export default function Display() {
if (!Number.isInteger(time)) return "Inconnue";
if (time < 0) time = 0;
const hours = Math.floor(time / 3600);
const minutes = Math.floor(time / 60);
const minutes = Math.floor(time / 60 % 60);
const seconds = Math.floor(time % 60);
return String(hours).padStart(2,"0") + ":" + String(minutes).padStart(2,"0") + ":" + String(seconds).padStart(2,"0");
}

View File

@@ -1,9 +1,8 @@
import { createContext, useContext, useMemo } from "react";
import { io } from "socket.io-client";
import { URLS } from "../util/urls"
const SOCKET_URL = `wss://${URLS.HOST}/player`;
const SERVER_URL = `https://${URLS.HOST}/back`;
const SOCKET_URL = `ws://172.16.1.180/player`;
const SERVER_URL = `http://172.16.1.180/back`;
export const teamSocket = io(SOCKET_URL, {
path: "/back/socket.io",

View File

@@ -1,3 +0,0 @@
export const URLS = {
HOST: 'traque.rezel.net'
}