Feature/website overhaul (#49)
* Reorganize repo * Overhaul website design and rewrite in NextJS and Typescript * Delete website-publish.yml
This commit is contained in:
committed by
GitHub
parent
3674ee5bd8
commit
421ecf17e6
25
core/src/index.ts
Normal file
25
core/src/index.ts
Normal file
@ -0,0 +1,25 @@
|
||||
import createReactClass from 'create-react-class';
|
||||
import React from 'react';
|
||||
|
||||
import bootstrap from './bootstrap';
|
||||
import Registry from './lib/registry';
|
||||
|
||||
export * from './backends';
|
||||
export * from './widgets';
|
||||
export * from './media-libraries';
|
||||
export * from './editor-components';
|
||||
export * from './locales';
|
||||
export * from './lib';
|
||||
|
||||
export const CMS = {
|
||||
...Registry,
|
||||
init: bootstrap,
|
||||
};
|
||||
|
||||
if (typeof window !== 'undefined') {
|
||||
window.CMS = CMS;
|
||||
window.createClass = window.createClass || createReactClass;
|
||||
window.h = window.h || React.createElement;
|
||||
}
|
||||
|
||||
export default CMS;
|
Reference in New Issue
Block a user