Skip to content

Commit

Permalink
chore(ui): lint
Browse files Browse the repository at this point in the history
  • Loading branch information
psychedelicious committed Sep 9, 2024
1 parent 8b6512c commit d6c553c
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 330 deletions.
104 changes: 0 additions & 104 deletions invokeai/frontend/web/src/common/components/IconSwitch.tsx

This file was deleted.

46 changes: 0 additions & 46 deletions invokeai/frontend/web/src/common/components/SelectionOverlay.tsx

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,6 @@ const zImageWithDims = z.object({
});
export type ImageWithDims = z.infer<typeof zImageWithDims>;

const zGridSize = z.union([z.literal(1), z.literal(8), z.literal(64)]);
export type GridSize = z.infer<typeof zGridSize>;
export const isGridSize = (v: unknown): v is GridSize => zGridSize.safeParse(v).success;

const zBeginEndStepPct = z
.tuple([z.number().gte(0).lte(1), z.number().gte(0).lte(1)])
.refine(([begin, end]) => begin < end, {
Expand Down

This file was deleted.

4 changes: 2 additions & 2 deletions invokeai/frontend/web/src/features/ui/store/uiSlice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,11 @@ export const uiPersistConfig: PersistConfig<UIState> = {

export const LEFT_PANEL_MIN_SIZE_PX = 400;
export const LEFT_PANEL_MIN_SIZE_PCT = 20;
export const TABS_WITH_LEFT_PANEL: TabName[] = ['generation', 'upscaling', 'workflows'] as const;
const TABS_WITH_LEFT_PANEL: TabName[] = ['generation', 'upscaling', 'workflows'] as const;
export const $isLeftPanelOpen = atom(true);
export const selectWithLeftPanel = createSelector(selectUiSlice, (ui) => TABS_WITH_LEFT_PANEL.includes(ui.activeTab));

export const TABS_WITH_RIGHT_PANEL: TabName[] = ['generation', 'upscaling', 'workflows', 'gallery'] as const;
const TABS_WITH_RIGHT_PANEL: TabName[] = ['generation', 'upscaling', 'workflows', 'gallery'] as const;
export const RIGHT_PANEL_MIN_SIZE_PX = 390;
export const RIGHT_PANEL_MIN_SIZE_PCT = 20;
export const $isRightPanelOpen = atom(true);
Expand Down

0 comments on commit d6c553c

Please sign in to comment.