Initialize remote IDE scaffold
This commit is contained in:
+16
@@ -0,0 +1,16 @@
|
||||
import { CommandContribution, CommandRegistry } from '@theia/core/lib/common/command.js';
|
||||
import { MenuContribution, MenuModelRegistry } from '@theia/core/lib/common/menu/menu-model-registry.js';
|
||||
import { MessageService } from '@theia/core/lib/common/message-service.js';
|
||||
import { ContainerModule } from '@theia/core/shared/inversify/index.js';
|
||||
export declare const GitZoneWelcomeCommand: {
|
||||
id: string;
|
||||
label: string;
|
||||
};
|
||||
export declare class GitZoneProductContribution implements CommandContribution, MenuContribution {
|
||||
protected readonly messages: MessageService;
|
||||
registerCommands(registry: CommandRegistry): void;
|
||||
registerMenus(menus: MenuModelRegistry): void;
|
||||
}
|
||||
declare const _default: ContainerModule;
|
||||
export default _default;
|
||||
//# sourceMappingURL=gitzone-product-frontend-module.d.ts.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"gitzone-product-frontend-module.d.ts","sourceRoot":"","sources":["../../src/browser/gitzone-product-frontend-module.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AACzF,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,oDAAoD,CAAC;AACzG,OAAO,EAAE,cAAc,EAAE,MAAM,2CAA2C,CAAC;AAC3E,OAAO,EAAE,eAAe,EAAsB,MAAM,uCAAuC,CAAC;AAE5F,eAAO,MAAM,qBAAqB;;;CAGjC,CAAC;AAEF,qBACa,0BAA2B,YAAW,mBAAmB,EAAE,gBAAgB;IAEtF,SAAS,CAAC,QAAQ,CAAC,QAAQ,EAAG,cAAc,CAAC;IAE7C,gBAAgB,CAAC,QAAQ,EAAE,eAAe,GAAG,IAAI;IAMjD,aAAa,CAAC,KAAK,EAAE,iBAAiB,GAAG,IAAI;CAM9C;;AAED,wBAIG"}
|
||||
@@ -0,0 +1,49 @@
|
||||
"use strict";
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.GitZoneProductContribution = exports.GitZoneWelcomeCommand = void 0;
|
||||
const common_menus_js_1 = require("@theia/core/lib/browser/common-menus.js");
|
||||
const command_js_1 = require("@theia/core/lib/common/command.js");
|
||||
const menu_model_registry_js_1 = require("@theia/core/lib/common/menu/menu-model-registry.js");
|
||||
const message_service_js_1 = require("@theia/core/lib/common/message-service.js");
|
||||
const index_js_1 = require("@theia/core/shared/inversify/index.js");
|
||||
exports.GitZoneWelcomeCommand = {
|
||||
id: 'gitzone.product.welcome',
|
||||
label: 'Git.Zone: Welcome',
|
||||
};
|
||||
let GitZoneProductContribution = class GitZoneProductContribution {
|
||||
messages;
|
||||
registerCommands(registry) {
|
||||
registry.registerCommand(exports.GitZoneWelcomeCommand, {
|
||||
execute: () => this.messages.info('Git.Zone IDE is connected to a remote-first Theia workspace.'),
|
||||
});
|
||||
}
|
||||
registerMenus(menus) {
|
||||
menus.registerMenuAction(common_menus_js_1.CommonMenus.HELP, {
|
||||
commandId: exports.GitZoneWelcomeCommand.id,
|
||||
label: exports.GitZoneWelcomeCommand.label,
|
||||
});
|
||||
}
|
||||
};
|
||||
exports.GitZoneProductContribution = GitZoneProductContribution;
|
||||
__decorate([
|
||||
(0, index_js_1.inject)(message_service_js_1.MessageService),
|
||||
__metadata("design:type", message_service_js_1.MessageService)
|
||||
], GitZoneProductContribution.prototype, "messages", void 0);
|
||||
exports.GitZoneProductContribution = GitZoneProductContribution = __decorate([
|
||||
(0, index_js_1.injectable)()
|
||||
], GitZoneProductContribution);
|
||||
exports.default = new index_js_1.ContainerModule((bind) => {
|
||||
bind(GitZoneProductContribution).toSelf().inSingletonScope();
|
||||
bind(command_js_1.CommandContribution).toService(GitZoneProductContribution);
|
||||
bind(menu_model_registry_js_1.MenuContribution).toService(GitZoneProductContribution);
|
||||
});
|
||||
//# sourceMappingURL=gitzone-product-frontend-module.js.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"gitzone-product-frontend-module.js","sourceRoot":"","sources":["../../src/browser/gitzone-product-frontend-module.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6EAAsE;AACtE,kEAAyF;AACzF,+FAAyG;AACzG,kFAA2E;AAC3E,oEAA4F;AAE/E,QAAA,qBAAqB,GAAG;IACnC,EAAE,EAAE,yBAAyB;IAC7B,KAAK,EAAE,mBAAmB;CAC3B,CAAC;AAGK,IAAM,0BAA0B,GAAhC,MAAM,0BAA0B;IAElB,QAAQ,CAAkB;IAE7C,gBAAgB,CAAC,QAAyB;QACxC,QAAQ,CAAC,eAAe,CAAC,6BAAqB,EAAE;YAC9C,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,8DAA8D,CAAC;SAClG,CAAC,CAAC;IACL,CAAC;IAED,aAAa,CAAC,KAAwB;QACpC,KAAK,CAAC,kBAAkB,CAAC,6BAAW,CAAC,IAAI,EAAE;YACzC,SAAS,EAAE,6BAAqB,CAAC,EAAE;YACnC,KAAK,EAAE,6BAAqB,CAAC,KAAK;SACnC,CAAC,CAAC;IACL,CAAC;CACF,CAAA;AAhBY,gEAA0B;AAElB;IADlB,IAAA,iBAAM,EAAC,mCAAc,CAAC;8BACO,mCAAc;4DAAC;qCAFlC,0BAA0B;IADtC,IAAA,qBAAU,GAAE;GACA,0BAA0B,CAgBtC;AAED,kBAAe,IAAI,0BAAe,CAAC,CAAC,IAAI,EAAE,EAAE;IAC1C,IAAI,CAAC,0BAA0B,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IAC7D,IAAI,CAAC,gCAAmB,CAAC,CAAC,SAAS,CAAC,0BAA0B,CAAC,CAAC;IAChE,IAAI,CAAC,yCAAgB,CAAC,CAAC,SAAS,CAAC,0BAA0B,CAAC,CAAC;AAC/D,CAAC,CAAC,CAAC"}
|
||||
Reference in New Issue
Block a user