mario-education 2.4.189-level → 2.4.190-level
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.js
CHANGED
|
@@ -12315,20 +12315,28 @@ var RosterConfigForm = function RosterConfigForm(_ref) {
|
|
|
12315
12315
|
return React__default.createElement(reactstrap.Row, null, React__default.createElement(reactstrap.Col, {
|
|
12316
12316
|
md: 12
|
|
12317
12317
|
}, React__default.createElement("h6", {
|
|
12318
|
-
className: "mt-4"
|
|
12319
|
-
style: {
|
|
12320
|
-
fontWeight: 700
|
|
12321
|
-
}
|
|
12318
|
+
className: "mt-4 font-weight-bold"
|
|
12322
12319
|
}, "Roster Config")), React__default.createElement(reactstrap.Col, {
|
|
12323
12320
|
md: 12,
|
|
12324
12321
|
className: "my-4 mt-2"
|
|
12325
12322
|
}, React__default.createElement(reactstrap.Label, {
|
|
12326
|
-
|
|
12327
|
-
|
|
12328
|
-
|
|
12323
|
+
className: "font-weight-bold"
|
|
12324
|
+
}, "End Point URL:"), React__default.createElement(reactstrap.Input, {
|
|
12325
|
+
name: "endPointUrl",
|
|
12326
|
+
placeholder: "Your End Point URL",
|
|
12327
|
+
value: values.endPointUrl,
|
|
12328
|
+
onChange: function onChange(e) {
|
|
12329
|
+
handleChange(e);
|
|
12330
|
+
},
|
|
12331
|
+
onBlur: handleBlur("endPointUrl")
|
|
12332
|
+
})), React__default.createElement(reactstrap.Col, {
|
|
12333
|
+
md: 12,
|
|
12334
|
+
className: "mb-4 mt-2"
|
|
12335
|
+
}, React__default.createElement(reactstrap.Label, {
|
|
12336
|
+
className: "font-weight-bold"
|
|
12329
12337
|
}, "Client Id:"), React__default.createElement(reactstrap.Input, {
|
|
12330
12338
|
name: "clientId",
|
|
12331
|
-
placeholder: "Client Id",
|
|
12339
|
+
placeholder: "Your Client Id",
|
|
12332
12340
|
value: values.clientId,
|
|
12333
12341
|
onChange: function onChange(e) {
|
|
12334
12342
|
handleChange(e);
|
|
@@ -12338,12 +12346,10 @@ var RosterConfigForm = function RosterConfigForm(_ref) {
|
|
|
12338
12346
|
md: 12,
|
|
12339
12347
|
className: "mb-4"
|
|
12340
12348
|
}, React__default.createElement(reactstrap.Label, {
|
|
12341
|
-
|
|
12342
|
-
fontWeight: 700
|
|
12343
|
-
}
|
|
12349
|
+
className: "font-weight-bold"
|
|
12344
12350
|
}, "Client Secret:"), React__default.createElement(reactstrap.Input, {
|
|
12345
12351
|
name: "clientSecret",
|
|
12346
|
-
placeholder: "Client Secret",
|
|
12352
|
+
placeholder: "Your Client Secret",
|
|
12347
12353
|
value: values.clientSecret,
|
|
12348
12354
|
onChange: function onChange(e) {
|
|
12349
12355
|
handleChange(e);
|
|
@@ -12690,7 +12696,8 @@ var ImportOneRoster = function ImportOneRoster(_ref) {
|
|
|
12690
12696
|
|
|
12691
12697
|
var initValue$d = {
|
|
12692
12698
|
clientId: "",
|
|
12693
|
-
clientSecret: ""
|
|
12699
|
+
clientSecret: "",
|
|
12700
|
+
endPointUrl: ""
|
|
12694
12701
|
};
|
|
12695
12702
|
|
|
12696
12703
|
var useRosterConfigForm = function useRosterConfigForm() {
|
|
@@ -12763,7 +12770,8 @@ var useRosterConfigForm = function useRosterConfigForm() {
|
|
|
12763
12770
|
}
|
|
12764
12771
|
}, []);
|
|
12765
12772
|
var errorImportRest = React.useMemo(function () {
|
|
12766
|
-
if (!rosterConfig.clientId.trim().length && !rosterConfig.clientSecret.trim().length) return "Client Id and Client Secret are required";
|
|
12773
|
+
if (!rosterConfig.clientId.trim().length && !rosterConfig.clientSecret.trim().length && !rosterConfig.endPointUrl.trim().length) return "Client Id and Client Secret are required";
|
|
12774
|
+
if (!rosterConfig.endPointUrl.trim().length) return "End Point URL is required";
|
|
12767
12775
|
if (!rosterConfig.clientId.trim().length) return "Client Id is required";
|
|
12768
12776
|
if (!rosterConfig.clientSecret.trim().length) return "Client Secret is required";
|
|
12769
12777
|
return null;
|