mirror of
https://git.rezel.net/LudoTech/traque.git
synced 2026-04-11 00:30:19 +02:00
Modify folder structure
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
// Expo
|
||||
import { Slot } from 'expo-router';
|
||||
// Contexts
|
||||
import { TeamConnexionProvider } from "../context/teamConnexionContext";
|
||||
import { TeamProvider } from "../context/teamContext";
|
||||
import { TeamConnexionProvider } from "../src/context/teamConnexionContext";
|
||||
import { TeamProvider } from "../src/context/teamContext";
|
||||
|
||||
const Layout = () => {
|
||||
return (
|
||||
|
||||
@@ -4,18 +4,18 @@ import { ScrollView, View, Text, StyleSheet, Image, Alert } from 'react-native';
|
||||
// Expo
|
||||
import { useRouter } from 'expo-router';
|
||||
// Components
|
||||
import { CustomButton } from '../components/button';
|
||||
import { CustomImage } from '../components/image';
|
||||
import { CustomTextInput } from '../components/input';
|
||||
import { CustomButton } from '../src/components/button';
|
||||
import { CustomImage } from '../src/components/image';
|
||||
import { CustomTextInput } from '../src/components/input';
|
||||
// Contexts
|
||||
import { useTeamConnexion } from "../context/teamConnexionContext";
|
||||
import { useTeamConnexion } from "../src/context/teamConnexionContext";
|
||||
// Hooks
|
||||
import { usePickImage } from '../hook/usePickImage';
|
||||
import { usePickImage } from '../src/hook/usePickImage';
|
||||
// Services
|
||||
import { uploadTeamImage } from '../services/imageService';
|
||||
import { getLocationAuthorization, stopLocationTracking } from '../services/backgroundLocationTask';
|
||||
import { uploadTeamImage } from '../src/services/imageService';
|
||||
import { getLocationAuthorization, stopLocationTracking } from '../src/services/backgroundLocationTask';
|
||||
// Constants
|
||||
import { COLORS } from '../constants';
|
||||
import { COLORS } from '../src/constants';
|
||||
|
||||
const Index = () => {
|
||||
const router = useRouter();
|
||||
@@ -68,7 +68,7 @@ const Index = () => {
|
||||
<ScrollView contentContainerStyle={styles.container}>
|
||||
<View style={styles.transitionContainer}>
|
||||
<View style={styles.subContainer}>
|
||||
<Image style={styles.logoImage} source={require('../assets/images/logo/logo_traque.png')}/>
|
||||
<Image style={styles.logoImage} source={require('../src/assets/images/logo/logo_traque.png')}/>
|
||||
<Text style={styles.logoText}>LA TRAQUE</Text>
|
||||
</View>
|
||||
<View style={styles.subContainer}>
|
||||
@@ -77,7 +77,7 @@ const Index = () => {
|
||||
<View style={styles.subContainer}>
|
||||
<Text style={{fontSize: 15}}>Appuyer pour changer la photo d'équipe</Text>
|
||||
<Text style={{fontSize: 13, marginBottom: 3}}>(Le haut du corps doit être visible)</Text>
|
||||
<CustomImage source={image ? {uri: image.uri} : require('../assets/images/missing_image.jpg')} onPress={pickImage}/>
|
||||
<CustomImage source={image ? {uri: image.uri} : require('../src/assets/images/missing_image.jpg')} onPress={pickImage}/>
|
||||
</View>
|
||||
<View style={styles.subContainer}>
|
||||
<CustomButton label={isSubmitting ? "..." : "Valider"} onPress={handleSubmit}/>
|
||||
|
||||
@@ -4,21 +4,21 @@ import { View, Text, Image, Alert, StyleSheet, TouchableOpacity } from 'react-na
|
||||
// Expo
|
||||
import { useRouter } from 'expo-router';
|
||||
// Components
|
||||
import { CustomMap } from '../components/map';
|
||||
import { Drawer } from '../components/drawer';
|
||||
import { TimerMMSS } from '../components/timer';
|
||||
import { CustomMap } from '../src/components/map';
|
||||
import { Drawer } from '../src/components/drawer';
|
||||
import { TimerMMSS } from '../src/components/timer';
|
||||
// Contexts
|
||||
import { useTeamConnexion } from '../context/teamConnexionContext';
|
||||
import { useTeamContext } from '../context/teamContext';
|
||||
import { useTeamConnexion } from '../src/context/teamConnexionContext';
|
||||
import { useTeamContext } from '../src/context/teamContext';
|
||||
// Hooks
|
||||
import { useGame } from '../hook/useGame';
|
||||
import { useTimeDifference } from '../hook/useTimeDifference';
|
||||
import { useGame } from '../src/hook/useGame';
|
||||
import { useTimeDifference } from '../src/hook/useTimeDifference';
|
||||
// Services
|
||||
import { startLocationTracking } from '../services/backgroundLocationTask';
|
||||
import { startLocationTracking } from '../src/services/backgroundLocationTask';
|
||||
// Util
|
||||
import { secondsToMMSS } from '../util/functions';
|
||||
import { secondsToMMSS } from '../src/util/functions';
|
||||
// Constants
|
||||
import { GAME_STATE, COLORS } from '../constants';
|
||||
import { GAME_STATE, COLORS } from '../src/constants';
|
||||
|
||||
const Interface = () => {
|
||||
const router = useRouter();
|
||||
@@ -66,10 +66,10 @@ const Interface = () => {
|
||||
<View style={styles.topContainer}>
|
||||
<View style={styles.topheadContainer}>
|
||||
<TouchableOpacity style={{width: 40, height: 40}} onPress={logout}>
|
||||
<Image source={require('../assets/images/logout.png')} style={{width: 40, height: 40}} resizeMode="contain"></Image>
|
||||
<Image source={require('../src/assets/images/logout.png')} style={{width: 40, height: 40}} resizeMode="contain"></Image>
|
||||
</TouchableOpacity>
|
||||
<TouchableOpacity style={{width: 40, height: 40}} onPress={() => Alert.alert("Settings")}>
|
||||
<Image source={require('../assets/images/cogwheel.png')} style={{width: 40, height: 40}} resizeMode="contain"></Image>
|
||||
<Image source={require('../src/assets/images/cogwheel.png')} style={{width: 40, height: 40}} resizeMode="contain"></Image>
|
||||
</TouchableOpacity>
|
||||
</View>
|
||||
<View style={styles.teamNameContainer}>
|
||||
@@ -99,7 +99,7 @@ const Interface = () => {
|
||||
<CustomMap/>
|
||||
{ gameState == GAME_STATE.PLAYING && !captured && !hasHandicap &&
|
||||
<TouchableOpacity style={styles.updatePosition} onPress={sendCurrentPosition}>
|
||||
<Image source={require("../assets/images/update_position.png")} style={{width: 40, height: 40}} resizeMode="contain"></Image>
|
||||
<Image source={require("../src/assets/images/update_position.png")} style={{width: 40, height: 40}} resizeMode="contain"></Image>
|
||||
</TouchableOpacity>
|
||||
}
|
||||
{ gameState == GAME_STATE.PLAYING && !captured &&
|
||||
|
||||
Reference in New Issue
Block a user