@xh/hoist 72.2.0 → 72.4.0
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/CHANGELOG.md +40 -2
- package/admin/tabs/activity/tracking/detail/ActivityDetailModel.ts +2 -2
- package/admin/tabs/cluster/instances/BaseInstanceModel.ts +1 -29
- package/admin/tabs/cluster/instances/InstancesTabModel.ts +4 -3
- package/admin/tabs/cluster/instances/logs/LogDisplay.ts +12 -14
- package/admin/tabs/cluster/instances/logs/LogDisplayModel.ts +0 -2
- package/admin/tabs/cluster/instances/logs/LogViewer.ts +6 -5
- package/admin/tabs/cluster/instances/logs/LogViewerModel.ts +8 -1
- package/admin/tabs/cluster/instances/memory/MemoryMonitorModel.ts +1 -0
- package/admin/tabs/cluster/instances/services/DetailsModel.ts +1 -2
- package/admin/tabs/cluster/instances/services/DetailsPanel.ts +20 -14
- package/admin/tabs/cluster/instances/services/ServiceModel.ts +14 -6
- package/admin/tabs/cluster/instances/services/ServicePanel.ts +9 -10
- package/admin/tabs/cluster/instances/websocket/WebSocketColumns.ts +9 -0
- package/admin/tabs/cluster/instances/websocket/WebSocketModel.ts +2 -1
- package/admin/tabs/cluster/objects/DetailModel.ts +4 -40
- package/admin/tabs/cluster/objects/DetailPanel.ts +2 -1
- package/admin/tabs/userData/roles/RoleModel.ts +1 -1
- package/appcontainer/AppContainerModel.ts +2 -0
- package/appcontainer/AppStateModel.ts +46 -9
- package/build/types/admin/tabs/activity/tracking/ActivityTrackingModel.d.ts +4 -1
- package/build/types/admin/tabs/cluster/instances/BaseInstanceModel.d.ts +1 -3
- package/build/types/admin/tabs/cluster/instances/services/DetailsModel.d.ts +2 -3
- package/build/types/admin/tabs/cluster/instances/websocket/WebSocketColumns.d.ts +1 -0
- package/build/types/admin/tabs/cluster/objects/DetailModel.d.ts +1 -3
- package/build/types/appcontainer/AppStateModel.d.ts +7 -1
- package/build/types/cmp/viewmanager/ViewManagerModel.d.ts +7 -0
- package/build/types/core/XH.d.ts +11 -1
- package/build/types/desktop/cmp/tab/TabSwitcher.d.ts +1 -1
- package/build/types/format/FormatDate.d.ts +22 -1
- package/build/types/format/FormatMisc.d.ts +3 -2
- package/build/types/security/BaseOAuthClient.d.ts +6 -7
- package/build/types/security/Types.d.ts +32 -5
- package/build/types/security/msal/MsalClient.d.ts +14 -1
- package/build/types/svc/ClientHealthService.d.ts +58 -0
- package/build/types/svc/TrackService.d.ts +19 -1
- package/build/types/svc/index.d.ts +1 -0
- package/build/types/utils/js/index.d.ts +0 -1
- package/cmp/viewmanager/ViewManagerModel.ts +10 -1
- package/core/XH.ts +26 -1
- package/data/Store.ts +3 -0
- package/desktop/cmp/grid/editors/BooleanEditor.ts +15 -3
- package/desktop/cmp/tab/TabSwitcher.ts +1 -1
- package/desktop/cmp/viewmanager/ViewMenu.ts +11 -9
- package/format/FormatDate.ts +45 -3
- package/format/FormatMisc.ts +6 -4
- package/package.json +2 -2
- package/security/BaseOAuthClient.ts +12 -10
- package/security/Types.ts +35 -6
- package/security/msal/MsalClient.ts +126 -21
- package/svc/ClientHealthService.ts +165 -0
- package/svc/FetchService.ts +3 -2
- package/svc/TrackService.ts +27 -5
- package/svc/WebSocketService.ts +1 -2
- package/svc/index.ts +1 -0
- package/tsconfig.tsbuildinfo +1 -1
- package/utils/js/index.ts +0 -1
- package/build/types/utils/js/BrowserUtils.d.ts +0 -4
- package/utils/js/BrowserUtils.ts +0 -52
package/utils/js/index.ts
CHANGED
package/utils/js/BrowserUtils.ts
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* This file belongs to Hoist, an application development toolkit
|
|
3
|
-
* developed by Extremely Heavy Industries (www.xh.io | info@xh.io)
|
|
4
|
-
*
|
|
5
|
-
* Copyright © 2025 Extremely Heavy Industries Inc.
|
|
6
|
-
*/
|
|
7
|
-
import {pick} from 'lodash';
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* Extract information (if available) about the client browser's window, screen, and network speed.
|
|
11
|
-
*/
|
|
12
|
-
export function getClientDeviceInfo() {
|
|
13
|
-
const data: any = pick(window, [
|
|
14
|
-
'screen',
|
|
15
|
-
'devicePixelRatio',
|
|
16
|
-
'screenX',
|
|
17
|
-
'screenY',
|
|
18
|
-
'innerWidth',
|
|
19
|
-
'innerHeight',
|
|
20
|
-
'outerWidth',
|
|
21
|
-
'outerHeight'
|
|
22
|
-
]);
|
|
23
|
-
|
|
24
|
-
if (data.screen) {
|
|
25
|
-
data.screen = pick(data.screen, [
|
|
26
|
-
'availWidth',
|
|
27
|
-
'availHeight',
|
|
28
|
-
'width',
|
|
29
|
-
'height',
|
|
30
|
-
'colorDepth',
|
|
31
|
-
'pixelDepth',
|
|
32
|
-
'availLeft',
|
|
33
|
-
'availTop',
|
|
34
|
-
'orientation'
|
|
35
|
-
]);
|
|
36
|
-
if (data.screen.orientation) {
|
|
37
|
-
data.screen.orientation = pick(data.screen.orientation, ['angle', 'type']);
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
const nav = window.navigator as any;
|
|
42
|
-
if (nav.connection) {
|
|
43
|
-
data.connection = pick(nav.connection, ['downlink', 'effectiveType', 'rtt']);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
const perf = window.performance as any;
|
|
47
|
-
if (perf?.memory) {
|
|
48
|
-
data.memory = pick(perf.memory, ['jsHeapSizeLimit', 'totalJSHeapSize', 'usedJSHeapSize']);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
return data;
|
|
52
|
-
}
|