mirror of
https://github.com/Ku6epXBOCTuK/easy-png-tools.git
synced 2026-11-13 17:08:20 +00:00
21 lines
625 B
TypeScript
21 lines
625 B
TypeScript
/**
|
|
* Tool categories: `CategoryId` type and catalog display order derive from
|
|
* one `as const` object to avoid drift. Human-readable names live in the
|
|
* i18n dictionaries, section categories, key = CategoryId.
|
|
*/
|
|
export const CATEGORIES = {
|
|
convert: "convert",
|
|
alpha: "alpha",
|
|
color: "color",
|
|
geometry: "geometry",
|
|
filters: "filters",
|
|
text: "text",
|
|
analyze: "analyze",
|
|
generate: "generate",
|
|
} as const;
|
|
|
|
export type CategoryId = (typeof CATEGORIES)[keyof typeof CATEGORIES];
|
|
|
|
/** Category order in the catalog (as defined in `CATEGORIES`). */
|
|
export const CATEGORY_IDS = Object.keys(CATEGORIES) as CategoryId[];
|