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