Skip to content

Commit 676602c

Browse files
committed
first commit
0 parents  commit 676602c

File tree

233 files changed

+30665
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

233 files changed

+30665
-0
lines changed

.gitignore

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
# OSX
2+
#
3+
.DS_Store
4+
5+
# Xcode
6+
#
7+
build/
8+
*.pbxuser
9+
!default.pbxuser
10+
*.mode1v3
11+
!default.mode1v3
12+
*.mode2v3
13+
!default.mode2v3
14+
*.perspectivev3
15+
!default.perspectivev3
16+
xcuserdata
17+
*.xccheckout
18+
*.moved-aside
19+
DerivedData
20+
*.hmap
21+
*.ipa
22+
*.xcuserstate
23+
project.xcworkspace
24+
25+
# Android/IntelliJ
26+
#
27+
build/
28+
.idea
29+
.gradle
30+
local.properties
31+
*.iml
32+
33+
# node.js
34+
#
35+
node_modules/
36+
package-lock.json # include if you are using npm - don't use both yarn and npm
37+
npm-debug.log
38+
yarn-error.log
39+
yarn.lock # include if you are using yarn - don't use both npm and yarn
40+
41+
# BUCK
42+
buck-out/
43+
\.buckd/
44+
*.keystore
45+
46+
# Fastlane
47+
#
48+
# It is recommended to not store the screenshots in the git repo. Instead, use Fastlane to re-generate the
49+
# screenshots whenever they are needed.
50+
# For more information about the recommended setup visit:
51+
# https://docs.fastlane.tools/best-practices/source-control/
52+
53+
*/fastlane/report.xml
54+
*/fastlane/Preview.html
55+
*/fastlane/screenshots
56+
57+
# Bundle artifact
58+
*.jsbundle

.project

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>movie-reservation-mobile</name>
4+
<comment></comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
</buildSpec>
9+
<natures>
10+
</natures>
11+
</projectDescription>

API_Context.js

Lines changed: 120 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,120 @@
1+
// The file contents for the current environment will overwrite these during build.
2+
// The build system defaults to the dev environment which uses `environment.ts`, but if you do
3+
// `ng build --env=prod` then `environment.prod.ts` will be used instead.
4+
// The list of which env maps to which file can be found in `.angular-cli.json`.
5+
6+
export const environment = {
7+
production: true,
8+
9+
/*Get All Services*/
10+
getAllZonePath: "/admin-service/api/rest/v1/manage/get-all-zones",
11+
getAllLocalityPath: "/admin-service/api/rest/v1/manage/get-all-localities",
12+
getAllVenueCategoryPath: "/admin-service/api/rest/v1/manage-venues/get-all-venue-categories",
13+
getAllMoviePath: "/admin-service/api/rest/v1/manage-movies/get-all-movies",
14+
getAllGenrePath: "/admin-service/api/rest/v1/manage-movies/get-all-genres",
15+
viewCompanyPath: "/admin-service/api/rest/v1/manage-companies/get-all-companies",
16+
getAllActiveCompanyPath: "/admin-service/api/rest/v1/manage-companies/get-all-active-companies",
17+
viewAllVenuePath: "/admin-service/api/rest/v1/manage-venues/get-all-venues",
18+
getAllVenueByCompanyPath: "/admin-service/api/rest/v1/manage-venues/get-venues-of-company",
19+
viewAllScreenPath: "/admin-service/api/rest/v1/manage-screens/get-screens-of-venue",
20+
getAllClassesByScreen: "/admin-service/api/rest/v1/manage-seat-layout/get-all-classs-of-screen",
21+
getAllChargePath: "/fare-service/api/rest/v1/charge/get/all",
22+
getAllTaxPath: "/fare-service/api/rest/v1/tax/get/all",
23+
getAllFarePath: "/fare-service/api/rest/v1/fare/get/all",
24+
getFarePath: "/fare-service/api/rest/v1/fare/get",
25+
getAllExperience: "/admin-service/api/rest/v1/manage-screens/all/experience",
26+
27+
//Publish Module
28+
deletePublishShowsPath: "/publish-service/api/rest/v1/reservation-publish/delete-published-shows",
29+
fetchLastPublishScreenDate: "/publish-service/api/rest/v1/reservation-publish/fetch-last-published-date-for-screen",
30+
newzonePath: "/publish-service/api/rest/v1/reservation-publish/setup-new-zone",
31+
savePublishData: "/publish-service/api/rest/v1/reservation-publish/publish-shows",
32+
editPublishData: "/publish-service/api/rest/v1/reservation-publish/modify-published-shows",
33+
getPublishedShows: "/publish-service/api/rest/v1/reservation-publish/get-published-shows",
34+
approvePublishedShows: "/publish-service/api/rest/v1/reservation-publish/approve-shows",
35+
/*CRUD Services*/
36+
// Screen Module
37+
addScreenPath: "/admin-service/api/rest/v1/manage-screens/add-screen",
38+
addClassPath: "/admin-service/api/rest/v1/manage-seat-layout/add-class",
39+
addClassesAndSeatsPath: "/admin-service/api/rest/v1/manage-seat-layout/add-classes-seat-layout",
40+
addScreenLayoutToClassPath: "/admin-service/api/rest/v1/manage-seat-layout/add-seat-layout-to-class",
41+
deleteScreenPath: "/admin-service/api/rest/v1/manage-screens/delete-screen",
42+
43+
updateScreenPath: "/admin-service/api/rest/v1/manage-screens/update-screen",
44+
updateClassPath: "/admin-service/api/rest/v1/manage-seat-layout/update-class",
45+
updateScreenLayoutToClassPath: "/admin-service/api/rest/v1/manage-seat-layout/update-seat-layout-of-class",
46+
47+
viewAllClassesForScreenPath: "/admin-service/api/rest/v1/manage-seat-layout/get-all-classs-of-screen",
48+
viewAllSeatLayoutForClassPath: "/admin-service/api/rest/v1/manage-seat-layout/get-seat-layout-of-class",
49+
deleteScreenLayoutToClassPath: "/admin-service/api/rest/v1/manage-seat-layout/delete-seat-layout-of-class",
50+
51+
/*CRUD Services*/
52+
//Zone
53+
addZonePath: "/admin-service/api/rest/v1/manage/add-zone",
54+
updateZonePath: "/admin-service/api/rest/v1/manage/update-zone",
55+
deleteZonePath: "/admin-service/api/rest/v1/manage/delete-zone",
56+
57+
//Locality
58+
addLocalityPath: "/admin-service/api/rest/v1/manage/add-locality",
59+
updateLocalityPath: "/admin-service/api/rest/v1/manage/update-locality",
60+
deleteLocalityPath: "/admin-service/api/rest/v1/manage/delete-locality",
61+
62+
//Venue Category
63+
addVenueCategoryPath: "/admin-service/api/rest/v1/manage-venues/add-venue-category",
64+
updateVenueCategoryPath: "/admin-service/api/rest/v1/manage-venues/update-venue-category",
65+
deleteVenueCategoryPath: "/admin-service/api/rest/v1/manage-venues/delete-venue-category",
66+
67+
//Movie
68+
addMoviePath: "/admin-service/api/rest/v1/manage-movies/add-movie",
69+
updateMoviePath: "/admin-service/api/rest/v1/manage-movies/update-movie",
70+
deleteMoviePath: "/admin-service/api/rest/v1/manage-movies/delete-movie",
71+
72+
//Genre
73+
addGenrePath: "/admin-service/api/rest/v1/manage-movies/add-genre",
74+
updateGenrePath: "/admin-service/api/rest/v1/manage-movies/update-genre",
75+
deleteGenrePath: "/admin-service/api/rest/v1/manage-movies/delete-genre",
76+
77+
// Module-operation
78+
viewAllModuleOperationsPath: "/rbac-service/api/rest/v1/module/fetch-all-module-operations",
79+
deleteModuleOperationsPath: "/rbac-service/api/rest/v1/module-operation/delete",
80+
updateModuleAndOperationPath: "/rbac-service/api/rest/v1/module-operation/modify",
81+
addModuleAndOperationPath: "/rbac-service/api/rest/v1/module/create-module-operation",
82+
83+
fetchAllModulesPath: "/rbac-service/api/rest/v1/role/get/user/operation/access",
84+
// User Management
85+
authenticate: "/user-service/api/rest/v1/user/authenticate",
86+
getAllRolePath: "/rbac-service/api/rest/v1/role/get-all",
87+
addUserPath: "/user-service/api/rest/v1/user/profile/create",
88+
updateUserProfilePath: "/user-service/api/rest/v1/user/profile/update",
89+
retrieveUserProfilePath: "/user-service/api/rest/v1/user/profile/retrieve",
90+
updatePassword: "/user-service/api/rest/v1/user/password/update",
91+
92+
//Company
93+
addCompanyPath: "/admin-service/api/rest/v1/manage-companies/add-company",
94+
updateCompanyPath: "/admin-service/api/rest/v1/manage-companies/update-company",
95+
deleteCompanyPath: "/admin-service/api/rest/v1/manage-companies/delete-company",
96+
getParticularCompany: "/admin-service/api/rest/v1/manage-companies/get-company-details",
97+
//Venue
98+
addVenuePath: "/admin-service/api/rest/v1/manage-venues/add-venue",
99+
updateVenuePath: "/admin-service/api/rest/v1/manage-venues/update-venue",
100+
deleteVenuePath: "/admin-service/api/rest/v1/manage-venues/delete-venue",
101+
getParticularVenuePath: "/admin-service/api/rest/v1/manage-venues/get-venue-details",
102+
//Charge
103+
addChargePath: "/admin-service/api/rest/v1/charge/create",
104+
updateChargePath: "/admin-service/api/rest/v1/charge/update",
105+
deleteChargePath: "/admin-service/api/rest/v1/charge/delete",
106+
107+
//Fare
108+
addFarePath: "/fare-service/api/rest/v1/fare/create",
109+
updateFarePath: "/fare-service/api/rest/v1/fare/update",
110+
deleteFarePath: "/fare-service/api/rest/v1/fare/delete",
111+
112+
//Tax
113+
addTaxPath: "/fare-service/api/rest/v1/tax/create",
114+
updateTaxPath: "/fare-service/api/rest/v1/tax/update",
115+
deleteTaxPath: "/fare-service/api/rest/v1/tax/delete",
116+
117+
getAllCountries: "/location-service/api/rest/v1/location/country/all",
118+
getAllStates: "/location-service/api/rest/v1/location/region/all",
119+
120+
};

App.js

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
/**
2+
* Sample React Native App
3+
* https://github.com/facebook/react-native
4+
*
5+
* @format
6+
* @flow
7+
*/
8+
9+
import React, {Component} from 'react';
10+
import {Platform, StyleSheet, Text, View} from 'react-native';
11+
import configureStore from "./config-store";
12+
import { Provider } from "react-redux";
13+
import AppContainer from './modules/AppContainer'
14+
15+
export default class App extends Component {
16+
17+
render() {
18+
19+
const store = configureStore(window.__INITIAL_STATE__);
20+
21+
return (
22+
<Provider store={store}>
23+
<AppContainer />
24+
</Provider>
25+
);
26+
}
27+
28+
}

Const.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export let isDisplayed = 'true'

Header.js

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
/**
2+
* Sample React Native App
3+
* https://github.com/facebook/react-native
4+
*
5+
* @format
6+
* @flow
7+
*/
8+
9+
import React, {Component} from 'react';
10+
import { Text, View} from 'react-native';
11+
12+
export default class Header extends Component {
13+
14+
constructor(props){
15+
super(props)
16+
17+
}
18+
19+
render() {
20+
21+
const val = this.props.val
22+
23+
return(
24+
<View style={{ flex: 0.15, flexDirection: 'row' }} >
25+
26+
<View style={{ flex: 0.1, backgroundColor: 'pink' }} >
27+
{val == 0 ? <View style={{ width: 10, height: 10, backgroundColor: 'red' }} /> : <View style={{ width: 10, height: 10, backgroundColor: 'yellow' }} /> }
28+
</View>
29+
30+
<View style={{ flex: 0.8 }} >
31+
</View>
32+
33+
<View style={{ flex: 0.1, backgroundColor: 'pink' }} >
34+
</View>
35+
36+
</View>
37+
)
38+
}
39+
}
40+

README.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# README #
2+
3+
This README would normally document whatever steps are necessary to get your application up and running.
4+
5+
### What is this repository for? ###
6+
7+
* Quick summary
8+
* Version
9+
* [Learn Markdown](https://bitbucket.org/tutorials/markdowndemo)
10+
11+
### How do I get set up? ###
12+
13+
* Summary of set up
14+
* Configuration
15+
* Dependencies
16+
* Database configuration
17+
* How to run tests
18+
* Deployment instructions
19+
20+
### Contribution guidelines ###
21+
22+
* Writing tests
23+
* Code review
24+
* Other guidelines
25+
26+
### Who do I talk to? ###
27+
28+
* Repo owner or admin
29+
* Other community or team contact
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import { MOVIE_DATE_REQUEST, MOVIE_DATE_RESPONSE } from "./constants";
2+
3+
export function getMovieDates(data) {
4+
return {
5+
type: MOVIE_DATE_REQUEST,
6+
data
7+
}
8+
}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export const MOVIE_DATE_REQUEST = "MOVIE_DATE_REQUEST";
2+
export const MOVIE_DATE_RESPONSE = "MOVIE_DATE_RESPONSE";
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import { MOVIE_DATE_REQUEST } from "./constants";
2+
3+
const defaultState = {
4+
isLoading: false,
5+
status: '',
6+
isSuccess: null
7+
}
8+
9+
export default (prevState = defaultState, action) => {
10+
switch (action.type) {
11+
12+
case MOVIE_DATE_REQUEST:
13+
return {
14+
...prevState,
15+
isLoading: true
16+
};
17+
18+
default:
19+
return {
20+
...prevState
21+
};
22+
}
23+
}

0 commit comments

Comments
 (0)