@agilemotion/oui-react-js 1.3.8 → 1.3.9
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.TXT +1 -0
- package/dist/ApplicationContext.js +161 -284
- package/dist/BasicApp.js +1 -1
- package/dist/BasicAppHome.js +17 -4
- package/dist/BusinessPortalApp.js +1 -1
- package/dist/BusinessPortalAppHome.js +10 -39
- package/dist/DynamicJS.js +20 -52
- package/dist/RestUtils.js +83 -108
- package/dist/Utils.js +36 -30
- package/dist/assets/jss/components/authNavbarStyle.js +34 -35
- package/dist/assets/jss/components/cardHeaderStyle.js +12 -12
- package/dist/assets/jss/components/customDropdownStyle.js +26 -26
- package/dist/assets/jss/components/customInputStyle.js +2 -8
- package/dist/assets/jss/components/dropdownStyle.js +10 -15
- package/dist/assets/jss/components/footerStyle.js +12 -18
- package/dist/assets/jss/components/headerLinksStyle.js +7 -13
- package/dist/assets/jss/components/headerStyle.js +24 -25
- package/dist/assets/jss/components/navbarLinksStyle.js +7 -13
- package/dist/assets/jss/components/navbarStyle.js +24 -25
- package/dist/assets/jss/components/sidebarStyle.js +41 -43
- package/dist/assets/jss/components/typographyStyle.js +2 -8
- package/dist/assets/jss/rootStyle.js +32 -47
- package/dist/assets/jss/views/layoutStyle.js +6 -11
- package/dist/assets/jss/views/loginStyle.js +4 -10
- package/dist/assets/lotties/call-loading.json +1 -0
- package/dist/assets/lotties/calling-2.json +1 -0
- package/dist/assets/lotties/calling.json +1 -0
- package/dist/assets/lotties/calling2.json +1 -0
- package/dist/assets/lotties/chat.json +1 -0
- package/dist/assets/lotties/join.json +1 -0
- package/dist/assets/lotties/loading.json +1 -0
- package/dist/assets/lotties/msg2.json +1 -0
- package/dist/assets/lotties/recording.json +1 -0
- package/dist/assets/lotties/waiting.json +1 -0
- package/dist/assets/scss/black-dashboard-react/bootstrap/_card.scss +5 -5
- package/dist/assets/scss/black-dashboard-react/bootstrap/_carousel.scss +2 -2
- package/dist/assets/scss/black-dashboard-react/bootstrap/_custom-forms.scss +3 -3
- package/dist/assets/scss/black-dashboard-react/bootstrap/_functions.scss +1 -1
- package/dist/assets/scss/black-dashboard-react/bootstrap/_images.scss +1 -1
- package/dist/assets/scss/black-dashboard-react/bootstrap/_jumbotron.scss +1 -1
- package/dist/assets/scss/black-dashboard-react/bootstrap/_popover.scss +7 -5
- package/dist/assets/scss/black-dashboard-react/bootstrap/_tooltip.scss +4 -4
- package/dist/assets/scss/black-dashboard-react/bootstrap/_variables.scss +5 -5
- package/dist/assets/scss/black-dashboard-react/bootstrap/mixins/_grid-framework.scss +2 -2
- package/dist/assets/scss/black-dashboard-react/bootstrap/mixins/_grid.scss +11 -9
- package/dist/assets/scss/black-dashboard-react/bootstrap/utilities/_embed.scss +6 -4
- package/dist/assets/scss/black-dashboard-react/custom/_variables.scss +1 -1
- package/dist/components/AlertBar.js +39 -80
- package/dist/components/AlertItem.js +4 -26
- package/dist/components/Button.js +24 -36
- package/dist/components/Calendar.js +478 -0
- package/dist/components/Calender.css +244 -0
- package/dist/components/ConfirmationDialog.js +5 -29
- package/dist/components/DataGrid.js +169 -338
- package/dist/components/DataGridColumn.js +5 -28
- package/dist/components/DataGridFilter.js +46 -114
- package/dist/components/DataGridHeading.js +11 -19
- package/dist/components/Dialog.js +27 -121
- package/dist/components/DocumentViewer.js +8 -34
- package/dist/components/DocumentViewerComponent.js +2 -20
- package/dist/components/FileThumb.js +115 -0
- package/dist/components/Graph.js +25 -75
- package/dist/components/GraphNode.js +4 -21
- package/dist/components/HtmlPanel.js +59 -78
- package/dist/components/Icon.js +99 -1
- package/dist/components/LoadingIndicator.js +4 -4
- package/dist/components/LottieIcon.js +134 -0
- package/dist/components/PopupView.js +2 -20
- package/dist/components/RegularButton.js +15 -19
- package/dist/components/SignaturePanel.js +9 -40
- package/dist/components/SocketManager.js +170 -0
- package/dist/components/StepperTitleBar.js +30 -56
- package/dist/components/TabPage.js +6 -9
- package/dist/components/TabPanel.js +41 -98
- package/dist/components/TableCellContent.js +30 -38
- package/dist/components/TemplateDesigner.js +107 -151
- package/dist/components/TemplateItemEventHandler.js +33 -100
- package/dist/components/TemplateTable.js +6 -42
- package/dist/components/TitleBar.js +35 -52
- package/dist/components/Toolbar.js +33 -179
- package/dist/components/Tree.js +27 -64
- package/dist/components/card/Card.js +16 -20
- package/dist/components/card/CardAvatar.js +9 -13
- package/dist/components/card/CardBody.js +13 -17
- package/dist/components/card/CardFooter.js +12 -16
- package/dist/components/card/CardHeader.js +13 -17
- package/dist/components/card/CardIcon.js +6 -10
- package/dist/components/card/CardText.js +6 -10
- package/dist/components/customInput/CustomInput.js +12 -10
- package/dist/components/dashboard/BasicBusinessAppDashboard.js +79 -155
- package/dist/components/dashboard/BusinessPortalAppDashboard.js +30 -75
- package/dist/components/dashboard/components/Header.js +8 -25
- package/dist/components/dashboard/components/LeftDrawer.js +3 -1
- package/dist/components/dashboard/components/blackDashboard/fixedPlugin/FixedPlugin.js +1 -1
- package/dist/components/dashboard/components/blackDashboard/sidebar/Sidebar.js +138 -30
- package/dist/components/footer/Footer.js +6 -18
- package/dist/components/form/AddressSearch.js +32 -66
- package/dist/components/form/AutoComplete.js +160 -0
- package/dist/components/form/BaseField.js +66 -96
- package/dist/components/form/DatePicker.js +3 -21
- package/dist/components/form/FieldSet.js +158 -180
- package/dist/components/form/Form.css +1 -1
- package/dist/components/form/Form.js +137 -471
- package/dist/components/form/GridField.js +46 -146
- package/dist/components/form/IconField.js +35 -0
- package/dist/components/form/ImageEditor.js +19 -57
- package/dist/components/form/LookupField.js +8 -29
- package/dist/components/form/MultiFileUploadField.js +186 -0
- package/dist/components/form/RadioGroup.js +1 -16
- package/dist/components/form/Section.js +31 -92
- package/dist/components/form/SelectItem.js +14 -33
- package/dist/components/form/SignatureTemplateDesignerField.js +0 -1
- package/dist/components/form/Switch.js +53 -0
- package/dist/components/form/TextField.js +10 -17
- package/dist/components/form/TimePicker.js +7 -1
- package/dist/components/form/TransferList.css +2 -2
- package/dist/components/form/TransferList.js +67 -125
- package/dist/components/form/UploadField.js +27 -79
- package/dist/components/form/fieldset.css +8 -0
- package/dist/components/grid/GridContainer.js +5 -9
- package/dist/components/grid/GridItem.js +5 -9
- package/dist/components/layout/CollapsiblePanel.js +11 -33
- package/dist/components/layout/Layout.js +175 -290
- package/dist/components/layout/VC.css +17 -0
- package/dist/components/layout/View.css +17 -1
- package/dist/components/layout/View.js +77 -194
- package/dist/components/loader.css +1 -1
- package/dist/components/media/ClosablePanel.css +37 -0
- package/dist/components/media/ClosablePanel.js +53 -0
- package/dist/components/media/LobbyWaitingList.js +91 -0
- package/dist/components/media/MediaSoupHelper.js +223 -0
- package/dist/components/media/Recorder.js +235 -0
- package/dist/components/media/SideBarContent.css +54 -0
- package/dist/components/media/SideBarContent.js +46 -0
- package/dist/components/media/SocketRequest.js +20 -0
- package/dist/components/media/SocketResponse.js +16 -0
- package/dist/components/media/Timer.css +30 -0
- package/dist/components/media/Timer.js +88 -0
- package/dist/components/media/Toolbar.css +20 -0
- package/dist/components/media/Toolbar.js +470 -0
- package/dist/components/media/Tracks.js +39 -0
- package/dist/components/media/TrainingRoom.js +531 -0
- package/dist/components/media/Transports.js +35 -0
- package/dist/components/media/VCEventManager.js +74 -0
- package/dist/components/media/VCEventType.js +164 -0
- package/dist/components/media/VCParticipantList.css +72 -0
- package/dist/components/media/VCParticipantList.js +56 -0
- package/dist/components/media/VCParticipantListItem.css +73 -0
- package/dist/components/media/VCParticipantListItem.js +319 -0
- package/dist/components/media/VCRoom.css +42 -0
- package/dist/components/media/VCRoom.js +90 -0
- package/dist/components/media/VCRoomParticipant.css +25 -0
- package/dist/components/media/VCRoomParticipant.js +806 -0
- package/dist/components/media/VCRoomWorkspace.css +86 -0
- package/dist/components/media/VCRoomWorkspace.js +653 -0
- package/dist/components/media/Video.css +4 -0
- package/dist/components/media/Video.js +131 -0
- package/dist/components/media/chat/ChatRoom.js +926 -0
- package/dist/components/media/chat/ChatRoomItem.js +83 -0
- package/dist/components/media/chat/ChatRoomList.js +78 -0
- package/dist/components/media/chat/ChatRooms.scss +567 -0
- package/dist/components/menu/CollapsibleMenu.js +2 -19
- package/dist/components/menu/MenuBars.js +6 -33
- package/dist/components/menu/MenuButton.js +7 -35
- package/dist/components/menu/MenuItem.js +3 -20
- package/dist/components/menu/MenuLink.js +18 -12
- package/dist/components/navbars/AuthNavbar.js +5 -18
- package/dist/components/navbars/HomeNavbar.js +3 -5
- package/dist/components/navbars/PortalNavbar.js +4 -22
- package/dist/components/signatures/AgilitySignaturePanel.js +35 -101
- package/dist/components/signatures/AlertItem.js +3 -24
- package/dist/components/signatures/DocumentContainer.js +47 -134
- package/dist/components/signatures/ImageSignatureInput.js +8 -35
- package/dist/components/signatures/MenuButton.js +1 -16
- package/dist/components/signatures/Prompt.js +3 -24
- package/dist/components/signatures/ResponsiveTable.js +42 -83
- package/dist/components/signatures/SearchView.js +13 -50
- package/dist/components/signatures/SignatorySearch.js +83 -99
- package/dist/components/signatures/SignatorySearchForm.js +11 -17
- package/dist/components/signatures/SignatureInput.js +15 -44
- package/dist/components/signatures/SignatureInputProps.js +18 -60
- package/dist/components/signatures/SignatureTemplateDesigner.js +147 -235
- package/dist/components/signatures/Toolbar.js +7 -34
- package/dist/components/signatures/ViewUtils.js +2 -6
- package/dist/components/typography/Danger.js +3 -1
- package/dist/components/typography/Info.js +3 -1
- package/dist/components/typography/Link.js +6 -2
- package/dist/event/ActionHandlers.js +3 -3
- package/dist/event/EventType.js +7 -1
- package/dist/event/LoadDataActionHandler.js +1 -1
- package/dist/event/Observable.js +56 -168
- package/dist/event/RouteActionHandler.js +45 -11
- package/dist/event/ServiceCallActionHandler.js +34 -24
- package/dist/js/Addresses.js +10 -8
- package/dist/js/Media.js +157 -0
- package/dist/redux/store/ConfigureStore.js +3 -9
- package/dist/redux/store/DashboardStore.js +42 -94
- package/dist/redux/store/SecurityStore.js +15 -50
- package/dist/view/Dashboard.js +242 -163
- package/dist/view/security/ChangePasswordBasic.js +23 -76
- package/dist/view/security/ForgotPassword.js +9 -42
- package/dist/view/security/ForgotPasswordBasic.js +8 -41
- package/dist/view/security/Login.js +11 -47
- package/dist/view/security/LoginBasic.js +8 -41
- package/dist/view/security/LoginBusinessPortal.js +8 -41
- package/dist/view/security/ResetPassword.js +9 -47
- package/dist/view/security/ResetPasswordBasic.js +21 -71
- package/dist/view/security/Security.js +1 -0
- package/package.json +29 -13
- package/README.md +0 -1623
- package/dist/components/dashboard/BasicApp.js +0 -140
- package/dist/components/navbars/NavbarLinks.js +0 -212
- package/dist/components/signatures/OLD.js +0 -1138
|
@@ -25,35 +25,45 @@ class ServiceCallActionHandler {
|
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
execute(actionConfig, event, component, currentViewId, successCallback, errorCallback, invalidParameterCallback) {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
if (actionConfig.service.type === 'rpc' || actionConfig.service.type === 'rest') {
|
|
29
|
+
let method = actionConfig.service.type === 'rpc' ? _RestUtils.invokeRpc : _RestUtils.invokeRest;
|
|
30
|
+
method(actionConfig.service, component, currentViewId, result => {
|
|
31
|
+
let handle = !_Utils.default.isNull(component) && !_Utils.default.isNull(component.current) ? component.current : component;
|
|
31
32
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
33
|
+
if (!_Utils.default.isNull(actionConfig.postScript)) {
|
|
34
|
+
try {
|
|
35
|
+
let valuesMap = {};
|
|
36
|
+
valuesMap.response = result.data;
|
|
36
37
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
_DynamicJS.default.executeScriptObject('postScript_' + currentViewId + '_' + handle.getId(), actionConfig.postScript, handle.getId(), valuesMap);
|
|
39
|
+
} catch (e) {
|
|
40
|
+
console.error(e);
|
|
41
|
+
}
|
|
40
42
|
}
|
|
41
|
-
}
|
|
42
43
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
44
|
+
if (!_Utils.default.isNull(successCallback)) {
|
|
45
|
+
successCallback(result);
|
|
46
|
+
}
|
|
47
|
+
}, e => {
|
|
48
|
+
if (!e.dataType) {
|
|
49
|
+
_Utils.default.publishSystemErrorMessage(currentViewId, component);
|
|
50
|
+
} else {
|
|
51
|
+
if (e.message) {
|
|
52
|
+
_Utils.default.publishErrorMessage(e.message, currentViewId, component);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
48
55
|
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
56
|
+
if (!_Utils.default.isNull(errorCallback)) {
|
|
57
|
+
errorCallback(e);
|
|
58
|
+
}
|
|
59
|
+
}, () => {
|
|
60
|
+
if (invalidParameterCallback) {
|
|
61
|
+
invalidParameterCallback();
|
|
62
|
+
}
|
|
63
|
+
}, actionConfig.returnValueBinding, actionConfig.successMessage, event);
|
|
64
|
+
} else {
|
|
65
|
+
console.error("Unknown service type : " + actionConfig.service.type);
|
|
66
|
+
}
|
|
57
67
|
}
|
|
58
68
|
|
|
59
69
|
}
|
package/dist/js/Addresses.js
CHANGED
|
@@ -12,14 +12,16 @@ class Addresses {
|
|
|
12
12
|
|
|
13
13
|
copy(from, to, checked, mode = 'line') {
|
|
14
14
|
if (checked) {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
let
|
|
18
|
-
let
|
|
19
|
-
let
|
|
20
|
-
let
|
|
21
|
-
let
|
|
22
|
-
let
|
|
15
|
+
var _this$resolver$resolv, _this$resolver$resolv2, _this$resolver$resolv3, _this$resolver$resolv4, _this$resolver$resolv5, _this$resolver$resolv6, _this$resolver$resolv7, _this$resolver$resolv8;
|
|
16
|
+
|
|
17
|
+
let street = (_this$resolver$resolv = this.resolver.resolveComponentApi(from + (mode === 'street' ? '.street' : '.line1'))) === null || _this$resolver$resolv === void 0 ? void 0 : _this$resolver$resolv.value;
|
|
18
|
+
let suburb = (_this$resolver$resolv2 = this.resolver.resolveComponentApi(from + (mode === 'street' ? '.suburb' : '.line2'))) === null || _this$resolver$resolv2 === void 0 ? void 0 : _this$resolver$resolv2.value;
|
|
19
|
+
let city = (_this$resolver$resolv3 = this.resolver.resolveComponentApi(from + (mode === 'street' ? '.city' : '.line3'))) === null || _this$resolver$resolv3 === void 0 ? void 0 : _this$resolver$resolv3.value;
|
|
20
|
+
let municipality = (_this$resolver$resolv4 = this.resolver.resolveComponentApi(from + (mode === 'street' ? '.municipality' : '.line4'))) === null || _this$resolver$resolv4 === void 0 ? void 0 : _this$resolver$resolv4.value;
|
|
21
|
+
let province = (_this$resolver$resolv5 = this.resolver.resolveComponentApi(from + (mode === 'street' ? '.province' : '.line5'))) === null || _this$resolver$resolv5 === void 0 ? void 0 : _this$resolver$resolv5.value;
|
|
22
|
+
let country = (_this$resolver$resolv6 = this.resolver.resolveComponentApi(from + (mode === 'street' ? '.country' : '.line6'))) === null || _this$resolver$resolv6 === void 0 ? void 0 : _this$resolver$resolv6.value;
|
|
23
|
+
let code = (_this$resolver$resolv7 = this.resolver.resolveComponentApi(from + '.code')) === null || _this$resolver$resolv7 === void 0 ? void 0 : _this$resolver$resolv7.value;
|
|
24
|
+
let building = (_this$resolver$resolv8 = this.resolver.resolveComponentApi(from + '.building')) === null || _this$resolver$resolv8 === void 0 ? void 0 : _this$resolver$resolv8.value;
|
|
23
25
|
this.resolver.resolveComponentApi(to + (mode === 'street' ? '.street' : '.line1')).value = street;
|
|
24
26
|
this.resolver.resolveComponentApi(to + (mode === 'street' ? '.suburb' : '.line2')).value = suburb;
|
|
25
27
|
this.resolver.resolveComponentApi(to + (mode === 'street' ? '.city' : '.line3')).value = city;
|
package/dist/js/Media.js
ADDED
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = exports.Media = void 0;
|
|
7
|
+
|
|
8
|
+
var _SocketResponse = _interopRequireDefault(require("../components/media/SocketResponse"));
|
|
9
|
+
|
|
10
|
+
var _SocketManager = _interopRequireDefault(require("../components/SocketManager"));
|
|
11
|
+
|
|
12
|
+
var _SocketRequest = _interopRequireDefault(require("../components/media/SocketRequest"));
|
|
13
|
+
|
|
14
|
+
var _Event = _interopRequireDefault(require("../event/Event"));
|
|
15
|
+
|
|
16
|
+
var _Observable = _interopRequireDefault(require("../event/Observable"));
|
|
17
|
+
|
|
18
|
+
var _ApplicationContext = _interopRequireDefault(require("../ApplicationContext"));
|
|
19
|
+
|
|
20
|
+
var _VCEventType = require("../components/media/VCEventType");
|
|
21
|
+
|
|
22
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
23
|
+
|
|
24
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
25
|
+
|
|
26
|
+
class Media {
|
|
27
|
+
constructor(resolver) {
|
|
28
|
+
_defineProperty(this, "requestToJoinMeeting", calendarEvent => {
|
|
29
|
+
return new Promise((resolve, reject) => {
|
|
30
|
+
let component = {
|
|
31
|
+
api: _ApplicationContext.default.resolveComponentApi('settingsNext')
|
|
32
|
+
};
|
|
33
|
+
let event = new _Event.default(component, 'vcSettings', null);
|
|
34
|
+
|
|
35
|
+
try {
|
|
36
|
+
if (calendarEvent.host.username === calendarEvent.host.username) {
|
|
37
|
+
resolve(_SocketResponse.default.JOIN_MEETING_PERMIT);
|
|
38
|
+
|
|
39
|
+
_Observable.default.fireEvent(_VCEventType.VCEventType.JOIN_MEETING_PERMIT, event);
|
|
40
|
+
} else {
|
|
41
|
+
_SocketManager.default.emitEvent(_SocketRequest.default.REQUEST_TO_JOIN_MEETING, {
|
|
42
|
+
userId: sessionStorage.getItem("username"),
|
|
43
|
+
hostId: calendarEvent.host.username,
|
|
44
|
+
askToJoin: calendarEvent.askToJoin,
|
|
45
|
+
meetingId: calendarEvent.id
|
|
46
|
+
}).then(result => {
|
|
47
|
+
let outcome = result.outcome;
|
|
48
|
+
resolve(outcome);
|
|
49
|
+
|
|
50
|
+
if (outcome === _SocketResponse.default.JOIN_MEETING_PERMIT) {
|
|
51
|
+
_Observable.default.fireEvent(_VCEventType.VCEventType.JOIN_MEETING_PERMIT, event);
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
} catch (e) {
|
|
56
|
+
reject(e);
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
_defineProperty(this, "joinMeeting", (calendarEvent, settings, userFullName) => {
|
|
62
|
+
let result = {};
|
|
63
|
+
return new Promise((resolve, reject) => {
|
|
64
|
+
try {
|
|
65
|
+
_SocketManager.default.emitEvent(_SocketRequest.default.JOIN_MEETING, {
|
|
66
|
+
meetingId: calendarEvent.id,
|
|
67
|
+
userFullName: userFullName,
|
|
68
|
+
userId: sessionStorage.getItem("username"),
|
|
69
|
+
avatarId: sessionStorage.getItem("userAvataId"),
|
|
70
|
+
isHost: sessionStorage.getItem("username") === calendarEvent.host.username,
|
|
71
|
+
settings: settings,
|
|
72
|
+
profile: _SocketManager.default.getProfile()
|
|
73
|
+
}).then(response => {
|
|
74
|
+
result.status = response.status;
|
|
75
|
+
|
|
76
|
+
if (response.status === 'SUCCESS') {
|
|
77
|
+
result.rtpCapabilities = response.data.rtpCapabilities;
|
|
78
|
+
result.shareScreenProducerData = response.data.shareScreenProducerData;
|
|
79
|
+
result.participants = response.data.usersInRoom;
|
|
80
|
+
|
|
81
|
+
if (sessionStorage.getItem("username") === calendarEvent.host.username) {
|
|
82
|
+
_SocketManager.default.emitEvent(_SocketRequest.default.GET_LOBBY, {
|
|
83
|
+
meetingId: calendarEvent.id
|
|
84
|
+
}).then(getLobbyResponse => {
|
|
85
|
+
if (getLobbyResponse.status === 'SUCCESS' && getLobbyResponse.lobby && getLobbyResponse.lobby.people) {
|
|
86
|
+
result.lobby = [];
|
|
87
|
+
|
|
88
|
+
for (const person of getLobbyResponse.lobby.people) {
|
|
89
|
+
result.lobby.push(person);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
resolve(result);
|
|
96
|
+
} else {
|
|
97
|
+
reject(result);
|
|
98
|
+
}
|
|
99
|
+
}).catch(error => {
|
|
100
|
+
reject(error);
|
|
101
|
+
});
|
|
102
|
+
} catch (e) {
|
|
103
|
+
reject(e);
|
|
104
|
+
}
|
|
105
|
+
});
|
|
106
|
+
});
|
|
107
|
+
|
|
108
|
+
_defineProperty(this, "hasConnectedMediaDevices", () => {
|
|
109
|
+
return new Promise(resolve => {
|
|
110
|
+
navigator.mediaDevices.enumerateDevices().then(devices => {
|
|
111
|
+
try {
|
|
112
|
+
let audioConnected = false;
|
|
113
|
+
let videoConnected = false;
|
|
114
|
+
devices.forEach(device => {
|
|
115
|
+
if ('audioinput' === device.kind) {
|
|
116
|
+
audioConnected = true;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
if ('videoinput' === device.kind) {
|
|
120
|
+
videoConnected = true;
|
|
121
|
+
}
|
|
122
|
+
});
|
|
123
|
+
resolve({
|
|
124
|
+
audioConnected,
|
|
125
|
+
videoConnected
|
|
126
|
+
});
|
|
127
|
+
} catch (e) {
|
|
128
|
+
resolve({
|
|
129
|
+
audioConnected: false,
|
|
130
|
+
videoConnected: false
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
});
|
|
134
|
+
});
|
|
135
|
+
});
|
|
136
|
+
|
|
137
|
+
_defineProperty(this, "getAvStatusMessage", avStatus => {
|
|
138
|
+
let errorMessage = '';
|
|
139
|
+
|
|
140
|
+
if (!avStatus.audioConnected || !avStatus.videoConnected) {
|
|
141
|
+
errorMessage = 'No ' + (!avStatus.audioConnected ? 'audio ' : '');
|
|
142
|
+
errorMessage += !avStatus.videoConnected ? !avStatus.audioConnected ? 'and video' : 'video ' : '';
|
|
143
|
+
errorMessage += ' device' + (!avStatus.audioConnected && !avStatus.videoConnected ? 's' : '') + ' connected';
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
return errorMessage;
|
|
147
|
+
});
|
|
148
|
+
|
|
149
|
+
this.resolver = resolver;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
exports.Media = Media;
|
|
155
|
+
const instance = new Media();
|
|
156
|
+
var _default = instance;
|
|
157
|
+
exports.default = _default;
|
|
@@ -15,18 +15,12 @@ var Security = _interopRequireWildcard(require("./SecurityStore"));
|
|
|
15
15
|
|
|
16
16
|
var Dashboard = _interopRequireWildcard(require("./DashboardStore"));
|
|
17
17
|
|
|
18
|
-
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function
|
|
18
|
+
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; }
|
|
19
19
|
|
|
20
20
|
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
21
21
|
|
|
22
22
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
23
23
|
|
|
24
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
|
25
|
-
|
|
26
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
27
|
-
|
|
28
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
29
|
-
|
|
30
24
|
function ConfigureStore(history, initialState) {
|
|
31
25
|
const reducers = {
|
|
32
26
|
security: Security.reducer,
|
|
@@ -41,8 +35,8 @@ function ConfigureStore(history, initialState) {
|
|
|
41
35
|
enhancers.push(window.devToolsExtension());
|
|
42
36
|
}
|
|
43
37
|
|
|
44
|
-
const rootReducer = (0, _redux.combineReducers)(
|
|
38
|
+
const rootReducer = (0, _redux.combineReducers)({ ...reducers,
|
|
45
39
|
router: (0, _connectedReactRouter.connectRouter)(history)
|
|
46
|
-
})
|
|
40
|
+
});
|
|
47
41
|
return (0, _redux.createStore)(rootReducer, initialState, (0, _redux.compose)((0, _redux.applyMiddleware)(...middleware), ...enhancers));
|
|
48
42
|
}
|
|
@@ -7,16 +7,6 @@ exports.reducer = exports.actionCreators = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _RestUtils = require("../../RestUtils");
|
|
9
9
|
|
|
10
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
|
11
|
-
|
|
12
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
13
|
-
|
|
14
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
15
|
-
|
|
16
|
-
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
17
|
-
|
|
18
|
-
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
19
|
-
|
|
20
10
|
const requestType = 'REQUEST';
|
|
21
11
|
const receiveDashboardSettingsType = 'RECEIVE_DASHBOARD_SETTINGS';
|
|
22
12
|
const activeRouteMenu = 'ACTIVE_ROUTE_MENU';
|
|
@@ -25,86 +15,44 @@ const initialState = {
|
|
|
25
15
|
dashboardSettings: {},
|
|
26
16
|
isLoading: false,
|
|
27
17
|
error: false,
|
|
28
|
-
activeRouteMenu:
|
|
18
|
+
activeRouteMenu: {
|
|
19
|
+
id: "dashboard",
|
|
20
|
+
name: 'Dashboard'
|
|
21
|
+
},
|
|
29
22
|
secondaryThemeColor: "red"
|
|
30
23
|
};
|
|
31
24
|
let currentDashboardSettings = {};
|
|
32
25
|
const actionCreators = {
|
|
33
|
-
getDashboardSettings: url =>
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
return _ref.apply(this, arguments);
|
|
64
|
-
};
|
|
65
|
-
}(),
|
|
66
|
-
setActiveRoute: route => /*#__PURE__*/function () {
|
|
67
|
-
var _ref2 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2(dispatch) {
|
|
68
|
-
return regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
69
|
-
while (1) switch (_context2.prev = _context2.next) {
|
|
70
|
-
case 0:
|
|
71
|
-
dispatch({
|
|
72
|
-
type: activeRouteMenu,
|
|
73
|
-
activeRouteMenu: route
|
|
74
|
-
});
|
|
75
|
-
|
|
76
|
-
case 1:
|
|
77
|
-
case "end":
|
|
78
|
-
return _context2.stop();
|
|
79
|
-
}
|
|
80
|
-
}, _callee2);
|
|
81
|
-
}));
|
|
82
|
-
|
|
83
|
-
return function (_x2) {
|
|
84
|
-
return _ref2.apply(this, arguments);
|
|
85
|
-
};
|
|
86
|
-
}(),
|
|
87
|
-
setSecondaryThemeColor: secondaryColor => /*#__PURE__*/function () {
|
|
88
|
-
var _ref3 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3(dispatch) {
|
|
89
|
-
return regeneratorRuntime.wrap(function _callee3$(_context3) {
|
|
90
|
-
while (1) switch (_context3.prev = _context3.next) {
|
|
91
|
-
case 0:
|
|
92
|
-
dispatch({
|
|
93
|
-
type: secondaryThemeColor,
|
|
94
|
-
secondaryThemeColor: secondaryColor
|
|
95
|
-
});
|
|
96
|
-
|
|
97
|
-
case 1:
|
|
98
|
-
case "end":
|
|
99
|
-
return _context3.stop();
|
|
100
|
-
}
|
|
101
|
-
}, _callee3);
|
|
102
|
-
}));
|
|
103
|
-
|
|
104
|
-
return function (_x3) {
|
|
105
|
-
return _ref3.apply(this, arguments);
|
|
106
|
-
};
|
|
107
|
-
}()
|
|
26
|
+
getDashboardSettings: url => async dispatch => {
|
|
27
|
+
dispatch({
|
|
28
|
+
type: requestType
|
|
29
|
+
});
|
|
30
|
+
(0, _RestUtils.sendRequest)(url, response => {
|
|
31
|
+
dispatch({
|
|
32
|
+
type: receiveDashboardSettingsType,
|
|
33
|
+
dashboardSettings: response,
|
|
34
|
+
error: false
|
|
35
|
+
});
|
|
36
|
+
}, () => {
|
|
37
|
+
dispatch({
|
|
38
|
+
type: receiveDashboardSettingsType,
|
|
39
|
+
dashboardSettings: null,
|
|
40
|
+
error: true
|
|
41
|
+
});
|
|
42
|
+
});
|
|
43
|
+
},
|
|
44
|
+
setActiveRoute: route => async dispatch => {
|
|
45
|
+
dispatch({
|
|
46
|
+
type: activeRouteMenu,
|
|
47
|
+
activeRouteMenu: route
|
|
48
|
+
});
|
|
49
|
+
},
|
|
50
|
+
setSecondaryThemeColor: secondaryColor => async dispatch => {
|
|
51
|
+
dispatch({
|
|
52
|
+
type: secondaryThemeColor,
|
|
53
|
+
secondaryThemeColor: secondaryColor
|
|
54
|
+
});
|
|
55
|
+
}
|
|
108
56
|
};
|
|
109
57
|
exports.actionCreators = actionCreators;
|
|
110
58
|
|
|
@@ -112,32 +60,32 @@ const reducer = (state, action) => {
|
|
|
112
60
|
state = state || initialState;
|
|
113
61
|
|
|
114
62
|
if (action.type === requestType) {
|
|
115
|
-
return
|
|
63
|
+
return { ...state,
|
|
116
64
|
isLoading: true,
|
|
117
65
|
dashboardSettings: currentDashboardSettings,
|
|
118
66
|
error: false
|
|
119
|
-
}
|
|
67
|
+
};
|
|
120
68
|
}
|
|
121
69
|
|
|
122
70
|
if (action.type === receiveDashboardSettingsType) {
|
|
123
71
|
currentDashboardSettings = action.dashboardSettings;
|
|
124
|
-
return
|
|
72
|
+
return { ...state,
|
|
125
73
|
error: action.error,
|
|
126
74
|
dashboardSettings: currentDashboardSettings,
|
|
127
75
|
isLoading: false
|
|
128
|
-
}
|
|
76
|
+
};
|
|
129
77
|
}
|
|
130
78
|
|
|
131
79
|
if (action.type === activeRouteMenu) {
|
|
132
|
-
return
|
|
80
|
+
return { ...state,
|
|
133
81
|
activeRouteMenu: action.activeRouteMenu
|
|
134
|
-
}
|
|
82
|
+
};
|
|
135
83
|
}
|
|
136
84
|
|
|
137
85
|
if (action.type === secondaryThemeColor) {
|
|
138
|
-
return
|
|
86
|
+
return { ...state,
|
|
139
87
|
secondaryThemeColor: action.secondaryThemeColor
|
|
140
|
-
}
|
|
88
|
+
};
|
|
141
89
|
}
|
|
142
90
|
|
|
143
91
|
return state;
|
|
@@ -4,17 +4,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.reducer = exports.actionCreators = void 0;
|
|
7
|
-
|
|
8
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
|
9
|
-
|
|
10
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
11
|
-
|
|
12
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
13
|
-
|
|
14
|
-
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
15
|
-
|
|
16
|
-
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
17
|
-
|
|
18
7
|
const requestType = 'REQUEST';
|
|
19
8
|
const receiveUserDetailsType = 'RECEIVE_USER_DETAILS';
|
|
20
9
|
const initialState = {
|
|
@@ -25,41 +14,17 @@ const initialState = {
|
|
|
25
14
|
};
|
|
26
15
|
let currentUserDetails = {};
|
|
27
16
|
const actionCreators = {
|
|
28
|
-
login: (url, username, password) =>
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
case 3:
|
|
41
|
-
response = _context.sent;
|
|
42
|
-
_context.next = 6;
|
|
43
|
-
return response.json();
|
|
44
|
-
|
|
45
|
-
case 6:
|
|
46
|
-
userDetails = _context.sent;
|
|
47
|
-
dispatch({
|
|
48
|
-
type: receiveUserDetailsType,
|
|
49
|
-
userDetails
|
|
50
|
-
});
|
|
51
|
-
|
|
52
|
-
case 8:
|
|
53
|
-
case "end":
|
|
54
|
-
return _context.stop();
|
|
55
|
-
}
|
|
56
|
-
}, _callee);
|
|
57
|
-
}));
|
|
58
|
-
|
|
59
|
-
return function (_x) {
|
|
60
|
-
return _ref.apply(this, arguments);
|
|
61
|
-
};
|
|
62
|
-
}()
|
|
17
|
+
login: (url, username, password) => async dispatch => {
|
|
18
|
+
dispatch({
|
|
19
|
+
type: requestType
|
|
20
|
+
});
|
|
21
|
+
const response = await fetch(url);
|
|
22
|
+
const userDetails = await response.json();
|
|
23
|
+
dispatch({
|
|
24
|
+
type: receiveUserDetailsType,
|
|
25
|
+
userDetails
|
|
26
|
+
});
|
|
27
|
+
}
|
|
63
28
|
};
|
|
64
29
|
exports.actionCreators = actionCreators;
|
|
65
30
|
|
|
@@ -67,19 +32,19 @@ const reducer = (state, action) => {
|
|
|
67
32
|
state = state || initialState;
|
|
68
33
|
|
|
69
34
|
if (action.type === requestType) {
|
|
70
|
-
return
|
|
35
|
+
return { ...state,
|
|
71
36
|
isLoading: true,
|
|
72
37
|
error: false,
|
|
73
38
|
userDetails: {}
|
|
74
|
-
}
|
|
39
|
+
};
|
|
75
40
|
}
|
|
76
41
|
|
|
77
42
|
if (action.type === receiveUserDetailsType) {
|
|
78
43
|
currentUserDetails = JSON.parse(action.userDetails);
|
|
79
|
-
return
|
|
44
|
+
return { ...state,
|
|
80
45
|
userDetails: currentUserDetails,
|
|
81
46
|
isLoading: false
|
|
82
|
-
}
|
|
47
|
+
};
|
|
83
48
|
}
|
|
84
49
|
|
|
85
50
|
return state;
|