mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 04:46:40 +07:00
added new flow presets
This commit is contained in:
parent
4e5a6d727a
commit
5cd1064140
18 changed files with 64 additions and 45 deletions
|
@ -1,4 +1,4 @@
|
|||
import { INode } from '~/types';
|
||||
import { FlowDisplay, FlowDisplayVariant, INode } from '~/types';
|
||||
|
||||
export const URLS = {
|
||||
BASE: '/',
|
||||
|
@ -23,11 +23,24 @@ export const URLS = {
|
|||
PROFILE_PAGE: (username: string) => `/profile/${username}`,
|
||||
};
|
||||
|
||||
export const PRESETS = {
|
||||
export const ImagePresets = {
|
||||
'1600': '1600',
|
||||
'600': '600',
|
||||
'300': '300',
|
||||
cover: 'cover',
|
||||
small_hero: 'small_hero',
|
||||
avatar: 'avatar',
|
||||
flow_square: 'flow_square',
|
||||
flow_vertical: 'flow_vertical',
|
||||
flow_horizontal: 'flow_horizontal',
|
||||
} as const;
|
||||
|
||||
export const flowDisplayToPreset: Record<
|
||||
FlowDisplayVariant,
|
||||
typeof ImagePresets[keyof typeof ImagePresets]
|
||||
> = {
|
||||
single: 'flow_square',
|
||||
quadro: 'flow_square',
|
||||
vertical: 'flow_vertical',
|
||||
horizontal: 'flow_horizontal',
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue