@plusscommunities/pluss-maintenance-app 1.0.9 → 1.0.13
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,18 +1,19 @@
|
|
1
1
|
{
|
2
2
|
"name": "@plusscommunities/pluss-maintenance-app",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.13",
|
4
4
|
"description": "Extension package to enable maintenance on Pluss Communities Platform",
|
5
5
|
"main": "src/index.js",
|
6
6
|
"scripts": {
|
7
7
|
"core": "npm i @plusscommunities/pluss-core-app@latest",
|
8
|
-
"
|
9
|
-
"
|
10
|
-
"
|
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"
|
11
12
|
},
|
12
13
|
"author": "Phillip Suh",
|
13
14
|
"license": "ISC",
|
14
15
|
"dependencies": {
|
15
|
-
"@plusscommunities/pluss-core-app": "
|
16
|
+
"@plusscommunities/pluss-core-app": "1.3.0",
|
16
17
|
"axios": "^0.16.2",
|
17
18
|
"lodash": "^4.17.4",
|
18
19
|
"moment": "^2.18.1",
|
package/src/feature.config.js
CHANGED
@@ -7,6 +7,10 @@ export const Services = {
|
|
7
7
|
navigation: null,
|
8
8
|
};
|
9
9
|
|
10
|
+
export const BaseComponents = {
|
11
|
+
NotificationBell: null,
|
12
|
+
};
|
13
|
+
|
10
14
|
const FeatureConfig = {
|
11
15
|
key: 'maintenance',
|
12
16
|
aliases: ['maintenanceRequest'],
|
@@ -35,12 +39,13 @@ const FeatureConfig = {
|
|
35
39
|
],
|
36
40
|
},
|
37
41
|
},
|
38
|
-
|
42
|
+
kioskAction: {
|
39
43
|
order: 1,
|
40
44
|
icon: 'wrench',
|
41
45
|
title: 'Request',
|
42
46
|
navigate: 'serviceRequest',
|
43
47
|
},
|
48
|
+
hideTabBar: [],
|
44
49
|
env: {
|
45
50
|
baseStage: '',
|
46
51
|
baseAPIUrl: '',
|
@@ -55,10 +60,12 @@ const FeatureConfig = {
|
|
55
60
|
preferredSite: '',
|
56
61
|
strings: {},
|
57
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;
|
68
|
+
BaseComponents.NotificationBell = notificationBell;
|
62
69
|
PlussCore.Config.init(environment, navigation);
|
63
70
|
|
64
71
|
// Override strings
|
@@ -70,7 +77,7 @@ const FeatureConfig = {
|
|
70
77
|
if (MAINTENANCE_REQUEST) {
|
71
78
|
FeatureConfig.title = MAINTENANCE_REQUEST;
|
72
79
|
FeatureConfig.moreMenu.title = MAINTENANCE_REQUEST;
|
73
|
-
FeatureConfig.
|
80
|
+
FeatureConfig.kioskAction.title = MAINTENANCE_REQUEST;
|
74
81
|
}
|
75
82
|
}
|
76
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
|
/>
|