mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-16 05:38:41 -09:00
remove unnecessary session url field
This commit is contained in:
parent
65daf116ba
commit
5f0e80df08
4 changed files with 1 additions and 16 deletions
|
|
@ -82,7 +82,6 @@ class TermGroup_ extends React.PureComponent<TermGroupProps> {
|
||||||
letterSpacing: this.props.letterSpacing,
|
letterSpacing: this.props.letterSpacing,
|
||||||
modifierKeys: this.props.modifierKeys,
|
modifierKeys: this.props.modifierKeys,
|
||||||
padding: this.props.padding,
|
padding: this.props.padding,
|
||||||
url: session.url,
|
|
||||||
cleared: session.cleared,
|
cleared: session.cleared,
|
||||||
search: session.search,
|
search: session.search,
|
||||||
cols: session.cols,
|
cols: session.cols,
|
||||||
|
|
|
||||||
|
|
@ -8,8 +8,6 @@ export const SESSION_USER_EXIT = 'SESSION_USER_EXIT';
|
||||||
export const SESSION_SET_ACTIVE = 'SESSION_SET_ACTIVE';
|
export const SESSION_SET_ACTIVE = 'SESSION_SET_ACTIVE';
|
||||||
export const SESSION_CLEAR_ACTIVE = 'SESSION_CLEAR_ACTIVE';
|
export const SESSION_CLEAR_ACTIVE = 'SESSION_CLEAR_ACTIVE';
|
||||||
export const SESSION_USER_DATA = 'SESSION_USER_DATA';
|
export const SESSION_USER_DATA = 'SESSION_USER_DATA';
|
||||||
export const SESSION_URL_SET = 'SESSION_URL_SET';
|
|
||||||
export const SESSION_URL_UNSET = 'SESSION_URL_UNSET';
|
|
||||||
export const SESSION_SET_XTERM_TITLE = 'SESSION_SET_XTERM_TITLE';
|
export const SESSION_SET_XTERM_TITLE = 'SESSION_SET_XTERM_TITLE';
|
||||||
export const SESSION_SET_CWD = 'SESSION_SET_CWD';
|
export const SESSION_SET_CWD = 'SESSION_SET_CWD';
|
||||||
export const SESSION_SEARCH = 'SESSION_SEARCH';
|
export const SESSION_SEARCH = 'SESSION_SEARCH';
|
||||||
|
|
@ -63,14 +61,6 @@ export interface SessionClearActiveAction {
|
||||||
export interface SessionUserDataAction {
|
export interface SessionUserDataAction {
|
||||||
type: typeof SESSION_USER_DATA;
|
type: typeof SESSION_USER_DATA;
|
||||||
}
|
}
|
||||||
export interface SessionUrlSetAction {
|
|
||||||
type: typeof SESSION_URL_SET;
|
|
||||||
uid: string;
|
|
||||||
}
|
|
||||||
export interface SessionUrlUnsetAction {
|
|
||||||
type: typeof SESSION_URL_UNSET;
|
|
||||||
uid: string;
|
|
||||||
}
|
|
||||||
export interface SessionSetXtermTitleAction {
|
export interface SessionSetXtermTitleAction {
|
||||||
type: typeof SESSION_SET_XTERM_TITLE;
|
type: typeof SESSION_SET_XTERM_TITLE;
|
||||||
uid: string;
|
uid: string;
|
||||||
|
|
@ -97,8 +87,6 @@ export type SessionActions =
|
||||||
| SessionSetActiveAction
|
| SessionSetActiveAction
|
||||||
| SessionClearActiveAction
|
| SessionClearActiveAction
|
||||||
| SessionUserDataAction
|
| SessionUserDataAction
|
||||||
| SessionUrlSetAction
|
|
||||||
| SessionUrlUnsetAction
|
|
||||||
| SessionSetXtermTitleAction
|
| SessionSetXtermTitleAction
|
||||||
| SessionSetCwdAction
|
| SessionSetCwdAction
|
||||||
| SessionSearchAction;
|
| SessionSearchAction;
|
||||||
|
|
|
||||||
3
lib/hyper.d.ts
vendored
3
lib/hyper.d.ts
vendored
|
|
@ -117,10 +117,10 @@ export type session = {
|
||||||
shell: string | null;
|
shell: string | null;
|
||||||
title: string;
|
title: string;
|
||||||
uid: string;
|
uid: string;
|
||||||
url: string | null;
|
|
||||||
splitDirection?: 'HORIZONTAL' | 'VERTICAL';
|
splitDirection?: 'HORIZONTAL' | 'VERTICAL';
|
||||||
activeUid?: string;
|
activeUid?: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type sessionState = Immutable<{
|
export type sessionState = Immutable<{
|
||||||
sessions: Record<string, session>;
|
sessions: Record<string, session>;
|
||||||
activeUid: string | null;
|
activeUid: string | null;
|
||||||
|
|
@ -384,7 +384,6 @@ export type TermProps = {
|
||||||
term: Terminal | null;
|
term: Terminal | null;
|
||||||
uid: string;
|
uid: string;
|
||||||
uiFontFamily: string;
|
uiFontFamily: string;
|
||||||
url: string | null;
|
|
||||||
webGLRenderer: boolean;
|
webGLRenderer: boolean;
|
||||||
webLinksActivationKey: 'ctrl' | 'alt' | 'meta' | 'shift' | '';
|
webLinksActivationKey: 'ctrl' | 'alt' | 'meta' | 'shift' | '';
|
||||||
windowsPty?: IWindowsPty;
|
windowsPty?: IWindowsPty;
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,6 @@ function Session(obj: Immutable.DeepPartial<session>) {
|
||||||
title: '',
|
title: '',
|
||||||
cols: null,
|
cols: null,
|
||||||
rows: null,
|
rows: null,
|
||||||
url: null,
|
|
||||||
cleared: false,
|
cleared: false,
|
||||||
search: false,
|
search: false,
|
||||||
shell: '',
|
shell: '',
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue