fansunited-widget-either-or 1.4.0 → 2.0.0-RC1
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/README.md +147 -34
- package/components/Cards/EitherOrsCard.d.ts +5 -2
- package/components/Cards/WidgetCard.d.ts +5 -2
- package/components/EitherOrs/ActionsMenu.d.ts +9 -0
- package/components/EitherOrs/AdditionalInfo/EitherOrExports.d.ts +7 -0
- package/components/EitherOrs/AdditionalInfo/EitherOrStandings.d.ts +8 -0
- package/components/EitherOrs/AdditionalInfo/EitherOrStats.d.ts +7 -0
- package/components/EitherOrs/AdditionalInfo/ParticipationChart.d.ts +9 -0
- package/components/EitherOrs/AdditionalInfo/TableInfoTabs.d.ts +7 -0
- package/components/EitherOrs/EitherOrRow.d.ts +9 -0
- package/components/EitherOrs/EitherOrs.d.ts +1 -1
- package/components/EitherOrs/EitherOrsTable.d.ts +13 -0
- package/components/EitherOrs/TablePagination.d.ts +10 -0
- package/components/Filters/Filters.d.ts +3 -3
- package/components/Main.d.ts +2 -2
- package/components/MainLayout.d.ts +1 -1
- package/components/Management/Header.d.ts +6 -0
- package/components/Management/MainColumn.d.ts +5 -6
- package/components/Management/ManageEitherOr.d.ts +4 -7
- package/components/Management/Options/AdditionalOptionField.d.ts +9 -0
- package/components/Management/Options/Checkboxes.d.ts +13 -0
- package/components/Management/Options/Option.d.ts +13 -0
- package/components/Management/Options/Options.d.ts +5 -4
- package/components/Management/Points/Points.d.ts +4 -4
- package/components/Management/SideBar/Configuration/Configuration.d.ts +8 -0
- package/components/Management/SideBar/Configuration/Status.d.ts +7 -0
- package/components/Management/{Type → SideBar/Configuration}/Type.d.ts +2 -2
- package/components/Management/SideBar/Configuration/WinningCondition.d.ts +7 -0
- package/components/Management/SideBar/SideBar.d.ts +8 -0
- package/components/Modals/DeleteEitherOrModal.d.ts +10 -0
- package/components/Modals/PreviewModal.d.ts +3 -4
- package/constants/constants.d.ts +249 -4
- package/context/ConfigurationContext.d.ts +9 -0
- package/context/LabelsContext.d.ts +3 -2
- package/either-or-manager.es.d.ts +1 -0
- package/either-or-manager.es.js +83005 -39127
- package/either-or-manager.umd.js +537 -222
- package/factories/EitherOrFactory.d.ts +6 -7
- package/helpers/helpers.d.ts +1 -35
- package/models/Features/Features.d.ts +11 -0
- package/models/Filters/EitherOrFiltersModel.d.ts +2 -1
- package/models/Labels/LabelsModel.d.ts +82 -22
- package/models/RequestBody/RequestBody.d.ts +28 -31
- package/models/Select/SelectOption.d.ts +1 -1
- package/package.json +1 -1
- package/style.css +2 -2
- package/validators/EitherOrValidator.d.ts +3 -5
- package/components/Accordion/Accordion.d.ts +0 -6
- package/components/Buttons/ActionsButtons.d.ts +0 -10
- package/components/Buttons/AddButton.d.ts +0 -7
- package/components/Buttons/ClearButton.d.ts +0 -6
- package/components/Buttons/CopyToClipboard.d.ts +0 -8
- package/components/Buttons/HomeButtons.d.ts +0 -8
- package/components/Buttons/ManageButtons.d.ts +0 -8
- package/components/Buttons/RemoveButton.d.ts +0 -7
- package/components/Buttons/SignOutButton.d.ts +0 -6
- package/components/Buttons/Sportal365/Sportal365Button.d.ts +0 -8
- package/components/Cards/ImagesCard.d.ts +0 -6
- package/components/Checkbox/CheckboxFilter.d.ts +0 -9
- package/components/Login/Login.d.ts +0 -6
- package/components/Management/Branding/Branding.d.ts +0 -8
- package/components/Management/Branding/BrandingImages.d.ts +0 -8
- package/components/Management/Branding/BrandingTabs.d.ts +0 -7
- package/components/Management/Context/Context.d.ts +0 -9
- package/components/Management/Context/ContextTabs.d.ts +0 -7
- package/components/Management/DynamicFields/DynamicFields.d.ts +0 -8
- package/components/Management/EitherOrSelect/EitherOrSelect.d.ts +0 -8
- package/components/Management/Flags/Flags.d.ts +0 -16
- package/components/Management/IDInput/IDInput.d.ts +0 -6
- package/components/Management/Images/FileUploader.d.ts +0 -9
- package/components/Management/Images/Image.d.ts +0 -11
- package/components/Management/Images/Images.d.ts +0 -11
- package/components/Management/Images/Sportal365/Filters/Sportal365ImagesFromToFilter.d.ts +0 -7
- package/components/Management/Images/Sportal365/Sportal365Images.d.ts +0 -9
- package/components/Management/Images/Sportal365/Sportal365ImagesPagination.d.ts +0 -10
- package/components/Management/Images/Sportal365/Sportal365ImagesSearch.d.ts +0 -8
- package/components/Management/InformationInput/InformationInput.d.ts +0 -9
- package/components/Management/ManagementScreenHeader.d.ts +0 -8
- package/components/Management/NumberInput/NumberInput.d.ts +0 -9
- package/components/Management/Options/OptionImages.d.ts +0 -9
- package/components/Management/Options/OptionInput.d.ts +0 -9
- package/components/Management/RichText/RichText.d.ts +0 -8
- package/components/Management/SideBar.d.ts +0 -12
- package/components/Modals/ConfirmationModal.d.ts +0 -11
- package/components/Modals/ImageModal.d.ts +0 -8
- package/components/Pagination/Pagination.d.ts +0 -9
- package/components/Portals/Portal.d.ts +0 -6
- package/components/Select/ContextSelectFilter.d.ts +0 -14
- package/components/Select/ContextTagSelect.d.ts +0 -9
- package/components/Select/EitherOrSelectFilter.d.ts +0 -12
- package/components/Spinner/ButtonSpinner.d.ts +0 -9
- package/components/Spinner/Spinner.d.ts +0 -3
- package/components/Table/TableBody.d.ts +0 -10
- package/components/Table/TableHeader.d.ts +0 -3
- package/constants/placeholders.d.ts +0 -1
- package/context/ApiContext.d.ts +0 -15
- package/context/AuthContext.d.ts +0 -8
- package/firebase/firebase.d.ts +0 -2
- package/firebase/getToken.d.ts +0 -1
- package/models/EitherOr/EitherOrById.d.ts +0 -44
- package/models/Select/GroupSelectOption.d.ts +0 -5
- package/models/Sportal365/Sportal365Config.d.ts +0 -4
- package/models/Sportal365/Sportal365ImagesContainer.d.ts +0 -5
- package/models/Sportal365/Sportal365SearchImages.d.ts +0 -21
- package/models/Sportal365/Sportal365SearchImagesFilters.d.ts +0 -4
- package/portals/ModalPortal.d.ts +0 -6
- package/services/HashService.d.ts +0 -4
- package/services/HttpsService.d.ts +0 -33
- package/types/types.d.ts +0 -6
package/README.md
CHANGED
|
@@ -66,7 +66,7 @@ Fans United Either/Or Management Widget depends on [Fans United JS SDK](https://
|
|
|
66
66
|
|
|
67
67
|
- `fansUnitedEnvironment` - You can run the widget in the following environments: **staging**, **production**, **watg** and **yolo**. If no value given it will be set to **production** (prod).
|
|
68
68
|
|
|
69
|
-
- `labels` - you can easily translate all labels, UI messages, descriptions, placeholders and etc. with this prop. By default, Fans United Match
|
|
69
|
+
- `labels` - you can easily translate all labels, UI messages, descriptions, placeholders and etc. with this prop. By default, Fans United Match Either/Or Management Widget is available in **English** so if no value is given, the widget will be translated in English.
|
|
70
70
|
|
|
71
71
|
- `sportal365Project` - The Sportal365 project. Used as a request header when communicating with Sportal365 APIs.
|
|
72
72
|
|
|
@@ -84,11 +84,17 @@ import { EitherOrManager } from 'fansunited-widget-either-or';
|
|
|
84
84
|
|
|
85
85
|
const labels = {
|
|
86
86
|
userNotFound: 'User not found. Please try again',
|
|
87
|
+
clientFeaturesNotFoundMessage: "There was a problem fetching client's configuration. Please check again your API key and client ID. For more information contact Fans United staff.",
|
|
87
88
|
noGamesFound: "No Either/Or games were found. You can create one by clicking the button 'Create'",
|
|
89
|
+
featureDisabled: 'Feature disabled!',
|
|
90
|
+
noPermissionMessage: 'You have no permission for this feature!',
|
|
91
|
+
tryAgainButton: 'Try again',
|
|
92
|
+
additionalInformation: 'Additional information',
|
|
88
93
|
signOut: 'Sign out',
|
|
89
94
|
timeFormat: 'DD.MM.YYYY, HH:mm',
|
|
90
95
|
getEitherOrsErrorMessage: 'There was a problem with fetching list of Either/Or games',
|
|
91
96
|
title: 'Title',
|
|
97
|
+
alternativeTitle: 'Alternative title',
|
|
92
98
|
status: 'Status',
|
|
93
99
|
creationDate: 'Created at',
|
|
94
100
|
actions: 'Actions',
|
|
@@ -96,12 +102,17 @@ const labels = {
|
|
|
96
102
|
edit: 'Edit',
|
|
97
103
|
save: 'Save',
|
|
98
104
|
preview: 'Preview',
|
|
105
|
+
previewGame: 'Preview Either/Or',
|
|
99
106
|
close: 'Close',
|
|
100
107
|
filterBy: 'Filter by:',
|
|
101
108
|
sortBy: 'Sort by:',
|
|
102
109
|
clearStatus: 'Clear status',
|
|
103
110
|
contextEntityTag: 'Context entity tag',
|
|
104
111
|
typeContextTagNamePlaceholder: 'Type context tag name...',
|
|
112
|
+
itemsPerPage: 'Items per page',
|
|
113
|
+
pageNo: 'Page No',
|
|
114
|
+
deleteEitherOrTitle: 'Delete Either/Or',
|
|
115
|
+
deleteEitherOrDescription: 'Are you sure you want to delete',
|
|
105
116
|
showMoreImages: 'Show more images',
|
|
106
117
|
hideMoreImages: 'Hide more images',
|
|
107
118
|
uploadImage: 'Upload image',
|
|
@@ -110,7 +121,6 @@ const labels = {
|
|
|
110
121
|
copied: 'Copied',
|
|
111
122
|
add: 'Add',
|
|
112
123
|
configuration: 'Configuration',
|
|
113
|
-
titlePlaceholder: 'Provide a title for your Either/Or',
|
|
114
124
|
description: 'Description',
|
|
115
125
|
descriptionPlaceholder: 'Describe your Either/Or',
|
|
116
126
|
images: 'Images',
|
|
@@ -125,6 +135,7 @@ const labels = {
|
|
|
125
135
|
imagePlaceholder: 'Paste your image as valid URL or as relative path',
|
|
126
136
|
active: 'Active',
|
|
127
137
|
inactive: 'Inactive',
|
|
138
|
+
expired: 'Expired',
|
|
128
139
|
statusDescription: "When Either/Or is Inactive, then users are not allowed to participate",
|
|
129
140
|
winningCondition: 'Winning condition',
|
|
130
141
|
winningConditionDescription: "Winning condition determines the correct choice out of a pair of options presented to the user. When is set to 'More,' the user must select the option that has a greater value to win. Conversely, if is set to 'Less,' the winning choice is the one with the lesser value",
|
|
@@ -160,19 +171,10 @@ const labels = {
|
|
|
160
171
|
entity: 'Entity',
|
|
161
172
|
campaign: 'Campaign',
|
|
162
173
|
id: 'ID',
|
|
163
|
-
idContentPlaceholder: 'Type the ID of your content',
|
|
164
|
-
idCampaignPlaceholder: 'Type the ID of your campaign',
|
|
165
174
|
label: 'Label',
|
|
166
|
-
labelContentPlaceholder: "Type the content's label",
|
|
167
|
-
labelCampaignPlaceholder: "Type the campaign's label",
|
|
168
175
|
type: 'Type',
|
|
169
176
|
typeDescription: 'Select the Either/Or type. You can set the types in our Management Portal by going to Features, then clicking on the Either/Or page',
|
|
170
|
-
noType: "No type",
|
|
171
177
|
deleteLabel: 'Delete',
|
|
172
|
-
cancelLabel: 'Cancel',
|
|
173
|
-
confirmationQuestionLabel: 'Are you sure you want to delete',
|
|
174
|
-
typeContentPlaceholder: "Type the content's type",
|
|
175
|
-
previewEitherOr: 'Preview Either/Or',
|
|
176
178
|
getFootballEntitiesErrorMessage: "There was a problem with fetching football's data",
|
|
177
179
|
createEitherOrMessage: 'You have successfully created Either/Or',
|
|
178
180
|
createEitherOrErrorMessage: 'There was a problem creating Either/Or. Please try again',
|
|
@@ -191,14 +193,9 @@ const labels = {
|
|
|
191
193
|
generateSignedInUrlErrorMessage: 'There was a problem generating signed in URL to store the image in bucket. Please try again',
|
|
192
194
|
uploadingImageErrorMessage: 'There was a problem with uploading image to bucket. Please try again',
|
|
193
195
|
encryptingImageErrorMessage: 'There was a problem with encrypting image before uploading it to bucket. Please try again',
|
|
194
|
-
clear: 'Clear'
|
|
195
196
|
searchSportal365ImagesErrorMessage: 'There was a problem with searching images from Sportal 365 API. Please try again'
|
|
196
|
-
searchImages: 'Search images',
|
|
197
|
-
clearFromToFilterSportal365ImagesMessage: 'You have cleared from/to filter for Sportal365 search images',
|
|
198
197
|
hideFilters: 'Hide filters',
|
|
199
198
|
showFilters: 'Show filters',
|
|
200
|
-
dateFromTo: 'Date from/to',
|
|
201
|
-
dateFromToPlaceholder: 'Select Date...',
|
|
202
199
|
branding: 'Branding',
|
|
203
200
|
urls: 'URLs',
|
|
204
201
|
primaryUrl: 'Primary URL',
|
|
@@ -221,7 +218,64 @@ const labels = {
|
|
|
221
218
|
exportAllUsers: "Export all users",
|
|
222
219
|
usersExportMessage: "All users have been exported successfully",
|
|
223
220
|
usersExportErrorMessage: "There was a problem with exporting users. Please try again"
|
|
224
|
-
|
|
221
|
+
sortByCreatedAtAsc: 'Sort by created at field in ascending order',
|
|
222
|
+
sortByCreatedAtDesc: 'Sort by created at field in descending order',
|
|
223
|
+
sortByUpdatedAtAsc: 'Sort by updated at field in ascending order',
|
|
224
|
+
sortByUpdatedAtDesc: 'Sort by updated at field in descending order',
|
|
225
|
+
mainImage: 'Main',
|
|
226
|
+
coverImage: 'Cover',
|
|
227
|
+
mobileImage: 'Mobile',
|
|
228
|
+
clearImage: 'Clear image',
|
|
229
|
+
viewImage: 'View image',
|
|
230
|
+
cropImage: 'Crop image',
|
|
231
|
+
aspectRatio: 'Aspect ratio',
|
|
232
|
+
crop: 'Crop',
|
|
233
|
+
reset: 'Reset',
|
|
234
|
+
sportal365Images: 'Sportal365 Images',
|
|
235
|
+
search: 'Search',
|
|
236
|
+
delete: 'Delete',
|
|
237
|
+
schedule: 'Schedule',
|
|
238
|
+
scheduledTaskNotAvailable: 'To configure scheduled tasks you need to first create your game',
|
|
239
|
+
createScheduledTaskMessage: 'You have successfully created scheduled task',
|
|
240
|
+
createScheduledTaskErrorMessage: 'An error occurred while creating scheduled task. Please try again later',
|
|
241
|
+
updateScheduledTaskMessage: 'You have successfully updated scheduled task',
|
|
242
|
+
updateScheduledTaskErrorMessage: 'An error occurred while updating scheduled task. Please try again later',
|
|
243
|
+
deleteScheduledTaskMessage: 'You have successfully deleted scheduled task',
|
|
244
|
+
deleteScheduledTaskErrorMessage: 'An error occurred while deleting scheduled task. Please try again later',
|
|
245
|
+
deleteScheduledTaskModalTitle: 'Delete scheduled task',
|
|
246
|
+
deleteScheduledTaskModalParagraph: 'Are you sure you want to delete the following scheduled task: ',
|
|
247
|
+
changeStatusTo: 'Change status to:',
|
|
248
|
+
at: 'At:',
|
|
249
|
+
authRequirement: 'Auth Requirement',
|
|
250
|
+
authRequirementDescription: 'Choose the type of authentication to be used.',
|
|
251
|
+
free: 'Free',
|
|
252
|
+
lead: 'Lead',
|
|
253
|
+
registered: 'Registered',
|
|
254
|
+
language: 'Language',
|
|
255
|
+
urlCopiedToClipboardMessage: 'URL copied to clipboard',
|
|
256
|
+
imageDeletedMessage: 'Image deleted',
|
|
257
|
+
imageResetMessage: 'The initial size of the image has been restored',
|
|
258
|
+
exports: 'Exports',
|
|
259
|
+
exportUsersData: 'Export users data',
|
|
260
|
+
category: 'Category',
|
|
261
|
+
action: 'Action',
|
|
262
|
+
exportAllUsersDescription: 'Export all users who participated in the game.',
|
|
263
|
+
fromDate: 'From Date',
|
|
264
|
+
toDate: 'To Date',
|
|
265
|
+
addOption: 'Add option',
|
|
266
|
+
removeOption: 'Remove option',
|
|
267
|
+
addImages: 'Add images',
|
|
268
|
+
additionalFields: 'Additional fields',
|
|
269
|
+
addPoint: 'Add point',
|
|
270
|
+
removePoint: 'Remove point',
|
|
271
|
+
reports: 'Reports',
|
|
272
|
+
standings: 'Standings',
|
|
273
|
+
participations: 'Participations',
|
|
274
|
+
chartErrorMessage: 'There was a problem with fetching information about either/or game participation. Please try again',
|
|
275
|
+
performanceByDay: 'Performance by day',
|
|
276
|
+
noStandingsAvailable: 'No standings available.',
|
|
277
|
+
standingsErrorMessage: 'There was a problem with fetching information about either/or game standings. Please try again',
|
|
278
|
+
name: 'Name',
|
|
225
279
|
};
|
|
226
280
|
|
|
227
281
|
const App = () => {
|
|
@@ -239,10 +293,16 @@ Here is all information about **`LabelsModel`**:
|
|
|
239
293
|
| Key | Description | Default Value |
|
|
240
294
|
| :-------------: |:-------------:| :-----:|
|
|
241
295
|
| `userNotFound` | On login screen when client gives invalid information about email or password. | User not found. Please try again |
|
|
296
|
+
| `clientFeaturesNotFoundMessage` | Toast error message when client is providing invalid value to **fansUnitedApiKey** or **fansUnitedClientId** prop. | There was a problem fetching client's configuration. Please check again your API key and client ID. For more information contact Fans United staff. |
|
|
297
|
+
| `featureDisabled` | Label for no permission card title | Feature disabled! |
|
|
298
|
+
| `noPermissionMessage` | Label for no permission card paragraph | You have no permission for this feature! |
|
|
299
|
+
| `tryAgainButton` | Label for no permission card button | Try again |
|
|
300
|
+
| `additionalInformation` | Label for tooltip button | Additional information |
|
|
242
301
|
| `noGamesFound` | When there are no created games for specific client, this message will appear on screen. | No Either/Or games were found. You can create one by clicking the button 'Create' |
|
|
243
302
|
| `signOut` | Used as label on sign out button. | Sign out |
|
|
244
303
|
| `getEitherOrsErrorMessage` | [react-toastify](https://github.com/fkhadra/react-toastify) error message when request fails for fetching list of Either/Or. | There was a problem with fetching list of Either/Or games |
|
|
245
|
-
| `title` | Label for title | Title
|
|
304
|
+
| `title` | Label for title | Title |
|
|
305
|
+
| `alternativeTitle` | Label for alternative title | Alternative title |
|
|
246
306
|
| `status` | Status of a Either/Or | Status |
|
|
247
307
|
| `creationDate` | Date of created Either/Or in same format as given for **`timeFormat` prop** | Created at |
|
|
248
308
|
| `actions` | Two icon buttons with different actions | Actions |
|
|
@@ -250,6 +310,7 @@ Here is all information about **`LabelsModel`**:
|
|
|
250
310
|
| `edit` | Label for management header | Edit |
|
|
251
311
|
| `save` | Label for save button | Save |
|
|
252
312
|
| `preview` | Label for preview button | Preview |
|
|
313
|
+
| `previewGame` | Title for preview game modal | Preview Either/Or |
|
|
253
314
|
| `close` | Label for close button | Close |
|
|
254
315
|
| `filterBy` | Label for filters container on main screen | Filter by: |
|
|
255
316
|
| `sortBy` | Label for sort container on main screen | Sort by: |
|
|
@@ -264,7 +325,6 @@ Here is all information about **`LabelsModel`**:
|
|
|
264
325
|
| `copied` | Label for copy url button | Copied |
|
|
265
326
|
| `add` | Label for add button | Add |
|
|
266
327
|
| `configuration` | Label for configuration accordion | Configuration |
|
|
267
|
-
| `titlePlaceholder` | Placeholder/desciption about title input field name on management screen. | Provide a title for your Either/Or |
|
|
268
328
|
| `timeFormat` | Timeformat for displaying dates. Widgets uses [dayjs](https://www.npmjs.com/package/dayjs) as a date dependency. | DD.MM.YYYY, HH:mm |
|
|
269
329
|
| `previous` | Label for pagination button. | Previous |
|
|
270
330
|
| `next` | Label for pagination button. | Next |
|
|
@@ -283,6 +343,7 @@ Here is all information about **`LabelsModel`**:
|
|
|
283
343
|
| `imagePlaceholder` | Placeholder for image inputs. | Paste your image as valid URL or as relative path |
|
|
284
344
|
| `active` | Label for status. | Active |
|
|
285
345
|
| `inactive` | Label for status. | Inactive |
|
|
346
|
+
| `expired` | Label for status. | Expired |
|
|
286
347
|
| `statusDescription` | Description for status select. | When Either/Or is Inactive, then users are not allowed to participate |
|
|
287
348
|
| `winningCondition` | Label for winning condition select. | Winning condition |
|
|
288
349
|
| `winningConditionDescription` | Description for winning condition select. | Winning condition determines the correct choice out of a pair of options presented to the user. When is set to 'More,' the user must select the option that has a greater value to win. Conversely, if is set to 'Less,' the winning choice is the one with the lesser value |
|
|
@@ -319,25 +380,12 @@ Here is all information about **`LabelsModel`**:
|
|
|
319
380
|
| `entity` | Label for entity search in tag. | Entity |
|
|
320
381
|
| `campaign` | Label for context campaign container. | Campaign |
|
|
321
382
|
| `id` | Label for ID. | ID |
|
|
322
|
-
| `idContentPlaceholder` | Placeholder for ID content in context. | Type the ID of your content |
|
|
323
|
-
| `idCampaignPlaceholder` | Placeholder for ID content in campaign. | Type the ID of your campaign |
|
|
324
383
|
| `label` | Label for context content/campaign label input. | Label |
|
|
325
|
-
| `labelContentPlaceholder` | Placeholder for label content in context. | Type the content's label |
|
|
326
|
-
| `labelCampaignPlaceholder` | Placeholder for label content in campaign. | Type the campaign's label |
|
|
327
384
|
| `type` | Label for context content type input. | Type |
|
|
328
385
|
| `typeDescription` | Description paragraph for type select. | Select the Either/Or type. You can set the types in our Management Portal by going to Features, then clicking on the Either/Or page |
|
|
329
|
-
| `noType` | The default select option for Either/Or type. | No type |
|
|
330
386
|
| `deleteLabel` | Label for delete button in confirmation modal. | Delete |
|
|
331
|
-
| `cancelLabel` | Label for cancel button in confirmation modal. | Cancel |
|
|
332
|
-
| `confirmationQuestionLabel` | Paragraph in confirmation modal. | Are you sure you want to delete |
|
|
333
|
-
| `typeContentPlaceholder` | Placeholder for type content in context. | Type the content's type |
|
|
334
|
-
| `previewEitherOr` | Title in preview modal. | Preview Either/Or |
|
|
335
|
-
| `clear` | Label tippy clear button | Clear |
|
|
336
|
-
| `searchImages` | Label for search image input | Search images |
|
|
337
387
|
| `hideFilters` | Label for hyperlink to hide filters for image search | Hide filters |
|
|
338
388
|
| `showFilters` | Label for hyperlink to show filters for image search | Show filters |
|
|
339
|
-
| `dateFromTo` | Label for date from/to filter for image search | Date from/to |
|
|
340
|
-
| `dateFromToPlaceholder` | Placeholder for input date from/to filter for image search | Select Date... |
|
|
341
389
|
| `branding` | Label for branding container | Branding |
|
|
342
390
|
| `urls` | Label for branding urls container | URLs |
|
|
343
391
|
| `primaryUrl` | Label for branding primary url input | Primary URL |
|
|
@@ -377,5 +425,70 @@ Here is all information about **`LabelsModel`**:
|
|
|
377
425
|
| `generateSignedInUrlErrorMessage` | [react-toastify](https://www.npmjs.com/package/react-toastify) error message when trying to receive a signed in URL. | There was a problem generating signed in URL to store the image in bucket. Please try again |
|
|
378
426
|
| `uploadingImageErrorMessage` | [react-toastify](https://www.npmjs.com/package/react-toastify) error message when uploading image to bucket | There was a problem with uploading image to bucket. Please try again |
|
|
379
427
|
| `encryptingImageErrorMessage` | [react-toastify](https://www.npmjs.com/package/react-toastify) error message when encrypting image before uploading it to bucket | There was a problem with encrypting image before uploading it to bucket. Please try again |
|
|
380
|
-
| `
|
|
381
|
-
| `
|
|
428
|
+
| `searchSportal365ImagesErrorMessage` | [react-toastify](https://www.npmjs.com/package/react-toastify) error message when searching images from Sportal 365 API | There was a problem with searching images from Sportal 365 API. Please try again |
|
|
429
|
+
| `sortByCreatedAtAsc` | Label for sort option | Sort by created at field in ascending order |
|
|
430
|
+
| `sortByCreatedAtDesc` | Label for sort option | Sort by created at field in descending order |
|
|
431
|
+
| `sortByUpdatedAtAsc` | Label for sort option | Sort by updated at field in ascending order |
|
|
432
|
+
| `sortByUpdatedAtDesc` | Label for sort option | Sort by updated at field in descending order |
|
|
433
|
+
| `itemsPerPage` | Label for items per page filter select | Items per page |
|
|
434
|
+
| `pageNo` | Label before pagination buttons | Page No |
|
|
435
|
+
| `deleteEitherOrTitle` | Title for delete either/or modal | Delete Either/Or |
|
|
436
|
+
| `deleteEitherOrDescription` | Description for delete either/or modal | Are you sure you want to delete |
|
|
437
|
+
| `back` | Label next to back button | Back |
|
|
438
|
+
| `manageEitherOrTitle` | Title on management screen | Manage Either/Or |
|
|
439
|
+
| `manageEitherOrDescription` | Description on management screen | Manage your Either/Or game here |
|
|
440
|
+
| `mainImage` | Label for main image. | Main |
|
|
441
|
+
| `coverImage` | Label for cover image. | Cover |
|
|
442
|
+
| `mobileImage` | Label for mobile image. | Mobile |
|
|
443
|
+
| `clearImage` | Tooltip for clear image button | Clear image |
|
|
444
|
+
| `viewImage` | Tooltip for view image button | View image |
|
|
445
|
+
| `cropImage` | Tooltip for crop image button | Crop image |
|
|
446
|
+
| `aspectRatio` | Label for aspect ratio select | Aspect ratio |
|
|
447
|
+
| `crop` | Label for crop button | Crop |
|
|
448
|
+
| `rest` | Label for reset button | Reset |
|
|
449
|
+
| `sportal365Images` | Label for sportal365 images button | Sportal365 Images |
|
|
450
|
+
| `search` | Label for search | Search |
|
|
451
|
+
| `delete` | Label for delete | Delete |
|
|
452
|
+
| `schedule` | Label for schedule accordion | Schedule |
|
|
453
|
+
| `scheduledTaskNotAvailable` | Paragraph when trying to configure scheduled task for not created game | To configure scheduled tasks you need to first create your game |
|
|
454
|
+
| `deleteScheduledTaskModalTitle` | Title for delete scheduled task modal | Delete scheduled task |
|
|
455
|
+
| `deleteScheduledTaskModalParagraph` | Paragraph for delete scheduled task modal | Are you sure you want to delete the following scheduled task: |
|
|
456
|
+
| `createScheduledTaskMessage` | Toast successful message when a new scheduled task is created | You have successfully created scheduled task |
|
|
457
|
+
| `createScheduledTaskErrorMessage` | Toast error message when a new scheduled task is created | An error occurred while creating scheduled task. Please try again later |
|
|
458
|
+
| `updateScheduledTaskMessage` | Toast successful message when a scheduled task is updated | You have successfully updated scheduled task |
|
|
459
|
+
| `updateScheduledTaskErrorMessage` | Toast error message when a scheduled task is updated | An error occurred while updating scheduled task. Please try again later |
|
|
460
|
+
| `deleteScheduledTaskMessage` | Toast successful message when a scheduled task is deleted | You have successfully deleted scheduled task |
|
|
461
|
+
| `deleteScheduledTaskErrorMessage` | Toast error message when a scheduled task is deleted | An error occurred while deleting scheduled task. Please try again later |
|
|
462
|
+
| `changeStatusTo` | Label for select input in schedule accordion | Change status to: |
|
|
463
|
+
| `at` | Label for calendar input in schedule accordion | At: |
|
|
464
|
+
| `authRequirement` | Label for auth requirement select in configuration panel. | Auth Requirement |
|
|
465
|
+
| `authRequirementDescription` | Description for auth requirement select in configuration panel. | Choose the type of authentication to be used. |
|
|
466
|
+
| `free` | Label for auth requirement option. | Free |
|
|
467
|
+
| `lead` | Label for auth requirement option. | Lead |
|
|
468
|
+
| `registered` | Label for auth requirement option. | Registered |
|
|
469
|
+
| `language` | Label for language selection in configuration panel. | Language |
|
|
470
|
+
| `urlCopiedToClipboardMessage` | Toast info message when image URL is copied | URL copied to clipboard |
|
|
471
|
+
| `imageDeletedMessage` | Toast info message when image is deleted | Image deleted |
|
|
472
|
+
| `imageResetMessage` | Toast info message when image size is restored | The initial size of the image has been restored |
|
|
473
|
+
| `exports` | Label for exports tab | Exports |
|
|
474
|
+
| `exportUsersData` | Title in exports users data | Export users data |
|
|
475
|
+
| `category` | Name of column | Category |
|
|
476
|
+
| `action` | Name of column | Action |
|
|
477
|
+
| `exportAllUsersDescription` | Description for export all users category record | Export all users who participated in the game. |
|
|
478
|
+
| `fromDate` | Label for from date input | From Date |
|
|
479
|
+
| `toDate` | Label for to date input | To Date |
|
|
480
|
+
| `addOption` | Label for add option button | Add option |
|
|
481
|
+
| `removeOption` | Label for remove option button | Remove option |
|
|
482
|
+
| `additionalFields` | Label for additional fields | Additional fields |
|
|
483
|
+
| `addImages` | Label for add images checkbox | Add images |
|
|
484
|
+
| `addPoint` | Label for add point button | Add point |
|
|
485
|
+
| `removePoint` | Label for remove point button | Remove point |
|
|
486
|
+
| `reports` | Label for tab | Reports |
|
|
487
|
+
| `standings` | Label for tab | Standings |
|
|
488
|
+
| `participations` | Label for participations chart legend | Participations |
|
|
489
|
+
| `performanceByDay` | Label for participations chart legend | Performance by day |
|
|
490
|
+
| `chartErrorMessage` | Toast error message when fetching the game participation fails |
|
|
491
|
+
There was a problem with fetching information about qgameuiz participation. Please try again |
|
|
492
|
+
| `noStandingsAvailable` | Paragraph when no standings is still available | No standings available. |
|
|
493
|
+
| `standingsErrorMessage` | Toast error message when fetching the game staindings fails | There was a problem with fetching information about either/or game standings. Please try again |
|
|
494
|
+
| `name` | Label for name | Name |
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
type EitherOrsCardProps = {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
};
|
|
5
|
+
declare const EitherOrsCard: React.FC<EitherOrsCardProps>;
|
|
3
6
|
export default EitherOrsCard;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { EitherOrBasicModel } from 'fansunited-sdk-esm';
|
|
3
|
+
type ActionsMenuProps = {
|
|
4
|
+
eitherOr: EitherOrBasicModel;
|
|
5
|
+
onClickEdit: () => void;
|
|
6
|
+
onDelete: () => void;
|
|
7
|
+
};
|
|
8
|
+
declare const ActionsMenu: React.FC<ActionsMenuProps>;
|
|
9
|
+
export default ActionsMenu;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { EitherOrBasicModel } from 'fansunited-sdk-esm';
|
|
3
|
+
export declare const displayName: (nickname: string | undefined) => string;
|
|
4
|
+
type EitherOrStandingsProps = {
|
|
5
|
+
game: EitherOrBasicModel;
|
|
6
|
+
};
|
|
7
|
+
declare const EitherOrStandings: React.FC<EitherOrStandingsProps>;
|
|
8
|
+
export default EitherOrStandings;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { EitherOrBasicModel } from 'fansunited-sdk-esm';
|
|
3
|
+
type EitherOrRowProps = {
|
|
4
|
+
row: EitherOrBasicModel;
|
|
5
|
+
onClickEdit: () => void;
|
|
6
|
+
onDelete: () => void;
|
|
7
|
+
};
|
|
8
|
+
declare const EitherOrRow: React.FC<EitherOrRowProps>;
|
|
9
|
+
export default EitherOrRow;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { EitherOrBasicModel } from 'fansunited-sdk-esm';
|
|
3
|
+
type EitherOrsTableProps = {
|
|
4
|
+
pageGames: Map<number, EitherOrBasicModel[]>;
|
|
5
|
+
pageCount: number;
|
|
6
|
+
gamesPerPage: number;
|
|
7
|
+
getPreviousPage: () => void;
|
|
8
|
+
getNextPage: () => void;
|
|
9
|
+
onClickEdit: (id: string) => void;
|
|
10
|
+
onDelete: () => void;
|
|
11
|
+
};
|
|
12
|
+
declare const EitherOrsTable: React.FC<EitherOrsTableProps>;
|
|
13
|
+
export default EitherOrsTable;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
type TablePaginationProps = {
|
|
3
|
+
pageCount: number;
|
|
4
|
+
disablePreviousPage: boolean;
|
|
5
|
+
disableNextPage: boolean;
|
|
6
|
+
goToPreviousPage: () => void;
|
|
7
|
+
goToNextPage: () => void;
|
|
8
|
+
};
|
|
9
|
+
declare const TablePagination: React.FC<TablePaginationProps>;
|
|
10
|
+
export default TablePagination;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React,
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { default as React, Dispatch, SetStateAction } from 'react';
|
|
2
|
+
import { default as SelectOption } from '../../models/Select/SelectOption';
|
|
3
|
+
import { default as EitherOrFiltersModel } from '../../models/Filters/EitherOrFiltersModel';
|
|
4
4
|
type FiltersProps = {
|
|
5
5
|
filters: EitherOrFiltersModel;
|
|
6
6
|
options: SelectOption[];
|
package/components/Main.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import LabelsModel from '../models/Labels/LabelsModel';
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { default as LabelsModel } from '../models/Labels/LabelsModel';
|
|
3
3
|
type MainProps = {
|
|
4
4
|
fansUnitedApiKey: string;
|
|
5
5
|
fansUnitedClientId: string;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { default as RequestBody } from '../../models/RequestBody/RequestBody';
|
|
3
3
|
type MainColumnProps = {
|
|
4
|
-
requestBody:
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
setDescription: Dispatch<SetStateAction<string>>;
|
|
4
|
+
requestBody: RequestBody;
|
|
5
|
+
isEditMode: boolean;
|
|
6
|
+
onRequestBodyUpdate: (body: RequestBody) => void;
|
|
8
7
|
};
|
|
9
8
|
declare const MainColumn: React.FC<MainColumnProps>;
|
|
10
9
|
export default MainColumn;
|
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import EitherOrFiltersModel from '../../models/Filters/EitherOrFiltersModel';
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { default as RequestBody } from '../../models/RequestBody/RequestBody';
|
|
4
3
|
type ManageEitherOrProps = {
|
|
5
|
-
eitherOrById:
|
|
6
|
-
|
|
7
|
-
toggleScreen: () => void;
|
|
8
|
-
clearEitherOrById: () => void;
|
|
4
|
+
eitherOrById: RequestBody | null;
|
|
5
|
+
onClickBack: () => void;
|
|
9
6
|
};
|
|
10
7
|
declare const ManageEitherOr: React.FC<ManageEitherOrProps>;
|
|
11
8
|
export default ManageEitherOr;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { IEitherOrOption } from '../../../models/RequestBody/RequestBody';
|
|
3
|
+
type AdditionalOptionFieldProps = {
|
|
4
|
+
option: IEitherOrOption;
|
|
5
|
+
field: string;
|
|
6
|
+
onChange: (option: IEitherOrOption) => void;
|
|
7
|
+
};
|
|
8
|
+
declare const AdditionalOptionField: React.FC<AdditionalOptionFieldProps>;
|
|
9
|
+
export default AdditionalOptionField;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
type CheckboxesProps = {
|
|
3
|
+
label: string;
|
|
4
|
+
values: string[];
|
|
5
|
+
allValues: string[];
|
|
6
|
+
valuesMap: Record<string, string>;
|
|
7
|
+
showAll?: boolean;
|
|
8
|
+
showAllLabel?: string;
|
|
9
|
+
onChange: (values: string[]) => void;
|
|
10
|
+
toggleShowAll?: () => void;
|
|
11
|
+
};
|
|
12
|
+
declare const Checkboxes: React.FC<CheckboxesProps>;
|
|
13
|
+
export default Checkboxes;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { IEitherOrOption } from '../../../models/RequestBody/RequestBody';
|
|
3
|
+
type OptionProps = {
|
|
4
|
+
option: IEitherOrOption;
|
|
5
|
+
optionNumber: number;
|
|
6
|
+
isEditMode: boolean;
|
|
7
|
+
additionalFields: string[];
|
|
8
|
+
disableDelete: boolean;
|
|
9
|
+
onDelete: () => void;
|
|
10
|
+
onChange: (option: IEitherOrOption) => void;
|
|
11
|
+
};
|
|
12
|
+
declare const Option: React.FC<OptionProps>;
|
|
13
|
+
export default Option;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { IEitherOrOption } from '../../../models/
|
|
3
|
-
import RequestBody from '../../../models/RequestBody/RequestBody';
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { IEitherOrOption } from '../../../models/RequestBody/RequestBody';
|
|
4
3
|
type OptionsProps = {
|
|
4
|
+
isEditMode: boolean;
|
|
5
|
+
isGamePlayed: boolean;
|
|
5
6
|
options: IEitherOrOption[];
|
|
6
|
-
|
|
7
|
+
onChange: (options: IEitherOrOption[]) => void;
|
|
7
8
|
};
|
|
8
9
|
declare const Options: React.FC<OptionsProps>;
|
|
9
10
|
export default Options;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { IEitherOrPoints } from '../../../models/
|
|
3
|
-
import RequestBody from '../../../models/RequestBody/RequestBody';
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { IEitherOrPoints } from '../../../models/RequestBody/RequestBody';
|
|
4
3
|
type PointsProps = {
|
|
5
4
|
points: IEitherOrPoints[];
|
|
6
|
-
|
|
5
|
+
isGamePlayed: boolean;
|
|
6
|
+
onChange: (options: IEitherOrPoints[]) => void;
|
|
7
7
|
};
|
|
8
8
|
declare const Points: React.FC<PointsProps>;
|
|
9
9
|
export default Points;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { default as RequestBody } from '../../../../models/RequestBody/RequestBody';
|
|
3
|
+
type ConfigurationProps = {
|
|
4
|
+
requestBody: RequestBody;
|
|
5
|
+
onRequestBodyUpdate: (body: RequestBody) => void;
|
|
6
|
+
};
|
|
7
|
+
declare const Configuration: React.FC<ConfigurationProps>;
|
|
8
|
+
export default Configuration;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import { default as React } from 'react';
|
|
2
2
|
type TypeProps = {
|
|
3
3
|
defaultValue: string;
|
|
4
|
-
onChange: (
|
|
4
|
+
onChange: (type: string) => void;
|
|
5
5
|
};
|
|
6
6
|
declare const Type: React.FC<TypeProps>;
|
|
7
7
|
export default Type;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { default as RequestBody } from '../../../models/RequestBody/RequestBody';
|
|
3
|
+
type SideBarProps = {
|
|
4
|
+
requestBody: RequestBody;
|
|
5
|
+
onRequestBodyUpdate: (body: RequestBody) => void;
|
|
6
|
+
};
|
|
7
|
+
declare const SideBar: React.FC<SideBarProps>;
|
|
8
|
+
export default SideBar;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { EitherOrBasicModel } from 'fansunited-sdk-esm';
|
|
3
|
+
type DeleteEitherOrModalProps = {
|
|
4
|
+
isOpen: boolean;
|
|
5
|
+
eitherOr: EitherOrBasicModel;
|
|
6
|
+
onDelete: () => void;
|
|
7
|
+
onClose: (e: any) => void;
|
|
8
|
+
};
|
|
9
|
+
declare const DeleteEitherOrModal: React.FC<DeleteEitherOrModalProps>;
|
|
10
|
+
export default DeleteEitherOrModal;
|