quidproquo-web-admin 0.0.243 → 0.0.245
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/lib/commonjs/LogViewer/AdminLogs/AdminLogSearchBar/AdminLogSearchBar.js +3 -3
- package/lib/commonjs/LogViewer/AdminLogs/hooks/logic/getLogLogs.d.ts +1 -1
- package/lib/commonjs/LogViewer/AdminLogs/hooks/logic/getLogLogs.js +2 -2
- package/lib/commonjs/LogViewer/AdminLogs/hooks/logic/searchLogLogs.js +1 -1
- package/lib/commonjs/LogViewer/AdminLogs/hooks/types/LogLogSearchParams.d.ts +1 -1
- package/lib/commonjs/LogViewer/AdminLogs/hooks/useLogLogSearch/useLogLogSearch.js +1 -1
- package/lib/commonjs/LogViewer/Dashboard.js +1 -1
- package/lib/commonjs/LogViewer/LogSummary.js +4 -4
- package/lib/esm/LogViewer/AdminLogs/AdminLogSearchBar/AdminLogSearchBar.js +3 -3
- package/lib/esm/LogViewer/AdminLogs/hooks/logic/getLogLogs.d.ts +1 -1
- package/lib/esm/LogViewer/AdminLogs/hooks/logic/getLogLogs.js +2 -2
- package/lib/esm/LogViewer/AdminLogs/hooks/logic/searchLogLogs.js +1 -1
- package/lib/esm/LogViewer/AdminLogs/hooks/types/LogLogSearchParams.d.ts +1 -1
- package/lib/esm/LogViewer/AdminLogs/hooks/useLogLogSearch/useLogLogSearch.js +1 -1
- package/lib/esm/LogViewer/Dashboard.js +2 -2
- package/lib/esm/LogViewer/LogSummary.js +5 -5
- package/package.json +6 -6
- package/lib/commonjs/logic/platform/getApiBaseUrl.d.ts +0 -2
- package/lib/commonjs/logic/platform/getApiBaseUrl.js +0 -17
- package/lib/esm/logic/platform/getApiBaseUrl.d.ts +0 -2
- package/lib/esm/logic/platform/getApiBaseUrl.js +0 -12
|
@@ -36,8 +36,8 @@ function AdminLogSearchBar({ searchParams, setLogLogSearchParams, onSearch }) {
|
|
|
36
36
|
setLogLogSearchParams((prevLogLogSearchParams) => (Object.assign(Object.assign({}, prevLogLogSearchParams), { endIsoDateTime: value.toISOString() })));
|
|
37
37
|
}
|
|
38
38
|
};
|
|
39
|
-
const
|
|
40
|
-
setLogLogSearchParams((prev) => (Object.assign(Object.assign({}, prev), {
|
|
39
|
+
const handleReasonFilterChange = (event) => {
|
|
40
|
+
setLogLogSearchParams((prev) => (Object.assign(Object.assign({}, prev), { reasonFilter: event.target.value })));
|
|
41
41
|
};
|
|
42
42
|
const handleQuickTimeSelect = (minutes) => {
|
|
43
43
|
const now = new Date();
|
|
@@ -62,7 +62,7 @@ function AdminLogSearchBar({ searchParams, setLogLogSearchParams, onSearch }) {
|
|
|
62
62
|
right: '-28px',
|
|
63
63
|
top: '50%',
|
|
64
64
|
transform: 'translateY(-50%)',
|
|
65
|
-
} }, { children: (0, jsx_runtime_1.jsx)(ExpandMore_1.default, {}) }))] })) })), (0, jsx_runtime_1.jsx)(Grid_1.default, Object.assign({ item: true, xs: 3 }, { children: (0, jsx_runtime_1.jsx)(FormControl_1.default, Object.assign({ fullWidth: true }, { children: (0, jsx_runtime_1.jsx)(x_date_pickers_1.DateTimePicker, { label: "End DateTime", value: new Date(searchParams.endIsoDateTime), onChange: handleEndDateChange }) })) })), (0, jsx_runtime_1.jsx)(Grid_1.default, Object.assign({ item: true, xs: 10 }, { children: (0, jsx_runtime_1.jsx)(FormControl_1.default, Object.assign({ fullWidth: true }, { children: (0, jsx_runtime_1.jsx)(TextField_1.default, { label: "
|
|
65
|
+
} }, { children: (0, jsx_runtime_1.jsx)(ExpandMore_1.default, {}) }))] })) })), (0, jsx_runtime_1.jsx)(Grid_1.default, Object.assign({ item: true, xs: 3 }, { children: (0, jsx_runtime_1.jsx)(FormControl_1.default, Object.assign({ fullWidth: true }, { children: (0, jsx_runtime_1.jsx)(x_date_pickers_1.DateTimePicker, { label: "End DateTime", value: new Date(searchParams.endIsoDateTime), onChange: handleEndDateChange }) })) })), (0, jsx_runtime_1.jsx)(Grid_1.default, Object.assign({ item: true, xs: 10 }, { children: (0, jsx_runtime_1.jsx)(FormControl_1.default, Object.assign({ fullWidth: true }, { children: (0, jsx_runtime_1.jsx)(TextField_1.default, { label: "Message", value: searchParams.reasonFilter, onChange: handleReasonFilterChange, InputLabelProps: {
|
|
66
66
|
shrink: true,
|
|
67
67
|
} }) })) })), (0, jsx_runtime_1.jsx)(Grid_1.default, Object.assign({ item: true, xs: 2 }, { children: (0, jsx_runtime_1.jsx)(components_1.AsyncButton, Object.assign({ onClick: () => onSearch() }, { children: "Search" })) }))] })), (0, jsx_runtime_1.jsxs)(material_1.Menu, Object.assign({ id: "quick-time-menu", anchorEl: anchorEl, keepMounted: true, open: Boolean(anchorEl), onClose: handleQuickTimeClose }, { children: [(0, jsx_runtime_1.jsx)(MenuItem_1.default, Object.assign({ onClick: () => handleQuickTimeSelect(5) }, { children: "Last 5 minutes" })), (0, jsx_runtime_1.jsx)(MenuItem_1.default, Object.assign({ onClick: () => handleQuickTimeSelect(30) }, { children: "Last 30 minutes" })), (0, jsx_runtime_1.jsx)(MenuItem_1.default, Object.assign({ onClick: () => handleQuickTimeSelect(1 * 60) }, { children: "Last hour" })), (0, jsx_runtime_1.jsx)(MenuItem_1.default, Object.assign({ onClick: () => handleQuickTimeSelect(3 * 60) }, { children: "Last 3 hours" })), (0, jsx_runtime_1.jsx)(MenuItem_1.default, Object.assign({ onClick: () => handleQuickTimeSelect(8 * 60) }, { children: "Last 8 hours" })), (0, jsx_runtime_1.jsx)(MenuItem_1.default, Object.assign({ onClick: () => handleQuickTimeSelect(16 * 60) }, { children: "Last 16 hours" })), (0, jsx_runtime_1.jsx)(MenuItem_1.default, Object.assign({ onClick: () => handleQuickTimeSelect(24 * 60) }, { children: "Last 24 hours" })), (0, jsx_runtime_1.jsx)(MenuItem_1.default, Object.assign({ onClick: () => handleQuickTimeSelect(7 * 24 * 60) }, { children: "Last 7 days" })), (0, jsx_runtime_1.jsx)(MenuItem_1.default, Object.assign({ onClick: () => handleQuickTimeSelect(30 * 24 * 60) }, { children: "Last month" }))] }))] })));
|
|
68
68
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { LogLevelEnum } from 'quidproquo-core';
|
|
2
2
|
import { LogLog } from 'quidproquo-webserver';
|
|
3
|
-
export declare const getLogLogs: (logLevel: LogLevelEnum, startIsoDateTime: string, endIsoDateTime: string, serviceFilter: string,
|
|
3
|
+
export declare const getLogLogs: (logLevel: LogLevelEnum, startIsoDateTime: string, endIsoDateTime: string, serviceFilter: string, reasonFilter: string, apiBaseUrl: string, accessToken?: string) => Promise<LogLog[]>;
|
|
@@ -11,7 +11,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.getLogLogs = void 0;
|
|
13
13
|
const logic_1 = require("../../../../logic");
|
|
14
|
-
const getLogLogs = (logLevel, startIsoDateTime, endIsoDateTime, serviceFilter,
|
|
14
|
+
const getLogLogs = (logLevel, startIsoDateTime, endIsoDateTime, serviceFilter, reasonFilter, apiBaseUrl, accessToken) => __awaiter(void 0, void 0, void 0, function* () {
|
|
15
15
|
let logs = [];
|
|
16
16
|
let nextPageKey = undefined;
|
|
17
17
|
const requestSpan = {
|
|
@@ -19,7 +19,7 @@ const getLogLogs = (logLevel, startIsoDateTime, endIsoDateTime, serviceFilter, m
|
|
|
19
19
|
endIsoDateTime,
|
|
20
20
|
logLevel,
|
|
21
21
|
serviceFilter,
|
|
22
|
-
|
|
22
|
+
reasonFilter,
|
|
23
23
|
};
|
|
24
24
|
do {
|
|
25
25
|
let newLogs = yield (0, logic_1.apiRequestPost)(`/loglog/list`, Object.assign(Object.assign({}, requestSpan), { nextPageKey: nextPageKey }), apiBaseUrl, accessToken);
|
|
@@ -18,7 +18,7 @@ const searchLogLogs = (searchParams, apiBaseUrl, accessToken, callback) => __awa
|
|
|
18
18
|
let progress = 0;
|
|
19
19
|
const totalCount = logLevels.length;
|
|
20
20
|
callback === null || callback === void 0 ? void 0 : callback(0);
|
|
21
|
-
const allLogs = yield Promise.all(logLevels.flatMap((logLevel) => (0, getLogLogs_1.getLogLogs)(logLevel, searchParams.startIsoDateTime, searchParams.endIsoDateTime, searchParams.serviceFilter, searchParams.
|
|
21
|
+
const allLogs = yield Promise.all(logLevels.flatMap((logLevel) => (0, getLogLogs_1.getLogLogs)(logLevel, searchParams.startIsoDateTime, searchParams.endIsoDateTime, searchParams.serviceFilter, searchParams.reasonFilter, apiBaseUrl, accessToken).finally(() => {
|
|
22
22
|
progress = progress + 1;
|
|
23
23
|
callback === null || callback === void 0 ? void 0 : callback((progress / totalCount) * 100);
|
|
24
24
|
})));
|
|
@@ -69,7 +69,7 @@ const Dashboard = () => {
|
|
|
69
69
|
};
|
|
70
70
|
onSearch(searchParams);
|
|
71
71
|
}, []);
|
|
72
|
-
(0, quidproquo_web_react_2.useSubscribeToWebSocketEvent)(quidproquo_webserver_1.
|
|
72
|
+
(0, quidproquo_web_react_2.useSubscribeToWebSocketEvent)(quidproquo_webserver_1.WebSocketQueueQpqAdminServerMessageEventType.LogMetadata, (webSocketService, message) => {
|
|
73
73
|
// Add the log to the list if its an error
|
|
74
74
|
if (message.payload.log.error) {
|
|
75
75
|
setRealtimeLogs((prevLogs) => [message.payload.log, ...prevLogs.filter((pl) => pl.correlation !== message.payload.log.correlation)]);
|
|
@@ -13,7 +13,7 @@ const LogSummary = ({ log }) => {
|
|
|
13
13
|
const handleCheckboxChange = (event) => {
|
|
14
14
|
setCheckedLoading(true);
|
|
15
15
|
const checkEvent = {
|
|
16
|
-
type: quidproquo_webserver_1.
|
|
16
|
+
type: quidproquo_webserver_1.WebsocketAdminClientMessageEventType.MarkLogChecked,
|
|
17
17
|
payload: {
|
|
18
18
|
correlationId: log.correlation,
|
|
19
19
|
checked: event.target.checked,
|
|
@@ -21,7 +21,7 @@ const LogSummary = ({ log }) => {
|
|
|
21
21
|
};
|
|
22
22
|
sendMessage(checkEvent);
|
|
23
23
|
};
|
|
24
|
-
(0, quidproquo_web_react_1.useSubscribeToWebSocketEvent)(quidproquo_webserver_1.
|
|
24
|
+
(0, quidproquo_web_react_1.useSubscribeToWebSocketEvent)(quidproquo_webserver_1.WebSocketQueueQpqAdminServerMessageEventType.LogMetadata, (_webSocketService, message) => {
|
|
25
25
|
if (message.payload.log.correlation !== log.correlation) {
|
|
26
26
|
return;
|
|
27
27
|
}
|
|
@@ -29,13 +29,13 @@ const LogSummary = ({ log }) => {
|
|
|
29
29
|
setLogMetadata(message.payload.log);
|
|
30
30
|
});
|
|
31
31
|
(0, react_1.useEffect)(() => {
|
|
32
|
-
const
|
|
32
|
+
const refreshEvent = {
|
|
33
33
|
type: quidproquo_webserver_1.WebsocketAdminClientMessageEventType.RefreshLogMetadata,
|
|
34
34
|
payload: {
|
|
35
35
|
correlationId: log.correlation,
|
|
36
36
|
},
|
|
37
37
|
};
|
|
38
|
-
sendMessage(
|
|
38
|
+
sendMessage(refreshEvent);
|
|
39
39
|
}, [log.correlation]);
|
|
40
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
|
};
|
|
@@ -39,8 +39,8 @@ export function AdminLogSearchBar({ searchParams, setLogLogSearchParams, onSearc
|
|
|
39
39
|
}));
|
|
40
40
|
}
|
|
41
41
|
};
|
|
42
|
-
const
|
|
43
|
-
setLogLogSearchParams((prev) => ({ ...prev,
|
|
42
|
+
const handleReasonFilterChange = (event) => {
|
|
43
|
+
setLogLogSearchParams((prev) => ({ ...prev, reasonFilter: event.target.value }));
|
|
44
44
|
};
|
|
45
45
|
const handleQuickTimeSelect = (minutes) => {
|
|
46
46
|
const now = new Date();
|
|
@@ -72,7 +72,7 @@ export function AdminLogSearchBar({ searchParams, setLogLogSearchParams, onSearc
|
|
|
72
72
|
right: '-28px',
|
|
73
73
|
top: '50%',
|
|
74
74
|
transform: 'translateY(-50%)',
|
|
75
|
-
}, children: _jsx(ExpandMoreIcon, {}) })] }) }), _jsx(Grid, { item: true, xs: 3, children: _jsx(FormControl, { fullWidth: true, children: _jsx(DateTimePicker, { label: "End DateTime", value: new Date(searchParams.endIsoDateTime), onChange: handleEndDateChange }) }) }), _jsx(Grid, { item: true, xs: 10, children: _jsx(FormControl, { fullWidth: true, children: _jsx(TextField, { label: "
|
|
75
|
+
}, children: _jsx(ExpandMoreIcon, {}) })] }) }), _jsx(Grid, { item: true, xs: 3, children: _jsx(FormControl, { fullWidth: true, children: _jsx(DateTimePicker, { label: "End DateTime", value: new Date(searchParams.endIsoDateTime), onChange: handleEndDateChange }) }) }), _jsx(Grid, { item: true, xs: 10, children: _jsx(FormControl, { fullWidth: true, children: _jsx(TextField, { label: "Message", value: searchParams.reasonFilter, onChange: handleReasonFilterChange, InputLabelProps: {
|
|
76
76
|
shrink: true,
|
|
77
77
|
} }) }) }), _jsx(Grid, { item: true, xs: 2, children: _jsx(AsyncButton, { onClick: () => onSearch(), children: "Search" }) })] }), _jsxs(Menu, { id: "quick-time-menu", anchorEl: anchorEl, keepMounted: true, open: Boolean(anchorEl), onClose: handleQuickTimeClose, children: [_jsx(MenuItem, { onClick: () => handleQuickTimeSelect(5), children: "Last 5 minutes" }), _jsx(MenuItem, { onClick: () => handleQuickTimeSelect(30), children: "Last 30 minutes" }), _jsx(MenuItem, { onClick: () => handleQuickTimeSelect(1 * 60), children: "Last hour" }), _jsx(MenuItem, { onClick: () => handleQuickTimeSelect(3 * 60), children: "Last 3 hours" }), _jsx(MenuItem, { onClick: () => handleQuickTimeSelect(8 * 60), children: "Last 8 hours" }), _jsx(MenuItem, { onClick: () => handleQuickTimeSelect(16 * 60), children: "Last 16 hours" }), _jsx(MenuItem, { onClick: () => handleQuickTimeSelect(24 * 60), children: "Last 24 hours" }), _jsx(MenuItem, { onClick: () => handleQuickTimeSelect(7 * 24 * 60), children: "Last 7 days" }), _jsx(MenuItem, { onClick: () => handleQuickTimeSelect(30 * 24 * 60), children: "Last month" })] })] }));
|
|
78
78
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { LogLevelEnum } from 'quidproquo-core';
|
|
2
2
|
import { LogLog } from 'quidproquo-webserver';
|
|
3
|
-
export declare const getLogLogs: (logLevel: LogLevelEnum, startIsoDateTime: string, endIsoDateTime: string, serviceFilter: string,
|
|
3
|
+
export declare const getLogLogs: (logLevel: LogLevelEnum, startIsoDateTime: string, endIsoDateTime: string, serviceFilter: string, reasonFilter: string, apiBaseUrl: string, accessToken?: string) => Promise<LogLog[]>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { apiRequestPost } from '../../../../logic';
|
|
2
|
-
export const getLogLogs = async (logLevel, startIsoDateTime, endIsoDateTime, serviceFilter,
|
|
2
|
+
export const getLogLogs = async (logLevel, startIsoDateTime, endIsoDateTime, serviceFilter, reasonFilter, apiBaseUrl, accessToken) => {
|
|
3
3
|
let logs = [];
|
|
4
4
|
let nextPageKey = undefined;
|
|
5
5
|
const requestSpan = {
|
|
@@ -7,7 +7,7 @@ export const getLogLogs = async (logLevel, startIsoDateTime, endIsoDateTime, ser
|
|
|
7
7
|
endIsoDateTime,
|
|
8
8
|
logLevel,
|
|
9
9
|
serviceFilter,
|
|
10
|
-
|
|
10
|
+
reasonFilter,
|
|
11
11
|
};
|
|
12
12
|
do {
|
|
13
13
|
let newLogs = await apiRequestPost(`/loglog/list`, {
|
|
@@ -6,7 +6,7 @@ export const searchLogLogs = async (searchParams, apiBaseUrl, accessToken, callb
|
|
|
6
6
|
let progress = 0;
|
|
7
7
|
const totalCount = logLevels.length;
|
|
8
8
|
callback?.(0);
|
|
9
|
-
const allLogs = await Promise.all(logLevels.flatMap((logLevel) => getLogLogs(logLevel, searchParams.startIsoDateTime, searchParams.endIsoDateTime, searchParams.serviceFilter, searchParams.
|
|
9
|
+
const allLogs = await Promise.all(logLevels.flatMap((logLevel) => getLogLogs(logLevel, searchParams.startIsoDateTime, searchParams.endIsoDateTime, searchParams.serviceFilter, searchParams.reasonFilter, apiBaseUrl, accessToken).finally(() => {
|
|
10
10
|
progress = progress + 1;
|
|
11
11
|
callback?.((progress / totalCount) * 100);
|
|
12
12
|
})));
|
|
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { uniqueBy } from 'quidproquo-web';
|
|
3
3
|
import { useRunEvery, useThrottledMemo } from 'quidproquo-web-react';
|
|
4
4
|
import { useSubscribeToWebSocketEvent } from 'quidproquo-web-react';
|
|
5
|
-
import {
|
|
5
|
+
import { WebSocketQueueQpqAdminServerMessageEventType } from 'quidproquo-webserver';
|
|
6
6
|
import React, { useEffect, useMemo } from 'react';
|
|
7
7
|
import { Box, Grid, Paper, Typography } from '@mui/material';
|
|
8
8
|
import { TabViewBox } from '../components';
|
|
@@ -43,7 +43,7 @@ export const Dashboard = () => {
|
|
|
43
43
|
};
|
|
44
44
|
onSearch(searchParams);
|
|
45
45
|
}, []);
|
|
46
|
-
useSubscribeToWebSocketEvent(
|
|
46
|
+
useSubscribeToWebSocketEvent(WebSocketQueueQpqAdminServerMessageEventType.LogMetadata, (webSocketService, message) => {
|
|
47
47
|
// Add the log to the list if its an error
|
|
48
48
|
if (message.payload.log.error) {
|
|
49
49
|
setRealtimeLogs((prevLogs) => [message.payload.log, ...prevLogs.filter((pl) => pl.correlation !== message.payload.log.correlation)]);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useSubscribeToWebSocketEvent, useWebsocketSendEvent } from 'quidproquo-web-react';
|
|
3
|
-
import { WebsocketAdminClientMessageEventType,
|
|
3
|
+
import { WebsocketAdminClientMessageEventType, WebSocketQueueQpqAdminServerMessageEventType, } from 'quidproquo-webserver';
|
|
4
4
|
import { useEffect, useState } from 'react';
|
|
5
5
|
import { Box, Checkbox, CircularProgress, FormControlLabel, Typography } from '@mui/material';
|
|
6
6
|
export const LogSummary = ({ log }) => {
|
|
@@ -10,7 +10,7 @@ export const LogSummary = ({ log }) => {
|
|
|
10
10
|
const handleCheckboxChange = (event) => {
|
|
11
11
|
setCheckedLoading(true);
|
|
12
12
|
const checkEvent = {
|
|
13
|
-
type:
|
|
13
|
+
type: WebsocketAdminClientMessageEventType.MarkLogChecked,
|
|
14
14
|
payload: {
|
|
15
15
|
correlationId: log.correlation,
|
|
16
16
|
checked: event.target.checked,
|
|
@@ -18,7 +18,7 @@ export const LogSummary = ({ log }) => {
|
|
|
18
18
|
};
|
|
19
19
|
sendMessage(checkEvent);
|
|
20
20
|
};
|
|
21
|
-
useSubscribeToWebSocketEvent(
|
|
21
|
+
useSubscribeToWebSocketEvent(WebSocketQueueQpqAdminServerMessageEventType.LogMetadata, (_webSocketService, message) => {
|
|
22
22
|
if (message.payload.log.correlation !== log.correlation) {
|
|
23
23
|
return;
|
|
24
24
|
}
|
|
@@ -26,13 +26,13 @@ export const LogSummary = ({ log }) => {
|
|
|
26
26
|
setLogMetadata(message.payload.log);
|
|
27
27
|
});
|
|
28
28
|
useEffect(() => {
|
|
29
|
-
const
|
|
29
|
+
const refreshEvent = {
|
|
30
30
|
type: WebsocketAdminClientMessageEventType.RefreshLogMetadata,
|
|
31
31
|
payload: {
|
|
32
32
|
correlationId: log.correlation,
|
|
33
33
|
},
|
|
34
34
|
};
|
|
35
|
-
sendMessage(
|
|
35
|
+
sendMessage(refreshEvent);
|
|
36
36
|
}, [log.correlation]);
|
|
37
37
|
return (_jsxs(Box, { sx: { width: 1, p: 2 }, children: [_jsx(Typography, { variant: "h6", gutterBottom: true, children: "Log Summary" }), _jsxs(Typography, { children: ["Correlation ID: ", log.correlation] }), _jsx(FormControlLabel, { control: checkedLoading ? _jsx(CircularProgress, { size: 24 }) : _jsx(Checkbox, { checked: !!logMetadata?.checked, onChange: handleCheckboxChange }), label: "Mark as done" })] }));
|
|
38
38
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "quidproquo-web-admin",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.245",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./lib/commonjs/index.js",
|
|
6
6
|
"module": "./lib/esm/index.js",
|
|
@@ -45,11 +45,11 @@
|
|
|
45
45
|
"date-fns": "^2.30.0",
|
|
46
46
|
"dayjs": "^1.11.7",
|
|
47
47
|
"javascript-time-ago": "^2.5.9",
|
|
48
|
-
"quidproquo-core": "0.0.
|
|
49
|
-
"quidproquo-tsconfig": "0.0.
|
|
50
|
-
"quidproquo-web": "0.0.
|
|
51
|
-
"quidproquo-web-react": "0.0.
|
|
52
|
-
"quidproquo-webserver": "0.0.
|
|
48
|
+
"quidproquo-core": "0.0.245",
|
|
49
|
+
"quidproquo-tsconfig": "0.0.245",
|
|
50
|
+
"quidproquo-web": "0.0.245",
|
|
51
|
+
"quidproquo-web-react": "0.0.245",
|
|
52
|
+
"quidproquo-webserver": "0.0.245",
|
|
53
53
|
"react": ">=18.3.1",
|
|
54
54
|
"react-d3-tree": "^3.6.0",
|
|
55
55
|
"react-dom": "18.3.1",
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getWsBaseUrl = exports.getApiBaseUrl = void 0;
|
|
4
|
-
const getApiBaseUrl = () => {
|
|
5
|
-
const [service, ...domain] = window.location.host.split('.').slice(1);
|
|
6
|
-
return window.location.hostname !== 'localhost'
|
|
7
|
-
? `${window.location.protocol}//api.${domain.join('.')}/${service}`
|
|
8
|
-
: `https://api.joecoady.development.kitted.app/admin`;
|
|
9
|
-
};
|
|
10
|
-
exports.getApiBaseUrl = getApiBaseUrl;
|
|
11
|
-
const getWsBaseUrl = () => {
|
|
12
|
-
const [service, ...domain] = window.location.host.split('.').slice(1);
|
|
13
|
-
return window.location.hostname !== 'localhost'
|
|
14
|
-
? `wss://wsadmin.${service}.${domain.join('.')}`
|
|
15
|
-
: `wss://wsadmin.admin.joecoady.development.kitted.app`;
|
|
16
|
-
};
|
|
17
|
-
exports.getWsBaseUrl = getWsBaseUrl;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export const getApiBaseUrl = () => {
|
|
2
|
-
const [service, ...domain] = window.location.host.split('.').slice(1);
|
|
3
|
-
return window.location.hostname !== 'localhost'
|
|
4
|
-
? `${window.location.protocol}//api.${domain.join('.')}/${service}`
|
|
5
|
-
: `https://api.joecoady.development.kitted.app/admin`;
|
|
6
|
-
};
|
|
7
|
-
export const getWsBaseUrl = () => {
|
|
8
|
-
const [service, ...domain] = window.location.host.split('.').slice(1);
|
|
9
|
-
return window.location.hostname !== 'localhost'
|
|
10
|
-
? `wss://wsadmin.${service}.${domain.join('.')}`
|
|
11
|
-
: `wss://wsadmin.admin.joecoady.development.kitted.app`;
|
|
12
|
-
};
|