@plusscommunities/pluss-maintenance-web-forms 1.1.27 → 1.1.28-auth.0
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/dist/index.cjs.js +4569 -6015
- package/dist/index.esm.js +4492 -5926
- package/dist/index.umd.js +4574 -6010
- package/package.json +7 -3
- package/src/apis/maintenanceActions.js +13 -0
- package/src/feature.config.js +17 -1
- package/src/screens/AddJob.js +1126 -963
- package/src/screens/Job.js +1521 -1087
- package/src/values.config.a.js +7 -0
- package/src/values.config.default.js +7 -0
- package/src/values.config.enquiry.js +1 -0
- package/src/values.config.feedback.js +1 -0
- package/src/values.config.food.js +1 -0
- package/src/values.config.forms.js +7 -0
- package/src/values.config.js +7 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plusscommunities/pluss-maintenance-web-forms",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.28-auth.0",
|
|
4
4
|
"description": "Extension package to enable maintenance on Pluss Communities Platform",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"scripts": {
|
|
@@ -9,12 +9,16 @@
|
|
|
9
9
|
"patch": "npm version patch",
|
|
10
10
|
"betaupload": "npm run build && npm publish --access public --tag beta && rm -rf node_modules",
|
|
11
11
|
"betaupload:p": "npm run betapatch && npm run betaupload",
|
|
12
|
+
"authpatch": "npm version prepatch --preid=auth",
|
|
13
|
+
"authupload": "npm run build && npm publish --access public --tag auth && rm -rf node_modules",
|
|
14
|
+
"authupload:p": "npm run authpatch && npm run authupload",
|
|
12
15
|
"upload": "npm run build && npm publish --access public && rm -rf node_modules",
|
|
13
16
|
"upload:p": "npm run patch && npm run upload",
|
|
14
17
|
"copy:add": "run(){ ext=${1:-default}; test -f src/values.config.$ext.js || cp src/values.config.default.js src/values.config.$ext.js; }; run",
|
|
15
18
|
"copy:get": "echo $npm_package_name",
|
|
16
19
|
"copy:set": "run(){ target='\\@plusscommunities\\/pluss-maintenance-web'; ext=${1:-default}; [ $ext == 'default' ] && replace=$target || replace=$target'-'$ext; echo 'Setting target to '$replace; test -f src/values.config.$ext.js && cp -f src/values.config.$ext.js src/values.config.js; sed -i '' -e 's/'$target'.*\"/'$replace'\"/g' package.json; }; run",
|
|
17
20
|
"copy:betaupload": "npm run betapatch; for file in `ls ./src/values.config.*.js`; do dup=`echo $file | sed 's/.*values\\.config\\.\\(.*\\)\\.js/\\1/'`; npm run copy:set $dup; npm run betaupload; done; npm run copy:set;",
|
|
21
|
+
"copy:authupload": "npm run authpatch; for file in `ls ./src/values.config.*.js`; do dup=`echo $file | sed 's/.*values\\.config\\.\\(.*\\)\\.js/\\1/'`; npm run copy:set $dup; npm run authupload; done; npm run copy:set;",
|
|
18
22
|
"copy:upload": "npm run patch; for file in `ls ./src/values.config.*.js`; do dup=`echo $file | sed 's/.*values\\.config\\.\\(.*\\)\\.js/\\1/'`; npm run copy:set $dup; npm run upload; done; npm run copy:set;"
|
|
19
23
|
},
|
|
20
24
|
"author": "Phillip Suh",
|
|
@@ -37,7 +41,7 @@
|
|
|
37
41
|
"@babel/runtime": "^7.14.0"
|
|
38
42
|
},
|
|
39
43
|
"peerDependencies": {
|
|
40
|
-
"@plusscommunities/pluss-core-web": "
|
|
44
|
+
"@plusscommunities/pluss-core-web": "1.6.10-auth.0",
|
|
41
45
|
"@fortawesome/fontawesome-svg-core": "^6.4.0",
|
|
42
46
|
"@fortawesome/free-solid-svg-icons": "^6.4.0",
|
|
43
47
|
"@fortawesome/react-fontawesome": "^0.2.0",
|
|
@@ -48,7 +52,7 @@
|
|
|
48
52
|
"react-bootstrap": "^0.31.2",
|
|
49
53
|
"react-dom": "^16.14.0",
|
|
50
54
|
"react-fontawesome": "^1.6.1",
|
|
51
|
-
"react-redux": "^
|
|
55
|
+
"react-redux": "^7.2.9",
|
|
52
56
|
"react-router-dom": "^4.2.2",
|
|
53
57
|
"react-textarea-autosize": "^7.1.0-1"
|
|
54
58
|
},
|
|
@@ -187,4 +187,17 @@ export const maintenanceActions = {
|
|
|
187
187
|
},
|
|
188
188
|
});
|
|
189
189
|
},
|
|
190
|
+
getExternalSync: (jobId) => {
|
|
191
|
+
return Session.authedFunction({
|
|
192
|
+
method: 'GET',
|
|
193
|
+
url: Helper.getUrl(values.serviceKey, 'get/externalsync', { id: jobId }),
|
|
194
|
+
});
|
|
195
|
+
},
|
|
196
|
+
retrySync: (jobId) => {
|
|
197
|
+
return Session.authedFunction({
|
|
198
|
+
method: 'POST',
|
|
199
|
+
url: Helper.getUrl(values.serviceKey, 'update/retrysync'),
|
|
200
|
+
data: { id: jobId },
|
|
201
|
+
});
|
|
202
|
+
},
|
|
190
203
|
};
|
package/src/feature.config.js
CHANGED
|
@@ -10,7 +10,22 @@ const FeatureConfig = {
|
|
|
10
10
|
singularName: values.textSingularName,
|
|
11
11
|
description: 'Submit maintenance requests and track the progress.',
|
|
12
12
|
emptyText: values.textYourRequestHere,
|
|
13
|
-
widgetOptions: [
|
|
13
|
+
widgetOptions: [
|
|
14
|
+
{
|
|
15
|
+
key: values.featureKey,
|
|
16
|
+
widget: true,
|
|
17
|
+
main: true,
|
|
18
|
+
hideOnTabNumbers: [],
|
|
19
|
+
optionKey: values.optionOnlyForResidents,
|
|
20
|
+
type: 'toggle',
|
|
21
|
+
inverseOption: false,
|
|
22
|
+
title: 'Limit Admins to Only Submit on Behalf of Primary Users',
|
|
23
|
+
description:
|
|
24
|
+
'This will limit admins to only make a submission on behalf of a primary users in the site. Otherwise they can also submit on behalf of other admins/staff users.',
|
|
25
|
+
defaultNew: false,
|
|
26
|
+
default: false,
|
|
27
|
+
},
|
|
28
|
+
],
|
|
14
29
|
menu: {
|
|
15
30
|
order: values.menuOrder,
|
|
16
31
|
text: values.textMenuTitle,
|
|
@@ -108,5 +123,6 @@ const FeatureConfig = {
|
|
|
108
123
|
FeatureConfig.env = environment;
|
|
109
124
|
PlussCore.Config.init(environment);
|
|
110
125
|
},
|
|
126
|
+
notificationPreference: values.notificationPreference,
|
|
111
127
|
};
|
|
112
128
|
export default FeatureConfig;
|