@gudhub/core 1.1.21 → 1.1.23
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.
|
@@ -309,6 +309,13 @@ export class AppProcessor {
|
|
|
309
309
|
return newApp;
|
|
310
310
|
}
|
|
311
311
|
|
|
312
|
+
async getAppViews(app_id) {
|
|
313
|
+
if(app_id) {
|
|
314
|
+
const app = await this.getApp(app_id);
|
|
315
|
+
return app.views_list;
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
|
|
312
319
|
clearAppProcessor() {
|
|
313
320
|
this.getAppListPromises = null;
|
|
314
321
|
this.getAppPromises = {};
|
|
@@ -379,13 +386,6 @@ export class AppProcessor {
|
|
|
379
386
|
}
|
|
380
387
|
});
|
|
381
388
|
|
|
382
|
-
this.pipeService.onRoot("gh_app_views_get", {}, async (event, data) => {
|
|
383
|
-
if (data && data.app_id) {
|
|
384
|
-
const app = await this.getApp(data.app_id);
|
|
385
|
-
this.pipeService.emit("gh_app_views_get", data, app.views_list);
|
|
386
|
-
}
|
|
387
|
-
});
|
|
388
|
-
|
|
389
389
|
// Return app_name, app_id, app_icon
|
|
390
390
|
this.pipeService.onRoot("gh_app_info_get", {}, async (event, data) => {
|
|
391
391
|
const appInfo = await this.getAppInfo(data.app_id);
|