quidproquo-web-admin 0.0.232 → 0.0.233
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 +4 -5
- package/lib/commonjs/App.d.ts +1 -1
- package/lib/commonjs/App.js +4 -4
- package/lib/commonjs/Auth/Auth.js +4 -4
- package/lib/commonjs/Auth/AuthChallengeNewPasswordRequired.js +12 -4
- package/lib/commonjs/Auth/Login.js +2 -2
- package/lib/commonjs/LogViewer/ActionHistoryItemTimeStamp.d.ts +1 -1
- package/lib/commonjs/LogViewer/ActionHistoryItemTimeStamp.js +1 -1
- package/lib/commonjs/LogViewer/AnyActionHistoryItem.js +5 -5
- package/lib/commonjs/LogViewer/ConsoleLogViewer.js +1 -1
- package/lib/commonjs/LogViewer/Dashboard.js +7 -7
- package/lib/commonjs/LogViewer/EventTimeline.js +4 -4
- package/lib/commonjs/LogViewer/HelpChat/HelpChat.js +7 -4
- package/lib/commonjs/LogViewer/LogCorrelationTree.js +3 -3
- package/lib/commonjs/LogViewer/LogCorrelations.d.ts +1 -1
- package/lib/commonjs/LogViewer/LogCorrelations.js +1 -1
- package/lib/commonjs/LogViewer/LogDetails.js +4 -4
- package/lib/commonjs/LogViewer/LogDialog.js +12 -12
- package/lib/commonjs/LogViewer/LogMetadataGrid.js +3 -3
- package/lib/commonjs/LogViewer/LogSearch.js +2 -2
- package/lib/commonjs/LogViewer/LogSummary.js +4 -4
- package/lib/commonjs/LogViewer/LogSummaryDetails.js +1 -1
- package/lib/commonjs/LogViewer/LogSummaryReturn.js +1 -1
- package/lib/commonjs/LogViewer/LogViewer.js +8 -3
- package/lib/commonjs/LogViewer/TopSection.js +9 -9
- package/lib/commonjs/LogViewer/TruncatedText.d.ts +1 -1
- package/lib/commonjs/LogViewer/TruncatedText.js +2 -2
- package/lib/commonjs/LogViewer/actionComponents/genericActionRenderer/index.d.ts +1 -1
- package/lib/commonjs/LogViewer/actionComponents/genericActionRenderer/index.js +1 -1
- package/lib/commonjs/LogViewer/hooks/index.d.ts +5 -5
- package/lib/commonjs/LogViewer/hooks/index.js +5 -5
- package/lib/commonjs/LogViewer/hooks/useLogManagement.js +2 -2
- package/lib/commonjs/LogViewer/hooks/useLogTreeData.js +1 -1
- package/lib/commonjs/LogViewer/hooks/useOnSearch.js +1 -1
- package/lib/commonjs/LogViewer/hooks/useServiceNames.js +1 -1
- package/lib/commonjs/LogViewer/logic/actionComponentMap/core/coreConfigActionComponentMap.js +1 -5
- package/lib/commonjs/LogViewer/logic/actionComponentMap/core/coreDeployEventActionComponentMap.js +1 -5
- package/lib/commonjs/LogViewer/logic/actionComponentMap/core/coreEventActionComponentMap.js +2 -10
- package/lib/commonjs/LogViewer/logic/actionComponentMap/core/coreEventBusActionComponentMap.js +1 -4
- package/lib/commonjs/LogViewer/logic/actionComponentMap/core/coreFileActionComponentMap.js +4 -27
- package/lib/commonjs/LogViewer/logic/actionComponentMap/core/coreKeyValueStoreActionComponentMap.js +2 -12
- package/lib/commonjs/LogViewer/logic/actionComponentMap/core/coreUserDirectoryActionComponentMap.js +13 -68
- package/lib/commonjs/LogViewer/logic/actionComponentMap/core/index.js +3 -3
- package/lib/commonjs/LogViewer/logic/actionComponentMap/webserver/webserverServiceFunctionActionComponentMap.js +1 -7
- package/lib/commonjs/LogViewer/logic/actionComponentMap/webserver/webserverWebsocketActionComponentMap.js +1 -6
- package/lib/commonjs/LogViewer/logic/getLogs.js +3 -3
- package/lib/commonjs/LogViewer/logic/index.d.ts +4 -4
- package/lib/commonjs/LogViewer/logic/index.js +4 -4
- package/lib/commonjs/LogViewer/logic/searchLogs.js +2 -2
- package/lib/commonjs/components/AdminDialog.js +1 -1
- package/lib/commonjs/components/DataGrid.js +1 -1
- package/lib/commonjs/components/DataGridPagination/DataGridPagination.js +2 -2
- package/lib/commonjs/components/DateRangePicker.js +1 -1
- package/lib/commonjs/components/LastSeen/LastSeen.js +1 -1
- package/lib/commonjs/components/LoadingBox/LoadingBox.js +3 -3
- package/lib/commonjs/components/LoadingBox/hooks/index.d.ts +1 -1
- package/lib/commonjs/components/LoadingBox/hooks/index.js +1 -1
- package/lib/commonjs/components/LoadingBox/hooks/useExternalData.js +1 -1
- package/lib/commonjs/components/LoadingBox/hooks/usePlatformDataFromPath.js +1 -1
- package/lib/commonjs/components/TabViewBox.js +7 -1
- package/lib/commonjs/components/index.d.ts +8 -8
- package/lib/commonjs/components/index.js +8 -8
- package/lib/commonjs/index.d.ts +1 -1
- package/lib/commonjs/index.js +1 -1
- package/lib/commonjs/tmp/RandomView.js +1 -1
- package/lib/commonjs/types/AuthState.d.ts +1 -1
- package/lib/commonjs/types/index.d.ts +1 -1
- package/lib/commonjs/types/index.js +1 -1
- package/lib/commonjs/useFederatedAddon.js +1 -1
- package/lib/commonjs/view/Loading/hooks/useAsyncLoading.js +1 -1
- package/lib/commonjs/view/Loading/index.d.ts +1 -1
- package/lib/commonjs/view/Loading/index.js +1 -1
- package/lib/commonjs/view/hooks/useAsyncRequest.js +2 -2
- package/lib/esm/App.d.ts +1 -1
- package/lib/esm/App.js +4 -4
- package/lib/esm/Auth/Auth.js +4 -4
- package/lib/esm/Auth/AuthChallengeNewPasswordRequired.js +12 -4
- package/lib/esm/Auth/Login.js +2 -2
- package/lib/esm/LogViewer/ActionHistoryItemTimeStamp.d.ts +1 -1
- package/lib/esm/LogViewer/ActionHistoryItemTimeStamp.js +1 -1
- package/lib/esm/LogViewer/AnyActionHistoryItem.js +5 -5
- package/lib/esm/LogViewer/ConsoleLogViewer.js +1 -1
- package/lib/esm/LogViewer/Dashboard.js +8 -8
- package/lib/esm/LogViewer/EventTimeline.js +4 -4
- package/lib/esm/LogViewer/HelpChat/HelpChat.js +8 -5
- package/lib/esm/LogViewer/LogCorrelationTree.js +4 -4
- package/lib/esm/LogViewer/LogCorrelations.d.ts +1 -1
- package/lib/esm/LogViewer/LogCorrelations.js +1 -1
- package/lib/esm/LogViewer/LogDetails.js +4 -4
- package/lib/esm/LogViewer/LogDialog.js +11 -11
- package/lib/esm/LogViewer/LogMetadataGrid.js +4 -4
- package/lib/esm/LogViewer/LogSearch.js +2 -2
- package/lib/esm/LogViewer/LogSummary.js +4 -4
- package/lib/esm/LogViewer/LogSummaryDetails.js +2 -2
- package/lib/esm/LogViewer/LogSummaryReturn.js +1 -1
- package/lib/esm/LogViewer/LogViewer.js +9 -4
- package/lib/esm/LogViewer/TopSection.js +9 -9
- package/lib/esm/LogViewer/TruncatedText.d.ts +1 -1
- package/lib/esm/LogViewer/TruncatedText.js +2 -2
- package/lib/esm/LogViewer/actionComponents/genericActionRenderer/index.d.ts +1 -1
- package/lib/esm/LogViewer/actionComponents/genericActionRenderer/index.js +1 -1
- package/lib/esm/LogViewer/charts/CostPerService.js +1 -1
- package/lib/esm/LogViewer/charts/ErrorsByType.js +2 -2
- package/lib/esm/LogViewer/charts/ErrorsOverTime.js +1 -1
- package/lib/esm/LogViewer/charts/RequestsByService.js +1 -1
- package/lib/esm/LogViewer/hooks/index.d.ts +5 -5
- package/lib/esm/LogViewer/hooks/index.js +5 -5
- package/lib/esm/LogViewer/hooks/useLogDetails.js +1 -1
- package/lib/esm/LogViewer/hooks/useLogManagement.js +3 -3
- package/lib/esm/LogViewer/hooks/useLogSearch.js +1 -1
- package/lib/esm/LogViewer/hooks/useLogTreeData.js +1 -1
- package/lib/esm/LogViewer/hooks/useOnSearch.js +1 -1
- package/lib/esm/LogViewer/hooks/useServiceNames.js +1 -1
- package/lib/esm/LogViewer/logic/actionComponentMap/core/coreConfigActionComponentMap.js +1 -5
- package/lib/esm/LogViewer/logic/actionComponentMap/core/coreDeployEventActionComponentMap.js +1 -5
- package/lib/esm/LogViewer/logic/actionComponentMap/core/coreEventActionComponentMap.js +2 -10
- package/lib/esm/LogViewer/logic/actionComponentMap/core/coreEventBusActionComponentMap.js +1 -4
- package/lib/esm/LogViewer/logic/actionComponentMap/core/coreFileActionComponentMap.js +4 -27
- package/lib/esm/LogViewer/logic/actionComponentMap/core/coreKeyValueStoreActionComponentMap.js +2 -12
- package/lib/esm/LogViewer/logic/actionComponentMap/core/coreUserDirectoryActionComponentMap.js +13 -68
- package/lib/esm/LogViewer/logic/actionComponentMap/core/index.js +3 -3
- package/lib/esm/LogViewer/logic/actionComponentMap/webserver/webserverServiceFunctionActionComponentMap.js +1 -7
- package/lib/esm/LogViewer/logic/actionComponentMap/webserver/webserverWebsocketActionComponentMap.js +1 -6
- package/lib/esm/LogViewer/logic/getLogs.js +3 -3
- package/lib/esm/LogViewer/logic/index.d.ts +4 -4
- package/lib/esm/LogViewer/logic/index.js +4 -4
- package/lib/esm/LogViewer/logic/searchLogs.js +2 -2
- package/lib/esm/WebSocketAuthProvider.js +1 -1
- package/lib/esm/components/AdminDialog.js +1 -1
- package/lib/esm/components/AutocompleteInput.js +1 -1
- package/lib/esm/components/DataGrid.js +1 -1
- package/lib/esm/components/DataGridPagination/DataGridPagination.js +2 -2
- package/lib/esm/components/DateRangePicker.js +3 -3
- package/lib/esm/components/LastSeen/LastSeen.js +1 -1
- package/lib/esm/components/LoadingBox/LoadingBox.js +3 -3
- package/lib/esm/components/LoadingBox/hooks/index.d.ts +1 -1
- package/lib/esm/components/LoadingBox/hooks/index.js +1 -1
- package/lib/esm/components/LoadingBox/hooks/useExternalData.js +2 -2
- package/lib/esm/components/LoadingBox/hooks/usePlatformDataFromPath.js +2 -2
- package/lib/esm/components/TabViewBox.js +7 -1
- package/lib/esm/components/index.d.ts +8 -8
- package/lib/esm/components/index.js +8 -8
- package/lib/esm/index.d.ts +1 -1
- package/lib/esm/index.js +1 -1
- package/lib/esm/tmp/RandomView.js +2 -2
- package/lib/esm/types/AuthState.d.ts +1 -1
- package/lib/esm/types/index.d.ts +1 -1
- package/lib/esm/types/index.js +1 -1
- package/lib/esm/useFederatedAddon.js +2 -2
- package/lib/esm/view/Loading/LoadingProvider.js +1 -1
- package/lib/esm/view/Loading/hooks/useAsyncLoading.js +1 -1
- package/lib/esm/view/Loading/index.d.ts +1 -1
- package/lib/esm/view/Loading/index.js +1 -1
- package/lib/esm/view/hooks/useAsyncRequest.js +2 -2
- package/package.json +10 -7
package/README.md
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
# Quidproquo Web Logs - WIP - Not for production
|
|
2
2
|
|
|
3
|
-
Welcome to Quidproquo Web Logs, an interface for viewing logs that happen in your server! This
|
|
4
|
-
|
|
5
|
-
independent.
|
|
3
|
+
Welcome to Quidproquo Web Logs, an interface for viewing logs that happen in your server! This project is part of the Quidproquo platform, which
|
|
4
|
+
deploys web servers to AWS but is platform independent.
|
|
6
5
|
|
|
7
6
|
## Features
|
|
8
7
|
|
|
@@ -15,8 +14,8 @@ With Quidproquo Web Logs, you can:
|
|
|
15
14
|
|
|
16
15
|
## Technologies Used
|
|
17
16
|
|
|
18
|
-
Quidproquo Web Logs is built using React, a popular JavaScript library for building user interfaces.
|
|
19
|
-
|
|
17
|
+
Quidproquo Web Logs is built using React, a popular JavaScript library for building user interfaces. It uses Axios for making HTTP requests to the
|
|
18
|
+
server and Moment.js for parsing and formatting dates.
|
|
20
19
|
|
|
21
20
|
## Installation
|
|
22
21
|
|
package/lib/commonjs/App.d.ts
CHANGED
package/lib/commonjs/App.js
CHANGED
|
@@ -5,13 +5,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.App = void 0;
|
|
7
7
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
+
const quidproquo_web_react_1 = require("quidproquo-web-react");
|
|
9
|
+
const react_router_dom_1 = require("react-router-dom");
|
|
8
10
|
const CssBaseline_1 = __importDefault(require("@mui/material/CssBaseline"));
|
|
9
|
-
const
|
|
11
|
+
const styles_1 = require("@mui/material/styles");
|
|
10
12
|
const Auth_1 = require("./Auth/Auth");
|
|
13
|
+
const LogViewer_1 = require("./LogViewer");
|
|
11
14
|
const view_1 = require("./view");
|
|
12
|
-
const styles_1 = require("@mui/material/styles");
|
|
13
|
-
const react_router_dom_1 = require("react-router-dom");
|
|
14
|
-
const quidproquo_web_react_1 = require("quidproquo-web-react");
|
|
15
15
|
const WebSocketAuthProvider_1 = require("./WebSocketAuthProvider");
|
|
16
16
|
const darkTheme = (0, styles_1.createTheme)({
|
|
17
17
|
palette: {
|
|
@@ -11,14 +11,14 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.Auth = exports.useAuth = void 0;
|
|
13
13
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
14
|
+
const quidproquo_web_react_1 = require("quidproquo-web-react");
|
|
15
|
+
const quidproquo_web_react_2 = require("quidproquo-web-react");
|
|
14
16
|
const react_1 = require("react");
|
|
15
17
|
const login_1 = require("../LogViewer/logic/login");
|
|
18
|
+
const refreshTokens_1 = require("../LogViewer/logic/refreshTokens");
|
|
16
19
|
const respondToAuthChallenge_1 = require("../LogViewer/logic/respondToAuthChallenge");
|
|
17
|
-
const Login_1 = require("./Login");
|
|
18
20
|
const AuthChallengeNewPasswordRequired_1 = require("./AuthChallengeNewPasswordRequired");
|
|
19
|
-
const
|
|
20
|
-
const quidproquo_web_react_2 = require("quidproquo-web-react");
|
|
21
|
-
const refreshTokens_1 = require("../LogViewer/logic/refreshTokens");
|
|
21
|
+
const Login_1 = require("./Login");
|
|
22
22
|
const useAuth = () => {
|
|
23
23
|
const [authState, setAuthState] = (0, react_1.useState)({
|
|
24
24
|
username: '',
|
|
@@ -6,16 +6,24 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.AuthChallengeNewPasswordRequired = void 0;
|
|
7
7
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
8
|
const react_1 = require("react");
|
|
9
|
+
const Lock_1 = __importDefault(require("@mui/icons-material/Lock"));
|
|
9
10
|
const Box_1 = __importDefault(require("@mui/material/Box"));
|
|
10
11
|
const Grid_1 = __importDefault(require("@mui/material/Grid"));
|
|
11
12
|
const TextField_1 = __importDefault(require("@mui/material/TextField"));
|
|
12
13
|
const Typography_1 = __importDefault(require("@mui/material/Typography"));
|
|
13
|
-
const Lock_1 = __importDefault(require("@mui/icons-material/Lock"));
|
|
14
14
|
const components_1 = require("../components");
|
|
15
15
|
function AuthChallengeNewPasswordRequired({ onRespondToAuthChallenge, authState }) {
|
|
16
|
-
const [newPassword, setNewPassword] = (0, react_1.useState)(
|
|
17
|
-
const [confirmPassword, setConfirmPassword] = (0, react_1.useState)(
|
|
16
|
+
const [newPassword, setNewPassword] = (0, react_1.useState)('');
|
|
17
|
+
const [confirmPassword, setConfirmPassword] = (0, react_1.useState)('');
|
|
18
18
|
const arePasswordsMatching = newPassword === confirmPassword && newPassword !== '';
|
|
19
|
-
return ((0, jsx_runtime_1.jsx)(Box_1.default, Object.assign({ sx: {
|
|
19
|
+
return ((0, jsx_runtime_1.jsx)(Box_1.default, Object.assign({ sx: {
|
|
20
|
+
height: '100vh',
|
|
21
|
+
width: '100%',
|
|
22
|
+
p: 2,
|
|
23
|
+
display: 'flex',
|
|
24
|
+
flexDirection: 'column',
|
|
25
|
+
justifyContent: 'center',
|
|
26
|
+
alignItems: 'center',
|
|
27
|
+
} }, { children: (0, jsx_runtime_1.jsx)(Box_1.default, Object.assign({ component: "form", sx: { width: '100%', maxWidth: 360 } }, { children: (0, jsx_runtime_1.jsxs)(Grid_1.default, Object.assign({ container: true, spacing: 2 }, { children: [(0, jsx_runtime_1.jsx)(Grid_1.default, Object.assign({ item: true, xs: 12 }, { children: (0, jsx_runtime_1.jsxs)(Typography_1.default, Object.assign({ variant: "h5", gutterBottom: true, sx: { display: 'flex', alignItems: 'center' } }, { children: [(0, jsx_runtime_1.jsx)(Lock_1.default, { sx: { marginRight: 1 } }), "Password Change Required"] })) })), (0, jsx_runtime_1.jsx)(Grid_1.default, Object.assign({ item: true, xs: 12 }, { children: (0, jsx_runtime_1.jsx)(TextField_1.default, { required: true, fullWidth: true, id: "newPassword", label: "New Password", type: "password", autoFocus: true, value: newPassword, onChange: (event) => setNewPassword(event.target.value) }) })), (0, jsx_runtime_1.jsx)(Grid_1.default, Object.assign({ item: true, xs: 12 }, { children: (0, jsx_runtime_1.jsx)(TextField_1.default, { required: true, fullWidth: true, id: "confirmPassword", label: "Confirm Password", type: "password", value: confirmPassword, onChange: (event) => setConfirmPassword(event.target.value) }) })), (0, jsx_runtime_1.jsx)(Grid_1.default, Object.assign({ item: true, xs: 12 }, { children: (0, jsx_runtime_1.jsx)(components_1.AsyncButton, Object.assign({ onClick: () => onRespondToAuthChallenge(confirmPassword), disabled: !arePasswordsMatching }, { children: "Update Password" })) }))] })) })) })));
|
|
20
28
|
}
|
|
21
29
|
exports.AuthChallengeNewPasswordRequired = AuthChallengeNewPasswordRequired;
|
|
@@ -14,11 +14,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.Login = void 0;
|
|
16
16
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
17
|
+
const Lock_1 = __importDefault(require("@mui/icons-material/Lock"));
|
|
18
|
+
const material_1 = require("@mui/material");
|
|
17
19
|
const Box_1 = __importDefault(require("@mui/material/Box"));
|
|
18
20
|
const Grid_1 = __importDefault(require("@mui/material/Grid"));
|
|
19
21
|
const TextField_1 = __importDefault(require("@mui/material/TextField"));
|
|
20
|
-
const Lock_1 = __importDefault(require("@mui/icons-material/Lock"));
|
|
21
|
-
const material_1 = require("@mui/material");
|
|
22
22
|
const components_1 = require("../components");
|
|
23
23
|
function Login({ username, password, setUsername, setPassword, onLogin }) {
|
|
24
24
|
if (!module) {
|
|
@@ -2,5 +2,5 @@ interface ActionHistoryItemTimeStampProps {
|
|
|
2
2
|
startedAt: string;
|
|
3
3
|
finishedAt: string;
|
|
4
4
|
}
|
|
5
|
-
export declare const ActionHistoryItemTimeStamp: ({ startedAt, finishedAt
|
|
5
|
+
export declare const ActionHistoryItemTimeStamp: ({ startedAt, finishedAt }: ActionHistoryItemTimeStampProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
export {};
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ActionHistoryItemTimeStamp = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const material_1 = require("@mui/material");
|
|
6
|
-
const ActionHistoryItemTimeStamp = ({ startedAt, finishedAt
|
|
6
|
+
const ActionHistoryItemTimeStamp = ({ startedAt, finishedAt }) => {
|
|
7
7
|
const startDate = new Date(startedAt);
|
|
8
8
|
const endDate = new Date(finishedAt);
|
|
9
9
|
const executionTime = endDate.getTime() - startDate.getTime();
|
|
@@ -5,15 +5,15 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.AnyActionHistoryItem = void 0;
|
|
7
7
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
-
const
|
|
9
|
-
const ExpandMore_1 = __importDefault(require("@mui/icons-material/ExpandMore"));
|
|
8
|
+
const react_1 = require("react");
|
|
10
9
|
const ExpandLess_1 = __importDefault(require("@mui/icons-material/ExpandLess"));
|
|
10
|
+
const ExpandMore_1 = __importDefault(require("@mui/icons-material/ExpandMore"));
|
|
11
11
|
const History_1 = __importDefault(require("@mui/icons-material/History"));
|
|
12
|
-
const
|
|
13
|
-
const
|
|
12
|
+
const material_1 = require("@mui/material");
|
|
13
|
+
const customActionsMap_1 = __importDefault(require("./actionComponents/customActionsMap"));
|
|
14
14
|
const actionComponentMap_1 = __importDefault(require("./logic/actionComponentMap"));
|
|
15
15
|
const actionComponents_1 = require("./actionComponents");
|
|
16
|
-
const
|
|
16
|
+
const ActionHistoryItem_1 = require("./ActionHistoryItem");
|
|
17
17
|
const AnyActionHistoryItem = ({ historyItem }) => {
|
|
18
18
|
const [expanded, setExpanded] = (0, react_1.useState)(false);
|
|
19
19
|
const [legacy, setLegacy] = (0, react_1.useState)(false);
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ConsoleLogViewer = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const react_inspector_1 = require("react-inspector");
|
|
6
5
|
const react_1 = require("react");
|
|
6
|
+
const react_inspector_1 = require("react-inspector");
|
|
7
7
|
const hooks_1 = require("./hooks");
|
|
8
8
|
const ConsoleLogViewer = ({ logs }) => {
|
|
9
9
|
const { formattedLogs } = (0, hooks_1.useConsoleLogViewer)(logs);
|
|
@@ -25,16 +25,16 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.Dashboard = void 0;
|
|
27
27
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
28
|
-
const
|
|
28
|
+
const quidproquo_web_1 = require("quidproquo-web");
|
|
29
29
|
const quidproquo_web_react_1 = require("quidproquo-web-react");
|
|
30
|
+
const quidproquo_web_react_2 = require("quidproquo-web-react");
|
|
30
31
|
const quidproquo_webserver_1 = require("quidproquo-webserver");
|
|
32
|
+
const react_1 = __importStar(require("react"));
|
|
31
33
|
const material_1 = require("@mui/material");
|
|
32
|
-
const LogMetadataGrid_1 = require("./LogMetadataGrid");
|
|
33
|
-
const hooks_1 = require("./hooks");
|
|
34
|
-
const view_1 = require("../view");
|
|
35
|
-
const quidproquo_web_react_2 = require("quidproquo-web-react");
|
|
36
|
-
const quidproquo_web_1 = require("quidproquo-web");
|
|
37
34
|
const components_1 = require("../components");
|
|
35
|
+
const view_1 = require("../view");
|
|
36
|
+
const hooks_1 = require("./hooks");
|
|
37
|
+
const LogMetadataGrid_1 = require("./LogMetadataGrid");
|
|
38
38
|
const getLogCountForSinceXDaysAgo = (logs, daysAgo) => {
|
|
39
39
|
const currentDate = new Date();
|
|
40
40
|
const daysAgoDate = new Date(currentDate.getTime() - daysAgo * 24 * 60 * 60 * 1000);
|
|
@@ -46,7 +46,7 @@ const getHoursSinceStartOfDay = () => {
|
|
|
46
46
|
const now = new Date();
|
|
47
47
|
return now.getHours();
|
|
48
48
|
};
|
|
49
|
-
const Dashboard = (
|
|
49
|
+
const Dashboard = () => {
|
|
50
50
|
const [realtimeLogs, setRealtimeLogs] = react_1.default.useState([]);
|
|
51
51
|
const { onSearch, logs: weeklyLogs } = (0, hooks_1.useLogSearch)();
|
|
52
52
|
const isLoading = (0, view_1.useIsLoading)();
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.EventTimeline = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const quidproquo_core_1 = require("quidproquo-core");
|
|
5
6
|
const react_1 = require("react");
|
|
6
7
|
const material_1 = require("@mui/material");
|
|
7
|
-
const quidproquo_core_1 = require("quidproquo-core");
|
|
8
8
|
const EVENT_HEIGHT = 30;
|
|
9
9
|
const EVENT_COLORS = ['#8884d8', '#82ca9d', '#ffc658', '#ff8c00', '#ff0080'];
|
|
10
|
-
const TimelineEvent = ({ event, level, setSelectedLogCorrelation, scale, parrentTimeOffsetMs, totalParrentTimeOffsetMs
|
|
10
|
+
const TimelineEvent = ({ event, level, setSelectedLogCorrelation, scale, parrentTimeOffsetMs, totalParrentTimeOffsetMs }) => {
|
|
11
11
|
const eventWidth = event.executionTimeMs * scale;
|
|
12
12
|
const eventOffset = totalParrentTimeOffsetMs * scale;
|
|
13
13
|
const totalTimeOffset = (event.executionTimeMs + totalParrentTimeOffsetMs) * scale;
|
|
@@ -25,7 +25,7 @@ const TimelineEvent = ({ event, level, setSelectedLogCorrelation, scale, parrent
|
|
|
25
25
|
padding: 3,
|
|
26
26
|
borderRadius: 4,
|
|
27
27
|
display: 'inline-block',
|
|
28
|
-
}, onClick: () => setSelectedLogCorrelation(event.correlation) }, { children: [event.moduleName, "::", event.generic.split('::').pop(), " - @", parrentTimeOffsetMs, "ms -",
|
|
28
|
+
}, onClick: () => setSelectedLogCorrelation(event.correlation) }, { children: [event.moduleName, "::", event.generic.split('::').pop(), " - @", parrentTimeOffsetMs, "ms - ", event.executionTimeMs, "ms"] })), event.children.map((child) => {
|
|
29
29
|
const childDate = new Date(child.startedAt);
|
|
30
30
|
const eventDate = new Date(event.startedAt);
|
|
31
31
|
const offsetMs = childDate.getTime() - eventDate.getTime();
|
|
@@ -33,7 +33,7 @@ const TimelineEvent = ({ event, level, setSelectedLogCorrelation, scale, parrent
|
|
|
33
33
|
return ((0, jsx_runtime_1.jsx)(TimelineEvent, { event: child, setSelectedLogCorrelation: setSelectedLogCorrelation, level: level + 1, scale: scale, parrentTimeOffsetMs: offsetMs, totalParrentTimeOffsetMs: totalOffset }, child.correlation));
|
|
34
34
|
})] })));
|
|
35
35
|
};
|
|
36
|
-
const EventTimeline = ({ logCorrelation, setSelectedLogCorrelation, isVisible, treeApi
|
|
36
|
+
const EventTimeline = ({ logCorrelation, setSelectedLogCorrelation, isVisible, treeApi }) => {
|
|
37
37
|
const [scaleOffset, setScaleOffset] = (0, react_1.useState)(0.0);
|
|
38
38
|
const [handleOnWheel, setHandleWheel] = (0, react_1.useState)(() => () => { });
|
|
39
39
|
const [timelineRef, setTimelineRef] = (0, react_1.useState)(null);
|
|
@@ -14,12 +14,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.HelpChat = void 0;
|
|
16
16
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
17
|
+
const quidproquo_web_react_1 = require("quidproquo-web-react");
|
|
17
18
|
const react_1 = require("react");
|
|
18
|
-
const
|
|
19
|
+
const react_markdown_1 = __importDefault(require("react-markdown"));
|
|
19
20
|
const icons_material_1 = require("@mui/icons-material");
|
|
20
|
-
const
|
|
21
|
+
const material_1 = require("@mui/material");
|
|
21
22
|
const logic_1 = require("../../logic");
|
|
22
|
-
const react_markdown_1 = __importDefault(require("react-markdown"));
|
|
23
23
|
const HelpChat = ({ logCorrelation }) => {
|
|
24
24
|
const [chatMessages, setChatMessages] = (0, react_1.useState)([]);
|
|
25
25
|
const [inputMessage, setInputMessage] = (0, react_1.useState)('');
|
|
@@ -90,7 +90,10 @@ const HelpChat = ({ logCorrelation }) => {
|
|
|
90
90
|
backgroundColor: message.isAi ? 'grey.300' : 'primary.main',
|
|
91
91
|
color: message.isAi ? 'black' : 'white',
|
|
92
92
|
maxWidth: '70%',
|
|
93
|
-
} }, { children: [(0, jsx_runtime_1.jsxs)(material_1.Box, Object.assign({ sx: { display: 'flex', alignItems: 'center', mb: 1 } }, { children: [(0, jsx_runtime_1.jsx)(material_1.Avatar, Object.assign({ sx: {
|
|
93
|
+
} }, { children: [(0, jsx_runtime_1.jsxs)(material_1.Box, Object.assign({ sx: { display: 'flex', alignItems: 'center', mb: 1 } }, { children: [(0, jsx_runtime_1.jsx)(material_1.Avatar, Object.assign({ sx: {
|
|
94
|
+
mr: 1,
|
|
95
|
+
bgcolor: message.isAi ? 'grey.500' : 'primary.dark',
|
|
96
|
+
} }, { children: message.isAi ? (0, jsx_runtime_1.jsx)(icons_material_1.Android, {}) : (0, jsx_runtime_1.jsx)(icons_material_1.Person, {}) })), (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "subtitle2" }, { children: message.isAi ? 'AI Assistant' : 'You' }))] })), (0, jsx_runtime_1.jsx)(react_markdown_1.default, { children: message.message })] })) }), index))), pendingRequests > 0 && ((0, jsx_runtime_1.jsx)(material_1.Box, Object.assign({ sx: {
|
|
94
97
|
display: 'flex',
|
|
95
98
|
alignItems: 'flex-start',
|
|
96
99
|
mb: 2,
|
|
@@ -11,10 +11,10 @@ const BACKGROUND_COLOR = '#c1c1c1';
|
|
|
11
11
|
const renderRectSvgNode = (setSelectedLogCorrelation, highlightCorrelationId) => ({ nodeDatum }) => {
|
|
12
12
|
// TODO: Workout the nodeDateum type
|
|
13
13
|
const color = nodeDatum.correlation === highlightCorrelationId
|
|
14
|
-
?
|
|
14
|
+
? nodeDatum.error
|
|
15
15
|
? '#8B0000'
|
|
16
16
|
: '#00008B' // Very dark red for selected errors, dark blue for selected non-errors
|
|
17
|
-
:
|
|
17
|
+
: nodeDatum.error
|
|
18
18
|
? 'red'
|
|
19
19
|
: 'white'; // Bright red for non-selected errors, white for non-selected non-errors
|
|
20
20
|
return ((0, jsx_runtime_1.jsxs)("g", { children: [(0, jsx_runtime_1.jsx)("circle", { r: 10, fill: color, x: "10", y: "10", onClick: () => setSelectedLogCorrelation(nodeDatum.correlation) }), [nodeDatum.moduleName, nodeDatum.runtimeType, (nodeDatum.generic || '').split('::').pop(), nodeDatum.error || '']
|
|
@@ -23,7 +23,7 @@ const renderRectSvgNode = (setSelectedLogCorrelation, highlightCorrelationId) =>
|
|
|
23
23
|
const x = 0;
|
|
24
24
|
const y = i === 0 ? -20 : 10 + i * 20;
|
|
25
25
|
const fontSize = i === 0 ? 30 : 15;
|
|
26
|
-
return ((0, jsx_runtime_1.jsxs)(react_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("rect", { x: x - 50, y: y - fontSize / 2 - 8, width: "100", height: fontSize, fill: BACKGROUND_COLOR, strokeWidth: "0" }), (0, jsx_runtime_1.jsx)("text", Object.assign({ textAnchor: "middle", fontSize: fontSize, fill:
|
|
26
|
+
return ((0, jsx_runtime_1.jsxs)(react_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("rect", { x: x - 50, y: y - fontSize / 2 - 8, width: "100", height: fontSize, fill: BACKGROUND_COLOR, strokeWidth: "0" }), (0, jsx_runtime_1.jsx)("text", Object.assign({ textAnchor: "middle", fontSize: fontSize, fill: nodeDatum.error ? 'red' : 'black', strokeWidth: 0, y: y }, { children: text }))] }, `${i}`));
|
|
27
27
|
})] }));
|
|
28
28
|
};
|
|
29
29
|
const LogCorrelationTreeComponent = ({ correlationId, highlightCorrelationId, setSelectedLogCorrelation, isVisible, treeApi, }) => {
|
|
@@ -5,5 +5,5 @@ interface LogCorrelationsProps {
|
|
|
5
5
|
isVisible: boolean;
|
|
6
6
|
treeApi: TreeApi;
|
|
7
7
|
}
|
|
8
|
-
export declare const LogCorrelations: ({ logCorrelation, setSelectedLogCorrelation, isVisible, treeApi
|
|
8
|
+
export declare const LogCorrelations: ({ logCorrelation, setSelectedLogCorrelation, isVisible, treeApi }: LogCorrelationsProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
9
|
export {};
|
|
@@ -4,7 +4,7 @@ exports.LogCorrelations = void 0;
|
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const material_1 = require("@mui/material");
|
|
6
6
|
const LogCorrelationTree_1 = require("./LogCorrelationTree");
|
|
7
|
-
const LogCorrelations = ({ logCorrelation, setSelectedLogCorrelation, isVisible, treeApi
|
|
7
|
+
const LogCorrelations = ({ logCorrelation, setSelectedLogCorrelation, isVisible, treeApi }) => {
|
|
8
8
|
return ((0, jsx_runtime_1.jsx)(material_1.Box, Object.assign({ sx: {
|
|
9
9
|
width: 1,
|
|
10
10
|
display: 'flex',
|
|
@@ -5,13 +5,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.LogDetails = void 0;
|
|
7
7
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
-
const ConsoleLogViewer_1 = __importDefault(require("./ConsoleLogViewer"));
|
|
9
|
-
const ActionHistoryItemTimeStamp_1 = require("./ActionHistoryItemTimeStamp");
|
|
10
|
-
const LogSummaryDetails_1 = require("./LogSummaryDetails");
|
|
11
|
-
const LogSummaryReturn_1 = require("./LogSummaryReturn");
|
|
12
8
|
const material_1 = require("@mui/material");
|
|
9
|
+
const ActionHistoryItemTimeStamp_1 = require("./ActionHistoryItemTimeStamp");
|
|
13
10
|
const AnyActionHistoryItem_1 = require("./AnyActionHistoryItem");
|
|
11
|
+
const ConsoleLogViewer_1 = __importDefault(require("./ConsoleLogViewer"));
|
|
14
12
|
const logic_1 = require("./logic");
|
|
13
|
+
const LogSummaryDetails_1 = require("./LogSummaryDetails");
|
|
14
|
+
const LogSummaryReturn_1 = require("./LogSummaryReturn");
|
|
15
15
|
const leftTableCell = {
|
|
16
16
|
width: '200px',
|
|
17
17
|
paddingRight: '30px',
|
|
@@ -10,20 +10,20 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
13
|
-
const
|
|
13
|
+
const quidproquo_web_react_1 = require("quidproquo-web-react");
|
|
14
|
+
const react_1 = require("react");
|
|
14
15
|
const material_1 = require("@mui/material");
|
|
15
|
-
const LogCorrelations_1 = require("./LogCorrelations");
|
|
16
|
-
const LogDetails_1 = require("./LogDetails");
|
|
17
|
-
const LogSummary_1 = require("./LogSummary");
|
|
18
|
-
const LogRawJson_1 = require("./LogRawJson");
|
|
19
|
-
const HelpChat_1 = require("./HelpChat");
|
|
20
|
-
const EventTimeline_1 = require("./EventTimeline"); // Add this import
|
|
21
16
|
const hooks_1 = require("../components/LoadingBox/hooks");
|
|
17
|
+
const logic_1 = require("../logic");
|
|
22
18
|
const view_1 = require("../view");
|
|
23
|
-
const
|
|
24
|
-
const
|
|
25
|
-
const react_1 = require("react");
|
|
19
|
+
const EventTimeline_1 = require("./EventTimeline"); // Add this import
|
|
20
|
+
const HelpChat_1 = require("./HelpChat");
|
|
26
21
|
const hooks_2 = require("./hooks");
|
|
22
|
+
const LogCorrelations_1 = require("./LogCorrelations");
|
|
23
|
+
const LogDetails_1 = require("./LogDetails");
|
|
24
|
+
const logic_2 = require("./logic");
|
|
25
|
+
const LogRawJson_1 = require("./LogRawJson");
|
|
26
|
+
const LogSummary_1 = require("./LogSummary");
|
|
27
27
|
function downloadJson(json, filename) {
|
|
28
28
|
const blob = new Blob([json], { type: 'application/json' });
|
|
29
29
|
const url = URL.createObjectURL(blob);
|
|
@@ -39,13 +39,13 @@ const getTabStyle = (tabIndex, selectedTab) => ({
|
|
|
39
39
|
height: '100%',
|
|
40
40
|
});
|
|
41
41
|
const LogDialog = ({ logCorrelation, open, handleClose, storyResultMetadatas, setSelectedLogCorrelation }) => {
|
|
42
|
-
const signedRequest = (0, hooks_1.usePlatformDataFromPath)((0,
|
|
42
|
+
const signedRequest = (0, hooks_1.usePlatformDataFromPath)((0, logic_2.getLogUrl)(logCorrelation));
|
|
43
43
|
const log = (0, hooks_1.useExternalData)(signedRequest === null || signedRequest === void 0 ? void 0 : signedRequest.url);
|
|
44
44
|
const urlResolvers = (0, quidproquo_web_react_1.useBaseUrlResolvers)();
|
|
45
45
|
const isLoading = (0, view_1.useIsLoading)() || !log;
|
|
46
46
|
const handleExecute = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
47
47
|
if (log) {
|
|
48
|
-
yield (0,
|
|
48
|
+
yield (0, logic_1.apiRequestPost)('http://localhost:8080/admin/service/log/execute', log, urlResolvers.getApiUrl());
|
|
49
49
|
}
|
|
50
50
|
});
|
|
51
51
|
const [selectedTab, setSelectedTab] = (0, react_1.useState)(0);
|
|
@@ -7,9 +7,9 @@ exports.LogMetadataGrid = void 0;
|
|
|
7
7
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
8
|
const LinearProgress_1 = __importDefault(require("@mui/material/LinearProgress"));
|
|
9
9
|
const x_data_grid_1 = require("@mui/x-data-grid");
|
|
10
|
-
const LogDialog_1 = __importDefault(require("./LogDialog"));
|
|
11
|
-
const hooks_1 = require("./hooks");
|
|
12
10
|
const components_1 = require("../components");
|
|
11
|
+
const hooks_1 = require("./hooks");
|
|
12
|
+
const LogDialog_1 = __importDefault(require("./LogDialog"));
|
|
13
13
|
const formatTime = (ms) => {
|
|
14
14
|
if (ms < 1000)
|
|
15
15
|
return `${ms}ms`;
|
|
@@ -46,7 +46,7 @@ const columns = [
|
|
|
46
46
|
},
|
|
47
47
|
];
|
|
48
48
|
const LogMetadataGrid = ({ logs, isLoading }) => {
|
|
49
|
-
const { selectedLogCorrelation, onRowClick, clearSelectedLogCorrelation, setSelectedLogCorrelation, searchProgress
|
|
49
|
+
const { selectedLogCorrelation, onRowClick, clearSelectedLogCorrelation, setSelectedLogCorrelation, searchProgress } = (0, hooks_1.useLogManagement)();
|
|
50
50
|
const getRowClassName = (params) => {
|
|
51
51
|
return params.row.checked ? 'greenRow' : '';
|
|
52
52
|
};
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.LogSearch = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const
|
|
5
|
+
const components_1 = require("../components");
|
|
6
6
|
const view_1 = require("../view");
|
|
7
7
|
const hooks_1 = require("./hooks");
|
|
8
8
|
const LogMetadataGrid_1 = require("./LogMetadataGrid");
|
|
9
|
-
const
|
|
9
|
+
const TopSection_1 = require("./TopSection");
|
|
10
10
|
const LogSearch = () => {
|
|
11
11
|
const { searchParams, setSearchParams, onSearch, logs } = (0, hooks_1.useLogSearch)();
|
|
12
12
|
const isLoading = (0, view_1.useIsLoading)();
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.LogSummary = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const material_1 = require("@mui/material");
|
|
6
|
-
const react_1 = require("react");
|
|
7
|
-
const quidproquo_webserver_1 = require("quidproquo-webserver");
|
|
8
5
|
const quidproquo_web_react_1 = require("quidproquo-web-react");
|
|
6
|
+
const quidproquo_webserver_1 = require("quidproquo-webserver");
|
|
7
|
+
const react_1 = require("react");
|
|
8
|
+
const material_1 = require("@mui/material");
|
|
9
9
|
const LogSummary = ({ log }) => {
|
|
10
10
|
const [checkedLoading, setCheckedLoading] = (0, react_1.useState)(true);
|
|
11
11
|
const [logMetadata, setLogMetadata] = (0, react_1.useState)(null);
|
|
@@ -37,6 +37,6 @@ const LogSummary = ({ log }) => {
|
|
|
37
37
|
};
|
|
38
38
|
sendMessage(checkEvent);
|
|
39
39
|
}, [log.correlation]);
|
|
40
|
-
return ((0, jsx_runtime_1.jsxs)(material_1.Box, Object.assign({ sx: { width: 1, p: 2 } }, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "h6", gutterBottom: true }, { children: "Log Summary" })), (0, jsx_runtime_1.jsxs)(material_1.Typography, { children: ["Correlation ID: ", log.correlation] }), (0, jsx_runtime_1.jsx)(material_1.FormControlLabel, { control: checkedLoading ? (
|
|
40
|
+
return ((0, jsx_runtime_1.jsxs)(material_1.Box, Object.assign({ sx: { width: 1, p: 2 } }, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "h6", gutterBottom: true }, { children: "Log Summary" })), (0, jsx_runtime_1.jsxs)(material_1.Typography, { children: ["Correlation ID: ", log.correlation] }), (0, jsx_runtime_1.jsx)(material_1.FormControlLabel, { control: checkedLoading ? (0, jsx_runtime_1.jsx)(material_1.CircularProgress, { size: 24 }) : (0, jsx_runtime_1.jsx)(material_1.Checkbox, { checked: !!(logMetadata === null || logMetadata === void 0 ? void 0 : logMetadata.checked), onChange: handleCheckboxChange }), label: "Mark as done" })] })));
|
|
41
41
|
};
|
|
42
42
|
exports.LogSummary = LogSummary;
|
|
@@ -6,6 +6,6 @@ const material_1 = require("@mui/material");
|
|
|
6
6
|
const AnyVariableView_1 = require("./actionComponents/genericActionRenderer/AnyVariableView");
|
|
7
7
|
const LogSummaryDetails = ({ log }) => {
|
|
8
8
|
const totalRuntime = new Date(log.finishedAt).getTime() - new Date(log.startedAt).getTime();
|
|
9
|
-
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsxs)(material_1.Typography, Object.assign({ variant: "h5", gutterBottom: true }, { children: [log.runtimeType, " - ", log.moduleName] })) }), (0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsxs)("pre", Object.assign({ style: AnyVariableView_1.genericFunctionRendererStyles.pre }, { children: [(0, jsx_runtime_1.jsxs)("div", Object.assign({ style: AnyVariableView_1.genericFunctionRendererStyles.commentBlock }, { children: [(0, jsx_runtime_1.jsx)("div", { children: "// //////////////////////////////////////////////////////" }), (0, jsx_runtime_1.jsxs)("div", { children: ["// src: ", log.tags.join(', ')] }), log.fromCorrelation && (0, jsx_runtime_1.jsxs)("div", { children: ["// Caller: ", log.fromCorrelation] }), (0, jsx_runtime_1.jsxs)("div", { children: ["// Total Runtime:",
|
|
9
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsxs)(material_1.Typography, Object.assign({ variant: "h5", gutterBottom: true }, { children: [log.runtimeType, " - ", log.moduleName] })) }), (0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsxs)("pre", Object.assign({ style: AnyVariableView_1.genericFunctionRendererStyles.pre }, { children: [(0, jsx_runtime_1.jsxs)("div", Object.assign({ style: AnyVariableView_1.genericFunctionRendererStyles.commentBlock }, { children: [(0, jsx_runtime_1.jsx)("div", { children: "// //////////////////////////////////////////////////////" }), (0, jsx_runtime_1.jsxs)("div", { children: ["// src: ", log.tags.join(', ')] }), log.fromCorrelation && (0, jsx_runtime_1.jsxs)("div", { children: ["// Caller: ", log.fromCorrelation] }), (0, jsx_runtime_1.jsxs)("div", { children: ["// Total Runtime: ", (0, jsx_runtime_1.jsxs)("span", Object.assign({ style: AnyVariableView_1.genericFunctionRendererStyles.highlightComment }, { children: [totalRuntime, " ms"] }))] }), (0, jsx_runtime_1.jsx)("div", { children: "// //////////////////////////////////////////////////////" })] })), (0, jsx_runtime_1.jsx)(AnyVariableView_1.GenericFunctionRenderer, { functionName: log.tags.join('::').split('::').pop() || 'unknown', args: log.input, expanded: true })] })) })] }));
|
|
10
10
|
};
|
|
11
11
|
exports.LogSummaryDetails = LogSummaryDetails;
|
|
@@ -5,6 +5,6 @@ const jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
5
5
|
const material_1 = require("@mui/material");
|
|
6
6
|
const actionComponents_1 = require("./actionComponents");
|
|
7
7
|
const LogSummaryReturn = ({ log }) => {
|
|
8
|
-
return ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "h6", gutterBottom: true }, { children: log.error ? 'Thrown Error' : 'Returned' })), (0, jsx_runtime_1.jsx)("pre", Object.assign({ style: { whiteSpace: 'pre-wrap', wordBreak: 'break-word' } }, { children: (0, jsx_runtime_1.jsx)("pre", Object.assign({ style: actionComponents_1.genericFunctionRendererStyles.pre }, { children: log.error ? (
|
|
8
|
+
return ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "h6", gutterBottom: true }, { children: log.error ? 'Thrown Error' : 'Returned' })), (0, jsx_runtime_1.jsx)("pre", Object.assign({ style: { whiteSpace: 'pre-wrap', wordBreak: 'break-word' } }, { children: (0, jsx_runtime_1.jsx)("pre", Object.assign({ style: actionComponents_1.genericFunctionRendererStyles.pre }, { children: log.error ? (0, jsx_runtime_1.jsx)(actionComponents_1.AnyVariableView, { value: log.error, expanded: true }) : (0, jsx_runtime_1.jsx)(actionComponents_1.AnyVariableView, { value: log.result, expanded: true }) })) }))] }));
|
|
9
9
|
};
|
|
10
10
|
exports.LogSummaryReturn = LogSummaryReturn;
|
|
@@ -8,9 +8,9 @@ const jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
8
8
|
const react_1 = __importDefault(require("react"));
|
|
9
9
|
const material_1 = require("@mui/material");
|
|
10
10
|
const Box_1 = __importDefault(require("@mui/material/Box"));
|
|
11
|
-
const LogSearch_1 = require("./LogSearch");
|
|
12
|
-
const Dashboard_1 = require("./Dashboard");
|
|
13
11
|
const useFederatedAddon_1 = require("../useFederatedAddon");
|
|
12
|
+
const Dashboard_1 = require("./Dashboard");
|
|
13
|
+
const LogSearch_1 = require("./LogSearch");
|
|
14
14
|
function useTabs() {
|
|
15
15
|
const { addons, loading } = (0, useFederatedAddon_1.useFederatedAddon)();
|
|
16
16
|
const allTabs = [
|
|
@@ -41,7 +41,12 @@ function LogViewer() {
|
|
|
41
41
|
const handleTabChange = (event, newValue) => {
|
|
42
42
|
setSelectedTab(newValue);
|
|
43
43
|
};
|
|
44
|
-
return ((0, jsx_runtime_1.jsxs)(Box_1.default, Object.assign({ sx: {
|
|
44
|
+
return ((0, jsx_runtime_1.jsxs)(Box_1.default, Object.assign({ sx: {
|
|
45
|
+
display: 'flex',
|
|
46
|
+
flexDirection: 'column',
|
|
47
|
+
height: '100vh',
|
|
48
|
+
width: '100%',
|
|
49
|
+
} }, { children: [(0, jsx_runtime_1.jsx)(Box_1.default, Object.assign({ sx: { flexGrow: 1, overflow: 'auto' } }, { children: tabs
|
|
45
50
|
.filter((tab, index) => index === selectedTab)
|
|
46
51
|
.map((tab) => ((0, jsx_runtime_1.jsx)(tab.View, {}, tab.name))) })), (0, jsx_runtime_1.jsx)(Box_1.default, Object.assign({ sx: {
|
|
47
52
|
borderTop: 1,
|
|
@@ -5,20 +5,20 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.TopSection = void 0;
|
|
7
7
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
-
const
|
|
8
|
+
const react_1 = require("react");
|
|
9
|
+
const ExpandMore_1 = __importDefault(require("@mui/icons-material/ExpandMore"));
|
|
10
|
+
const material_1 = require("@mui/material");
|
|
9
11
|
const FormControl_1 = __importDefault(require("@mui/material/FormControl"));
|
|
10
|
-
const Select_1 = __importDefault(require("@mui/material/Select"));
|
|
11
|
-
const TextField_1 = __importDefault(require("@mui/material/TextField"));
|
|
12
12
|
const Grid_1 = __importDefault(require("@mui/material/Grid"));
|
|
13
13
|
const InputLabel_1 = __importDefault(require("@mui/material/InputLabel"));
|
|
14
|
-
const
|
|
14
|
+
const MenuItem_1 = __importDefault(require("@mui/material/MenuItem"));
|
|
15
|
+
const Select_1 = __importDefault(require("@mui/material/Select"));
|
|
16
|
+
const TextField_1 = __importDefault(require("@mui/material/TextField"));
|
|
17
|
+
const system_1 = require("@mui/system");
|
|
15
18
|
const x_date_pickers_1 = require("@mui/x-date-pickers");
|
|
16
|
-
const
|
|
19
|
+
const AdapterDateFns_1 = require("@mui/x-date-pickers/AdapterDateFns");
|
|
17
20
|
const components_1 = require("../components");
|
|
18
|
-
const
|
|
19
|
-
const ExpandMore_1 = __importDefault(require("@mui/icons-material/ExpandMore"));
|
|
20
|
-
const react_1 = require("react");
|
|
21
|
-
const system_1 = require("@mui/system");
|
|
21
|
+
const constants_1 = require("./constants");
|
|
22
22
|
const hooks_1 = require("./hooks");
|
|
23
23
|
function TopSection({ searchParams, setSearchParams, onSearch }) {
|
|
24
24
|
const [anchorEl, setAnchorEl] = (0, react_1.useState)(null);
|
|
@@ -4,10 +4,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
|
-
const material_1 = require("@mui/material");
|
|
8
7
|
const ContentCopy_1 = __importDefault(require("@mui/icons-material/ContentCopy"));
|
|
8
|
+
const material_1 = require("@mui/material");
|
|
9
9
|
const hooks_1 = require("./hooks");
|
|
10
|
-
const TruncatedText = ({ title, text, expanded
|
|
10
|
+
const TruncatedText = ({ title, text, expanded }) => {
|
|
11
11
|
const { canTruncate, truncatedText, handleCopy } = (0, hooks_1.useTruncatedText)(text);
|
|
12
12
|
return ((0, jsx_runtime_1.jsxs)("div", Object.assign({ style: { position: 'relative' } }, { children: [(0, jsx_runtime_1.jsx)("div", Object.assign({ style: {
|
|
13
13
|
display: 'flex',
|
|
@@ -14,6 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./AnyVariableView"), exports);
|
|
18
17
|
__exportStar(require("./ActionResultDisplay"), exports);
|
|
18
|
+
__exportStar(require("./AnyVariableView"), exports);
|
|
19
19
|
__exportStar(require("./getGenericActionRenderer"), exports);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
export * from './useConsoleLogViewer';
|
|
2
|
+
export * from './useLogDetails';
|
|
1
3
|
export * from './useLogEvents';
|
|
2
4
|
export * from './useLogManagement';
|
|
5
|
+
export * from './useLogSearch';
|
|
6
|
+
export * from './useLogTreeData';
|
|
3
7
|
export * from './useLogViewGridColumns';
|
|
4
8
|
export * from './useOnSearch';
|
|
5
|
-
export * from './useConsoleLogViewer';
|
|
6
|
-
export * from './useLogDetails';
|
|
7
|
-
export * from './useTruncatedText';
|
|
8
|
-
export * from './useLogTreeData';
|
|
9
9
|
export * from './useServiceNames';
|
|
10
|
-
export * from './
|
|
10
|
+
export * from './useTruncatedText';
|
|
@@ -14,13 +14,13 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./useConsoleLogViewer"), exports);
|
|
18
|
+
__exportStar(require("./useLogDetails"), exports);
|
|
17
19
|
__exportStar(require("./useLogEvents"), exports);
|
|
18
20
|
__exportStar(require("./useLogManagement"), exports);
|
|
21
|
+
__exportStar(require("./useLogSearch"), exports);
|
|
22
|
+
__exportStar(require("./useLogTreeData"), exports);
|
|
19
23
|
__exportStar(require("./useLogViewGridColumns"), exports);
|
|
20
24
|
__exportStar(require("./useOnSearch"), exports);
|
|
21
|
-
__exportStar(require("./useConsoleLogViewer"), exports);
|
|
22
|
-
__exportStar(require("./useLogDetails"), exports);
|
|
23
|
-
__exportStar(require("./useTruncatedText"), exports);
|
|
24
|
-
__exportStar(require("./useLogTreeData"), exports);
|
|
25
25
|
__exportStar(require("./useServiceNames"), exports);
|
|
26
|
-
__exportStar(require("./
|
|
26
|
+
__exportStar(require("./useTruncatedText"), exports);
|