mirror of
https://github.com/avatao-content/frontend-tutorial-framework
synced 2024-12-05 02:31:33 +00:00
Fix tslint errors
This commit is contained in:
parent
97b911689b
commit
0543a36f09
@ -131,7 +131,7 @@ export class DashboardComponent implements OnInit, OnDestroy {
|
|||||||
// Sometimes it is needed to reload the iframe without resending the previous form data
|
// Sometimes it is needed to reload the iframe without resending the previous form data
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.webiframe.nativeElement.contentWindow.location = this.webiframe.nativeElement.contentWindow.location.href;
|
this.webiframe.nativeElement.contentWindow.location = this.webiframe.nativeElement.contentWindow.location.href;
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
selectTerminalMenuItem(item: string) {
|
selectTerminalMenuItem(item: string) {
|
||||||
@ -165,12 +165,13 @@ export class DashboardComponent implements OnInit, OnDestroy {
|
|||||||
|
|
||||||
changeIframeURL() {
|
changeIframeURL() {
|
||||||
const userGivenValue = this.urlbar.nativeElement.value.trim();
|
const userGivenValue = this.urlbar.nativeElement.value.trim();
|
||||||
if(
|
if (
|
||||||
userGivenValue == '/' ||
|
userGivenValue === '/' ||
|
||||||
userGivenValue.startsWith('dashboard') ||
|
userGivenValue.startsWith('dashboard') ||
|
||||||
userGivenValue.startsWith('/dashboard')
|
userGivenValue.startsWith('/dashboard')
|
||||||
)
|
) {
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
this.webiframe.nativeElement.contentWindow.frames.location.href = this.urlbar.nativeElement.value;
|
this.webiframe.nativeElement.contentWindow.frames.location.href = this.urlbar.nativeElement.value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -112,7 +112,7 @@ export class IdeComponent implements OnInit {
|
|||||||
|
|
||||||
readHandler(message: IDEMessage) {
|
readHandler(message: IDEMessage) {
|
||||||
if (this.codeState === CodeState.SAVED) {
|
if (this.codeState === CodeState.SAVED) {
|
||||||
if (this.filename != message.filename) {
|
if (this.filename !== message.filename) {
|
||||||
this.filename = message.filename;
|
this.filename = message.filename;
|
||||||
}
|
}
|
||||||
this.code = (message.content != null) ? message.content : this.code;
|
this.code = (message.content != null) ? message.content : this.code;
|
||||||
|
@ -16,7 +16,7 @@ export class MessagesComponent implements OnInit {
|
|||||||
newMessage: Subject<MessageData> = new Subject<MessageData>();
|
newMessage: Subject<MessageData> = new Subject<MessageData>();
|
||||||
messageInQueue = true;
|
messageInQueue = true;
|
||||||
|
|
||||||
originator: string = 'avataobot';
|
originator = 'avataobot';
|
||||||
messages: MessageData[] = [];
|
messages: MessageData[] = [];
|
||||||
messageQueueAttender: MessageQueueAttender;
|
messageQueueAttender: MessageQueueAttender;
|
||||||
|
|
||||||
|
@ -45,7 +45,7 @@ export class ProcessManagerService {
|
|||||||
|
|
||||||
sendCommand(command: string, process_name: string) {
|
sendCommand(command: string, process_name: string) {
|
||||||
this.webSocketService.sendJSON({
|
this.webSocketService.sendJSON({
|
||||||
'key': 'process.'+command,
|
'key': 'process.' + command,
|
||||||
'name': process_name
|
'name': process_name
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -56,7 +56,7 @@
|
|||||||
"no-debugger": true,
|
"no-debugger": true,
|
||||||
"no-duplicate-super": true,
|
"no-duplicate-super": true,
|
||||||
"no-empty": false,
|
"no-empty": false,
|
||||||
"no-empty-interface": true,
|
"no-empty-interface": false,
|
||||||
"no-eval": true,
|
"no-eval": true,
|
||||||
"no-inferrable-types": [
|
"no-inferrable-types": [
|
||||||
true,
|
true,
|
||||||
@ -71,7 +71,6 @@
|
|||||||
"no-trailing-whitespace": true,
|
"no-trailing-whitespace": true,
|
||||||
"no-unnecessary-initializer": true,
|
"no-unnecessary-initializer": true,
|
||||||
"no-unused-expression": true,
|
"no-unused-expression": true,
|
||||||
"no-use-before-declare": true,
|
|
||||||
"no-var-keyword": true,
|
"no-var-keyword": true,
|
||||||
"object-literal-sort-keys": false,
|
"object-literal-sort-keys": false,
|
||||||
"one-line": [
|
"one-line": [
|
||||||
@ -105,7 +104,6 @@
|
|||||||
"variable-declaration": "nospace"
|
"variable-declaration": "nospace"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"typeof-compare": true,
|
|
||||||
"unified-signatures": true,
|
"unified-signatures": true,
|
||||||
"variable-name": false,
|
"variable-name": false,
|
||||||
"whitespace": [
|
"whitespace": [
|
||||||
|
Loading…
Reference in New Issue
Block a user