Browse Source

Moved all source files in src folder

Arnaud Vergnet 1 year ago
parent
commit
dc3a49ee6c
80 changed files with 23 additions and 23 deletions
  1. 9
    9
      App.js
  2. 1
    1
      __tests__/managers/ConnectionManager.test.js
  3. 1
    1
      __tests__/utils/PlanningEventManager.test.js
  4. 0
    0
      src/components/Amicale/AuthenticatedScreen.js
  5. 0
    0
      src/components/Amicale/LogoutDialog.js
  6. 0
    0
      src/components/Custom/AlertDialog.js
  7. 0
    0
      src/components/Custom/BasicLoadingScreen.js
  8. 0
    0
      src/components/Custom/CustomAgenda.js
  9. 1
    1
      src/components/Custom/CustomIntroSlider.js
  10. 0
    0
      src/components/Custom/CustomModal.js
  11. 0
    0
      src/components/Custom/HeaderButton.js
  12. 0
    0
      src/components/Custom/NetworkErrorComponent.js
  13. 0
    0
      src/components/Home/ActionsDashboardItem.js
  14. 0
    0
      src/components/Home/EventDashboardItem.js
  15. 1
    1
      src/components/Home/FeedItem.js
  16. 0
    0
      src/components/Home/PreviewEventDashboardItem.js
  17. 0
    0
      src/components/Home/SmallDashboardItem.js
  18. 0
    0
      src/components/Lists/ClubListHeader.js
  19. 0
    0
      src/components/Lists/ClubListItem.js
  20. 0
    0
      src/components/Lists/ProximoListItem.js
  21. 0
    0
      src/components/Lists/ProxiwashListItem.js
  22. 0
    0
      src/components/Lists/WebSectionList.js
  23. 0
    0
      src/components/Screens/WebViewScreen.js
  24. 1
    1
      src/components/Sidebar/Sidebar.js
  25. 0
    0
      src/constants/ProxiwashConstants.js
  26. 0
    0
      src/constants/Update.js
  27. 0
    0
      src/managers/AprilFoolsManager.js
  28. 0
    0
      src/managers/AsyncStorageManager.js
  29. 0
    0
      src/managers/ConnectionManager.js
  30. 0
    0
      src/managers/DateManager.js
  31. 2
    2
      src/managers/LocaleManager.js
  32. 0
    0
      src/managers/ThemeManager.js
  33. 0
    0
      src/navigation/DrawerNavigator.js
  34. 0
    0
      src/navigation/MainTabNavigator.js
  35. 1
    1
      src/screens/About/AboutDependenciesScreen.js
  36. 2
    2
      src/screens/About/AboutScreen.js
  37. 0
    0
      src/screens/About/DebugScreen.js
  38. 0
    0
      src/screens/Amicale/Clubs/ClubAboutScreen.js
  39. 0
    0
      src/screens/Amicale/Clubs/ClubDisplayScreen.js
  40. 0
    0
      src/screens/Amicale/Clubs/ClubListScreen.js
  41. 1
    1
      src/screens/Amicale/LoginScreen.js
  42. 0
    0
      src/screens/Amicale/ProfileScreen.js
  43. 0
    0
      src/screens/HomeScreen.js
  44. 0
    0
      src/screens/Planning/PlanningDisplayScreen.js
  45. 0
    0
      src/screens/Planning/PlanningScreen.js
  46. 1
    1
      src/screens/Proximo/ProximoAboutScreen.js
  47. 0
    0
      src/screens/Proximo/ProximoListScreen.js
  48. 0
    0
      src/screens/Proximo/ProximoMainScreen.js
  49. 1
    1
      src/screens/Proxiwash/ProxiwashAboutScreen.js
  50. 0
    0
      src/screens/Proxiwash/ProxiwashScreen.js
  51. 0
    0
      src/screens/SelfMenuScreen.js
  52. 0
    0
      src/screens/SettingsScreen.js
  53. 0
    0
      src/screens/Tetris/GameLogic.js
  54. 0
    0
      src/screens/Tetris/GridManager.js
  55. 0
    0
      src/screens/Tetris/Piece.js
  56. 0
    0
      src/screens/Tetris/ScoreManager.js
  57. 0
    0
      src/screens/Tetris/Shapes/BaseShape.js
  58. 0
    0
      src/screens/Tetris/Shapes/ShapeI.js
  59. 0
    0
      src/screens/Tetris/Shapes/ShapeJ.js
  60. 0
    0
      src/screens/Tetris/Shapes/ShapeL.js
  61. 0
    0
      src/screens/Tetris/Shapes/ShapeO.js
  62. 0
    0
      src/screens/Tetris/Shapes/ShapeS.js
  63. 0
    0
      src/screens/Tetris/Shapes/ShapeT.js
  64. 0
    0
      src/screens/Tetris/Shapes/ShapeZ.js
  65. 0
    0
      src/screens/Tetris/TetrisScreen.js
  66. 0
    0
      src/screens/Tetris/__tests__/GridManager.test.js
  67. 0
    0
      src/screens/Tetris/__tests__/Piece.test.js
  68. 0
    0
      src/screens/Tetris/__tests__/ScoreManager.test.js
  69. 0
    0
      src/screens/Tetris/__tests__/Shape.test.js
  70. 0
    0
      src/screens/Tetris/components/Cell.js
  71. 0
    0
      src/screens/Tetris/components/Grid.js
  72. 0
    0
      src/screens/Tetris/components/Preview.js
  73. 0
    0
      src/screens/Websites/AvailableRoomScreen.js
  74. 0
    0
      src/screens/Websites/BibScreen.js
  75. 0
    0
      src/screens/Websites/PlanexScreen.js
  76. 1
    1
      src/utils/Notifications.js
  77. 0
    0
      src/utils/Planning.js
  78. 0
    0
      src/utils/Search.js
  79. 0
    0
      src/utils/WebBrowser.js
  80. 0
    0
      src/utils/WebData.js

+ 9
- 9
App.js View File

@@ -2,19 +2,19 @@
2 2
 
3 3
 import * as React from 'react';
4 4
 import {Platform, StatusBar} from 'react-native';
5
-import LocaleManager from './managers/LocaleManager';
6
-import AsyncStorageManager from "./managers/AsyncStorageManager";
7
-import CustomIntroSlider from "./components/Custom/CustomIntroSlider";
5
+import LocaleManager from './src/managers/LocaleManager';
6
+import AsyncStorageManager from "./src/managers/AsyncStorageManager";
7
+import CustomIntroSlider from "./src/components/Custom/CustomIntroSlider";
8 8
 import {SplashScreen} from 'expo';
9
-import ThemeManager from './managers/ThemeManager';
9
+import ThemeManager from './src/managers/ThemeManager';
10 10
 import {NavigationContainer} from '@react-navigation/native';
11 11
 import {createStackNavigator} from '@react-navigation/stack';
12
-import DrawerNavigator from './navigation/DrawerNavigator';
13
-import {initExpoToken} from "./utils/Notifications";
12
+import DrawerNavigator from './src/navigation/DrawerNavigator';
13
+import {initExpoToken} from "./src/utils/Notifications";
14 14
 import {Provider as PaperProvider} from 'react-native-paper';
15
-import AprilFoolsManager from "./managers/AprilFoolsManager";
16
-import Update from "./constants/Update";
17
-import ConnectionManager from "./managers/ConnectionManager";
15
+import AprilFoolsManager from "./src/managers/AprilFoolsManager";
16
+import Update from "./src/constants/Update";
17
+import ConnectionManager from "./src/managers/ConnectionManager";
18 18
 
19 19
 type Props = {};
20 20
 

+ 1
- 1
__tests__/managers/ConnectionManager.test.js View File

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

+ 1
- 1
__tests__/utils/PlanningEventManager.test.js View File

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

components/Amicale/AuthenticatedScreen.js → src/components/Amicale/AuthenticatedScreen.js View File


components/Amicale/LogoutDialog.js → src/components/Amicale/LogoutDialog.js View File


components/Custom/AlertDialog.js → src/components/Custom/AlertDialog.js View File


components/Custom/BasicLoadingScreen.js → src/components/Custom/BasicLoadingScreen.js View File


components/Custom/CustomAgenda.js → src/components/Custom/CustomAgenda.js View File


components/Custom/CustomIntroSlider.js → src/components/Custom/CustomIntroSlider.js View File

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

components/Custom/CustomModal.js → src/components/Custom/CustomModal.js View File


components/Custom/HeaderButton.js → src/components/Custom/HeaderButton.js View File


components/Custom/NetworkErrorComponent.js → src/components/Custom/NetworkErrorComponent.js View File


components/Home/ActionsDashboardItem.js → src/components/Home/ActionsDashboardItem.js View File


components/Home/EventDashboardItem.js → src/components/Home/EventDashboardItem.js View File


components/Home/FeedItem.js → src/components/Home/FeedItem.js View File

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

components/Home/PreviewEventDashboardItem.js → src/components/Home/PreviewEventDashboardItem.js View File


components/Home/SmallDashboardItem.js → src/components/Home/SmallDashboardItem.js View File


components/Lists/ClubListHeader.js → src/components/Lists/ClubListHeader.js View File


components/Lists/ClubListItem.js → src/components/Lists/ClubListItem.js View File


components/Lists/ProximoListItem.js → src/components/Lists/ProximoListItem.js View File


components/Lists/ProxiwashListItem.js → src/components/Lists/ProxiwashListItem.js View File


components/Lists/WebSectionList.js → src/components/Lists/WebSectionList.js View File


components/Screens/WebViewScreen.js → src/components/Screens/WebViewScreen.js View File


components/Sidebar/Sidebar.js → src/components/Sidebar/Sidebar.js View File

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

constants/ProxiwashConstants.js → src/constants/ProxiwashConstants.js View File


constants/Update.js → src/constants/Update.js View File


managers/AprilFoolsManager.js → src/managers/AprilFoolsManager.js View File


managers/AsyncStorageManager.js → src/managers/AsyncStorageManager.js View File


managers/ConnectionManager.js → src/managers/ConnectionManager.js View File


managers/DateManager.js → src/managers/DateManager.js View File


managers/LocaleManager.js → src/managers/LocaleManager.js View File

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

managers/ThemeManager.js → src/managers/ThemeManager.js View File


navigation/DrawerNavigator.js → src/navigation/DrawerNavigator.js View File


navigation/MainTabNavigator.js → src/navigation/MainTabNavigator.js View File


screens/About/AboutDependenciesScreen.js → src/screens/About/AboutDependenciesScreen.js View File

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

screens/About/AboutScreen.js → src/screens/About/AboutScreen.js View File

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

screens/About/DebugScreen.js → src/screens/About/DebugScreen.js View File


screens/Amicale/Clubs/ClubAboutScreen.js → src/screens/Amicale/Clubs/ClubAboutScreen.js View File


screens/Amicale/Clubs/ClubDisplayScreen.js → src/screens/Amicale/Clubs/ClubDisplayScreen.js View File


screens/Amicale/Clubs/ClubListScreen.js → src/screens/Amicale/Clubs/ClubListScreen.js View File


screens/Amicale/LoginScreen.js → src/screens/Amicale/LoginScreen.js View File

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

screens/Amicale/ProfileScreen.js → src/screens/Amicale/ProfileScreen.js View File


screens/HomeScreen.js → src/screens/HomeScreen.js View File


screens/Planning/PlanningDisplayScreen.js → src/screens/Planning/PlanningDisplayScreen.js View File


screens/Planning/PlanningScreen.js → src/screens/Planning/PlanningScreen.js View File


screens/Proximo/ProximoAboutScreen.js → src/screens/Proximo/ProximoAboutScreen.js View File

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

screens/Proximo/ProximoListScreen.js → src/screens/Proximo/ProximoListScreen.js View File


screens/Proximo/ProximoMainScreen.js → src/screens/Proximo/ProximoMainScreen.js View File


screens/Proxiwash/ProxiwashAboutScreen.js → src/screens/Proxiwash/ProxiwashAboutScreen.js View File

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

screens/Proxiwash/ProxiwashScreen.js → src/screens/Proxiwash/ProxiwashScreen.js View File


screens/SelfMenuScreen.js → src/screens/SelfMenuScreen.js View File


screens/SettingsScreen.js → src/screens/SettingsScreen.js View File


screens/Tetris/GameLogic.js → src/screens/Tetris/GameLogic.js View File


screens/Tetris/GridManager.js → src/screens/Tetris/GridManager.js View File


screens/Tetris/Piece.js → src/screens/Tetris/Piece.js View File


screens/Tetris/ScoreManager.js → src/screens/Tetris/ScoreManager.js View File


screens/Tetris/Shapes/BaseShape.js → src/screens/Tetris/Shapes/BaseShape.js View File


screens/Tetris/Shapes/ShapeI.js → src/screens/Tetris/Shapes/ShapeI.js View File


screens/Tetris/Shapes/ShapeJ.js → src/screens/Tetris/Shapes/ShapeJ.js View File


screens/Tetris/Shapes/ShapeL.js → src/screens/Tetris/Shapes/ShapeL.js View File


screens/Tetris/Shapes/ShapeO.js → src/screens/Tetris/Shapes/ShapeO.js View File


screens/Tetris/Shapes/ShapeS.js → src/screens/Tetris/Shapes/ShapeS.js View File


screens/Tetris/Shapes/ShapeT.js → src/screens/Tetris/Shapes/ShapeT.js View File


screens/Tetris/Shapes/ShapeZ.js → src/screens/Tetris/Shapes/ShapeZ.js View File


screens/Tetris/TetrisScreen.js → src/screens/Tetris/TetrisScreen.js View File


screens/Tetris/__tests__/GridManager.test.js → src/screens/Tetris/__tests__/GridManager.test.js View File


screens/Tetris/__tests__/Piece.test.js → src/screens/Tetris/__tests__/Piece.test.js View File


screens/Tetris/__tests__/ScoreManager.test.js → src/screens/Tetris/__tests__/ScoreManager.test.js View File


screens/Tetris/__tests__/Shape.test.js → src/screens/Tetris/__tests__/Shape.test.js View File


screens/Tetris/components/Cell.js → src/screens/Tetris/components/Cell.js View File


screens/Tetris/components/Grid.js → src/screens/Tetris/components/Grid.js View File


screens/Tetris/components/Preview.js → src/screens/Tetris/components/Preview.js View File


screens/Websites/AvailableRoomScreen.js → src/screens/Websites/AvailableRoomScreen.js View File


screens/Websites/BibScreen.js → src/screens/Websites/BibScreen.js View File


screens/Websites/PlanexScreen.js → src/screens/Websites/PlanexScreen.js View File


utils/Notifications.js → src/utils/Notifications.js View File

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

utils/Planning.js → src/utils/Planning.js View File


utils/Search.js → src/utils/Search.js View File


utils/WebBrowser.js → src/utils/WebBrowser.js View File


utils/WebData.js → src/utils/WebData.js View File


Loading…
Cancel
Save