chore(ui): remove unused code
This commit is contained in:
parent
8151535e9d
commit
369b769952
1 changed files with 1 additions and 8 deletions
|
@ -6,7 +6,7 @@ import { FgWorker } from "../worker/upload.fg.worker";
|
||||||
import { Props as PanelProps } from "./root_frame";
|
import { Props as PanelProps } from "./root_frame";
|
||||||
import { Item } from "./browser";
|
import { Item } from "./browser";
|
||||||
import { UploadInfo, User } from "../client";
|
import { UploadInfo, User } from "../client";
|
||||||
import { Up, initUploadMgr, IWorker } from "../worker/upload_mgr";
|
import { initUploadMgr, IWorker } from "../worker/upload_mgr";
|
||||||
|
|
||||||
export class BaseUpdater {
|
export class BaseUpdater {
|
||||||
public static props: any;
|
public static props: any;
|
||||||
|
@ -16,12 +16,7 @@ export class BaseUpdater {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface IContext {
|
|
||||||
update: (targetStatePatch: any) => void;
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface ICoreState {
|
export interface ICoreState {
|
||||||
ctx: IContext;
|
|
||||||
panel: PanelProps;
|
panel: PanelProps;
|
||||||
isVertical: boolean;
|
isVertical: boolean;
|
||||||
}
|
}
|
||||||
|
@ -44,7 +39,6 @@ export function isVertical(): boolean {
|
||||||
|
|
||||||
export function initState(): ICoreState {
|
export function initState(): ICoreState {
|
||||||
return {
|
return {
|
||||||
ctx: null,
|
|
||||||
isVertical: isVertical(),
|
isVertical: isVertical(),
|
||||||
panel: {
|
panel: {
|
||||||
displaying: "browser",
|
displaying: "browser",
|
||||||
|
@ -81,7 +75,6 @@ export function initState(): ICoreState {
|
||||||
|
|
||||||
export function mockState(): ICoreState {
|
export function mockState(): ICoreState {
|
||||||
return {
|
return {
|
||||||
ctx: undefined,
|
|
||||||
isVertical: false,
|
isVertical: false,
|
||||||
panel: {
|
panel: {
|
||||||
displaying: "browser",
|
displaying: "browser",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue