mirror of
https://github.com/avatao-content/frontend-tutorial-framework
synced 2024-12-05 02:21:31 +00:00
Rename message-types stuff to comply angular naming conventions
This commit is contained in:
parent
d99853d88e
commit
1b4c7a1f0f
@ -3,11 +3,11 @@
|
||||
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
import { WebSocketService } from '../services/websocket.service';
|
||||
import { ConsoleContentCommand, RewriteContentCommand, ShowLiveLogsCommand } from '../message.types/console.commands';
|
||||
import { ConsoleContentCommand, RewriteContentCommand, ShowLiveLogsCommand } from '../message-types/console-commands';
|
||||
import { config } from '../config';
|
||||
import { ProcessLogService } from '../services/processlog.service';
|
||||
import { LogMessage } from '../message.types/log.message';
|
||||
import { CommandMessage } from '../message.types/command.message';
|
||||
import { LogMessage } from '../message-types/log-message';
|
||||
import { CommandMessage } from '../message-types/command-message';
|
||||
|
||||
@Component({
|
||||
selector: 'app-console',
|
||||
|
@ -5,11 +5,11 @@ import { Component, OnDestroy, OnInit, ChangeDetectorRef, ElementRef, ViewChild
|
||||
import { DeploymentNotificationService } from '../services/deployment-notification.service';
|
||||
import { Subscription } from 'rxjs';
|
||||
import { WebSocketService } from '../services/websocket.service';
|
||||
import { HideMessagesCommand, LayoutCommand, TerminalMenuItemCommand } from '../message.types/dashboard.commands';
|
||||
import { HideMessagesCommand, LayoutCommand, TerminalMenuItemCommand } from '../message-types/dashboard-commands';
|
||||
import { config } from '../config';
|
||||
import { ProcessLogService } from '../services/processlog.service';
|
||||
import { LogMessage } from '../message.types/log.message';
|
||||
import { CommandMessage } from '../message.types/command.message';
|
||||
import { LogMessage } from '../message-types/log-message';
|
||||
import { CommandMessage } from '../message-types/command-message';
|
||||
|
||||
@Component({
|
||||
selector: 'app-dashboard',
|
||||
|
@ -16,12 +16,12 @@ import 'brace/mode/python';
|
||||
import 'brace/mode/sql';
|
||||
|
||||
import 'brace/theme/cobalt';
|
||||
import { IDECommand } from '../message.types/ide.command';
|
||||
import { IDECommand } from '../message-types/ide-command';
|
||||
import { WebSocketService } from '../services/websocket.service';
|
||||
import { ProcessManagerService } from '../services/processmanager.service';
|
||||
import { DeploymentNotificationService } from '../services/deployment-notification.service';
|
||||
import { config } from '../config';
|
||||
import { CommandMessage } from '../message.types/command.message';
|
||||
import { CommandMessage } from '../message-types/command-message';
|
||||
|
||||
const modelist = brace.acequire('ace/ext/modelist');
|
||||
const langTools = brace.acequire('ace/ext/language_tools');
|
||||
|
@ -1,8 +1,8 @@
|
||||
// Copyright (C) 2018 Avatao.com Innovative Learning Kft.
|
||||
// All Rights Reserved. See LICENSE file for details.
|
||||
|
||||
import { CommandMessage } from './command.message';
|
||||
import { SetValueCommand } from './set.value.command';
|
||||
import { CommandMessage } from './command-message';
|
||||
import { SetValueCommand } from './set-value-command';
|
||||
|
||||
export interface ConsoleContentCommand extends CommandMessage {
|
||||
content?: string;
|
@ -1,8 +1,8 @@
|
||||
// Copyright (C) 2018 Avatao.com Innovative Learning Kft.
|
||||
// All Rights Reserved. See LICENSE file for details.
|
||||
|
||||
import { CommandMessage } from './command.message';
|
||||
import { SetValueCommand } from './set.value.command';
|
||||
import { CommandMessage } from './command-message';
|
||||
import { SetValueCommand } from './set-value-command';
|
||||
|
||||
export interface LayoutCommand extends CommandMessage, SetValueCommand<string> {}
|
||||
|
@ -1,7 +1,7 @@
|
||||
// Copyright (C) 2018 Avatao.com Innovative Learning Kft.
|
||||
// All Rights Reserved. See LICENSE file for details.
|
||||
|
||||
import { CommandMessage } from './command.message';
|
||||
import { CommandMessage } from './command-message';
|
||||
|
||||
export interface IDECommand extends CommandMessage {
|
||||
filename: string;
|
@ -1,7 +1,7 @@
|
||||
// Copyright (C) 2018 Avatao.com Innovative Learning Kft.
|
||||
// All Rights Reserved. See LICENSE file for details.
|
||||
|
||||
import { CommandMessage } from './command.message';
|
||||
import { SetValueCommand } from './set.value.command';
|
||||
import { CommandMessage } from './command-message';
|
||||
import { SetValueCommand } from './set-value-command';
|
||||
|
||||
export interface MessagesControlCommand extends CommandMessage, SetValueCommand<boolean> {}
|
@ -1,8 +1,8 @@
|
||||
// Copyright (C) 2018 Avatao.com Innovative Learning Kft.
|
||||
// All Rights Reserved. See LICENSE file for details.
|
||||
|
||||
import { CommandMessage } from './command.message';
|
||||
import { LogMessage } from './log.message';
|
||||
import { CommandMessage } from './command-message';
|
||||
import { LogMessage } from './log-message';
|
||||
|
||||
export interface ProcessCommand extends CommandMessage, LogMessage {
|
||||
process_name: string;
|
@ -1,7 +1,7 @@
|
||||
// Copyright (C) 2018 Avatao.com Innovative Learning Kft.
|
||||
// All Rights Reserved. See LICENSE file for details.
|
||||
|
||||
import { CommandMessage } from './command.message';
|
||||
import { LogMessage } from './log.message';
|
||||
import { CommandMessage } from './command-message';
|
||||
import { LogMessage } from './log-message';
|
||||
|
||||
export interface ProcessLogCommand extends CommandMessage, LogMessage {}
|
@ -1,7 +1,7 @@
|
||||
// Copyright (C) 2018 Avatao.com Innovative Learning Kft.
|
||||
// All Rights Reserved. See LICENSE file for details.
|
||||
|
||||
import { CommandMessage } from './command.message';
|
||||
import { CommandMessage } from './command-message';
|
||||
|
||||
export interface SetValueCommand<T> extends CommandMessage {
|
||||
value: T;
|
@ -5,10 +5,10 @@ import { ChangeDetectorRef, Component, OnInit } from '@angular/core';
|
||||
import { MarkdownService } from '../services/markdown.service';
|
||||
import { WebSocketService } from '../services/websocket.service';
|
||||
|
||||
import { MessagesMessage } from '../message.types/messages.message';
|
||||
import { MessagesControlCommand } from '../message.types/messages.control.command';
|
||||
import { MessagesMessage } from '../message-types/messages-message';
|
||||
import { MessagesControlCommand } from '../message-types/messages-control-command';
|
||||
import { config } from '../config';
|
||||
import { CommandMessage } from '../message.types/command.message';
|
||||
import { CommandMessage } from '../message-types/command-message';
|
||||
|
||||
@Component({
|
||||
selector: 'app-messages',
|
||||
|
@ -4,7 +4,7 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
import { WebSocketService } from './websocket.service';
|
||||
|
||||
import { FSMUpdate } from '../message.types/fsm.update';
|
||||
import { FSMUpdate } from '../message-types/fsm-update';
|
||||
|
||||
@Injectable()
|
||||
export class FSMUpdateService {
|
||||
|
@ -3,11 +3,11 @@
|
||||
|
||||
import { Injectable } from '@angular/core';
|
||||
import { WebSocketService } from './websocket.service';
|
||||
import { ProcessLogCommand } from '../message.types/process.log.command';
|
||||
import { ProcessLogCommand } from '../message-types/process-log-command';
|
||||
import { config } from '../config';
|
||||
import { BehaviorSubject } from 'rxjs/BehaviorSubject';
|
||||
import { LogMessage } from '../message.types/log.message';
|
||||
import { CommandMessage } from '../message.types/command.message';
|
||||
import { LogMessage } from '../message-types/log-message';
|
||||
import { CommandMessage } from '../message-types/command-message';
|
||||
|
||||
@Injectable()
|
||||
export class ProcessLogService {
|
||||
|
@ -4,9 +4,9 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
|
||||
import { WebSocketService } from './websocket.service';
|
||||
import { ProcessCommand } from '../message.types/process.command';
|
||||
import { ProcessCommand } from '../message-types/process-command';
|
||||
import { filter } from 'rxjs/operators';
|
||||
import { WebSocketMessage } from '../message.types/websocket.message';
|
||||
import { WebSocketMessage } from '../message-types/websocket-message';
|
||||
|
||||
|
||||
@Injectable()
|
||||
|
@ -6,7 +6,7 @@ import { QueueingSubject } from './queueing-subject';
|
||||
import { Observable } from 'rxjs';
|
||||
import websocketConnect from 'rxjs-websockets';
|
||||
import { filter, map, share } from 'rxjs/operators';
|
||||
import { WebSocketMessage } from '../message.types/websocket.message';
|
||||
import { WebSocketMessage } from '../message-types/websocket-message';
|
||||
|
||||
|
||||
function jsonWebsocketConnect(url: string, input: Observable<object>, protocols?: string | string[]) {
|
||||
|
Loading…
Reference in New Issue
Block a user