From 494b319f197fc29a4cff17f7f2208ac443e1d0c5 Mon Sep 17 00:00:00 2001 From: Arnaud Vergnet Date: Sat, 18 Jul 2020 15:52:41 +0200 Subject: [PATCH] Renamed game to a more general name --- src/managers/ThemeManager.js | 4 ++-- src/navigation/MainNavigator.js | 4 ++-- src/screens/{Tetris => Game}/GameLogic.js | 0 src/screens/{Tetris/TetrisScreen.js => Game/GameScreen.js} | 4 ++-- src/screens/{Tetris => Game}/GridManager.js | 0 src/screens/{Tetris => Game}/Piece.js | 0 src/screens/{Tetris => Game}/ScoreManager.js | 0 src/screens/{Tetris => Game}/Shapes/BaseShape.js | 0 src/screens/{Tetris => Game}/Shapes/ShapeI.js | 0 src/screens/{Tetris => Game}/Shapes/ShapeJ.js | 0 src/screens/{Tetris => Game}/Shapes/ShapeL.js | 0 src/screens/{Tetris => Game}/Shapes/ShapeO.js | 0 src/screens/{Tetris => Game}/Shapes/ShapeS.js | 0 src/screens/{Tetris => Game}/Shapes/ShapeT.js | 0 src/screens/{Tetris => Game}/Shapes/ShapeZ.js | 0 src/screens/{Tetris => Game}/__tests__/GridManager.test.js | 0 src/screens/{Tetris => Game}/__tests__/Piece.test.js | 0 src/screens/{Tetris => Game}/__tests__/ScoreManager.test.js | 0 src/screens/{Tetris => Game}/__tests__/Shape.test.js | 0 src/screens/{Tetris => Game}/components/Cell.js | 0 src/screens/{Tetris => Game}/components/Grid.js | 0 src/screens/{Tetris => Game}/components/Preview.js | 0 22 files changed, 6 insertions(+), 6 deletions(-) rename src/screens/{Tetris => Game}/GameLogic.js (100%) rename src/screens/{Tetris/TetrisScreen.js => Game/GameScreen.js} (98%) rename src/screens/{Tetris => Game}/GridManager.js (100%) rename src/screens/{Tetris => Game}/Piece.js (100%) rename src/screens/{Tetris => Game}/ScoreManager.js (100%) rename src/screens/{Tetris => Game}/Shapes/BaseShape.js (100%) rename src/screens/{Tetris => Game}/Shapes/ShapeI.js (100%) rename src/screens/{Tetris => Game}/Shapes/ShapeJ.js (100%) rename src/screens/{Tetris => Game}/Shapes/ShapeL.js (100%) rename src/screens/{Tetris => Game}/Shapes/ShapeO.js (100%) rename src/screens/{Tetris => Game}/Shapes/ShapeS.js (100%) rename src/screens/{Tetris => Game}/Shapes/ShapeT.js (100%) rename src/screens/{Tetris => Game}/Shapes/ShapeZ.js (100%) rename src/screens/{Tetris => Game}/__tests__/GridManager.test.js (100%) rename src/screens/{Tetris => Game}/__tests__/Piece.test.js (100%) rename src/screens/{Tetris => Game}/__tests__/ScoreManager.test.js (100%) rename src/screens/{Tetris => Game}/__tests__/Shape.test.js (100%) rename src/screens/{Tetris => Game}/components/Cell.js (100%) rename src/screens/{Tetris => Game}/components/Grid.js (100%) rename src/screens/{Tetris => Game}/components/Preview.js (100%) diff --git a/src/managers/ThemeManager.js b/src/managers/ThemeManager.js index c68c57a..be51ba5 100644 --- a/src/managers/ThemeManager.js +++ b/src/managers/ThemeManager.js @@ -1,14 +1,14 @@ // @flow import AsyncStorageManager from "./AsyncStorageManager"; -import {DarkTheme, DefaultTheme, Theme} from 'react-native-paper'; +import {DarkTheme, DefaultTheme} from 'react-native-paper'; import AprilFoolsManager from "./AprilFoolsManager"; import {Appearance} from 'react-native-appearance'; const colorScheme = Appearance.getColorScheme(); export type CustomTheme = { - ...Theme, + ...DefaultTheme, colors: { primary: string, accent: string, diff --git a/src/navigation/MainNavigator.js b/src/navigation/MainNavigator.js index 16c1e4b..9afbf5e 100644 --- a/src/navigation/MainNavigator.js +++ b/src/navigation/MainNavigator.js @@ -8,7 +8,7 @@ import DebugScreen from '../screens/About/DebugScreen'; import {createStackNavigator, TransitionPresets} from "@react-navigation/stack"; import i18n from "i18n-js"; import TabNavigator from "./TabNavigator"; -import TetrisScreen from "../screens/Tetris/TetrisScreen"; +import GameScreen from "../screens/Game/GameScreen"; import VoteScreen from "../screens/Amicale/VoteScreen"; import LoginScreen from "../screens/Amicale/LoginScreen"; import {Platform} from "react-native"; @@ -93,7 +93,7 @@ function MainStackComponent(props: { createTabNavigator: () => React.Node }) { /> { +class GameScreen extends React.Component { colors: Object; @@ -296,4 +296,4 @@ class TetrisScreen extends React.Component { } -export default withTheme(TetrisScreen); +export default withTheme(GameScreen); diff --git a/src/screens/Tetris/GridManager.js b/src/screens/Game/GridManager.js similarity index 100% rename from src/screens/Tetris/GridManager.js rename to src/screens/Game/GridManager.js diff --git a/src/screens/Tetris/Piece.js b/src/screens/Game/Piece.js similarity index 100% rename from src/screens/Tetris/Piece.js rename to src/screens/Game/Piece.js diff --git a/src/screens/Tetris/ScoreManager.js b/src/screens/Game/ScoreManager.js similarity index 100% rename from src/screens/Tetris/ScoreManager.js rename to src/screens/Game/ScoreManager.js diff --git a/src/screens/Tetris/Shapes/BaseShape.js b/src/screens/Game/Shapes/BaseShape.js similarity index 100% rename from src/screens/Tetris/Shapes/BaseShape.js rename to src/screens/Game/Shapes/BaseShape.js diff --git a/src/screens/Tetris/Shapes/ShapeI.js b/src/screens/Game/Shapes/ShapeI.js similarity index 100% rename from src/screens/Tetris/Shapes/ShapeI.js rename to src/screens/Game/Shapes/ShapeI.js diff --git a/src/screens/Tetris/Shapes/ShapeJ.js b/src/screens/Game/Shapes/ShapeJ.js similarity index 100% rename from src/screens/Tetris/Shapes/ShapeJ.js rename to src/screens/Game/Shapes/ShapeJ.js diff --git a/src/screens/Tetris/Shapes/ShapeL.js b/src/screens/Game/Shapes/ShapeL.js similarity index 100% rename from src/screens/Tetris/Shapes/ShapeL.js rename to src/screens/Game/Shapes/ShapeL.js diff --git a/src/screens/Tetris/Shapes/ShapeO.js b/src/screens/Game/Shapes/ShapeO.js similarity index 100% rename from src/screens/Tetris/Shapes/ShapeO.js rename to src/screens/Game/Shapes/ShapeO.js diff --git a/src/screens/Tetris/Shapes/ShapeS.js b/src/screens/Game/Shapes/ShapeS.js similarity index 100% rename from src/screens/Tetris/Shapes/ShapeS.js rename to src/screens/Game/Shapes/ShapeS.js diff --git a/src/screens/Tetris/Shapes/ShapeT.js b/src/screens/Game/Shapes/ShapeT.js similarity index 100% rename from src/screens/Tetris/Shapes/ShapeT.js rename to src/screens/Game/Shapes/ShapeT.js diff --git a/src/screens/Tetris/Shapes/ShapeZ.js b/src/screens/Game/Shapes/ShapeZ.js similarity index 100% rename from src/screens/Tetris/Shapes/ShapeZ.js rename to src/screens/Game/Shapes/ShapeZ.js diff --git a/src/screens/Tetris/__tests__/GridManager.test.js b/src/screens/Game/__tests__/GridManager.test.js similarity index 100% rename from src/screens/Tetris/__tests__/GridManager.test.js rename to src/screens/Game/__tests__/GridManager.test.js diff --git a/src/screens/Tetris/__tests__/Piece.test.js b/src/screens/Game/__tests__/Piece.test.js similarity index 100% rename from src/screens/Tetris/__tests__/Piece.test.js rename to src/screens/Game/__tests__/Piece.test.js diff --git a/src/screens/Tetris/__tests__/ScoreManager.test.js b/src/screens/Game/__tests__/ScoreManager.test.js similarity index 100% rename from src/screens/Tetris/__tests__/ScoreManager.test.js rename to src/screens/Game/__tests__/ScoreManager.test.js diff --git a/src/screens/Tetris/__tests__/Shape.test.js b/src/screens/Game/__tests__/Shape.test.js similarity index 100% rename from src/screens/Tetris/__tests__/Shape.test.js rename to src/screens/Game/__tests__/Shape.test.js diff --git a/src/screens/Tetris/components/Cell.js b/src/screens/Game/components/Cell.js similarity index 100% rename from src/screens/Tetris/components/Cell.js rename to src/screens/Game/components/Cell.js diff --git a/src/screens/Tetris/components/Grid.js b/src/screens/Game/components/Grid.js similarity index 100% rename from src/screens/Tetris/components/Grid.js rename to src/screens/Game/components/Grid.js diff --git a/src/screens/Tetris/components/Preview.js b/src/screens/Game/components/Preview.js similarity index 100% rename from src/screens/Tetris/components/Preview.js rename to src/screens/Game/components/Preview.js