youzanyun-devtool-worker
Version:
55 lines (54 loc) • 2.04 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const spring4js_nodejs_1 = require("spring4js-nodejs");
let DesignPlatformService = class DesignPlatformService {
async start() {
}
async getMenu({ projectId, workbenchId }) {
let menuList = [{
title: '自定义组件管理',
key: 'customComps',
param: {
contentType: 'webview',
url: `/html/design-platform?projectId=${projectId}&workbenchId=${workbenchId}#/custom-comps`,
docKey: 'dp-comp',
}
},
{
title: '本地模板管理',
key: 'templateManage',
param: {
contentType: 'webview',
url: `/html/design-platform?projectId=${projectId}&workbenchId=${workbenchId}#/template-manage`,
docKey: 'dp-template',
}
}, {
title: '分组管理',
key: 'groupManage',
param: {
contentType: 'webview',
url: `/html/design-platform?projectId=${projectId}&workbenchId=${workbenchId}#/group-manage`,
docKey: 'dp-group',
}
}];
return menuList;
}
};
tslib_1.__decorate([
(0, spring4js_nodejs_1.Resource)()
], DesignPlatformService.prototype, "projectService", void 0);
tslib_1.__decorate([
(0, spring4js_nodejs_1.Resource)()
], DesignPlatformService.prototype, "configService", void 0);
tslib_1.__decorate([
(0, spring4js_nodejs_1.Resource)()
], DesignPlatformService.prototype, "customApiService", void 0);
tslib_1.__decorate([
(0, spring4js_nodejs_1.Resource)()
], DesignPlatformService.prototype, "dpRequestService", void 0);
DesignPlatformService = tslib_1.__decorate([
(0, spring4js_nodejs_1.Service)()
], DesignPlatformService);
exports.default = DesignPlatformService;
;