123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- blocklyApp.workspace = new Blockly.Workspace();
- blocklyApp.AppView = ng.core
- .Component({
- selector: 'blockly-app',
- template: `
- <div *ngIf="getStatusMessage()" aria-hidden="true" class="blocklyAriaLiveStatus">
- <span aria-live="polite" role="status">{{getStatusMessage()}}</span>
- </div>
- <div>
- <blockly-toolbox></blockly-toolbox>
- <blockly-workspace></blockly-workspace>
- </div>
- <label aria-hidden="true" hidden id="blockly-button">{{'BUTTON'|translate}}</label>
- <label aria-hidden="true" hidden id="blockly-more-options">{{'MORE_OPTIONS'|translate}}</label>
- <label aria-hidden="true" hidden id="blockly-toolbox-block">{{'TOOLBOX_BLOCK'|translate}}</label>
- <label aria-hidden="true" hidden id="blockly-workspace-block">{{'WORKSPACE_BLOCK'|translate}}</label>
- `,
- directives: [blocklyApp.ToolboxComponent, blocklyApp.WorkspaceComponent],
- pipes: [blocklyApp.TranslatePipe],
-
-
-
- providers: [
- blocklyApp.ClipboardService, blocklyApp.NotificationsService,
- blocklyApp.TreeService, blocklyApp.UtilsService,
- blocklyApp.AudioService]
- })
- .Class({
- constructor: [blocklyApp.NotificationsService, function(_notificationsService) {
- this.notificationsService = _notificationsService;
- }],
- getStatusMessage: function() {
- return this.notificationsService.getStatusMessage();
- }
- });
|