@adaptabletools/adaptable-plugin-openfin 15.0.2 → 15.0.3-canary.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adaptabletools/adaptable-plugin-openfin",
|
|
3
|
-
"version": "15.0.
|
|
3
|
+
"version": "15.0.3-canary.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"homepage": "http://www.adaptabletools.com/",
|
|
6
6
|
"author": {
|
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
"redux": "4.0.5",
|
|
21
21
|
"styled-components": "^4.4.1",
|
|
22
22
|
"tslib": "^2.3.0",
|
|
23
|
-
"@adaptabletools/adaptable": "15.0.
|
|
23
|
+
"@adaptabletools/adaptable": "15.0.3-canary.0"
|
|
24
24
|
}
|
|
25
25
|
}
|
|
@@ -5,7 +5,6 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const AdaptableModuleBase_1 = require("@adaptabletools/adaptable/src/Strategy/AdaptableModuleBase");
|
|
6
6
|
const ModuleConstants = tslib_1.__importStar(require("@adaptabletools/adaptable/src/Utilities/Constants/ModuleConstants"));
|
|
7
7
|
const throttle_1 = tslib_1.__importDefault(require("lodash/throttle"));
|
|
8
|
-
const logger_1 = require("../logger");
|
|
9
8
|
const GeneralConstants_1 = require("@adaptabletools/adaptable/src/Utilities/Constants/GeneralConstants");
|
|
10
9
|
exports.EXCEL_VALIDATION_FAILED = 'excelValidationFailed';
|
|
11
10
|
class OpenFinModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
@@ -57,13 +56,13 @@ class OpenFinModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
57
56
|
return this.getOpenFinService()
|
|
58
57
|
.clearAndPushData(ReportAsArray)
|
|
59
58
|
.then(() => {
|
|
60
|
-
|
|
59
|
+
this.adaptable.logger.success('All live report data sent');
|
|
61
60
|
this.isSendingData = false;
|
|
62
61
|
return this.adaptable.ReportService.PublishLiveLiveDataChangedEvent('OpenFin', 'LiveDataUpdated', currentLiveIOpenFinReport);
|
|
63
62
|
})
|
|
64
63
|
.catch((reason) => {
|
|
65
64
|
this.isSendingData = false;
|
|
66
|
-
|
|
65
|
+
this.adaptable.logger.warn('Failed to send data to OpenFin for [' + currentLiveIOpenFinReport.ReportName + ']', reason);
|
|
67
66
|
this.getOpenFinApi().stopLiveData();
|
|
68
67
|
let errorMessage = 'Export Failed';
|
|
69
68
|
if (reason) {
|
|
@@ -71,7 +70,7 @@ class OpenFinModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
71
70
|
}
|
|
72
71
|
errorMessage += '. This live export has been cancelled.';
|
|
73
72
|
this.api.alertApi.showAlertError('iOpenFin Export Error', errorMessage);
|
|
74
|
-
|
|
73
|
+
this.adaptable.logger.warn('Failed to send data');
|
|
75
74
|
});
|
|
76
75
|
}
|
|
77
76
|
}
|
|
@@ -208,13 +207,13 @@ class OpenFinModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
208
207
|
}
|
|
209
208
|
if (this.api.columnApi.getColumnWithColumnId(columnId).readOnly) {
|
|
210
209
|
const msg = `Can't update column ${columnId} as it is read-only`;
|
|
211
|
-
|
|
210
|
+
this.adaptable.logger.warn(msg);
|
|
212
211
|
return reject(msg);
|
|
213
212
|
// return resolve({ ignore: true });
|
|
214
213
|
}
|
|
215
214
|
else if (!this.adaptable.isCellEditable(rowNode, this.adaptable.api.columnApi.internalApi.getAgGridColumnForAdaptableColumn(columnId))) {
|
|
216
215
|
const msg = `Can't update column cell in ${columnId} as it is read-only`;
|
|
217
|
-
|
|
216
|
+
this.adaptable.logger.warn(msg);
|
|
218
217
|
return reject(msg);
|
|
219
218
|
// return resolve({ ignore: true });
|
|
220
219
|
}
|
package/src/OpenFinHelper.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
/*import { ExcelWorkbook } from '../Services/OpenfinLiveExcel/ExcelWorkbook';*/
|
|
2
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
4
|
exports.OpenfinHelper = exports.initOpenFinExcel = exports.pushData = exports.isExcelOpenfinLoaded = exports.isRunningInOpenfin = exports.OnWorkbookSaved = exports.OnWorkbookDisconnected = exports.OnExcelDisconnected = exports.EventDispatcher = void 0;
|
|
4
|
-
|
|
5
|
+
// putting this here as we dont use it elswhere - so keeping it here until we redo the OpenFin one day...
|
|
6
|
+
const AdaptableLogger_1 = require("@adaptabletools/adaptable/src/agGrid/AdaptableLogger");
|
|
5
7
|
class EventDispatcher {
|
|
6
8
|
constructor() {
|
|
7
9
|
this._subscriptions = new Array();
|
|
@@ -58,9 +60,9 @@ function isExcelOpenfinLoaded() {
|
|
|
58
60
|
exports.isExcelOpenfinLoaded = isExcelOpenfinLoaded;
|
|
59
61
|
function addWorkbook() {
|
|
60
62
|
return new Promise((resolve, reject) => {
|
|
61
|
-
|
|
63
|
+
AdaptableLogger_1.AdaptableLogger.consoleLogBase('Creating new workbook');
|
|
62
64
|
fin.desktop.Excel.addWorkbook(function (workbook /*ExcelWorkbook*/) {
|
|
63
|
-
|
|
65
|
+
AdaptableLogger_1.AdaptableLogger.consoleLogBase('workbook created:' + workbook.name);
|
|
64
66
|
resolve(workbook.name);
|
|
65
67
|
// workbook.addEventListener("workbookActivated", (event) => onWorkbookActivated(event, resolve));
|
|
66
68
|
// workbook.activate();
|
|
@@ -93,7 +95,7 @@ function pushData(workBookName, data) {
|
|
|
93
95
|
return new Promise((resolve, reject) => {
|
|
94
96
|
let workBook = fin.desktop.Excel.getWorkbookByName(workBookName);
|
|
95
97
|
if (!workBook) {
|
|
96
|
-
|
|
98
|
+
AdaptableLogger_1.AdaptableLogger.consoleErrorBase('Cannot find workbook:' + workBookName);
|
|
97
99
|
reject('Cannot find workbook:' + workBookName);
|
|
98
100
|
}
|
|
99
101
|
let worksheet = workBook.getWorksheetByName('Sheet1');
|
|
@@ -115,7 +117,7 @@ function initOpenFinExcel() {
|
|
|
115
117
|
.then(onExcelConnected)
|
|
116
118
|
.then(addWorkbook)
|
|
117
119
|
.catch((err) => {
|
|
118
|
-
|
|
120
|
+
AdaptableLogger_1.AdaptableLogger.consoleErrorBase(err);
|
|
119
121
|
return '';
|
|
120
122
|
});
|
|
121
123
|
}
|
|
@@ -125,7 +127,7 @@ function initOpenFinExcel() {
|
|
|
125
127
|
.then(onExcelConnected)
|
|
126
128
|
.then(addWorkbook)
|
|
127
129
|
.catch((err) => {
|
|
128
|
-
|
|
130
|
+
AdaptableLogger_1.AdaptableLogger.consoleErrorBase(err);
|
|
129
131
|
return '';
|
|
130
132
|
});
|
|
131
133
|
}
|
|
@@ -137,7 +139,7 @@ function initExcelPluginService() {
|
|
|
137
139
|
var servicePath = 'OpenFin.ExcelService.exe';
|
|
138
140
|
var addInPath = 'OpenFin.ExcelApi-AddIn.xll';
|
|
139
141
|
if (excelStatus != ExcelServiceStatus.Unknown) {
|
|
140
|
-
|
|
142
|
+
AdaptableLogger_1.AdaptableLogger.consoleLogBase('Skipping Add-in deployment as already deployed');
|
|
141
143
|
return Promise.resolve();
|
|
142
144
|
}
|
|
143
145
|
excelStatus = ExcelServiceStatus.Connecting;
|
|
@@ -148,13 +150,13 @@ function initExcelPluginService() {
|
|
|
148
150
|
}
|
|
149
151
|
function deployAddIn(servicePath, installFolder) {
|
|
150
152
|
return new Promise((resolve, reject) => {
|
|
151
|
-
|
|
153
|
+
AdaptableLogger_1.AdaptableLogger.consoleLogBase('Deploying Add-In');
|
|
152
154
|
fin.desktop.System.launchExternalProcess({
|
|
153
155
|
alias: 'excel-api-addin',
|
|
154
156
|
target: servicePath,
|
|
155
157
|
arguments: '-d "' + installFolder + '"',
|
|
156
158
|
listener: function (args) {
|
|
157
|
-
|
|
159
|
+
AdaptableLogger_1.AdaptableLogger.consoleLogBase('Installer script completed! ' + args.exitCode);
|
|
158
160
|
resolve();
|
|
159
161
|
},
|
|
160
162
|
});
|
|
@@ -166,12 +168,12 @@ function startExcelService(servicePath, installFolder) {
|
|
|
166
168
|
fin.desktop.System.getAllExternalApplications((extApps) => {
|
|
167
169
|
var excelServiceIndex = extApps.findIndex((extApp) => extApp.uuid === serviceUuid);
|
|
168
170
|
if (excelServiceIndex >= 0) {
|
|
169
|
-
|
|
171
|
+
AdaptableLogger_1.AdaptableLogger.consoleLogBase('Service Already Running');
|
|
170
172
|
resolve();
|
|
171
173
|
return;
|
|
172
174
|
}
|
|
173
175
|
var onServiceStarted = () => {
|
|
174
|
-
|
|
176
|
+
AdaptableLogger_1.AdaptableLogger.consoleLogBase('Service Started');
|
|
175
177
|
fin.desktop.Excel.instance.removeEventListener('started', onServiceStarted);
|
|
176
178
|
resolve();
|
|
177
179
|
};
|
|
@@ -182,7 +184,7 @@ function startExcelService(servicePath, installFolder) {
|
|
|
182
184
|
arguments: '-p ' + details.port,
|
|
183
185
|
uuid: serviceUuid,
|
|
184
186
|
}, (process) => {
|
|
185
|
-
|
|
187
|
+
AdaptableLogger_1.AdaptableLogger.consoleLogBase('Service Launched: ' + process.uuid);
|
|
186
188
|
}, (error) => {
|
|
187
189
|
reject('Error starting Excel service');
|
|
188
190
|
});
|
|
@@ -192,9 +194,9 @@ function startExcelService(servicePath, installFolder) {
|
|
|
192
194
|
}
|
|
193
195
|
function registerAddIn(servicePath, installFolder) {
|
|
194
196
|
return new Promise((resolve, reject) => {
|
|
195
|
-
|
|
197
|
+
AdaptableLogger_1.AdaptableLogger.consoleLogBase('Registering Add-In');
|
|
196
198
|
fin.desktop.Excel.install((ack) => {
|
|
197
|
-
|
|
199
|
+
AdaptableLogger_1.AdaptableLogger.consoleLogBase('Add-In Registration callback', ack);
|
|
198
200
|
//if (ack.success) {
|
|
199
201
|
resolve();
|
|
200
202
|
//}
|
|
@@ -205,11 +207,11 @@ function connectToExcel() {
|
|
|
205
207
|
return new Promise((resolve, reject) => {
|
|
206
208
|
fin.desktop.Excel.instance.getExcelInstances((instances) => {
|
|
207
209
|
if (instances.length > 0) {
|
|
208
|
-
|
|
210
|
+
AdaptableLogger_1.AdaptableLogger.consoleLogBase('Excel Already Running');
|
|
209
211
|
resolve();
|
|
210
212
|
}
|
|
211
213
|
else {
|
|
212
|
-
|
|
214
|
+
AdaptableLogger_1.AdaptableLogger.consoleLogBase('Launching Excel');
|
|
213
215
|
fin.desktop.Excel.run(resolve);
|
|
214
216
|
}
|
|
215
217
|
});
|
|
@@ -223,19 +225,19 @@ function onWorkbookSaved(event) {
|
|
|
223
225
|
_onWorkbookSaved.Dispatch(this, { OldName: event.oldWorkbookName, NewName: event.workbook.name });
|
|
224
226
|
}
|
|
225
227
|
function onWorkbookActivated(event) {
|
|
226
|
-
|
|
228
|
+
AdaptableLogger_1.AdaptableLogger.consoleLogBase('Workbook Activated: ' + event.target.name);
|
|
227
229
|
event.target.getWorksheets((ack) => {
|
|
228
|
-
|
|
230
|
+
AdaptableLogger_1.AdaptableLogger.consoleLogBase('getWorksheets:', ack);
|
|
229
231
|
});
|
|
230
232
|
}
|
|
231
233
|
function onWorkbookAdded(event) {
|
|
232
|
-
|
|
234
|
+
AdaptableLogger_1.AdaptableLogger.consoleLogBase('Workbook Added: ' + event.workbook.name);
|
|
233
235
|
let workbook = event.workbook;
|
|
234
236
|
workbook.addEventListener('workbookActivated', onWorkbookActivated);
|
|
235
237
|
}
|
|
236
238
|
function onExcelConnected() {
|
|
237
239
|
if (excelStatus != ExcelServiceStatus.Connected) {
|
|
238
|
-
|
|
240
|
+
AdaptableLogger_1.AdaptableLogger.consoleLogBase('Excel Connected: ' + fin.desktop.Excel.legacyApi.connectionUuid);
|
|
239
241
|
excelStatus = ExcelServiceStatus.Connected;
|
|
240
242
|
// fin.desktop.Excel.instance.removeEventListener("excelConnected", onExcelConnected);
|
|
241
243
|
fin.desktop.Excel.addEventListener('workbookClosed', onWorkbookRemoved);
|
|
@@ -244,7 +246,7 @@ function onExcelConnected() {
|
|
|
244
246
|
// Grab a snapshot of the current instance, it can change!
|
|
245
247
|
var legacyApi = fin.desktop.Excel.legacyApi;
|
|
246
248
|
var onExcelDisconnected = function () {
|
|
247
|
-
|
|
249
|
+
AdaptableLogger_1.AdaptableLogger.consoleLogBase('Excel Disconnected: ' + legacyApi.connectionUuid);
|
|
248
250
|
fin.desktop.Excel.instance.removeEventListener('excelDisconnected', onExcelDisconnected);
|
|
249
251
|
legacyApi.removeEventListener('workbookClosed', onWorkbookRemoved);
|
|
250
252
|
legacyApi.removeEventListener('workbookSaved', onWorkbookSaved);
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.OpenFinService = exports.isExcelOpenfinLoaded = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const logger_1 = require("../../logger");
|
|
6
5
|
const Emitter_1 = tslib_1.__importDefault(require("@adaptabletools/adaptable/src/Utilities/Emitter"));
|
|
7
6
|
const setup_1 = require("./setup");
|
|
8
7
|
const isRunningInOpenfin_1 = require("../isRunningInOpenfin");
|
|
@@ -21,25 +20,25 @@ class OpenFinService {
|
|
|
21
20
|
this.onWorkbookRemoved = (event) => {
|
|
22
21
|
event.workbook.removeEventListener('workbookActivated', this.onWorkbookActivated);
|
|
23
22
|
const { workbook } = event;
|
|
24
|
-
|
|
23
|
+
this.adaptable.logger.info('Workbook closed:' + workbook.name + ', Stopping Openfin Live Excel');
|
|
25
24
|
this.getOpenFinApi().stopLiveData();
|
|
26
25
|
};
|
|
27
26
|
this.onWorkbookSaved = (event) => {
|
|
28
27
|
const NewName = event.workbook.name;
|
|
29
|
-
|
|
28
|
+
this.adaptable.logger.info('workbook saved', NewName);
|
|
30
29
|
//saving adds an extension, but the name does not have that
|
|
31
30
|
// however, not adding the extension will not find the workbook when we do getWorkBookByName
|
|
32
31
|
// and will crash the app
|
|
33
32
|
this.workbookName = NewName;
|
|
34
33
|
};
|
|
35
34
|
this.onWorkbookActivated = (event) => {
|
|
36
|
-
|
|
35
|
+
this.adaptable.logger.info('Workbook Activated: ' + event.target.name);
|
|
37
36
|
event.target.getWorksheets((ack) => {
|
|
38
|
-
|
|
37
|
+
this.adaptable.logger.info('getWorksheets:', ack);
|
|
39
38
|
});
|
|
40
39
|
};
|
|
41
40
|
this.onWorkbookAdded = (event) => {
|
|
42
|
-
|
|
41
|
+
this.adaptable.logger.success('Workbook Added: ' + event.workbook.name);
|
|
43
42
|
let workbook = event.workbook;
|
|
44
43
|
workbook.addEventListener('workbookActivated', this.onWorkbookActivated);
|
|
45
44
|
};
|
|
@@ -62,13 +61,13 @@ class OpenFinService {
|
|
|
62
61
|
this.excelConnected = true;
|
|
63
62
|
this.connectedCallbacks.forEach((fn) => fn());
|
|
64
63
|
this.connectedCallbacks.length = 0;
|
|
65
|
-
|
|
64
|
+
this.adaptable.logger.success('Excel Connected');
|
|
66
65
|
fin.desktop.Excel.addEventListener('workbookClosed', this.onWorkbookRemoved);
|
|
67
66
|
fin.desktop.Excel.addEventListener('workbookSaved', this.onWorkbookSaved);
|
|
68
67
|
fin.desktop.Excel.addEventListener('workbookAdded', this.onWorkbookAdded);
|
|
69
68
|
};
|
|
70
69
|
this.onExcelDisconnected = () => {
|
|
71
|
-
|
|
70
|
+
this.adaptable.logger.info('Excel Disconnected');
|
|
72
71
|
this.excelConnected = false;
|
|
73
72
|
this.initialisingExcel = null;
|
|
74
73
|
this.workbookName = undefined;
|
|
@@ -78,7 +77,7 @@ class OpenFinService {
|
|
|
78
77
|
fin.desktop.Excel.removeEventListener('workbookAdded', this.onWorkbookAdded);
|
|
79
78
|
fin.desktop.ExcelService.removeEventListener('excelConnected', this.onExcelConnected);
|
|
80
79
|
fin.desktop.ExcelService.removeEventListener('excelDisconnected', this.onExcelDisconnected);
|
|
81
|
-
|
|
80
|
+
this.adaptable.logger.info('Excel closed stopping all Live Excel');
|
|
82
81
|
this.getOpenFinApi().stopLiveData();
|
|
83
82
|
};
|
|
84
83
|
this.initialisingExcel = null;
|
|
@@ -122,7 +121,7 @@ class OpenFinService {
|
|
|
122
121
|
// since getWorkbookByName only works after getWorkbooks was called
|
|
123
122
|
return fin.desktop.Excel.getWorkbooks().then(() => {
|
|
124
123
|
this.workbookName = workbook.name;
|
|
125
|
-
|
|
124
|
+
this.adaptable.logger.info('added workbook', this.workbookName);
|
|
126
125
|
return workbook;
|
|
127
126
|
});
|
|
128
127
|
});
|
|
@@ -177,13 +176,13 @@ class OpenFinService {
|
|
|
177
176
|
const workBookName = workbook.name;
|
|
178
177
|
let workBook = fin.desktop.Excel.getWorkbookByName(workBookName);
|
|
179
178
|
if (!workBook) {
|
|
180
|
-
|
|
179
|
+
this.adaptable.logger.error('Cannot find workbook:' + workBookName);
|
|
181
180
|
reject('Cannot find workbook:' + workBookName);
|
|
182
181
|
return;
|
|
183
182
|
}
|
|
184
183
|
this.getActiveWorksheet()
|
|
185
184
|
.then((worksheet) => {
|
|
186
|
-
|
|
185
|
+
this.adaptable.logger.info('Got active workheet', worksheet);
|
|
187
186
|
this.onWorksheetSetData(worksheet, result);
|
|
188
187
|
if (clear) {
|
|
189
188
|
worksheet.clearAllCells(() => {
|
|
@@ -228,13 +227,13 @@ class OpenFinService {
|
|
|
228
227
|
return fin.desktop.ExcelService.init();
|
|
229
228
|
})
|
|
230
229
|
.then(() => {
|
|
231
|
-
|
|
230
|
+
this.adaptable.logger.success('Excel initialized, now connecting');
|
|
232
231
|
fin.desktop.Excel.run();
|
|
233
232
|
return true;
|
|
234
233
|
})
|
|
235
234
|
.then(() => {
|
|
236
235
|
return fin.desktop.Excel.getConnectionStatus().then((connected) => {
|
|
237
|
-
|
|
236
|
+
this.adaptable.logger.success('Excel status', {
|
|
238
237
|
initialized: fin.desktop.ExcelService.initialized,
|
|
239
238
|
connected,
|
|
240
239
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.setup = void 0;
|
|
4
|
-
const
|
|
4
|
+
const AdaptableLogger_1 = require("@adaptabletools/adaptable/src/agGrid/AdaptableLogger");
|
|
5
5
|
const setup = async () => {
|
|
6
6
|
const excelAssetAlias = 'excel-api-addin';
|
|
7
7
|
const excelServiceUuid = '886834D1-4651-4872-996C-7B2578E953B9';
|
|
@@ -12,11 +12,11 @@ const setup = async () => {
|
|
|
12
12
|
let serviceIsRunning = await isServiceRunning();
|
|
13
13
|
let assetInfo = await getAppAssetInfo();
|
|
14
14
|
if (serviceIsRunning) {
|
|
15
|
-
|
|
15
|
+
AdaptableLogger_1.AdaptableLogger.consoleLogBase('Service Already Running: Skipping Deployment and Registration');
|
|
16
16
|
return;
|
|
17
17
|
}
|
|
18
18
|
if (assetInfo.version === localStorage.installedAssetVersion && !assetInfo.forceDownload) {
|
|
19
|
-
|
|
19
|
+
AdaptableLogger_1.AdaptableLogger.consoleLogBase('Current Add-In version previously installed: Skipping Deployment and Registration');
|
|
20
20
|
}
|
|
21
21
|
else {
|
|
22
22
|
await deploySharedAssets();
|
|
@@ -58,7 +58,7 @@ const setup = async () => {
|
|
|
58
58
|
target: servicePath,
|
|
59
59
|
arguments: `-d "${installFolder}" -c ${manifest.runtime.version}`,
|
|
60
60
|
listener: (result) => {
|
|
61
|
-
|
|
61
|
+
AdaptableLogger_1.AdaptableLogger.consoleLogBase(`Asset Deployment completed! Exit Code: ${result.exitCode}`);
|
|
62
62
|
resolve();
|
|
63
63
|
},
|
|
64
64
|
}, () => console.log('Deploying Shared Assets'), (err) => reject(err));
|
|
@@ -72,14 +72,14 @@ const setup = async () => {
|
|
|
72
72
|
arguments: `-i "${installFolder}"`,
|
|
73
73
|
listener: (result) => {
|
|
74
74
|
if (result.exitCode === 0) {
|
|
75
|
-
|
|
75
|
+
AdaptableLogger_1.AdaptableLogger.consoleLogBase('Add-In Installed');
|
|
76
76
|
}
|
|
77
77
|
else {
|
|
78
|
-
|
|
78
|
+
AdaptableLogger_1.AdaptableLogger.consoleWarnBase(`Installation failed. Exit code: ${result.exitCode}`);
|
|
79
79
|
}
|
|
80
80
|
resolve();
|
|
81
81
|
},
|
|
82
|
-
}, () =>
|
|
82
|
+
}, () => AdaptableLogger_1.AdaptableLogger.consoleLogBase('Installing Add-In'), (err) => reject(err));
|
|
83
83
|
});
|
|
84
84
|
}
|
|
85
85
|
function startExcelService() {
|
|
@@ -98,7 +98,7 @@ const setup = async () => {
|
|
|
98
98
|
arguments: '-p ' + details.port,
|
|
99
99
|
uuid: excelServiceUuid,
|
|
100
100
|
}, (process) => {
|
|
101
|
-
|
|
101
|
+
AdaptableLogger_1.AdaptableLogger.consoleLogBase('Service Launched: ' + process.uuid);
|
|
102
102
|
}, (error) => {
|
|
103
103
|
reject('Error starting Excel service');
|
|
104
104
|
});
|
package/src/logger.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const LogAdaptableError: (message: string, ...optionalParams: any[]) => void, LogAdaptableInfo: (message: string, ...optionalParams: any[]) => void, LogAdaptableSuccess: (message: string, ...optionalParams: any[]) => void, LogAdaptableWarning: (message: string, ...optionalParams: any[]) => void;
|
package/src/logger.js
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var _a;
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.LogAdaptableWarning = exports.LogAdaptableSuccess = exports.LogAdaptableInfo = exports.LogAdaptableError = void 0;
|
|
5
|
-
const LoggingHelper_1 = require("@adaptabletools/adaptable/src/Utilities/Helpers/LoggingHelper");
|
|
6
|
-
_a = (0, LoggingHelper_1.getLoggingFunctions)('openfin'), exports.LogAdaptableError = _a.LogAdaptableError, exports.LogAdaptableInfo = _a.LogAdaptableInfo, exports.LogAdaptableSuccess = _a.LogAdaptableSuccess, exports.LogAdaptableWarning = _a.LogAdaptableWarning;
|