commit 5ed388a9d35c67cc48cc7b2428f965e5451bd914 parent 2ac4de88414062adb0ae5629891e335f7c096aef Author: triesap <137732411+triesap@users.noreply.github.com> Date: Tue, 8 Oct 2024 10:42:00 +0000 utils: add window conf Diffstat:
| M | utils/src/index.ts | | | 1 | + |
| A | utils/src/window.ts | | | 23 | +++++++++++++++++++++++ |
2 files changed, 24 insertions(+), 0 deletions(-)
diff --git a/utils/src/index.ts b/utils/src/index.ts @@ -12,3 +12,4 @@ export * from "./time" export * from "./trade" export * from "./types" export * from "./uuid" +export * from "./window" diff --git a/utils/src/window.ts b/utils/src/window.ts @@ -0,0 +1,22 @@ +export type AppLayoutKey = 'mobile_base' | 'mobile_y'; + +type ClientWindow = { + app: { + layout: Record<AppLayoutKey, { + h: number; + }>; + } +}; + +export const wind: ClientWindow = { + app: { + layout: { + mobile_base: { + h: 600 + }, + mobile_y: { + h: 768 + } + } + } +}; +\ No newline at end of file