mirror of
https://github.com/avatao-content/frontend-tutorial-framework
synced 2025-06-28 21:35:12 +00:00
Move SourceCode class next to its sole client
This commit is contained in:
5
src/app/webide/source-code.ts
Normal file
5
src/app/webide/source-code.ts
Normal file
@ -0,0 +1,5 @@
|
||||
export class SourceCode {
|
||||
filename: string;
|
||||
content: string;
|
||||
language: string;
|
||||
}
|
@ -3,7 +3,7 @@ import { Component, OnInit } from '@angular/core';
|
||||
import 'brace/mode/python';
|
||||
import 'brace/mode/javascript';
|
||||
import 'brace/theme/monokai';
|
||||
import { SourceCode } from '../../source-code';
|
||||
import { SourceCode } from './source-code';
|
||||
import { WebSocketService } from '../websocket.service';
|
||||
|
||||
const defaultSourceCode = `alert( 'Hello, world!' );`;
|
||||
|
Reference in New Issue
Block a user