Moved all source files in src folder

This commit is contained in:
Arnaud Vergnet 2020-04-05 23:56:43 +02:00
parent 28dd680bd1
commit dc3a49ee6c
80 changed files with 23 additions and 23 deletions

18
App.js
View file

@ -2,19 +2,19 @@
import * as React from 'react';
import {Platform, StatusBar} from 'react-native';
import LocaleManager from './managers/LocaleManager';
import AsyncStorageManager from "./managers/AsyncStorageManager";
import CustomIntroSlider from "./components/Custom/CustomIntroSlider";
import LocaleManager from './src/managers/LocaleManager';
import AsyncStorageManager from "./src/managers/AsyncStorageManager";
import CustomIntroSlider from "./src/components/Custom/CustomIntroSlider";
import {SplashScreen} from 'expo';
import ThemeManager from './managers/ThemeManager';
import ThemeManager from './src/managers/ThemeManager';
import {NavigationContainer} from '@react-navigation/native';
import {createStackNavigator} from '@react-navigation/stack';
import DrawerNavigator from './navigation/DrawerNavigator';
import {initExpoToken} from "./utils/Notifications";
import DrawerNavigator from './src/navigation/DrawerNavigator';
import {initExpoToken} from "./src/utils/Notifications";
import {Provider as PaperProvider} from 'react-native-paper';
import AprilFoolsManager from "./managers/AprilFoolsManager";
import Update from "./constants/Update";
import ConnectionManager from "./managers/ConnectionManager";
import AprilFoolsManager from "./src/managers/AprilFoolsManager";
import Update from "./src/constants/Update";
import ConnectionManager from "./src/managers/ConnectionManager";
type Props = {};

View file

@ -1,5 +1,5 @@
import React from 'react';
import ConnectionManager, {ERROR_TYPE} from "../../managers/ConnectionManager";
import ConnectionManager, {ERROR_TYPE} from "../../src/managers/ConnectionManager";
import * as SecureStore from 'expo-secure-store';
let fetch = require('isomorphic-fetch'); // fetch is not implemented in nodeJS but in react-native

View file

@ -1,5 +1,5 @@
import React from 'react';
import * as Planning from "../../utils/Planning";
import * as Planning from "../../src/utils/Planning";
test('isDescriptionEmpty', () => {
expect(Planning.isDescriptionEmpty("")).toBeTrue();

View file

@ -34,7 +34,7 @@ export default class CustomIntroSlider extends React.Component<Props> {
key: '1',
title: i18n.t('intro.slide1.title'),
text: i18n.t('intro.slide1.text'),
image: require('../../assets/splash.png'),
image: require('../../../assets/splash.png'),
colors: ['#e01928', '#be1522'],
},
{

View file

@ -5,7 +5,7 @@ import Autolink from "react-native-autolink";
import i18n from "i18n-js";
import ImageModal from 'react-native-image-modal';
const ICON_AMICALE = require('../../assets/amicale.png');
const ICON_AMICALE = require('../../../assets/amicale.png');
/**
* Component used to display a feed item

View file

@ -256,7 +256,7 @@ class SideBar extends React.Component<Props, State> {
onPress={onPress}
>
<Image
source={require("../../assets/drawer-cover.png")}
source={require("../../../assets/drawer-cover.png")}
style={styles.drawerCover}
/>
</TouchableRipple>

View file

@ -3,8 +3,8 @@
import i18n from 'i18n-js';
import * as Localization from 'expo-localization';
import en from '../translations/en';
import fr from '../translations/fr';
import en from '../../translations/en';
import fr from '../../translations/fr';
/**
* Static class used to manage locales

View file

@ -2,7 +2,7 @@
import * as React from 'react';
import {FlatList} from "react-native";
import packageJson from '../../package';
import packageJson from '../../../package';
import {List} from 'react-native-paper';
type listItem = {

View file

@ -3,7 +3,7 @@
import * as React from 'react';
import {FlatList, Linking, Platform, View} from 'react-native';
import i18n from "i18n-js";
import appJson from '../../app';
import appJson from '../../../app';
import AsyncStorageManager from "../../managers/AsyncStorageManager";
import CustomModal from "../../components/Custom/CustomModal";
import {Avatar, Button, Card, List, Text, Title, withTheme} from 'react-native-paper';
@ -213,7 +213,7 @@ class AboutScreen extends React.Component<Props, State> {
return (
<Avatar.Image
{...props}
source={require('../../assets/android.icon.png')}
source={require('../../../assets/android.icon.png')}
style={{backgroundColor: 'transparent'}}
/>
);

View file

@ -23,7 +23,7 @@ type State = {
dialogMessage: string,
}
const ICON_AMICALE = require('../../assets/amicale.png');
const ICON_AMICALE = require('../../../assets/amicale.png');
const RESET_PASSWORD_LINK = "https://www.amicale-insat.fr/password/reset";

View file

@ -26,7 +26,7 @@ export default class ProximoAboutScreen extends React.Component<Props> {
alignItems: 'center'
}}>
<Image
source={require('../../assets/proximo-logo.png')}
source={require('../../../assets/proximo-logo.png')}
style={{flex: 1, resizeMode: "contain"}}
resizeMode="contain"/>
</View>

View file

@ -26,7 +26,7 @@ export default class ProxiwashAboutScreen extends React.Component<Props> {
alignItems: 'center'
}}>
<Image
source={require('../../assets/proxiwash-logo.png')}
source={require('../../../assets/proxiwash-logo.png')}
style={{flex: 1, resizeMode: "contain"}}
resizeMode="contain"/>
</View>

View file

@ -4,7 +4,7 @@ import * as Permissions from 'expo-permissions';
import {Notifications} from 'expo';
import AsyncStorageManager from "../managers/AsyncStorageManager";
import LocaleManager from "../managers/LocaleManager";
import passwords from "../passwords";
import passwords from "../../passwords";
const EXPO_TOKEN_SERVER = 'https://etud.insa-toulouse.fr/~amicale_app/expo_notifications/save_token.php';