/
index.js
51 lines (49 loc) · 1.35 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/**
* Config.
* @module config
*/
import { defaults } from 'lodash';
import { defaultWidget, widgetMapping } from './Widgets';
import { layoutViews, contentTypesViews, defaultView } from './Views';
import { nonContentRoutes } from './NonContentRoutes';
import ToHTMLRenderers, {
options as ToHTMLOptions,
} from './RichTextEditor/ToHTML';
import {
extendedBlockRenderMap,
blockStyleFn,
listBlockTypes,
} from './RichTextEditor/Blocks';
import plugins, { inlineToolbarButtons } from './RichTextEditor/Plugins';
import FromHTMLCustomBlockFn from './RichTextEditor/FromHTML';
import { customTiles, getDefaultEditTileView, messagesTiles } from './Tiles';
export { layoutViews, contentTypesViews, defaultView };
export { widgetMapping, defaultWidget };
export { nonContentRoutes };
export {
extendedBlockRenderMap,
blockStyleFn,
listBlockTypes,
FromHTMLCustomBlockFn,
inlineToolbarButtons,
plugins,
ToHTMLRenderers,
ToHTMLOptions,
};
export { customTiles, getDefaultEditTileView, messagesTiles };
export default defaults(
{},
{
host: process.env.HOST,
port: process.env.PORT,
apiPath: process.env.API_PATH,
publicUrl: process.env.PUBLIC_URL,
},
{
host: 'localhost',
port: '4300',
apiPath: 'http://localhost:8080/Plone', // for Plone
publicUrl: '/',
// apiPath: 'http://localhost:8081/db/web', // for guillotina
},
);