Skip to content

Commit

Permalink
feat: add all files from private repo
Browse files Browse the repository at this point in the history
  • Loading branch information
Guiroos committed Jun 9, 2023
1 parent 82fdbc4 commit 994908a
Show file tree
Hide file tree
Showing 97 changed files with 17,208 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .eslintignore
@@ -0,0 +1,16 @@
node_modules
dist
build

app.config.js
app.config.ts

babel.config.js

metro.config.js
metro.config.ts

tailwind.config.js

webpack.config.js
webpack.config.ts
103 changes: 103 additions & 0 deletions .eslintrc
@@ -0,0 +1,103 @@
{
"env": {
"es6": true,
"node": true
},
"root": true,
"parser": "@typescript-eslint/parser",
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"plugin:react/jsx-runtime",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:@tanstack/eslint-plugin-query/recommended"
],
"settings": {
"react": {
"version": "detect"
}
},
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": "latest",
"sourceType": "module",
"project": ["./tsconfig.json"]
},
"plugins": [
"react",
"react-hooks",
"simple-import-sort",
"@typescript-eslint",
"@tanstack/query"
],
"rules": {
"indent": [
"error",
"tab",
{
"ignoredNodes": [
"CallExpression > FunctionExpression.callee > BlockStatement.body"
],
"SwitchCase": 1
}
],
"quotes": ["error", "double"],
"semi": ["error", "never"],
"object-curly-spacing": ["error", "always"],
"comma-spacing": [
"error",
{
"before": false,
"after": true
}
],
"no-unused-vars": 0,
"react/prop-types": 0,
"@typescript-eslint/no-explicit-any": "off",
"no-mixed-spaces-and-tabs": 0,
"simple-import-sort/imports": "error",
"simple-import-sort/exports": "error"
},
"overrides": [
{
"files": ["*/.js", "*/.ts", "*/.tsx"],
"parser": "@typescript-eslint/parser",
"rules": {
"simple-import-sort/imports": [
"error",
{
"groups": [
// `react` first, next second, then packages starting with a character
["^react", "^react$", "^react-native", "^react-native$"],
// Absolute imports
["^[a-z]", "^"],
// Packages starting with `@`
["^@"],
// Imports starting with `../ first, then imports starting with `./`
[
"^\\.\\.(?!/?$)",
"^\\.\\./?$",
"^\\./(?=.*/)(?!/?$)",
"^\\.(?!/?$)"
],
// Style imports
["^.+\\.s?css$"],
// Type imports
[
"^node:.*\\u0000$",
"^@?\\w.*\\u0000$",
"^[^.].*\\u0000$",
"^\\..*\\u0000$"
]
]
}
]
}
}
]
}
15 changes: 15 additions & 0 deletions .gitignore
@@ -0,0 +1,15 @@
.env
node_modules/
.expo/
dist/
npm-debug.*
*.jks
*.p8
*.p12
*.key
*.mobileprovision
*.orig.*
web-build/

# macOS
.DS_Store
3 changes: 3 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions .idea/private-teacher-project.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions .vscode/settings.json
@@ -0,0 +1,12 @@
{
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"eslint.validate": [
"javascript",
"javascriptreact",
"typescript",
"typescriptreact"
],
"editor.formatOnSave": true
}
34 changes: 34 additions & 0 deletions App.tsx
@@ -0,0 +1,34 @@
import "react-native-gesture-handler"

import { UserContextProvider } from "@contexts/UserContext"
import { NavigationContainer } from "@react-navigation/native"
import MainStack from "@stacks/MainStack"
import { QueryClient, QueryClientProvider } from "@tanstack/react-query"
import { DefaultTheme, Provider as PaperProvider } from "react-native-paper"

const Theme = {
...DefaultTheme,
colors: {
...DefaultTheme.colors,
primary: "#ff7323",
accent : "#23afff",
background: "transparent",
},
}

const queryClient = new QueryClient()

export default function App() {

return (
<QueryClientProvider client={queryClient} >
<UserContextProvider>
<NavigationContainer>
<PaperProvider theme={Theme}>
<MainStack navigation={undefined} />
</PaperProvider>
</NavigationContainer>
</UserContextProvider>
</QueryClientProvider>
)
}
2 changes: 2 additions & 0 deletions app.config.js
@@ -0,0 +1,2 @@
require("ts-node/register")
module.exports = require("./app.config.ts")
11 changes: 11 additions & 0 deletions app.config.ts
@@ -0,0 +1,11 @@
import { ExpoConfig } from "expo/config"

// In SDK 46 and lower, use the following import instead:
// import { ExpoConfig } from '@expo/config-types';

const config: ExpoConfig = {
name: "my-app",
slug: "my-app",
}

export default config
43 changes: 43 additions & 0 deletions app.json
@@ -0,0 +1,43 @@
{
"expo": {
"name": "OrganizAi",
"slug": "organizai",
"platforms": ["ios", "android"],
"version": "1.0.0",
"orientation": "portrait",
"icon": "./assets/icon.png",
// "splash": {
// "images": "./assets/icon.png",
// "resizeMode": "contain",
// "backgroundColor": "#FF7323"
// },
"userInterfaceStyle": "light",
"updates": {
"fallbackToCacheTimeout": 0
},
"assetBundlePatterns": ["**/*"],
"ios": {
"supportsTablet": true,
"bundleIdentifier": "com.guiroos.organizai",
"buildNumber": "1.0.0",
"infoPlist": {
"NSCameraUsageDescription": "This app uses the camera to let user put a photo in his profile page."
}
},
"android": {
"package": "com.organizAi",
"versionCode": 1,
"adaptiveIcon": {
"foregroundImage": "./assets/adaptive-icon.png",
"backgroundColor": "#FF7323"
}
},
"web": {},
"extra": {
"eas": {
"projectId": "54701443-80ac-4f04-883b-c9e8bdf1d7a3"
}
},
"owner": "guiroos"
}
}
Binary file added assets/adaptive-icon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/icon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/organizai-white.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/splash.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
44 changes: 44 additions & 0 deletions babel.config.js
@@ -0,0 +1,44 @@
module.exports = function (api) {
api.cache(true)
return {
presets: ["babel-preset-expo"],
plugins: [
"nativewind/babel",
[
"module:react-native-dotenv",
{
moduleName: "@env",
path: ".env",
blacklist: null,
whitelist: null,
safe: false,
allowUndefined: true,
},
],
[
"module-resolver",
{
root: ["."],
extensions: [".js", "ts", ".jsx", "tsx"],
alias: {
"@firebaseAPI": "./firebase.js",
"@assets": "./src/assets",
"@components": "./src/components",
"@constants": "./src/constants",
"@contexts": "./src/contexts",
"@hooks": "./src/hooks",
"@reducers": "./src/reducers",
"@screens": "./src/screens",
"@stacks": "./src/stacks",
"@utils": "./src/utils",
},
},
],
],
env: {
production: {
plugins: ['react-native-paper/babel'],
},
},
}
}
20 changes: 20 additions & 0 deletions eas.json
@@ -0,0 +1,20 @@
{
"cli": {
"version": ">= 3.10.2"
},
"build": {
"development": {
"developmentClient": true,
"distribution": "internal"
},
"androidAPK": {
"android": {
"buildType": "apk"
}
},
"production": {}
},
"submit": {
"production": {}
}
}

0 comments on commit 994908a

Please sign in to comment.