mirror of
https://github.com/wassname/talk.git
synced 2026-08-02 13:10:23 +08:00
Use plugin-api
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
export {
|
||||
setAuthToken,
|
||||
handleSuccessfulLogin,
|
||||
logout,
|
||||
} from 'coral-framework/actions/auth';
|
||||
@@ -1 +1,2 @@
|
||||
export { setSort } from 'coral-embed-stream/src/actions/stream';
|
||||
export { showSignInDialog } from 'coral-embed-stream/src/actions/login';
|
||||
|
||||
@@ -1,10 +1,16 @@
|
||||
export { default as withReaction } from './withReaction';
|
||||
export { default as withTags } from './withTags';
|
||||
export { default as withSortOption } from './withSortOption';
|
||||
export { default as withFragments } from 'coral-framework/hocs/withFragments';
|
||||
export { default as excludeIf } from 'coral-framework/hocs/excludeIf';
|
||||
export { default as connect } from 'coral-framework/hocs/connect';
|
||||
export { default as withEmit } from 'coral-framework/hocs/withEmit';
|
||||
export {
|
||||
connect,
|
||||
withEmit,
|
||||
excludeIf,
|
||||
withFragments,
|
||||
withForgotPassword,
|
||||
withSignIn,
|
||||
withSignUp,
|
||||
withResendEmailConfirmation,
|
||||
} from 'coral-framework/hocs';
|
||||
export {
|
||||
withIgnoreUser,
|
||||
withBanUser,
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
import React, { Component } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { withForgotPassword } from 'coral-framework/hocs';
|
||||
import { connect, withForgotPassword } from 'plugin-api/beta/client/hocs';
|
||||
import { compose } from 'recompose';
|
||||
import ForgotPassword from '../components/ForgotPassword';
|
||||
import { connect } from 'plugin-api/beta/client/hocs';
|
||||
import { bindActionCreators } from 'redux';
|
||||
import * as views from '../enums/views';
|
||||
import { setView, setEmail } from '../actions';
|
||||
|
||||
@@ -1,9 +1,11 @@
|
||||
import React, { Component } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { withResendEmailConfirmation } from 'coral-framework/hocs';
|
||||
import {
|
||||
connect,
|
||||
withResendEmailConfirmation,
|
||||
} from 'plugin-api/beta/client/hocs';
|
||||
import { compose } from 'recompose';
|
||||
import ResendEmailConfirmaton from '../components/ResendEmailConfirmation';
|
||||
import { connect } from 'plugin-api/beta/client/hocs';
|
||||
import { bindActionCreators } from 'redux';
|
||||
import * as views from '../enums/views';
|
||||
import { setView } from '../actions';
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
import React, { Component } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { withSignIn } from 'coral-framework/hocs';
|
||||
import { connect, withSignIn } from 'plugin-api/beta/client/hocs';
|
||||
import { compose } from 'recompose';
|
||||
import SignIn from '../components/SignIn';
|
||||
import { connect } from 'plugin-api/beta/client/hocs';
|
||||
import { bindActionCreators } from 'redux';
|
||||
import * as views from '../enums/views';
|
||||
import { setView, setEmail, setPassword } from '../actions';
|
||||
|
||||
@@ -1,13 +1,12 @@
|
||||
import React, { Component } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { withSignUp } from 'coral-framework/hocs';
|
||||
import { connect, withSignUp } from 'plugin-api/beta/client/hocs';
|
||||
import { compose } from 'recompose';
|
||||
import SignUp from '../components/SignUp';
|
||||
import { connect } from 'plugin-api/beta/client/hocs';
|
||||
import { bindActionCreators } from 'redux';
|
||||
import * as views from '../enums/views';
|
||||
import { setView, setEmail, setPassword } from '../actions';
|
||||
import t from 'coral-framework/services/i18n';
|
||||
import { t } from 'plugin-api/beta/client/services';
|
||||
|
||||
class SignUpContainer extends Component {
|
||||
state = {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { connect } from 'react-redux';
|
||||
import { bindActionCreators } from 'redux';
|
||||
import { showSignInDialog } from 'coral-embed-stream/src/actions/login';
|
||||
import SignInButton from '../components//SignInButton';
|
||||
import { showSignInDialog } from 'plugin-api/beta/client/actions/stream';
|
||||
import SignInButton from '../components/SignInButton';
|
||||
|
||||
const mapStateToProps = ({ auth }) => ({
|
||||
currentUser: auth.user,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { connect } from 'react-redux';
|
||||
import { bindActionCreators } from 'redux';
|
||||
import { logout } from 'coral-framework/actions/auth';
|
||||
import { logout } from 'plugin-api/beta/client/actions/auth';
|
||||
import UserBox from '../components/UserBox';
|
||||
|
||||
const mapStateToProps = ({ auth }) => ({
|
||||
|
||||
Reference in New Issue
Block a user