1
0
mirror of https://github.com/Eugeny/tabby-web.git synced 2025-08-16 14:21:53 +00:00
This commit is contained in:
Eugene Pankov
2021-07-17 00:53:01 +02:00
parent a77e2176ea
commit ca5c79bf48

@@ -1,3 +1,4 @@
import { Subject } from 'rxjs'
import * as semverCompare from 'semver/functions/compare-loose' import * as semverCompare from 'semver/functions/compare-loose'
import { HttpClient } from '@angular/common/http' import { HttpClient } from '@angular/common/http'
import { Component, ElementRef, ViewChild } from '@angular/core' import { Component, ElementRef, ViewChild } from '@angular/core'
@@ -35,12 +36,31 @@ class DemoConnector {
'tabby-settings', 'tabby-settings',
'tabby-terminal', 'tabby-terminal',
'tabby-community-color-schemes', 'tabby-community-color-schemes',
'tabby-ssh',
'tabby-telnet',
'tabby-web', 'tabby-web',
'tabby-web-demo', '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({ @Component({
selector: 'home', selector: 'home',
templateUrl: './home.component.pug', templateUrl: './home.component.pug',