Rename message-types stuff to comply angular naming conventions

This commit is contained in:
Kristóf Tóth 2018-06-02 17:31:51 +02:00
parent d99853d88e
commit 1b4c7a1f0f
20 changed files with 30 additions and 30 deletions

View File

@ -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',

View File

@ -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',

View File

@ -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');

View File

@ -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;

View File

@ -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> {}

View File

@ -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;

View File

@ -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> {}

View File

@ -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;

View File

@ -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 {}

View File

@ -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;

View File

@ -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',

View File

@ -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 {

View File

@ -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 {

View File

@ -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()

View File

@ -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[]) {