@xh/hoist 74.0.0-SNAPSHOT.1747677959059 → 74.0.0-SNAPSHOT.1747678860024
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.
|
@@ -6,10 +6,12 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import {table, tbody, td, th, tr} from '@xh/hoist/cmp/layout';
|
|
8
8
|
import {AboutDialogItem, HoistModel, XH} from '@xh/hoist/core';
|
|
9
|
-
import {action,
|
|
10
|
-
import {warnIf} from '@xh/hoist/utils/js';
|
|
9
|
+
import {action, makeObservable, observable} from '@xh/hoist/mobx';
|
|
11
10
|
import {isOmitted} from '@xh/hoist/utils/impl';
|
|
11
|
+
import {warnIf} from '@xh/hoist/utils/js';
|
|
12
|
+
import copy from 'clipboard-copy';
|
|
12
13
|
import {isNull} from 'lodash';
|
|
14
|
+
import {Icon} from '../icon';
|
|
13
15
|
|
|
14
16
|
/**
|
|
15
17
|
* @internal
|
|
@@ -50,7 +52,24 @@ export class AboutDialogModel extends HoistModel {
|
|
|
50
52
|
}
|
|
51
53
|
|
|
52
54
|
getTable() {
|
|
53
|
-
const rows = this.getItems().map(it =>
|
|
55
|
+
const rows = this.getItems().map(it =>
|
|
56
|
+
tr(
|
|
57
|
+
th(it.label),
|
|
58
|
+
td({
|
|
59
|
+
item: it.value,
|
|
60
|
+
onClick: () => {
|
|
61
|
+
const val = it.value?.toString();
|
|
62
|
+
if (val === 'null' || val === '[object Object]') return;
|
|
63
|
+
|
|
64
|
+
copy(val);
|
|
65
|
+
XH.toast({
|
|
66
|
+
icon: Icon.clipboard(),
|
|
67
|
+
message: `Copied ${val} to clipboard`
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
})
|
|
71
|
+
)
|
|
72
|
+
);
|
|
54
73
|
return table(tbody(rows));
|
|
55
74
|
}
|
|
56
75
|
|
package/core/HoistAppModel.ts
CHANGED
|
@@ -78,8 +78,9 @@ export class HoistAppModel extends HoistModel {
|
|
|
78
78
|
{label: 'Hoist Core', value: svc.get('hoistCoreVersion')},
|
|
79
79
|
{label: 'Hoist React', value: svc.get('hoistReactVersion')},
|
|
80
80
|
{label: 'User Agent', value: window.navigator.userAgent},
|
|
81
|
-
{label: 'Tab
|
|
82
|
-
{label: '
|
|
81
|
+
{label: 'Tab ID', value: XH.tabId},
|
|
82
|
+
{label: 'Load ID', value: XH.loadId},
|
|
83
|
+
{label: 'Server Instance', value: svc.serverInstance},
|
|
83
84
|
{label: 'WebSockets', value: webSocketIndicator()}
|
|
84
85
|
];
|
|
85
86
|
}
|
|
@@ -16,17 +16,18 @@
|
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
th {
|
|
19
|
-
text-align: right;
|
|
20
|
-
vertical-align: middle;
|
|
21
|
-
white-space: nowrap;
|
|
22
19
|
background-color: var(--xh-bg-alt);
|
|
23
20
|
border-bottom: var(--xh-border-solid);
|
|
24
21
|
border-right: var(--xh-border-solid);
|
|
25
|
-
padding: var(--xh-pad-half-px);
|
|
22
|
+
padding: var(--xh-pad-half-px) var(--xh-pad-px);
|
|
23
|
+
text-align: right;
|
|
24
|
+
vertical-align: middle;
|
|
25
|
+
white-space: nowrap;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
td {
|
|
29
29
|
border-bottom: var(--xh-border-solid);
|
|
30
|
+
cursor: copy;
|
|
30
31
|
padding: var(--xh-pad-half-px);
|
|
31
32
|
}
|
|
32
33
|
}
|
|
@@ -5,13 +5,13 @@
|
|
|
5
5
|
}
|
|
6
6
|
|
|
7
7
|
th {
|
|
8
|
-
text-align: right;
|
|
9
|
-
vertical-align: middle;
|
|
10
|
-
white-space: nowrap;
|
|
11
8
|
background-color: var(--xh-bg-alt);
|
|
12
9
|
border-bottom: var(--xh-border-solid);
|
|
13
10
|
border-right: var(--xh-border-solid);
|
|
14
|
-
padding: var(--xh-pad-half-px);
|
|
11
|
+
padding: var(--xh-pad-half-px) var(--xh-pad-px);
|
|
12
|
+
text-align: right;
|
|
13
|
+
vertical-align: top;
|
|
14
|
+
white-space: nowrap;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
td {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xh/hoist",
|
|
3
|
-
"version": "74.0.0-SNAPSHOT.
|
|
3
|
+
"version": "74.0.0-SNAPSHOT.1747678860024",
|
|
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",
|