@plusscommunities/pluss-newsletter-web-sharing 1.2.10 → 1.2.14
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 +13 -8
- package/dist/index.esm.js +13 -8
- package/dist/index.umd.js +13 -8
- package/package.json +1 -1
- package/src/components/PreviewGrid.js +12 -4
- package/src/feature.config.coaching.js +235 -0
- package/src/feature.config.curatedposts.js +236 -0
- package/src/feature.config.noticeboard.js +236 -0
- package/src/feature.config.sales.js +237 -0
- package/src/feature.config.training.js +235 -0
- package/src/feature.config.test.js +0 -235
package/dist/index.cjs.js
CHANGED
|
@@ -7509,14 +7509,19 @@ var PreviewGrid = /*#__PURE__*/function (_Component) {
|
|
|
7509
7509
|
key: "render",
|
|
7510
7510
|
value: function render() {
|
|
7511
7511
|
var colour = this.props.colour;
|
|
7512
|
-
|
|
7513
|
-
|
|
7514
|
-
|
|
7515
|
-
|
|
7516
|
-
|
|
7517
|
-
|
|
7518
|
-
|
|
7519
|
-
|
|
7512
|
+
|
|
7513
|
+
if (Array.isArray(SVG_PATH)) {
|
|
7514
|
+
return /*#__PURE__*/React__default['default'].createElement("svg", {
|
|
7515
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7516
|
+
viewBox: SVG_VIEWBOX
|
|
7517
|
+
}, SVG_PATH.map(function (p) {
|
|
7518
|
+
return /*#__PURE__*/React__default['default'].createElement("path", {
|
|
7519
|
+
key: p.substring(0, 20),
|
|
7520
|
+
d: p,
|
|
7521
|
+
fill: colour
|
|
7522
|
+
});
|
|
7523
|
+
}));
|
|
7524
|
+
}
|
|
7520
7525
|
}
|
|
7521
7526
|
}]);
|
|
7522
7527
|
|
package/dist/index.esm.js
CHANGED
|
@@ -7465,14 +7465,19 @@ var PreviewGrid = /*#__PURE__*/function (_Component) {
|
|
|
7465
7465
|
key: "render",
|
|
7466
7466
|
value: function render() {
|
|
7467
7467
|
var colour = this.props.colour;
|
|
7468
|
-
|
|
7469
|
-
|
|
7470
|
-
|
|
7471
|
-
|
|
7472
|
-
|
|
7473
|
-
|
|
7474
|
-
|
|
7475
|
-
|
|
7468
|
+
|
|
7469
|
+
if (Array.isArray(SVG_PATH)) {
|
|
7470
|
+
return /*#__PURE__*/React.createElement("svg", {
|
|
7471
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7472
|
+
viewBox: SVG_VIEWBOX
|
|
7473
|
+
}, SVG_PATH.map(function (p) {
|
|
7474
|
+
return /*#__PURE__*/React.createElement("path", {
|
|
7475
|
+
key: p.substring(0, 20),
|
|
7476
|
+
d: p,
|
|
7477
|
+
fill: colour
|
|
7478
|
+
});
|
|
7479
|
+
}));
|
|
7480
|
+
}
|
|
7476
7481
|
}
|
|
7477
7482
|
}]);
|
|
7478
7483
|
|
package/dist/index.umd.js
CHANGED
|
@@ -7488,14 +7488,19 @@
|
|
|
7488
7488
|
key: "render",
|
|
7489
7489
|
value: function render() {
|
|
7490
7490
|
var colour = this.props.colour;
|
|
7491
|
-
|
|
7492
|
-
|
|
7493
|
-
|
|
7494
|
-
|
|
7495
|
-
|
|
7496
|
-
|
|
7497
|
-
|
|
7498
|
-
|
|
7491
|
+
|
|
7492
|
+
if (Array.isArray(SVG_PATH)) {
|
|
7493
|
+
return /*#__PURE__*/React__default['default'].createElement("svg", {
|
|
7494
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7495
|
+
viewBox: SVG_VIEWBOX
|
|
7496
|
+
}, SVG_PATH.map(function (p) {
|
|
7497
|
+
return /*#__PURE__*/React__default['default'].createElement("path", {
|
|
7498
|
+
key: p.substring(0, 20),
|
|
7499
|
+
d: p,
|
|
7500
|
+
fill: colour
|
|
7501
|
+
});
|
|
7502
|
+
}));
|
|
7503
|
+
}
|
|
7499
7504
|
}
|
|
7500
7505
|
}]);
|
|
7501
7506
|
|
package/package.json
CHANGED
|
@@ -8,11 +8,19 @@ class PreviewGrid extends Component {
|
|
|
8
8
|
render() {
|
|
9
9
|
const { colour } = this.props;
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
if (Array.isArray(SVG_PATH)) {
|
|
12
|
+
return (
|
|
13
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox={SVG_VIEWBOX}>
|
|
14
|
+
{SVG_PATH.map((p) => {
|
|
15
|
+
return <path key={p.substring(0, 20)} d={p} fill={colour} />;
|
|
16
|
+
})}
|
|
17
|
+
</svg>
|
|
18
|
+
);
|
|
19
|
+
} else {
|
|
12
20
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox={SVG_VIEWBOX}>
|
|
13
|
-
<path key={SVG_PATH.substring(0, 20)} d={SVG_PATH} fill={colour}
|
|
14
|
-
</svg
|
|
15
|
-
|
|
21
|
+
<path key={SVG_PATH.substring(0, 20)} d={SVG_PATH} fill={colour} />
|
|
22
|
+
</svg>;
|
|
23
|
+
}
|
|
16
24
|
}
|
|
17
25
|
}
|
|
18
26
|
|
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
// import * as PlussCore from '../../pluss-core/src';
|
|
2
|
+
import * as PlussCore from '@plusscommunities/pluss-core-web';
|
|
3
|
+
|
|
4
|
+
const values = {
|
|
5
|
+
featureKey: 'coaching',
|
|
6
|
+
serviceKey: 'newsletterCoaching',
|
|
7
|
+
reducerKey: 'newsCoaching',
|
|
8
|
+
analyticsKey: 'newsCoaching',
|
|
9
|
+
actionNewsLoaded: 'NEWS_LOADEDCoaching',
|
|
10
|
+
actionNewsUpdated: 'NEWS_UPDATEDCoaching',
|
|
11
|
+
actionNewsRemoved: 'NEWS_REMOVEDCoaching',
|
|
12
|
+
actionNewsSubmissionsLoaded: 'NEWS_SUBMISSIONS_LOADEDCoaching',
|
|
13
|
+
actionNewsSubmissionRemoved: 'NEWS_SUBMISSION_REMOVEDCoaching',
|
|
14
|
+
actionNewsPurge: 'NEWS_PURGECoaching',
|
|
15
|
+
actionNewsDashboardLoading: 'NEWS_DASHBOARD_LOADINGCoaching',
|
|
16
|
+
actionNewsSubmissionsDashboardLoading: 'NEWS_SUBMISSIONS_DASHBOARD_LOADINGCoaching',
|
|
17
|
+
permissionNewsletter: 'newsletterCoaching',
|
|
18
|
+
permissionNewsletterSubmit: 'newsletterSubmitCoaching',
|
|
19
|
+
activityAddNewsSubmission: 'AddNewsSubmissionCoaching',
|
|
20
|
+
activityApproveNewsSubmission: 'ApproveNewsSubmissionCoaching',
|
|
21
|
+
activityRejectNewsSubmission: 'RejectNewsSubmissionCoaching',
|
|
22
|
+
activityAddNews: 'AddNewsCoaching',
|
|
23
|
+
activityEditNews: 'EditNewsCoaching',
|
|
24
|
+
acitivtyDeleteNews: 'DeleteNewsCoaching',
|
|
25
|
+
routeNewsHub: '/newsCoaching',
|
|
26
|
+
routeAddNewsletterEntry: '/newsCoaching/article',
|
|
27
|
+
routePublishAvailableNews: '/newsCoaching/content/',
|
|
28
|
+
routeNewsletterSubmission: '/newsCoaching/newslettersubmission/',
|
|
29
|
+
routeNewsletterAnalytics: '/newsCoaching/analytics/',
|
|
30
|
+
routeGenerateNewsletter: '/newsletterCoaching/generate',
|
|
31
|
+
routeNewsletterTemplate: '/embed/newsletterCoaching',
|
|
32
|
+
screenNewsHub: 'NewsHubCoaching',
|
|
33
|
+
screenAddNewsletterEntry: 'AddNewsletterEntryCoaching',
|
|
34
|
+
screenPublishAvailableNews: 'PublishAvailableNewsCoaching',
|
|
35
|
+
screenNewsletterSubmission: 'NewsletterSubmissionCoaching',
|
|
36
|
+
screenNewsletterAnalytics: 'NewsletterAnalyticsCoaching',
|
|
37
|
+
screenGenerateNewsletter: 'GenerateNewsletterCoaching',
|
|
38
|
+
screenNewsletterTemplate: 'NewsletterTemplateCoaching',
|
|
39
|
+
svgPathGridIcon:
|
|
40
|
+
'M12 3.75C9.1084 3.75 6.75 6.1084 6.75 9C6.75 10.8076 7.67285 12.4131 9.07031 13.3594C6.39551 14.5078 4.5 17.1621 4.5 20.25H6C6 18.082 7.14551 16.1953 8.85938 15.1406C9.36328 16.377 10.5908 17.25 12 17.25C13.4092 17.25 14.6367 16.377 15.1406 15.1406C16.8545 16.1953 18 18.082 18 20.25H19.5C19.5 17.1621 17.6045 14.5078 14.9297 13.3594C16.3271 12.4131 17.25 10.8076 17.25 9C17.25 6.1084 14.8916 3.75 12 3.75ZM12 5.25C14.0801 5.25 15.75 6.91992 15.75 9C15.75 11.0801 14.0801 12.75 12 12.75C9.91992 12.75 8.25 11.0801 8.25 9C8.25 6.91992 9.91992 5.25 12 5.25ZM12 14.25C12.6152 14.25 13.2012 14.3379 13.7578 14.5078C13.4971 15.2314 12.8174 15.75 12 15.75C11.1826 15.75 10.5029 15.2314 10.2422 14.5078C10.7988 14.3379 11.3848 14.25 12 14.25Z',
|
|
41
|
+
svgPathGridIconViewBox: '0 0 24 24',
|
|
42
|
+
optionForceNewsAuthorName: 'forceNewsAuthorNameCoaching',
|
|
43
|
+
optionNewsComments: 'newsCommentsCoaching',
|
|
44
|
+
optionNewsNotifications: 'newsNotificationsCoaching',
|
|
45
|
+
optionUseLargeNews: 'useLargeNewsCoaching',
|
|
46
|
+
localStorageNewsletterBrandData: `newsletterBrandDataCoaching`,
|
|
47
|
+
localStorageNewsletterMakerLastUpdate: `newsletterMakerLastUpdateCoaching`,
|
|
48
|
+
localStorageNewsletterMakerData: `newsletterMakerDataCoaching`,
|
|
49
|
+
stringPostfixSubmissionEmail: 'newssubmissionemailCoaching',
|
|
50
|
+
menuOrder: 3.6,
|
|
51
|
+
textTipKeepYourTVNewsFeedActiveAndCurrent:
|
|
52
|
+
'Tip: Keep your TV Coaching feed active and current, but don’t flood\nit with so much content that important posts get lost.',
|
|
53
|
+
textFeaturedNews: 'Featured Coaching',
|
|
54
|
+
textIsThisAFeaturedNewsArticle: 'Is this a featured coaching?',
|
|
55
|
+
textFeaturedNewsArticlesWillBeHighlighted: 'Featured coachings will be highlighted on the Home page.',
|
|
56
|
+
textThisPostHasPreviouslyBeenPublished: `This coaching has previously been published to this village. Are you sure you want to continue?`,
|
|
57
|
+
textNewsletterTitlePostfix: 'Coaching',
|
|
58
|
+
textCreateNewsletter: 'Create Coaching',
|
|
59
|
+
textNoSelectedNews: 'No selected coachings yet',
|
|
60
|
+
textNewsletterTitle: 'Coaching Title',
|
|
61
|
+
textSelectNews: 'Select Coaching',
|
|
62
|
+
textSelectedNews: 'Selected Coaching',
|
|
63
|
+
textAddEditNewsPostfix: 'coaching',
|
|
64
|
+
textNoteThisWillNotChangeInTheApp: (changeText) => `Note: This will not ${changeText} the coaching in the app`,
|
|
65
|
+
textAreYouSureYouWantToDelete: `Are you sure you want to delete that coaching?`,
|
|
66
|
+
textThereAreNoNews: 'There are no coachings',
|
|
67
|
+
textTitleNews: 'Coachings',
|
|
68
|
+
textSubmitYourNewNewsPostHere: 'Submit your new coaching here. You will be notified once your post has been approved.',
|
|
69
|
+
textPrintNewsletter: 'Print Coachings',
|
|
70
|
+
textBackToNews: 'Back to Coachings',
|
|
71
|
+
textNewsAnalytics: 'COACHINGS ANALYTICS',
|
|
72
|
+
textNewsSubmission: 'COACHING SUBMISSION',
|
|
73
|
+
textNewsPost: 'COACHING',
|
|
74
|
+
textNewsPostTitle: 'News coaching title',
|
|
75
|
+
textWhenANewsletterSubmissionIsAdded: 'When a coaching submission is added, the entered address will recieve an email notification.',
|
|
76
|
+
textIsThisAFeaturedNewsPost: 'Is this a featured coaching?',
|
|
77
|
+
textFeaturedNewsPostWillBeHighlighted: 'Featured coachings will be highlighted on the Home page.',
|
|
78
|
+
textSubmittedANewsletterPostForReview: 'submitted a coaching for review:',
|
|
79
|
+
textApprovedANewsSubmission: 'approved a coaching submission:',
|
|
80
|
+
textRejectedANewsSubmission: 'rejected a coaching submission:',
|
|
81
|
+
textAddedANewsletterPost: 'added a coaching:',
|
|
82
|
+
textEditedANewsletterPost: 'edited a coaching:',
|
|
83
|
+
textDeletedANewsletterPost: 'deleted a coaching:',
|
|
84
|
+
textSingularName: 'Coaching',
|
|
85
|
+
textThereIsNoNews: 'There is no Coaching',
|
|
86
|
+
textTheAuthorOfANewsPostWillAlwaysDisplay: 'The author of a coaching will always display.',
|
|
87
|
+
textAllowNewsComments: 'Allow Coaching Comments',
|
|
88
|
+
textUsersCanPostCommentsOnNews: 'Users can post comments on Coachings within the app.',
|
|
89
|
+
textAllowNewsNotification: 'Allow Coaching Notifications',
|
|
90
|
+
textWhenSettingUpANewsPost: 'When setting up a coaching, the creator may choose to send a push notification to users of the app.',
|
|
91
|
+
textCondensedNewsStyle: 'Condensed Coachings Style',
|
|
92
|
+
textTheNewsSectionUsesCondensedNewsItems:
|
|
93
|
+
'The Coachings section uses condensed Coaching items - smaller images, less information and less scrolling.',
|
|
94
|
+
textMenuTitle: 'Coaching',
|
|
95
|
+
textPermissionNewsletterManagement: 'Coaching Management',
|
|
96
|
+
textPermissionNewsletterSubmission: 'Coaching Submission (Approval Required)',
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
export { PlussCore, values };
|
|
100
|
+
|
|
101
|
+
const FeatureConfig = {
|
|
102
|
+
key: values.featureKey,
|
|
103
|
+
singularName: values.textSingularName,
|
|
104
|
+
description: 'Publish rich information, articles, and media to keep the village up-to-date at all times.',
|
|
105
|
+
emptyText: values.textThereIsNoNews,
|
|
106
|
+
widgetOptions: [
|
|
107
|
+
{
|
|
108
|
+
key: values.featureKey,
|
|
109
|
+
widget: true,
|
|
110
|
+
main: true,
|
|
111
|
+
hideOnTabNumbers: [],
|
|
112
|
+
optionKey: values.optionForceNewsAuthorName,
|
|
113
|
+
type: 'toggle',
|
|
114
|
+
inverseOption: false,
|
|
115
|
+
title: "Always Show Author's Name",
|
|
116
|
+
description: values.textTheAuthorOfANewsPostWillAlwaysDisplay,
|
|
117
|
+
defaultNew: false,
|
|
118
|
+
default: false,
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
key: values.featureKey,
|
|
122
|
+
widget: true,
|
|
123
|
+
main: true,
|
|
124
|
+
hideOnTabNumbers: [],
|
|
125
|
+
optionKey: values.optionNewsComments,
|
|
126
|
+
type: 'show',
|
|
127
|
+
inverseOption: true,
|
|
128
|
+
title: values.textAllowNewsComments,
|
|
129
|
+
description: values.textUsersCanPostCommentsOnNews,
|
|
130
|
+
defaultNew: false,
|
|
131
|
+
default: false,
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
key: values.featureKey,
|
|
135
|
+
widget: true,
|
|
136
|
+
main: true,
|
|
137
|
+
hideOnTabNumbers: [],
|
|
138
|
+
optionKey: values.optionNewsNotifications,
|
|
139
|
+
type: 'show',
|
|
140
|
+
inverseOption: true,
|
|
141
|
+
title: values.textAllowNewsNotification,
|
|
142
|
+
description: values.textWhenSettingUpANewsPost,
|
|
143
|
+
defaultNew: false,
|
|
144
|
+
default: false,
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
key: values.featureKey,
|
|
148
|
+
widget: false,
|
|
149
|
+
main: true,
|
|
150
|
+
hideOnTabNumbers: [],
|
|
151
|
+
optionKey: values.optionUseLargeNews,
|
|
152
|
+
type: 'toggle',
|
|
153
|
+
inverseOption: true,
|
|
154
|
+
title: values.textCondensedNewsStyle,
|
|
155
|
+
description: values.textTheNewsSectionUsesCondensedNewsItems,
|
|
156
|
+
defaultNew: true,
|
|
157
|
+
default: true,
|
|
158
|
+
},
|
|
159
|
+
],
|
|
160
|
+
menu: {
|
|
161
|
+
order: values.menuOrder,
|
|
162
|
+
text: values.textMenuTitle,
|
|
163
|
+
icon: 'news',
|
|
164
|
+
isFontAwesome: false,
|
|
165
|
+
url: values.routeNewsHub,
|
|
166
|
+
countProps: [values.reducerKey, 'submissions', 'length'],
|
|
167
|
+
visibleExps: {
|
|
168
|
+
type: 'and',
|
|
169
|
+
exps: [
|
|
170
|
+
{ type: 'feature', value: values.featureKey },
|
|
171
|
+
{
|
|
172
|
+
type: 'or',
|
|
173
|
+
exps: [
|
|
174
|
+
{ type: 'permission', value: values.permissionNewsletter },
|
|
175
|
+
{ type: 'permission', value: values.permissionNewsletterSubmit },
|
|
176
|
+
],
|
|
177
|
+
},
|
|
178
|
+
],
|
|
179
|
+
},
|
|
180
|
+
},
|
|
181
|
+
addUrl: values.routeAddNewsletterEntry,
|
|
182
|
+
addPermission: values.permissionNewsletter,
|
|
183
|
+
activities: [
|
|
184
|
+
values.activityAddNewsSubmission,
|
|
185
|
+
values.activityApproveNewsSubmission,
|
|
186
|
+
values.activityRejectNewsSubmission,
|
|
187
|
+
values.activityAddNews,
|
|
188
|
+
values.activityEditNews,
|
|
189
|
+
values.acitivtyDeleteNews,
|
|
190
|
+
],
|
|
191
|
+
permissions: [
|
|
192
|
+
{
|
|
193
|
+
displayName: values.textPermissionNewsletterManagement,
|
|
194
|
+
key: values.permissionNewsletter,
|
|
195
|
+
hq: true,
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
displayName: values.textPermissionNewsletterSubmission,
|
|
199
|
+
key: values.permissionNewsletterSubmit,
|
|
200
|
+
hq: false,
|
|
201
|
+
},
|
|
202
|
+
],
|
|
203
|
+
routes: [
|
|
204
|
+
{ path: values.routeNewsHub, component: values.screenNewsHub, exact: false },
|
|
205
|
+
{ path: values.routeAddNewsletterEntry, component: values.screenAddNewsletterEntry, exact: true },
|
|
206
|
+
{ path: `${values.routeAddNewsletterEntry}/:updateId`, component: values.screenAddNewsletterEntry, exact: true },
|
|
207
|
+
{ path: `${values.routePublishAvailableNews}:updateId`, component: values.screenPublishAvailableNews, exact: true },
|
|
208
|
+
{ path: `${values.routeNewsletterSubmission}:updateId`, component: values.screenNewsletterSubmission, exact: true },
|
|
209
|
+
{ path: `${values.routeNewsletterAnalytics}:infoId`, component: values.screenNewsletterAnalytics, exact: true },
|
|
210
|
+
{ path: values.routeGenerateNewsletter, component: values.screenGenerateNewsletter, exact: true },
|
|
211
|
+
{ path: values.routeNewsletterTemplate, component: values.screenNewsletterTemplate, exact: true },
|
|
212
|
+
],
|
|
213
|
+
env: {
|
|
214
|
+
baseStage: '',
|
|
215
|
+
baseAPIUrl: '',
|
|
216
|
+
baseUploadsUrl: '',
|
|
217
|
+
uploadBucket: '',
|
|
218
|
+
colourBrandingMain: '',
|
|
219
|
+
colourBrandingOff: '',
|
|
220
|
+
colourBrandingApp: '',
|
|
221
|
+
defaultProfileImage: '',
|
|
222
|
+
utcOffset: '',
|
|
223
|
+
hasAvailableNews: false,
|
|
224
|
+
newsHaveTags: true,
|
|
225
|
+
defaultAllowComments: true,
|
|
226
|
+
makeApiKey: '',
|
|
227
|
+
logo: '',
|
|
228
|
+
clientName: '',
|
|
229
|
+
},
|
|
230
|
+
init: (environment) => {
|
|
231
|
+
FeatureConfig.env = environment;
|
|
232
|
+
PlussCore.Config.init(environment);
|
|
233
|
+
},
|
|
234
|
+
};
|
|
235
|
+
export default FeatureConfig;
|
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
// import * as PlussCore from '../../pluss-core/src';
|
|
2
|
+
import * as PlussCore from '@plusscommunities/pluss-core-web';
|
|
3
|
+
|
|
4
|
+
const values = {
|
|
5
|
+
featureKey: 'curatedPosts',
|
|
6
|
+
serviceKey: 'newsletterCuratedPosts',
|
|
7
|
+
reducerKey: 'newsCuratedPosts',
|
|
8
|
+
analyticsKey: 'newsCuratedPosts',
|
|
9
|
+
actionNewsLoaded: 'NEWS_LOADEDCuratedPosts',
|
|
10
|
+
actionNewsUpdated: 'NEWS_UPDATEDCuratedPosts',
|
|
11
|
+
actionNewsRemoved: 'NEWS_REMOVEDCuratedPosts',
|
|
12
|
+
actionNewsSubmissionsLoaded: 'NEWS_SUBMISSIONS_LOADEDCuratedPosts',
|
|
13
|
+
actionNewsSubmissionRemoved: 'NEWS_SUBMISSION_REMOVEDCuratedPosts',
|
|
14
|
+
actionNewsPurge: 'NEWS_PURGECuratedPosts',
|
|
15
|
+
actionNewsDashboardLoading: 'NEWS_DASHBOARD_LOADINGCuratedPosts',
|
|
16
|
+
actionNewsSubmissionsDashboardLoading: 'NEWS_SUBMISSIONS_DASHBOARD_LOADINGCuratedPosts',
|
|
17
|
+
permissionNewsletter: 'newsletterCuratedPosts',
|
|
18
|
+
permissionNewsletterSubmit: 'newsletterSubmitCuratedPosts',
|
|
19
|
+
activityAddNewsSubmission: 'AddNewsSubmissionCuratedPosts',
|
|
20
|
+
activityApproveNewsSubmission: 'ApproveNewsSubmissionCuratedPosts',
|
|
21
|
+
activityRejectNewsSubmission: 'RejectNewsSubmissionCuratedPosts',
|
|
22
|
+
activityAddNews: 'AddNewsCuratedPosts',
|
|
23
|
+
activityEditNews: 'EditNewsCuratedPosts',
|
|
24
|
+
acitivtyDeleteNews: 'DeleteNewsCuratedPosts',
|
|
25
|
+
routeNewsHub: '/newsCuratedPosts',
|
|
26
|
+
routeAddNewsletterEntry: '/newsCuratedPosts/article',
|
|
27
|
+
routePublishAvailableNews: '/newsCuratedPosts/content/',
|
|
28
|
+
routeNewsletterSubmission: '/newsCuratedPosts/newslettersubmission/',
|
|
29
|
+
routeNewsletterAnalytics: '/newsCuratedPosts/analytics/',
|
|
30
|
+
routeGenerateNewsletter: '/newsletterCuratedPosts/generate',
|
|
31
|
+
routeNewsletterTemplate: '/embed/newsletterCuratedPosts',
|
|
32
|
+
screenNewsHub: 'NewsHubCuratedPosts',
|
|
33
|
+
screenAddNewsletterEntry: 'AddNewsletterEntryCuratedPosts',
|
|
34
|
+
screenPublishAvailableNews: 'PublishAvailableNewsCuratedPosts',
|
|
35
|
+
screenNewsletterSubmission: 'NewsletterSubmissionCuratedPosts',
|
|
36
|
+
screenNewsletterAnalytics: 'NewsletterAnalyticsCuratedPosts',
|
|
37
|
+
screenGenerateNewsletter: 'GenerateNewsletterCuratedPosts',
|
|
38
|
+
screenNewsletterTemplate: 'NewsletterTemplateCuratedPosts',
|
|
39
|
+
svgPathGridIcon: [
|
|
40
|
+
'M4.92857 4C3.87107 4 3 4.87107 3 5.92857V16.6429C3 18.1737 4.25488 19.4286 5.78571 19.4286H18.2143C19.7451 19.4286 21 18.1737 21 16.6429V10.2143C21 9.15679 20.1289 8.28571 19.0714 8.28571H18.4286V5.92857C18.4286 4.87107 17.5575 4 16.5 4H4.92857ZM4.92857 5.28571H16.5C16.8628 5.28571 17.1429 5.56579 17.1429 5.92857V8.8231C17.1315 8.89212 17.1315 8.96252 17.1429 9.03153V16.2143C17.1417 16.2995 17.1574 16.384 17.1892 16.4631C17.2209 16.5422 17.2681 16.6141 17.3279 16.6748C17.3877 16.7354 17.459 16.7836 17.5376 16.8165C17.6162 16.8494 17.7005 16.8663 17.7857 16.8663C17.8709 16.8663 17.9553 16.8494 18.0338 16.8165C18.1124 16.7836 18.1837 16.7354 18.2435 16.6748C18.3033 16.6141 18.3505 16.5422 18.3823 16.4631C18.414 16.384 18.4298 16.2995 18.4286 16.2143V9.57143H19.0714C19.4342 9.57143 19.7143 9.8515 19.7143 10.2143V16.6429C19.7143 17.4786 19.05 18.1429 18.2143 18.1429H5.78571C4.94997 18.1429 4.28571 17.4786 4.28571 16.6429V5.92857C4.28571 5.56579 4.56579 5.28571 4.92857 5.28571ZM6.21429 7.85714C6.1291 7.85594 6.04452 7.87168 5.96547 7.90344C5.88642 7.93521 5.81447 7.98237 5.75381 8.04218C5.69314 8.102 5.64497 8.17327 5.61209 8.25187C5.57921 8.33046 5.56227 8.41481 5.56227 8.5C5.56227 8.58519 5.57921 8.66954 5.61209 8.74813C5.64497 8.82673 5.69314 8.898 5.75381 8.95782C5.81447 9.01763 5.88642 9.06479 5.96547 9.09656C6.04452 9.12832 6.1291 9.14406 6.21429 9.14286H15.2143C15.2995 9.14406 15.384 9.12832 15.4631 9.09656C15.5422 9.06479 15.6141 9.01763 15.6748 8.95782C15.7354 8.898 15.7836 8.82673 15.8165 8.74813C15.8494 8.66954 15.8663 8.58519 15.8663 8.5C15.8663 8.41481 15.8494 8.33046 15.8165 8.25187C15.7836 8.17327 15.7354 8.102 15.6748 8.04218C15.6141 7.98237 15.5422 7.93521 15.4631 7.90344C15.384 7.87168 15.2995 7.85594 15.2143 7.85714H6.21429ZM6.21429 11.2857C6.04379 11.2857 5.88029 11.3535 5.75974 11.474C5.63918 11.5946 5.57145 11.7581 5.57143 11.9286V14.9286C5.57145 15.0991 5.63918 15.2626 5.75974 15.3831C5.88029 15.5037 6.04379 15.5714 6.21429 15.5714H9.21429C9.38478 15.5714 9.54828 15.5037 9.66884 15.3831C9.78939 15.2626 9.85713 15.0991 9.85714 14.9286V11.9286C9.85713 11.7581 9.78939 11.5946 9.66884 11.474C9.54828 11.3535 9.38478 11.2857 9.21429 11.2857H6.21429ZM11.7857 11.2857C11.7005 11.2845 11.616 11.3002 11.5369 11.332C11.4579 11.3638 11.3859 11.4109 11.3252 11.4708C11.2646 11.5306 11.2164 11.6018 11.1835 11.6804C11.1506 11.759 11.1337 11.8434 11.1337 11.9286C11.1337 12.0138 11.1506 12.0981 11.1835 12.1767C11.2164 12.2553 11.2646 12.3266 11.3252 12.3864C11.3859 12.4462 11.4579 12.4934 11.5369 12.5251C11.616 12.5569 11.7005 12.5726 11.7857 12.5714H15.2143C15.2995 12.5726 15.384 12.5569 15.4631 12.5251C15.5422 12.4934 15.6141 12.4462 15.6748 12.3864C15.7354 12.3266 15.7836 12.2553 15.8165 12.1767C15.8494 12.0981 15.8663 12.0138 15.8663 11.9286C15.8663 11.8434 15.8494 11.759 15.8165 11.6804C15.7836 11.6018 15.7354 11.5306 15.6748 11.4708C15.6141 11.4109 15.5422 11.3638 15.4631 11.332C15.384 11.3002 15.2995 11.2845 15.2143 11.2857H11.7857ZM6.85714 12.5714H8.57143V14.2857H6.85714V12.5714ZM11.7857 14.2857C11.7005 14.2845 11.616 14.3002 11.5369 14.332C11.4579 14.3638 11.3859 14.4109 11.3252 14.4708C11.2646 14.5306 11.2164 14.6018 11.1835 14.6804C11.1506 14.759 11.1337 14.8434 11.1337 14.9286C11.1337 15.0138 11.1506 15.0981 11.1835 15.1767C11.2164 15.2553 11.2646 15.3266 11.3252 15.3864C11.3859 15.4462 11.4579 15.4934 11.5369 15.5251C11.616 15.5569 11.7005 15.5726 11.7857 15.5714H15.2143C15.2995 15.5726 15.384 15.5569 15.4631 15.5251C15.5422 15.4934 15.6141 15.4462 15.6748 15.3864C15.7354 15.3266 15.7836 15.2553 15.8165 15.1767C15.8494 15.0981 15.8663 15.0138 15.8663 14.9286C15.8663 14.8434 15.8494 14.759 15.8165 14.6804C15.7836 14.6018 15.7354 14.5306 15.6748 14.4708C15.6141 14.4109 15.5422 14.3638 15.4631 14.332C15.384 14.3002 15.2995 14.2845 15.2143 14.2857H11.7857Z',
|
|
41
|
+
],
|
|
42
|
+
svgPathGridIconViewBox: '0 0 24 24',
|
|
43
|
+
optionForceNewsAuthorName: 'forceNewsAuthorNameCuratedPosts',
|
|
44
|
+
optionNewsComments: 'newsCommentsCuratedPosts',
|
|
45
|
+
optionNewsNotifications: 'newsNotificationsCuratedPosts',
|
|
46
|
+
optionUseLargeNews: 'useLargeNewsCuratedPosts',
|
|
47
|
+
localStorageNewsletterBrandData: `newsletterBrandDataCuratedPosts`,
|
|
48
|
+
localStorageNewsletterMakerLastUpdate: `newsletterMakerLastUpdateCuratedPosts`,
|
|
49
|
+
localStorageNewsletterMakerData: `newsletterMakerDataCuratedPosts`,
|
|
50
|
+
stringPostfixSubmissionEmail: 'newssubmissionemailCuratedPosts',
|
|
51
|
+
menuOrder: 3.5,
|
|
52
|
+
textTipKeepYourTVNewsFeedActiveAndCurrent:
|
|
53
|
+
'Tip: Keep your TV Curated Post feed active and current, but don’t flood\nit with so much content that important posts get lost.',
|
|
54
|
+
textFeaturedNews: 'Featured Curated Posts',
|
|
55
|
+
textIsThisAFeaturedNewsArticle: 'Is this a featured curated post?',
|
|
56
|
+
textFeaturedNewsArticlesWillBeHighlighted: 'Curated posts will be highlighted on the Home page.',
|
|
57
|
+
textThisPostHasPreviouslyBeenPublished: `This post has previously been published to this village. Are you sure you want to continue?`,
|
|
58
|
+
textNewsletterTitlePostfix: 'Curated Post',
|
|
59
|
+
textCreateNewsletter: 'Create Curated Post',
|
|
60
|
+
textNoSelectedNews: 'No selected curated post yet',
|
|
61
|
+
textNewsletterTitle: 'Curated Post Title',
|
|
62
|
+
textSelectNews: 'Select Curated Post',
|
|
63
|
+
textSelectedNews: 'Selected Curated Post',
|
|
64
|
+
textAddEditNewsPostfix: 'curatedPosts',
|
|
65
|
+
textNoteThisWillNotChangeInTheApp: (changeText) => `Note: This will not ${changeText} the curated post in the app`,
|
|
66
|
+
textAreYouSureYouWantToDelete: `Are you sure you want to delete that curated post?`,
|
|
67
|
+
textThereAreNoNews: 'There are no curated posts',
|
|
68
|
+
textTitleNews: 'Curated Posts',
|
|
69
|
+
textSubmitYourNewNewsPostHere: 'Submit your new curated post here. You will be notified once your post has been approved.',
|
|
70
|
+
textPrintNewsletter: 'Print Curated Posts',
|
|
71
|
+
textBackToNews: 'Back to Curated Posts',
|
|
72
|
+
textNewsAnalytics: 'CURATED POSTS ANALYTICS',
|
|
73
|
+
textNewsSubmission: 'CURATED POST SUBMISSION',
|
|
74
|
+
textNewsPost: 'CURATED POST',
|
|
75
|
+
textNewsPostTitle: 'Curated post title',
|
|
76
|
+
textWhenANewsletterSubmissionIsAdded: 'When a curated post submission is added, the entered address will recieve an email notification.',
|
|
77
|
+
textIsThisAFeaturedNewsPost: 'Is this a featured curated post?',
|
|
78
|
+
textFeaturedNewsPostWillBeHighlighted: 'Featured curated posts will be highlighted on the Home page.',
|
|
79
|
+
textSubmittedANewsletterPostForReview: 'submitted a curated post for review:',
|
|
80
|
+
textApprovedANewsSubmission: 'approved a curated post submission:',
|
|
81
|
+
textRejectedANewsSubmission: 'rejected a curated post submission:',
|
|
82
|
+
textAddedANewsletterPost: 'added a curated post:',
|
|
83
|
+
textEditedANewsletterPost: 'edited a curated post:',
|
|
84
|
+
textDeletedANewsletterPost: 'deleted a curated post:',
|
|
85
|
+
textSingularName: 'Curated Post',
|
|
86
|
+
textThereIsNoNews: 'There is no Curated Posts',
|
|
87
|
+
textTheAuthorOfANewsPostWillAlwaysDisplay: 'The author of a curated post will always display.',
|
|
88
|
+
textAllowNewsComments: 'Allow Curated Post Comments',
|
|
89
|
+
textUsersCanPostCommentsOnNews: 'Users can post comments on Curated Posts within the app.',
|
|
90
|
+
textAllowNewsNotification: 'Allow Curated Post Notifications',
|
|
91
|
+
textWhenSettingUpANewsPost: 'When setting up a curated post, the creator may choose to send a push notification to users of the app.',
|
|
92
|
+
textCondensedNewsStyle: 'Condensed Curated Posts Style',
|
|
93
|
+
textTheNewsSectionUsesCondensedNewsItems:
|
|
94
|
+
'The Curated Posts section uses condensed Curated Post items - smaller images, less information and less scrolling.',
|
|
95
|
+
textMenuTitle: 'Curated Posts',
|
|
96
|
+
textPermissionNewsletterManagement: 'Curated Post Management',
|
|
97
|
+
textPermissionNewsletterSubmission: 'Curated Post Submission (Approval Required)',
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
export { PlussCore, values };
|
|
101
|
+
|
|
102
|
+
const FeatureConfig = {
|
|
103
|
+
key: values.featureKey,
|
|
104
|
+
singularName: values.textSingularName,
|
|
105
|
+
description: 'Publish rich information, articles, and media to keep the village up-to-date at all times.',
|
|
106
|
+
emptyText: values.textThereIsNoNews,
|
|
107
|
+
widgetOptions: [
|
|
108
|
+
{
|
|
109
|
+
key: values.featureKey,
|
|
110
|
+
widget: true,
|
|
111
|
+
main: true,
|
|
112
|
+
hideOnTabNumbers: [],
|
|
113
|
+
optionKey: values.optionForceNewsAuthorName,
|
|
114
|
+
type: 'toggle',
|
|
115
|
+
inverseOption: false,
|
|
116
|
+
title: "Always Show Author's Name",
|
|
117
|
+
description: values.textTheAuthorOfANewsPostWillAlwaysDisplay,
|
|
118
|
+
defaultNew: false,
|
|
119
|
+
default: false,
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
key: values.featureKey,
|
|
123
|
+
widget: true,
|
|
124
|
+
main: true,
|
|
125
|
+
hideOnTabNumbers: [],
|
|
126
|
+
optionKey: values.optionNewsComments,
|
|
127
|
+
type: 'show',
|
|
128
|
+
inverseOption: true,
|
|
129
|
+
title: values.textAllowNewsComments,
|
|
130
|
+
description: values.textUsersCanPostCommentsOnNews,
|
|
131
|
+
defaultNew: false,
|
|
132
|
+
default: false,
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
key: values.featureKey,
|
|
136
|
+
widget: true,
|
|
137
|
+
main: true,
|
|
138
|
+
hideOnTabNumbers: [],
|
|
139
|
+
optionKey: values.optionNewsNotifications,
|
|
140
|
+
type: 'show',
|
|
141
|
+
inverseOption: true,
|
|
142
|
+
title: values.textAllowNewsNotification,
|
|
143
|
+
description: values.textWhenSettingUpANewsPost,
|
|
144
|
+
defaultNew: false,
|
|
145
|
+
default: false,
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
key: values.featureKey,
|
|
149
|
+
widget: false,
|
|
150
|
+
main: true,
|
|
151
|
+
hideOnTabNumbers: [],
|
|
152
|
+
optionKey: values.optionUseLargeNews,
|
|
153
|
+
type: 'toggle',
|
|
154
|
+
inverseOption: true,
|
|
155
|
+
title: values.textCondensedNewsStyle,
|
|
156
|
+
description: values.textTheNewsSectionUsesCondensedNewsItems,
|
|
157
|
+
defaultNew: true,
|
|
158
|
+
default: true,
|
|
159
|
+
},
|
|
160
|
+
],
|
|
161
|
+
menu: {
|
|
162
|
+
order: values.menuOrder,
|
|
163
|
+
text: values.textMenuTitle,
|
|
164
|
+
icon: 'news',
|
|
165
|
+
isFontAwesome: false,
|
|
166
|
+
url: values.routeNewsHub,
|
|
167
|
+
countProps: [values.reducerKey, 'submissions', 'length'],
|
|
168
|
+
visibleExps: {
|
|
169
|
+
type: 'and',
|
|
170
|
+
exps: [
|
|
171
|
+
{ type: 'feature', value: values.featureKey },
|
|
172
|
+
{
|
|
173
|
+
type: 'or',
|
|
174
|
+
exps: [
|
|
175
|
+
{ type: 'permission', value: values.permissionNewsletter },
|
|
176
|
+
{ type: 'permission', value: values.permissionNewsletterSubmit },
|
|
177
|
+
],
|
|
178
|
+
},
|
|
179
|
+
],
|
|
180
|
+
},
|
|
181
|
+
},
|
|
182
|
+
addUrl: values.routeAddNewsletterEntry,
|
|
183
|
+
addPermission: values.permissionNewsletter,
|
|
184
|
+
activities: [
|
|
185
|
+
values.activityAddNewsSubmission,
|
|
186
|
+
values.activityApproveNewsSubmission,
|
|
187
|
+
values.activityRejectNewsSubmission,
|
|
188
|
+
values.activityAddNews,
|
|
189
|
+
values.activityEditNews,
|
|
190
|
+
values.acitivtyDeleteNews,
|
|
191
|
+
],
|
|
192
|
+
permissions: [
|
|
193
|
+
{
|
|
194
|
+
displayName: values.textPermissionNewsletterManagement,
|
|
195
|
+
key: values.permissionNewsletter,
|
|
196
|
+
hq: true,
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
displayName: values.textPermissionNewsletterSubmission,
|
|
200
|
+
key: values.permissionNewsletterSubmit,
|
|
201
|
+
hq: false,
|
|
202
|
+
},
|
|
203
|
+
],
|
|
204
|
+
routes: [
|
|
205
|
+
{ path: values.routeNewsHub, component: values.screenNewsHub, exact: false },
|
|
206
|
+
{ path: values.routeAddNewsletterEntry, component: values.screenAddNewsletterEntry, exact: true },
|
|
207
|
+
{ path: `${values.routeAddNewsletterEntry}/:updateId`, component: values.screenAddNewsletterEntry, exact: true },
|
|
208
|
+
{ path: `${values.routePublishAvailableNews}:updateId`, component: values.screenPublishAvailableNews, exact: true },
|
|
209
|
+
{ path: `${values.routeNewsletterSubmission}:updateId`, component: values.screenNewsletterSubmission, exact: true },
|
|
210
|
+
{ path: `${values.routeNewsletterAnalytics}:infoId`, component: values.screenNewsletterAnalytics, exact: true },
|
|
211
|
+
{ path: values.routeGenerateNewsletter, component: values.screenGenerateNewsletter, exact: true },
|
|
212
|
+
{ path: values.routeNewsletterTemplate, component: values.screenNewsletterTemplate, exact: true },
|
|
213
|
+
],
|
|
214
|
+
env: {
|
|
215
|
+
baseStage: '',
|
|
216
|
+
baseAPIUrl: '',
|
|
217
|
+
baseUploadsUrl: '',
|
|
218
|
+
uploadBucket: '',
|
|
219
|
+
colourBrandingMain: '',
|
|
220
|
+
colourBrandingOff: '',
|
|
221
|
+
colourBrandingApp: '',
|
|
222
|
+
defaultProfileImage: '',
|
|
223
|
+
utcOffset: '',
|
|
224
|
+
hasAvailableNews: false,
|
|
225
|
+
newsHaveTags: true,
|
|
226
|
+
defaultAllowComments: true,
|
|
227
|
+
makeApiKey: '',
|
|
228
|
+
logo: '',
|
|
229
|
+
clientName: '',
|
|
230
|
+
},
|
|
231
|
+
init: (environment) => {
|
|
232
|
+
FeatureConfig.env = environment;
|
|
233
|
+
PlussCore.Config.init(environment);
|
|
234
|
+
},
|
|
235
|
+
};
|
|
236
|
+
export default FeatureConfig;
|