This commit is contained in:
Eugene Pankov 2021-07-17 00:53:01 +02:00
parent a77e2176ea
commit ca5c79bf48
No known key found for this signature in database
GPG Key ID: 5896FCBBDD1CF4F4

View File

@ -1,3 +1,4 @@
import { Subject } from 'rxjs'
import * as semverCompare from 'semver/functions/compare-loose'
import { HttpClient } from '@angular/common/http'
import { Component, ElementRef, ViewChild } from '@angular/core'
@ -35,12 +36,31 @@ class DemoConnector {
'tabby-settings',
'tabby-terminal',
'tabby-community-color-schemes',
'tabby-ssh',
'tabby-telnet',
'tabby-web',
'tabby-web-demo',
]
}
createSocket () {
return new DemoSocketProxy()
}
}
export class DemoSocketProxy {
connect$ = new Subject<void>()
data$ = new Subject<Buffer>()
error$ = new Subject<Buffer>()
close$ = new Subject<Buffer>()
async connect (options) {
this.error$.next(new Error('This web demo can\'t actually access Internet, but feel free to download the release and try it out!'))
}
}
@Component({
selector: 'home',
templateUrl: './home.component.pug',