mirror of
https://git.rezel.net/LudoTech/traque.git
synced 2026-02-28 01:30:17 +01:00
Fixs
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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");
|
||||
}
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
export const URLS = {
|
||||
HOST: 'traque.rezel.net'
|
||||
}
|
||||
Reference in New Issue
Block a user