From b506db265856ee549bd369c5f893e023211b63f0 Mon Sep 17 00:00:00 2001 From: jadson179 Date: Sat, 15 Feb 2020 21:34:05 -0300 Subject: [PATCH 1/2] Create app mobile --- mobile/.expo-shared/assets.json | 4 + mobile/.gitignore | 14 + mobile/App.js | 7 + mobile/app.json | 34 + mobile/assets/icon.png | Bin 0 -> 1091 bytes mobile/assets/splash.png | Bin 0 -> 7178 bytes mobile/babel.config.js | 6 + mobile/package.json | 29 + mobile/routes.js | 34 + mobile/src/pages/Init/index.js | 46 + mobile/src/pages/Login/index.js | 10 + mobile/yarn.lock | 5401 +++++++++++++++++++++++++++++++ 12 files changed, 5585 insertions(+) create mode 100644 mobile/.expo-shared/assets.json create mode 100644 mobile/.gitignore create mode 100644 mobile/App.js create mode 100644 mobile/app.json create mode 100644 mobile/assets/icon.png create mode 100644 mobile/assets/splash.png create mode 100644 mobile/babel.config.js create mode 100644 mobile/package.json create mode 100644 mobile/routes.js create mode 100644 mobile/src/pages/Init/index.js create mode 100644 mobile/src/pages/Login/index.js create mode 100644 mobile/yarn.lock diff --git a/mobile/.expo-shared/assets.json b/mobile/.expo-shared/assets.json new file mode 100644 index 000000000..17ad2288c --- /dev/null +++ b/mobile/.expo-shared/assets.json @@ -0,0 +1,4 @@ +{ + "f9155ac790fd02fadcdeca367b02581c04a353aa6d5aa84409a59f6804c87acd": true, + "89ed26367cdb9b771858e026f2eb95bfdb90e5ae943e716575327ec325f39c44": true +} \ No newline at end of file diff --git a/mobile/.gitignore b/mobile/.gitignore new file mode 100644 index 000000000..c409cf6af --- /dev/null +++ b/mobile/.gitignore @@ -0,0 +1,14 @@ +node_modules/**/* +.expo/* +npm-debug.* +*.jks +*.p8 +*.p12 +*.key +*.mobileprovision +*.orig.* +web-build/ +web-report/ + +# macOS +.DS_Store diff --git a/mobile/App.js b/mobile/App.js new file mode 100644 index 000000000..5bb12df9a --- /dev/null +++ b/mobile/App.js @@ -0,0 +1,7 @@ +import React from 'react'; +import Routes from './routes' + +export default function App() { + return + +} \ No newline at end of file diff --git a/mobile/app.json b/mobile/app.json new file mode 100644 index 000000000..9c056eb77 --- /dev/null +++ b/mobile/app.json @@ -0,0 +1,34 @@ +{ + "expo": { + "name": "mobile", + "slug": "mobile", + "privacy": "public", + "sdkVersion": "36.0.0", + "platforms": [ + "ios", + "android", + "web" + ], + "version": "1.0.0", + "orientation": "portrait", + "icon": "./assets/icon.png", + "splash": { + "image": "./assets/splash.png", + "resizeMode": "contain", + "backgroundColor": "#ffffff" + }, + "updates": { + "fallbackToCacheTimeout": 0 + }, + "assetBundlePatterns": [ + "**/*" + ], + "ios": { + "supportsTablet": true + }, + "android": { + "package": "com.enigma.painel", + "versionCode": 1 + } + } +} diff --git a/mobile/assets/icon.png b/mobile/assets/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..7f5e01c5e594f57cb27becf0679fe120754a7187 GIT binary patch literal 1091 zcmeAS@N?(olHy`uVBq!ia0vp^2SAtuNHCOdH@*#|SkfJR9T^xl_H+M9WCijSl0AZa z85pY67#JE_7#My5g&JNkFq9fFFuY1&V6d9Oz#v{QXIG#NP=YDR+ueoXe|!I#{Xiaj ziKnkC`(tK45g7x8Un`6l7?{01T^vIyZoR#GK3gVL=J?0&pWoyp31{nEG!eQT;pP2x zLc{(HQI{jTSx^37Vg7MR$dc9o?~O~@GIbqurK&T$H}3M?G~4If$AmJWBhF=Ff6ge+ zzn+wS~|_bt@( z@mrhPUk}b5eOXqzC`;3P`KlRrU%mXhgl+C@t6h5|WqFvkRcX$fwrAO4YtEJ1x0VYC zIqaX^aPH~Oa5eR=U*Z4wr|h+tpErw%zsW6WO{MKtn#F-Z}JtP=GK?rm?qf`YxRPu)e~6L5HL5p$w-pf7%s} zO{;3TxFzYtFF7v7OJV$mU1k%@8qV2%RXKc{)oC`P2relKJH-25|qJ@3A6XDVlvzx$D!@aM6x!`H%J zM=sqwVENU%+N1b!%VzKT^ZUQcHaxeF`tx$>mhuh%KQ5Zsf9U1A=*!K`i>m5=)n3Z8 z|N48C__u&0o{e7*HVW4>+W!2(zE?lE5SY_cOI#yLQW8s2t&)pUffR$0fuW_Yfw8Wk yNr<6^m63&&iG{X-k(GhL))VnjC>nC}Q!>*kacej-_4zZP1_n=8KbLh*2~7Y=cHpl7 literal 0 HcmV?d00001 diff --git a/mobile/assets/splash.png b/mobile/assets/splash.png new file mode 100644 index 0000000000000000000000000000000000000000..4f9ade699a4dc43aaf3c97ad983115cccd0e0640 GIT binary patch literal 7178 zcmeH~dpy(q`^QJpNTRw+H)SY?VndA0Ij399DT!{$X%4ZCnGhn?O=YPlIiEsKDTj&0 zh?2>WoHn8m8Ai_M-)BoOjF`m(8&^JPzGgp0VACPX~|2_(Rv3678ej2G4y8K5D)nHLE> zvzKAwkj)T+r-t}n;m?dy#9@FsZRun=}eM<<*gK|>r+`h5!+@1JS0zFRf{hQR_H zyD$pAZvqbyi{P4~|<6I@!rM!{4c(fw{ zhquDvyneW7?v5kieBE*05M5oiYbp?Fl%ul;mc1ymNuf|kBdjmM5$lXL($f$J@<2U2 zT#zS~l~qsb!Burn=$}+j&{xq>IH9bgV{j6osHmWza#HCBtA}&;!=SN*AFRuNSi~<` z_JP271C{mAc#lhH7Xv&F1KHd-(&N`!;J?hb#k%}ji^?xq7$645ZtuU^{bLC@L+r<& zhZlJHdHm5>;LPKJ!)*zERtExcsF|Bs>2GXo#KpxeFE8ih@O-)T@WMm{IB|Uod zXlZFFK0bbZeSK|hEg>Ocb#--kcsMmRl|rGUq@*k?EYRunwzjskw6xjT+3xP{#Kgp* zp`my0-hKS|aeREdsHkXVW#!GAH*ep*EiEm5_Uu_fLBag|{I_r4$Yk=!$jGZ#uV!Xu zGBY!)tE)eK`t;$$hu+@a$;rv)=H|zbAAkM&b#Za=#fuly)6?nc=?n(r>C>m}?d|#b z`GbRl{r&wD6BDhit+~0mG#YJSV4$X^=E;*M9UUFn+1Z_)olGXPp`oFrrKPX0ueP?f ztgLKwbd*Y^CMPF<{`|SFu8u?^H8wWBe*OCW`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qrp&mRET&6nX=BFd{{9ZnjtLIV)y$8}z^M1nkbWV0>6jnQUUW(!b^Es} znGuZ|nHLfr%PuQ^7W=0x;CZ$bjrpBL4{`csV&KJ5SeBvL&h#ldykz_dEOSc6p9ntp z31*JQYV%ITFSNw+-5M(f51eQ&u&&mU_~*0DbODIJhVq{CIJ2$IWui&eP#quZkNYy-Kp<10s6_=n*)?_Z9xBZ4pSd@KN*iaol_1H3}vhyyV8A;s!f2f8~Ubm*`yE z!Rkj}lToj(RD8;Bi)$y%JBV%Q%s!A!J7{o>to7kg39IeEjGv#%F!NQIs}QC@XEDoX zB6y;fs22T(l{zIiS3*cWk0?>Tf}Wz85sgELk2JckX9p}Vqt>o5rr%_pCYL*+Spl^`&gyC!UhuCjm<^Q$LQ|9$e1ZV8^Ivvv{YCh zVv5>VX;97!zc<;MF28TT9r*3QZwG!m@LwGW&fECI0mRK)REU(k-^&g)(l^z6deR~M Fe*iU3xyt|m literal 0 HcmV?d00001 diff --git a/mobile/babel.config.js b/mobile/babel.config.js new file mode 100644 index 000000000..2900afe9d --- /dev/null +++ b/mobile/babel.config.js @@ -0,0 +1,6 @@ +module.exports = function(api) { + api.cache(true); + return { + presets: ['babel-preset-expo'], + }; +}; diff --git a/mobile/package.json b/mobile/package.json new file mode 100644 index 000000000..8cd088b71 --- /dev/null +++ b/mobile/package.json @@ -0,0 +1,29 @@ +{ + "main": "node_modules/expo/AppEntry.js", + "scripts": { + "start": "expo start", + "android": "expo start --android", + "ios": "expo start --ios", + "web": "expo start --web", + "eject": "expo eject" + }, + "dependencies": { + "@react-native-community/masked-view": "0.1.5", + "expo": "~36.0.0", + "react": "~16.9.0", + "react-dom": "~16.9.0", + "react-native": "https://github.com/expo/react-native/archive/sdk-36.0.0.tar.gz", + "react-native-gesture-handler": "~1.5.0", + "react-native-safe-area-context": "0.6.0", + "react-native-screens": "2.0.0-alpha.12", + "react-native-web": "~0.11.7", + "react-native-webview": "7.4.3", + "react-navigation": "^4.1.1", + "react-navigation-stack": "^2.1.1" + }, + "devDependencies": { + "@babel/core": "^7.0.0", + "babel-preset-expo": "~8.0.0" + }, + "private": true +} diff --git a/mobile/routes.js b/mobile/routes.js new file mode 100644 index 000000000..9a2d0c643 --- /dev/null +++ b/mobile/routes.js @@ -0,0 +1,34 @@ +import { createAppContainer } from 'react-navigation' +import { createStackNavigator } from 'react-navigation-stack' + +import Init from './src/pages/Init' +import Login from './src/pages/Login' + +const Routes = createAppContainer( + createStackNavigator({ + Init:{ + screen: Init, + navigationOptions:{ + headerShown: false + } + }, + Login:{ + screen: Login, + navigationOptions:{ + headerShown: false + } + } + },{ + defaultNavigationOptions:{ + headerBackTitleVisible: false, + header: 'none', + headerTintColor: '#fff', + headerStyle:{ + backgroundColor: '#7d40e7' + } + }, + initialRouteName: 'Init' + }) +) + +export default Routes; \ No newline at end of file diff --git a/mobile/src/pages/Init/index.js b/mobile/src/pages/Init/index.js new file mode 100644 index 000000000..3ff87a094 --- /dev/null +++ b/mobile/src/pages/Init/index.js @@ -0,0 +1,46 @@ +import React, { useState} from 'react'; +import { StyleSheet, Text, View, TextInput, Button } from 'react-native'; + +export default function Init({navigation}) { + const [address, setAddress] = useState('') + return ( + + setAddress(text)} /> + http://example.painel.com:8080 + +