@dexteel/mesf-core 3.11.6 → 3.11.7
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.esm.js +20 -18
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -18,22 +18,33 @@ import MenuList from '@material-ui/core/MenuList';
|
|
|
18
18
|
import Paper from '@material-ui/core/Paper';
|
|
19
19
|
import Grid from '@material-ui/core/Grid';
|
|
20
20
|
import PersonPinCircleIcon from '@material-ui/icons/PersonPinCircle';
|
|
21
|
-
import
|
|
21
|
+
import axios from 'axios';
|
|
22
|
+
import PropTypes from 'prop-types';
|
|
23
|
+
import { ResponsiveBar } from '@nivo/bar';
|
|
24
|
+
import Select from '@material-ui/core/Select';
|
|
22
25
|
import { withStyles, alpha, makeStyles, createStyles, useTheme } from '@material-ui/core/styles';
|
|
26
|
+
import Collapse from '@material-ui/core/Collapse';
|
|
27
|
+
import SvgIcon from '@material-ui/core/SvgIcon';
|
|
28
|
+
import Code from '@material-ui/icons/Code';
|
|
29
|
+
import Folder from '@material-ui/icons/Folder';
|
|
30
|
+
import TreeItem from '@material-ui/lab/TreeItem';
|
|
31
|
+
import TreeView from '@material-ui/lab/TreeView';
|
|
32
|
+
import { useSpring, animated } from 'react-spring';
|
|
33
|
+
import { DataGrid, GridOverlay } from '@material-ui/data-grid';
|
|
34
|
+
import Card from '@material-ui/core/Card';
|
|
35
|
+
import CardActions from '@material-ui/core/CardActions';
|
|
36
|
+
import CardContent from '@material-ui/core/CardContent';
|
|
37
|
+
import Typography$1 from '@material-ui/core/Typography';
|
|
38
|
+
import moment from 'moment';
|
|
23
39
|
import { get, useForm, Controller } from 'react-hook-form';
|
|
24
40
|
import DialogContentText from '@material-ui/core/DialogContentText';
|
|
25
|
-
import Typography$1 from '@material-ui/core/Typography';
|
|
26
|
-
import { DataGrid, GridOverlay } from '@material-ui/data-grid';
|
|
27
41
|
import Snackbar from '@material-ui/core/Snackbar';
|
|
28
42
|
import CircularProgress from '@material-ui/core/CircularProgress';
|
|
29
43
|
import MuiAlert from '@material-ui/lab/Alert';
|
|
30
|
-
import Card from '@material-ui/core/Card';
|
|
31
|
-
import CardContent from '@material-ui/core/CardContent';
|
|
32
44
|
import TextField$1 from '@material-ui/core/TextField';
|
|
33
45
|
import { Alert as Alert$2, AlertTitle } from '@material-ui/lab';
|
|
34
46
|
import { MuiPickersUtilsProvider, KeyboardDatePicker, KeyboardTimePicker } from '@material-ui/pickers';
|
|
35
47
|
import MomentUtils from '@date-io/moment';
|
|
36
|
-
import Select from '@material-ui/core/Select';
|
|
37
48
|
import InputLabel from '@material-ui/core/InputLabel';
|
|
38
49
|
import FormControl from '@material-ui/core/FormControl';
|
|
39
50
|
import FormGroup from '@material-ui/core/FormGroup';
|
|
@@ -48,17 +59,6 @@ import Chip from '@material-ui/core/Chip';
|
|
|
48
59
|
import LockOutlinedIcon from '@material-ui/icons/LockOutlined';
|
|
49
60
|
import IconButton from '@material-ui/core/IconButton';
|
|
50
61
|
import CloseIcon from '@material-ui/icons/Close';
|
|
51
|
-
import PropTypes from 'prop-types';
|
|
52
|
-
import { ResponsiveBar } from '@nivo/bar';
|
|
53
|
-
import Collapse from '@material-ui/core/Collapse';
|
|
54
|
-
import SvgIcon from '@material-ui/core/SvgIcon';
|
|
55
|
-
import Code from '@material-ui/icons/Code';
|
|
56
|
-
import Folder from '@material-ui/icons/Folder';
|
|
57
|
-
import TreeItem from '@material-ui/lab/TreeItem';
|
|
58
|
-
import TreeView from '@material-ui/lab/TreeView';
|
|
59
|
-
import { useSpring, animated } from 'react-spring';
|
|
60
|
-
import CardActions from '@material-ui/core/CardActions';
|
|
61
|
-
import axios from 'axios';
|
|
62
62
|
|
|
63
63
|
/******************************************************************************
|
|
64
64
|
Copyright (c) Microsoft Corporation.
|
|
@@ -5500,6 +5500,7 @@ function useToken() {
|
|
|
5500
5500
|
localStorage.setItem('refreshToken', userToken['refreshToken']);
|
|
5501
5501
|
localStorage.setItem('token', userToken['token']);
|
|
5502
5502
|
setToken(userToken['token']);
|
|
5503
|
+
axiosInstance.defaults.headers.Authorization = "Bearer ".concat(userToken['token']);
|
|
5503
5504
|
setUserLogged(true);
|
|
5504
5505
|
};
|
|
5505
5506
|
var clearUserData = function () {
|
|
@@ -5902,6 +5903,7 @@ var LoginWithWindowsAuthentication = function () {
|
|
|
5902
5903
|
return [3 /*break*/, 4];
|
|
5903
5904
|
case 3:
|
|
5904
5905
|
e_1 = _a.sent();
|
|
5906
|
+
setShowError(true);
|
|
5905
5907
|
setError(e_1.toString());
|
|
5906
5908
|
return [3 /*break*/, 4];
|
|
5907
5909
|
case 4: return [2 /*return*/];
|
|
@@ -5957,7 +5959,7 @@ function Login(_a) {
|
|
|
5957
5959
|
React__default.createElement(Navbar.Brand, { href: "/" }, "MESF"))),
|
|
5958
5960
|
React__default.createElement("div", { className: "container-fluid" },
|
|
5959
5961
|
React__default.createElement("div", { className: "row" },
|
|
5960
|
-
React__default.createElement("div", { className: "col-md-
|
|
5962
|
+
React__default.createElement("div", { className: "col-12 col-md-6 mx-auto my-5" },
|
|
5961
5963
|
React__default.createElement("div", { className: "card" },
|
|
5962
5964
|
React__default.createElement("div", { className: "card-header text-center" }, "Login"),
|
|
5963
5965
|
React__default.createElement("div", { className: "card-body m-3" },
|