@plusscommunities/pluss-maintenance-app 1.0.8 → 1.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
@@ -1,16 +1,19 @@
|
|
1
1
|
{
|
2
2
|
"name": "@plusscommunities/pluss-maintenance-app",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.12",
|
4
4
|
"description": "Extension package to enable maintenance on Pluss Communities Platform",
|
5
5
|
"main": "src/index.js",
|
6
6
|
"scripts": {
|
7
|
-
"
|
8
|
-
"
|
7
|
+
"core": "npm i @plusscommunities/pluss-core-app@latest",
|
8
|
+
"patch": "npm version patch",
|
9
|
+
"upload": "npm publish --access public && rm -rf node_modules",
|
10
|
+
"upload:p": "npm run patch && npm run upload",
|
11
|
+
"upload:cp": "npm run core && npm run patch && npm run upload"
|
9
12
|
},
|
10
13
|
"author": "Phillip Suh",
|
11
14
|
"license": "ISC",
|
12
15
|
"dependencies": {
|
13
|
-
"@plusscommunities/pluss-core-app": "1.
|
16
|
+
"@plusscommunities/pluss-core-app": "^1.1.5",
|
14
17
|
"axios": "^0.16.2",
|
15
18
|
"lodash": "^4.17.4",
|
16
19
|
"moment": "^2.18.1",
|
@@ -20,5 +23,8 @@
|
|
20
23
|
"react-native-iphone-x-helper": "^1.3.1",
|
21
24
|
"react-native-webview": "11.2.3",
|
22
25
|
"react-redux": "^5.0.5"
|
26
|
+
},
|
27
|
+
"peerDependencies": {
|
28
|
+
"redux-persist": "^4.8.3"
|
23
29
|
}
|
24
30
|
}
|
@@ -125,9 +125,9 @@ class MaintenanceList extends Component {
|
|
125
125
|
);
|
126
126
|
}
|
127
127
|
|
128
|
-
renderAddButton() {
|
129
|
-
|
130
|
-
}
|
128
|
+
// renderAddButton() {
|
129
|
+
// return this.props.enableAdd ? <Components.AddContentButton /> : null;
|
130
|
+
// }
|
131
131
|
|
132
132
|
renderStatusPopup() {
|
133
133
|
if (!this.state.showStatusPopup) return null;
|
package/src/feature.config.js
CHANGED
@@ -1,25 +1,28 @@
|
|
1
|
-
// import * as PlussCore from '
|
1
|
+
// import * as PlussCore from '../../pluss-core/src';
|
2
2
|
import * as PlussCore from '@plusscommunities/pluss-core-app';
|
3
3
|
|
4
4
|
export { PlussCore };
|
5
5
|
|
6
6
|
export const Services = {
|
7
7
|
navigation: null,
|
8
|
-
|
8
|
+
};
|
9
|
+
|
10
|
+
export const BaseComponents = {
|
11
|
+
NotificationBell: null,
|
9
12
|
};
|
10
13
|
|
11
14
|
const FeatureConfig = {
|
12
15
|
key: 'maintenance',
|
13
16
|
aliases: ['maintenanceRequest'],
|
14
17
|
title: 'Request',
|
15
|
-
defaultNavigate: 'maintenance',
|
16
18
|
gridMenu: {
|
17
19
|
icon: 'maintenance',
|
18
20
|
viewBox: '0 0 30 30',
|
21
|
+
navigate: 'maintenance',
|
19
22
|
},
|
20
23
|
addMenu: {
|
21
24
|
order: 5,
|
22
|
-
|
25
|
+
icon: 'request',
|
23
26
|
title: 'Request',
|
24
27
|
navigate: 'serviceRequest',
|
25
28
|
visibleExps: { type: 'feature', value: 'maintenance' },
|
@@ -36,12 +39,13 @@ const FeatureConfig = {
|
|
36
39
|
],
|
37
40
|
},
|
38
41
|
},
|
39
|
-
|
42
|
+
kioskAction: {
|
40
43
|
order: 1,
|
41
44
|
icon: 'wrench',
|
42
45
|
title: 'Request',
|
43
46
|
navigate: 'serviceRequest',
|
44
47
|
},
|
48
|
+
hideTabBar: [],
|
45
49
|
env: {
|
46
50
|
baseStage: '',
|
47
51
|
baseAPIUrl: '',
|
@@ -55,12 +59,14 @@ const FeatureConfig = {
|
|
55
59
|
awsStorageBucket: '',
|
56
60
|
preferredSite: '',
|
57
61
|
strings: {},
|
62
|
+
newEventDefaults: '',
|
63
|
+
defaultAllowComments: true,
|
58
64
|
},
|
59
|
-
init: (environment, navigation,
|
65
|
+
init: (environment, navigation, notificationBell) => {
|
60
66
|
FeatureConfig.env = environment;
|
61
67
|
Services.navigation = navigation;
|
62
|
-
|
63
|
-
PlussCore.Config.init(environment);
|
68
|
+
BaseComponents.NotificationBell = notificationBell;
|
69
|
+
PlussCore.Config.init(environment, navigation);
|
64
70
|
|
65
71
|
// Override strings
|
66
72
|
if (environment && environment.strings) {
|
@@ -71,7 +77,7 @@ const FeatureConfig = {
|
|
71
77
|
if (MAINTENANCE_REQUEST) {
|
72
78
|
FeatureConfig.title = MAINTENANCE_REQUEST;
|
73
79
|
FeatureConfig.moreMenu.title = MAINTENANCE_REQUEST;
|
74
|
-
FeatureConfig.
|
80
|
+
FeatureConfig.kioskAction.title = MAINTENANCE_REQUEST;
|
75
81
|
}
|
76
82
|
}
|
77
83
|
},
|
@@ -3,7 +3,7 @@ import { View, StyleSheet } from 'react-native';
|
|
3
3
|
import { connect } from 'react-redux';
|
4
4
|
import _ from 'lodash';
|
5
5
|
import MaintenanceList from '../components/MaintenanceList';
|
6
|
-
import { PlussCore, Services } from '../feature.config';
|
6
|
+
import { PlussCore, Services, BaseComponents } from '../feature.config';
|
7
7
|
|
8
8
|
const { Components, Helper, Styles, Config } = PlussCore;
|
9
9
|
|
@@ -37,7 +37,7 @@ class MaintenancePage extends Component {
|
|
37
37
|
rightContent={
|
38
38
|
_.includes(this.props.user.hidden, 'notifications') ? null : (
|
39
39
|
<View style={styles.notificationContainer}>
|
40
|
-
<
|
40
|
+
<BaseComponents.NotificationBell
|
41
41
|
colourBrandingHeader={this.props.colourBrandingHeader}
|
42
42
|
containerStyle={Styles.notificationBell}
|
43
43
|
/>
|
@@ -65,7 +65,7 @@ class MaintenancePage extends Component {
|
|
65
65
|
enableAdd={!isHomeTab}
|
66
66
|
options={this.props.options}
|
67
67
|
/>
|
68
|
-
{isHomeTab && <Components.AddContentButton />}
|
68
|
+
{/* {isHomeTab && <Components.AddContentButton />} */}
|
69
69
|
</View>
|
70
70
|
);
|
71
71
|
}
|
@@ -431,6 +431,7 @@ class RequestDetail extends Component {
|
|
431
431
|
scrollView={this.scrollView}
|
432
432
|
entityType="maintenancerequest"
|
433
433
|
entityId={this.props.job.id}
|
434
|
+
entityName={this.props.job.title}
|
434
435
|
site={this.state.job.site || this.state.job.location}
|
435
436
|
// noScroll={true}
|
436
437
|
// style={{ position: 'absolute', bottom: 0, left: 0, right: 0 }}
|