2023-02-07 03:33:57 +00:00
|
|
|
import { Edit, FileText, Globe, UploadCloud } from 'lucide-react';
|
2022-08-22 08:55:48 +00:00
|
|
|
|
|
|
|
import GitIcon from '@/assets/ico/git.svg?c';
|
2023-10-08 22:20:44 +00:00
|
|
|
import Helm from '@/assets/ico/helm.svg?c';
|
2022-08-22 08:55:48 +00:00
|
|
|
|
|
|
|
import { BoxSelectorOption } from '../types';
|
|
|
|
|
|
|
|
export const editor: BoxSelectorOption<'editor'> = {
|
|
|
|
id: 'method_editor',
|
2023-02-07 03:33:57 +00:00
|
|
|
icon: Edit,
|
|
|
|
iconType: 'badge',
|
2022-08-22 08:55:48 +00:00
|
|
|
label: 'Web editor',
|
|
|
|
description: 'Use our Web editor',
|
|
|
|
value: 'editor',
|
|
|
|
};
|
2023-02-07 03:33:57 +00:00
|
|
|
|
2022-08-22 08:55:48 +00:00
|
|
|
export const upload: BoxSelectorOption<'upload'> = {
|
|
|
|
id: 'method_upload',
|
2023-02-07 03:33:57 +00:00
|
|
|
icon: UploadCloud,
|
|
|
|
iconType: 'badge',
|
2022-08-22 08:55:48 +00:00
|
|
|
label: 'Upload',
|
|
|
|
description: 'Upload from your computer',
|
|
|
|
value: 'upload',
|
|
|
|
};
|
2023-02-07 03:33:57 +00:00
|
|
|
|
2022-08-22 08:55:48 +00:00
|
|
|
export const git: BoxSelectorOption<'repository'> = {
|
|
|
|
id: 'method_repository',
|
2023-02-07 03:33:57 +00:00
|
|
|
icon: GitIcon,
|
|
|
|
iconType: 'logo',
|
2022-08-22 08:55:48 +00:00
|
|
|
label: 'Repository',
|
|
|
|
description: 'Use a git repository',
|
|
|
|
value: 'repository',
|
|
|
|
};
|
|
|
|
|
2023-02-07 03:33:57 +00:00
|
|
|
export const edgeStackTemplate: BoxSelectorOption<'template'> = {
|
2022-08-22 08:55:48 +00:00
|
|
|
id: 'method_template',
|
2023-02-07 03:33:57 +00:00
|
|
|
icon: FileText,
|
|
|
|
iconType: 'badge',
|
2022-08-22 08:55:48 +00:00
|
|
|
label: 'Template',
|
|
|
|
description: 'Use an Edge stack template',
|
|
|
|
value: 'template',
|
|
|
|
};
|
|
|
|
|
2023-02-07 03:33:57 +00:00
|
|
|
export const customTemplate: BoxSelectorOption<'template'> = {
|
|
|
|
id: 'method_template',
|
|
|
|
icon: FileText,
|
|
|
|
iconType: 'badge',
|
|
|
|
label: 'Custom template',
|
|
|
|
description: 'Use a custom template',
|
|
|
|
value: 'template',
|
|
|
|
};
|
|
|
|
|
2023-10-08 22:20:44 +00:00
|
|
|
export const helm: BoxSelectorOption<'helm'> = {
|
|
|
|
id: 'method_helm',
|
|
|
|
icon: Helm,
|
|
|
|
label: 'Helm chart',
|
|
|
|
description: 'Use a Helm chart',
|
|
|
|
value: 'helm',
|
|
|
|
iconClass: '!text-[#0f1689] th-dark:!text-white th-highcontrast:!text-white',
|
|
|
|
};
|
|
|
|
|
2022-08-22 08:55:48 +00:00
|
|
|
export const url: BoxSelectorOption<'url'> = {
|
|
|
|
id: 'method_url',
|
2023-02-07 03:33:57 +00:00
|
|
|
icon: Globe,
|
|
|
|
iconType: 'badge',
|
2022-08-22 08:55:48 +00:00
|
|
|
label: 'URL',
|
|
|
|
description: 'Specify a URL to a file',
|
|
|
|
value: 'url',
|
|
|
|
};
|