├── .watchmanconfig ├── shared ├── state │ ├── GlobalState.js │ ├── colors.js │ ├── task_statuses.js │ ├── urls.js │ └── styles.js └── components │ ├── ImageUploader.js │ ├── Hr.js │ ├── Loading.js │ ├── InputErrorMessage.js │ ├── StatedInput.js │ ├── Button.js │ └── ButtonWithIcon.js ├── android ├── .gradle │ ├── 5.5 │ │ ├── gc.properties │ │ ├── fileChanges │ │ │ └── last-build.bin │ │ ├── fileHashes │ │ │ ├── fileHashes.bin │ │ │ ├── fileHashes.lock │ │ │ └── resourceHashesCache.bin │ │ ├── fileContent │ │ │ └── fileContent.lock │ │ ├── javaCompile │ │ │ ├── jarAnalysis.bin │ │ │ ├── javaCompile.lock │ │ │ ├── taskHistory.bin │ │ │ └── classAnalysis.bin │ │ └── executionHistory │ │ │ ├── executionHistory.bin │ │ │ └── executionHistory.lock │ ├── vcs-1 │ │ └── gc.properties │ └── buildOutputCleanup │ │ ├── cache.properties │ │ ├── outputFiles.bin │ │ └── buildOutputCleanup.lock ├── .settings │ └── org.eclipse.buildship.core.prefs ├── app │ ├── src │ │ ├── main │ │ │ ├── res │ │ │ │ ├── raw │ │ │ │ │ ├── app.json │ │ │ │ │ ├── node_modules_entities_maps_xml.json │ │ │ │ │ ├── node_modules_domserializer_node_modules_entities_lib_maps_xml.json │ │ │ │ │ ├── node_modules_entities_maps_decode.json │ │ │ │ │ ├── node_modules_domserializer_node_modules_entities_lib_maps_decode.json │ │ │ │ │ ├── node_modules_entities_maps_legacy.json │ │ │ │ │ ├── node_modules_domserializer_node_modules_entities_lib_maps_legacy.json │ │ │ │ │ └── node_modules_domserializer_foreignnames.json │ │ │ │ ├── values │ │ │ │ │ ├── strings.xml │ │ │ │ │ ├── colors.xml │ │ │ │ │ └── styles.xml │ │ │ │ ├── mipmap-hdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-mdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xxhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xxxhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── drawable-mdpi │ │ │ │ │ ├── assets_img_logo.png │ │ │ │ │ ├── assets_img_plus.png │ │ │ │ │ ├── assets_img_2x_exit.png │ │ │ │ │ ├── assets_img_logoicon.png │ │ │ │ │ ├── assets_img_menu_corp.png │ │ │ │ │ ├── assets_img_menu_exit.png │ │ │ │ │ ├── assets_img_menu_news.png │ │ │ │ │ ├── assets_img_2x_success.png │ │ │ │ │ ├── assets_img_2x_warning.png │ │ │ │ │ ├── assets_img_documenticon.png │ │ │ │ │ ├── assets_img_logoconture.png │ │ │ │ │ ├── assets_img_maleavatar.png │ │ │ │ │ ├── assets_img_menu_about.png │ │ │ │ │ ├── assets_img_menu_support.png │ │ │ │ │ ├── assets_img_2x_arrow_right.png │ │ │ │ │ ├── assets_img_maleavatarbig.png │ │ │ │ │ ├── assets_img_menu_transform.png │ │ │ │ │ ├── assets_img_2x_radio_checked.png │ │ │ │ │ ├── assets_img_avatarplaceholder.png │ │ │ │ │ ├── assets_img_menu_compliance.png │ │ │ │ │ ├── assets_img_2x_radio_unchecked.png │ │ │ │ │ ├── node_modules_reactnativeratings_src_images_bell.png │ │ │ │ │ ├── node_modules_reactnativeratings_src_images_heart.png │ │ │ │ │ ├── node_modules_reactnativeratings_src_images_star.png │ │ │ │ │ ├── node_modules_reactnativeratings_src_images_rocket.png │ │ │ │ │ ├── node_modules_reactnativeratings_src_images_airbnbstar.png │ │ │ │ │ ├── node_modules_reactnativeratings_src_images_airbnbstarselected.png │ │ │ │ │ ├── node_modules_reactnavigationstack_lib_module_views_assets_backicon.png │ │ │ │ │ └── node_modules_reactnavigationstack_lib_module_views_assets_backiconmask.png │ │ │ │ ├── drawable-hdpi │ │ │ │ │ └── node_modules_reactnavigationstack_lib_module_views_assets_backicon.png │ │ │ │ ├── drawable-xhdpi │ │ │ │ │ └── node_modules_reactnavigationstack_lib_module_views_assets_backicon.png │ │ │ │ ├── drawable-xxhdpi │ │ │ │ │ └── node_modules_reactnavigationstack_lib_module_views_assets_backicon.png │ │ │ │ ├── drawable-xxxhdpi │ │ │ │ │ └── node_modules_reactnavigationstack_lib_module_views_assets_backicon.png │ │ │ │ └── xml │ │ │ │ │ └── network_security_config.xml │ │ │ ├── java │ │ │ │ └── kz │ │ │ │ │ └── samrukenergy │ │ │ │ │ └── portal │ │ │ │ │ ├── MainActivity.java │ │ │ │ │ └── MainApplication.java │ │ │ └── AndroidManifest.xml │ │ └── debug │ │ │ └── AndroidManifest.xml │ ├── .settings │ │ └── org.eclipse.buildship.core.prefs │ ├── debug.keystore │ ├── fabric.properties │ ├── .classpath │ ├── proguard-rules.pro │ ├── .project │ ├── build_defs.bzl │ ├── BUCK │ └── google-services.json ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── keystores │ ├── debug.keystore.properties │ └── BUCK ├── settings.gradle ├── .project ├── gradle.properties ├── build.gradle ├── gradlew.bat └── gradlew ├── app.json ├── .eslintrc.js ├── babel.config.js ├── assets └── img │ ├── logo.png │ ├── plus.png │ ├── 2x │ ├── exit.png │ ├── success.png │ ├── warning.png │ ├── arrow_right.png │ ├── radio_checked.png │ └── radio_unchecked.png │ ├── logo-icon.png │ ├── male-avatar.png │ ├── menu │ ├── about.png │ ├── corp.png │ ├── exit.png │ ├── news.png │ ├── support.png │ ├── compliance.png │ └── transform.png │ ├── test_icon.png │ ├── document-icon.png │ ├── female-avatar.png │ ├── logo-conture.png │ ├── male-avatar-big.png │ ├── avatar-placeholder.png │ ├── 1x │ └── baseline_keyboard_arrow_right_black_18dp.png │ ├── plus.svg │ ├── warning.svg │ ├── exit.svg │ ├── success.svg │ ├── test_icon.svg │ ├── logo-icon.svg │ └── logo-conture.svg ├── ios ├── SamrukEnergy │ ├── Images.xcassets │ │ ├── Contents.json │ │ ├── logo.imageset │ │ │ ├── logo.png │ │ │ ├── logo@2x.png │ │ │ ├── logo@3x.png │ │ │ └── Contents.json │ │ └── AppIcon.appiconset │ │ │ ├── 40.png │ │ │ ├── 58.png │ │ │ ├── 60.png │ │ │ ├── 80.png │ │ │ ├── 87.png │ │ │ ├── 1024.png │ │ │ ├── 120.png │ │ │ ├── 180.png │ │ │ ├── 120 copy.png │ │ │ └── Contents.json │ ├── MaterialIcons.ttf │ ├── AppDelegate.h │ ├── main.m │ ├── GoogleService-Info.plist │ ├── AppDelegate.m │ ├── Info.plist │ └── Base.lproj │ │ └── LaunchScreen.xib ├── SamrukEnergy.xcodeproj │ └── project.xcworkspace │ │ └── contents.xcworkspacedata ├── SamrukEnergy.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ └── IDEWorkspaceChecks.plist ├── SamrukEnergyTests │ ├── Info.plist │ └── SamrukEnergyTests.m ├── SamrukEnergy-tvOSTests │ └── Info.plist ├── SamrukEnergy-tvOS │ └── Info.plist └── Podfile ├── .buckconfig ├── helper.txt ├── screens ├── Project │ ├── ProjectData.js │ ├── ProjectsScreen.js │ └── ProcessOwnersScreen.js ├── Menu │ ├── ChildMenuItem.js │ └── MenuItem.js ├── Compliance │ ├── VideosScreen.js │ ├── EducationalScreen.js │ ├── FaqScreen.js │ └── FaqsScreen.js ├── Task │ ├── TaskCommentScreen.js │ ├── TasksTabsScreen.js │ ├── TaskActions.js │ └── TasksScreen.js ├── About │ ├── StructureScreen.js │ ├── SearchUserScreen.js │ ├── DepartmentScreen.js │ ├── EmployeesScreen.js │ └── DepartmentsScreen.js ├── CorporateGovernance │ └── CorporateGovernanceScreen.js ├── Splash │ └── SplashScreen.js ├── Success │ └── SuccessScreen.js ├── ListScreen.js ├── DocumentListScreen.js ├── UsersScreen.js ├── VideoListScreen.js └── News │ ├── NewsTabScreen.js │ ├── NewsListScreen.js │ └── NewsScreen.js ├── index.js ├── __tests__ └── App-test.js ├── metro.config.js ├── utils └── i18n.js ├── .editorconfig ├── package.json ├── plugins └── axios.js ├── .flowconfig ├── App.js └── locales └── ru.js /.watchmanconfig: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /shared/state/GlobalState.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /android/.gradle/5.5/gc.properties: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /android/.gradle/vcs-1/gc.properties: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /android/.gradle/5.5/fileChanges/last-build.bin: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "SamrukEnergy", 3 | "displayName": "SamrukEnergy" 4 | } -------------------------------------------------------------------------------- /.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | root: true, 3 | extends: '@react-native-community', 4 | }; 5 | -------------------------------------------------------------------------------- /android/.gradle/buildOutputCleanup/cache.properties: -------------------------------------------------------------------------------- 1 | #Sat Nov 02 10:59:19 CST 2019 2 | gradle.version=5.5 3 | -------------------------------------------------------------------------------- /babel.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ['module:metro-react-native-babel-preset'], 3 | }; 4 | -------------------------------------------------------------------------------- /android/.settings/org.eclipse.buildship.core.prefs: -------------------------------------------------------------------------------- 1 | connection.project.dir= 2 | eclipse.preferences.version=1 3 | -------------------------------------------------------------------------------- /android/app/src/main/res/raw/app.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "SamrukEnergy", 3 | "displayName": "SamrukEnergy" 4 | } -------------------------------------------------------------------------------- /android/app/.settings/org.eclipse.buildship.core.prefs: -------------------------------------------------------------------------------- 1 | connection.project.dir=.. 2 | eclipse.preferences.version=1 3 | -------------------------------------------------------------------------------- /assets/img/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starmastar1126/Samruk_Energy_ReactNative/HEAD/assets/img/logo.png -------------------------------------------------------------------------------- /assets/img/plus.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starmastar1126/Samruk_Energy_ReactNative/HEAD/assets/img/plus.png -------------------------------------------------------------------------------- /android/app/src/main/res/raw/node_modules_entities_maps_xml.json: -------------------------------------------------------------------------------- 1 | {"amp":"&","apos":"'","gt":">","lt":"<","quot":"\""} 2 | -------------------------------------------------------------------------------- /assets/img/2x/exit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starmastar1126/Samruk_Energy_ReactNative/HEAD/assets/img/2x/exit.png -------------------------------------------------------------------------------- /android/app/debug.keystore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starmastar1126/Samruk_Energy_ReactNative/HEAD/android/app/debug.keystore -------------------------------------------------------------------------------- /assets/img/2x/success.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starmastar1126/Samruk_Energy_ReactNative/HEAD/assets/img/2x/success.png -------------------------------------------------------------------------------- /assets/img/2x/warning.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starmastar1126/Samruk_Energy_ReactNative/HEAD/assets/img/2x/warning.png -------------------------------------------------------------------------------- /assets/img/logo-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starmastar1126/Samruk_Energy_ReactNative/HEAD/assets/img/logo-icon.png -------------------------------------------------------------------------------- /assets/img/male-avatar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starmastar1126/Samruk_Energy_ReactNative/HEAD/assets/img/male-avatar.png -------------------------------------------------------------------------------- /assets/img/menu/about.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starmastar1126/Samruk_Energy_ReactNative/HEAD/assets/img/menu/about.png -------------------------------------------------------------------------------- /assets/img/menu/corp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starmastar1126/Samruk_Energy_ReactNative/HEAD/assets/img/menu/corp.png -------------------------------------------------------------------------------- /assets/img/menu/exit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starmastar1126/Samruk_Energy_ReactNative/HEAD/assets/img/menu/exit.png -------------------------------------------------------------------------------- /assets/img/menu/news.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starmastar1126/Samruk_Energy_ReactNative/HEAD/assets/img/menu/news.png -------------------------------------------------------------------------------- /assets/img/test_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starmastar1126/Samruk_Energy_ReactNative/HEAD/assets/img/test_icon.png -------------------------------------------------------------------------------- /ios/SamrukEnergy/Images.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /android/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | EnergySolutions 3 | 4 | -------------------------------------------------------------------------------- /assets/img/document-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starmastar1126/Samruk_Energy_ReactNative/HEAD/assets/img/document-icon.png -------------------------------------------------------------------------------- /assets/img/female-avatar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starmastar1126/Samruk_Energy_ReactNative/HEAD/assets/img/female-avatar.png -------------------------------------------------------------------------------- /assets/img/logo-conture.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starmastar1126/Samruk_Energy_ReactNative/HEAD/assets/img/logo-conture.png -------------------------------------------------------------------------------- /assets/img/menu/support.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starmastar1126/Samruk_Energy_ReactNative/HEAD/assets/img/menu/support.png -------------------------------------------------------------------------------- /assets/img/2x/arrow_right.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starmastar1126/Samruk_Energy_ReactNative/HEAD/assets/img/2x/arrow_right.png -------------------------------------------------------------------------------- /assets/img/2x/radio_checked.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starmastar1126/Samruk_Energy_ReactNative/HEAD/assets/img/2x/radio_checked.png -------------------------------------------------------------------------------- /assets/img/male-avatar-big.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starmastar1126/Samruk_Energy_ReactNative/HEAD/assets/img/male-avatar-big.png -------------------------------------------------------------------------------- /assets/img/menu/compliance.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starmastar1126/Samruk_Energy_ReactNative/HEAD/assets/img/menu/compliance.png -------------------------------------------------------------------------------- /assets/img/menu/transform.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starmastar1126/Samruk_Energy_ReactNative/HEAD/assets/img/menu/transform.png -------------------------------------------------------------------------------- /assets/img/2x/radio_unchecked.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starmastar1126/Samruk_Energy_ReactNative/HEAD/assets/img/2x/radio_unchecked.png -------------------------------------------------------------------------------- /assets/img/avatar-placeholder.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starmastar1126/Samruk_Energy_ReactNative/HEAD/assets/img/avatar-placeholder.png -------------------------------------------------------------------------------- /ios/SamrukEnergy/MaterialIcons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starmastar1126/Samruk_Energy_ReactNative/HEAD/ios/SamrukEnergy/MaterialIcons.ttf -------------------------------------------------------------------------------- /.buckconfig: -------------------------------------------------------------------------------- 1 | 2 | [android] 3 | target = Google Inc.:Google APIs:23 4 | 5 | [maven_repositories] 6 | central = https://repo1.maven.org/maven2 7 | -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starmastar1126/Samruk_Energy_ReactNative/HEAD/android/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /android/app/src/main/res/raw/node_modules_domserializer_node_modules_entities_lib_maps_xml.json: -------------------------------------------------------------------------------- 1 | { "amp": "&", "apos": "'", "gt": ">", "lt": "<", "quot": "\"" } 2 | -------------------------------------------------------------------------------- /android/.gradle/5.5/fileHashes/fileHashes.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starmastar1126/Samruk_Energy_ReactNative/HEAD/android/.gradle/5.5/fileHashes/fileHashes.bin -------------------------------------------------------------------------------- /android/.gradle/5.5/fileHashes/fileHashes.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starmastar1126/Samruk_Energy_ReactNative/HEAD/android/.gradle/5.5/fileHashes/fileHashes.lock -------------------------------------------------------------------------------- /android/app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #00528D 4 | 5 | -------------------------------------------------------------------------------- /android/keystores/debug.keystore.properties: -------------------------------------------------------------------------------- 1 | key.store=debug.keystore 2 | key.alias=androiddebugkey 3 | key.store.password=android 4 | key.alias.password=android 5 | -------------------------------------------------------------------------------- /android/.gradle/5.5/fileContent/fileContent.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starmastar1126/Samruk_Energy_ReactNative/HEAD/android/.gradle/5.5/fileContent/fileContent.lock -------------------------------------------------------------------------------- /android/.gradle/5.5/javaCompile/jarAnalysis.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starmastar1126/Samruk_Energy_ReactNative/HEAD/android/.gradle/5.5/javaCompile/jarAnalysis.bin -------------------------------------------------------------------------------- /android/.gradle/5.5/javaCompile/javaCompile.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starmastar1126/Samruk_Energy_ReactNative/HEAD/android/.gradle/5.5/javaCompile/javaCompile.lock -------------------------------------------------------------------------------- /android/.gradle/5.5/javaCompile/taskHistory.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starmastar1126/Samruk_Energy_ReactNative/HEAD/android/.gradle/5.5/javaCompile/taskHistory.bin -------------------------------------------------------------------------------- /android/.gradle/5.5/javaCompile/classAnalysis.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starmastar1126/Samruk_Energy_ReactNative/HEAD/android/.gradle/5.5/javaCompile/classAnalysis.bin -------------------------------------------------------------------------------- /android/.gradle/buildOutputCleanup/outputFiles.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starmastar1126/Samruk_Energy_ReactNative/HEAD/android/.gradle/buildOutputCleanup/outputFiles.bin -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starmastar1126/Samruk_Energy_ReactNative/HEAD/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starmastar1126/Samruk_Energy_ReactNative/HEAD/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starmastar1126/Samruk_Energy_ReactNative/HEAD/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/.gradle/5.5/fileHashes/resourceHashesCache.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starmastar1126/Samruk_Energy_ReactNative/HEAD/android/.gradle/5.5/fileHashes/resourceHashesCache.bin -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starmastar1126/Samruk_Energy_ReactNative/HEAD/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starmastar1126/Samruk_Energy_ReactNative/HEAD/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /ios/SamrukEnergy/Images.xcassets/logo.imageset/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starmastar1126/Samruk_Energy_ReactNative/HEAD/ios/SamrukEnergy/Images.xcassets/logo.imageset/logo.png -------------------------------------------------------------------------------- /android/.gradle/5.5/executionHistory/executionHistory.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starmastar1126/Samruk_Energy_ReactNative/HEAD/android/.gradle/5.5/executionHistory/executionHistory.bin -------------------------------------------------------------------------------- /android/.gradle/5.5/executionHistory/executionHistory.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starmastar1126/Samruk_Energy_ReactNative/HEAD/android/.gradle/5.5/executionHistory/executionHistory.lock -------------------------------------------------------------------------------- /android/.gradle/buildOutputCleanup/buildOutputCleanup.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starmastar1126/Samruk_Energy_ReactNative/HEAD/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-mdpi/assets_img_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starmastar1126/Samruk_Energy_ReactNative/HEAD/android/app/src/main/res/drawable-mdpi/assets_img_logo.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-mdpi/assets_img_plus.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starmastar1126/Samruk_Energy_ReactNative/HEAD/android/app/src/main/res/drawable-mdpi/assets_img_plus.png -------------------------------------------------------------------------------- /assets/img/1x/baseline_keyboard_arrow_right_black_18dp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starmastar1126/Samruk_Energy_ReactNative/HEAD/assets/img/1x/baseline_keyboard_arrow_right_black_18dp.png -------------------------------------------------------------------------------- /ios/SamrukEnergy/Images.xcassets/AppIcon.appiconset/40.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starmastar1126/Samruk_Energy_ReactNative/HEAD/ios/SamrukEnergy/Images.xcassets/AppIcon.appiconset/40.png -------------------------------------------------------------------------------- /ios/SamrukEnergy/Images.xcassets/AppIcon.appiconset/58.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starmastar1126/Samruk_Energy_ReactNative/HEAD/ios/SamrukEnergy/Images.xcassets/AppIcon.appiconset/58.png -------------------------------------------------------------------------------- /ios/SamrukEnergy/Images.xcassets/AppIcon.appiconset/60.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starmastar1126/Samruk_Energy_ReactNative/HEAD/ios/SamrukEnergy/Images.xcassets/AppIcon.appiconset/60.png -------------------------------------------------------------------------------- /ios/SamrukEnergy/Images.xcassets/AppIcon.appiconset/80.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starmastar1126/Samruk_Energy_ReactNative/HEAD/ios/SamrukEnergy/Images.xcassets/AppIcon.appiconset/80.png -------------------------------------------------------------------------------- /ios/SamrukEnergy/Images.xcassets/AppIcon.appiconset/87.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starmastar1126/Samruk_Energy_ReactNative/HEAD/ios/SamrukEnergy/Images.xcassets/AppIcon.appiconset/87.png -------------------------------------------------------------------------------- /ios/SamrukEnergy/Images.xcassets/logo.imageset/logo@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starmastar1126/Samruk_Energy_ReactNative/HEAD/ios/SamrukEnergy/Images.xcassets/logo.imageset/logo@2x.png -------------------------------------------------------------------------------- /ios/SamrukEnergy/Images.xcassets/logo.imageset/logo@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starmastar1126/Samruk_Energy_ReactNative/HEAD/ios/SamrukEnergy/Images.xcassets/logo.imageset/logo@3x.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-mdpi/assets_img_2x_exit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starmastar1126/Samruk_Energy_ReactNative/HEAD/android/app/src/main/res/drawable-mdpi/assets_img_2x_exit.png -------------------------------------------------------------------------------- /ios/SamrukEnergy/Images.xcassets/AppIcon.appiconset/1024.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starmastar1126/Samruk_Energy_ReactNative/HEAD/ios/SamrukEnergy/Images.xcassets/AppIcon.appiconset/1024.png -------------------------------------------------------------------------------- /ios/SamrukEnergy/Images.xcassets/AppIcon.appiconset/120.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starmastar1126/Samruk_Energy_ReactNative/HEAD/ios/SamrukEnergy/Images.xcassets/AppIcon.appiconset/120.png -------------------------------------------------------------------------------- /ios/SamrukEnergy/Images.xcassets/AppIcon.appiconset/180.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starmastar1126/Samruk_Energy_ReactNative/HEAD/ios/SamrukEnergy/Images.xcassets/AppIcon.appiconset/180.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-mdpi/assets_img_logoicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starmastar1126/Samruk_Energy_ReactNative/HEAD/android/app/src/main/res/drawable-mdpi/assets_img_logoicon.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-mdpi/assets_img_menu_corp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starmastar1126/Samruk_Energy_ReactNative/HEAD/android/app/src/main/res/drawable-mdpi/assets_img_menu_corp.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-mdpi/assets_img_menu_exit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starmastar1126/Samruk_Energy_ReactNative/HEAD/android/app/src/main/res/drawable-mdpi/assets_img_menu_exit.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-mdpi/assets_img_menu_news.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starmastar1126/Samruk_Energy_ReactNative/HEAD/android/app/src/main/res/drawable-mdpi/assets_img_menu_news.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-mdpi/assets_img_2x_success.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starmastar1126/Samruk_Energy_ReactNative/HEAD/android/app/src/main/res/drawable-mdpi/assets_img_2x_success.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-mdpi/assets_img_2x_warning.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starmastar1126/Samruk_Energy_ReactNative/HEAD/android/app/src/main/res/drawable-mdpi/assets_img_2x_warning.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-mdpi/assets_img_documenticon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starmastar1126/Samruk_Energy_ReactNative/HEAD/android/app/src/main/res/drawable-mdpi/assets_img_documenticon.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-mdpi/assets_img_logoconture.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starmastar1126/Samruk_Energy_ReactNative/HEAD/android/app/src/main/res/drawable-mdpi/assets_img_logoconture.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-mdpi/assets_img_maleavatar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starmastar1126/Samruk_Energy_ReactNative/HEAD/android/app/src/main/res/drawable-mdpi/assets_img_maleavatar.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-mdpi/assets_img_menu_about.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starmastar1126/Samruk_Energy_ReactNative/HEAD/android/app/src/main/res/drawable-mdpi/assets_img_menu_about.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-mdpi/assets_img_menu_support.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starmastar1126/Samruk_Energy_ReactNative/HEAD/android/app/src/main/res/drawable-mdpi/assets_img_menu_support.png -------------------------------------------------------------------------------- /android/keystores/BUCK: -------------------------------------------------------------------------------- 1 | keystore( 2 | name = "debug", 3 | properties = "debug.keystore.properties", 4 | store = "debug.keystore", 5 | visibility = [ 6 | "PUBLIC", 7 | ], 8 | ) 9 | -------------------------------------------------------------------------------- /ios/SamrukEnergy/Images.xcassets/AppIcon.appiconset/120 copy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starmastar1126/Samruk_Energy_ReactNative/HEAD/ios/SamrukEnergy/Images.xcassets/AppIcon.appiconset/120 copy.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-mdpi/assets_img_2x_arrow_right.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starmastar1126/Samruk_Energy_ReactNative/HEAD/android/app/src/main/res/drawable-mdpi/assets_img_2x_arrow_right.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-mdpi/assets_img_maleavatarbig.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starmastar1126/Samruk_Energy_ReactNative/HEAD/android/app/src/main/res/drawable-mdpi/assets_img_maleavatarbig.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-mdpi/assets_img_menu_transform.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starmastar1126/Samruk_Energy_ReactNative/HEAD/android/app/src/main/res/drawable-mdpi/assets_img_menu_transform.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-mdpi/assets_img_2x_radio_checked.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starmastar1126/Samruk_Energy_ReactNative/HEAD/android/app/src/main/res/drawable-mdpi/assets_img_2x_radio_checked.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-mdpi/assets_img_avatarplaceholder.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starmastar1126/Samruk_Energy_ReactNative/HEAD/android/app/src/main/res/drawable-mdpi/assets_img_avatarplaceholder.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-mdpi/assets_img_menu_compliance.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starmastar1126/Samruk_Energy_ReactNative/HEAD/android/app/src/main/res/drawable-mdpi/assets_img_menu_compliance.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-mdpi/assets_img_2x_radio_unchecked.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starmastar1126/Samruk_Energy_ReactNative/HEAD/android/app/src/main/res/drawable-mdpi/assets_img_2x_radio_unchecked.png -------------------------------------------------------------------------------- /shared/state/colors.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | gray: "#979797", 3 | blue: "#0065AE", 4 | red: "#E9552F", 5 | grayDA: "#dadada", 6 | white: "#ffffff", 7 | gray97: "#979797", 8 | grayC4: "#C4C4C4" 9 | }; 10 | -------------------------------------------------------------------------------- /android/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'SamrukEnergy' 2 | apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings) 3 | include ':app' 4 | -------------------------------------------------------------------------------- /ios/SamrukEnergy.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /assets/img/plus.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-mdpi/node_modules_reactnativeratings_src_images_bell.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starmastar1126/Samruk_Energy_ReactNative/HEAD/android/app/src/main/res/drawable-mdpi/node_modules_reactnativeratings_src_images_bell.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-mdpi/node_modules_reactnativeratings_src_images_heart.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starmastar1126/Samruk_Energy_ReactNative/HEAD/android/app/src/main/res/drawable-mdpi/node_modules_reactnativeratings_src_images_heart.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-mdpi/node_modules_reactnativeratings_src_images_star.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starmastar1126/Samruk_Energy_ReactNative/HEAD/android/app/src/main/res/drawable-mdpi/node_modules_reactnativeratings_src_images_star.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-mdpi/node_modules_reactnativeratings_src_images_rocket.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starmastar1126/Samruk_Energy_ReactNative/HEAD/android/app/src/main/res/drawable-mdpi/node_modules_reactnativeratings_src_images_rocket.png -------------------------------------------------------------------------------- /android/app/fabric.properties: -------------------------------------------------------------------------------- 1 | #Contains API Secret used to validate your application. Commit to internal source control; avoid making secret public. 2 | #Mon Jul 29 23:51:14 ALMT 2019 3 | apiSecret=10f518c33bbd47142553a38a0f272eb0756696c7e6e78e129c440cec932bd7d5 4 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-mdpi/node_modules_reactnativeratings_src_images_airbnbstar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starmastar1126/Samruk_Energy_ReactNative/HEAD/android/app/src/main/res/drawable-mdpi/node_modules_reactnativeratings_src_images_airbnbstar.png -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-5.5-all.zip 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | -------------------------------------------------------------------------------- /assets/img/warning.svg: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-mdpi/node_modules_reactnativeratings_src_images_airbnbstarselected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starmastar1126/Samruk_Energy_ReactNative/HEAD/android/app/src/main/res/drawable-mdpi/node_modules_reactnativeratings_src_images_airbnbstarselected.png -------------------------------------------------------------------------------- /shared/components/ImageUploader.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react'; 2 | import { View } from 'react-native'; 3 | 4 | export default class ImageUploader extends Component { 5 | render() { 6 | return ( 7 | 8 | ) 9 | } 10 | } -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-hdpi/node_modules_reactnavigationstack_lib_module_views_assets_backicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starmastar1126/Samruk_Energy_ReactNative/HEAD/android/app/src/main/res/drawable-hdpi/node_modules_reactnavigationstack_lib_module_views_assets_backicon.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-mdpi/node_modules_reactnavigationstack_lib_module_views_assets_backicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starmastar1126/Samruk_Energy_ReactNative/HEAD/android/app/src/main/res/drawable-mdpi/node_modules_reactnavigationstack_lib_module_views_assets_backicon.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-xhdpi/node_modules_reactnavigationstack_lib_module_views_assets_backicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starmastar1126/Samruk_Energy_ReactNative/HEAD/android/app/src/main/res/drawable-xhdpi/node_modules_reactnavigationstack_lib_module_views_assets_backicon.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-xxhdpi/node_modules_reactnavigationstack_lib_module_views_assets_backicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starmastar1126/Samruk_Energy_ReactNative/HEAD/android/app/src/main/res/drawable-xxhdpi/node_modules_reactnavigationstack_lib_module_views_assets_backicon.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-mdpi/node_modules_reactnavigationstack_lib_module_views_assets_backiconmask.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starmastar1126/Samruk_Energy_ReactNative/HEAD/android/app/src/main/res/drawable-mdpi/node_modules_reactnavigationstack_lib_module_views_assets_backiconmask.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-xxxhdpi/node_modules_reactnavigationstack_lib_module_views_assets_backicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starmastar1126/Samruk_Energy_ReactNative/HEAD/android/app/src/main/res/drawable-xxxhdpi/node_modules_reactnavigationstack_lib_module_views_assets_backicon.png -------------------------------------------------------------------------------- /helper.txt: -------------------------------------------------------------------------------- 1 | mkdir -p android/app/src/main/assets 2 | rm -rf android/app/build 3 | react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res 4 | cd android 5 | ./gradlew clean assembleRelease 6 | cd ../ 7 | -------------------------------------------------------------------------------- /ios/SamrukEnergy.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /ios/SamrukEnergy.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /screens/Project/ProjectData.js: -------------------------------------------------------------------------------- 1 | import React, { PureComponent } from "react"; 2 | import { View } from "react-native"; 3 | import HTMLView from "react-native-htmlview"; 4 | 5 | export default class ProjectData extends PureComponent { 6 | render() { 7 | return ; 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @format 3 | */ 4 | 5 | import { AppRegistry } from "react-native"; 6 | import App from "./shared/components/Navigation"; 7 | import { name as appName } from "./app.json"; 8 | import { enableScreens } from "react-native-screens"; 9 | 10 | enableScreens(); 11 | AppRegistry.registerComponent(appName, () => App); 12 | -------------------------------------------------------------------------------- /__tests__/App-test.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @format 3 | */ 4 | 5 | import 'react-native'; 6 | import React from 'react'; 7 | import App from '../App'; 8 | 9 | // Note: test renderer must be required after react-native. 10 | import renderer from 'react-test-renderer'; 11 | 12 | it('renders correctly', () => { 13 | renderer.create(); 14 | }); 15 | -------------------------------------------------------------------------------- /android/app/src/main/res/raw/node_modules_entities_maps_decode.json: -------------------------------------------------------------------------------- 1 | {"0":65533,"128":8364,"130":8218,"131":402,"132":8222,"133":8230,"134":8224,"135":8225,"136":710,"137":8240,"138":352,"139":8249,"140":338,"142":381,"145":8216,"146":8217,"147":8220,"148":8221,"149":8226,"150":8211,"151":8212,"152":732,"153":8482,"154":353,"155":8250,"156":339,"158":382,"159":376} -------------------------------------------------------------------------------- /android/app/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /metro.config.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Metro configuration for React Native 3 | * https://github.com/facebook/react-native 4 | * 5 | * @format 6 | */ 7 | 8 | module.exports = { 9 | transformer: { 10 | getTransformOptions: async () => ({ 11 | transform: { 12 | experimentalImportSupport: false, 13 | inlineRequires: false, 14 | }, 15 | }), 16 | }, 17 | }; 18 | -------------------------------------------------------------------------------- /android/app/src/main/res/xml/network_security_config.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | samruk-energy.kz 5 | localhost 6 | 10.0.2.2 7 | 8 | -------------------------------------------------------------------------------- /android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /android/app/src/main/res/raw/node_modules_domserializer_node_modules_entities_lib_maps_decode.json: -------------------------------------------------------------------------------- 1 | { "0": 65533, "128": 8364, "130": 8218, "131": 402, "132": 8222, "133": 8230, "134": 8224, "135": 8225, "136": 710, "137": 8240, "138": 352, "139": 8249, "140": 338, "142": 381, "145": 8216, "146": 8217, "147": 8220, "148": 8221, "149": 8226, "150": 8211, "151": 8212, "152": 732, "153": 8482, "154": 353, "155": 8250, "156": 339, "158": 382, "159": 376 } 2 | -------------------------------------------------------------------------------- /shared/components/Hr.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from "react"; 2 | import { View } from "react-native"; 3 | import colors from "../state/colors"; 4 | 5 | export default class Hr extends Component { 6 | componentDidMount() {} 7 | render() { 8 | return ; 9 | } 10 | 11 | styles = { 12 | width: "100%", 13 | borderBottomWidth: 1, 14 | borderBottomColor: colors.gray 15 | }; 16 | } 17 | -------------------------------------------------------------------------------- /utils/i18n.js: -------------------------------------------------------------------------------- 1 | import I18n from "i18n-js"; 2 | import * as RNLocalize from "react-native-localize"; 3 | 4 | import ru from "../locales/ru"; 5 | 6 | // const locales = RNLocalize.getLocales(); 7 | 8 | // if (Array.isArray(locales)) { 9 | // I18n.locale = locales[0].languageTag; 10 | // } 11 | 12 | I18n.defaultLocale = "ru"; 13 | I18n.fallbacks = true; 14 | I18n.locale = "ru"; 15 | I18n.translations = { 16 | ru 17 | }; 18 | 19 | export default I18n; 20 | -------------------------------------------------------------------------------- /ios/SamrukEnergy/AppDelegate.h: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import 9 | #import 10 | 11 | @interface AppDelegate : UIResponder 12 | 13 | @property (nonatomic, strong) UIWindow *window; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /ios/SamrukEnergy/main.m: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import 9 | 10 | #import "AppDelegate.h" 11 | 12 | int main(int argc, char * argv[]) { 13 | @autoreleasepool { 14 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /android/app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /usr/local/Cellar/android-sdk/24.3.3/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | -------------------------------------------------------------------------------- /android/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | SamrukEnergy 4 | Project android created by Buildship. 5 | 6 | 7 | 8 | 9 | org.eclipse.buildship.core.gradleprojectbuilder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.buildship.core.gradleprojectnature 16 | 17 | 18 | -------------------------------------------------------------------------------- /ios/SamrukEnergy/Images.xcassets/logo.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "logo.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "logo@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "logo@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | # EditorConfig helps developers define and maintain consistent 2 | # coding styles between different editors and IDEs 3 | # editorconfig.org 4 | 5 | root = true 6 | 7 | [*] 8 | 9 | # Change these settings to your own preference 10 | indent_style = space 11 | indent_size = 2 12 | 13 | # We recommend you to keep these unchanged 14 | end_of_line = lf 15 | charset = utf-8 16 | trim_trailing_whitespace = true 17 | insert_final_newline = true 18 | 19 | [*.md] 20 | trim_trailing_whitespace = false 21 | 22 | quote_type = double 23 | -------------------------------------------------------------------------------- /shared/components/Loading.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from "react"; 2 | import { View, ActivityIndicator } from "react-native"; 3 | 4 | export default class Loading extends Component { 5 | render() { 6 | return ( 7 | 21 | 22 | 23 | ); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /android/app/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | app 4 | Project app created by Buildship. 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | org.eclipse.buildship.core.gradleprojectbuilder 15 | 16 | 17 | 18 | 19 | 20 | org.eclipse.jdt.core.javanature 21 | org.eclipse.buildship.core.gradleprojectnature 22 | 23 | 24 | -------------------------------------------------------------------------------- /android/app/build_defs.bzl: -------------------------------------------------------------------------------- 1 | """Helper definitions to glob .aar and .jar targets""" 2 | 3 | def create_aar_targets(aarfiles): 4 | for aarfile in aarfiles: 5 | name = "aars__" + aarfile[aarfile.rindex("/") + 1:aarfile.rindex(".aar")] 6 | lib_deps.append(":" + name) 7 | android_prebuilt_aar( 8 | name = name, 9 | aar = aarfile, 10 | ) 11 | 12 | def create_jar_targets(jarfiles): 13 | for jarfile in jarfiles: 14 | name = "jars__" + jarfile[jarfile.rindex("/") + 1:jarfile.rindex(".jar")] 15 | lib_deps.append(":" + name) 16 | prebuilt_jar( 17 | name = name, 18 | binary_jar = jarfile, 19 | ) 20 | -------------------------------------------------------------------------------- /assets/img/exit.svg: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /screens/Menu/ChildMenuItem.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from "react"; 2 | import { Text, TouchableOpacity } from "react-native"; 3 | 4 | export default class ChildMenuItem extends Component { 5 | render() { 6 | return ( 7 | 17 | 22 | {this.props.title} 23 | 24 | 25 | ); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /shared/state/task_statuses.js: -------------------------------------------------------------------------------- 1 | import i18n from "../../utils/i18n"; 2 | 3 | module.exports = { 4 | 1: { 5 | name: i18n.t("task_status.new"), 6 | color: "#139CFF" 7 | }, 8 | 2: { 9 | name: i18n.t("task_status.assigned"), 10 | color: "#dddddd" 11 | }, 12 | 3: { 13 | name: i18n.t("task_status.planned"), 14 | color: "#abccba" 15 | }, 16 | 4: { 17 | name: i18n.t("task_status.waiting"), 18 | color: "#FF9901" 19 | }, 20 | 5: { 21 | name: i18n.t("task_status.solved"), 22 | color: "#52CD26" 23 | }, 24 | 6: { 25 | name: i18n.t("task_status.closed"), 26 | color: "#0065AE" 27 | }, 28 | 7: { 29 | name: i18n.t("task_status.unsolved"), 30 | color: "#dabbad" 31 | } 32 | }; 33 | -------------------------------------------------------------------------------- /ios/SamrukEnergyTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /ios/SamrukEnergy-tvOSTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /screens/Compliance/VideosScreen.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from "react"; 2 | import { View, TouchableOpacity } from "react-native"; 3 | import Icon from "react-native-vector-icons/MaterialIcons"; 4 | import VideoListScreen from "../VideoListScreen"; 5 | import i18n from "../../utils/i18n"; 6 | import urls from "../../shared/state/urls"; 7 | 8 | export default class VideosScreen extends Component { 9 | static navigationOptions = ({ navigation, navigationOptions }) => { 10 | return { 11 | title: i18n.t("menu.videos"), 12 | headerLeft: ( 13 | 17 | 18 | 19 | ) 20 | }; 21 | }; 22 | render() { 23 | return ( 24 | 25 | ); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /android/gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | 3 | # IDE (e.g. Android Studio) users: 4 | # Gradle settings configured through the IDE *will override* 5 | # any settings specified in this file. 6 | 7 | # For more details on how to configure your build environment visit 8 | # http://www.gradle.org/docs/current/userguide/build_environment.html 9 | 10 | # Specifies the JVM arguments used for the daemon process. 11 | # The setting is particularly useful for tweaking memory settings. 12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m 13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 14 | 15 | # When configured, Gradle will run in incubating parallel mode. 16 | # This option should only be used with decoupled projects. More details, visit 17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 18 | # org.gradle.parallel=true 19 | 20 | android.useAndroidX=true 21 | android.enableJetifier=true 22 | -------------------------------------------------------------------------------- /screens/Compliance/EducationalScreen.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from "react"; 2 | import { View, TouchableOpacity } from "react-native"; 3 | import Icon from "react-native-vector-icons/MaterialIcons"; 4 | import i18n from "../../utils/i18n"; 5 | import urls from "../../shared/state/urls"; 6 | import DocumentListScreen from "../DocumentListScreen"; 7 | 8 | export default class EducationalScreen extends Component { 9 | static navigationOptions = ({ navigation, navigationOptions }) => { 10 | return { 11 | title: i18n.t("menu.training_materials"), 12 | headerLeft: ( 13 | 17 | 18 | 19 | ) 20 | }; 21 | }; 22 | constructor(props) { 23 | super(props); 24 | } 25 | render() { 26 | return ; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /android/app/src/main/java/kz/samrukenergy/portal/MainActivity.java: -------------------------------------------------------------------------------- 1 | package kz.samrukenergy.portal; 2 | 3 | import com.facebook.react.ReactActivity; 4 | import com.facebook.react.ReactActivityDelegate; 5 | import com.facebook.react.ReactRootView; 6 | import com.swmansion.gesturehandler.react.RNGestureHandlerEnabledRootView; 7 | 8 | 9 | 10 | public class MainActivity extends ReactActivity { 11 | 12 | /** 13 | * Returns the name of the main component registered from JavaScript. This is used to schedule 14 | * rendering of the component. 15 | */ 16 | @Override 17 | protected String getMainComponentName() { 18 | return "SamrukEnergy"; 19 | } 20 | 21 | @Override 22 | protected ReactActivityDelegate createReactActivityDelegate() { 23 | return new ReactActivityDelegate(this, getMainComponentName()) { 24 | @Override 25 | protected ReactRootView createRootView() { 26 | return new RNGestureHandlerEnabledRootView(MainActivity.this); 27 | } 28 | }; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /shared/components/InputErrorMessage.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from "react"; 2 | import { View, Text, Image } from "react-native"; 3 | import colors from "../state/colors"; 4 | import styles from "../state/styles"; 5 | 6 | export default class InputErrorMessage extends Component { 7 | componentDidMount() {} 8 | render() { 9 | return ( 10 | 16 | 27 | {this.props.errorMessage} 28 | 29 | 33 | 34 | ); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /shared/state/urls.js: -------------------------------------------------------------------------------- 1 | let data = { 2 | organizations: "/api/organizations", 3 | login: "/api/login", 4 | categories: "/api/categories", 5 | subcategories: "/api/categories/{:id}/subcategories", 6 | new_ticket: "/api/ticket", 7 | employees: "/api/users", 8 | my_tasks: "/api/my-tickets", 9 | assigned_tasks: "/api/assigned-tickets", 10 | departments: "/api/departments", 11 | department: "/api/department/", 12 | task_help_video: "/api/help_video", 13 | task: "/api/ticket/", 14 | structure: "/api/orgstuct", 15 | compliance_faq: "/api/komplaens/faq?page=", 16 | projects: "/api/projects", 17 | project: "/api/project/", 18 | news_categories: "/api/news/categories", 19 | category_news: "/api/news/category/", 20 | news: "/api/news/", 21 | take_task: "/api/ticket/accept-ticket/", 22 | task_close: "/api/ticket/close/", 23 | task_comment: "/api/ticket/comment/", 24 | educational_materials: "/api/komplaens/posts", 25 | compliance_videos: "/api/komplaens/videos", 26 | process_owners: "/api/buisnessprocess" 27 | }; 28 | module.exports = data; 29 | -------------------------------------------------------------------------------- /screens/Task/TaskCommentScreen.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from "react"; 2 | import { 3 | Image, 4 | View, 5 | Text, 6 | TextInput, 7 | ScrollView, 8 | TouchableOpacity 9 | } from "react-native"; 10 | import i18n from "../../utils/i18n"; 11 | import ImageUploader from "../../shared/components/ImageUploader"; 12 | import styles from "../../shared/state/styles"; 13 | 14 | export default class TaskCommentScreen extends Component { 15 | constructor(props) {} 16 | render() { 17 | return ( 18 | 19 | 27 | {i18n.t("task.comment")} 28 | 29 | 33 | 34 | 40 | {i18n.t("action")} 41 | 42 | 43 | ); 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | 3 | buildscript { 4 | ext { 5 | buildToolsVersion = "28.0.3" 6 | minSdkVersion = 16 7 | compileSdkVersion = 28 8 | targetSdkVersion = 28 9 | supportLibVersion = "28.0.0" 10 | } 11 | repositories { 12 | google() 13 | jcenter() 14 | maven { 15 | url 'https://maven.fabric.io/public' 16 | } 17 | } 18 | dependencies { 19 | classpath('com.android.tools.build:gradle:3.5.1') 20 | classpath 'com.google.gms:google-services:4.3.2' 21 | classpath 'io.fabric.tools:gradle:1.31.0' 22 | 23 | // NOTE: Do not place your application dependencies here; they belong 24 | // in the individual module build.gradle files 25 | } 26 | } 27 | 28 | allprojects { 29 | repositories { 30 | mavenLocal() 31 | maven { 32 | // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm 33 | url("$rootDir/../node_modules/react-native/android") 34 | } 35 | maven { 36 | // Android JSC is installed from npm 37 | url("$rootDir/../node_modules/jsc-android/dist") 38 | } 39 | 40 | google() 41 | jcenter() 42 | 43 | maven { url 'https://jitpack.io' } 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /screens/About/StructureScreen.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from "react"; 2 | import { Image, View, Text, TouchableOpacity, FlatList } from "react-native"; 3 | import Loading from "../../shared/components/Loading"; 4 | import axios from "../../plugins/axios"; 5 | import urls from "../../shared/state/urls"; 6 | 7 | export default class StructureScreen extends Component { 8 | constructor(props) { 9 | super(props); 10 | this.state = { 11 | nextPage: null, 12 | data: [], 13 | loading: false 14 | }; 15 | 16 | this.fetchData = this.fetchData.bind(this); 17 | } 18 | componentDidMount() { 19 | this.fetchData(); 20 | } 21 | async fetchData() { 22 | this.setState({ loading: true }); 23 | 24 | try { 25 | let instance = await axios.instance(); 26 | 27 | let response = await instance.get(urls.structure); 28 | console.log(response); 29 | 30 | this.setState({ 31 | data: response.orgstruct, 32 | loading: false 33 | }); 34 | } catch (error) { 35 | console.log(error); 36 | this.setState({ 37 | loading: false 38 | }); 39 | } 40 | } 41 | render() { 42 | return ( 43 | 50 | {this.state.loading && } 51 | 52 | ); 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /ios/SamrukEnergy/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "size" : "20x20", 5 | "idiom" : "iphone", 6 | "filename" : "40.png", 7 | "scale" : "2x" 8 | }, 9 | { 10 | "size" : "20x20", 11 | "idiom" : "iphone", 12 | "filename" : "60.png", 13 | "scale" : "3x" 14 | }, 15 | { 16 | "size" : "29x29", 17 | "idiom" : "iphone", 18 | "filename" : "58.png", 19 | "scale" : "2x" 20 | }, 21 | { 22 | "size" : "29x29", 23 | "idiom" : "iphone", 24 | "filename" : "87.png", 25 | "scale" : "3x" 26 | }, 27 | { 28 | "size" : "40x40", 29 | "idiom" : "iphone", 30 | "filename" : "80.png", 31 | "scale" : "2x" 32 | }, 33 | { 34 | "size" : "40x40", 35 | "idiom" : "iphone", 36 | "filename" : "120.png", 37 | "scale" : "3x" 38 | }, 39 | { 40 | "size" : "60x60", 41 | "idiom" : "iphone", 42 | "filename" : "120 copy.png", 43 | "scale" : "2x" 44 | }, 45 | { 46 | "size" : "60x60", 47 | "idiom" : "iphone", 48 | "filename" : "180.png", 49 | "scale" : "3x" 50 | }, 51 | { 52 | "size" : "1024x1024", 53 | "idiom" : "ios-marketing", 54 | "filename" : "1024.png", 55 | "scale" : "1x" 56 | } 57 | ], 58 | "info" : { 59 | "version" : 1, 60 | "author" : "xcode" 61 | } 62 | } -------------------------------------------------------------------------------- /assets/img/success.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /ios/SamrukEnergy/GoogleService-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CLIENT_ID 6 | 279624001966-2v1d1kcmo6058nirsh1dl6nhfks608tl.apps.googleusercontent.com 7 | REVERSED_CLIENT_ID 8 | com.googleusercontent.apps.279624001966-2v1d1kcmo6058nirsh1dl6nhfks608tl 9 | ANDROID_CLIENT_ID 10 | 279624001966-pft645pflfuqr717umnqe62pli3pshoh.apps.googleusercontent.com 11 | API_KEY 12 | AIzaSyAPknmf3Tiano0vnmeSr_9KADpoVFvXRaQ 13 | GCM_SENDER_ID 14 | 279624001966 15 | PLIST_VERSION 16 | 1 17 | BUNDLE_ID 18 | kz.samrukenergy.portal 19 | PROJECT_ID 20 | samruk-energy-app 21 | STORAGE_BUCKET 22 | samruk-energy-app.appspot.com 23 | IS_ADS_ENABLED 24 | 25 | IS_ANALYTICS_ENABLED 26 | 27 | IS_APPINVITE_ENABLED 28 | 29 | IS_GCM_ENABLED 30 | 31 | IS_SIGNIN_ENABLED 32 | 33 | GOOGLE_APP_ID 34 | 1:279624001966:ios:7694b735a89c7e46 35 | DATABASE_URL 36 | https://samruk-energy-app.firebaseio.com 37 | 38 | -------------------------------------------------------------------------------- /assets/img/test_icon.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /android/app/BUCK: -------------------------------------------------------------------------------- 1 | # To learn about Buck see [Docs](https://buckbuild.com/). 2 | # To run your application with Buck: 3 | # - install Buck 4 | # - `npm start` - to start the packager 5 | # - `cd android` 6 | # - `keytool -genkey -v -keystore keystores/debug.keystore -storepass android -alias androiddebugkey -keypass android -dname "CN=Android Debug,O=Android,C=US"` 7 | # - `./gradlew :app:copyDownloadableDepsToLibs` - make all Gradle compile dependencies available to Buck 8 | # - `buck install -r android/app` - compile, install and run application 9 | # 10 | 11 | load(":build_defs.bzl", "create_aar_targets", "create_jar_targets") 12 | 13 | lib_deps = [] 14 | 15 | create_aar_targets(glob(["libs/*.aar"])) 16 | 17 | create_jar_targets(glob(["libs/*.jar"])) 18 | 19 | android_library( 20 | name = "all-libs", 21 | exported_deps = lib_deps, 22 | ) 23 | 24 | android_library( 25 | name = "app-code", 26 | srcs = glob([ 27 | "src/main/java/**/*.java", 28 | ]), 29 | deps = [ 30 | ":all-libs", 31 | ":build_config", 32 | ":res", 33 | ], 34 | ) 35 | 36 | android_build_config( 37 | name = "build_config", 38 | package = "kz.samrukenergy.portal", 39 | ) 40 | 41 | android_resource( 42 | name = "res", 43 | package = "kz.samrukenergy.portal", 44 | res = "src/main/res", 45 | ) 46 | 47 | android_binary( 48 | name = "app", 49 | keystore = "//android/keystores:debug", 50 | manifest = "src/main/AndroidManifest.xml", 51 | package_type = "debug", 52 | deps = [ 53 | ":app-code", 54 | ], 55 | ) 56 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "SamrukEnergy", 3 | "version": "0.0.1", 4 | "private": true, 5 | "scripts": { 6 | "android": "react-native run-android", 7 | "ios": "react-native run-ios", 8 | "start": "react-native start", 9 | "test": "jest", 10 | "lint": "eslint ." 11 | }, 12 | "dependencies": { 13 | "@react-native-community/async-storage": "^1.6.2", 14 | "axios": "^0.19.0", 15 | "axios-logger": "^2.2.1", 16 | "i18n-js": "^3.3.0", 17 | "react": "16.11.0", 18 | "react-native": "0.61.2", 19 | "react-native-gesture-handler": "^1.4.1", 20 | "react-native-htmlview": "^0.15.0", 21 | "react-native-image-header-scroll-view": "^0.10.3", 22 | "react-native-keyboard-spacer": "^0.4.1", 23 | "react-native-localize": "^1.3.1", 24 | "react-native-modalbox": "^2.0.0", 25 | "react-native-ratings": "^6.5.0", 26 | "react-native-reanimated": "^1.3.0", 27 | "react-native-root-toast": "^3.2.0", 28 | "react-native-screens": "^2.0.0-alpha.6", 29 | "react-native-tab-view": "^2.10.0", 30 | "react-native-vector-icons": "^6.6.0", 31 | "react-native-webview": "^7.4.3", 32 | "react-navigation": "^4.0.10", 33 | "react-navigation-drawer": "^2.3.1", 34 | "react-navigation-stack": "^1.10.3" 35 | }, 36 | "devDependencies": { 37 | "@babel/core": "^7.6.4", 38 | "@babel/runtime": "^7.6.3", 39 | "@react-native-community/eslint-config": "^0.0.5", 40 | "babel-jest": "^24.9.0", 41 | "eslint": "^6.6.0", 42 | "jest": "^24.9.0", 43 | "metro-react-native-babel-preset": "^0.56.3", 44 | "react-test-renderer": "16.11.0" 45 | }, 46 | "jest": { 47 | "preset": "react-native" 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /plugins/axios.js: -------------------------------------------------------------------------------- 1 | import axios from "axios"; 2 | import * as AxiosLogger from "axios-logger"; 3 | import AsyncStorage from "@react-native-community/async-storage"; 4 | 5 | let base = "http://testportal.samruk-energy.kz"; 6 | if (__DEV__) base = "http://testportal.samruk-energy.kz"; 7 | 8 | export default { 9 | instance: async function() { 10 | const headers = {}; 11 | const token = await AsyncStorage.getItem("token"); 12 | if (token) { 13 | headers["api-token"] = token; 14 | } 15 | let inst = axios.create({ 16 | baseURL: base, 17 | headers: headers 18 | }); 19 | inst.interceptors.request.use( 20 | AxiosLogger.requestLogger, 21 | AxiosLogger.errorLogger 22 | ); 23 | inst.interceptors.response.use( 24 | async function(response) { 25 | console.log( 26 | "======================================================================================================" 27 | ); 28 | console.log(response); 29 | console.log( 30 | "======================================================================================================" 31 | ); 32 | if (response.data.status) { 33 | if (response.data.content && response.data.content.api_token) { 34 | await AsyncStorage.setItem( 35 | "token", 36 | response.data.content.api_token 37 | ); 38 | } 39 | return response.data.content; 40 | } else { 41 | return Promise.reject(response); 42 | } 43 | }, 44 | async function(error) { 45 | return Promise.reject({ ...error }); 46 | } 47 | ); 48 | 49 | return inst; 50 | } 51 | }; 52 | -------------------------------------------------------------------------------- /ios/SamrukEnergy/AppDelegate.m: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import "AppDelegate.h" 9 | 10 | #import 11 | #import 12 | #import 13 | #import 14 | #import 15 | 16 | @implementation AppDelegate 17 | 18 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 19 | { 20 | RCTBridge *bridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:launchOptions]; 21 | RCTRootView *rootView = [[RCTRootView alloc] initWithBridge:bridge 22 | moduleName:@"SamrukEnergy" 23 | initialProperties:nil]; 24 | 25 | [Fabric with:@[[Crashlytics class]]]; 26 | 27 | rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f green:1.0f blue:1.0f alpha:1]; 28 | 29 | self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; 30 | UIViewController *rootViewController = [UIViewController new]; 31 | rootViewController.view = rootView; 32 | self.window.rootViewController = rootViewController; 33 | [self.window makeKeyAndVisible]; 34 | return YES; 35 | } 36 | 37 | - (NSURL *)sourceURLForBridge:(RCTBridge *)bridge 38 | { 39 | #if DEBUG 40 | return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil]; 41 | #else 42 | return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"]; 43 | #endif 44 | } 45 | 46 | @end 47 | -------------------------------------------------------------------------------- /ios/SamrukEnergy-tvOS/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | NSAppTransportSecurity 26 | 27 | NSExceptionDomains 28 | 29 | localhost 30 | 31 | NSExceptionAllowsInsecureHTTPLoads 32 | 33 | 34 | 35 | 36 | NSLocationWhenInUseUsageDescription 37 | 38 | UILaunchStoryboardName 39 | LaunchScreen 40 | UIRequiredDeviceCapabilities 41 | 42 | armv7 43 | 44 | UISupportedInterfaceOrientations 45 | 46 | UIInterfaceOrientationPortrait 47 | UIInterfaceOrientationLandscapeLeft 48 | UIInterfaceOrientationLandscapeRight 49 | 50 | UIViewControllerBasedStatusBarAppearance 51 | 52 | 53 | 54 | -------------------------------------------------------------------------------- /shared/components/StatedInput.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from "react"; 2 | import { View, TextInput, Text, Image } from "react-native"; 3 | import InputErrorMessage from "./InputErrorMessage"; 4 | import colors from "../state/colors"; 5 | import styles from "../state/styles"; 6 | 7 | export default class StatedInput extends Component { 8 | componentDidMount() {} 9 | render() { 10 | return ( 11 | 12 | { 17 | return this.props.error === true 18 | ? { borderBottomColor: colors.red } 19 | : null; 20 | })(), 21 | (() => { 22 | return this.props.multiline === true 23 | ? { textAlignVertical: "top" } 24 | : null; 25 | })() 26 | ]} 27 | autoCompleteType={this.props.autoCompleteType} 28 | autoCorrect={false} 29 | ref={this.props.refProp} 30 | returnKeyType={this.props.returnKeyType} 31 | onChangeText={this.props.onChangeText} 32 | onSubmitEditing={this.props.onSubmitEditing} 33 | blurOnSubmit={false} 34 | multiline={this.props.multiline} 35 | placeholder={this.props.placeholder} 36 | editable={this.props.editable} 37 | value={this.props.value} 38 | numberOfLines={this.props.numberOfLines} 39 | /> 40 | {(() => { 41 | return this.props.error === true ? ( 42 | 43 | ) : null; 44 | })()} 45 | 46 | ); 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /android/app/src/main/res/raw/node_modules_entities_maps_legacy.json: -------------------------------------------------------------------------------- 1 | {"Aacute":"\u00C1","aacute":"\u00E1","Acirc":"\u00C2","acirc":"\u00E2","acute":"\u00B4","AElig":"\u00C6","aelig":"\u00E6","Agrave":"\u00C0","agrave":"\u00E0","amp":"&","AMP":"&","Aring":"\u00C5","aring":"\u00E5","Atilde":"\u00C3","atilde":"\u00E3","Auml":"\u00C4","auml":"\u00E4","brvbar":"\u00A6","Ccedil":"\u00C7","ccedil":"\u00E7","cedil":"\u00B8","cent":"\u00A2","copy":"\u00A9","COPY":"\u00A9","curren":"\u00A4","deg":"\u00B0","divide":"\u00F7","Eacute":"\u00C9","eacute":"\u00E9","Ecirc":"\u00CA","ecirc":"\u00EA","Egrave":"\u00C8","egrave":"\u00E8","ETH":"\u00D0","eth":"\u00F0","Euml":"\u00CB","euml":"\u00EB","frac12":"\u00BD","frac14":"\u00BC","frac34":"\u00BE","gt":">","GT":">","Iacute":"\u00CD","iacute":"\u00ED","Icirc":"\u00CE","icirc":"\u00EE","iexcl":"\u00A1","Igrave":"\u00CC","igrave":"\u00EC","iquest":"\u00BF","Iuml":"\u00CF","iuml":"\u00EF","laquo":"\u00AB","lt":"<","LT":"<","macr":"\u00AF","micro":"\u00B5","middot":"\u00B7","nbsp":"\u00A0","not":"\u00AC","Ntilde":"\u00D1","ntilde":"\u00F1","Oacute":"\u00D3","oacute":"\u00F3","Ocirc":"\u00D4","ocirc":"\u00F4","Ograve":"\u00D2","ograve":"\u00F2","ordf":"\u00AA","ordm":"\u00BA","Oslash":"\u00D8","oslash":"\u00F8","Otilde":"\u00D5","otilde":"\u00F5","Ouml":"\u00D6","ouml":"\u00F6","para":"\u00B6","plusmn":"\u00B1","pound":"\u00A3","quot":"\"","QUOT":"\"","raquo":"\u00BB","reg":"\u00AE","REG":"\u00AE","sect":"\u00A7","shy":"\u00AD","sup1":"\u00B9","sup2":"\u00B2","sup3":"\u00B3","szlig":"\u00DF","THORN":"\u00DE","thorn":"\u00FE","times":"\u00D7","Uacute":"\u00DA","uacute":"\u00FA","Ucirc":"\u00DB","ucirc":"\u00FB","Ugrave":"\u00D9","ugrave":"\u00F9","uml":"\u00A8","Uuml":"\u00DC","uuml":"\u00FC","Yacute":"\u00DD","yacute":"\u00FD","yen":"\u00A5","yuml":"\u00FF"} -------------------------------------------------------------------------------- /screens/CorporateGovernance/CorporateGovernanceScreen.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from "react"; 2 | import { TouchableOpacity } from "react-native"; 3 | import Icon from "react-native-vector-icons/MaterialIcons"; 4 | import DocumentListScreen from "../DocumentListScreen"; 5 | import i18n from "../../utils/i18n"; 6 | 7 | export default class CorporateGovernanceScreen extends Component { 8 | static navigationOptions = ({ navigation, navigationOptions }) => { 9 | return { 10 | title: i18n.t("corporate_governance"), 11 | headerLeft: ( 12 | 16 | 17 | 18 | ) 19 | }; 20 | }; 21 | constructor(props) { 22 | super(props); 23 | this.state = { 24 | data: [ 25 | { 26 | name: "Инструкций по подаче заявки в техническую поддержку", 27 | url: "https://www.dopdf.com/download/pdf/dopdf-eula.pdf", 28 | date_mod: "16-10-2018 14:47" 29 | }, 30 | { 31 | name: 32 | "Годовой отчет как инструмент коммуникации с заинтересованными сторонами", 33 | url: "https://www.dopdf.com/download/pdf/dopdf-eula.pdf", 34 | date_mod: "16-10-2018 14:47" 35 | }, 36 | { 37 | name: 38 | "Презентация/обучающий семинар на тему: «Внедрение системы устойчивого развития в Группе Компаний АО «Самрук-Энерго»", 39 | url: "https://www.dopdf.com/download/pdf/dopdf-eula.pdf", 40 | date_mod: "16-10-2018 14:47" 41 | } 42 | ] 43 | }; 44 | } 45 | render() { 46 | return ; 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /screens/Splash/SplashScreen.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from "react"; 2 | import { View, Image, ActivityIndicator, StatusBar } from "react-native"; 3 | import AsyncStorage from "@react-native-community/async-storage"; 4 | // import GlobalState from "../../shared/state/GlobalState"; 5 | 6 | export default class SplashScreen extends Component { 7 | constructor() { 8 | super(); 9 | this._bootstrapAsync = this._bootstrapAsync.bind(this); 10 | setTimeout(this._bootstrapAsync, 1000); 11 | } 12 | _bootstrapAsync = async () => { 13 | // await AsyncStorage.removeItem("me"); 14 | // await AsyncStorage.removeItem("token"); 15 | let user = await AsyncStorage.getItem("me"); 16 | user = JSON.parse(user); 17 | if (user && !user.glpi_id) { 18 | console.log("---------------------------SPLASH--- REMOVING USER DATA"); 19 | await AsyncStorage.removeItem("token"); 20 | await AsyncStorage.removeItem("me"); 21 | } 22 | // console.log(userToken); 23 | // GlobalState.token = userToken; 24 | // This will switch to the App screen or Auth screen and this loading 25 | // screen will be unmounted and thrown away. 26 | 27 | this.props.navigation.navigate(user && user.glpi_id ? "Main" : "Auth"); 28 | }; 29 | render() { 30 | return ( 31 | 39 | 47 | 48 | 49 | 50 | ); 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /screens/Compliance/FaqScreen.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from "react"; 2 | import { View, TouchableOpacity, Text, ScrollView } from "react-native"; 3 | import Icon from "react-native-vector-icons/MaterialIcons"; 4 | import i18n from "../../utils/i18n"; 5 | 6 | export default class FaqScreen extends Component { 7 | // static navigationOptions = ({ navigation, navigationOptions }) => { 8 | // return { 9 | // title: i18n.t("menu.faq"), 10 | // headerLeft: ( 11 | // 15 | // 16 | // 17 | // ) 18 | // }; 19 | // }; 20 | static navigationOptions = ({ navigation, navigationOptions }) => { 21 | return { 22 | headerStyle: { 23 | backgroundColor: "#FFFFFF" 24 | }, 25 | headerTintColor: "#000000" 26 | }; 27 | }; 28 | constructor(props) { 29 | super(props); 30 | this.state = { 31 | title: this.props.navigation.getParam("title"), 32 | text: this.props.navigation.getParam("text") 33 | }; 34 | } 35 | render() { 36 | return ( 37 | 45 | 52 | {this.state.title} 53 | 54 | 61 | {this.state.text} 62 | 63 | 64 | ); 65 | } 66 | } 67 | -------------------------------------------------------------------------------- /shared/state/styles.js: -------------------------------------------------------------------------------- 1 | import { StyleSheet } from "react-native"; 2 | import colors from "./colors"; 3 | 4 | module.exports = StyleSheet.create({ 5 | whiteBotton: { 6 | width: "100%", 7 | paddingTop: 13, 8 | fontWeight: "300", 9 | lineHeight: 24, 10 | fontSize: 16, 11 | paddingBottom: 13, 12 | backgroundColor: "#ffffff" 13 | }, 14 | icon: { 15 | height: 16, 16 | width: 16, 17 | position: "absolute", 18 | right: 0, 19 | top: "50%", 20 | marginTop: -8 21 | }, 22 | screenTitles: { 23 | fontSize: 18, 24 | fontWeight: "500" 25 | }, 26 | alert: { 27 | justifyContent: "center", 28 | alignItems: "center", 29 | width: 280, 30 | paddingTop: 21, 31 | paddingLeft: 24, 32 | height: "auto", 33 | paddingRight: 21, 34 | paddingBottom: 52, 35 | position: "relative" 36 | }, 37 | alertActions: { 38 | position: "absolute", 39 | bottom: 8, 40 | display: "flex", 41 | flexDirection: "row", 42 | justifyContent: "flex-end", 43 | right: 8 44 | }, 45 | alertTitle: { 46 | width: "100%", 47 | alignSelf: "flex-start", 48 | fontWeight: "500", 49 | fontSize: 20, 50 | marginBottom: 12, 51 | color: "#000000", 52 | opacity: 0.87 53 | }, 54 | alertDescription: { 55 | fontSize: 16, 56 | color: "#000000", 57 | opacity: 0.54 58 | }, 59 | alertButton: { 60 | lineHeight: 36, 61 | textTransform: "uppercase", 62 | paddingLeft: 11, 63 | paddingRight: 11, 64 | fontSize: 14, 65 | fontWeight: "500" 66 | }, 67 | input: { 68 | width: "100%", 69 | fontSize: 16, 70 | fontWeight: "400", 71 | paddingTop: 13, 72 | paddingBottom: 11, 73 | borderBottomColor: colors.gray, 74 | borderBottomWidth: 1 75 | }, 76 | toolbar: { 77 | backgroundColor: colors.blue, 78 | color: "#ffffff" 79 | } 80 | }); 81 | 82 | const text_sizes = { 83 | sm: 14, 84 | normal: 16 85 | }; 86 | 87 | const spaces = {}; 88 | -------------------------------------------------------------------------------- /android/app/src/main/res/raw/node_modules_domserializer_node_modules_entities_lib_maps_legacy.json: -------------------------------------------------------------------------------- 1 | { "Aacute": "\u00C1", "aacute": "\u00E1", "Acirc": "\u00C2", "acirc": "\u00E2", "acute": "\u00B4", "AElig": "\u00C6", "aelig": "\u00E6", "Agrave": "\u00C0", "agrave": "\u00E0", "amp": "&", "AMP": "&", "Aring": "\u00C5", "aring": "\u00E5", "Atilde": "\u00C3", "atilde": "\u00E3", "Auml": "\u00C4", "auml": "\u00E4", "brvbar": "\u00A6", "Ccedil": "\u00C7", "ccedil": "\u00E7", "cedil": "\u00B8", "cent": "\u00A2", "copy": "\u00A9", "COPY": "\u00A9", "curren": "\u00A4", "deg": "\u00B0", "divide": "\u00F7", "Eacute": "\u00C9", "eacute": "\u00E9", "Ecirc": "\u00CA", "ecirc": "\u00EA", "Egrave": "\u00C8", "egrave": "\u00E8", "ETH": "\u00D0", "eth": "\u00F0", "Euml": "\u00CB", "euml": "\u00EB", "frac12": "\u00BD", "frac14": "\u00BC", "frac34": "\u00BE", "gt": ">", "GT": ">", "Iacute": "\u00CD", "iacute": "\u00ED", "Icirc": "\u00CE", "icirc": "\u00EE", "iexcl": "\u00A1", "Igrave": "\u00CC", "igrave": "\u00EC", "iquest": "\u00BF", "Iuml": "\u00CF", "iuml": "\u00EF", "laquo": "\u00AB", "lt": "<", "LT": "<", "macr": "\u00AF", "micro": "\u00B5", "middot": "\u00B7", "nbsp": "\u00A0", "not": "\u00AC", "Ntilde": "\u00D1", "ntilde": "\u00F1", "Oacute": "\u00D3", "oacute": "\u00F3", "Ocirc": "\u00D4", "ocirc": "\u00F4", "Ograve": "\u00D2", "ograve": "\u00F2", "ordf": "\u00AA", "ordm": "\u00BA", "Oslash": "\u00D8", "oslash": "\u00F8", "Otilde": "\u00D5", "otilde": "\u00F5", "Ouml": "\u00D6", "ouml": "\u00F6", "para": "\u00B6", "plusmn": "\u00B1", "pound": "\u00A3", "quot": "\"", "QUOT": "\"", "raquo": "\u00BB", "reg": "\u00AE", "REG": "\u00AE", "sect": "\u00A7", "shy": "\u00AD", "sup1": "\u00B9", "sup2": "\u00B2", "sup3": "\u00B3", "szlig": "\u00DF", "THORN": "\u00DE", "thorn": "\u00FE", "times": "\u00D7", "Uacute": "\u00DA", "uacute": "\u00FA", "Ucirc": "\u00DB", "ucirc": "\u00FB", "Ugrave": "\u00D9", "ugrave": "\u00F9", "uml": "\u00A8", "Uuml": "\u00DC", "uuml": "\u00FC", "Yacute": "\u00DD", "yacute": "\u00FD", "yen": "\u00A5", "yuml": "\u00FF" } 2 | -------------------------------------------------------------------------------- /assets/img/logo-icon.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /screens/Menu/MenuItem.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from "react"; 2 | import { Image, TouchableOpacity, Text, StyleSheet } from "react-native"; 3 | import Icon from "react-native-vector-icons/MaterialIcons"; 4 | 5 | export default class MenuItem extends Component { 6 | constructor(props) { 7 | super(props); 8 | } 9 | 10 | render() { 11 | return ( 12 | 13 | 14 | {this.props.title} 15 | {this.props.hasChildren && ( 16 | 26 | )} 27 | 28 | ); 29 | } 30 | 31 | styles = StyleSheet.create({ 32 | leftIcon: { 33 | width: 20, 34 | marginRight: 11, 35 | flexBasis: 20, 36 | flexShrink: 0, 37 | flexGrow: 0 38 | // flex: "0 0 auto" 39 | }, 40 | rightIcon: { 41 | marginLeft: 23, 42 | marginRight: 23, 43 | flexBasis: 20, 44 | flexShrink: 0, 45 | // position: "absolute", 46 | // right: 23, 47 | flexGrow: 0 48 | // flex: "0 0 auto" 49 | }, 50 | text: { 51 | fontSize: 14, 52 | color: "#232323", 53 | flexGrow: 1 54 | // flex: "1 0 auto" 55 | }, 56 | button: { 57 | paddingRight: 0, 58 | paddingLeft: 20, 59 | width: "100%", 60 | display: "flex", 61 | alignItems: "center", 62 | position: "relative", 63 | flexDirection: "row", 64 | justifyContent: "space-between", 65 | height: 48, 66 | backgroundColor: "#ffffff", 67 | borderBottomWidth: 1, 68 | borderBottomColor: "#c4c4c4" 69 | } 70 | }); 71 | } 72 | -------------------------------------------------------------------------------- /screens/Success/SuccessScreen.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from "react"; 2 | import { Image, View, Text } from "react-native"; 3 | import { StackActions } from "react-navigation"; 4 | import i18n from "../../utils/i18n"; 5 | import Button from "../../shared/components/Button"; 6 | import styles from "../../shared/state/styles"; 7 | 8 | export default class SuccessScreen extends Component { 9 | static navigationOptions = { 10 | title: i18n.t("ticket_sent"), 11 | headerTitleStyle: { 12 | textAlign: "center", 13 | width: "100%", 14 | paddingRight: 86 15 | } 16 | }; 17 | constructor(props) { 18 | super(props); 19 | this.state = { 20 | message: this.props.navigation.getParam("message") 21 | }; 22 | this.closeMe = this.closeMe.bind(this); 23 | } 24 | render() { 25 | return ( 26 | 34 | 41 | 50 | 59 | {this.state.message} 60 | 61 | 62 |