mirror of
				https://github.com/avatao-content/frontend-tutorial-framework
				synced 2025-11-04 10:12:55 +00:00 
			
		
		
		
	Remove unused component
This commit is contained in:
		@@ -13,7 +13,6 @@ import { MarkdownService } from './markdown.service';
 | 
			
		||||
import { TerminadoService } from './terminado.service';
 | 
			
		||||
import { WebideComponent } from './webide/webide.component';
 | 
			
		||||
import { MessagesComponent } from './messages/messages.component';
 | 
			
		||||
import { TestButtonComponent } from './test-button/test-button.component';
 | 
			
		||||
import { WebSocketService } from './websocket.service';
 | 
			
		||||
import { TerminalComponent } from './terminal/terminal.component';
 | 
			
		||||
import { FSMUpdateService } from './fsmupdate.service';
 | 
			
		||||
@@ -26,7 +25,6 @@ import { FSMUpdateService } from './fsmupdate.service';
 | 
			
		||||
    LoginComponent,
 | 
			
		||||
    WebideComponent,
 | 
			
		||||
    MessagesComponent,
 | 
			
		||||
    TestButtonComponent,
 | 
			
		||||
    TerminalComponent
 | 
			
		||||
  ],
 | 
			
		||||
  imports: [
 | 
			
		||||
 
 | 
			
		||||
@@ -1,4 +0,0 @@
 | 
			
		||||
<p>
 | 
			
		||||
  This is {{anchor_id}}. This text will change: {{text}}
 | 
			
		||||
</p>
 | 
			
		||||
<button type="submit" class="btn btn-outline-primary" (click)="onClick()">Submit {{anchor_id}}</button>
 | 
			
		||||
@@ -1,27 +0,0 @@
 | 
			
		||||
import { Component, Input, OnInit } from '@angular/core';
 | 
			
		||||
import { WebSocketService } from '../websocket.service';
 | 
			
		||||
 | 
			
		||||
@Component({
 | 
			
		||||
  selector: 'app-test-button',
 | 
			
		||||
  templateUrl: './test-button.component.html',
 | 
			
		||||
  styleUrls: ['./test-button.component.scss']
 | 
			
		||||
})
 | 
			
		||||
export class TestButtonComponent implements OnInit {
 | 
			
		||||
  @Input() anchor_id: string;
 | 
			
		||||
  text: string;
 | 
			
		||||
  constructor(private webSocketService: WebSocketService) {
 | 
			
		||||
    this.text = 'babylon';
 | 
			
		||||
    this.webSocketService = webSocketService;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  onClick() {
 | 
			
		||||
    this.webSocketService.send(this.anchor_id, this.text);
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  ngOnInit() {
 | 
			
		||||
    this.webSocketService.observeAnchor<string>(this.anchor_id).subscribe((event) => {
 | 
			
		||||
      this.text = event.data;
 | 
			
		||||
    });
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user