41 lines
2.3 KiB
JavaScript
Raw Normal View History

2018-07-24 00:27:49 -04:00
import { registerBackend, registerWidget, registerEditorComponent } from 'Lib/registry';
import { GitHubBackend } from 'netlify-cms-backend-github';
import { GitLabBackend } from 'netlify-cms-backend-gitlab';
import { GitGatewayBackend } from 'netlify-cms-backend-git-gateway';
2018-07-25 08:45:13 -04:00
import { BitbucketBackend } from 'netlify-cms-backend-bitbucket';
2018-07-24 00:27:49 -04:00
import { TestBackend } from 'netlify-cms-backend-test';
import { BooleanControl } from 'netlify-cms-widget-boolean';
2018-07-24 10:45:12 -04:00
import { DateControl, DatePreview } from 'netlify-cms-widget-date';
import { DateTimeControl, DateTimePreview } from 'netlify-cms-widget-datetime';
2018-07-24 13:57:57 -04:00
import { FileControl, FilePreview } from 'netlify-cms-widget-file';
import { ImageControl, ImagePreview } from 'netlify-cms-widget-image';
2018-07-24 17:13:48 -04:00
import { ListControl, ListPreview } from 'netlify-cms-widget-list';
import { ObjectControl, ObjectPreview } from 'netlify-cms-widget-object';
2018-07-24 21:46:04 -04:00
import { MarkdownControl, MarkdownPreview } from 'netlify-cms-widget-markdown';
import { NumberControl, NumberPreview } from 'netlify-cms-widget-number';
2018-07-24 23:35:59 -04:00
import { RelationControl, RelationPreview } from 'netlify-cms-widget-relation';
import { StringControl, StringPreview } from 'netlify-cms-widget-string';
import { SelectControl, SelectPreview } from 'netlify-cms-widget-select';
import { TextControl, TextPreview } from 'netlify-cms-widget-text';
2018-07-24 00:27:49 -04:00
import image from 'netlify-cms-editor-component-image';
registerBackend('git-gateway', GitGatewayBackend);
registerBackend('github', GitHubBackend);
registerBackend('gitlab', GitLabBackend);
registerBackend('test-repo', TestBackend);
2018-07-25 08:45:13 -04:00
registerBackend('bitbucket', BitbucketBackend);
2018-07-24 00:27:49 -04:00
registerWidget('boolean', BooleanControl);
2018-07-24 10:45:12 -04:00
registerWidget('date', DateControl, DatePreview);
registerWidget('datetime', DateTimeControl, DateTimePreview);
2018-07-24 13:57:57 -04:00
registerWidget('file', FileControl, FilePreview);
registerWidget('image', ImageControl, ImagePreview);
2018-07-24 17:13:48 -04:00
registerWidget('list', ListControl, ListPreview);
2018-07-24 21:46:04 -04:00
registerWidget('markdown', MarkdownControl, MarkdownPreview);
registerWidget('number', NumberControl, NumberPreview);
2018-07-24 17:13:48 -04:00
registerWidget('object', ObjectControl, ObjectPreview);
2018-07-24 23:35:59 -04:00
registerWidget('relation', RelationControl, RelationPreview);
registerWidget('string', StringControl, StringPreview);
registerWidget('text', TextControl, TextPreview);
registerWidget('select', SelectControl, SelectPreview);
2018-07-24 00:27:49 -04:00
registerEditorComponent(image);