2024-10-05 19:33:09 +02:00
|
|
|
/*
|
|
|
|
|
* Copyright (C) Contributors to the Suwayomi project
|
|
|
|
|
*
|
|
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
|
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
|
|
|
*/
|
|
|
|
|
|
2026-03-11 00:11:29 +01:00
|
|
|
import type { MessageDescriptor } from '@lingui/core';
|
|
|
|
|
import type { ReactNode } from 'react';
|
2024-10-03 04:03:04 +02:00
|
|
|
|
2024-10-05 19:33:09 +02:00
|
|
|
export enum GridLayout {
|
|
|
|
|
Compact = 0,
|
|
|
|
|
Comfortable = 1,
|
|
|
|
|
List = 2,
|
|
|
|
|
}
|
2024-10-03 04:03:04 +02:00
|
|
|
|
2025-08-16 02:48:46 +02:00
|
|
|
export enum DirectionOffset {
|
|
|
|
|
PREVIOUS = -1,
|
|
|
|
|
NEXT = 1,
|
|
|
|
|
}
|
|
|
|
|
|
2026-05-08 01:39:48 +02:00
|
|
|
interface DisplayData {
|
|
|
|
|
title: MessageDescriptor | string;
|
2024-10-28 18:03:29 +01:00
|
|
|
icon: ReactNode;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type ValueToDisplayData<Value extends string | number> = Record<Value, DisplayData>;
|
2024-11-04 18:00:35 +01:00
|
|
|
|
2024-11-03 03:09:00 +01:00
|
|
|
export enum ScrollOffset {
|
|
|
|
|
BACKWARD,
|
|
|
|
|
FORWARD,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export enum ScrollDirection {
|
|
|
|
|
X,
|
|
|
|
|
Y,
|
2024-12-06 00:16:07 +01:00
|
|
|
XY,
|
2024-11-03 03:09:00 +01:00
|
|
|
}
|
2025-07-23 01:52:41 +02:00
|
|
|
|
|
|
|
|
export enum SearchParam {
|
|
|
|
|
TAB = 'tab',
|
|
|
|
|
QUERY = 'query',
|
2025-07-27 00:03:51 +02:00
|
|
|
REDIRECT = 'redirect',
|
2025-07-23 01:52:41 +02:00
|
|
|
}
|