mirror of
https://github.com/urbit/shrub.git
synced 2025-01-06 04:07:23 +03:00
webterm: simpler TermState
Extending BaseState has fallen out of fashion.
This commit is contained in:
parent
da85ee2e38
commit
8b6b51b4da
@ -1,12 +1,12 @@
|
|||||||
import { Terminal } from 'xterm';
|
import { Terminal } from 'xterm';
|
||||||
import { FitAddon } from 'xterm-addon-fit';
|
import { FitAddon } from 'xterm-addon-fit';
|
||||||
|
|
||||||
import { BaseState, createState } from "./base";
|
import { createState } from "./base";
|
||||||
|
|
||||||
type Session = { term: Terminal, fit: FitAddon };
|
type Session = { term: Terminal, fit: FitAddon };
|
||||||
type Sessions = { [id: string]: Session; }
|
type Sessions = { [id: string]: Session; }
|
||||||
|
|
||||||
export interface TermState extends BaseState<TermState> {
|
export interface TermState {
|
||||||
sessions: Sessions,
|
sessions: Sessions,
|
||||||
selected: string,
|
selected: string,
|
||||||
slogstream: null | EventSource,
|
slogstream: null | EventSource,
|
||||||
|
Loading…
Reference in New Issue
Block a user