mirror of
https://github.com/Bismuth-Forge/bismuth.git
synced 2024-09-11 00:15:37 +03:00
refactor: use simple export for Config
This commit is contained in:
parent
35aa1f96c6
commit
1d7224110b
@ -19,7 +19,7 @@ import CascadeLayout from "./engine/layout/cascade_layout";
|
|||||||
import { WindowsLayout } from "./engine/layout";
|
import { WindowsLayout } from "./engine/layout";
|
||||||
import { WindowsLayoutClass } from "./engine/layout";
|
import { WindowsLayoutClass } from "./engine/layout";
|
||||||
|
|
||||||
export default interface Config {
|
export interface Config {
|
||||||
//#region Layout
|
//#region Layout
|
||||||
layoutOrder: string[];
|
layoutOrder: string[];
|
||||||
layoutFactories: { [key: string]: () => WindowsLayout };
|
layoutFactories: { [key: string]: () => WindowsLayout };
|
||||||
|
@ -10,7 +10,7 @@ import { WindowState } from "../engine/window";
|
|||||||
import { Driver, DriverImpl } from "../driver";
|
import { Driver, DriverImpl } from "../driver";
|
||||||
import { DriverSurface } from "../driver/surface";
|
import { DriverSurface } from "../driver/surface";
|
||||||
|
|
||||||
import Config from "../config";
|
import { Config } from "../config";
|
||||||
import { Log } from "../util/log";
|
import { Log } from "../util/log";
|
||||||
|
|
||||||
import * as Action from "./action";
|
import * as Action from "./action";
|
||||||
|
@ -14,7 +14,7 @@ import { EngineWindow, EngineWindowImpl } from "../engine/window";
|
|||||||
|
|
||||||
import { WindowState } from "../engine/window";
|
import { WindowState } from "../engine/window";
|
||||||
|
|
||||||
import Config from "../config";
|
import { Config } from "../config";
|
||||||
import { Log } from "../util/log";
|
import { Log } from "../util/log";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
//
|
//
|
||||||
// SPDX-License-Identifier: MIT
|
// SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
import Config from "../config";
|
import { Config } from "../config";
|
||||||
import { Rect } from "../util/rect";
|
import { Rect } from "../util/rect";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -7,7 +7,7 @@ import { DriverSurface, DriverSurfaceImpl } from "./surface";
|
|||||||
|
|
||||||
import { Rect } from "../util/rect";
|
import { Rect } from "../util/rect";
|
||||||
import { clip, matchWords } from "../util/func";
|
import { clip, matchWords } from "../util/func";
|
||||||
import Config from "../config";
|
import { Config } from "../config";
|
||||||
import { Log } from "../util/log";
|
import { Log } from "../util/log";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
import { createMock } from "ts-auto-mock";
|
import { createMock } from "ts-auto-mock";
|
||||||
|
|
||||||
import { EngineImpl } from ".";
|
import { EngineImpl } from ".";
|
||||||
import Config from "../config";
|
import { Config } from "../config";
|
||||||
import { Controller } from "../controller";
|
import { Controller } from "../controller";
|
||||||
import { DriverSurface } from "../driver/surface";
|
import { DriverSurface } from "../driver/surface";
|
||||||
|
|
||||||
|
@ -15,7 +15,7 @@ import { DriverSurface } from "../driver/surface";
|
|||||||
|
|
||||||
import { Rect, RectDelta } from "../util/rect";
|
import { Rect, RectDelta } from "../util/rect";
|
||||||
import { overlap, wrapIndex } from "../util/func";
|
import { overlap, wrapIndex } from "../util/func";
|
||||||
import Config from "../config";
|
import { Config } from "../config";
|
||||||
import { Log } from "../util/log";
|
import { Log } from "../util/log";
|
||||||
import { WindowsLayout } from "./layout";
|
import { WindowsLayout } from "./layout";
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@ import { Controller } from "../../controller";
|
|||||||
import { Action } from "../../controller/action";
|
import { Action } from "../../controller/action";
|
||||||
|
|
||||||
import { Rect, RectDelta } from "../../util/rect";
|
import { Rect, RectDelta } from "../../util/rect";
|
||||||
import Config from "../../config";
|
import { Config } from "../../config";
|
||||||
|
|
||||||
export interface WindowsLayoutClass {
|
export interface WindowsLayoutClass {
|
||||||
readonly id: string;
|
readonly id: string;
|
||||||
|
@ -7,7 +7,7 @@ import LayoutUtils from "./layout_utils";
|
|||||||
|
|
||||||
import { EngineWindow } from "../window";
|
import { EngineWindow } from "../window";
|
||||||
|
|
||||||
import Config from "../../config";
|
import { Config } from "../../config";
|
||||||
import { Rect, RectDelta } from "../../util/rect";
|
import { Rect, RectDelta } from "../../util/rect";
|
||||||
|
|
||||||
export interface ILayoutPart {
|
export interface ILayoutPart {
|
||||||
|
@ -18,7 +18,7 @@ import {
|
|||||||
} from "../../controller/action";
|
} from "../../controller/action";
|
||||||
|
|
||||||
import { Rect } from "../../util/rect";
|
import { Rect } from "../../util/rect";
|
||||||
import Config from "../../config";
|
import { Config } from "../../config";
|
||||||
import { Controller } from "../../controller";
|
import { Controller } from "../../controller";
|
||||||
import { Engine } from "..";
|
import { Engine } from "..";
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@ import { WindowState, EngineWindow } from "../window";
|
|||||||
|
|
||||||
import { clip } from "../../util/func";
|
import { clip } from "../../util/func";
|
||||||
import { Rect, RectDelta } from "../../util/rect";
|
import { Rect, RectDelta } from "../../util/rect";
|
||||||
import Config from "../../config";
|
import { Config } from "../../config";
|
||||||
import { Controller } from "../../controller";
|
import { Controller } from "../../controller";
|
||||||
|
|
||||||
export default class QuarterLayout implements WindowsLayout {
|
export default class QuarterLayout implements WindowsLayout {
|
||||||
|
@ -10,7 +10,7 @@ import { WindowsLayout } from ".";
|
|||||||
import { WindowState, EngineWindow } from "../window";
|
import { WindowState, EngineWindow } from "../window";
|
||||||
|
|
||||||
import { Rect, RectDelta } from "../../util/rect";
|
import { Rect, RectDelta } from "../../util/rect";
|
||||||
import Config from "../../config";
|
import { Config } from "../../config";
|
||||||
import { Controller } from "../../controller";
|
import { Controller } from "../../controller";
|
||||||
|
|
||||||
export type SpiralLayoutPart = HalfSplitLayoutPart<
|
export type SpiralLayoutPart = HalfSplitLayoutPart<
|
||||||
|
@ -18,7 +18,7 @@ import {
|
|||||||
|
|
||||||
import { partitionArrayBySizes, clip, slide } from "../../util/func";
|
import { partitionArrayBySizes, clip, slide } from "../../util/func";
|
||||||
import { Rect, RectDelta } from "../../util/rect";
|
import { Rect, RectDelta } from "../../util/rect";
|
||||||
import Config from "../../config";
|
import { Config } from "../../config";
|
||||||
import { Controller } from "../../controller";
|
import { Controller } from "../../controller";
|
||||||
import { Engine } from "..";
|
import { Engine } from "..";
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@ import {
|
|||||||
|
|
||||||
import { clip, slide } from "../../util/func";
|
import { clip, slide } from "../../util/func";
|
||||||
import { Rect, RectDelta } from "../../util/rect";
|
import { Rect, RectDelta } from "../../util/rect";
|
||||||
import Config from "../../config";
|
import { Config } from "../../config";
|
||||||
import { Controller } from "../../controller";
|
import { Controller } from "../../controller";
|
||||||
import { Engine } from "..";
|
import { Engine } from "..";
|
||||||
|
|
||||||
|
@ -11,7 +11,7 @@ import { WindowsLayout } from "./layout";
|
|||||||
import { DriverSurface } from "../driver/surface";
|
import { DriverSurface } from "../driver/surface";
|
||||||
|
|
||||||
import { wrapIndex } from "../util/func";
|
import { wrapIndex } from "../util/func";
|
||||||
import Config from "../config";
|
import { Config } from "../config";
|
||||||
|
|
||||||
export class LayoutStoreEntry {
|
export class LayoutStoreEntry {
|
||||||
public get currentLayout(): WindowsLayout {
|
public get currentLayout(): WindowsLayout {
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
import { DriverWindow } from "../driver/window";
|
import { DriverWindow } from "../driver/window";
|
||||||
import { DriverSurface } from "../driver/surface";
|
import { DriverSurface } from "../driver/surface";
|
||||||
|
|
||||||
import Config from "../config";
|
import { Config } from "../config";
|
||||||
import { Log } from "../util/log";
|
import { Log } from "../util/log";
|
||||||
import { Rect, RectDelta } from "../util/rect";
|
import { Rect, RectDelta } from "../util/rect";
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
//
|
//
|
||||||
// SPDX-License-Identifier: MIT
|
// SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
import Config from "../config";
|
import { Config } from "../config";
|
||||||
|
|
||||||
type LogType = string | Record<string, unknown> | LogType[];
|
type LogType = string | Record<string, unknown> | LogType[];
|
||||||
export interface Log {
|
export interface Log {
|
||||||
|
Loading…
Reference in New Issue
Block a user