Files
mtdb_movie/common/resources/client/admin/appearance/commands/commands.ts
maher 703f50a09d
Some checks failed
Build / run (push) Has been cancelled
first commit
2025-10-29 11:42:25 +01:00

49 lines
898 B
TypeScript
Executable File

import {To} from 'react-router-dom';
import {AppearanceValues} from '../appearance-store';
import {FontConfig} from '@common/http/value-lists';
export interface AppearanceCommand {
source: 'be-appearance-editor';
type: string;
}
export interface Navigate {
type: 'navigate';
to: To;
}
export interface SetAppearanceValues {
type: 'setValues';
values: AppearanceValues;
}
export interface SetThemeValue {
type: 'setThemeValue';
name: string;
value: string;
}
export interface SetActiveTheme {
type: 'setActiveTheme';
themeId: number | string;
}
export interface SetCustomCode {
type: 'setCustomCode';
mode: 'css' | 'html';
value?: string;
}
export interface SetThemeFont {
type: 'setThemeFont';
value: FontConfig | null;
}
export type AllCommands =
| Navigate
| SetAppearanceValues
| SetThemeValue
| SetThemeFont
| SetActiveTheme
| SetCustomCode;