update netlify-cms main package
This commit is contained in:
parent
3e8a6e5091
commit
e764df68b2
@ -20,7 +20,20 @@
|
|||||||
"netlify-cms-backend-gitlab": "2.0.0-alpha.0",
|
"netlify-cms-backend-gitlab": "2.0.0-alpha.0",
|
||||||
"netlify-cms-backend-git-gateway": "2.0.0-alpha.0",
|
"netlify-cms-backend-git-gateway": "2.0.0-alpha.0",
|
||||||
"netlify-cms-backend-test": "2.0.0-alpha.0",
|
"netlify-cms-backend-test": "2.0.0-alpha.0",
|
||||||
"netlify-cms-editor-component-image": "2.0.0-alpha.0"
|
"netlify-cms-editor-component-image": "2.0.0-alpha.0",
|
||||||
|
"netlify-cms-widget-boolean": "2.0.0-alpha.0",
|
||||||
|
"netlify-cms-widget-date": "2.0.0-alpha.0",
|
||||||
|
"netlify-cms-widget-datetime": "2.0.0-alpha.0",
|
||||||
|
"netlify-cms-widget-file": "2.0.0-alpha.0",
|
||||||
|
"netlify-cms-widget-image": "2.0.0-alpha.0",
|
||||||
|
"netlify-cms-widget-list": "2.0.0-alpha.0",
|
||||||
|
"netlify-cms-widget-markdown": "2.0.0-alpha.0",
|
||||||
|
"netlify-cms-widget-number": "2.0.0-alpha.0",
|
||||||
|
"netlify-cms-widget-object": "2.0.0-alpha.0",
|
||||||
|
"netlify-cms-widget-relation": "2.0.0-alpha.0",
|
||||||
|
"netlify-cms-widget-select": "2.0.0-alpha.0",
|
||||||
|
"netlify-cms-widget-string": "2.0.0-alpha.0",
|
||||||
|
"netlify-cms-widget-text": "2.0.0-alpha.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"webpack": "^4.16.1",
|
"webpack": "^4.16.1",
|
||||||
|
@ -1,30 +1,30 @@
|
|||||||
import cms from 'netlify-cms-core';
|
import cms from 'netlify-cms-core';
|
||||||
// import { StringControl, StringPreview } from 'netlify-cms-widget-string';
|
import { StringControl, StringPreview } from 'netlify-cms-widget-string';
|
||||||
// import { NumberControl, NumberPreview } from 'netlify-cms-widget-number';
|
import { NumberControl, NumberPreview } from 'netlify-cms-widget-number';
|
||||||
// import { TextControl, TextPreview } from 'netlify-cms-widget-text';
|
import { TextControl, TextPreview } from 'netlify-cms-widget-text';
|
||||||
// import { ImageControl, ImagePreview } from 'netlify-cms-widget-image';
|
import { ImageControl, ImagePreview } from 'netlify-cms-widget-image';
|
||||||
// import { FileControl, FilePreview } from 'netlify-cms-widget-file';
|
import { FileControl, FilePreview } from 'netlify-cms-widget-file';
|
||||||
// import { DateControl, DatePreview } from 'netlify-cms-widget-date';
|
import { DateControl, DatePreview } from 'netlify-cms-widget-date';
|
||||||
// import { DateTimeControl, DateTimePreview } from 'netlify-cms-widget-datetime';
|
import { DateTimeControl, DateTimePreview } from 'netlify-cms-widget-datetime';
|
||||||
// import { SelectControl, SelectPreview } from 'netlify-cms-widget-select';
|
import { SelectControl, SelectPreview } from 'netlify-cms-widget-select';
|
||||||
// import { MarkdownControl, MarkdownPreview } from 'netlify-cms-widget-markdown';
|
import { MarkdownControl, MarkdownPreview } from 'netlify-cms-widget-markdown';
|
||||||
// import { ListControl, ListPreview } from 'netlify-cms-widget-list';
|
import { ListControl, ListPreview } from 'netlify-cms-widget-list';
|
||||||
// import { ObjectControl, ObjectPreview } from 'netlify-cms-widget-object';
|
import { ObjectControl, ObjectPreview } from 'netlify-cms-widget-object';
|
||||||
// import { RelationControl, RelationPreview } from 'netlify-cms-widget-relation';
|
import { RelationControl, RelationPreview } from 'netlify-cms-widget-relation';
|
||||||
// import { BooleanControl } from 'netlify-cms-widget-boolean';
|
import { BooleanControl } from 'netlify-cms-widget-boolean';
|
||||||
|
|
||||||
const { registerWidget } = cms;
|
const { registerWidget } = cms;
|
||||||
|
|
||||||
// registerWidget('string', StringControl, StringPreview);
|
registerWidget('string', StringControl, StringPreview);
|
||||||
// registerWidget('text', TextControl, TextPreview);
|
registerWidget('text', TextControl, TextPreview);
|
||||||
// registerWidget('number', NumberControl, NumberPreview);
|
registerWidget('number', NumberControl, NumberPreview);
|
||||||
// registerWidget('list', ListControl, ListPreview);
|
registerWidget('list', ListControl, ListPreview);
|
||||||
// registerWidget('markdown', MarkdownControl, MarkdownPreview);
|
registerWidget('markdown', MarkdownControl, MarkdownPreview);
|
||||||
// registerWidget('image', ImageControl, ImagePreview);
|
registerWidget('image', ImageControl, ImagePreview);
|
||||||
// registerWidget('file', FileControl, FilePreview);
|
registerWidget('file', FileControl, FilePreview);
|
||||||
// registerWidget('date', DateControl, DatePreview);
|
registerWidget('date', DateControl, DatePreview);
|
||||||
// registerWidget('datetime', DateTimeControl, DateTimePreview);
|
registerWidget('datetime', DateTimeControl, DateTimePreview);
|
||||||
// registerWidget('select', SelectControl, SelectPreview);
|
registerWidget('select', SelectControl, SelectPreview);
|
||||||
// registerWidget('object', ObjectControl, ObjectPreview);
|
registerWidget('object', ObjectControl, ObjectPreview);
|
||||||
// registerWidget('relation', RelationControl, RelationPreview);
|
registerWidget('relation', RelationControl, RelationPreview);
|
||||||
// registerWidget('boolean', BooleanControl);
|
registerWidget('boolean', BooleanControl);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user