ar-test/app/data/settings/constants.ts

32 lines
977 B
TypeScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

export const SETTINGS_COLLECTION = 'app_settings';
export const DEFAULT_SETTINGS = {
logo_required: false,
allow_svg_logos: false,
branded_qr_default: true,
brand_button: true,
};
export const SETTING_TOGGLES: { key: keyof typeof DEFAULT_SETTINGS; label: string; hint: string }[] = [
{
key: 'logo_required',
label: 'Require a company logo',
hint: 'Projects can’t be saved without a logo. When off, the company name is shown instead.',
},
{
key: 'allow_svg_logos',
label: 'Accept SVG logos',
hint: 'SVG files are converted to PNG when uploaded.',
},
{
key: 'branded_qr_default',
label: 'Client logo on QR codes',
hint: 'Default for new assets. Each asset can turn it on or off.',
},
{
key: 'brand_button',
label: 'Per-project button style',
hint: 'Lets each project set the button’s colour, text colour, label and size.',
},
];