@xh/hoist 69.0.0-SNAPSHOT.1729088865150 → 69.0.0-SNAPSHOT.1729090176936

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.
@@ -238,7 +238,8 @@ function badgeRenderer(v) {
238
238
  return v
239
239
  ? badge({
240
240
  item: v,
241
- className: 'xh-font-family-mono xh-title-tip',
241
+ className: 'xh-font-family-mono',
242
+ style: {cursor: 'copy'},
242
243
  title: 'Double-click to copy',
243
244
  onDoubleClick: () => {
244
245
  copy(v);
@@ -47,6 +47,7 @@ export const detailPanel = hoistCmp.factory<ClusterTabModel>({
47
47
  return panel({
48
48
  compactHeader: true,
49
49
  tbar: [
50
+ Icon.server(),
50
51
  box({width: 150, item: model.formatInstance(instance)}),
51
52
  hspacer(25),
52
53
  tabSwitcher()
@@ -7,8 +7,8 @@
7
7
  import {AppModel} from '@xh/hoist/admin/AppModel';
8
8
  import {timestampNoYear} from '@xh/hoist/admin/columns';
9
9
  import {connPoolMonitorPanel} from '@xh/hoist/admin/tabs/cluster/connpool/ConnPoolMonitorPanel';
10
+ import {distributedObjectsPanel} from '@xh/hoist/admin/tabs/cluster/distobjects/DistributedObjectsPanel';
10
11
  import {serverEnvPanel} from '@xh/hoist/admin/tabs/cluster/environment/ServerEnvPanel';
11
- import {hzObjectPanel} from '@xh/hoist/admin/tabs/cluster/hzobject/HzObjectPanel';
12
12
  import {logViewer} from '@xh/hoist/admin/tabs/cluster/logs/LogViewer';
13
13
  import {usedHeapMb, usedPctMax} from '@xh/hoist/admin/tabs/cluster/memory/MemoryMonitorModel';
14
14
  import {memoryMonitorPanel} from '@xh/hoist/admin/tabs/cluster/memory/MemoryMonitorPanel';
@@ -180,7 +180,7 @@ export class ClusterTabModel extends HoistModel {
180
180
  id: 'objects',
181
181
  title: 'Distributed Objects',
182
182
  icon: Icon.grip(),
183
- content: hzObjectPanel
183
+ content: distributedObjectsPanel
184
184
  },
185
185
  {id: 'webSockets', title: 'WebSockets', icon: Icon.bolt(), content: webSocketPanel}
186
186
  ]
@@ -34,7 +34,7 @@ export const connPoolMonitorPanel = hoistCmp.factory({
34
34
  panel({
35
35
  modelConfig: {
36
36
  side: 'bottom',
37
- defaultSize: 400
37
+ defaultSize: '50%'
38
38
  },
39
39
  item: chart()
40
40
  })
@@ -18,7 +18,7 @@ import {Icon} from '@xh/hoist/icon';
18
18
  import {bindable, makeObservable} from '@xh/hoist/mobx';
19
19
  import {first, isEmpty, last} from 'lodash';
20
20
 
21
- export class HzObjectModel extends BaseInstanceModel {
21
+ export class DistributedObjectsModel extends BaseInstanceModel {
22
22
  @bindable groupBy: 'type' | 'owner' = 'owner';
23
23
 
24
24
  @managed detailPanelModel = new PanelModel({
@@ -14,16 +14,17 @@ import {panel} from '@xh/hoist/desktop/cmp/panel';
14
14
  import {toolbar} from '@xh/hoist/desktop/cmp/toolbar';
15
15
  import {recordActionBar} from '@xh/hoist/desktop/cmp/record';
16
16
  import {Icon} from '@xh/hoist/icon';
17
- import {HzObjectModel} from './HzObjectModel';
17
+ import {DistributedObjectsModel} from './DistributedObjectsModel';
18
18
 
19
- export const hzObjectPanel = hoistCmp.factory({
20
- model: creates(HzObjectModel),
19
+ export const distributedObjectsPanel = hoistCmp.factory({
20
+ displayName: 'DistributedObjectsPanel',
21
+ model: creates(DistributedObjectsModel),
21
22
 
22
23
  render({model}) {
23
24
  return panel({
24
25
  item: hframe(
25
26
  panel({
26
- item: grid({agOptions: {groupDefaultExpanded: 0}}),
27
+ item: grid(),
27
28
  bbar: bbar()
28
29
  }),
29
30
  detailsPanel()
@@ -35,7 +36,7 @@ export const hzObjectPanel = hoistCmp.factory({
35
36
  });
36
37
 
37
38
  const detailsPanel = hoistCmp.factory({
38
- model: uses(HzObjectModel),
39
+ model: uses(DistributedObjectsModel),
39
40
  render({model}) {
40
41
  const record = model.gridModel.selectedRecord;
41
42
  return panel({
@@ -62,7 +63,7 @@ const detailsPanel = hoistCmp.factory({
62
63
  }
63
64
  });
64
65
 
65
- const bbar = hoistCmp.factory<HzObjectModel>({
66
+ const bbar = hoistCmp.factory<DistributedObjectsModel>({
66
67
  render({model}) {
67
68
  return toolbar(
68
69
  recordActionBar({
@@ -41,8 +41,9 @@ export const logViewer = hoistCmp.factory({
41
41
  bbar: [
42
42
  storeFilterField({flex: 1}),
43
43
  select({
44
+ leftIcon: Icon.server(),
44
45
  bind: 'instanceOnly',
45
- width: 90,
46
+ width: 110,
46
47
  enableFilter: false,
47
48
  hideDropdownIndicator: true,
48
49
  hideSelectedOptionCheck: true,
@@ -35,7 +35,7 @@ export const memoryMonitorPanel = hoistCmp.factory({
35
35
  panel({
36
36
  modelConfig: {
37
37
  side: 'bottom',
38
- defaultSize: 400
38
+ defaultSize: '50%'
39
39
  },
40
40
  item: chart()
41
41
  })
@@ -3,7 +3,7 @@ import { GridModel } from '@xh/hoist/cmp/grid';
3
3
  import { LoadSpec } from '@xh/hoist/core';
4
4
  import { RecordActionSpec } from '@xh/hoist/data';
5
5
  import { PanelModel } from '@xh/hoist/desktop/cmp/panel';
6
- export declare class HzObjectModel extends BaseInstanceModel {
6
+ export declare class DistributedObjectsModel extends BaseInstanceModel {
7
7
  groupBy: 'type' | 'owner';
8
8
  detailPanelModel: PanelModel;
9
9
  clearAction: RecordActionSpec;
@@ -0,0 +1,2 @@
1
+ import { DistributedObjectsModel } from './DistributedObjectsModel';
2
+ export declare const distributedObjectsPanel: import("@xh/hoist/core").ElementFactory<import("@xh/hoist/core").DefaultHoistProps<DistributedObjectsModel>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xh/hoist",
3
- "version": "69.0.0-SNAPSHOT.1729088865150",
3
+ "version": "69.0.0-SNAPSHOT.1729090176936",
4
4
  "description": "Hoist add-on for building and deploying React Applications.",
5
5
  "repository": "github:xh/hoist-react",
6
6
  "homepage": "https://xh.io",