@xh/hoist 79.0.0-SNAPSHOT.1763737948137 → 79.0.0-SNAPSHOT.1763740904682
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/admin/differ/Differ.ts
CHANGED
|
@@ -60,8 +60,14 @@ export class DifferModel extends HoistModel {
|
|
|
60
60
|
recordsRequired: true
|
|
61
61
|
};
|
|
62
62
|
|
|
63
|
+
/**
|
|
64
|
+
* All other configured appInstances URLs, excepting the current one.
|
|
65
|
+
* (Use of startsWith allows configs to end in trailing /)
|
|
66
|
+
*/
|
|
63
67
|
get remoteHosts(): string[] {
|
|
64
|
-
return XH.getConf('xhAppInstances').filter(
|
|
68
|
+
return XH.getConf('xhAppInstances').filter(
|
|
69
|
+
(it: string) => !it.startsWith(window.location.origin)
|
|
70
|
+
);
|
|
65
71
|
}
|
|
66
72
|
|
|
67
73
|
constructor({
|
|
@@ -83,6 +89,9 @@ export class DifferModel extends HoistModel {
|
|
|
83
89
|
|
|
84
90
|
this.url = entityName + 'DiffAdmin';
|
|
85
91
|
|
|
92
|
+
// Default to first available remote for comparison
|
|
93
|
+
this.remoteHost = this.remoteHosts[0];
|
|
94
|
+
|
|
86
95
|
const rendererIsComplex = true;
|
|
87
96
|
this.gridModel = new GridModel({
|
|
88
97
|
store: {
|
|
@@ -24,6 +24,10 @@ export declare class DifferModel extends HoistModel {
|
|
|
24
24
|
hasLoaded: boolean;
|
|
25
25
|
get readonly(): boolean;
|
|
26
26
|
applyRemoteAction: RecordActionSpec;
|
|
27
|
+
/**
|
|
28
|
+
* All other configured appInstances URLs, excepting the current one.
|
|
29
|
+
* (Use of startsWith allows configs to end in trailing /)
|
|
30
|
+
*/
|
|
27
31
|
get remoteHosts(): string[];
|
|
28
32
|
constructor({ parentModel, entityName, displayName, columnFields, matchFields, valueRenderer }: Partial<DifferModel>);
|
|
29
33
|
doLoadAsync(loadSpec: LoadSpec): Promise<void>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xh/hoist",
|
|
3
|
-
"version": "79.0.0-SNAPSHOT.
|
|
3
|
+
"version": "79.0.0-SNAPSHOT.1763740904682",
|
|
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",
|