Support for YAML content

This commit is contained in:
Mathias Biilmann Christensen
2016-09-11 23:08:18 +02:00
parent bbbf3c5621
commit fcd0ce718a
10 changed files with 291 additions and 73 deletions

View File

@ -2,7 +2,7 @@ import React from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import { Router } from 'react-router';
import { registerPreviewStyle,registerPreviewTemplate } from './lib/registry';
import registry from './lib/registry';
import configureStore from './store/configureStore';
import routes from './routing/routes';
import history, { syncHistory } from './routing/history';
@ -31,7 +31,8 @@ render((
</Provider>
), el);
window.CMS = {
registerPreviewStyle: registerPreviewStyle,
registerPreviewTemplate: registerPreviewTemplate
};
window.CMS = {};
console.log('reg: ', registry);
for (const method in registry) {
window.CMS[method] = registry[method];
}