mirror of
https://github.com/wassname/talk.git
synced 2026-07-19 11:28:50 +08:00
importer renamed, and properties changed
This commit is contained in:
@@ -6,7 +6,7 @@ import isEqual from 'lodash/isEqual';
|
||||
import I18n from 'coral-framework/modules/i18n/i18n';
|
||||
import translations from 'coral-framework/translations';
|
||||
const lang = new I18n(translations);
|
||||
import {graphImporter} from 'coral-framework/helpers/importer';
|
||||
import {graphImporter} from 'coral-framework/helpers/plugins';
|
||||
|
||||
import {TabBar, Tab, TabContent, Spinner} from 'coral-ui';
|
||||
|
||||
@@ -128,7 +128,7 @@ class Embed extends Component {
|
||||
|
||||
const pluginProps = {
|
||||
...this.props,
|
||||
...boundActionCreators
|
||||
actions: boundActionCreators
|
||||
};
|
||||
|
||||
return (
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import * as authActions from './auth';
|
||||
import * as assetActions from './asset';
|
||||
import * as notificationActions from './notification';
|
||||
import {actionsImporter} from '../helpers/importer';
|
||||
import {actionsImporter} from '../helpers/plugins';
|
||||
|
||||
export default {
|
||||
authActions,
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
import React, {Component} from 'react';
|
||||
import {importer as injectPlugins} from 'coral-framework/helpers/importer';
|
||||
import {injectPlugins} from 'coral-framework/helpers/plugins';
|
||||
|
||||
class Slot extends Component {
|
||||
render() {
|
||||
const {pluginProps: actions, ...props} = this.props;
|
||||
const {pluginProps, ...props} = this.props;
|
||||
return (
|
||||
<div>
|
||||
{injectPlugins({...props, actions})}
|
||||
{injectPlugins({...props, ...pluginProps})}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
import {client as clientPlugins} from 'pluginsConfig';
|
||||
|
||||
function importer ({fill, ...props}) {
|
||||
function injectPlugins ({fill, ...props}) {
|
||||
let context,
|
||||
importedFiles;
|
||||
|
||||
@@ -142,7 +142,7 @@ function graphImporter () {
|
||||
}
|
||||
|
||||
export default {
|
||||
importer,
|
||||
injectPlugins,
|
||||
actionsImporter: actionsImporter(),
|
||||
reducersImporter: reducersImporter(),
|
||||
graphImporter: graphImporter()
|
||||
@@ -1,7 +1,7 @@
|
||||
import auth from './auth';
|
||||
import user from './user';
|
||||
import asset from './asset';
|
||||
import {reducersImporter} from '../helpers/importer';
|
||||
import {reducersImporter} from '../helpers/plugins';
|
||||
|
||||
export default {
|
||||
auth,
|
||||
|
||||
Reference in New Issue
Block a user