mirror of
https://github.com/Eugeny/tabby-web.git
synced 2025-06-10 14:39:53 +00:00
wip
This commit is contained in:
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',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user